(function(define){if(typeof define==="function"&&define.amd){define=undefined;}(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i0){sourceMiddleware=sourceMiddlewareq.shift();if(typeof sourceMiddleware==='function'){analytics.addSourceMiddleware(sourceMiddleware);}} var integrationMiddleware;while(integrationMiddlewareq&&integrationMiddlewareq.length>0){integrationMiddleware=integrationMiddlewareq.shift();if(typeof integrationMiddleware==='function'){analytics.addIntegrationMiddleware(integrationMiddleware);}} var flushBeforeInit=['setAnonymousId'];var args;var method;for(var queueI=0;queueI0){args=analyticsq.shift();method=args.shift();if(typeof analytics[method]==='function'){analytics[method].apply(analytics,args);}} analyticsq=null;global.analytics=analytics;}).call(this,typeof window!=="undefined"&&window.document&&window.document.implementation?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{})},{"./analytics":1,"./bot":2,"./integrations":4,"./middlewares":5,"@segment/analytics.js-video-plugins/dist":1149,"extend":1262}],4:[function(require,module,exports){'use strict';module.exports={'@asayerio/analytics.js-integration-asayer':require('@asayerio/analytics.js-integration-asayer'),'@auryc/analytics.js-integration-auryc':require('@auryc/analytics.js-integration-auryc'),'@convertflow/analytics.js-integration-convertflow':require('@convertflow/analytics.js-integration-convertflow'),'@owneriq/analytics.js-integration-owneriq-pixel':require('@owneriq/analytics.js-integration-owneriq-pixel'),'@profitwell/analytics.js-integration':require('@profitwell/analytics.js-integration'),'adlearn-open-platform':require('@segment/analytics.js-integration-adlearn-open-platform'),'adobe-analytics':require('@segment/analytics.js-integration-adobe-analytics'),'adobe-target':require('@segment/analytics.js-integration-adobe-target'),'adometry':require('@segment/analytics.js-integration-adometry'),'adroll':require('@segment/analytics.js-integration-adroll'),'adwords':require('@segment/analytics.js-integration-adwords'),'alexa':require('@segment/analytics.js-integration-alexa'),'ambassador':require('@segment/analytics.js-integration-ambassador'),'amplitude':require('@segment/analytics.js-integration-amplitude'),'appboy':require('@segment/analytics.js-integration-appboy'),'appboy-ibm':require('@segment/analytics.js-integration-appboy-ibm'),'appcues':require('@segment/analytics.js-integration-appcues'),'appnexus':require('@segment/analytics.js-integration-appnexus'),'aptrinsic':require('@segment/analytics.js-integration-aptrinsic'),'atatus':require('@segment/analytics.js-integration-atatus'),'autosend':require('@segment/analytics.js-integration-autosend'),'awesm':require('@segment/analytics.js-integration-awesm'),'bing-ads':require('@segment/analytics.js-integration-bing-ads'),'blueshift':require('@segment/analytics.js-integration-blueshift'),'boomtrain':require('@segment/analytics.js-integration-boomtrain'),'bronto':require('@segment/analytics.js-integration-bronto'),'bugherd':require('@segment/analytics.js-integration-bugherd'),'bugsnag':require('@segment/analytics.js-integration-bugsnag'),'castle':require('@segment/analytics.js-integration-castle'),'chameleon':require('@segment/analytics.js-integration-chameleon'),'chartbeat':require('@segment/analytics.js-integration-chartbeat'),'clevertap':require('@segment/analytics.js-integration-clevertap'),'clicky':require('@segment/analytics.js-integration-clicky'),'comscore':require('@segment/analytics.js-integration-comscore'),'convertro':require('@segment/analytics.js-integration-convertro'),'crazy-egg':require('@segment/analytics.js-integration-crazy-egg'),'criteo':require('@segment/analytics.js-integration-criteo'),'curebit':require('@segment/analytics.js-integration-curebit'),'customerio':require('@segment/analytics.js-integration-customerio'),'cxense':require('@segment/analytics.js-integration-cxense'),'doubleclick-floodlight':require('@segment/analytics.js-integration-doubleclick-floodlight'),'drift':require('@segment/analytics.js-integration-drift'),'drip':require('@segment/analytics.js-integration-drip'),'elevio':require('@segment/analytics.js-integration-elevio'),'eloqua':require('@segment/analytics.js-integration-eloqua'),'email-aptitude':require('@segment/analytics.js-integration-email-aptitude'),'errorception':require('@segment/analytics.js-integration-errorception'),'evergage':require('@segment/analytics.js-integration-evergage'),'extole':require('@segment/analytics.js-integration-extole'),'facebook-conversion-tracking':require('@segment/analytics.js-integration-facebook-conversion-tracking'),'facebook-custom-audiences':require('@segment/analytics.js-integration-facebook-custom-audiences'),'facebook-pixel':require('@segment/analytics.js-integration-facebook-pixel'),'foxmetrics':require('@segment/analytics.js-integration-foxmetrics'),'friendbuy':require('@segment/analytics.js-integration-friendbuy'),'fullstory':require('@segment/analytics.js-integration-fullstory'),'gauges':require('@segment/analytics.js-integration-gauges'),'get-satisfaction':require('@segment/analytics.js-integration-get-satisfaction'),'google-adwords-new':require('@segment/analytics.js-integration-google-adwords-new'),'google-analytics':require('@segment/analytics.js-integration-google-analytics'),'google-tag-manager':require('@segment/analytics.js-integration-google-tag-manager'),'gosquared':require('@segment/analytics.js-integration-gosquared'),'gtag':require('@segment/analytics.js-integration-gtag'),'heap':require('@segment/analytics.js-integration-heap'),'hellobar':require('@segment/analytics.js-integration-hellobar'),'hindsight':require('@segment/analytics.js-integration-hindsight'),'hittail':require('@segment/analytics.js-integration-hittail'),'hotjar':require('@segment/analytics.js-integration-hotjar'),'hubspot':require('@segment/analytics.js-integration-hubspot'),'improvely':require('@segment/analytics.js-integration-improvely'),'inspectlet':require('@segment/analytics.js-integration-inspectlet'),'intercom':require('@segment/analytics.js-integration-intercom'),'keen-io':require('@segment/analytics.js-integration-keen-io'),'kenshoo':require('@segment/analytics.js-integration-kenshoo'),'kenshoo-infinity':require('@segment/analytics.js-integration-kenshoo-infinity'),'kissmetrics':require('@segment/analytics.js-integration-kissmetrics'),'klaviyo':require('@segment/analytics.js-integration-klaviyo'),'linkedin-insight-tag':require('@segment/analytics.js-integration-linkedin-insight-tag'),'livechat':require('@segment/analytics.js-integration-livechat'),'localytics':require('@segment/analytics.js-integration-localytics'),'lucky-orange':require('@segment/analytics.js-integration-lucky-orange'),'lytics':require('@segment/analytics.js-integration-lytics'),'madkudu':require('@segment/analytics.js-integration-madkudu'),'marketo':require('@segment/analytics.js-integration-marketo'),'marketo-v2':require('@segment/analytics.js-integration-marketo-v2'),'mediamath':require('@segment/analytics.js-integration-mediamath'),'mixpanel':require('@segment/analytics.js-integration-mixpanel'),'moengage':require('@segment/analytics.js-integration-moengage'),'mojn':require('@segment/analytics.js-integration-mojn'),'monetate':require('@segment/analytics.js-integration-monetate'),'mouseflow':require('@segment/analytics.js-integration-mouseflow'),'mousestats':require('@segment/analytics.js-integration-mousestats'),'nanigans':require('@segment/analytics.js-integration-nanigans'),'navilytics':require('@segment/analytics.js-integration-navilytics'),'nielsen-dcr':require('@segment/analytics.js-integration-nielsen-dcr'),'nielsen-dtvr':require('@segment/analytics.js-integration-nielsen-dtvr'),'nudgespot':require('@segment/analytics.js-integration-nudgespot'),'olark':require('@segment/analytics.js-integration-olark'),'omniture':require('@segment/analytics.js-integration-omniture'),'onespot':require('@segment/analytics.js-integration-onespot'),'optimizely':require('@segment/analytics.js-integration-optimizely'),'outbound':require('@segment/analytics.js-integration-outbound'),'pardot':require('@segment/analytics.js-integration-pardot'),'parsely':require('@segment/analytics.js-integration-parsely'),'pendo':require('@segment/analytics.js-integration-pendo'),'perfect-audience':require('@segment/analytics.js-integration-perfect-audience'),'perimeterx':require('@segment/analytics.js-integration-perimeterx'),'personas':require('@segment/analytics.js-integration-personas'),'pingdom':require('@segment/analytics.js-integration-pingdom'),'pinterest-tag':require('@segment/analytics.js-integration-pinterest-tag'),'piwik':require('@segment/analytics.js-integration-piwik'),'qualaroo':require('@segment/analytics.js-integration-qualaroo'),'quantcast':require('@segment/analytics.js-integration-quantcast'),'quanticmind':require('@segment/analytics.js-integration-quanticmind'),'quora-conversion-pixel':require('@segment/analytics.js-integration-quora-conversion-pixel'),'ramen':require('@segment/analytics.js-integration-ramen'),'rockerbox':require('@segment/analytics.js-integration-rockerbox'),'rocket-fuel':require('@segment/analytics.js-integration-rocket-fuel'),'rollbar':require('@segment/analytics.js-integration-rollbar'),'route':require('@segment/analytics.js-integration-route'),'saasquatch':require('@segment/analytics.js-integration-saasquatch'),'salesforce-dmp':require('@segment/analytics.js-integration-salesforce-dmp'),'salesforce-live-agent':require('@segment/analytics.js-integration-salesforce-live-agent'),'satismeter':require('@segment/analytics.js-integration-satismeter'),'segmentio':require('@segment/analytics.js-integration-segmentio'),'sentry':require('@segment/analytics.js-integration-sentry'),'shareasale':require('@segment/analytics.js-integration-shareasale'),'simplereach':require('@segment/analytics.js-integration-simplereach'),'simplifi':require('@segment/analytics.js-integration-simplifi'),'snapengage':require('@segment/analytics.js-integration-snapengage'),'spinnakr':require('@segment/analytics.js-integration-spinnakr'),'steelhouse':require('@segment/analytics.js-integration-steelhouse'),'stripe-radar':require('@segment/analytics.js-integration-stripe-radar'),'supporthero':require('@segment/analytics.js-integration-supporthero'),'tag-injector':require('@segment/analytics.js-integration-tag-injector'),'taplytics':require('@segment/analytics.js-integration-taplytics'),'tapstream':require('@segment/analytics.js-integration-tapstream'),'tell-apart':require('@segment/analytics.js-integration-tell-apart'),'totango':require('@segment/analytics.js-integration-totango'),'trackjs':require('@segment/analytics.js-integration-trackjs'),'tvsquared':require('@segment/analytics.js-integration-tvsquared'),'twitter-ads':require('@segment/analytics.js-integration-twitter-ads'),'userlike':require('@segment/analytics.js-integration-userlike'),'uservoice':require('@segment/analytics.js-integration-uservoice'),'vero':require('@segment/analytics.js-integration-vero'),'visual-tagger':require('@segment/analytics.js-integration-visual-tagger'),'visual-website-optimizer':require('@segment/analytics.js-integration-visual-website-optimizer'),'webengage':require('@segment/analytics.js-integration-webengage'),'wigzo':require('@segment/analytics.js-integration-wigzo'),'wishpond':require('@segment/analytics.js-integration-wishpond'),'woopra':require('@segment/analytics.js-integration-woopra'),'wootric':require('@segment/analytics.js-integration-wootric'),'yandex-metrica':require('@segment/analytics.js-integration-yandex-metrica'),'yellowhammer':require('@segment/analytics.js-integration-yellowhammer'),'youbora':require('@segment/analytics.js-integration-youbora'),'zopim':require('@segment/analytics.js-integration-zopim'),'@segment/mme-e2e-direct-destination':require('@segment/mme-e2e-direct-destination'),'@smartlook/analytics.js-integration-smartlook':require('@smartlook/analytics.js-integration-smartlook'),'@survicate/analytics.js-integration-survicate':require('@survicate/analytics.js-integration-survicate'),'@userpilot/analytics.js-integration-userpilot':require('@userpilot/analytics.js-integration-userpilot'),'@walkme/analytics.js-integration-walkme':require('@walkme/analytics.js-integration-walkme'),'analytics.js-integration-bouncex-test':require('analytics.js-integration-bouncex-test'),'analytics.js-integration-crisp':require('analytics.js-integration-crisp'),'listrak':require('listrak')};},{"@asayerio/analytics.js-integration-asayer":6,"@auryc/analytics.js-integration-auryc":13,"@convertflow/analytics.js-integration-convertflow":20,"@owneriq/analytics.js-integration-owneriq-pixel":43,"@profitwell/analytics.js-integration":50,"@segment/analytics.js-integration-adlearn-open-platform":78,"@segment/analytics.js-integration-adobe-analytics":85,"@segment/analytics.js-integration-adobe-target":92,"@segment/analytics.js-integration-adometry":99,"@segment/analytics.js-integration-adroll":106,"@segment/analytics.js-integration-adwords":113,"@segment/analytics.js-integration-alexa":120,"@segment/analytics.js-integration-ambassador":127,"@segment/analytics.js-integration-amplitude":134,"@segment/analytics.js-integration-appboy":149,"@segment/analytics.js-integration-appboy-ibm":141,"@segment/analytics.js-integration-appcues":156,"@segment/analytics.js-integration-appnexus":164,"@segment/analytics.js-integration-aptrinsic":171,"@segment/analytics.js-integration-atatus":178,"@segment/analytics.js-integration-autosend":186,"@segment/analytics.js-integration-awesm":193,"@segment/analytics.js-integration-bing-ads":200,"@segment/analytics.js-integration-blueshift":207,"@segment/analytics.js-integration-boomtrain":214,"@segment/analytics.js-integration-bronto":221,"@segment/analytics.js-integration-bugherd":228,"@segment/analytics.js-integration-bugsnag":235,"@segment/analytics.js-integration-castle":243,"@segment/analytics.js-integration-chameleon":250,"@segment/analytics.js-integration-chartbeat":257,"@segment/analytics.js-integration-clevertap":264,"@segment/analytics.js-integration-clicky":271,"@segment/analytics.js-integration-comscore":279,"@segment/analytics.js-integration-convertro":286,"@segment/analytics.js-integration-crazy-egg":293,"@segment/analytics.js-integration-criteo":300,"@segment/analytics.js-integration-curebit":307,"@segment/analytics.js-integration-customerio":314,"@segment/analytics.js-integration-cxense":321,"@segment/analytics.js-integration-doubleclick-floodlight":328,"@segment/analytics.js-integration-drift":335,"@segment/analytics.js-integration-drip":342,"@segment/analytics.js-integration-elevio":350,"@segment/analytics.js-integration-eloqua":359,"@segment/analytics.js-integration-email-aptitude":366,"@segment/analytics.js-integration-errorception":373,"@segment/analytics.js-integration-evergage":382,"@segment/analytics.js-integration-extole":389,"@segment/analytics.js-integration-facebook-conversion-tracking":396,"@segment/analytics.js-integration-facebook-custom-audiences":403,"@segment/analytics.js-integration-facebook-pixel":410,"@segment/analytics.js-integration-foxmetrics":419,"@segment/analytics.js-integration-friendbuy":426,"@segment/analytics.js-integration-fullstory":435,"@segment/analytics.js-integration-gauges":443,"@segment/analytics.js-integration-get-satisfaction":450,"@segment/analytics.js-integration-google-adwords-new":457,"@segment/analytics.js-integration-google-analytics":464,"@segment/analytics.js-integration-google-tag-manager":471,"@segment/analytics.js-integration-gosquared":478,"@segment/analytics.js-integration-gtag":485,"@segment/analytics.js-integration-heap":492,"@segment/analytics.js-integration-hellobar":499,"@segment/analytics.js-integration-hindsight":506,"@segment/analytics.js-integration-hittail":513,"@segment/analytics.js-integration-hotjar":520,"@segment/analytics.js-integration-hubspot":527,"@segment/analytics.js-integration-improvely":534,"@segment/analytics.js-integration-inspectlet":541,"@segment/analytics.js-integration-intercom":548,"@segment/analytics.js-integration-keen-io":555,"@segment/analytics.js-integration-kenshoo":569,"@segment/analytics.js-integration-kenshoo-infinity":562,"@segment/analytics.js-integration-kissmetrics":576,"@segment/analytics.js-integration-klaviyo":583,"@segment/analytics.js-integration-linkedin-insight-tag":590,"@segment/analytics.js-integration-livechat":597,"@segment/analytics.js-integration-localytics":604,"@segment/analytics.js-integration-lucky-orange":611,"@segment/analytics.js-integration-lytics":618,"@segment/analytics.js-integration-madkudu":625,"@segment/analytics.js-integration-marketo":639,"@segment/analytics.js-integration-marketo-v2":632,"@segment/analytics.js-integration-mediamath":646,"@segment/analytics.js-integration-mixpanel":653,"@segment/analytics.js-integration-moengage":660,"@segment/analytics.js-integration-mojn":667,"@segment/analytics.js-integration-monetate":674,"@segment/analytics.js-integration-mouseflow":681,"@segment/analytics.js-integration-mousestats":688,"@segment/analytics.js-integration-nanigans":695,"@segment/analytics.js-integration-navilytics":704,"@segment/analytics.js-integration-nielsen-dcr":711,"@segment/analytics.js-integration-nielsen-dtvr":718,"@segment/analytics.js-integration-nudgespot":725,"@segment/analytics.js-integration-olark":732,"@segment/analytics.js-integration-omniture":739,"@segment/analytics.js-integration-onespot":746,"@segment/analytics.js-integration-optimizely":753,"@segment/analytics.js-integration-outbound":762,"@segment/analytics.js-integration-pardot":771,"@segment/analytics.js-integration-parsely":780,"@segment/analytics.js-integration-pendo":789,"@segment/analytics.js-integration-perfect-audience":796,"@segment/analytics.js-integration-perimeterx":803,"@segment/analytics.js-integration-personas":810,"@segment/analytics.js-integration-pingdom":817,"@segment/analytics.js-integration-pinterest-tag":824,"@segment/analytics.js-integration-piwik":831,"@segment/analytics.js-integration-qualaroo":838,"@segment/analytics.js-integration-quantcast":845,"@segment/analytics.js-integration-quanticmind":852,"@segment/analytics.js-integration-quora-conversion-pixel":859,"@segment/analytics.js-integration-ramen":866,"@segment/analytics.js-integration-rockerbox":873,"@segment/analytics.js-integration-rocket-fuel":880,"@segment/analytics.js-integration-rollbar":887,"@segment/analytics.js-integration-route":894,"@segment/analytics.js-integration-saasquatch":901,"@segment/analytics.js-integration-salesforce-dmp":908,"@segment/analytics.js-integration-salesforce-live-agent":915,"@segment/analytics.js-integration-satismeter":922,"@segment/analytics.js-integration-segmentio":929,"@segment/analytics.js-integration-sentry":938,"@segment/analytics.js-integration-shareasale":945,"@segment/analytics.js-integration-simplereach":952,"@segment/analytics.js-integration-simplifi":959,"@segment/analytics.js-integration-snapengage":966,"@segment/analytics.js-integration-spinnakr":973,"@segment/analytics.js-integration-steelhouse":980,"@segment/analytics.js-integration-stripe-radar":987,"@segment/analytics.js-integration-supporthero":994,"@segment/analytics.js-integration-tag-injector":1001,"@segment/analytics.js-integration-taplytics":1008,"@segment/analytics.js-integration-tapstream":1015,"@segment/analytics.js-integration-tell-apart":1022,"@segment/analytics.js-integration-totango":1029,"@segment/analytics.js-integration-trackjs":1036,"@segment/analytics.js-integration-tvsquared":1043,"@segment/analytics.js-integration-twitter-ads":1050,"@segment/analytics.js-integration-userlike":1057,"@segment/analytics.js-integration-uservoice":1064,"@segment/analytics.js-integration-vero":1071,"@segment/analytics.js-integration-visual-tagger":1078,"@segment/analytics.js-integration-visual-website-optimizer":1079,"@segment/analytics.js-integration-webengage":1086,"@segment/analytics.js-integration-wigzo":1093,"@segment/analytics.js-integration-wishpond":1100,"@segment/analytics.js-integration-woopra":1107,"@segment/analytics.js-integration-wootric":1114,"@segment/analytics.js-integration-yandex-metrica":1115,"@segment/analytics.js-integration-yellowhammer":1122,"@segment/analytics.js-integration-youbora":1129,"@segment/analytics.js-integration-zopim":1136,"@segment/mme-e2e-direct-destination":1172,"@smartlook/analytics.js-integration-smartlook":1186,"@survicate/analytics.js-integration-survicate":1193,"@userpilot/analytics.js-integration-userpilot":1200,"@walkme/analytics.js-integration-walkme":1208,"analytics.js-integration-bouncex-test":1216,"analytics.js-integration-crisp":1223,"listrak":1288}],5:[function(require,module,exports){'use strict';var middlewares={source:[require("@segment/analytics.js-middleware-braze-deduplicate")].map(function(module){return module.__esModule&&module.default?module.default:module;}),integration:[]};module.exports=middlewares;},{"@segment/ajs-middleware-routing":58,"@segment/analytics.js-middleware-braze-deduplicate":1148}],6:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":7}],7:[function(require,module,exports){module.exports=function(){};},{"./protos":8,"./statics":9,"@ndhoule/defaults":30,"component-bind":1235,"debug":11,"extend":10,"slug-component":1356}],8:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],9:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260}],10:[function(require,module,exports){module.exports=function(){};},{}],11:[function(require,module,exports){(function(process){exports=module.exports=require('./debug');exports.log=log;exports.formatArgs=formatArgs;exports.save=save;exports.load=load;exports.useColors=useColors;exports.storage='undefined'!=typeof chrome&&'undefined'!=typeof chrome.storage?chrome.storage.local:localstorage();exports.colors=['lightseagreen','forestgreen','goldenrod','dodgerblue','darkorchid','crimson'];function useColors(){if(typeof window!=='undefined'&&window.process&&window.process.type==='renderer'){return true;} return(typeof document!=='undefined'&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance)||(typeof window!=='undefined'&&window.console&&(window.console.firebug||(window.console.exception&&window.console.table)))||(typeof navigator!=='undefined'&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31)||(typeof navigator!=='undefined'&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));} exports.formatters.j=function(v){try{return JSON.stringify(v);}catch(err){return'[UnexpectedJSONParseError]: '+err.message;}};function formatArgs(args){var useColors=this.useColors;args[0]=(useColors?'%c':'') +this.namespace +(useColors?' %c':' ') +args[0] +(useColors?'%c ':' ') +'+'+exports.humanize(this.diff);if(!useColors)return;var c='color: '+this.color;args.splice(1,0,c,'color: inherit') var index=0;var lastC=0;args[0].replace(/%[a-zA-Z%]/g,function(match){if('%%'===match)return;index++;if('%c'===match){lastC=index;}});args.splice(lastC,0,c);} function log(){return'object'===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments);} function save(namespaces){try{if(null==namespaces){exports.storage.removeItem('debug');}else{exports.storage.debug=namespaces;}}catch(e){}} function load(){var r;try{r=exports.storage.debug;}catch(e){} if(!r&&typeof process!=='undefined'&&'env'in process){r=process.env.DEBUG;} return r;} exports.enable(load());function localstorage(){try{return window.localStorage;}catch(e){}}}).call(this,require('_process'))},{"./debug":12,"_process":1231}],12:[function(require,module,exports){exports=module.exports=createDebug.debug=createDebug['default']=createDebug;exports.coerce=coerce;exports.disable=disable;exports.enable=enable;exports.enabled=enabled;exports.humanize=require('ms');exports.names=[];exports.skips=[];exports.formatters={};var prevTime;function selectColor(namespace){var hash=0,i;for(i in namespace){hash=((hash<<5)-hash)+namespace.charCodeAt(i);hash|=0;} return exports.colors[Math.abs(hash)%exports.colors.length];} function createDebug(namespace){function debug(){if(!debug.enabled)return;var self=debug;var curr=+new Date();var ms=curr-(prevTime||curr);self.diff=ms;self.prev=prevTime;self.curr=curr;prevTime=curr;var args=new Array(arguments.length);for(var i=0;i=integrationCount){self._readied=true;self.emit('ready');}};if(integrationCount<=0){ready();} this.failedInitializations=[];var initialPageSkipped=false;each(function(integration){if(options.initialPageview&&integration.options.initialPageview===false){var page=integration.page;integration.page=function(){if(initialPageSkipped){return page.apply(this,arguments);} initialPageSkipped=true;};} integration.analytics=self;integration.once('ready',ready);try{metrics.increment('analytics_js.integration.invoke',{method:'initialize',integration_name:integration.name});integration.initialize();} catch(e){var integrationName=integration.name;metrics.increment('analytics_js.integration.invoke.error',{method:'initialize',integration_name:integration.name});self.failedInitializations.push(integrationName);self.log('Error initializing %s integration: %o',integrationName,e);integration.ready();}},integrations);this.initialized=true;this.emit('initialize',settings,options);return this;};Analytics.prototype.setAnonymousId=function(id){this.user().anonymousId(id);return this;};Analytics.prototype.add=function(integration){this._integrations[integration.name]=integration;return this;};Analytics.prototype.identify=function(id,traits,options,fn){if(is.fn(options)) (fn=options),(options=null);if(is.fn(traits)) (fn=traits),(options=null),(traits=null);if(is.object(id)) (options=traits),(traits=id),(id=user.id());var properties={};var defs=pageDefaults();defaults(properties,defs);user.identify(id,traits);var msg=this.normalize({properties:properties,data:user.traits(),userId:user.id()});this._invoke('identify',new Identify(msg));this.emit('identify',id,traits,options);this._callback(fn);return this;};Analytics.prototype.user=function(){return user;};Analytics.prototype.group=function(id,traits,options,fn){if(!arguments.length) return group;if(is.fn(options)) (fn=options),(options=null);if(is.fn(traits)) (fn=traits),(options=null),(traits=null);if(is.object(id)) (options=traits),(traits=id),(id=group.id());var properties={};var defs=pageDefaults();defaults(properties,defs);group.identify(id,traits);var msg=this.normalize({options:options,properties:properties,data:group.traits(),groupId:group.id()});this._invoke('group',new Group(msg));this.emit('group',id,traits,options);this._callback(fn);return this;};Analytics.prototype.track=function(event,traits,options,fn){if(is.fn(options)) (fn=options),(options=null);if(is.fn(traits)) (fn=v),(options=null);var plan=this.options.plan||{};var events=plan.track||{};var planIntegrationOptions={};var properties={};var defs=pageDefaults();defaults(properties,defs);var msg=this.normalize({properties:properties,data:traits,name:event});plan=events[event];if(plan){this.log('plan %o - %o',event,plan);if(plan.enabled===false){planIntegrationOptions={All:false,'Segment.io':true};} else{planIntegrationOptions=plan.integrations||{};}} else{var defaultPlan=events.__default||{enabled:true};if(!defaultPlan.enabled){planIntegrationOptions={All:false,'Segment.io':true};}} this._invoke('track',new Track(msg));this.emit('track',event,traits,options);this._callback(fn);return this;};Analytics.prototype.trackClick=Analytics.prototype.trackLink=function(links,event,properties){if(!links) return this;var defs=pageDefaults();defaults(properties,defs);if(type(links)==='element') links=[links];var self=this;each(function(el){if(type(el)!=='element'){throw new TypeError('Must pass HTMLElement to `analytics.trackLink`.');} on(el,'click',function(e){var ev=is.fn(event)?event(el):event;var props=is.fn(properties)?properties(el):properties;var href=el.getAttribute('href')||el.getAttributeNS('http://www.w3.org/1999/xlink','href')||el.getAttribute('xlink:href');self.track(ev,props);if(href&&el.target!=='_blank'&&!isMeta(e)){prevent(e);self._callback(function(){window.location.href=href;});}});},links);return this;};Analytics.prototype.trackSubmit=Analytics.prototype.trackForm=function(forms,event,properties){if(!forms) return this;var defs=pageDefaults();defaults(properties,defs);if(type(forms)==='element') forms=[forms];var self=this;each(function(el){if(type(el)!=='element') throw new TypeError('Must pass HTMLElement to `analytics.trackForm`.');function handler(e){prevent(e);var ev=is.fn(event)?event(el):event;var props=is.fn(properties)?properties(el):properties;self.track(ev,props);self._callback(function(){el.submit();});} var $=window.jQuery||window.Zepto;if($){$(el).submit(handler);} else{on(el,'submit',handler);}},forms);return this;};Analytics.prototype.page=function(event,traits,options,fn){if(is.fn(options)) (fn=options),(options=null);if(is.fn(traits)) (fn=v),(options=null);var plan=this.options.plan||{};var events=plan.track||{};var planIntegrationOptions={};var properties={};var defs=pageDefaults();defaults(properties,defs);var msg=this.normalize({properties:properties,data:traits,name:event});plan=events[event];if(plan){this.log('plan %o - %o',event,plan);if(plan.enabled===false){planIntegrationOptions={All:false,'Segment.io':true};} else{planIntegrationOptions=plan.integrations||{};}} else{var defaultPlan=events.__default||{enabled:true};if(!defaultPlan.enabled){planIntegrationOptions={All:false,'Segment.io':true};}} this._invoke('page',new Page(msg));this.emit('page',event,traits,options);this._callback(fn);return this;};Analytics.prototype.pageview=function(url){var properties={};if(url) properties.path=url;this.page(properties);return this;};Analytics.prototype.alias=function(to,from,options,fn){if(is.fn(options)) (fn=options),(options=null);if(is.fn(from)) (fn=from),(options=null),(from=null);if(is.object(from)) (options=from),(from=null);var properties={};var defs=pageDefaults();defaults(properties,defs);var msg=this.normalize({options:options,properties:properties,previousId:from,userId:to});this._invoke('alias',new Alias(msg));this.emit('alias',to,from,options);this._callback(fn);return this;};Analytics.prototype.ready=function(fn){if(is.fn(fn)){if(this._readied){nextTick(fn);} else{this.once('ready',fn);}} return this;};Analytics.prototype.timeout=function(timeout){this._timeout=timeout;};Analytics.prototype.debug=function(str){if(!arguments.length||str){debug.enable('analytics:'+(str||'*'));} else{debug.disable();}};Analytics.prototype._options=function(options){options=options||{};this.options=options;cookie.options(options.cookie);metrics.options(options.metrics);store.options(options.localStorage);user.options(options.user);group.options(options.group);return this;};Analytics.prototype._callback=function(fn){if(is.fn(fn)){this._timeout?setTimeout(fn,this._timeout):nextTick(fn);} return this;};Analytics.prototype._invoke=function(method,facade){var self=this;try{this._sourceMiddlewares.applyMiddlewares(extend(true,new Facade({}),facade),this._integrations,function(result){if(result===null){self.log('Payload with method "%s" was null and dropped by source a middleware.',method);return;} if(!(result instanceof Facade)){result=new Facade(result);} self.emit('invoke',result);metrics.increment('analytics_js.invoke',{method:method});applyIntegrationMiddlewares(result);});} catch(e){metrics.increment('analytics_js.invoke.error',{method:method});self.log('Error invoking .%s method of %s integration: %o',method,name,e);} return this;function applyIntegrationMiddlewares(facade){var failedInitializations=self.failedInitializations||[];each(function(integration,name){var facadeCopy=extend(true,new Facade({}),facade);if(!facadeCopy.enabled(name)) return;if(failedInitializations.indexOf(name)>=0){self.log('Skipping invocation of .%s method of %s integration. Integration failed to initialize properly.',method,name);} else{try{self._integrationMiddlewares.applyMiddlewares(facadeCopy,integration.name,function(result){if(result===null){self.log('Payload to integration "%s" was null and dropped by a middleware.',name);return;} if(!(result instanceof Facade)){result=new Facade(result);} if(self._destinationMiddlewares[integration.name]){self._destinationMiddlewares[integration.name].applyMiddlewares(facadeCopy,integration.name,function(result){if(result===null){self.log('Payload to destination "%s" was null and dropped by a middleware.',name);return;} if(!(result instanceof Facade)){result=new Facade(result);} metrics.increment('analytics_js.integration.invoke',{method:method,integration_name:integration.name});integration.invoke.call(integration,method,result);});} else{metrics.increment('analytics_js.integration.invoke',{method:method,integration_name:integration.name});integration.invoke.call(integration,method,result);}});} catch(e){metrics.increment('analytics_js.integration.invoke.error',{method:method,integration_name:integration.name});self.log('Error invoking .%s method of %s integration: %o',method,name,e);}}},self._integrations);}};Analytics.prototype.push=function(args){var method=args.shift();if(!this[method]) return;this[method].apply(this,args);};Analytics.prototype.reset=function(){this.user().logout();this.group().logout();};Analytics.prototype._parseQuery=function(query){var q=querystring.parse(query);var traits=pickPrefix('ajs_trait_',q);var props=pickPrefix('ajs_prop_',q);if(q.ajs_uid) this.identify(q.ajs_uid,traits);if(q.ajs_event) this.track(q.ajs_event,props);if(q.ajs_aid) user.anonymousId(q.ajs_aid);return this;function pickPrefix(prefix,object){var length=prefix.length;var sub;return Object.keys(object).reduce(function(acc,key){if(key.substr(0,length)===prefix){sub=key.substr(length);acc[sub]=object[key];} return acc;},{});}};Analytics.prototype.normalize=function(msg){msg=normalize(msg,keys(this._integrations));if(msg.anonymousId) user.anonymousId(msg.anonymousId);msg.anonymousId='2c4832284242413caf04c3f05203665a';return msg;};Analytics.prototype._mergeInitializeAndPlanIntegrations=function(planIntegrations){if(!this.options.integrations){return planIntegrations;} var integrations=extend({},this.options.integrations);var integrationName;if(planIntegrations.All===false){integrations={All:false};} for(integrationName in planIntegrations){if(planIntegrations.hasOwnProperty(integrationName)){if(this.options.integrations[integrationName]!==false){integrations[integrationName]=planIntegrations[integrationName];}}} return integrations;};Analytics.prototype.noConflict=function(){window.analytics=_analytics;return this;};module.exports=Analytics;module.exports.cookie=cookie;module.exports.memory=memory;module.exports.store=store;module.exports.metrics=metrics;}).call(this,typeof window!=="undefined"&&window.document&&window.document.implementation?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{})},{"./cookie":61,"./group":63,"./memory":65,"./metrics":66,"./middleware":67,"./normalize":68,"./pageDefaults":69,"./store":70,"./user":71,"./utils/clone":72,"./utils/each":73,"@ndhoule/defaults":30,"@ndhoule/foldl":36,"@ndhoule/keys":38,"@ndhoule/pick":40,"@segment/is-meta":1157,"@segment/prevent-default":1173,"bind-all":1230,"component-emitter":1243,"component-event":1244,"component-querystring":1247,"component-type":1249,"debug":75,"extend":1262,"is":1279,"next-tick":1318,"segmentio-facade":1348}],61:[function(require,module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var bindAll=require('bind-all');var clone=require('./utils/clone');var cookie=require('@segment/cookie');var debug=require('debug')('analytics.js:cookie');var defaults=require('@ndhoule/defaults');var topDomain=require('@segment/top-domain');function Cookie(options){this.options(options);} Cookie.prototype.options=function(options){if(arguments.length===0) return this._options;options=options||{};var domain='.'+topDomain(window.location.href);if(domain==='.') domain=null;this._options=defaults(options,{maxage:31536000000,path:'/',domain:domain,sameSite:'Lax'});this.set('ajs:test',true);if(!this.get('ajs:test')){debug('fallback to domain=null');this._options.domain=null;} this.remove('ajs:test');};Cookie.prototype.set=function(key,value){try{value=window.JSON.stringify(value);cookie(key,value==='null'?null:value,clone(this._options));return true;} catch(e){return false;}};Cookie.prototype.get=function(key){try{var value=cookie(key);value=value?window.JSON.parse(value):null;return value;} catch(e){return null;}};Cookie.prototype.remove=function(key){try{cookie(key,null,clone(this._options));return true;} catch(e){return false;}};module.exports=bindAll(new Cookie());module.exports.Cookie=Cookie;},{"./utils/clone":72,"@ndhoule/defaults":30,"@segment/cookie":1153,"@segment/top-domain":1178,"bind-all":1230,"debug":75}],62:[function(require,module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var clone=require('./utils/clone');var cookie=require('./cookie');var debug=require('debug')('analytics:entity');var defaults=require('@ndhoule/defaults');var extend=require('@ndhoule/extend');var memory=require('./memory');var store=require('./store');var isodateTraverse=require('@segment/isodate-traverse');module.exports=Entity;function Entity(options){this.options(options);this.initialize();} Entity.prototype.initialize=function(){cookie.set('ajs:cookies',true);if(cookie.get('ajs:cookies')){cookie.remove('ajs:cookies');this._storage=cookie;return;} if(store.enabled){this._storage=store;return;} debug('warning using memory store both cookies and localStorage are disabled');this._storage=memory;};Entity.prototype.storage=function(){return this._storage;};Entity.prototype.options=function(options){if(arguments.length===0) return this._options;this._options=defaults(options||{},this.defaults||{});};Entity.prototype.id=function(id){switch(arguments.length){case 0:return this._getId();case 1:return this._setId(id);default:}};Entity.prototype._getId=function(){if(!this._options.persist){return this._id===undefined?null:this._id;} var cookieId=this._getIdFromCookie();if(cookieId){return cookieId;} var lsId=this._getIdFromLocalStorage();if(lsId){this._setIdInCookies(lsId);return lsId;} return null;};Entity.prototype._getIdFromCookie=function(){return this.storage().get(this._options.cookie.key);};Entity.prototype._getIdFromLocalStorage=function(){if(!this._options.localStorageFallbackDisabled){return store.get(this._options.cookie.key);} return null;};Entity.prototype._setId=function(id){if(this._options.persist){this._setIdInCookies(id);this._setIdInLocalStorage(id);} else{this._id=id;}};Entity.prototype._setIdInCookies=function(id){this.storage().set(this._options.cookie.key,id);};Entity.prototype._setIdInLocalStorage=function(id){if(!this._options.localStorageFallbackDisabled){store.set(this._options.cookie.key,id);}};Entity.prototype.properties=Entity.prototype.traits=function(traits){switch(arguments.length){case 0:return this._getTraits();case 1:return this._setTraits(traits);default:}};Entity.prototype._getTraits=function(){var ret=this._options.persist?store.get(this._options.localStorage.key):this._traits;return ret?isodateTraverse(clone(ret)):{};};Entity.prototype._setTraits=function(traits){traits=traits||{};if(this._options.persist){store.set(this._options.localStorage.key,traits);} else{this._traits=traits;}};Entity.prototype.identify=function(id,traits){traits=traits||{};var current=this.id();if(current===null||current===id) traits=extend(this.traits(),traits);if(id) this.id(id);this.debug('identify %o, %o',id,traits);this.traits(traits);this.save();};Entity.prototype.save=function(){if(!this._options.persist) return false;this._setId(this.id());this._setTraits(this.traits());return true;};Entity.prototype.logout=function(){this.id(null);this.traits({});this.storage().remove(this._options.cookie.key);store.remove(this._options.cookie.key);store.remove(this._options.localStorage.key);};Entity.prototype.reset=function(){this.logout();this.options({});};Entity.prototype.load=function(){this.id(this.id());this.traits(this.traits());};},{"./cookie":61,"./memory":65,"./store":70,"./utils/clone":72,"@ndhoule/defaults":30,"@ndhoule/extend":35,"@segment/isodate-traverse":1158,"debug":75}],63:[function(require,module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var Entity=require('./entity');var bindAll=require('bind-all');var debug=require('debug')('analytics:group');var inherit=require('inherits');Group.defaults={persist:true,cookie:{key:'ajs_group_id'},localStorage:{key:'ajs_group_properties'}};function Group(options){this.defaults=Group.defaults;this.debug=debug;Entity.call(this,options);} inherit(Group,Entity);module.exports=bindAll(new Group());module.exports.Group=Group;},{"./entity":62,"bind-all":1230,"debug":75,"inherits":1271}],64:[function(require,module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var Analytics=require('./analytics');var analytics=new Analytics();analytics.require=require;analytics.VERSION=require('../package.json').version;module.exports=analytics;},{"../package.json":77,"./analytics":60}],65:[function(require,module,exports){'use strict';var bindAll=require('bind-all');var clone=require('./utils/clone');var has=Object.prototype.hasOwnProperty;module.exports=bindAll(new Memory());function Memory(){this.store={};} Memory.prototype.set=function(key,value){this.store[key]=clone(value);return true;};Memory.prototype.get=function(key){if(!has.call(this.store,key)) return;return clone(this.store[key]);};Memory.prototype.remove=function(key){delete this.store[key];return true;};},{"./utils/clone":72,"bind-all":1230}],66:[function(require,module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var bindAll=require('bind-all');var send=require('@segment/send-json');var debug=require('debug')('analytics.js:metrics');function Metrics(options){this.options(options);} Metrics.prototype.options=function(options){options=options||{};this.host=options.host||'collect-analytics.hexlet.io/collect/v1';this.sampleRate=options.sampleRate||0;this.flushTimer=options.flushTimer||30*1000 ;this.maxQueueSize=options.maxQueueSize||20;this.queue=[];if(this.sampleRate>0){var self=this;setInterval(function(){self._flush();},this.flushTimer);}};Metrics.prototype.increment=function(metric,tags){if(Math.random()>this.sampleRate){return;} if(this.queue.length>=this.maxQueueSize){return;} this.queue.push({type:'Counter',metric:metric,value:1,tags:tags});if(metric.indexOf('error')>0){this._flush();}};Metrics.prototype._flush=function(){var self=this;if(self.queue.length<=0){return;} var payload={series:this.queue};var headers={'Content-Type':'text/plain'};self.queue=[];if(send.type!=='xhr') return;send('https://'+this.host+'/m',payload,headers,function(err,res){debug('sent %O, received %O',payload,[err,res]);});};module.exports=bindAll(new Metrics());module.exports.Metrics=Metrics;},{"@segment/send-json":1175,"bind-all":1230,"debug":75}],67:[function(require,module,exports){'use strict';var Facade=require('segmentio-facade');module.exports.SourceMiddlewareChain=function SourceMiddlewareChain(){var apply=middlewareChain(this);this.applyMiddlewares=function(facade,integrations,callback){return apply(function(mw,payload,next){mw({integrations:integrations,next:next,payload:payload});},facade,callback);};};module.exports.IntegrationMiddlewareChain=function IntegrationMiddlewareChain(){var apply=middlewareChain(this);this.applyMiddlewares=function(facade,integration,callback){return apply(function(mw,payload,next){mw(payload,integration,next);},facade,callback);};};module.exports.DestinationMiddlewareChain=function DestinationMiddlewareChain(){var apply=middlewareChain(this);this.applyMiddlewares=function(facade,integration,callback){return apply(function(mw,payload,next){mw({payload:payload,integration:integration,next:next});},facade,callback);};};function middlewareChain(dest){var middlewares=[];dest.getMiddlewares=function(){return middlewares.slice();};dest.add=function(middleware){if(typeof middleware!=='function') throw new Error('attempted to add non-function middleware');if(middlewares.indexOf(middleware)!==-1) throw new Error('middleware is already registered');middlewares.push(middleware);};return function applyMiddlewares(run,facade,callback){if(typeof facade!=='object') throw new Error('applyMiddlewares requires a payload object');if(typeof callback!=='function') throw new Error('applyMiddlewares requires a function callback');var middlewaresToApply=middlewares.slice();middlewaresToApply.push(callback);executeChain(run,facade,middlewaresToApply,0);};} function executeChain(run,payload,middlewares,index){if(payload===null){middlewares[middlewares.length-1](null);return;} if(!(payload instanceof Facade)){payload=new Facade(payload);} var mw=middlewares[index];if(mw){if(middlewares[index+1]){run(mw,payload,function(result){executeChain(run,result,middlewares,++index);});} else{mw(payload);}}} module.exports.middlewareChain=middlewareChain;},{"segmentio-facade":1348}],68:[function(require,module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var debug=require('debug')('analytics.js:normalize');var defaults=require('@ndhoule/defaults');var each=require('./utils/each');var includes=require('@ndhoule/includes');var map=require('./utils/map');var type=require('component-type');var uuid=require('uuid/v4');var md5=require('spark-md5').hash;var has=Object.prototype.hasOwnProperty;module.exports=normalize;var toplevel=['integrations','anonymousId','timestamp','context'];function normalize(msg,list){var lower=map(function(s){return s.toLowerCase();},list);var opts=msg.options||{};var integrations=opts.integrations||{};var providers=opts.providers||{};var ret={};debug('<-',msg);each(function(value,key){if(!integration(key)) return;if(!has.call(integrations,key)) integrations[key]=value;delete opts[key];},opts);delete opts.providers;each(function(value,key){if(!integration(key)) return;if(type(integrations[key])==='object') return;if(has.call(integrations,key)&&typeof providers[key]==='boolean') return;integrations[key]=value;},providers);each(function(_value,key){if(includes(key,toplevel)){ret[key]=opts[key];} else{context[key]=opts[key];}},opts);msg.messageId=md5(window.JSON.stringify(msg)+uuid());delete msg.options;ret=defaults(ret,msg);debug('->',ret);return ret;function integration(name){return!!(includes(name,list)||name.toLowerCase()==='all'||includes(name.toLowerCase(),lower));}}},{"./utils/each":73,"./utils/map":74,"@ndhoule/defaults":30,"@ndhoule/includes":37,"component-type":1249,"debug":75,"spark-md5":1358,"uuid/v4":1386}],69:[function(require,module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var canonical=require('@segment/canonical');var includes=require('@ndhoule/includes');var url=require('component-url');function OsName(){var OSName="Unknown OS";if(navigator.appVersion.indexOf("Win")!=-1)OSName="Windows";if(navigator.appVersion.indexOf("Mac")!=-1)OSName="MacOS";if(navigator.appVersion.indexOf("X11")!=-1)OSName="UNIX";if(navigator.appVersion.indexOf("Linux")!=-1)OSName="Linux";return OSName;} function deviceOperatingSystemVersion(){{var unknown='-';var nVer=navigator.appVersion;var nAgt=navigator.userAgent;var nVer=navigator.appVersion;var osVersion=unknown;var os=unknown;var clientStrings=[{s:'Windows 10',r:/(Windows 10.0|Windows NT 10.0)/},{s:'Windows 8.1',r:/(Windows 8.1|Windows NT 6.3)/},{s:'Windows 8',r:/(Windows 8|Windows NT 6.2)/},{s:'Windows 7',r:/(Windows 7|Windows NT 6.1)/},{s:'Windows Vista',r:/Windows NT 6.0/},{s:'Windows Server 2003',r:/Windows NT 5.2/},{s:'Windows XP',r:/(Windows NT 5.1|Windows XP)/},{s:'Windows 2000',r:/(Windows NT 5.0|Windows 2000)/},{s:'Windows ME',r:/(Win 9x 4.90|Windows ME)/},{s:'Windows 98',r:/(Windows 98|Win98)/},{s:'Windows 95',r:/(Windows 95|Win95|Windows_95)/},{s:'Windows NT 4.0',r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:'Windows CE',r:/Windows CE/},{s:'Windows 3.11',r:/Win16/},{s:'Android',r:/Android/},{s:'Open BSD',r:/OpenBSD/},{s:'Sun OS',r:/SunOS/},{s:'Chrome OS',r:/CrOS/},{s:'Linux',r:/(Linux|X11(?!.*CrOS))/},{s:'iOS',r:/(iPhone|iPad|iPod)/},{s:'Mac OS X',r:/Mac OS X/},{s:'Mac OS',r:/(Mac OS|MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:'QNX',r:/QNX/},{s:'UNIX',r:/UNIX/},{s:'BeOS',r:/BeOS/},{s:'OS/2',r:/OS\/2/},{s:'Search Bot',r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(var id in clientStrings){var cs=clientStrings[id];if(cs.r.test(nAgt)){os=cs.s;break;}} if(/Windows/.test(os)){osVersion=/Windows (.*)/.exec(os)[1];} switch(os){case'Mac OS':case'Mac OS X':case'Android':osVersion=/(?:Android|Mac OS|Mac OS X|MacPPC|MacIntel|Mac_PowerPC|Macintosh) ([\.\_\d]+)/.exec(nAgt)[1];break;case'iOS':osVersion=/OS (\d+)_(\d+)_?(\d+)?/.exec(nVer);osVersion=osVersion[1]+'.'+osVersion[2]+'.'+(osVersion[3]|0);break;}} return osVersion;} function BrowserInfo() {var nVer=navigator.appVersion;var nAgt=navigator.userAgent;var browserName=navigator.appName;var fullVersion=''+parseFloat(navigator.appVersion);var majorVersion=parseInt(navigator.appVersion,10);var nameOffset,verOffset,ix;if((verOffset=nAgt.indexOf("Opera"))!=-1){browserName="Opera";fullVersion=nAgt.substring(verOffset+6);if((verOffset=nAgt.indexOf("Version"))!=-1) fullVersion=nAgt.substring(verOffset+8);} else if((verOffset=nAgt.indexOf("MSIE"))!=-1){browserName="Microsoft Internet Explorer";fullVersion=nAgt.substring(verOffset+5);} else if((verOffset=nAgt.indexOf("Chrome"))!=-1){browserName="Chrome";fullVersion=nAgt.substring(verOffset+7);} else if((verOffset=nAgt.indexOf("Safari"))!=-1){browserName="Safari";fullVersion=nAgt.substring(verOffset+7);if((verOffset=nAgt.indexOf("Version"))!=-1) fullVersion=nAgt.substring(verOffset+8);} else if((verOffset=nAgt.indexOf("Firefox"))!=-1){browserName="Firefox";fullVersion=nAgt.substring(verOffset+8);} else if((nameOffset=nAgt.lastIndexOf(' ')+1)<(verOffset=nAgt.lastIndexOf('/'))) {browserName=nAgt.substring(nameOffset,verOffset);fullVersion=nAgt.substring(verOffset+1);if(browserName.toLowerCase()==browserName.toUpperCase()){browserName=navigator.appName;}} if((ix=fullVersion.indexOf(";"))!=-1) fullVersion=fullVersion.substring(0,ix);if((ix=fullVersion.indexOf(" "))!=-1) fullVersion=fullVersion.substring(0,ix);majorVersion=parseInt(''+fullVersion,10);if(isNaN(majorVersion)){fullVersion=''+parseFloat(navigator.appVersion);majorVersion=parseInt(navigator.appVersion,10);} return{fullVersion:fullVersion,browserName:browserName};} function mobileCheck(){let check=false;(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check=true;})(navigator.userAgent||navigator.vendor||window.opera);return check;} function mobileAndTabletCheck(){let check=false;(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check=true;})(navigator.userAgent||navigator.vendor||window.opera);return check;} function Device(){if(mobileCheck()) return'mobile';if(mobileAndTabletCheck()) return'tablet';return'desktop';} function GetViewPort() {return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)+'x'+Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);} function GetDomain() {var hn=window.location.hostname.split('.').reverse();return hn[1]+'.'+hn[0];} function getCookie(name){var cookie=document.cookie.split("; ").find(_=>_.startsWith(name+'='));if(cookie){return cookie.replace(name+'=','');} return null;} function pageDefaults(){var browserInfo=BrowserInfo();var gaCookie=getCookie('_ga');if(gaCookie!=null){gaCookie=gaCookie.substring(6)} return{documentReferrer:document.referrer,deviceUserAgent:navigator.userAgent,dataSource:'web',deviceScreenWidth:screen.width,deviceScreenHeight:screen.height,deviceOperatingSystem:OsName(),deviceOperatingSystemVersion:deviceOperatingSystemVersion(),deviceBrowser:browserInfo.browserName,deviceBrowserVersion:browserInfo.fullVersion,device:Device(),deviceViewPortWidth:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),deviceViewPortHeight:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),deviceScreenColors:window.screen.colorDepth+'-bit',deviceDocEncoding:document.inputEncoding,location:location.href,title:document.title,domain:GetDomain(),hostname:location.origin,path:canonicalPath(),page:location.origin+location.pathname,ga_cookie_id:gaCookie,ym_cookie_id:getCookie('_ym_uid'),fbp_cookie_id:getCookie('_fbp'),fbc_cookie_id:getCookie('_fbc')};} function canonicalPath(){var canon=canonical();if(!canon) return window.location.pathname;var parsed=url.parse(canon);return parsed.pathname;} function canonicalUrl(search){var canon=canonical();if(canon) return includes('?',canon)?canon:canon+search;var url=window.location.href;var i=url.indexOf('#');return i===-1?url:url.slice(0,i);} module.exports=pageDefaults;},{"@ndhoule/includes":37,"@segment/canonical":1151,"component-url":1250}],70:[function(require,module,exports){'use strict';var bindAll=require('bind-all');var defaults=require('@ndhoule/defaults');var store=require('@segment/store');function Store(options){this.options(options);} Store.prototype.options=function(options){if(arguments.length===0) return this._options;options=options||{};defaults(options,{enabled:true});this.enabled=options.enabled&&store.enabled;this._options=options;};Store.prototype.set=function(key,value){if(!this.enabled) return false;return store.set(key,value);};Store.prototype.get=function(key){if(!this.enabled) return null;return store.get(key);};Store.prototype.remove=function(key){if(!this.enabled) return false;return store.remove(key);};module.exports=bindAll(new Store());module.exports.Store=Store;},{"@ndhoule/defaults":30,"@segment/store":1176,"bind-all":1230}],71:[function(require,module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var Entity=require('./entity');var bindAll=require('bind-all');var cookie=require('./cookie');var debug=require('debug')('analytics:user');var inherit=require('inherits');var rawCookie=require('@segment/cookie');var uuid=require('uuid');var localStorage=require('./store');User.defaults={persist:true,cookie:{key:'ajs_user_id',oldKey:'ajs_user'},localStorage:{key:'ajs_user_traits'}};function User(options){this.defaults=User.defaults;this.debug=debug;Entity.call(this,options);} inherit(User,Entity);User.prototype.id=function(id){var prev=this._getId();var ret=Entity.prototype.id.apply(this,arguments);if(prev==null) return ret;if(prev!=id&&id) this.anonymousId(null);return ret;};User.prototype.anonymousId=function(anonymousId){return'2c4832284242413caf04c3f05203665a';};User.prototype._setAnonymousIdInLocalStorage=function(id){if(!this._options.localStorageFallbackDisabled){localStorage.set('ajs_anonymous_id',id);}};User.prototype.logout=function(){Entity.prototype.logout.call(this);this.anonymousId(null);};User.prototype.load=function(){if(this._loadOldCookie()) return;Entity.prototype.load.call(this);};User.prototype._loadOldCookie=function(){var user=cookie.get(this._options.cookie.oldKey);if(!user) return false;this.id(user.id);this.traits(user.traits);cookie.remove(this._options.cookie.oldKey);return true;};module.exports=bindAll(new User());module.exports.User=User;},{"./cookie":61,"./entity":62,"./store":70,"@segment/cookie":1153,"bind-all":1230,"debug":75,"inherits":1271,"uuid":1382}],72:[function(require,module,exports){'use strict';var type=require('component-type');var clone=function clone(obj){var t=type(obj);var copy;if(t==='object'){copy={};for(var key in obj){if(obj.hasOwnProperty(key)){copy[key]=clone(obj[key]);}} return copy;} if(t==='array'){copy=new Array(obj.length);for(var i=0,l=obj.length;i=0;};is.bool=is['boolean']=function(value){return toStr.call(value)==='[object Boolean]';};is['false']=function(value){return is.bool(value)&&Boolean(Number(value))===false;};is['true']=function(value){return is.bool(value)&&Boolean(Number(value))===true;};is.date=function(value){return toStr.call(value)==='[object Date]';};is.date.valid=function(value){return is.date(value)&&!isNaN(Number(value));};is.element=function(value){return value!==undefined&&typeof HTMLElement!=='undefined'&&value instanceof HTMLElement&&value.nodeType===1;};is.error=function(value){return toStr.call(value)==='[object Error]';};is.fn=is['function']=function(value){var isAlert=typeof window!=='undefined'&&value===window.alert;if(isAlert){return true;} var str=toStr.call(value);return str==='[object Function]'||str==='[object GeneratorFunction]'||str==='[object AsyncFunction]';};is.number=function(value){return toStr.call(value)==='[object Number]';};is.infinite=function(value){return value===Infinity||value===-Infinity;};is.decimal=function(value){return is.number(value)&&!isActualNaN(value)&&!is.infinite(value)&&value%1!==0;};is.divisibleBy=function(value,n){var isDividendInfinite=is.infinite(value);var isDivisorInfinite=is.infinite(n);var isNonZeroNumber=is.number(value)&&!isActualNaN(value)&&is.number(n)&&!isActualNaN(n)&&n!==0;return isDividendInfinite||isDivisorInfinite||(isNonZeroNumber&&value%n===0);};is.integer=is['int']=function(value){return is.number(value)&&!isActualNaN(value)&&value%1===0;};is.maximum=function(value,others){if(isActualNaN(value)){throw new TypeError('NaN is not a valid value');}else if(!is.arraylike(others)){throw new TypeError('second argument must be array-like');} var len=others.length;while(--len>=0){if(value=0){if(value>others[len]){return false;}} return true;};is.nan=function(value){return!is.number(value)||value!==value;};is.even=function(value){return is.infinite(value)||(is.number(value)&&value===value&&value%2===0);};is.odd=function(value){return is.infinite(value)||(is.number(value)&&value===value&&value%2!==0);};is.ge=function(value,other){if(isActualNaN(value)||isActualNaN(other)){throw new TypeError('NaN is not a valid value');} return!is.infinite(value)&&!is.infinite(other)&&value>=other;};is.gt=function(value,other){if(isActualNaN(value)||isActualNaN(other)){throw new TypeError('NaN is not a valid value');} return!is.infinite(value)&&!is.infinite(other)&&value>other;};is.le=function(value,other){if(isActualNaN(value)||isActualNaN(other)){throw new TypeError('NaN is not a valid value');} return!is.infinite(value)&&!is.infinite(other)&&value<=other;};is.lt=function(value,other){if(isActualNaN(value)||isActualNaN(other)){throw new TypeError('NaN is not a valid value');} return!is.infinite(value)&&!is.infinite(other)&&value=start&&value<=finish);};is.object=function(value){return toStr.call(value)==='[object Object]';};is.primitive=function isPrimitive(value){if(!value){return true;} if(typeof value==='object'||is.object(value)||is.fn(value)||is.array(value)){return false;} return true;};is.hash=function(value){return is.object(value)&&value.constructor===Object&&!value.nodeType&&!value.setInterval;};is.regexp=function(value){return toStr.call(value)==='[object RegExp]';};is.string=function(value){return toStr.call(value)==='[object String]';};is.base64=function(value){return is.string(value)&&(!value.length||base64Regex.test(value));};is.hex=function(value){return is.string(value)&&(!value.length||hexRegex.test(value));};is.symbol=function(value){return typeof Symbol==='function'&&toStr.call(value)==='[object Symbol]'&&typeof symbolValueOf.call(value)==='symbol';};is.bigint=function(value){return typeof BigInt==='function'&&toStr.call(value)==='[object BigInt]'&&typeof bigIntValueOf.call(value)==='bigint';};module.exports=is;},{}],785:[function(require,module,exports){module.exports=function(){};},{"./debug":786,"_process":1231,"dup":11}],786:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],787:[function(require,module,exports){module.exports=function(){};},{"dup":10}],788:[function(require,module,exports){module.exports=function(){};},{}],789:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/extend":35,"@segment/analytics.js-integration":790,"obj-case":1323,"segmentio-facade":1348}],790:[function(require,module,exports){module.exports=function(){};},{"./protos":791,"./statics":792,"@ndhoule/defaults":30,"component-bind":1235,"debug":793,"dup":7,"extend":795,"slug-component":1356}],791:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],792:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],793:[function(require,module,exports){module.exports=function(){};},{"./debug":794,"_process":1231,"dup":11}],794:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],795:[function(require,module,exports){module.exports=function(){};},{"dup":10}],796:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":797,"global-queue":1265}],797:[function(require,module,exports){module.exports=function(){};},{"./protos":798,"./statics":799,"@ndhoule/defaults":30,"component-bind":1235,"debug":800,"dup":7,"extend":802,"slug-component":1356}],798:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],799:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],800:[function(require,module,exports){module.exports=function(){};},{"./debug":801,"_process":1231,"dup":11}],801:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],802:[function(require,module,exports){module.exports=function(){};},{"dup":10}],803:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/each":32,"@segment/analytics.js-integration":804}],804:[function(require,module,exports){module.exports=function(){};},{"./protos":805,"./statics":806,"@ndhoule/defaults":30,"component-bind":1235,"debug":807,"dup":7,"extend":809,"slug-component":1356}],805:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],806:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],807:[function(require,module,exports){module.exports=function(){};},{"./debug":808,"_process":1231,"dup":11}],808:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],809:[function(require,module,exports){module.exports=function(){};},{"dup":10}],810:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":811,"json3":1284}],811:[function(require,module,exports){module.exports=function(){};},{"./protos":812,"./statics":813,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":815,"dup":14,"slug-component":1356}],812:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":814,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],813:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],814:[function(require,module,exports){module.exports=function(){};},{"dup":17}],815:[function(require,module,exports){module.exports=function(){};},{"./debug":816,"_process":1231,"dup":11}],816:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],817:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":818,"global-queue":1265}],818:[function(require,module,exports){module.exports=function(){};},{"./protos":819,"./statics":820,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":822,"dup":14,"slug-component":1356}],819:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":821,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],820:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],821:[function(require,module,exports){module.exports=function(){};},{"dup":17}],822:[function(require,module,exports){module.exports=function(){};},{"./debug":823,"_process":1231,"dup":11}],823:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],824:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":825,"analytics-events":1215}],825:[function(require,module,exports){module.exports=function(){};},{"./protos":826,"./statics":827,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":829,"dup":14,"slug-component":1356}],826:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":828,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],827:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],828:[function(require,module,exports){module.exports=function(){};},{"dup":17}],829:[function(require,module,exports){module.exports=function(){};},{"./debug":830,"_process":1231,"dup":11}],830:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],831:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":832,"component-each":1241,"global-queue":1265,"is":1279}],832:[function(require,module,exports){module.exports=function(){};},{"./protos":833,"./statics":834,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":836,"dup":14,"slug-component":1356}],833:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":835,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],834:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],835:[function(require,module,exports){module.exports=function(){};},{"dup":17}],836:[function(require,module,exports){module.exports=function(){};},{"./debug":837,"_process":1231,"dup":11}],837:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],838:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":839,"do-when":1259,"global-queue":1265,"segmentio-facade":1348}],839:[function(require,module,exports){module.exports=function(){};},{"./protos":840,"./statics":841,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":843,"dup":14,"slug-component":1356}],840:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":842,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],841:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],842:[function(require,module,exports){module.exports=function(){};},{"dup":17}],843:[function(require,module,exports){module.exports=function(){};},{"./debug":844,"_process":1231,"dup":11}],844:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],845:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":846,"global-queue":1265,"is":1279,"obj-case":1323,"use-https":1377}],846:[function(require,module,exports){module.exports=function(){};},{"./protos":847,"./statics":848,"@ndhoule/defaults":30,"component-bind":1235,"debug":849,"dup":7,"extend":851,"slug-component":1356}],847:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],848:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],849:[function(require,module,exports){module.exports=function(){};},{"./debug":850,"_process":1231,"dup":11}],850:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],851:[function(require,module,exports){module.exports=function(){};},{"dup":10}],852:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":853,"component-each":1241,"global-queue":1265}],853:[function(require,module,exports){module.exports=function(){};},{"./protos":854,"./statics":855,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":857,"dup":14,"slug-component":1356}],854:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":856,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],855:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],856:[function(require,module,exports){module.exports=function(){};},{"dup":17}],857:[function(require,module,exports){module.exports=function(){};},{"./debug":858,"_process":1231,"dup":11}],858:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],859:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":860}],860:[function(require,module,exports){module.exports=function(){};},{"./protos":861,"./statics":862,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":864,"dup":14,"slug-component":1356}],861:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":863,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],862:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],863:[function(require,module,exports){module.exports=function(){};},{"dup":17}],864:[function(require,module,exports){module.exports=function(){};},{"./debug":865,"_process":1231,"dup":11}],865:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],866:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/alias":59,"@segment/analytics.js-integration":867,"@segment/convert-dates":1152,"obj-case":1323}],867:[function(require,module,exports){module.exports=function(){};},{"./protos":868,"./statics":869,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":871,"dup":14,"slug-component":1356}],868:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":870,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],869:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],870:[function(require,module,exports){module.exports=function(){};},{"dup":17}],871:[function(require,module,exports){module.exports=function(){};},{"./debug":872,"_process":1231,"dup":11}],872:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],873:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":874,"component-each":1241,"segmentio-facade":1348}],874:[function(require,module,exports){module.exports=function(){};},{"./protos":875,"./statics":876,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":878,"dup":14,"slug-component":1356}],875:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":877,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],876:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],877:[function(require,module,exports){module.exports=function(){};},{"dup":17}],878:[function(require,module,exports){module.exports=function(){};},{"./debug":879,"_process":1231,"dup":11}],879:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],880:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":881,"component-each":1241}],881:[function(require,module,exports){module.exports=function(){};},{"./protos":882,"./statics":883,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":885,"dup":14,"slug-component":1356}],882:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":884,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],883:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],884:[function(require,module,exports){module.exports=function(){};},{"dup":17}],885:[function(require,module,exports){module.exports=function(){};},{"./debug":886,"_process":1231,"dup":11}],886:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],887:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/extend":35,"@segment/analytics.js-integration":888}],888:[function(require,module,exports){module.exports=function(){};},{"./protos":889,"./statics":890,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":892,"dup":14,"slug-component":1356}],889:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":891,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],890:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],891:[function(require,module,exports){module.exports=function(){};},{"dup":17}],892:[function(require,module,exports){module.exports=function(){};},{"./debug":893,"_process":1231,"dup":11}],893:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],894:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":895}],895:[function(require,module,exports){module.exports=function(){};},{"./protos":896,"./statics":897,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":899,"dup":14,"slug-component":1356}],896:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":898,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],897:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],898:[function(require,module,exports){module.exports=function(){};},{"dup":17}],899:[function(require,module,exports){module.exports=function(){};},{"./debug":900,"_process":1231,"dup":11}],900:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],901:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":902,"obj-case":1323}],902:[function(require,module,exports){module.exports=function(){};},{"./protos":903,"./statics":904,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":906,"dup":14,"slug-component":1356}],903:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":905,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],904:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],905:[function(require,module,exports){module.exports=function(){};},{"dup":17}],906:[function(require,module,exports){module.exports=function(){};},{"./debug":907,"_process":1231,"dup":11}],907:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],908:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":909}],909:[function(require,module,exports){module.exports=function(){};},{"./protos":910,"./statics":911,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":913,"dup":14,"slug-component":1356}],910:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":912,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],911:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],912:[function(require,module,exports){module.exports=function(){};},{"dup":17}],913:[function(require,module,exports){module.exports=function(){};},{"./debug":914,"_process":1231,"dup":11}],914:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],915:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":916}],916:[function(require,module,exports){module.exports=function(){};},{"./protos":917,"./statics":918,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":920,"dup":14,"slug-component":1356}],917:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":919,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],918:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],919:[function(require,module,exports){module.exports=function(){};},{"dup":17}],920:[function(require,module,exports){module.exports=function(){};},{"./debug":921,"_process":1231,"dup":11}],921:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],922:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":923,"do-when":1259}],923:[function(require,module,exports){module.exports=function(){};},{"./protos":924,"./statics":925,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":927,"dup":14,"slug-component":1356}],924:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":926,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],925:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],926:[function(require,module,exports){module.exports=function(){};},{"dup":17}],927:[function(require,module,exports){module.exports=function(){};},{"./debug":928,"_process":1231,"dup":11}],928:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],929:[function(require,module,exports){'use strict';var ads=require('@segment/ad-params');var clone=require('component-clone');var cookie=require('component-cookie');var extend=require('@ndhoule/extend');var integration=require('@segment/analytics.js-integration');var json=require('json3');var keys=require('@ndhoule/keys');var localstorage=require('yields-store');var protocol=require('@segment/protocol');var send=require('@segment/send-json');var topDomain=require('@segment/top-domain');var utm=require('@segment/utm-params');var uuid=require('uuid').v4;var Queue=require('@segment/localstorage-retry');var cookieOptions={maxage:31536000000,secure:false,path:'/'};var MAX_SIZE=32*1000;var queueOptions={maxRetryDelay:360000,minRetryDelay:1000,backoffFactor:2,maxAttempts:10,maxItems:100};var Segment=(exports=module.exports=integration('Segment.io').option('apiKey','').option('apiHost','collect-analytics.hexlet.io/collect/v1').option('crossDomainIdServers',[]).option('deleteCrossDomainId',false).option('saveCrossDomainIdInLocalStorage',true).option('retryQueue',true).option('addBundledMetadata',false).option('unbundledIntegrations',[]));exports.storage=function(){return protocol()==='file:'||protocol()==='chrome-extension:'?localstorage:cookie;};exports.global=window;exports.sendJsonWithTimeout=function(url,obj,headers,timeout,fn){if(send.type!=='xhr'){send(url,obj,headers,fn);return;} var req=new XMLHttpRequest();req.onerror=fn;req.onreadystatechange=done;req.withCredentials=true;req.open('POST',url,true);req.timeout=timeout;req.ontimeout=fn;for(var k in headers){req.setRequestHeader(k,headers[k]);} req.send(json.stringify(obj));function done(){if(req.readyState===4){if(req.status===429||(req.status>=500&&req.status<600)){fn(new Error('HTTP Error '+req.status+' ('+req.statusText+')'));}else{fn(null,req);}}}};Segment.prototype.initialize=function(){var self=this;if(this.options.retryQueue){this._lsqueue=new Queue('segmentio',queueOptions,function(elem,done){var item=elem;item.msg.sentAt=new Date();Segment.sendJsonWithTimeout(item.url,item.msg,item.headers,10*1000,function(err,res){self.debug('sent %O, received %O',item.msg,[err,res]);if(err)return done(err);done(null,res);});});this._lsqueue.start();} this.ready();this.analytics.on('invoke',function(msg){var action=msg.action();var listener='on'+msg.action();self.debug('%s %o',action,msg);if(self[listener])self[listener](msg);self.ready();});this.deleteCrossDomainIdIfNeeded();if(this.isCrossDomainAnalyticsEnabled()){this.retrieveCrossDomainId();}};Segment.prototype.loaded=function(){return true;};Segment.prototype.onpage=function(page){this.enqueue('/p',page.json());};Segment.prototype.onidentify=function(identify){this.enqueue('/i',identify.json());};Segment.prototype.ongroup=function(group){this.enqueue('/g',group.json());};Segment.prototype.ontrack=function(track){var json=track.json();delete json.traits;this.enqueue('/t',json);};Segment.prototype.onalias=function(alias){var json=alias.json();var user=this.analytics.user();json.previousId=json.previousId||json.from||user.id()||user.anonymousId();json.userId=json.userId||json.to;delete json.from;delete json.to;this.enqueue('/a',json);};Segment.prototype.normalize=function(message){var msg=message;this.debug('normalize %o',msg);var user=this.analytics.user();var global=exports.global;var query=global.location.search;delete msg.options;msg.writeKey=this.options.apiKey;msg.userId=msg.userId||user.id();msg.anonymousId='2c4832284242413caf04c3f05203665a';msg.timestamp=new Date();this.debug('normalized %o',msg);return msg;};Segment.prototype.ampId=function(ctx){var ampId=this.cookie('_ga');if(ampId){if(ampId.slice(0,3)==='amp')ctx.amp={id:ampId};}};Segment.prototype.enqueue=function(path,message,fn){var url='https://'+this.options.apiHost+path;var headers={'Content-Type':'text/plain'};var msg=this.normalize(message);if(json.stringify(msg).length>MAX_SIZE){this.debug('message must be less than 32kb %O',msg);} this.debug('enqueueing %O',msg);var self=this;if(this.options.retryQueue){this._lsqueue.addItem({url:url,headers:headers,msg:msg});}else{send(url,msg,headers,function(err,res){self.debug('sent %O, received %O',msg,[err,res]);if(fn){if(err)return fn(err);fn(null,res);}});}};Segment.prototype.cookie=function(name,val){var store=Segment.storage();if(arguments.length===1)return store(name);var global=exports.global;var href=global.location.href;var domain='.'+topDomain(href);if(domain==='.')domain='';this.debug('store domain %s -> %s',href,domain);var opts=clone(cookieOptions);opts.domain=domain;this.debug('store %s, %s, %o',name,val,opts);store(name,val,opts);if(store(name))return;delete opts.domain;this.debug('fallback store %s, %s, %o',name,val,opts);store(name,val,opts);};Segment.prototype.referrerId=function(query,ctx){var stored=this.cookie('s:context.referrer');var ad;if(stored)stored=json.parse(stored);if(query)ad=ads(query);ad=ad||stored;if(!ad)return;ctx.referrer=extend(ctx.referrer||{},ad);this.cookie('s:context.referrer',json.stringify(ad));};Segment.prototype.isCrossDomainAnalyticsEnabled=function(){if(!this.options.crossDomainIdServers){return false;} return this.options.crossDomainIdServers.length>0;};Segment.prototype.retrieveCrossDomainId=function(callback){if(!this.isCrossDomainAnalyticsEnabled()){if(callback){callback('crossDomainId not enabled',null);} return;} var cachedCrossDomainId=this.getCachedCrossDomainId();if(cachedCrossDomainId){if(callback){callback(null,{crossDomainId:cachedCrossDomainId});} return;} var self=this;var writeKey=this.options.apiKey;var domains=[];for(var i=0;i=200&&xhr.status<300){callback(null,xhr.responseText?json.parse(xhr.responseText):null);}else{callback(xhr.statusText||'Unknown Error',null);}}};xhr.send();} function httpGet(url,callback){var xhr=new XMLHttpRequest();xhr.open('GET',url,true);xhr.withCredentials=true;xhr.onreadystatechange=function(){if(xhr.readyState===XMLHttpRequest.DONE){if(xhr.status>=200&&xhr.status<300){callback(null,xhr.responseText);}else{callback(xhr.statusText||xhr.responseText||'Unknown Error',null);}}};xhr.send();} function getTld(domain){return domain.split('.').splice(-2).join('.');}},{"@ndhoule/extend":35,"@ndhoule/keys":38,"@segment/ad-params":57,"@segment/analytics.js-integration":930,"@segment/localstorage-retry":1162,"@segment/protocol":1174,"@segment/send-json":1175,"@segment/top-domain":1178,"@segment/utm-params":1185,"component-clone":1236,"component-cookie":1237,"json3":1284,"uuid":937,"yields-store":1388}],930:[function(require,module,exports){arguments[4][14][0].apply(exports,arguments);},{"./protos":931,"./statics":932,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":934,"dup":14,"slug-component":1356}],931:[function(require,module,exports){arguments[4][15][0].apply(exports,arguments);},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":933,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],932:[function(require,module,exports){arguments[4][16][0].apply(exports,arguments);},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],933:[function(require,module,exports){arguments[4][17][0].apply(exports,arguments);},{"dup":17}],934:[function(require,module,exports){arguments[4][11][0].apply(exports,arguments);},{"./debug":935,"_process":1231,"dup":11}],935:[function(require,module,exports){arguments[4][12][0].apply(exports,arguments);},{"dup":12,"ms":1313}],936:[function(require,module,exports){;(function(global){var rng;var crypto=global.crypto||global.msCrypto;if(crypto&&crypto.getRandomValues){var _rnds8=new Uint8Array(16);rng=function whatwgRNG(){crypto.getRandomValues(_rnds8);return _rnds8;};} if(!rng){var _rnds=new Array(16);rng=function(){for(var i=0,r;i<16;i++){if((i&0x03)===0)r=Math.random()*0x100000000;_rnds[i]=r>>>((i&0x03)<<3)&0xff;} return _rnds;};} module.exports=rng;}).call(this,typeof window!=="undefined"&&window.document&&window.document.implementation?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});},{}],937:[function(require,module,exports){var _rng=require('./rng');var _byteToHex=[];var _hexToByte={};for(var i=0;i<256;i++){_byteToHex[i]=(i+0x100).toString(16).substr(1);_hexToByte[_byteToHex[i]]=i;} function parse(s,buf,offset){var i=(buf&&offset)||0,ii=0;buf=buf||[];s.toLowerCase().replace(/[0-9a-f]{2}/g,function(oct){if(ii<16){buf[i+ii++]=_hexToByte[oct];}});while(ii<16){buf[i+ii++]=0;} return buf;} function unparse(buf,offset){var i=offset||0,bth=_byteToHex;return bth[buf[i++]]+bth[buf[i++]]+ bth[buf[i++]]+bth[buf[i++]]+'-'+ bth[buf[i++]]+bth[buf[i++]]+'-'+ bth[buf[i++]]+bth[buf[i++]]+'-'+ bth[buf[i++]]+bth[buf[i++]]+'-'+ bth[buf[i++]]+bth[buf[i++]]+ bth[buf[i++]]+bth[buf[i++]]+ bth[buf[i++]]+bth[buf[i++]];} var _seedBytes=_rng();var _nodeId=[_seedBytes[0]|0x01,_seedBytes[1],_seedBytes[2],_seedBytes[3],_seedBytes[4],_seedBytes[5]];var _clockseq=(_seedBytes[6]<<8|_seedBytes[7])&0x3fff;var _lastMSecs=0,_lastNSecs=0;function v1(options,buf,offset){var i=buf&&offset||0;var b=buf||[];options=options||{};var clockseq=options.clockseq!==undefined?options.clockseq:_clockseq;var msecs=options.msecs!==undefined?options.msecs:new Date().getTime();var nsecs=options.nsecs!==undefined?options.nsecs:_lastNSecs+1;var dt=(msecs-_lastMSecs)+(nsecs-_lastNSecs)/10000;if(dt<0&&options.clockseq===undefined){clockseq=clockseq+1&0x3fff;} if((dt<0||msecs>_lastMSecs)&&options.nsecs===undefined){nsecs=0;} if(nsecs>=10000){throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');} _lastMSecs=msecs;_lastNSecs=nsecs;_clockseq=clockseq;msecs+=12219292800000;var tl=((msecs&0xfffffff)*10000+nsecs)%0x100000000;b[i++]=tl>>>24&0xff;b[i++]=tl>>>16&0xff;b[i++]=tl>>>8&0xff;b[i++]=tl&0xff;var tmh=(msecs/0x100000000*10000)&0xfffffff;b[i++]=tmh>>>8&0xff;b[i++]=tmh&0xff;b[i++]=tmh>>>24&0xf|0x10;b[i++]=tmh>>>16&0xff;b[i++]=clockseq>>>8|0x80;b[i++]=clockseq&0xff;var node=options.node||_nodeId;for(var n=0;n<6;n++){b[i+n]=node[n];} return buf?buf:unparse(b);} function v4(options,buf,offset){var i=buf&&offset||0;if(typeof(options)=='string'){buf=options=='binary'?new Array(16):null;options=null;} options=options||{};var rnds=options.random||(options.rng||_rng)();rnds[6]=(rnds[6]&0x0f)|0x40;rnds[8]=(rnds[8]&0x3f)|0x80;if(buf){for(var ii=0;ii<16;ii++){buf[i+ii]=rnds[ii];}} return buf||unparse(rnds);} var uuid=v4;uuid.v1=v1;uuid.v4=v4;uuid.parse=parse;uuid.unparse=unparse;module.exports=uuid;},{"./rng":936}],938:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/foldl":36,"@segment/analytics.js-integration":939,"is":1279}],939:[function(require,module,exports){module.exports=function(){};},{"./protos":940,"./statics":941,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":943,"dup":14,"slug-component":1356}],940:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":942,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],941:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],942:[function(require,module,exports){module.exports=function(){};},{"dup":17}],943:[function(require,module,exports){module.exports=function(){};},{"./debug":944,"_process":1231,"dup":11}],944:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],945:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":946,"component-each":1241,"segmentio-facade":1348}],946:[function(require,module,exports){module.exports=function(){};},{"./protos":947,"./statics":948,"@ndhoule/defaults":30,"component-bind":1235,"debug":949,"dup":7,"extend":951,"slug-component":1356}],947:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],948:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],949:[function(require,module,exports){module.exports=function(){};},{"./debug":950,"_process":1231,"dup":11}],950:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],951:[function(require,module,exports){module.exports=function(){};},{"dup":10}],952:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/defaults":30,"@segment/analytics.js-integration":953}],953:[function(require,module,exports){module.exports=function(){};},{"./protos":954,"./statics":955,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":957,"dup":14,"slug-component":1356}],954:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":956,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],955:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],956:[function(require,module,exports){module.exports=function(){};},{"dup":17}],957:[function(require,module,exports){module.exports=function(){};},{"./debug":958,"_process":1231,"dup":11}],958:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],959:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":960,"component-each":1241}],960:[function(require,module,exports){module.exports=function(){};},{"./protos":961,"./statics":962,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":964,"dup":14,"slug-component":1356}],961:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":963,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],962:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],963:[function(require,module,exports){module.exports=function(){};},{"dup":17}],964:[function(require,module,exports){module.exports=function(){};},{"./debug":965,"_process":1231,"dup":11}],965:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],966:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":967,"is":1279,"next-tick":1318}],967:[function(require,module,exports){module.exports=function(){};},{"./protos":968,"./statics":969,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":971,"dup":14,"slug-component":1356}],968:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":970,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],969:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],970:[function(require,module,exports){module.exports=function(){};},{"dup":17}],971:[function(require,module,exports){module.exports=function(){};},{"./debug":972,"_process":1231,"dup":11}],972:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],973:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":974,"component-bind":1235,"do-when":1259}],974:[function(require,module,exports){module.exports=function(){};},{"./protos":975,"./statics":976,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":978,"dup":14,"slug-component":1356}],975:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":977,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],976:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],977:[function(require,module,exports){module.exports=function(){};},{"dup":17}],978:[function(require,module,exports){module.exports=function(){};},{"./debug":979,"_process":1231,"dup":11}],979:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],980:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/foldl":36,"@segment/analytics.js-integration":981,"component-each":1241,"segmentio-facade":1348}],981:[function(require,module,exports){module.exports=function(){};},{"./protos":982,"./statics":983,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":985,"dup":14,"slug-component":1356}],982:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":984,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],983:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],984:[function(require,module,exports){module.exports=function(){};},{"dup":17}],985:[function(require,module,exports){module.exports=function(){};},{"./debug":986,"_process":1231,"dup":11}],986:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],987:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":988,"do-when":1259}],988:[function(require,module,exports){module.exports=function(){};},{"./protos":989,"./statics":990,"@ndhoule/defaults":30,"component-bind":1235,"debug":991,"dup":7,"extend":993,"slug-component":1356}],989:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],990:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],991:[function(require,module,exports){module.exports=function(){};},{"./debug":992,"_process":1231,"dup":11}],992:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],993:[function(require,module,exports){module.exports=function(){};},{"dup":10}],994:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":995}],995:[function(require,module,exports){module.exports=function(){};},{"./protos":996,"./statics":997,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":999,"dup":14,"slug-component":1356}],996:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":998,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],997:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],998:[function(require,module,exports){module.exports=function(){};},{"dup":17}],999:[function(require,module,exports){module.exports=function(){};},{"./debug":1000,"_process":1231,"dup":11}],1000:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1001:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1002}],1002:[function(require,module,exports){module.exports=function(){};},{"./protos":1003,"./statics":1004,"@ndhoule/defaults":30,"component-bind":1235,"debug":1005,"dup":7,"extend":1007,"slug-component":1356}],1003:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1004:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],1005:[function(require,module,exports){module.exports=function(){};},{"./debug":1006,"_process":1231,"dup":11}],1006:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1007:[function(require,module,exports){module.exports=function(){};},{"dup":10}],1008:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/keys":38,"@segment/analytics.js-integration":1009,"global-queue":1265,"is":1279}],1009:[function(require,module,exports){module.exports=function(){};},{"./protos":1010,"./statics":1011,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1013,"dup":14,"slug-component":1356}],1010:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1012,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1011:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1012:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1013:[function(require,module,exports){module.exports=function(){};},{"./debug":1014,"_process":1231,"dup":11}],1014:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1015:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1016,"global-queue":1265,"slug-component":1356}],1016:[function(require,module,exports){module.exports=function(){};},{"./protos":1017,"./statics":1018,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1020,"dup":14,"slug-component":1356}],1017:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1019,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1018:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1019:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1020:[function(require,module,exports){module.exports=function(){};},{"./debug":1021,"_process":1231,"dup":11}],1021:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1022:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1023,"component-each":1241,"segmentio-facade":1348,"use-https":1377}],1023:[function(require,module,exports){module.exports=function(){};},{"./protos":1024,"./statics":1025,"@ndhoule/defaults":30,"component-bind":1235,"debug":1026,"dup":7,"extend":1028,"slug-component":1356}],1024:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1025:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],1026:[function(require,module,exports){module.exports=function(){};},{"./debug":1027,"_process":1231,"dup":11}],1027:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1028:[function(require,module,exports){module.exports=function(){};},{"dup":10}],1029:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/extend":35,"@segment/analytics.js-integration":1030,"@segment/convert-dates":1152,"@segment/to-iso-string":1177,"segmentio-facade":1348}],1030:[function(require,module,exports){module.exports=function(){};},{"./protos":1031,"./statics":1032,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1034,"dup":14,"slug-component":1356}],1031:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1033,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1032:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1033:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1034:[function(require,module,exports){module.exports=function(){};},{"./debug":1035,"_process":1231,"dup":11}],1035:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1036:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/defaults":30,"@segment/analytics.js-integration":1037,"is":1279}],1037:[function(require,module,exports){module.exports=function(){};},{"./protos":1038,"./statics":1039,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1041,"dup":14,"slug-component":1356}],1038:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1040,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1039:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1040:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1041:[function(require,module,exports){module.exports=function(){};},{"./debug":1042,"_process":1231,"dup":11}],1042:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1043:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1044,"json3":1284,"use-https":1377}],1044:[function(require,module,exports){module.exports=function(){};},{"./protos":1045,"./statics":1046,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1048,"dup":14,"slug-component":1356}],1045:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1047,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1046:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1047:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1048:[function(require,module,exports){module.exports=function(){};},{"./debug":1049,"_process":1231,"dup":11}],1049:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1050:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/defaults":30,"@ndhoule/extend":35,"@ndhoule/foldl":36,"@segment/analytics.js-integration":1051,"component-each":1241,"obj-case":1323,"segmentio-facade":1348}],1051:[function(require,module,exports){module.exports=function(){};},{"./protos":1052,"./statics":1053,"@ndhoule/defaults":30,"component-bind":1235,"debug":1054,"dup":7,"extend":1056,"slug-component":1356}],1052:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1053:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],1054:[function(require,module,exports){module.exports=function(){};},{"./debug":1055,"_process":1231,"dup":11}],1055:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1056:[function(require,module,exports){module.exports=function(){};},{"dup":10}],1057:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1058,"component-clone":1236,"segmentio-facade":1348}],1058:[function(require,module,exports){module.exports=function(){};},{"./protos":1059,"./statics":1060,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1062,"dup":14,"slug-component":1356}],1059:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1061,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1060:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1061:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1062:[function(require,module,exports){module.exports=function(){};},{"./debug":1063,"_process":1231,"dup":11}],1063:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1064:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/alias":59,"@segment/analytics.js-integration":1065,"@segment/convert-dates":1152,"global-queue":1265,"to-unix-timestamp":1370}],1065:[function(require,module,exports){module.exports=function(){};},{"./protos":1066,"./statics":1067,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1069,"dup":14,"slug-component":1356}],1066:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1068,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1067:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1068:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1069:[function(require,module,exports){module.exports=function(){};},{"./debug":1070,"_process":1231,"dup":11}],1070:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1071:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1072,"component-cookie":1237,"global-queue":1265}],1072:[function(require,module,exports){module.exports=function(){};},{"./protos":1073,"./statics":1074,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1076,"dup":14,"slug-component":1356}],1073:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1075,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1074:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1075:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1076:[function(require,module,exports){module.exports=function(){};},{"./debug":1077,"_process":1231,"dup":11}],1077:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1078:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1143,"@segment/tracktor":1179,"do-when":1259}],1079:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1080,"component-each":1241,"next-tick":1318}],1080:[function(require,module,exports){module.exports=function(){};},{"./protos":1081,"./statics":1082,"@ndhoule/defaults":30,"component-bind":1235,"debug":1083,"dup":7,"extend":1085,"slug-component":1356}],1081:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1082:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],1083:[function(require,module,exports){module.exports=function(){};},{"./debug":1084,"_process":1231,"dup":11}],1084:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1085:[function(require,module,exports){module.exports=function(){};},{"dup":10}],1086:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1087,"obj-case":1323,"use-https":1377}],1087:[function(require,module,exports){module.exports=function(){};},{"./protos":1088,"./statics":1089,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1091,"dup":14,"slug-component":1356}],1088:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1090,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1089:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1090:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1091:[function(require,module,exports){module.exports=function(){};},{"./debug":1092,"_process":1231,"dup":11}],1092:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1093:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1094,"do-when":1259,"reject":1340}],1094:[function(require,module,exports){module.exports=function(){};},{"./protos":1095,"./statics":1096,"@ndhoule/defaults":30,"component-bind":1235,"debug":1097,"dup":7,"extend":1099,"slug-component":1356}],1095:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1096:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],1097:[function(require,module,exports){module.exports=function(){};},{"./debug":1098,"_process":1231,"dup":11}],1098:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1099:[function(require,module,exports){module.exports=function(){};},{"dup":10}],1100:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1101}],1101:[function(require,module,exports){module.exports=function(){};},{"./protos":1102,"./statics":1103,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1105,"dup":14,"slug-component":1356}],1102:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1104,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1103:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1104:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1105:[function(require,module,exports){module.exports=function(){};},{"./debug":1106,"_process":1231,"dup":11}],1106:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1107:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/foldl":36,"@segment/analytics.js-integration":1108,"component-each":1241,"is":1279,"isostring":1281,"json3":1284,"to-snake-case":1367,"unix-time":1374}],1108:[function(require,module,exports){module.exports=function(){};},{"./protos":1109,"./statics":1110,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1112,"dup":14,"slug-component":1356}],1109:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1111,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1110:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1111:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1112:[function(require,module,exports){module.exports=function(){};},{"./debug":1113,"_process":1231,"dup":11}],1113:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1114:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/foldl":36,"@segment/analytics.js-integration":1143,"is":1279,"omit":1329}],1115:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1116,"component-bind":1235,"do-when":1259,"next-tick":1318}],1116:[function(require,module,exports){module.exports=function(){};},{"./protos":1117,"./statics":1118,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1120,"dup":14,"slug-component":1356}],1117:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1119,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1118:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1119:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1120:[function(require,module,exports){module.exports=function(){};},{"./debug":1121,"_process":1231,"dup":11}],1121:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1122:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/each":32,"@segment/analytics.js-integration":1123,"to-no-case":1366}],1123:[function(require,module,exports){module.exports=function(){};},{"./protos":1124,"./statics":1125,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1127,"dup":14,"slug-component":1356}],1124:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1126,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1125:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1126:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1127:[function(require,module,exports){module.exports=function(){};},{"./debug":1128,"_process":1231,"dup":11}],1128:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1129:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1130,"extend":1262,"reject":1340}],1130:[function(require,module,exports){module.exports=function(){};},{"./protos":1131,"./statics":1132,"@ndhoule/defaults":30,"component-bind":1235,"debug":1134,"dup":7,"extend":1133,"slug-component":1356}],1131:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1132:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],1133:[function(require,module,exports){module.exports=function(){};},{"dup":10}],1134:[function(require,module,exports){module.exports=function(){};},{"./debug":1135,"_process":1231,"dup":11}],1135:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1136:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1137,"@segment/fmt":1156,"do-when":1259,"reject":1340}],1137:[function(require,module,exports){module.exports=function(){};},{"./protos":1138,"./statics":1139,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1141,"dup":14,"slug-component":1356}],1138:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1140,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1139:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1140:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1141:[function(require,module,exports){module.exports=function(){};},{"./debug":1142,"_process":1231,"dup":11}],1142:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1143:[function(require,module,exports){module.exports=function(){};},{"./protos":1144,"./statics":1145,"@ndhoule/defaults":30,"component-bind":1235,"debug":1146,"dup":7,"extend":1262,"slug-component":1356}],1144:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1145:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],1146:[function(require,module,exports){module.exports=function(){};},{"./debug":1147,"_process":1231,"dup":11}],1147:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1148:[function(require,module,exports){module.exports=function emptyMiddleware(chain){chain.next(chain.payload)}},{"deep-equal":1257}],1149:[function(require,module,exports){module.exports={}},{}],1150:[function(require,module,exports){var utf8Encode=require('utf8-encode');var keyStr='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';module.exports=encode;function encode(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;input=utf8Encode(input);while(i>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;} output=output+ keyStr.charAt(enc1)+keyStr.charAt(enc2)+ keyStr.charAt(enc3)+keyStr.charAt(enc4);} return output;}},{"utf8-encode":1378}],1151:[function(require,module,exports){'use strict';function canonical(){var tags=document.getElementsByTagName('link');for(var i=0,tag;tag=tags[i];i++){if(tag.getAttribute('rel')==='canonical'){return tag.getAttribute('href');}}} module.exports=canonical;},{}],1152:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/clone":29,"@ndhoule/each":32,"component-type":1249}],1153:[function(require,module,exports){'use strict';var debug=require('debug')('cookie');module.exports=function(name,value,options){switch(arguments.length){case 3:case 2:return set(name,value,options);case 1:return get(name);default:return all();}};function set(name,value,options){options=options||{};var str=encode(name)+'='+encode(value);if(value==null)options.maxage=-1;if(options.maxage){options.expires=new Date(+new Date()+options.maxage);} if(options.path)str+='; path='+options.path;if(options.domain)str+='; domain='+options.domain;if(options.expires)str+='; expires='+options.expires.toUTCString();if(options.sameSite)str+='; SameSite='+options.sameSite;if(options.secure)str+='; secure';document.cookie=str;} function all(){var str;try{str=document.cookie;}catch(err){if(typeof console!=='undefined'&&typeof console.error==='function'){console.error(err.stack||err);} return{};} return parse(str);} function get(name){return all()[name];} function parse(str){var obj={};var pairs=str.split(/ *; */);var pair;if(pairs[0]=='')return obj;for(var i=0;ithis.maxAttempts)return false;return true;};Queue.prototype.getDelay=function(attemptNumber){var ms=this.backoff.MIN_RETRY_DELAY*Math.pow(this.backoff.FACTOR,attemptNumber);if(this.backoff.JITTER){var rand=Math.random();var deviation=Math.floor(rand*this.backoff.JITTER*ms);if(Math.floor(rand*10)<5){ms-=deviation;}else{ms+=deviation;}} return Number(Math.min(ms,this.backoff.MAX_RETRY_DELAY).toPrecision(1));};Queue.prototype.addItem=function(item){this._enqueue({item:item,attemptNumber:0,time:this._schedule.now()});};Queue.prototype.requeue=function(item,attemptNumber,error){if(this.shouldRetry(item,attemptNumber,error)){this._enqueue({item:item,attemptNumber:attemptNumber,time:this._schedule.now()+this.getDelay(attemptNumber)});}else{this.emit('discard',item,attemptNumber);}};Queue.prototype._enqueue=function(entry){var queue=this._store.get(this.keys.QUEUE)||[];queue=queue.slice(-(this.maxItems-1));queue.push(entry);queue=queue.sort(function(a,b){return a.time-b.time;});this._store.set(this.keys.QUEUE,queue);if(this._running){this._processHead();}};Queue.prototype._processHead=function(){var self=this;var store=this._store;this._schedule.cancel(this._processId);var queue=store.get(this.keys.QUEUE)||[];var inProgress=store.get(this.keys.IN_PROGRESS)||{};var now=this._schedule.now();var toRun=[];function enqueue(el,id){toRun.push({item:el.item,done:function handle(err,res){var inProgress=store.get(self.keys.IN_PROGRESS)||{};delete inProgress[id];store.set(self.keys.IN_PROGRESS,inProgress);self.emit('processed',err,res,el.item);if(err){self.requeue(el.item,el.attemptNumber+1,err);}}});} var inProgressSize=Object.keys(inProgress).length;while(queue.length&&queue[0].time<=now&&inProgressSize++0){this._processId=this._schedule.run(this._processHead,queue[0].time-now);}};Queue.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);};Queue.prototype._checkReclaim=function(){var self=this;function tryReclaim(store){store.set(self.keys.RECLAIM_START,self.id);store.set(self.keys.ACK,self._schedule.now());self._schedule.run(function(){if(store.get(self.keys.RECLAIM_START)!==self.id)return;store.set(self.keys.RECLAIM_END,self.id);self._schedule.run(function(){if(store.get(self.keys.RECLAIM_END)!==self.id)return;if(store.get(self.keys.RECLAIM_START)!==self.id)return;self._reclaim(store.id);},self.timeouts.RECLAIM_WAIT);},self.timeouts.RECLAIM_WAIT);} function findOtherQueues(name){var res=[];var storage=self._store.engine;for(var i=0;i=hour)return(ms/hour).toFixed(1)+'h';if(ms>=min)return(ms/min).toFixed(1)+'m';if(ms>=sec)return(ms/sec|0)+'s';return ms+'ms';};debug.enabled=function(name){for(var i=0,len=debug.skips.length;idocument.w=window') storageContainer.close() storageOwner=storageContainer.w.frames[0].document storage=storageOwner.createElement('div')}catch(e){storage=doc.createElement('div') storageOwner=doc.body} var withIEStorage=function(storeFunction){return function(){var args=Array.prototype.slice.call(arguments,0) args.unshift(storage) storageOwner.appendChild(storage) storage.addBehavior('#default#userData') storage.load(localStorageName) var result=storeFunction.apply(store,args) storageOwner.removeChild(storage) return result}} var forbiddenCharsRegex=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g") var ieKeyFix=function(key){return key.replace(/^d/,'___$&').replace(forbiddenCharsRegex,'___')} store.set=withIEStorage(function(storage,key,val){key=ieKeyFix(key) if(val===undefined){return store.remove(key)} storage.setAttribute(key,store.serialize(val)) storage.save(localStorageName) return val}) store.get=withIEStorage(function(storage,key,defaultVal){key=ieKeyFix(key) var val=store.deserialize(storage.getAttribute(key)) return(val===undefined?defaultVal:val)}) store.remove=withIEStorage(function(storage,key){key=ieKeyFix(key) storage.removeAttribute(key) storage.save(localStorageName)}) store.clear=withIEStorage(function(storage){var attributes=storage.XMLDocument.documentElement.attributes storage.load(localStorageName) for(var i=attributes.length-1;i>=0;i--){storage.removeAttribute(attributes[i].name)} storage.save(localStorageName)}) store.forEach=withIEStorage(function(storage,callback){var attributes=storage.XMLDocument.documentElement.attributes for(var i=0,attr;attr=attributes[i];++i){callback(attr.name,store.deserialize(storage.getAttribute(attr.name)))}})} try{var testKey='__storejs__' store.set(testKey,testKey) if(store.get(testKey)!=testKey){store.disabled=true} store.remove(testKey)}catch(e){store.disabled=true} store.enabled=!store.disabled return store}())}).call(this,typeof window!=="undefined"&&window.document&&window.document.implementation?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{})},{"json3":1284}],1177:[function(require,module,exports){module.exports=function(){};},{}],1178:[function(require,module,exports){'use strict';var parse=require('component-url').parse;var cookie=require('component-cookie');function domain(url){var cookie=exports.cookie;var levels=exports.levels(url);for(var i=0;i=0;--i){levels.push(parts.slice(i).join('.'));} return levels;};domain.cookie=cookie;exports=module.exports=domain;},{"component-cookie":1237,"component-url":1250}],1179:[function(require,module,exports){module.exports=function(){};},{}],1180:[function(require,module,exports){module.exports=function(){};},{}],1181:[function(require,module,exports){module.exports=function(){};},{"./matchers":1182,"./store":1183,"./transformers":1184}],1182:[function(require,module,exports){module.exports=function(){};},{"lodash.get":1296}],1183:[function(require,module,exports){module.exports=function(){};},{}],1184:[function(require,module,exports){module.exports=function(){};},{"js-md5":1282,"lodash.get":1296,"lodash.set":1297,"lodash.unset":1298,"math-float64-ldexp":1308}],1185:[function(require,module,exports){'use strict';var foldl=require('@ndhoule/foldl');var parse=require('component-querystring').parse;var has=Object.prototype.hasOwnProperty;function utm(query){if(query.charAt(0)==='?'){query=query.substring(1);} query=query.replace(/\?/g,'&');var param;var params=parse(query);var results={};for(var key in params){if(has.call(params,key)){if(key.substr(0,4)==='utm_'){param=key.substr(4);if(param==='campaign')param='name';results[param]=params[key];}}} return results;} var allowedKeys={name:true,term:true,source:true,medium:true,content:true};function strict(query){return foldl(function(acc,val,key){if(has.call(allowedKeys,key))acc[key]=val;return acc;},{},utm(query));} module.exports=utm;module.exports.strict=strict;},{"@ndhoule/foldl":36,"component-querystring":1247}],1186:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1187}],1187:[function(require,module,exports){module.exports=function(){};},{"./protos":1188,"./statics":1189,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1191,"dup":14,"slug-component":1356}],1188:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1190,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1189:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1190:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1191:[function(require,module,exports){module.exports=function(){};},{"./debug":1192,"_process":1231,"dup":11}],1192:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1193:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@ndhoule/each":32,"@segment/analytics.js-integration":1194,"change-case":1233,"do-when":1259,"is":1279,"obj-case":1323}],1194:[function(require,module,exports){module.exports=function(){};},{"./protos":1195,"./statics":1196,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1198,"dup":14,"slug-component":1356}],1195:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1197,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1196:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1197:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1198:[function(require,module,exports){module.exports=function(){};},{"./debug":1199,"_process":1231,"dup":11}],1199:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1200:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1201,"@segment/load-script":1160,"isobject":1207}],1201:[function(require,module,exports){module.exports=function(){};},{"./protos":1202,"./statics":1203,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1205,"dup":14,"slug-component":1356}],1202:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1204,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1203:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1204:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1205:[function(require,module,exports){module.exports=function(){};},{"./debug":1206,"_process":1231,"dup":11}],1206:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1207:[function(require,module,exports){module.exports=function(){};},{"dup":163,"isarray":1280}],1208:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1209}],1209:[function(require,module,exports){module.exports=function(){};},{"./protos":1210,"./statics":1211,"@ndhoule/defaults":30,"component-bind":1235,"debug":1212,"dup":7,"extend":1214,"slug-component":1356}],1210:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1211:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],1212:[function(require,module,exports){module.exports=function(){};},{"./debug":1213,"_process":1231,"dup":11}],1213:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1214:[function(require,module,exports){module.exports=function(){};},{"dup":10}],1215:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/foldl":36,"@ndhoule/map":39}],1216:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1217}],1217:[function(require,module,exports){module.exports=function(){};},{"./protos":1218,"./statics":1219,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1221,"dup":14,"slug-component":1356}],1218:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1220,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1219:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1220:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1221:[function(require,module,exports){module.exports=function(){};},{"./debug":1222,"_process":1231,"dup":11}],1222:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1223:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1224}],1224:[function(require,module,exports){module.exports=function(){};},{"./protos":1225,"./statics":1226,"@ndhoule/clone":29,"@ndhoule/defaults":30,"@ndhoule/extend":35,"component-bind":1235,"debug":1228,"dup":14,"slug-component":1356}],1225:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1227,"component-emitter":1243,"dup":15,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1226:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":16}],1227:[function(require,module,exports){module.exports=function(){};},{"dup":17}],1228:[function(require,module,exports){module.exports=function(){};},{"./debug":1229,"_process":1231,"dup":11}],1229:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1230:[function(require,module,exports){'use strict';var bind=require('component-bind');function bindAll(obj){for(var key in obj){var val=obj[key];if(typeof val==='function'){obj[key]=bind(obj,obj[key]);}} return obj;} module.exports=bindAll;},{"component-bind":1235}],1231:[function(require,module,exports){var process=module.exports={};var cachedSetTimeout;var cachedClearTimeout;function defaultSetTimout(){throw new Error('setTimeout has not been defined');} function defaultClearTimeout(){throw new Error('clearTimeout has not been defined');} (function(){try{if(typeof setTimeout==='function'){cachedSetTimeout=setTimeout;}else{cachedSetTimeout=defaultSetTimout;}}catch(e){cachedSetTimeout=defaultSetTimout;} try{if(typeof clearTimeout==='function'){cachedClearTimeout=clearTimeout;}else{cachedClearTimeout=defaultClearTimeout;}}catch(e){cachedClearTimeout=defaultClearTimeout;}}()) function runTimeout(fun){if(cachedSetTimeout===setTimeout){return setTimeout(fun,0);} if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0);} try{return cachedSetTimeout(fun,0);}catch(e){try{return cachedSetTimeout.call(null,fun,0);}catch(e){return cachedSetTimeout.call(this,fun,0);}}} function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){return clearTimeout(marker);} if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker);} try{return cachedClearTimeout(marker);}catch(e){try{return cachedClearTimeout.call(null,marker);}catch(e){return cachedClearTimeout.call(this,marker);}}} var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return;} draining=false;if(currentQueue.length){queue=currentQueue.concat(queue);}else{queueIndex=-1;} if(queue.length){drainQueue();}} function drainQueue(){if(draining){return;} var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex1){for(var i=1;i=31);} exports.formatters.j=function(v){return JSON.stringify(v);};function formatArgs(){var args=arguments;var useColors=this.useColors;args[0]=(useColors?'%c':'') +this.namespace +(useColors?' %c':' ') +args[0] +(useColors?'%c ':' ') +'+'+exports.humanize(this.diff);if(!useColors)return args;var c='color: '+this.color;args=[args[0],c,'color: inherit'].concat(Array.prototype.slice.call(args,1));var index=0;var lastC=0;args[0].replace(/%[a-z%]/g,function(match){if('%%'===match)return;index++;if('%c'===match){lastC=index;}});args.splice(lastC,0,c);return args;} function log(){return'object'===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments);} function save(namespaces){try{if(null==namespaces){exports.storage.removeItem('debug');}else{exports.storage.debug=namespaces;}}catch(e){}} function load(){var r;try{r=exports.storage.debug;}catch(e){} return r;} exports.enable(load());function localstorage(){try{return window.localStorage;}catch(e){}}},{"./debug":1239}],1239:[function(require,module,exports){exports=module.exports=debug;exports.coerce=coerce;exports.disable=disable;exports.enable=enable;exports.enabled=enabled;exports.humanize=require('ms');exports.names=[];exports.skips=[];exports.formatters={};var prevColor=0;var prevTime;function selectColor(){return exports.colors[prevColor++%exports.colors.length];} function debug(namespace){function disabled(){} disabled.enabled=false;function enabled(){var self=enabled;var curr=+new Date();var ms=curr-(prevTime||curr);self.diff=ms;self.prev=prevTime;self.curr=curr;prevTime=curr;if(null==self.useColors)self.useColors=exports.useColors();if(null==self.color&&self.useColors)self.color=selectColor();var args=Array.prototype.slice.call(arguments);args[0]=exports.coerce(args[0]);if('string'!==typeof args[0]){args=['%o'].concat(args);} var index=0;args[0]=args[0].replace(/%([a-z%])/g,function(match,format){if(match==='%%')return match;index++;var formatter=exports.formatters[format];if('function'===typeof formatter){var val=args[index];match=formatter.call(self,val);args.splice(index,1);index--;} return match;});if('function'===typeof exports.formatArgs){args=exports.formatArgs.apply(self,args);} var logFn=enabled.log||exports.log||console.log.bind(console);logFn.apply(self,args);} enabled.enabled=true;var fn=exports.enabled(namespace)?enabled:disabled;fn.namespace=namespace;return fn;} function enable(namespaces){exports.save(namespaces);var split=(namespaces||'').split(/[\s,]+/);var len=split.length;for(var i=0;i10000)return;var match=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);if(!match)return;var n=parseFloat(match[1]);var type=(match[2]||'ms').toLowerCase();switch(type){case'years':case'year':case'yrs':case'yr':case'y':return n*y;case'days':case'day':case'd':return n*d;case'hours':case'hour':case'hrs':case'hr':case'h':return n*h;case'minutes':case'minute':case'mins':case'min':case'm':return n*m;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;}} function short(ms){if(ms>=d)return Math.round(ms/d)+'d';if(ms>=h)return Math.round(ms/h)+'h';if(ms>=m)return Math.round(ms/m)+'m';if(ms>=s)return Math.round(ms/s)+'s';return ms+'ms';} function long(ms){return plural(ms,d,'day')||plural(ms,h,'hour')||plural(ms,m,'minute')||plural(ms,s,'second')||ms+' ms';} function plural(ms,n,name){if(ms0&&typeof x[0]!=='number'){return false;} return true;} function objEquiv(a,b,opts){var i,key;if(typeof a!==typeof b){return false;} if(isUndefinedOrNull(a)||isUndefinedOrNull(b)){return false;} if(a.prototype!==b.prototype){return false;} if(isArguments(a)!==isArguments(b)){return false;} var aIsRegex=isRegex(a);var bIsRegex=isRegex(b);if(aIsRegex!==bIsRegex){return false;} if(aIsRegex||bIsRegex){return a.source===b.source&&flags(a)===flags(b);} if(isDate(a)&&isDate(b)){return getTime.call(a)===getTime.call(b);} var aIsBuffer=isBuffer(a);var bIsBuffer=isBuffer(b);if(aIsBuffer!==bIsBuffer){return false;} if(aIsBuffer||bIsBuffer){if(a.length!==b.length){return false;} for(i=0;i=0;i--){if(ka[i]!=kb[i]){return false;}} for(i=ka.length-1;i>=0;i--){key=ka[i];if(!deepEqual(a[key],b[key],opts)){return false;}} return true;} module.exports=deepEqual;},{"is-arguments":1272,"is-date-object":1274,"is-regex":1277,"object-is":1325,"object-keys":1327,"regexp.prototype.flags":1337}],1258:[function(require,module,exports){'use strict';var keys=require('object-keys');var hasSymbols=typeof Symbol==='function'&&typeof Symbol('foo')==='symbol';var toStr=Object.prototype.toString;var concat=Array.prototype.concat;var origDefineProperty=Object.defineProperty;var isFunction=function(fn){return typeof fn==='function'&&toStr.call(fn)==='[object Function]';};var arePropertyDescriptorsSupported=function(){var obj={};try{origDefineProperty(obj,'x',{enumerable:false,value:obj});for(var _ in obj){return false;} return obj.x===obj;}catch(e){return false;}};var supportsDescriptors=origDefineProperty&&arePropertyDescriptorsSupported();var defineProperty=function(object,name,value,predicate){if(name in object&&(!isFunction(predicate)||!predicate())){return;} if(supportsDescriptors){origDefineProperty(object,name,{configurable:true,enumerable:false,value:value,writable:true});}else{object[name]=value;}};var defineProperties=function(object,map){var predicates=arguments.length>2?arguments[2]:{};var props=keys(map);if(hasSymbols){props=concat.call(props,Object.getOwnPropertySymbols(map));} for(var i=0;i
a';innerHTMLBug=!bugTestDiv.getElementsByTagName('link').length;bugTestDiv=undefined;} var map={legend:[1,'
','
'],tr:[2,'','
'],col:[2,'','
'],_default:innerHTMLBug?[1,'X
','
']:[0,'','']};map.td=map.th=[3,'','
'];map.option=map.optgroup=[1,''];map.thead=map.tbody=map.colgroup=map.caption=map.tfoot=[1,'','
'];map.polyline=map.ellipse=map.polygon=map.circle=map.text=map.line=map.path=map.rect=map.g=[1,'',''];function parse(html,doc){if('string'!=typeof html)throw new TypeError('String expected');if(!doc)doc=document;var m=/<([\w:]+)/.exec(html);if(!m)return doc.createTextNode(html);html=html.replace(/^\s+|\s+$/g,'');var tag=m[1];if(tag=='body'){var el=doc.createElement('html');el.innerHTML=html;return el.removeChild(el.lastChild);} var wrap=map[tag]||map._default;var depth=wrap[0];var prefix=wrap[1];var suffix=wrap[2];var el=doc.createElement('div');el.innerHTML=prefix+html+suffix;while(depth--)el=el.lastChild;if(el.firstChild==el.lastChild){return el.removeChild(el.firstChild);} var fragment=doc.createDocumentFragment();while(el.firstChild){fragment.appendChild(el.removeChild(el.firstChild));} return fragment;}},{}],1261:[function(require,module,exports){module.exports=function(){};},{"no-case":1319}],1262:[function(require,module,exports){'use strict';var hasOwn=Object.prototype.hasOwnProperty;var toStr=Object.prototype.toString;var defineProperty=Object.defineProperty;var gOPD=Object.getOwnPropertyDescriptor;var isArray=function isArray(arr){if(typeof Array.isArray==='function'){return Array.isArray(arr);} return toStr.call(arr)==='[object Array]';};var isPlainObject=function isPlainObject(obj){if(!obj||toStr.call(obj)!=='[object Object]'){return false;} var hasOwnConstructor=hasOwn.call(obj,'constructor');var hasIsPrototypeOf=obj.constructor&&obj.constructor.prototype&&hasOwn.call(obj.constructor.prototype,'isPrototypeOf');if(obj.constructor&&!hasOwnConstructor&&!hasIsPrototypeOf){return false;} var key;for(key in obj){} return typeof key==='undefined'||hasOwn.call(obj,key);};var setProperty=function setProperty(target,options){if(defineProperty&&options.name==='__proto__'){defineProperty(target,options.name,{enumerable:true,configurable:true,value:options.newValue,writable:true});}else{target[options.name]=options.newValue;}};var getProperty=function getProperty(obj,name){if(name==='__proto__'){if(!hasOwn.call(obj,name)){return void 0;}else if(gOPD){return gOPD(obj,name).value;}} return obj[name];};module.exports=function extend(){var options,name,src,copy,copyIsArray,clone;var target=arguments[0];var i=1;var length=arguments.length;var deep=false;if(typeof target==='boolean'){deep=target;target=arguments[1]||{};i=2;} if(target==null||(typeof target!=='object'&&typeof target!=='function')){target={};} for(;i=0&&toStr.call(value)!=='[object Array]'&&toStr.call(value.callee)==='[object Function]';};var supportsStandardArguments=(function(){return isStandardArguments(arguments);}());isStandardArguments.isLegacyArguments=isLegacyArguments;module.exports=supportsStandardArguments?isStandardArguments:isLegacyArguments;},{}],1273:[function(require,module,exports){module.exports=function(){};},{}],1274:[function(require,module,exports){'use strict';var getDay=Date.prototype.getDay;var tryDateObject=function tryDateObject(value){try{getDay.call(value);return true;}catch(e){return false;}};var toStr=Object.prototype.toString;var dateClass='[object Date]';var hasToStringTag=typeof Symbol==='function'&&typeof Symbol.toStringTag==='symbol';module.exports=function isDateObject(value){if(typeof value!=='object'||value===null){return false;} return hasToStringTag?tryDateObject(value):toStr.call(value)===dateClass;};},{}],1275:[function(require,module,exports){module.exports=function(){};},{}],1276:[function(require,module,exports){module.exports=function(){};},{"lower-case":1300}],1277:[function(require,module,exports){'use strict';var has=require('has');var regexExec=RegExp.prototype.exec;var gOPD=Object.getOwnPropertyDescriptor;var tryRegexExecCall=function tryRegexExec(value){try{var lastIndex=value.lastIndex;value.lastIndex=0;regexExec.call(value);return true;}catch(e){return false;}finally{value.lastIndex=lastIndex;}};var toStr=Object.prototype.toString;var regexClass='[object RegExp]';var hasToStringTag=typeof Symbol==='function'&&typeof Symbol.toStringTag==='symbol';module.exports=function isRegex(value){if(!value||typeof value!=='object'){return false;} if(!hasToStringTag){return toStr.call(value)===regexClass;} var descriptor=gOPD(value,'lastIndex');var hasLastIndexDataProperty=descriptor&&has(descriptor,'value');if(!hasLastIndexDataProperty){return false;} return tryRegexExecCall(value);};},{"has":1269}],1278:[function(require,module,exports){module.exports=function(){};},{"upper-case":1376}],1279:[function(require,module,exports){arguments[4][784][0].apply(exports,arguments)},{"dup":784}],1280:[function(require,module,exports){module.exports=function(){};},{}],1281:[function(require,module,exports){module.exports=function(){};},{}],1282:[function(require,module,exports){module.exports=function(){};},{"_process":1231}],1283:[function(require,module,exports){module.exports=function(){};},{"_process":1231}],1284:[function(require,module,exports){(function(global){/*! JSON v3.3.2 | https://bestiejs.github.io/json3 | Copyright 2012-2015, Kit Cambridge, Benjamin Tan | http://kit.mit-license.org */ ;(function(){var isLoader=typeof define==="function"&&define.amd;var objectTypes={"function":true,"object":true};var freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports;var root=objectTypes[typeof window]&&window||this,freeGlobal=freeExports&&objectTypes[typeof module]&&module&&!module.nodeType&&typeof global=="object"&&global;if(freeGlobal&&(freeGlobal.global===freeGlobal||freeGlobal.window===freeGlobal||freeGlobal.self===freeGlobal)){root=freeGlobal;} function runInContext(context,exports){context||(context=root.Object());exports||(exports=root.Object());var Number=context.Number||root.Number,String=context.String||root.String,Object=context.Object||root.Object,Date=context.Date||root.Date,SyntaxError=context.SyntaxError||root.SyntaxError,TypeError=context.TypeError||root.TypeError,Math=context.Math||root.Math,nativeJSON=context.JSON||root.JSON;if(typeof nativeJSON=="object"&&nativeJSON){exports.stringify=nativeJSON.stringify;exports.parse=nativeJSON.parse;} var objectProto=Object.prototype,getClass=objectProto.toString,isProperty=objectProto.hasOwnProperty,undefined;function attempt(func,errorFunc){try{func();}catch(exception){if(errorFunc){errorFunc();}}} var isExtended=new Date(-3509827334573292);attempt(function(){isExtended=isExtended.getUTCFullYear()==-109252&&isExtended.getUTCMonth()===0&&isExtended.getUTCDate()===1&&isExtended.getUTCHours()==10&&isExtended.getUTCMinutes()==37&&isExtended.getUTCSeconds()==6&&isExtended.getUTCMilliseconds()==708;});function has(name){if(has[name]!=null){return has[name];} var isSupported;if(name=="bug-string-char-index"){isSupported="a"[0]!="a";}else if(name=="json"){isSupported=has("json-stringify")&&has("date-serialization")&&has("json-parse");}else if(name=="date-serialization"){isSupported=has("json-stringify")&&isExtended;if(isSupported){var stringify=exports.stringify;attempt(function(){isSupported=stringify(new Date(-8.64e15))=='"-271821-04-20T00:00:00.000Z"'&&stringify(new Date(8.64e15))=='"+275760-09-13T00:00:00.000Z"'&&stringify(new Date(-621987552e5))=='"-000001-01-01T00:00:00.000Z"'&&stringify(new Date(-1))=='"1969-12-31T23:59:59.999Z"';});}}else{var value,serialized='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if(name=="json-stringify"){var stringify=exports.stringify,stringifySupported=typeof stringify=="function";if(stringifySupported){(value=function(){return 1;}).toJSON=value;attempt(function(){stringifySupported=stringify(0)==="0"&&stringify(Number())==="0"&&stringify(String())=='""'&&stringify(getClass)===undefined&&stringify(undefined)===undefined&&stringify()===undefined&&stringify(value)==="1"&&stringify([value])=="[1]"&&stringify([undefined])=="[null]"&&stringify(null)=="null"&&stringify([undefined,getClass,null])=="[null,null,null]"&&stringify({"a":[value,true,false,null,"\x00\b\n\f\r\t"]})==serialized&&stringify(null,value)==="1"&&stringify([1,2],null,1)=="[\n 1,\n 2\n]";},function(){stringifySupported=false;});} isSupported=stringifySupported;} if(name=="json-parse"){var parse=exports.parse,parseSupported;if(typeof parse=="function"){attempt(function(){if(parse("0")===0&&!parse(false)){value=parse(serialized);parseSupported=value["a"].length==5&&value["a"][0]===1;if(parseSupported){attempt(function(){parseSupported=!parse('"\t"');});if(parseSupported){attempt(function(){parseSupported=parse("01")!==1;});} if(parseSupported){attempt(function(){parseSupported=parse("1.")!==1;});}}}},function(){parseSupported=false;});} isSupported=parseSupported;}} return has[name]=!!isSupported;} has["bug-string-char-index"]=has["date-serialization"]=has["json"]=has["json-stringify"]=has["json-parse"]=null;if(!has("json")){var functionClass="[object Function]",dateClass="[object Date]",numberClass="[object Number]",stringClass="[object String]",arrayClass="[object Array]",booleanClass="[object Boolean]";var charIndexBuggy=has("bug-string-char-index");var forOwn=function(object,callback){var size=0,Properties,dontEnums,property;(Properties=function(){this.valueOf=0;}).prototype.valueOf=0;dontEnums=new Properties();for(property in dontEnums){if(isProperty.call(dontEnums,property)){size++;}} Properties=dontEnums=null;if(!size){dontEnums=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"];forOwn=function(object,callback){var isFunction=getClass.call(object)==functionClass,property,length;var hasProperty=!isFunction&&typeof object.constructor!="function"&&objectTypes[typeof object.hasOwnProperty]&&object.hasOwnProperty||isProperty;for(property in object){if(!(isFunction&&property=="prototype")&&hasProperty.call(object,property)){callback(property);}} for(length=dontEnums.length;property=dontEnums[--length];){if(hasProperty.call(object,property)){callback(property);}}};}else{forOwn=function(object,callback){var isFunction=getClass.call(object)==functionClass,property,isConstructor;for(property in object){if(!(isFunction&&property=="prototype")&&isProperty.call(object,property)&&!(isConstructor=property==="constructor")){callback(property);}} if(isConstructor||isProperty.call(object,(property="constructor"))){callback(property);}};} return forOwn(object,callback);};if(!has("json-stringify")&&!has("date-serialization")){var Escapes={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"};var leadingZeroes="000000";var toPaddedString=function(width,value){return(leadingZeroes+(value||0)).slice(-width);};var serializeDate=function(value){var getData,year,month,date,time,hours,minutes,seconds,milliseconds;if(!isExtended){var floor=Math.floor;var Months=[0,31,59,90,120,151,181,212,243,273,304,334];var getDay=function(year,month){return Months[month]+365*(year-1970)+floor((year-1969+(month=+(month>1)))/4)-floor((year-1901+month)/100)+floor((year-1601+month)/400);};getData=function(value){date=floor(value/864e5);for(year=floor(date/365.2425)+1970-1;getDay(year+1,0)<=date;year++);for(month=floor((date-getDay(year,0))/30.42);getDay(year,month+1)<=date;month++);date=1+date-getDay(year,month);time=(value%864e5+864e5)%864e5;hours=floor(time/36e5)%24;minutes=floor(time/6e4)%60;seconds=floor(time/1e3)%60;milliseconds=time%1e3;};}else{getData=function(value){year=value.getUTCFullYear();month=value.getUTCMonth();date=value.getUTCDate();hours=value.getUTCHours();minutes=value.getUTCMinutes();seconds=value.getUTCSeconds();milliseconds=value.getUTCMilliseconds();};} serializeDate=function(value){if(value>-1/0&&value<1/0){getData(value);value=(year<=0||year>=1e4?(year<0?"-":"+")+toPaddedString(6,year<0?-year:year):toPaddedString(4,year))+ "-"+toPaddedString(2,month+1)+"-"+toPaddedString(2,date)+ "T"+toPaddedString(2,hours)+":"+toPaddedString(2,minutes)+":"+toPaddedString(2,seconds)+ "."+toPaddedString(3,milliseconds)+"Z";year=month=date=hours=minutes=seconds=milliseconds=null;}else{value=null;} return value;};return serializeDate(value);};if(has("json-stringify")&&!has("date-serialization")){function dateToJSON(key){return serializeDate(this);} var nativeStringify=exports.stringify;exports.stringify=function(source,filter,width){var nativeToJSON=Date.prototype.toJSON;Date.prototype.toJSON=dateToJSON;var result=nativeStringify(source,filter,width);Date.prototype.toJSON=nativeToJSON;return result;}}else{var unicodePrefix="\\u00";var escapeChar=function(character){var charCode=character.charCodeAt(0),escaped=Escapes[charCode];if(escaped){return escaped;} return unicodePrefix+toPaddedString(2,charCode.toString(16));};var reEscape=/[\x00-\x1f\x22\x5c]/g;var quote=function(value){reEscape.lastIndex=0;return'"'+ (reEscape.test(value)?value.replace(reEscape,escapeChar):value)+ '"';};var serialize=function(property,object,callback,properties,whitespace,indentation,stack){var value,type,className,results,element,index,length,prefix,result;attempt(function(){value=object[property];});if(typeof value=="object"&&value){if(value.getUTCFullYear&&getClass.call(value)==dateClass&&value.toJSON===Date.prototype.toJSON){value=serializeDate(value);}else if(typeof value.toJSON=="function"){value=value.toJSON(property);}} if(callback){value=callback.call(object,property,value);} if(value==undefined){return value===undefined?value:"null";} type=typeof value;if(type=="object"){className=getClass.call(value);} switch(className||type){case"boolean":case booleanClass:return""+value;case"number":case numberClass:return value>-1/0&&value<1/0?""+value:"null";case"string":case stringClass:return quote(""+value);} if(typeof value=="object"){for(length=stack.length;length--;){if(stack[length]===value){throw TypeError();}} stack.push(value);results=[];prefix=indentation;indentation+=whitespace;if(className==arrayClass){for(index=0,length=value.length;index0){if(width>10){width=10;} for(whitespace="";whitespace.length=48&&charCode<=57||charCode>=97&&charCode<=102||charCode>=65&&charCode<=70)){abort();}} value+=fromCharCode("0x"+source.slice(begin,Index));break;default:abort();}}else{if(charCode==34){break;} charCode=source.charCodeAt(Index);begin=Index;while(charCode>=32&&charCode!=92&&charCode!=34){charCode=source.charCodeAt(++Index);} value+=source.slice(begin,Index);}} if(source.charCodeAt(Index)==34){Index++;return value;} abort();default:begin=Index;if(charCode==45){isSigned=true;charCode=source.charCodeAt(++Index);} if(charCode>=48&&charCode<=57){if(charCode==48&&((charCode=source.charCodeAt(Index+1)),charCode>=48&&charCode<=57)){abort();} isSigned=false;for(;Index=48&&charCode<=57);Index++);if(source.charCodeAt(Index)==46){position=++Index;for(;position57){break;}} if(position==Index){abort();} Index=position;} charCode=source.charCodeAt(Index);if(charCode==101||charCode==69){charCode=source.charCodeAt(++Index);if(charCode==43||charCode==45){Index++;} for(position=Index;position57){break;}} if(position==Index){abort();} Index=position;} return+source.slice(begin,Index);} if(isSigned){abort();} var temp=source.slice(Index,Index+4);if(temp=="true"){Index+=4;return true;}else if(temp=="fals"&&source.charCodeAt(Index+4)==101){Index+=5;return false;}else if(temp=="null"){Index+=4;return null;} abort();}} return"$";};var get=function(value){var results,hasMembers;if(value=="$"){abort();} if(typeof value=="string"){if((charIndexBuggy?value.charAt(0):value[0])=="@"){return value.slice(1);} if(value=="["){results=[];for(;;){value=lex();if(value=="]"){break;} if(hasMembers){if(value==","){value=lex();if(value=="]"){abort();}}else{abort();}}else{hasMembers=true;} if(value==","){abort();} results.push(get(value));} return results;}else if(value=="{"){results={};for(;;){value=lex();if(value=="}"){break;} if(hasMembers){if(value==","){value=lex();if(value=="}"){abort();}}else{abort();}}else{hasMembers=true;} if(value==","||typeof value!="string"||(charIndexBuggy?value.charAt(0):value[0])!="@"||lex()!=":"){abort();} results[value.slice(1)]=get(lex());} return results;} abort();} return value;};var update=function(source,property,callback){var element=walk(source,property,callback);if(element===undefined){delete source[property];}else{source[property]=element;}};var walk=function(source,property,callback){var value=source[property],length;if(typeof value=="object"&&value){if(getClass.call(value)==arrayClass){for(length=value.length;length--;){update(getClass,forOwn,value,length,callback);}}else{forOwn(value,function(property){update(value,property,callback);});}} return callback.call(source,property,value);};exports.parse=function(source,callback){var result,value;Index=0;Source=""+source;result=get(lex());if(lex()!="$"){abort();} Index=Source=null;return callback&&getClass.call(callback)==functionClass?walk((value={},value[""]=result,value),"",callback):result;};}} exports.runInContext=runInContext;return exports;} if(freeExports&&!isLoader){runInContext(root,freeExports);}else{var nativeJSON=root.JSON,previousJSON=root.JSON3,isRestored=false;var JSON3=runInContext(root,(root.JSON3={"noConflict":function(){if(!isRestored){isRestored=true;root.JSON=nativeJSON;root.JSON3=previousJSON;nativeJSON=previousJSON=null;} return JSON3;}}));root.JSON={"parse":JSON3.parse,"stringify":JSON3.stringify};} if(isLoader){define(function(){return JSON3;});}}).call(this);}).call(this,typeof window!=="undefined"&&window.document&&window.document.implementation?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{})},{}],1285:[function(require,module,exports){var debug=require('debug')('jsonp');module.exports=jsonp;var count=0;function noop(){} function jsonp(url,opts,fn){if('function'==typeof opts){fn=opts;opts={};} if(!opts)opts={};var prefix=opts.prefix||'__jp';var id=opts.name||(prefix+(count++));var param=opts.param||'callback';var timeout=null!=opts.timeout?opts.timeout:60000;var enc=encodeURIComponent;var target=document.getElementsByTagName('script')[0]||document.head;var script;var timer;if(timeout){timer=setTimeout(function(){cleanup();if(fn)fn(new Error('Timeout'));},timeout);} function cleanup(){if(script.parentNode)script.parentNode.removeChild(script);window[id]=noop;if(timer)clearTimeout(timer);} function cancel(){if(window[id]){cleanup();}} window[id]=function(data){debug('jsonp got',data);cleanup();if(fn)fn(null,data);};url+=(~url.indexOf('?')?'&':'?')+param+'='+enc(id);url=url.replace('?&','?');debug('jsonp req "%s"',url);script=document.createElement('script');script.src=url;target.parentNode.insertBefore(script,target);return cancel;}},{"debug":1286}],1286:[function(require,module,exports){arguments[4][11][0].apply(exports,arguments)},{"./debug":1287,"_process":1231,"dup":11}],1287:[function(require,module,exports){arguments[4][12][0].apply(exports,arguments)},{"dup":12,"ms":1313}],1288:[function(require,module,exports){var integration=require('@segment/analytics.js-integration');module.exports=function(){};module.exports.Integration=integration('empty');},{"@segment/analytics.js-integration":1289}],1289:[function(require,module,exports){module.exports=function(){};},{"./protos":1290,"./statics":1291,"@ndhoule/defaults":30,"component-bind":1235,"debug":1292,"dup":7,"extend":1294,"slug-component":1356}],1290:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/after":27,"@ndhoule/each":32,"@ndhoule/every":34,"@ndhoule/foldl":36,"@segment/fmt":1156,"@segment/load-script":1160,"analytics-events":1215,"component-emitter":1243,"dup":8,"is":1279,"load-iframe":1295,"next-tick":1318,"to-no-case":1366}],1291:[function(require,module,exports){module.exports=function(){};},{"@ndhoule/each":32,"@ndhoule/includes":37,"component-emitter":1243,"domify":1260,"dup":9}],1292:[function(require,module,exports){module.exports=function(){};},{"./debug":1293,"_process":1231,"dup":11}],1293:[function(require,module,exports){module.exports=function(){};},{"dup":12,"ms":1313}],1294:[function(require,module,exports){module.exports=function(){};},{"dup":10}],1295:[function(require,module,exports){;var is=require('is');var onload=require('script-onload');var tick=require('next-tick');module.exports=function loadIframe(options,fn){if(!options)throw new Error('Cant load nothing...');if(is.string(options))options={src:options};var https=document.location.protocol==='https:'||document.location.protocol==='chrome-extension:';if(options.src&&options.src.indexOf('//')===0){options.src=https?'https:'+options.src:'http:'+options.src;} if(https&&options.https)options.src=options.https;else if(!https&&options.http)options.src=options.http;var iframe=document.createElement('iframe');iframe.src=options.src;iframe.width=options.width||1;iframe.height=options.height||1;iframe.style.display='none';if(is.fn(fn)){onload(iframe,fn);} tick(function(){var firstScript=document.getElementsByTagName('script')[0];firstScript.parentNode.insertBefore(iframe,firstScript);});return iframe;};},{"is":1279,"next-tick":1318,"script-onload":1341}],1296:[function(require,module,exports){(function(global){var FUNC_ERROR_TEXT='Expected a function';var HASH_UNDEFINED='__lodash_hash_undefined__';var INFINITY=1/0;var funcTag='[object Function]',genTag='[object GeneratorFunction]',symbolTag='[object Symbol]';var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,reLeadingDot=/^\./,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reEscapeChar=/\\(\\)?/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var freeGlobal=typeof global=='object'&&global&&global.Object===Object&&global;var freeSelf=typeof self=='object'&&self&&self.Object===Object&&self;var root=freeGlobal||freeSelf||Function('return this')();function getValue(object,key){return object==null?undefined:object[key];} function isHostObject(value){var result=false;if(value!=null&&typeof value.toString!='function'){try{result=!!(value+'');}catch(e){}} return result;} var arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype;var coreJsData=root['__core-js_shared__'];var maskSrcKey=(function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||'');return uid?('Symbol(src)_1.'+uid):'';}());var funcToString=funcProto.toString;var hasOwnProperty=objectProto.hasOwnProperty;var objectToString=objectProto.toString;var reIsNative=RegExp('^'+ funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');var Symbol=root.Symbol,splice=arrayProto.splice;var Map=getNative(root,'Map'),nativeCreate=getNative(Object,'create');var symbolProto=Symbol?Symbol.prototype:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;function Hash(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++index-1;} function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){data.push([key,value]);}else{data[index][1]=value;} return this;} ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++index0){return parse(val);}else if(type==='number'&&isNaN(val)===false){return options.long?fmtLong(val):fmtShort(val);} throw new Error('val is not a non-empty string or a valid number. val='+ JSON.stringify(val));};function parse(str){str=String(str);if(str.length>100){return;} var match=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);if(!match){return;} var n=parseFloat(match[1]);var type=(match[2]||'ms').toLowerCase();switch(type){case'years':case'year':case'yrs':case'yr':case'y':return n*y;case'days':case'day':case'd':return n*d;case'hours':case'hour':case'hrs':case'hr':case'h':return n*h;case'minutes':case'minute':case'mins':case'min':case'm':return n*m;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 fmtShort(ms){if(ms>=d){return Math.round(ms/d)+'d';} if(ms>=h){return Math.round(ms/h)+'h';} if(ms>=m){return Math.round(ms/m)+'m';} if(ms>=s){return Math.round(ms/s)+'s';} return ms+'ms';} function fmtLong(ms){return plural(ms,d,'day')||plural(ms,h,'hour')||plural(ms,m,'minute')||plural(ms,s,'second')||ms+' ms';} function plural(ms,n,name){if(ms0&&!has.call(object,0)){for(var i=0;i0){for(var j=0;j=0&&toStr.call(value.callee)==='[object Function]';} return isArgs;};},{}],1329:[function(require,module,exports){module.exports=function(){};},{}],1330:[function(require,module,exports){module.exports=function(){};},{}],1331:[function(require,module,exports){module.exports=function(){};},{"each":1241}],1332:[function(require,module,exports){module.exports=function(){};},{"no-case":1319}],1333:[function(require,module,exports){module.exports=function(){};},{"camel-case":1232,"upper-case-first":1375}],1334:[function(require,module,exports){module.exports=function(){};},{"no-case":1319}],1335:[function(require,module,exports){module.exports=function(){};},{}],1336:[function(require,module,exports){'use strict';var toObject=Object;var TypeErr=TypeError;module.exports=function flags(){if(this!=null&&this!==toObject(this)){throw new TypeErr('RegExp.prototype.flags getter called on non-object');} var result='';if(this.global){result+='g';} if(this.ignoreCase){result+='i';} if(this.multiline){result+='m';} if(this.dotAll){result+='s';} if(this.unicode){result+='u';} if(this.sticky){result+='y';} return result;};},{}],1337:[function(require,module,exports){'use strict';var define=require('define-properties');var implementation=require('./implementation');var getPolyfill=require('./polyfill');var shim=require('./shim');var flagsBound=Function.call.bind(implementation);define(flagsBound,{getPolyfill:getPolyfill,implementation:implementation,shim:shim});module.exports=flagsBound;},{"./implementation":1336,"./polyfill":1338,"./shim":1339,"define-properties":1258}],1338:[function(require,module,exports){'use strict';var implementation=require('./implementation');var supportsDescriptors=require('define-properties').supportsDescriptors;var gOPD=Object.getOwnPropertyDescriptor;var TypeErr=TypeError;module.exports=function getPolyfill(){if(!supportsDescriptors){throw new TypeErr('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');} if(/a/mig.flags==='gim'){var descriptor=gOPD(RegExp.prototype,'flags');if(descriptor&&typeof descriptor.get==='function'&&typeof(/a/).dotAll==='boolean'){return descriptor.get;}} return implementation;};},{"./implementation":1336,"define-properties":1258}],1339:[function(require,module,exports){'use strict';var supportsDescriptors=require('define-properties').supportsDescriptors;var getPolyfill=require('./polyfill');var gOPD=Object.getOwnPropertyDescriptor;var defineProperty=Object.defineProperty;var TypeErr=TypeError;var getProto=Object.getPrototypeOf;var regex=/a/;module.exports=function shimFlags(){if(!supportsDescriptors||!getProto){throw new TypeErr('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');} var polyfill=getPolyfill();var proto=getProto(regex);var descriptor=gOPD(proto,'flags');if(!descriptor||descriptor.get!==polyfill){defineProperty(proto,'flags',{configurable:true,enumerable:false,get:polyfill});} return polyfill;};},{"./polyfill":1338,"define-properties":1258}],1340:[function(require,module,exports){module.exports=function(){};},{"type-component":1372}],1341:[function(require,module,exports){module.exports=function(el,fn){return el.addEventListener?add(el,fn):attach(el,fn);};function add(el,fn){el.addEventListener('load',function(_,e){fn(null,e);},false);el.addEventListener('error',function(e){var err=new Error('script error "'+el.src+'"');err.event=e;fn(err);},false);} function attach(el,fn){el.attachEvent('onreadystatechange',function(e){if(!/complete|loaded/.test(el.readyState))return;fn(null,e);});el.attachEvent('onerror',function(e){var err=new Error('failed to load the script "'+el.src+'"');err.event=e||window.event;fn(err);});}},{}],1342:[function(require,module,exports){'use strict';var get=require('obj-case');module.exports=function(proto){proto.zip=trait('postalCode','zip');proto.country=trait('country');proto.street=trait('street');proto.state=trait('state');proto.city=trait('city');proto.region=trait('region');function trait(a,b){return function(){var traits=this.traits();var props=this.properties?this.properties():{};return get(traits,'address.'+a)||get(traits,a)||(b?get(traits,'address.'+b):null)||(b?get(traits,b):null)||get(props,'address.'+a)||get(props,a)||(b?get(props,'address.'+b):null)||(b?get(props,b):null);};}};},{"obj-case":1323}],1343:[function(require,module,exports){'use strict';var inherit=require('./utils').inherit;var Facade=require('./facade');function Alias(dictionary,opts){Facade.call(this,dictionary,opts);} inherit(Alias,Facade);Alias.prototype.action=function(){return'alias';};Alias.prototype.type=Alias.prototype.action;Alias.prototype.previousId=function(){return this.field('previousId')||this.field('from');};Alias.prototype.from=Alias.prototype.previousId;Alias.prototype.userId=function(){return this.field('userId')||this.field('to');};Alias.prototype.to=Alias.prototype.userId;module.exports=Alias;},{"./facade":1345,"./utils":1353}],1344:[function(require,module,exports){'use strict';var inherit=require('./utils').inherit;var Facade=require('./facade');function Delete(dictionary,opts){Facade.call(this,dictionary,opts);} inherit(Delete,Facade);Delete.prototype.type=function(){return'delete';};module.exports=Delete;},{"./facade":1345,"./utils":1353}],1345:[function(require,module,exports){'use strict';var address=require('./address');var clone=require('./utils').clone;var isEnabled=require('./is-enabled');var newDate=require('new-date');var objCase=require('obj-case');var traverse=require('@segment/isodate-traverse');var type=require('./utils').type;function Facade(obj,opts){opts=opts||{};if(!('clone'in opts))opts.clone=true;if(opts.clone)obj=clone(obj);if(!('traverse'in opts))opts.traverse=true;if(!('timestamp'in obj))obj.timestamp=new Date();else obj.timestamp=newDate(obj.timestamp);if(opts.traverse)traverse(obj);this.opts=opts;this.obj=obj;} Facade.prototype.proxy=function(field){var fields=field.split('.');field=fields.shift();var obj=this[field]||this.field(field);if(!obj)return obj;if(typeof obj==='function')obj=obj.call(this)||{};if(fields.length===0)return this.opts.clone?transform(obj):obj;obj=objCase(obj,fields.join('.'));return this.opts.clone?transform(obj):obj;};Facade.prototype.field=function(field){var obj=this.obj[field];return this.opts.clone?transform(obj):obj;};Facade.proxy=function(field){return function(){return this.proxy(field);};};Facade.field=function(field){return function(){return this.field(field);};};Facade.multi=function(path){return function(){var multi=this.proxy(path+'s');if(type(multi)==='array')return multi;var one=this.proxy(path);if(one)one=[this.opts.clone?clone(one):one];return one||[];};};Facade.one=function(path){return function(){var one=this.proxy(path);if(one)return one;var multi=this.proxy(path+'s');if(type(multi)==='array')return multi[0];};};Facade.prototype.json=function(){var ret=this.opts.clone?clone(this.obj):this.obj;if(this.type)ret.type=this.type();return ret;};Facade.prototype.options=function(integration){var obj=this.obj.options||this.obj.context||{};var options=this.opts.clone?clone(obj):obj;if(!integration)return options;if(!this.enabled(integration))return;var integrations=this.integrations();var value=integrations[integration]||objCase(integrations,integration);if(typeof value!=='object')value=objCase(this.options(),integration);return typeof value==='object'?value:{};};Facade.prototype.context=Facade.prototype.options;Facade.prototype.enabled=function(integration){var allEnabled=this.proxy('options.providers.all');if(typeof allEnabled!=='boolean')allEnabled=this.proxy('options.all');if(typeof allEnabled!=='boolean')allEnabled=this.proxy('integrations.all');if(typeof allEnabled!=='boolean')allEnabled=true;var enabled=allEnabled&&isEnabled(integration);var options=this.integrations();if(options.providers&&options.providers.hasOwnProperty(integration)){enabled=options.providers[integration];} if(options.hasOwnProperty(integration)){var settings=options[integration];if(typeof settings==='boolean'){enabled=settings;}else{enabled=true;}} return!!enabled;};Facade.prototype.integrations=function(){return this.obj.integrations||this.proxy('options.providers')||this.options();};Facade.prototype.active=function(){var active=this.proxy('options.active');if(active===null||active===undefined)active=true;return active;};Facade.prototype.anonymousId=function(){return this.field('anonymousId')||this.field('sessionId');};Facade.prototype.sessionId=Facade.prototype.anonymousId;Facade.prototype.groupId=Facade.proxy('options.groupId');Facade.prototype.traits=function(aliases){var ret=this.proxy('options.traits')||{};var id=this.userId();aliases=aliases||{};if(id)ret.id=id;for(var alias in aliases){var value=this[alias]==null?this.proxy('options.traits.'+alias):this[alias]();if(value==null)continue;ret[aliases[alias]]=value;delete ret[alias];} return ret;};Facade.prototype.library=function(){var library=this.proxy('options.library');if(!library)return{name:'unknown',version:null};if(typeof library==='string')return{name:library,version:null};return library;};Facade.prototype.device=function(){var device=this.proxy('context.device');if(type(device)!=='object')device={};var library=this.library().name;if(device.type)return device;if(library.indexOf('ios')>-1)device.type='ios';if(library.indexOf('android')>-1)device.type='android';return device;};Facade.prototype.userAgent=Facade.proxy('context.userAgent');Facade.prototype.timezone=Facade.proxy('context.timezone');Facade.prototype.timestamp=Facade.field('timestamp');Facade.prototype.channel=Facade.field('channel');Facade.prototype.ip=Facade.proxy('context.ip');Facade.prototype.userId=Facade.field('userId');address(Facade.prototype);function transform(obj){return clone(obj);} module.exports=Facade;},{"./address":1342,"./is-enabled":1349,"./utils":1353,"@segment/isodate-traverse":1158,"new-date":1314,"obj-case":1323}],1346:[function(require,module,exports){'use strict';var inherit=require('./utils').inherit;var isEmail=require('is-email');var newDate=require('new-date');var Facade=require('./facade');function Group(dictionary,opts){Facade.call(this,dictionary,opts);} inherit(Group,Facade);Group.prototype.action=function(){return'group';};Group.prototype.type=Group.prototype.action;Group.prototype.groupId=Facade.field('groupId');Group.prototype.created=function(){var created=this.proxy('traits.createdAt')||this.proxy('traits.created')||this.proxy('properties.createdAt')||this.proxy('properties.created');if(created)return newDate(created);};Group.prototype.email=function(){var email=this.proxy('traits.email');if(email)return email;var groupId=this.groupId();if(isEmail(groupId))return groupId;};Group.prototype.traits=function(aliases){var ret=this.properties();var id=this.groupId();aliases=aliases||{};if(id)ret.id=id;for(var alias in aliases){var value=this[alias]==null?this.proxy('traits.'+alias):this[alias]();if(value==null)continue;ret[aliases[alias]]=value;delete ret[alias];} return ret;};Group.prototype.name=Facade.proxy('traits.name');Group.prototype.industry=Facade.proxy('traits.industry');Group.prototype.employees=Facade.proxy('traits.employees');Group.prototype.properties=function(){return this.field('traits')||this.field('properties')||{};};module.exports=Group;},{"./facade":1345,"./utils":1353,"is-email":1354,"new-date":1314}],1347:[function(require,module,exports){'use strict';var Facade=require('./facade');var get=require('obj-case');var inherit=require('./utils').inherit;var isEmail=require('is-email');var newDate=require('new-date');var trim=require('trim');var type=require('./utils').type;function Identify(dictionary,opts){Facade.call(this,dictionary,opts);} inherit(Identify,Facade);Identify.prototype.action=function(){return'identify';};Identify.prototype.type=Identify.prototype.action;Identify.prototype.traits=function(aliases){var ret=this.field('traits')||{};var id=this.userId();aliases=aliases||{};if(id)ret.id=id;for(var alias in aliases){var value=this[alias]==null?this.proxy('traits.'+alias):this[alias]();if(value==null)continue;ret[aliases[alias]]=value;if(alias!==aliases[alias])delete ret[alias];} return ret;};Identify.prototype.email=function(){var email=this.proxy('traits.email');if(email)return email;var userId=this.userId();if(isEmail(userId))return userId;};Identify.prototype.created=function(){var created=this.proxy('traits.created')||this.proxy('traits.createdAt');if(created)return newDate(created);};Identify.prototype.companyCreated=function(){var created=this.proxy('traits.company.created')||this.proxy('traits.company.createdAt');if(created){return newDate(created);}};Identify.prototype.companyName=function(){return this.proxy('traits.company.name');};Identify.prototype.name=function(){var name=this.proxy('traits.name');if(typeof name==='string'){return trim(name);} var firstName=this.firstName();var lastName=this.lastName();if(firstName&&lastName){return trim(firstName+' '+lastName);}};Identify.prototype.firstName=function(){var firstName=this.proxy('traits.firstName');if(typeof firstName==='string'){return trim(firstName);} var name=this.proxy('traits.name');if(typeof name==='string'){return trim(name).split(' ')[0];}};Identify.prototype.lastName=function(){var lastName=this.proxy('traits.lastName');if(typeof lastName==='string'){return trim(lastName);} var name=this.proxy('traits.name');if(typeof name!=='string'){return;} var space=trim(name).indexOf(' ');if(space===-1){return;} return trim(name.substr(space+1));};Identify.prototype.uid=function(){return this.userId()||this.username()||this.email();};Identify.prototype.description=function(){return this.proxy('traits.description')||this.proxy('traits.background');};Identify.prototype.age=function(){var date=this.birthday();var age=get(this.traits(),'age');if(age!=null)return age;if(type(date)!=='date')return;var now=new Date();return now.getFullYear()-date.getFullYear();};Identify.prototype.avatar=function(){var traits=this.traits();return get(traits,'avatar')||get(traits,'photoUrl')||get(traits,'avatarUrl');};Identify.prototype.position=function(){var traits=this.traits();return get(traits,'position')||get(traits,'jobTitle');};Identify.prototype.username=Facade.proxy('traits.username');Identify.prototype.website=Facade.one('traits.website');Identify.prototype.websites=Facade.multi('traits.website');Identify.prototype.phone=Facade.one('traits.phone');Identify.prototype.phones=Facade.multi('traits.phone');Identify.prototype.address=Facade.proxy('traits.address');Identify.prototype.gender=Facade.proxy('traits.gender');Identify.prototype.birthday=Facade.proxy('traits.birthday');module.exports=Identify;},{"./facade":1345,"./utils":1353,"is-email":1354,"new-date":1314,"obj-case":1323,"trim":1371}],1348:[function(require,module,exports){'use strict';var Facade=require('./facade');Facade.Alias=require('./alias');Facade.Group=require('./group');Facade.Identify=require('./identify');Facade.Track=require('./track');Facade.Page=require('./page');Facade.Screen=require('./screen');Facade.Delete=require('./delete');module.exports=Facade;},{"./alias":1343,"./delete":1344,"./facade":1345,"./group":1346,"./identify":1347,"./page":1350,"./screen":1351,"./track":1352}],1349:[function(require,module,exports){'use strict';var disabled={Salesforce:true};module.exports=function(integration){return!disabled[integration];};},{}],1350:[function(require,module,exports){'use strict';var inherit=require('./utils').inherit;var Facade=require('./facade');var Track=require('./track');var isEmail=require('is-email');function Page(dictionary,opts){Facade.call(this,dictionary,opts);} inherit(Page,Facade);Page.prototype.action=function(){return'page';};Page.prototype.type=Page.prototype.action;Page.prototype.category=Facade.field('category');Page.prototype.name=Facade.field('name');Page.prototype.title=Facade.proxy('properties.title');Page.prototype.path=Facade.proxy('properties.path');Page.prototype.url=Facade.proxy('properties.url');Page.prototype.referrer=function(){return this.proxy('context.referrer.url')||this.proxy('context.page.referrer')||this.proxy('properties.referrer');};Page.prototype.properties=function(aliases){var props=this.field('properties')||{};var category=this.category();var name=this.name();aliases=aliases||{};if(category)props.category=category;if(name)props.name=name;for(var alias in aliases){var value=this[alias]==null?this.proxy('properties.'+alias):this[alias]();if(value==null)continue;props[aliases[alias]]=value;if(alias!==aliases[alias])delete props[alias];} return props;};Page.prototype.email=function(){var email=this.proxy('context.traits.email')||this.proxy('properties.email');if(email)return email;var userId=this.userId();if(isEmail(userId))return userId;};Page.prototype.fullName=function(){var category=this.category();var name=this.name();return name&&category?category+' '+name:name;};Page.prototype.event=function(name){return name?'Viewed '+name+' Page':'Loaded a Page';};Page.prototype.track=function(name){var json=this.json();json.event=this.event(name);json.timestamp=this.timestamp();json.properties=this.properties();return new Track(json,this.opts);};module.exports=Page;},{"./facade":1345,"./track":1352,"./utils":1353,"is-email":1354}],1351:[function(require,module,exports){'use strict';var inherit=require('./utils').inherit;var Page=require('./page');var Track=require('./track');function Screen(dictionary,opts){Page.call(this,dictionary,opts);} inherit(Screen,Page);Screen.prototype.action=function(){return'screen';};Screen.prototype.type=Screen.prototype.action;Screen.prototype.event=function(name){return name?'Viewed '+name+' Screen':'Loaded a Screen';};Screen.prototype.track=function(name){var json=this.json();json.event=this.event(name);json.timestamp=this.timestamp();json.properties=this.properties();return new Track(json,this.opts);};module.exports=Screen;},{"./page":1350,"./track":1352,"./utils":1353}],1352:[function(require,module,exports){'use strict';var inherit=require('./utils').inherit;var type=require('./utils').type;var Facade=require('./facade');var Identify=require('./identify');var isEmail=require('is-email');var get=require('obj-case');function Track(dictionary,opts){Facade.call(this,dictionary,opts);} inherit(Track,Facade);Track.prototype.action=function(){return'track';};Track.prototype.type=Track.prototype.action;Track.prototype.event=Facade.field('event');Track.prototype.value=Facade.proxy('properties.value');Track.prototype.category=Facade.proxy('properties.category');Track.prototype.id=Facade.proxy('properties.id');Track.prototype.productId=function(){return this.proxy('properties.product_id')||this.proxy('properties.productId');};Track.prototype.promotionId=function(){return this.proxy('properties.promotion_id')||this.proxy('properties.promotionId');};Track.prototype.cartId=function(){return this.proxy('properties.cart_id')||this.proxy('properties.cartId');};Track.prototype.checkoutId=function(){return this.proxy('properties.checkout_id')||this.proxy('properties.checkoutId');};Track.prototype.paymentId=function(){return this.proxy('properties.payment_id')||this.proxy('properties.paymentId');};Track.prototype.couponId=function(){return this.proxy('properties.coupon_id')||this.proxy('properties.couponId');};Track.prototype.wishlistId=function(){return this.proxy('properties.wishlist_id')||this.proxy('properties.wishlistId');};Track.prototype.reviewId=function(){return this.proxy('properties.review_id')||this.proxy('properties.reviewId');};Track.prototype.orderId=function(){return this.proxy('properties.id')||this.proxy('properties.order_id')||this.proxy('properties.orderId');};Track.prototype.sku=Facade.proxy('properties.sku');Track.prototype.tax=Facade.proxy('properties.tax');Track.prototype.name=Facade.proxy('properties.name');Track.prototype.price=Facade.proxy('properties.price');Track.prototype.total=Facade.proxy('properties.total');Track.prototype.repeat=Facade.proxy('properties.repeat');Track.prototype.coupon=Facade.proxy('properties.coupon');Track.prototype.shipping=Facade.proxy('properties.shipping');Track.prototype.discount=Facade.proxy('properties.discount');Track.prototype.shippingMethod=function(){return this.proxy('properties.shipping_method')||this.proxy('properties.shippingMethod');};Track.prototype.paymentMethod=function(){return this.proxy('properties.payment_method')||this.proxy('properties.paymentMethod');};Track.prototype.description=Facade.proxy('properties.description');Track.prototype.plan=Facade.proxy('properties.plan');Track.prototype.subtotal=function(){var subtotal=get(this.properties(),'subtotal');var total=this.total()||this.revenue();if(subtotal)return subtotal;if(!total)return 0;if(this.total()){var n=this.tax();if(n)total-=n;n=this.shipping();if(n)total-=n;n=this.discount();if(n)total+=n;} return total;};Track.prototype.products=function(){var props=this.properties();var products=get(props,'products');return type(products)==='array'?products:[];};Track.prototype.quantity=function(){var props=this.obj.properties||{};return props.quantity||1;};Track.prototype.currency=function(){var props=this.obj.properties||{};return props.currency||'USD';};Track.prototype.referrer=function(){return this.proxy('context.referrer.url')||this.proxy('context.page.referrer')||this.proxy('properties.referrer');};Track.prototype.query=Facade.proxy('options.query');Track.prototype.properties=function(aliases){var ret=this.field('properties')||{};aliases=aliases||{};for(var alias in aliases){var value=this[alias]==null?this.proxy('properties.'+alias):this[alias]();if(value==null)continue;ret[aliases[alias]]=value;delete ret[alias];} return ret;};Track.prototype.username=function(){return this.proxy('traits.username')||this.proxy('properties.username')||this.userId()||this.sessionId();};Track.prototype.email=function(){var email=this.proxy('traits.email')||this.proxy('properties.email')||this.proxy('options.traits.email');if(email)return email;var userId=this.userId();if(isEmail(userId))return userId;};Track.prototype.revenue=function(){var revenue=this.proxy('properties.revenue');var event=this.event();var orderCompletedRegExp=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;if(!revenue&&event&&event.match(orderCompletedRegExp)){revenue=this.proxy('properties.total');} return currency(revenue);};Track.prototype.cents=function(){var revenue=this.revenue();return typeof revenue!=='number'?this.value()||0:revenue*100;};Track.prototype.identify=function(){var json=this.json();json.traits=this.traits();return new Identify(json,this.opts);};function currency(val){if(!val)return;if(typeof val==='number'){return val;} if(typeof val!=='string'){return;} val=val.replace(/\$/g,'');val=parseFloat(val);if(!isNaN(val)){return val;}} module.exports=Track;},{"./facade":1345,"./identify":1347,"./utils":1353,"is-email":1354,"obj-case":1323}],1353:[function(require,module,exports){'use strict';exports.inherit=require('inherits');exports.clone=require('@ndhoule/clone');exports.type=require('type-component');},{"@ndhoule/clone":29,"inherits":1271,"type-component":1372}],1354:[function(require,module,exports){module.exports=function isEmail(string){return(/.+\@.+\..+/).test(string);};},{}],1355:[function(require,module,exports){module.exports=function(){};},{"no-case":1319,"upper-case-first":1375}],1356:[function(require,module,exports){module.exports=function(str,options){options||(options={});return str.toLowerCase().replace(options.replace||/[^a-z0-9]/g,' ').replace(/^ +| +$/g,'').replace(/ +/g,options.separator||'-')};},{}],1357:[function(require,module,exports){module.exports=function(){};},{"no-case":1319}],1358:[function(require,module,exports){(function(factory){if(typeof exports==='object'){module.exports=factory();}else if(typeof define==='function'&&define.amd){define(factory);}else{var glob;try{glob=window;}catch(e){glob=self;} glob.SparkMD5=factory();}}(function(undefined){'use strict';var add32=function(a,b){return(a+b)&0xFFFFFFFF;},hex_chr=['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'];function cmn(q,a,b,x,s,t){a=add32(add32(a,q),add32(x,t));return add32((a<>>(32-s)),b);} function ff(a,b,c,d,x,s,t){return cmn((b&c)|((~b)&d),a,b,x,s,t);} function gg(a,b,c,d,x,s,t){return cmn((b&d)|(c&(~d)),a,b,x,s,t);} function hh(a,b,c,d,x,s,t){return cmn(b^c^d,a,b,x,s,t);} function ii(a,b,c,d,x,s,t){return cmn(c^(b|(~d)),a,b,x,s,t);} function md5cycle(x,k){var a=x[0],b=x[1],c=x[2],d=x[3];a=ff(a,b,c,d,k[0],7,-680876936);d=ff(d,a,b,c,k[1],12,-389564586);c=ff(c,d,a,b,k[2],17,606105819);b=ff(b,c,d,a,k[3],22,-1044525330);a=ff(a,b,c,d,k[4],7,-176418897);d=ff(d,a,b,c,k[5],12,1200080426);c=ff(c,d,a,b,k[6],17,-1473231341);b=ff(b,c,d,a,k[7],22,-45705983);a=ff(a,b,c,d,k[8],7,1770035416);d=ff(d,a,b,c,k[9],12,-1958414417);c=ff(c,d,a,b,k[10],17,-42063);b=ff(b,c,d,a,k[11],22,-1990404162);a=ff(a,b,c,d,k[12],7,1804603682);d=ff(d,a,b,c,k[13],12,-40341101);c=ff(c,d,a,b,k[14],17,-1502002290);b=ff(b,c,d,a,k[15],22,1236535329);a=gg(a,b,c,d,k[1],5,-165796510);d=gg(d,a,b,c,k[6],9,-1069501632);c=gg(c,d,a,b,k[11],14,643717713);b=gg(b,c,d,a,k[0],20,-373897302);a=gg(a,b,c,d,k[5],5,-701558691);d=gg(d,a,b,c,k[10],9,38016083);c=gg(c,d,a,b,k[15],14,-660478335);b=gg(b,c,d,a,k[4],20,-405537848);a=gg(a,b,c,d,k[9],5,568446438);d=gg(d,a,b,c,k[14],9,-1019803690);c=gg(c,d,a,b,k[3],14,-187363961);b=gg(b,c,d,a,k[8],20,1163531501);a=gg(a,b,c,d,k[13],5,-1444681467);d=gg(d,a,b,c,k[2],9,-51403784);c=gg(c,d,a,b,k[7],14,1735328473);b=gg(b,c,d,a,k[12],20,-1926607734);a=hh(a,b,c,d,k[5],4,-378558);d=hh(d,a,b,c,k[8],11,-2022574463);c=hh(c,d,a,b,k[11],16,1839030562);b=hh(b,c,d,a,k[14],23,-35309556);a=hh(a,b,c,d,k[1],4,-1530992060);d=hh(d,a,b,c,k[4],11,1272893353);c=hh(c,d,a,b,k[7],16,-155497632);b=hh(b,c,d,a,k[10],23,-1094730640);a=hh(a,b,c,d,k[13],4,681279174);d=hh(d,a,b,c,k[0],11,-358537222);c=hh(c,d,a,b,k[3],16,-722521979);b=hh(b,c,d,a,k[6],23,76029189);a=hh(a,b,c,d,k[9],4,-640364487);d=hh(d,a,b,c,k[12],11,-421815835);c=hh(c,d,a,b,k[15],16,530742520);b=hh(b,c,d,a,k[2],23,-995338651);a=ii(a,b,c,d,k[0],6,-198630844);d=ii(d,a,b,c,k[7],10,1126891415);c=ii(c,d,a,b,k[14],15,-1416354905);b=ii(b,c,d,a,k[5],21,-57434055);a=ii(a,b,c,d,k[12],6,1700485571);d=ii(d,a,b,c,k[3],10,-1894986606);c=ii(c,d,a,b,k[10],15,-1051523);b=ii(b,c,d,a,k[1],21,-2054922799);a=ii(a,b,c,d,k[8],6,1873313359);d=ii(d,a,b,c,k[15],10,-30611744);c=ii(c,d,a,b,k[6],15,-1560198380);b=ii(b,c,d,a,k[13],21,1309151649);a=ii(a,b,c,d,k[4],6,-145523070);d=ii(d,a,b,c,k[11],10,-1120210379);c=ii(c,d,a,b,k[2],15,718787259);b=ii(b,c,d,a,k[9],21,-343485551);x[0]=add32(a,x[0]);x[1]=add32(b,x[1]);x[2]=add32(c,x[2]);x[3]=add32(d,x[3]);} function md5blk(s){var md5blks=[],i;for(i=0;i<64;i+=4){md5blks[i>>2]=s.charCodeAt(i)+(s.charCodeAt(i+1)<<8)+(s.charCodeAt(i+2)<<16)+(s.charCodeAt(i+3)<<24);} return md5blks;} function md5blk_array(a){var md5blks=[],i;for(i=0;i<64;i+=4){md5blks[i>>2]=a[i]+(a[i+1]<<8)+(a[i+2]<<16)+(a[i+3]<<24);} return md5blks;} function md51(s){var n=s.length,state=[1732584193,-271733879,-1732584194,271733878],i,length,tail,tmp,lo,hi;for(i=64;i<=n;i+=64){md5cycle(state,md5blk(s.substring(i-64,i)));} s=s.substring(i-64);length=s.length;tail=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i>2]|=s.charCodeAt(i)<<((i%4)<<3);} tail[i>>2]|=0x80<<((i%4)<<3);if(i>55){md5cycle(state,tail);for(i=0;i<16;i+=1){tail[i]=0;}} tmp=n*8;tmp=tmp.toString(16).match(/(.*?)(.{0,8})$/);lo=parseInt(tmp[2],16);hi=parseInt(tmp[1],16)||0;tail[14]=lo;tail[15]=hi;md5cycle(state,tail);return state;} function md51_array(a){var n=a.length,state=[1732584193,-271733879,-1732584194,271733878],i,length,tail,tmp,lo,hi;for(i=64;i<=n;i+=64){md5cycle(state,md5blk_array(a.subarray(i-64,i)));} a=(i-64)>2]|=a[i]<<((i%4)<<3);} tail[i>>2]|=0x80<<((i%4)<<3);if(i>55){md5cycle(state,tail);for(i=0;i<16;i+=1){tail[i]=0;}} tmp=n*8;tmp=tmp.toString(16).match(/(.*?)(.{0,8})$/);lo=parseInt(tmp[2],16);hi=parseInt(tmp[1],16)||0;tail[14]=lo;tail[15]=hi;md5cycle(state,tail);return state;} function rhex(n){var s='',j;for(j=0;j<4;j+=1){s+=hex_chr[(n>>(j*8+4))&0x0F]+hex_chr[(n>>(j*8))&0x0F];} return s;} function hex(x){var i;for(i=0;i>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF);};} if(typeof ArrayBuffer!=='undefined'&&!ArrayBuffer.prototype.slice){(function(){function clamp(val,length){val=(val|0)||0;if(val<0){return Math.max(val+length,0);} return Math.min(val,length);} ArrayBuffer.prototype.slice=function(from,to){var length=this.byteLength,begin=clamp(from,length),end=length,num,target,targetArray,sourceArray;if(to!==undefined){end=clamp(to,length);} if(begin>end){return new ArrayBuffer(0);} num=end-begin;target=new ArrayBuffer(num);targetArray=new Uint8Array(target);sourceArray=new Uint8Array(this,begin,num);targetArray.set(sourceArray);return target;};})();} function toUtf8(str){if(/[\u0080-\uFFFF]/.test(str)){str=unescape(encodeURIComponent(str));} return str;} function utf8Str2ArrayBuffer(str,returnUInt8Array){var length=str.length,buff=new ArrayBuffer(length),arr=new Uint8Array(buff),i;for(i=0;i>2]|=buff.charCodeAt(i)<<((i%4)<<3);} this._finish(tail,length);ret=hex(this._hash);if(raw){ret=hexToBinaryString(ret);} this.reset();return ret;};SparkMD5.prototype.reset=function(){this._buff='';this._length=0;this._hash=[1732584193,-271733879,-1732584194,271733878];return this;};SparkMD5.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash};};SparkMD5.prototype.setState=function(state){this._buff=state.buff;this._length=state.length;this._hash=state.hash;return this;};SparkMD5.prototype.destroy=function(){delete this._hash;delete this._buff;delete this._length;};SparkMD5.prototype._finish=function(tail,length){var i=length,tmp,lo,hi;tail[i>>2]|=0x80<<((i%4)<<3);if(i>55){md5cycle(this._hash,tail);for(i=0;i<16;i+=1){tail[i]=0;}} tmp=this._length*8;tmp=tmp.toString(16).match(/(.*?)(.{0,8})$/);lo=parseInt(tmp[2],16);hi=parseInt(tmp[1],16)||0;tail[14]=lo;tail[15]=hi;md5cycle(this._hash,tail);};SparkMD5.hash=function(str,raw){return SparkMD5.hashBinary(toUtf8(str),raw);};SparkMD5.hashBinary=function(content,raw){var hash=md51(content),ret=hex(hash);return raw?hexToBinaryString(ret):ret;};SparkMD5.ArrayBuffer=function(){this.reset();};SparkMD5.ArrayBuffer.prototype.append=function(arr){var buff=concatenateArrayBuffers(this._buff.buffer,arr,true),length=buff.length,i;this._length+=arr.byteLength;for(i=64;i<=length;i+=64){md5cycle(this._hash,md5blk_array(buff.subarray(i-64,i)));} this._buff=(i-64)>2]|=buff[i]<<((i%4)<<3);} this._finish(tail,length);ret=hex(this._hash);if(raw){ret=hexToBinaryString(ret);} this.reset();return ret;};SparkMD5.ArrayBuffer.prototype.reset=function(){this._buff=new Uint8Array(0);this._length=0;this._hash=[1732584193,-271733879,-1732584194,271733878];return this;};SparkMD5.ArrayBuffer.prototype.getState=function(){var state=SparkMD5.prototype.getState.call(this);state.buff=arrayBuffer2Utf8Str(state.buff);return state;};SparkMD5.ArrayBuffer.prototype.setState=function(state){state.buff=utf8Str2ArrayBuffer(state.buff,true);return SparkMD5.prototype.setState.call(this,state);};SparkMD5.ArrayBuffer.prototype.destroy=SparkMD5.prototype.destroy;SparkMD5.ArrayBuffer.prototype._finish=SparkMD5.prototype._finish;SparkMD5.ArrayBuffer.hash=function(arr,raw){var hash=md51_array(new Uint8Array(arr)),ret=hex(hash);return raw?hexToBinaryString(ret):ret;};return SparkMD5;}));},{}],1359:[function(require,module,exports){module.exports=function(){};},{"lower-case":1300,"upper-case":1376}],1360:[function(require,module,exports){module.exports=function(){};},{}],1361:[function(require,module,exports){(function(setImmediate,clearImmediate){var nextTick=require('process/browser.js').nextTick;var apply=Function.prototype.apply;var slice=Array.prototype.slice;var immediateIds={};var nextImmediateId=0;exports.setTimeout=function(){return new Timeout(apply.call(setTimeout,window,arguments),clearTimeout);};exports.setInterval=function(){return new Timeout(apply.call(setInterval,window,arguments),clearInterval);};exports.clearTimeout=exports.clearInterval=function(timeout){timeout.close();};function Timeout(id,clearFn){this._id=id;this._clearFn=clearFn;} Timeout.prototype.unref=Timeout.prototype.ref=function(){};Timeout.prototype.close=function(){this._clearFn.call(window,this._id);};exports.enroll=function(item,msecs){clearTimeout(item._idleTimeoutId);item._idleTimeout=msecs;};exports.unenroll=function(item){clearTimeout(item._idleTimeoutId);item._idleTimeout=-1;};exports._unrefActive=exports.active=function(item){clearTimeout(item._idleTimeoutId);var msecs=item._idleTimeout;if(msecs>=0){item._idleTimeoutId=setTimeout(function onTimeout(){if(item._onTimeout) item._onTimeout();},msecs);}};exports.setImmediate=typeof setImmediate==="function"?setImmediate:function(fn){var id=nextImmediateId++;var args=arguments.length<2?false:slice.call(arguments,1);immediateIds[id]=true;nextTick(function onNextTick(){if(immediateIds[id]){if(args){fn.apply(null,args);}else{fn.call(null);} exports.clearImmediate(id);}});return id;};exports.clearImmediate=typeof clearImmediate==="function"?clearImmediate:function(id){delete immediateIds[id];};}).call(this,require("timers").setImmediate,require("timers").clearImmediate)},{"process/browser.js":1362,"timers":1361}],1362:[function(require,module,exports){arguments[4][1231][0].apply(exports,arguments)},{"dup":1231}],1363:[function(require,module,exports){module.exports=function(){};},{"no-case":1319,"upper-case":1376}],1364:[function(require,module,exports){module.exports=function(){};},{"to-space-case":1368}],1365:[function(require,module,exports){var expr;try{expr=require('props');}catch(e){expr=require('component-props');} module.exports=toFunction;function toFunction(obj){switch({}.toString.call(obj)){case'[object Object]':return objectToFunction(obj);case'[object Function]':return obj;case'[object String]':return stringToFunction(obj);case'[object RegExp]':return regexpToFunction(obj);default:return defaultToFunction(obj);}} function defaultToFunction(val){return function(obj){return val===obj;};} function regexpToFunction(re){return function(obj){return re.test(obj);};} function stringToFunction(str){if(/^ *\W+/.test(str))return new Function('_','return _ '+str);return new Function('_','return '+get(str));} function objectToFunction(obj){var match={};for(var key in obj){match[key]=typeof obj[key]==='string'?defaultToFunction(obj[key]):toFunction(obj[key]);} return function(val){if(typeof val!=='object')return false;for(var key in match){if(!(key in val))return false;if(!match[key](val[key]))return false;} return true;};} function get(str){var props=expr(str);if(!props.length)return'_.'+str;var val,i,prop;for(i=0;i127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);} else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}} return utftext;}},{}],1379:[function(require,module,exports){module.exports=function(){};},{}],1380:[function(require,module,exports){module.exports=function(){};},{}],1381:[function(require,module,exports){'use strict';var ctors=require('./ctors.js');function isLittleEndian(){var uint16_view;var uint8_view;uint16_view=new ctors['uint16'](1);uint16_view[0]=0x1234;uint8_view=new ctors['uint8'](uint16_view.buffer);return(uint8_view[0]===0x34);} module.exports=isLittleEndian();},{"./ctors.js":1380}],1382:[function(require,module,exports){var v1=require('./v1');var v4=require('./v4');var uuid=v4;uuid.v1=v1;uuid.v4=v4;module.exports=uuid;},{"./v1":1385,"./v4":1386}],1383:[function(require,module,exports){var byteToHex=[];for(var i=0;i<256;++i){byteToHex[i]=(i+0x100).toString(16).substr(1);} function bytesToUuid(buf,offset){var i=offset||0;var bth=byteToHex;return([bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],'-',bth[buf[i++]],bth[buf[i++]],'-',bth[buf[i++]],bth[buf[i++]],'-',bth[buf[i++]],bth[buf[i++]],'-',bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]]]).join('');} module.exports=bytesToUuid;},{}],1384:[function(require,module,exports){var getRandomValues=(typeof(crypto)!='undefined'&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto))||(typeof(msCrypto)!='undefined'&&typeof window.msCrypto.getRandomValues=='function'&&msCrypto.getRandomValues.bind(msCrypto));if(getRandomValues){var rnds8=new Uint8Array(16);module.exports=function whatwgRNG(){getRandomValues(rnds8);return rnds8;};}else{var rnds=new Array(16);module.exports=function mathRNG(){for(var i=0,r;i<16;i++){if((i&0x03)===0)r=Math.random()*0x100000000;rnds[i]=r>>>((i&0x03)<<3)&0xff;} return rnds;};}},{}],1385:[function(require,module,exports){var rng=require('./lib/rng');var bytesToUuid=require('./lib/bytesToUuid');var _nodeId;var _clockseq;var _lastMSecs=0;var _lastNSecs=0;function v1(options,buf,offset){var i=buf&&offset||0;var b=buf||[];options=options||{};var node=options.node||_nodeId;var clockseq=options.clockseq!==undefined?options.clockseq:_clockseq;if(node==null||clockseq==null){var seedBytes=rng();if(node==null){node=_nodeId=[seedBytes[0]|0x01,seedBytes[1],seedBytes[2],seedBytes[3],seedBytes[4],seedBytes[5]];} if(clockseq==null){clockseq=_clockseq=(seedBytes[6]<<8|seedBytes[7])&0x3fff;}} var msecs=options.msecs!==undefined?options.msecs:new Date().getTime();var nsecs=options.nsecs!==undefined?options.nsecs:_lastNSecs+1;var dt=(msecs-_lastMSecs)+(nsecs-_lastNSecs)/10000;if(dt<0&&options.clockseq===undefined){clockseq=clockseq+1&0x3fff;} if((dt<0||msecs>_lastMSecs)&&options.nsecs===undefined){nsecs=0;} if(nsecs>=10000){throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');} _lastMSecs=msecs;_lastNSecs=nsecs;_clockseq=clockseq;msecs+=12219292800000;var tl=((msecs&0xfffffff)*10000+nsecs)%0x100000000;b[i++]=tl>>>24&0xff;b[i++]=tl>>>16&0xff;b[i++]=tl>>>8&0xff;b[i++]=tl&0xff;var tmh=(msecs/0x100000000*10000)&0xfffffff;b[i++]=tmh>>>8&0xff;b[i++]=tmh&0xff;b[i++]=tmh>>>24&0xf|0x10;b[i++]=tmh>>>16&0xff;b[i++]=clockseq>>>8|0x80;b[i++]=clockseq&0xff;for(var n=0;n<6;++n){b[i+n]=node[n];} return buf?buf:bytesToUuid(b);} module.exports=v1;},{"./lib/bytesToUuid":1383,"./lib/rng":1384}],1386:[function(require,module,exports){var rng=require('./lib/rng');var bytesToUuid=require('./lib/bytesToUuid');function v4(options,buf,offset){var i=buf&&offset||0;if(typeof(options)=='string'){buf=options==='binary'?new Array(16):null;options=null;} options=options||{};var rnds=options.random||(options.rng||rng)();rnds[6]=(rnds[6]&0x0f)|0x40;rnds[8]=(rnds[8]&0x3f)|0x80;if(buf){for(var ii=0;ii<16;++ii){buf[i+ii]=rnds[ii];}} return buf||bytesToUuid(rnds);} module.exports=v4;},{"./lib/bytesToUuid":1383,"./lib/rng":1384}],1387:[function(require,module,exports){module.exports=function(){};},{}],1388:[function(require,module,exports){;var unserialize=require('unserialize');var each=require('each');var storage;try{storage=window.localStorage;}catch(e){storage=null;} module.exports=store;function store(key,value){var length=arguments.length;if(0==length)return all();if(2<=length)return set(key,value);if(1!=length)return;if(null==key)return storage.clear();if('string'==typeof key)return get(key);if('object'==typeof key)return each(key,set);} store.supported=!!storage;function set(key,val){return null==val?storage.removeItem(key):storage.setItem(key,JSON.stringify(val));} function get(key){return unserialize(storage.getItem(key));} function all(){var len=storage.length;var ret={};var key;while(0<=--len){key=storage.key(len);ret[key]=get(key);} return ret;}},{"each":1241,"unserialize":1389}],1389:[function(require,module,exports){module.exports=function(val){try{return JSON.parse(val);}catch(e){return val||undefined;}};},{}]},{},[3]);}(window.define));