/* eslint-disable */
(function(){
  window.analytics = window.analytics || [];

  // If the snippet was invoked already show an error.
  // not using window.analytics since that gets replaced once the main script
  // loads...
  if (window.analytics_invoked === true) {
    if (window.console && console.error) {
      console.error('Segment snippet included twice.');
    }
    return;
  }

  // Invoked flag, to make sure the snippet
  // is never invoked twice.
  window.analytics_invoked = true;

  // Add a version to keep track of what's in the wild.
  window.analytics.SNIPPET_VERSION = '3.1.1';
  window.analytics.SETTINGS = {"Facebook Pixel": {"legacyEvents": {}, "initWithExistingTraits": false, "pixelId": "974260729352574", "standardEvents": {}}, "Google Analytics": {"trackingId": "UA-85527854-8", "classic": false, "includeSearch": false, "reportUncaughtExceptions": false, "anonymizeIp": false, "domain": "", "enhancedLinkAttribution": false, "nonInteraction": false, "siteSpeedSampleRate": 1, "trackCategorizedPages": true, "trackNamedPages": true, "dimensions": {}, "metrics": {}, "mobileTrackingId": "", "sampleRate": 100, "sendUserId": false, "contentGroupings": {}, "doubleClick": false, "enhancedEcommerce": false, "ignoredReferrers": []}, "Mixpanel": {"secureCookie": false, "setAllTraitsByDefault": true, "trackAllPages": false, "consolidatedPageCalls": true, "crossSubdomainCookie": true, "increments": [], "legacySuperProperties": false, "people": true, "peopleProperties": [], "token": "a50cc42380418beb6676d4fdf88ef980", "persistence": "cookie", "superProperties": [], "trackCategorizedPages": false, "trackNamedPages": false}, "Twitter Ads": {"events": {}, "identifier": "productId", "page": "", "universalTagPixelId": ""}, "Segment.io": {"apiHost": "untd.io/event", "apiKey": "united-masters", "addBundledMetadata": true, "unbundledIntegrations": []}, "Intercom": {}};

(function(){function e(t,n,i){function s(u,a){if(!n[u]){if(!t[u]){var f="function"==typeof require&&require;if(!a&&f)return f(u,!0);if(o)return o(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[u]={exports:{}};t[u][0].call(c.exports,function(e){var n=t[u][1][e];return s(n||e)},c,c.exports,e,t,n,i)}return n[u].exports}for(var o="function"==typeof require&&require,u=0;u<i.length;u++)s(i[u]);return s}return e})()({1:[function(e,t,n){var r=e("./integrations"),i=e("@segment/analytics.js-core"),s=e("@ndhoule/each");s(function(e){i.use(e)},r),t.exports=i},{"./integrations":3,"@ndhoule/each":9,"@segment/analytics.js-core":22}],2:[function(e,t,n){(function(t){var n=e("./analytics"),r=t.analytics||[],i=r&&r.SNIPPET_VERSION?parseFloat(r.SNIPPET_VERSION,10):0;n._persistent_properties={},n.add_persistent_properties=function(e){for(var t in e)n._persistent_properties[t]=e[t]},_analyticsNormalize=n.normalize,n.normalize=function(e){e.properties=e.properties||{};for(var t in n._persistent_properties)e.properties[t]===undefined&&(e.properties[t]=n._persistent_properties[t]);return _analyticsNormalize.call(n,e)},n.initialize(r.SETTINGS,{initialPageview:i===0,plan:{track:{}}});while(r&&r.length>0){var s=r.shift(),o=s.shift();typeof n[o]=="function"&&n[o].apply(n,s)}r=null,t.analytics=n}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./analytics":1}],3:[function(e,t,n){t.exports={"facebook-pixel":e("@segment/analytics.js-integration-facebook-pixel"),"google-analytics":e("@segment/analytics.js-integration-google-analytics"),"twitter-ads":e("@segment/analytics.js-integration-twitter-ads")}},{"@segment/analytics.js-integration-facebook-pixel":30,"@segment/analytics.js-integration-google-analytics":31,"@segment/analytics.js-integration-twitter-ads":32}],4:[function(e,t,n){"use strict";var r=e("@ndhoule/arity"),i=Object.prototype.toString,s=function(e){return typeof e=="function"},o=function(e){var t=typeof e;return t==="number"||t==="object"&&i.call(e)==="[object Number]"},u=function(t,n){if(!o(t))throw new TypeError("Expected a number but received "+typeof t);if(!s(n))throw new TypeError("Expected a function but received "+typeof n);var i=0;return r(n.length,function(){i+=1;if(i<t)return;return n.apply(this,arguments)})};t.exports=u},{"@ndhoule/arity":5}],5:[function(e,t,n){"use strict";var r=Object.prototype.toString,i=function(e){return typeof e=="function"},s=function(e){var t=typeof e;return t==="number"||t==="object"&&r.call(e)==="[object Number]"},o=function(t){var n=[];for(var r=1;r<=t;r+=1)n.push("arg"+r);return n},u=function(t){var n=o(t).join(", "),r="".concat("  return function(",n,") {\n","    return func.apply(this, arguments);\n","  };");return new Function("func",r)},a=[function(e){return function(){return e.apply(this,arguments)}},function(e){return function(t){return e.apply(this,arguments)}},function(e){return function(t,n){return e.apply(this,arguments)}},function(e){return function(t,n,r){return e.apply(this,arguments)}},function(e){return function(t,n,r,i){return e.apply(this,arguments)}},function(e){return function(t,n,r,i,s){return e.apply(this,arguments)}}],f=function(t,n){if(!i(n))throw new TypeError("Expected a function but got "+typeof n);return t=Math.max(s(t)?t:0,0),a[t]||(a[t]=u(t)),a[t](n)};t.exports=f},{}],6:[function(e,t,n){"use strict";var r=e("component-type"),i=function s(e){var t=r(e);if(t==="object"){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=s(e[i]));return n}if(t==="array"){var n=new Array(e.length);for(var o=0,u=e.length;o<u;o++)n[o]=s(e[o]);return n}if(t==="regexp"){var a="";return a+=e.multiline?"m":"",a+=e.global?"g":"",a+=e.ignoreCase?"i":"",new RegExp(e.source,a)}return t==="date"?new Date(e.getTime()):e};t.exports=i},{"component-type":63}],7:[function(e,t,n){"use strict";var r=e("@ndhoule/drop"),i=e("@ndhoule/rest"),s=Object.prototype.hasOwnProperty,o=Object.prototype.toString,u=function(t){return Boolean(t)&&typeof t=="object"},a=function(t){return Boolean(t)&&o.call(t)==="[object Object]"},f=function(t,n,r,i){return s.call(n,i)&&t[i]===undefined&&(t[i]=r),n},l=function(e,t,n,r){return s.call(t,r)&&(a(e[r])&&a(n)?e[r]=h(e[r],n):e[r]===undefined&&(e[r]=n)),t},c=function(e,t){if(!u(t))return t;e=e||f;var n=r(2,arguments);for(var i=0;i<n.length;i+=1)for(var s in n[i])e(t,n[i],n[i][s],s);return t},h=function(t){return c.apply(null,[l,t].concat(i(arguments)))},p=function(e){return c.apply(null,[null,e].concat(i(arguments)))};t.exports=p,t.exports.deep=h},{"@ndhoule/drop":8,"@ndhoule/rest":17}],8:[function(e,t,n){"use strict";var r=Math.max,i=function(t,n){var i=n?n.length:0;if(!i)return[];var s=r(Number(t)||0,0),o=r(i-s,0),u=new Array(o);for(var a=0;a<o;a+=1)u[a]=n[a+s];return u};t.exports=i},{}],9:[function(e,t,n){"use strict";var r=e("@ndhoule/keys"),i=Object.prototype.toString,s=function(t){var n=typeof t;return n==="number"||n==="object"&&i.call(t)==="[object Number]"},o=typeof Array.isArray=="function"?Array.isArray:function(t){return i.call(t)==="[object Array]"},u=function(t){return t!=null&&(o(t)||t!=="function"&&s(t.length))},a=function(t,n){for(var r=0;r<n.length;r+=1)if(t(n[r],r,n)===!1)break},f=function(t,n){var i=r(n);for(var s=0;s<i.length;s+=1)if(t(n[i[s]],i[s],n)===!1)break},l=function(t,n){return(u(n)?a:f).call(this,t,n)};t.exports=l},{"@ndhoule/keys":14}],10:[function(e,t,n){"use strict";var r=e("@ndhoule/each"),i=function(t,n){if(typeof t!="function")throw new TypeError("`predicate` must be a function but was a "+typeof t);var i=!0;return r(function(e,n,r){i=!!t(e,n,r);if(!i)return!1},n),i};t.exports=i},{"@ndhoule/each":9}],11:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=function(t){var n=Array.prototype.slice.call(arguments,1);for(var i=0;i<n.length;i+=1)for(var s in n[i])r.call(n[i],s)&&(t[s]=n[i][s]);return t};t.exports=i},{}],12:[function(e,t,n){"use strict";var r=e("@ndhoule/each"),i=function(t,n,i){if(typeof t!="function")throw new TypeError("Expected a function but received a "+typeof t);return r(function(e,r,i){n=t(n,e,r,i)},i),n};t.exports=i},{"@ndhoule/each":9}],13:[function(e,t,n){"use strict";var r=e("@ndhoule/each"),i=String.prototype.indexOf,s=function(t,n){return t===n?t!==0||1/t===1/n:t!==t&&n!==n},o=function(t,n){var o=!1;return typeof n=="string"?i.call(n,t)!==-1:(r(function(e){if(s(e,t))return o=!0,!1},n),o)};t.exports=o},{"@ndhoule/each":9}],14:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=String.prototype.charAt,s=Object.prototype.toString,o=function(e,t){return i.call(e,t)},u=function(t,n){return r.call(t,n)},a=function(t){return s.call(t)==="[object String]"},f=function(t){return t!=null&&typeof t!="function"&&typeof t.length=="number"},l=function(t,n){n=n||u;var r=[];for(var i=0,s=t.length;i<s;i+=1)n(t,i)&&r.push(String(i));return r},c=function(t,n){n=n||u;var r=[];for(var i in t)n(t,i)&&r.push(String(i));return r},h=function(t){return t==null?[]:a(t)?l(t,o):f(t)?l(t,u):c(t)};t.exports=h},{}],15:[function(e,t,n){"use strict";var r=e("@ndhoule/each"),i=function(t,n){if(typeof t!="function")throw new TypeError("Expected a function but received a "+typeof t);var i=[];return r(function(e,n,r){i.push(t(e,n,r))},n),i};t.exports=i},{"@ndhoule/each":9}],16:[function(e,t,n){"use strict";var r=Object.prototype.toString,i=function(e){return e!=null},s=function(e){return r.call(e)==="[object Array]"},o=function(e){return typeof e=="string"||r.call(e)==="[object String]"},u=function(e){return e!=null&&typeof e=="object"},a=function(t,n){if(!i(n)||!u(n))return{};o(t)&&(t=[t]),s(t)||(t=[]);var r={};for(var a=0;a<t.length;a+=1)o(t[a])&&t[a]in n&&(r[t[a]]=n[t[a]]);return r};t.exports=a},{}],17:[function(e,t,n){"use strict";var r=Math.max,i=function(t){if(t==null||!t.length)return[];var n=new Array(r(t.length-2,0));for(var i=1;i<t.length;i+=1)n[i-1]=t[i];return n};t.exports=i},{}],18:[function(e,t,n){(function(n){"use strict";function H(){this._options({}),this.Integrations={},this._integrations={},this._readied=!1,this._timeout=300,this._user=D,this.log=m("analytics.js"),c(this);var e=this;this.on("initialize",function(t,n){n.initialPageview&&e.page(),e._parseQuery(window.location.search)})}var r=n.analytics,i=e("segmentio-facade").Alias,s=e("component-emitter"),o=e("segmentio-facade").Group,u=e("segmentio-facade").Identify,a=e("segmentio-facade").Page,f=e("segmentio-facade").Track,l=e("@ndhoule/after"),c=e("bind-all"),h=e("@ndhoule/clone"),p=e("extend"),d=e("./cookie"),v=e("./metrics"),m=e("debug"),g=e("@ndhoule/defaults"),y=e("@ndhoule/each"),b=e("@ndhoule/foldl"),w=e("./group"),E=e("is"),S=e("@segment/is-meta"),x=e("@ndhoule/keys"),T=e("./memory"),N=e("next-tick"),C=e("./normalize"),k=e("component-event").bind,L=e("./pageDefaults"),A=e("@ndhoule/pick"),O=e("@segment/prevent-default"),M=e("component-querystring"),_=e("./store"),D=e("./user"),P=e("component-type");s(H.prototype),H.prototype.use=function(e){return e(this),this},H.prototype.addIntegration=function(e){var t=e.prototype.name;if(!t)throw new TypeError("attempted to add an invalid integration");return this.Integrations[t]=e,this},H.prototype.init=H.prototype.initialize=function(e,t){e=e||{},t=t||{},this._options(t),this._readied=!1;var n=this;y(function(t,r){var i=n.Integrations[r];i||delete e[r]},e),y(function(e,r){if(t.integrations)if(t.integrations[r]===!1||t.integrations.All===!1&&!t.integrations[r])return;var i=n.Integrations[r],s={};p(!0,s,e);var o=new i(s);n.log("initialize %o - %o",r,e),n.add(o)},e);var r=this._integrations;D.load(),w.load();var i=x(r).length,s=l(i,function(){n._readied=!0,n.emit("ready")});return i<=0&&s(),this.failedInitializations=[],y(function(e){t.initialPageview&&e.options.initialPageview===!1&&(e.page=l(2,e.page)),e.analytics=n,e.once("ready",s);try{v.increment("analytics_js.integration.invoke",{method:"initialize",integration_name:e.name}),e.initialize()}catch(r){var i=e.name;v.increment("analytics_js.integration.invoke.error",{method:"initialize",integration_name:e.name}),n.failedInitializations.push(i),n.log("Error initializing %s integration: %o",i,r),e.ready()}},r),this.initialized=!0,this.emit("initialize",e,t),this},H.prototype.setAnonymousId=function(e){return this.user().anonymousId(e),this},H.prototype.add=function(e){return this._integrations[e.name]=e,this},H.prototype.identify=function(e,t,n,r){E.fn(n)&&(r=n,n=null),E.fn(t)&&(r=t,n=null,t=null),E.object(e)&&(n=t,t=e,e=D.id()),D.identify(e,t);var i=this.normalize({options:n,traits:D.traits(),userId:D.id()});return this.options.integrations&&g(i.integrations,this.options.integrations),this._invoke("identify",new u(i)),this.emit("identify",e,t,n),this._callback(r),this},H.prototype.user=function(){return D},H.prototype.group=function(e,t,n,r){if(!arguments.length)return w;E.fn(n)&&(r=n,n=null),E.fn(t)&&(r=t,n=null,t=null),E.object(e)&&(n=t,t=e,e=w.id()),w.identify(e,t);var i=this.normalize({options:n,traits:w.traits(),groupId:w.id()});return this.options.integrations&&g(i.integrations,this.options.integrations),this._invoke("group",new o(i)),this.emit("group",e,t,n),this._callback(r),this},H.prototype.track=function(e,t,n,r){E.fn(n)&&(r=n,n=null),E.fn(t)&&(r=t,n=null,t=null);var i=this.options.plan||{},s=i.track||{},o={},u=this.normalize({properties:t,options:n,event:e});i=s[e];if(i)this.log("plan %o - %o",e,i),i.enabled===!1?o={All:!1,"Segment.io":!0}:o=i.integrations||{};else{var a=s.__default||{enabled:!0};a.enabled||(o={All:!1,"Segment.io":!0})}return g(u.integrations,this._mergeInitializeAndPlanIntegrations(o)),this._invoke("track",new f(u)),this.emit("track",e,t,n),this._callback(r),this},H.prototype.trackClick=H.prototype.trackLink=function(e,t,n){if(!e)return this;P(e)==="element"&&(e=[e]);var r=this;return y(function(e){if(P(e)!=="element")throw new TypeError("Must pass HTMLElement to `analytics.trackLink`.");k(e,"click",function(i){var s=E.fn(t)?t(e):t,o=E.fn(n)?n(e):n,u=e.getAttribute("href")||e.getAttributeNS("http://www.w3.org/1999/xlink","href")||e.getAttribute("xlink:href");r.track(s,o),u&&e.target!=="_blank"&&!S(i)&&(O(i),r._callback(function(){window.location.href=u}))})},e),this},H.prototype.trackSubmit=H.prototype.trackForm=function(e,t,n){if(!e)return this;P(e)==="element"&&(e=[e]);var r=this;return y(function(e){function i(i){O(i);var s=E.fn(t)?t(e):t,o=E.fn(n)?n(e):n;r.track(s,o),r._callback(function(){e.submit()})}if(P(e)!=="element")throw new TypeError("Must pass HTMLElement to `analytics.trackForm`.");var s=window.jQuery||window.Zepto;s?s(e).submit(i):k(e,"submit",i)},e),this},H.prototype.page=function(e,t,n,r,i){E.fn(r)&&(i=r,r=null),E.fn(n)&&(i=n,r=n=null),E.fn(t)&&(i=t,r=n=t=null),P(e)==="object"&&(r=t,n=e,t=e=null),P(t)==="object"&&(r=n,n=t,t=null),P(e)==="string"&&P(t)!=="string"&&(t=e,e=null),n=h(n)||{},t&&(n.name=t),e&&(n.category=e);var s=L();g(n,s);var o=A(x(s),n);E.empty(o)||(r=r||{},r.context=r.context||{},r.context.page=o);var u=this.normalize({properties:n,category:e,options:r,name:t});return this.options.integrations&&g(u.integrations,this.options.integrations),this._invoke("page",new a(u)),this.emit("page",e,t,n,r),this._callback(i),this},H.prototype.pageview=function(e){var t={};return e&&(t.path=e),this.page(t),this},H.prototype.alias=function(e,t,n,r){E.fn(n)&&(r=n,n=null),E.fn(t)&&(r=t,n=null,t=null),E.object(t)&&(n=t,t=null);var s=this.normalize({options:n,previousId:t,userId:e});return this.options.integrations&&g(s.integrations,this.options.integrations),this._invoke("alias",new i(s)),this.emit("alias",e,t,n),this._callback(r),this},H.prototype.ready=function(e){return E.fn(e)&&(this._readied?N(e):this.once("ready",e)),this},H.prototype.timeout=function(e){this._timeout=e},H.prototype.debug=function(e){!arguments.length||e?m.enable("analytics:"+(e||"*")):m.disable()},H.prototype._options=function(e){return e=e||{},this.options=e,d.options(e.cookie),v.options(e.metrics),_.options(e.localStorage),D.options(e.user),w.options(e.group),this},H.prototype._callback=function(e){return E.fn(e)&&(this._timeout?setTimeout(e,this._timeout):N(e)),this},H.prototype._invoke=function(e,t){var n=this;v.increment("analytics_js.invoke",{method:e}),this.emit("invoke",t);var r=n.failedInitializations||[];return y(function(i,s){if(!t.enabled(s))return;if(r.indexOf(s)>=0)n.log("Skipping invokation of .%s method of %s integration. Integation failed to initialize properly.",e,s);else try{v.increment("analytics_js.integration.invoke",{method:e,integration_name:i.name}),i.invoke.call(i,e,t)}catch(o){v.increment("analytics_js.integration.invoke.error",{method:e,integration_name:i.name}),n.log("Error invoking .%s method of %s integration: %o",e,s,o)}},this._integrations),this},H.prototype.push=function(e){var t=e.shift();if(!this[t])return;this[t].apply(this,e)},H.prototype.reset=function(){this.user().logout(),this.group().logout()},H.prototype._parseQuery=function(e){function i(e,t){var n=e.length,r;return b(function(t,i,s){return s.substr(0,n)===e&&(r=s.substr(n),t[r]=i),t},{},t)}var t=M.parse(e),n=i("ajs_trait_",t),r=i("ajs_prop_",t);return t.ajs_uid&&this.identify(t.ajs_uid,n),t.ajs_event&&this.track(t.ajs_event,r),t.ajs_aid&&D.anonymousId(t.ajs_aid),this},H.prototype.normalize=function(e){return e=C(e,x(this._integrations)),e.anonymousId&&D.anonymousId(e.anonymousId),e.anonymousId=D.anonymousId(),e.context.page=g(e.context.page||{},L()),e},H.prototype._mergeInitializeAndPlanIntegrations=function(e){if(!this.options.integrations)return e;var t=p({},this.options.integrations),n;e.All===!1&&(t={All:!1});for(n in e)e.hasOwnProperty(n)&&this.options.integrations[n]!==!1&&(t[n]=e[n]);return t},H.prototype.noConflict=function(){return window.analytics=r,this},t.exports=H,t.exports.cookie=d,t.exports.memory=T,t.exports.store=_,t.exports.metrics=v}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./cookie":19,"./group":21,"./memory":23,"./metrics":24,"./normalize":25,"./pageDefaults":26,"./store":27,"./user":28,"@ndhoule/after":4,"@ndhoule/clone":6,"@ndhoule/defaults":7,"@ndhoule/each":9,"@ndhoule/foldl":12,"@ndhoule/keys":14,"@ndhoule/pick":16,"@segment/is-meta":41,"@segment/prevent-default":45,"bind-all":50,"component-emitter":58,"component-event":59,"component-querystring":61,"component-type":63,debug:66,extend:68,is:75,"next-tick":86,"segmentio-facade":98}],19:[function(e,t,n){"use strict";function l(e){this.options(e)}var r=e("bind-all"),i=e("@ndhoule/clone"),s=e("component-cookie"),o=e("debug")("analytics.js:cookie"),u=e("@ndhoule/defaults"),a=e("json3"),f=e("@segment/top-domain");l.prototype.options=function(e){if(arguments.length===0)return this._options;e=e||{};var t="."+f(window.location.href);t==="."&&(t=null),this._options=u(e,{maxage:31536e6,path:"/",domain:t}),this.set("ajs:test",!0),this.get("ajs:test")||(o("fallback to domain=null"),this._options.domain=null),this.remove("ajs:test")},l.prototype.set=function(e,t){try{return t=a.stringify(t),s(e,t,i(this._options)),!0}catch(n){return!1}},l.prototype.get=function(e){try{var t=s(e);return t=t?a.parse(t):null,t}catch(n){return null}},l.prototype.remove=function(e){try{return s(e,null,i(this._options)),!0}catch(t){return!1}},t.exports=r(new l),t.exports.Cookie=l},{"@ndhoule/clone":6,"@ndhoule/defaults":7,"@segment/top-domain":48,"bind-all":50,"component-cookie":52,debug:66,json3:76}],20:[function(e,t,n){"use strict";function c(e){this.options(e),this.initialize()}var r=e("@ndhoule/clone"),i=e("./cookie"),s=e("debug")("analytics:entity"),o=e("@ndhoule/defaults"),u=e("@ndhoule/extend"),a=e("./memory"),f=e("./store"),l=e("@segment/isodate-traverse");t.exports=c,c.prototype.initialize=function(){i.set("ajs:cookies",!0);if(i.get("ajs:cookies")){i.remove("ajs:cookies"),this._storage=i;return}if(f.enabled){this._storage=f;return}s("warning using memory store both cookies and localStorage are disabled"),this._storage=a},c.prototype.storage=function(){return this._storage},c.prototype.options=function(e){if(arguments.length===0)return this._options;this._options=o(e||{},this.defaults||{})},c.prototype.id=function(e){switch(arguments.length){case 0:return this._getId();case 1:return this._setId(e);default:}},c.prototype._getId=function(){var e=this._options.persist?this.storage().get(this._options.cookie.key):this._id;return e===undefined?null:e},c.prototype._setId=function(e){this._options.persist?this.storage().set(this._options.cookie.key,e):this._id=e},c.prototype.properties=c.prototype.traits=function(e){switch(arguments.length){case 0:return this._getTraits();case 1:return this._setTraits(e);default:}},c.prototype._getTraits=function(){var e=this._options.persist?f.get(this._options.localStorage.key):this._traits;return e?l(r(e)):{}},c.prototype._setTraits=function(e){e=e||{},this._options.persist?f.set(this._options.localStorage.key,e):this._traits=e},c.prototype.identify=function(e,t){t=t||{};var n=this.id();if(n===null||n===e)t=u(this.traits(),t);e&&this.id(e),this.debug("identify %o, %o",e,t),this.traits(t),this.save()},c.prototype.save=function(){return this._options.persist?(i.set(this._options.cookie.key,this.id()),f.set(this._options.localStorage.key,this.traits()),!0):!1},c.prototype.logout=function(){this.id(null),this.traits({}),i.remove(this._options.cookie.key),f.remove(this._options.localStorage.key)},c.prototype.reset=function(){this.logout(),this.options({})},c.prototype.load=function(){this.id(i.get(this._options.cookie.key)),this.traits(f.get(this._options.localStorage.key))}},{"./cookie":19,"./memory":23,"./store":27,"@ndhoule/clone":6,"@ndhoule/defaults":7,"@ndhoule/extend":11,"@segment/isodate-traverse":42,debug:66}],21:[function(e,t,n){"use strict";function u(e){this.defaults=u.defaults,this.debug=s,r.call(this,e)}var r=e("./entity"),i=e("bind-all"),s=e("debug")("analytics:group"),o=e("inherits");u.defaults={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},o(u,r),t.exports=i(new u),t.exports.Group=u},{"./entity":20,"bind-all":50,debug:66,inherits:73}],22:[function(e,t,n){"use strict";var r=e("./analytics"),i=new r;i.require=e,i.VERSION=e("../package.json").version,t.exports=i},{"../package.json":29,"./analytics":18}],23:[function(e,t,n){"use strict";function o(){this.store={}}var r=e("bind-all"),i=e("@ndhoule/clone"),s=Object.prototype.hasOwnProperty;t.exports=r(new o),o.prototype.set=function(e,t){return this.store[e]=i(t),!0},o.prototype.get=function(e){if(!s.call(this.store,e))return;return i(this.store[e])},o.prototype.remove=function(e){return delete this.store[e],!0}},{"@ndhoule/clone":6,"bind-all":50}],24:[function(e,t,n){"use strict";function o(e){this.options(e)}var r=e("bind-all"),i=e("@segment/send-json"),s=e("debug")("analytics.js:metrics");o.prototype.options=function(e){e=e||{},this.host=e.host||"api.segment.io/v1",this.sampleRate=e.sampleRate||0,this.flushTimer=e.flushTimer||3e4,this.maxQueueSize=e.maxQueueSize||20,this.queue=[];if(this.sampleRate>0){var t=this;setInterval(function(){t._flush()},this.flushTimer)}},o.prototype.increment=function(e,t){if(Math.random()>this.sampleRate)return;if(this.queue.length>=this.maxQueueSize)return;this.queue.push({type:"Counter",metric:e,value:1,tags:t}),e.indexOf("error")>0&&this._flush()},o.prototype._flush=function(){var e=this;if(e.queue.length<=0)return;var t={series:this.queue},n={"Content-Type":"text/plain"};e.queue=[];if(i.type!=="xhr")return;i("https://"+this.host+"/m",t,n,function(e,n){s("sent %O, received %O",t,[e,n])})},t.exports=r(new o),t.exports.Metrics=o},{"@segment/send-json":46,"bind-all":50,debug:66}],25:[function(e,t,n){"use strict";function c(e,t){function m(e){return!!o(e,t)||e.toLowerCase()==="all"||!!o(e.toLowerCase(),n)}var n=u(function(e){return e.toLowerCase()},t),c=e.options||{},h=c.integrations||{},p=c.providers||{},d=c.context||{},v={};return r("<-",e),s(function(e,t){if(!m(t))return;f.call(h,t)||(h[t]=e),delete c[t]},c),delete c.providers,s(function(e,t){if(!m(t))return;if(a(h[t])==="object")return;if(f.call(h,t)&&typeof p[t]=="boolean")return;h[t]=e},p),s(function(e,t){o(t,l)?v[t]=c[t]:d[t]=c[t]},c),delete e.options,v.integrations=h,v.context=d,v=i(v,e),r("->",v),v}var r=e("debug")("analytics.js:normalize"),i=e("@ndhoule/defaults"),s=e("@ndhoule/each"),o=e("@ndhoule/includes"),u=e("@ndhoule/map"),a=e("component-type"),f=Object.prototype.hasOwnProperty;t.exports=c;var l=["integrations","anonymousId","timestamp","context"]},{"@ndhoule/defaults":7,"@ndhoule/each":9,"@ndhoule/includes":13,"@ndhoule/map":15,"component-type":63,debug:66}],26:[function(e,t,n){"use strict";function o(){return{path:u(),referrer:document.referrer,search:location.search,title:document.title,url:a(location.search)}}function u(){var e=r();if(!e)return window.location.pathname;var t=s.parse(e);return t.pathname}function a(e){var t=r();if(t)return i("?",t)?t:t+e;var n=window.location.href,s=n.indexOf("#");return s===-1?n:n.slice(0,s)}var r=e("@segment/canonical"),i=e("@ndhoule/includes"),s=e("component-url");t.exports=o},{"@ndhoule/includes":13,"@segment/canonical":39,"component-url":64}],27:[function(e,t,n){"use strict";function o(e){this.options(e)}var r=e("bind-all"),i=e("@ndhoule/defaults"),s=e("@segment/store");o.prototype.options=function(e){if(arguments.length===0)return this._options;e=e||{},i(e,{enabled:!0}),this.enabled=e.enabled&&s.enabled,this._options=e},o.prototype.set=function(e,t){return this.enabled?s.set(e,t):!1},o.prototype.get=function(e){return this.enabled?s.get(e):null},o.prototype.remove=function(e){return this.enabled?s.remove(e):!1},t.exports=r(new o),t.exports.Store=o},{"@ndhoule/defaults":7,"@segment/store":47,"bind-all":50}],28:[function(e,t,n){"use strict";function l(e){this.defaults=l.defaults,this.debug=o,r.call(this,e)}var r=e("./entity"),i=e("bind-all"),s=e("./cookie"),o=e("debug")("analytics:user"),u=e("inherits"),a=e("component-cookie"),f=e("uuid");l.defaults={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},u(l,r),l.prototype.id=function(e){var t=this._getId(),n=r.prototype.id.apply(this,arguments);return t==null?n:(t!=e&&e&&this.anonymousId(null),n)},l.prototype.anonymousId=function(e){var t=this.storage();return arguments.length?(t.set("ajs_anonymous_id",e),this):(e=t.get("ajs_anonymous_id"),e?e:(e=a("_sio"),e?(e=e.split("----")[0],t.set("ajs_anonymous_id",e),t.remove("_sio"),e):(e=f.v4(),t.set("ajs_anonymous_id",e),t.get("ajs_anonymous_id"))))},l.prototype.logout=function(){r.prototype.logout.call(this),this.anonymousId(null)},l.prototype.load=function(){if(this._loadOldCookie())return;r.prototype.load.call(this)},l.prototype._loadOldCookie=function(){var e=s.get(this._options.cookie.oldKey);return e?(this.id(e.id),this.traits(e.traits),s.remove(this._options.cookie.oldKey),!0):!1},t.exports=i(new l),t.exports.User=l},{"./cookie":19,"./entity":20,"bind-all":50,"component-cookie":52,debug:66,inherits:73,uuid:116}],29:[function(e,t,n){t.exports={_from:"@segment/analytics.js-core@3.7.2",_id:"@segment/analytics.js-core@3.7.2",_inBundle:!1,_integrity:"sha512-+I0jGiZka4oZVZCXCYmTdG0h0kebcqXLVWTgDp/ZiXGwUeVjT6yfk2H69j7NbAJDMUg09db0nEMbZcyjltX/Zw==",_location:"/@segment/analytics.js-core",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"@segment/analytics.js-core@3.7.2",name:"@segment/analytics.js-core",escapedName:"@segment%2fanalytics.js-core",scope:"@segment",rawSpec:"3.7.2",saveSpec:null,fetchSpec:"3.7.2"},_requiredBy:["#DEV:/"],_resolved:"https://registry.npmjs.org/@segment/analytics.js-core/-/analytics.js-core-3.7.2.tgz",_shasum:"4e663b49ec5c9cb6baf40394ba798a6d84075a1f",_spec:"@segment/analytics.js-core@3.7.2",_where:"/Users/treywalker/analytics.js",author:{name:"Segment",email:"friends@segment.com"},bugs:{url:"https://github.com/segmentio/analytics.js-core/issues"},bundleDependencies:!1,dependencies:{"@ndhoule/after":"^1.0.0","@ndhoule/clone":"^1.0.0","@ndhoule/defaults":"^2.0.1","@ndhoule/each":"^2.0.1","@ndhoule/extend":"^2.0.0","@ndhoule/foldl":"^2.0.1","@ndhoule/includes":"^2.0.1","@ndhoule/keys":"^2.0.0","@ndhoule/map":"^2.0.1","@ndhoule/pick":"^2.0.0","@segment/canonical":"^1.0.0","@segment/is-meta":"^1.0.0","@segment/isodate":"^1.0.2","@segment/isodate-traverse":"^1.0.1","@segment/prevent-default":"^1.0.0","@segment/send-json":"^3.0.0","@segment/store":"^1.3.20","@segment/top-domain":"^3.0.0","bind-all":"^1.0.0","component-cookie":"^1.1.2","component-emitter":"^1.2.1","component-event":"^0.1.4","component-querystring":"^2.0.0","component-type":"^1.2.1","component-url":"^0.2.1",debug:"^0.7.4",extend:"3.0.1",inherits:"^2.0.1",install:"^0.7.3",is:"^3.1.0",json3:"^3.3.2","new-date":"^1.0.0","next-tick":"^0.2.2","segmentio-facade":"^3.0.2",uuid:"^2.0.2"},deprecated:!1,description:"The hassle-free way to integrate analytics into any web application.",devDependencies:{"@segment/analytics.js-integration":"^3.2.1","@segment/eslint-config":"^4.0.0",browserify:"13.0.0","browserify-istanbul":"^2.0.0",codecov:"^3.0.2","compat-trigger-event":"^1.0.0","component-each":"^0.2.6",eslint:"^4.19.1","eslint-config-prettier":"^2.9.0","eslint-plugin-mocha":"^5.0.0","eslint-plugin-react":"^7.9.1","eslint-plugin-require-path-exists":"^1.1.8",husky:"^0.14.3",istanbul:"^0.4.3",jquery:"^3.2.1",karma:"1.3.0","karma-browserify":"^5.0.4","karma-chrome-launcher":"^1.0.1","karma-coverage":"^1.0.0","karma-junit-reporter":"^1.0.0","karma-mocha":"1.0.1","karma-phantomjs-launcher":"^1.0.0","karma-sauce-launcher":"^1.0.0","karma-spec-reporter":"0.0.26","karma-summary-reporter":"^1.5.0","lint-staged":"^7.2.0",mocha:"^2.2.5",np:"^3.0.4","phantomjs-prebuilt":"^2.1.7","prettier-eslint-cli":"^4.7.1",proclaim:"^3.4.1",sinon:"^1.7.3",snyk:"^1.83.0",watchify:"^3.7.0"},homepage:"https://github.com/segmentio/analytics.js-core#readme",keywords:["analytics","analytics.js","segment","segment.io"],license:"SEE LICENSE IN LICENSE","lint-staged":{linters:{"*.{js,json,md}":["prettier-eslint --write","git add"]}},main:"lib/index.js",name:"@segment/analytics.js-core",repository:{type:"git",url:"git+https://github.com/segmentio/analytics.js-core.git"},scripts:{format:'prettier-eslint --write --list-different "./{lib,test}/**/*.{js,json,md}"',lint:'eslint "./{lib,test}/**/*.js"',np:"np --no-publish",precommit:"lint-staged",test:"make test"},version:"3.7.2"}},{}],30:[function(e,t,n){"use strict";function h(e){return Number(e||0).toFixed(2)}function p(e){var t=e&&e.user().traits();if(!t)return{};var n,r;if(t.firstName)n=t.firstName,r=t.lastName;else{var i=t.name&&t.name.toLowerCase().split(" ")||[];n=i.shift(),r=i.pop()}var s;t.gender&&a.string(t.gender)&&(s=t.gender.slice(0,1).toLowerCase());var u=t.birthday&&f(t.birthday,"yyyymmdd"),l=t.address||{},c=l.city&&l.city.split(" ").join("").toLowerCase(),h=l.state&&l.state.toLowerCase(),p=l.postalCode;return o({em:t.email,fn:n,ln:r,ph:t.phone,ge:s,db:u,ct:c,st:h,zp:p})}var r=e("@segment/analytics.js-integration"),i=e("@ndhoule/foldl"),s=e("@ndhoule/each"),o=e("reject"),u=e("to-camel-case"),a=e("is"),f=e("dateformat"),l=e("segmentio-facade").Track,c=t.exports=r("Facebook Pixel").global("fbq").option("pixelId","").option("agent","seg").option("valueIdentifier","value").option("initWithExistingTraits",!1).option("traverse",!1).mapping("standardEvents").mapping("legacyEvents").tag('<script src="//connect.facebook.net/en_US/fbevents.js">');c.prototype.initialize=function(){window._fbq=function(){window.fbq.callMethod?window.fbq.callMethod.apply(window.fbq,arguments):window.fbq.queue.push(arguments)},window.fbq=window.fbq||window._fbq,window.fbq.push=window.fbq,window.fbq.loaded=!0,window.fbq.disablePushState=!0,window.fbq.allowDuplicatePageViews=!0,window.fbq.agent=this.options.agent,window.fbq.version="2.0",window.fbq.queue=[],this.load(this.ready);if(this.options.initWithExistingTraits){var e=p(this.analytics);window.fbq("init",this.options.pixelId,e)}else window.fbq("init",this.options.pixelId)},c.prototype.loaded=function(){return!!window.fbq&&!!window.fbq.callMethod},c.prototype.page=function(){window.fbq("track","PageView")},c.prototype.track=function(e){var t=e.event(),n=h(e.revenue()),r=i(function(e,t,r){if(r==="revenue")return e.value=n,e;var i=["checkinDate","checkoutDate","departingArrivalDate","departingDepartureDate","returningArrivalDate","returningDepartureDate","travelEnd","travelStart"];return i.indexOf(u(r))>=0&&a.date(t)?(t=t.toISOString().split("T")[0],e[r]=t,e):(e[r]=t,e)},{},e.properties()),o=this.standardEvents(t),f=this.legacyEvents(t);if(![].concat(o,f).length){window.fbq("trackCustom",t,r);return}s(function(t){t==="Purchase"&&(r.currency=e.currency()),window.fbq("track",t,r)},o),s(function(t){window.fbq("track",t,{currency:e.currency(),value:n})},f)},c.prototype.productListViewed=function(e){var t,n=[],r=e.products();Array.isArray(r)&&r.forEach(function(e){var t=e.productId||e.product_id;t&&n.push(t)}),n.length?t="product":(n.push(e.category()||""),t="product_group"),window.fbq("track","ViewContent",{content_ids:n,content_type:t}),s(function(t){window.fbq("track",t,{currency:e.currency(),value:h(e.revenue())})},this.legacyEvents(e.event()))},c.prototype.productViewed=function(e){window.fbq("track","ViewContent",{content_ids:[e.productId()||e.id()||e.sku()||""],content_type:"product",content_name:e.name()||"",content_category:e.category()||"",currency:e.currency(),value:this.options.valueIdentifier==="value"?h(e.value()):h(e.price())}),s(function(t){window.fbq("track",t,{currency:e.currency(),value:h(e.revenue())})},this.legacyEvents(e.event()))},c.prototype.productAdded=function(e){window.fbq("track","AddToCart",{content_ids:[e.productId()||e.id()||e.sku()||""],content_type:"product",content_name:e.name()||"",content_category:e.category()||"",currency:e.currency(),value:this.options.valueIdentifier==="value"?h(e.value()):h(e.price())}),s(function(t){window.fbq("track",t,{currency:e.currency(),value:h(e.revenue())})},this.legacyEvents(e.event()))},c.prototype.orderCompleted=function(e){var t=i(function(e,t){var n=new l({properties:t}),r=n.productId()||n.id()||n.sku();return r&&e.push(r),e},[],e.products()||[]),n=h(e.revenue());window.fbq("track","Purchase",{content_ids:t,content_type:"product",currency:e.currency(),value:n}),s(function(t){window.fbq("track",t,{currency:e.currency(),value:h(e.revenue())})},this.legacyEvents(e.event()))}},{"@ndhoule/each":9,"@ndhoule/foldl":12,"@segment/analytics.js-integration":33,dateformat:65,is:75,reject:90,"segmentio-facade":98,"to-camel-case":106}],31:[function(e,t,n){"use strict";function m(e,t){if(!e)return;var n=e.path;return t.includeSearch&&e.search&&(n+=e.search),n}function g(e,t,n){var r={},i=b(e,t);if(f(i)){if(!t.setAllMappedProps)return o(i,function(e,t){r[e]=t}),r
;window.ga(n+"set",i)}}function y(e){return!e||e<0?0:Math.round(e)}function b(e,t){var n=t.dimensions,r=t.metrics,i=t.contentGroupings,u={};return o([r,n,i],function(t){o(t,function(t,n){var r=s(e,t)||e[t];a.bool(r)&&(r=r.toString());if(r||r===0)u[n]=r})}),u}function w(e,t,n){var r=e.properties(),i={id:e.productId()||e.id()||e.sku(),name:e.name(),category:e.category(),quantity:e.quantity(),price:e.price(),brand:r.brand,variant:r.variant,currency:e.currency()};r.position!=null&&(i.position=Math.round(r.position));var s=e.proxy("properties.coupon");s&&(i.coupon=s),i=p(i,b(r,n)),window.ga(t+"ec:addProduct",i)}function E(e,t,n,r,i){w(e,r,i),window.ga(r+"ec:setAction",t,n||{})}function S(e){var t=[e.paymentMethod,e.shippingMethod],n=c(t);return n.length>0?n.join(", "):null}function x(e,t){return t.currency=t.currency||e.currency(),new r({properties:t})}var r=e("segmentio-facade").Track,i=e("@ndhoule/defaults"),s=e("obj-case"),o=e("component-each"),u=e("@segment/analytics.js-integration"),a=e("is"),f=e("object-component").length,l=e("global-queue")("_gaq"),c=e("reject"),h=e("use-https"),p=e("extend"),d;t.exports=n=function(e){e.addIntegration(v),d=e.user()};var v=n.Integration=u("Google Analytics").readyOnLoad().global("ga").global("gaplugins").global("_gaq").global("GoogleAnalyticsObject").option("anonymizeIp",!1).option("useGoogleAmpClientId",!1).option("classic",!1).option("contentGroupings",{}).option("dimensions",{}).option("domain","auto").option("doubleClick",!1).option("enhancedEcommerce",!1).option("enhancedLinkAttribution",!1).option("ignoredReferrers",null).option("includeSearch",!1).option("setAllMappedProps",!0).option("metrics",{}).option("nonInteraction",!1).option("sendUserId",!1).option("siteSpeedSampleRate",1).option("sampleRate",100).option("trackCategorizedPages",!0).option("trackNamedPages",!0).option("trackingId","").option("optimize","").option("nameTracker",!1).tag("library",'<script src="//www.google-analytics.com/analytics.js">').tag("double click",'<script src="//stats.g.doubleclick.net/dc.js">').tag("http",'<script src="http://www.google-analytics.com/ga.js">').tag("https",'<script src="https://ssl.google-analytics.com/ga.js">');v.on("construct",function(e){e.options.classic?(e.initialize=e.initializeClassic,e.loaded=e.loadedClassic,e.page=e.pageClassic,e.track=e.trackClassic,e.orderCompleted=e.completedOrderClassic):e.options.enhancedEcommerce&&(e.productViewed=e.productViewedEnhanced,e.productClicked=e.productClickedEnhanced,e.productAdded=e.productAddedEnhanced,e.productRemoved=e.productRemovedEnhanced,e.checkoutStarted=e.checkoutStartedEnhanced,e.checkoutStepViewed=e.checkoutStepViewedEnhanced,e.checkoutStepCompleted=e.checkoutStepCompletedEnhanced,e.orderUpdated=e.orderUpdatedEnhanced,e.orderCompleted=e.orderCompletedEnhanced,e.orderRefunded=e.orderRefundedEnhanced,e.promotionViewed=e.promotionViewedEnhanced,e.promotionClicked=e.promotionClickedEnhanced,e.productListViewed=e.productListViewedEnhanced,e.productListFiltered=e.productListFilteredEnhanced)}),v.prototype.initialize=function(){this.pageCalled=!1;var e=this.options;window.GoogleAnalyticsObject="ga",window.ga=window.ga||function(){window.ga.q=window.ga.q||[],window.ga.q.push(arguments)},window.ga.l=(new Date).getTime(),window.location.hostname==="localhost"&&(e.domain="none");var t={cookieDomain:e.domain||v.prototype.defaults.domain,siteSpeedSampleRate:e.siteSpeedSampleRate,sampleRate:e.sampleRate,allowLinker:!0,useAmpClientId:e.useGoogleAmpClientId};e.nameTracker?(t.name="segmentGATracker",this._trackerName="segmentGATracker."):this._trackerName="",window.ga("create",e.trackingId,t),e.optimize&&window.ga(this._trackerName+"require",e.optimize),e.doubleClick&&window.ga(this._trackerName+"require","displayfeatures"),e.enhancedLinkAttribution&&window.ga(this._trackerName+"require","linkid","linkid.js"),e.sendUserId&&d.id()&&window.ga(this._trackerName+"set","userId",d.id()),e.anonymizeIp&&window.ga(this._trackerName+"set","anonymizeIp",!0);var n=d.traits();d.id()&&(n.id=d.id());var r=b(n,e);f(r)&&window.ga(this._trackerName+"set",r),this.load("library",this.ready)},v.prototype.loaded=function(){return!!window.gaplugins},v.prototype.page=function(e){var t=e.category(),n=e.properties(),r=e.fullName(),i=this.options,s=e.proxy("context.campaign")||{},o={},u=m(n,this.options),a=r||n.title,f=e.referrer()||"",l=this,c;this._category=t,o.page=u,o.title=a,o.location=n.url,s.name&&(o.campaignName=s.name),s.source&&(o.campaignSource=s.source),s.medium&&(o.campaignMedium=s.medium),s.content&&(o.campaignContent=s.content),s.term&&(o.campaignKeyword=s.term);var h={page:u,title:a};o=p(o,g(n,i,l._trackerName)),f!==document.referrer&&(h.referrer=f),window.ga(this._trackerName+"set",h),this.pageCalled&&delete o.location,window.ga(this._trackerName+"send","pageview",o),t&&this.options.trackCategorizedPages&&(c=e.track(t),this.track(c,{nonInteraction:1})),r&&this.options.trackNamedPages&&(c=e.track(r),this.track(c,{nonInteraction:1})),this.pageCalled=!0},v.prototype.identify=function(e){var t=this.options;t.sendUserId&&e.userId()&&window.ga(this._trackerName+"set","userId",e.userId());var n=b(e.traits(),t);f(n)&&window.ga(this._trackerName+"set",n)},v.prototype.track=function(e,t){var n=e.options(this.name),r=this.options,s=i(t||{},n);s=i(s,r);var o=e.properties(),u=e.proxy("context.campaign")||{},a=this,f={eventAction:e.event(),eventCategory:e.category()||this._category||"All",eventLabel:o.label,eventValue:y(o.value||e.revenue()),nonInteraction:o.nonInteraction!==undefined?!!o.nonInteraction:!!s.nonInteraction};u.name&&(f.campaignName=u.name),u.source&&(f.campaignSource=u.source),u.medium&&(f.campaignMedium=u.medium),u.content&&(f.campaignContent=u.content),u.term&&(f.campaignKeyword=u.term),f=p(f,g(o,r,a._trackerName)),window.ga(this._trackerName+"send","event",f)},v.prototype.orderCompleted=function(e){var t=e.total()||e.revenue()||0,n=e.orderId(),r=e.products(),i=e.properties(),s=this;if(!n)return;this.ecommerce||(window.ga(this._trackerName+"require","ecommerce"),this.ecommerce=!0),window.ga(this._trackerName+"ecommerce:addTransaction",{affiliation:i.affiliation,shipping:e.shipping(),revenue:t,tax:e.tax(),id:n,currency:e.currency()}),o(r,function(t){var r=x(e,t);window.ga(s._trackerName+"ecommerce:addItem",{category:r.category(),quantity:r.quantity(),price:r.price(),name:r.name(),sku:r.sku(),id:n,currency:r.currency()})}),window.ga(this._trackerName+"ecommerce:send")},v.prototype.initializeClassic=function(){var e=this.options,t=e.anonymizeIp,n=e.domain,r=e.enhancedLinkAttribution,i=e.ignoredReferrers,s=e.siteSpeedSampleRate;window._gaq=window._gaq||[],l("_setAccount",e.trackingId),l("_setAllowLinker",!0),t&&l("_gat._anonymizeIp"),n&&l("_setDomainName",n),s&&l("_setSiteSpeedSampleRate",s);if(r){var u=document.location.protocol==="https:"?"https:":"http:",f=u+"//www.google-analytics.com/plugins/ga/inpage_linkid.js";l("_require","inpage_linkid",f)}i&&(a.array(i)||(i=[i]),o(i,function(e){l("_addIgnoredRef",e)}));if(this.options.doubleClick)this.load("double click",this.ready);else{var c=h()?"https":"http";this.load(c,this.ready)}},v.prototype.loadedClassic=function(){return!!window._gaq&&window._gaq.push!==Array.prototype.push},v.prototype.pageClassic=function(e){var t=e.category(),n=e.properties(),r=e.fullName(),i;l("_trackPageview",m(n,this.options)),t&&this.options.trackCategorizedPages&&(i=e.track(t),this.track(i,{nonInteraction:1})),r&&this.options.trackNamedPages&&(i=e.track(r),this.track(i,{nonInteraction:1}))},v.prototype.trackClassic=function(e,t){var n=t||e.options(this.name),r=e.properties(),i=e.revenue(),s=e.event(),o=this._category||e.category()||"All",u=r.label,a=y(i||r.value),f=!!r.nonInteraction||!!n.nonInteraction;l("_trackEvent",o,s,u,a,f)},v.prototype.completedOrderClassic=function(e){var t=e.total()||e.revenue()||0,n=e.orderId(),i=e.products()||[],s=e.properties(),u=e.currency();if(!n)return;l("_addTrans",n,s.affiliation,t,e.tax(),e.shipping(),e.city(),e.state(),e.country()),o(i,function(e){var t=new r({properties:e});l("_addItem",n,t.sku(),t.name(),t.category(),t.price(),t.quantity())}),l("_set","currencyCode",u),l("_trackTrans")},v.prototype.loadEnhancedEcommerce=function(e){var t=this;this.enhancedEcommerceLoaded||(window.ga(t._trackerName+"require","ec"),this.enhancedEcommerceLoaded=!0),window.ga(t._trackerName+"set","&cu",e.currency())},v.prototype.pushEnhancedEcommerce=function(e,t,n){var r=this,i=c([r._trackerName+"send","event",e.category()||"EnhancedEcommerce",e.event()||"Action not defined",e.properties().label,p({nonInteraction:1},g(e.properties(),t,n))]);window.ga.apply(window,i)},v.prototype.checkoutStartedEnhanced=function(e){this.checkoutStepViewed(e)},v.prototype.orderUpdatedEnhanced=function(e){this.checkoutStartedEnhanced(e)},v.prototype.checkoutStepViewedEnhanced=function(e){var t=e.products(),n=e.properties(),r=S(n),i=this,s=this.options;this.loadEnhancedEcommerce(e),o(t,function(t){var n=x(e,t);w(n,i._trackerName,s)}),window.ga(i._trackerName+"ec:setAction","checkout",{step:n.step||1,option:r||undefined}),this.pushEnhancedEcommerce(e,s,i._trackerName)},v.prototype.checkoutStepCompletedEnhanced=function(e){var t=e.properties(),n=S(t),r=this;if(!t.step||!n)return;this.loadEnhancedEcommerce(e),window.ga(r._trackerName+"ec:setAction","checkout_option",{step:t.step||1,option:n}),window.ga(r._trackerName+"send","event","Checkout","Option")},v.prototype.orderCompletedEnhanced=function(e){var t=e.total()||e.revenue()||0,n=e.orderId(),r=e.products(),i=e.properties(),s=this.options,u=this;if(!n)return;this.loadEnhancedEcommerce(e),o(r,function(t){var n=x(e,t);w(n,u._trackerName,s)}),window.ga(u._trackerName+"ec:setAction","purchase",{id:n,affiliation:i.affiliation,revenue:t,tax:e.tax(),shipping:e.shipping(),coupon:e.coupon()}),this.pushEnhancedEcommerce(e,s,u._trackerName)},v.prototype.orderRefundedEnhanced=function(e){var t=e.orderId(),n=e.products(),i=this,s=this.options;if(!t)return;this.loadEnhancedEcommerce(e),o(n,function(e){var t=new r({properties:e});window.ga(i._trackerName+"ec:addProduct",{id:t.productId()||t.id()||t.sku(),quantity:t.quantity()})}),window.ga(i._trackerName+"ec:setAction","refund",{id:t}),this.pushEnhancedEcommerce(e,s,i._trackerName)},v.prototype.productAddedEnhanced=function(e){var t=this,n=this.options;this.loadEnhancedEcommerce(e),E(e,"add",null,t._trackerName,n),this.pushEnhancedEcommerce(e,n,t._trackerName)},v.prototype.productRemovedEnhanced=function(e){var t=this,n=this.options;this.loadEnhancedEcommerce(e),E(e,"remove",null,t._trackerName,n),this.pushEnhancedEcommerce(e,n,t._trackerName)},v.prototype.productViewedEnhanced=function(e){var t=e.properties(),n={},r=this,i=this.options;this.loadEnhancedEcommerce(e),t.list&&(n.list=t.list),E(e,"detail",n,r._trackerName,i),this.pushEnhancedEcommerce(e,i,r._trackerName)},v.prototype.productClickedEnhanced=function(e){var t=e.properties(),n={},r=this,i=this.options;this.loadEnhancedEcommerce(e),t.list&&(n.list=t.list),E(e,"click",n,r._trackerName,i),this.pushEnhancedEcommerce(e,i,r._trackerName)},v.prototype.promotionViewedEnhanced=function(e){var t=e.properties(),n=this,r=this.options;this.loadEnhancedEcommerce(e),window.ga(n._trackerName+"ec:addPromo",{id:e.promotionId()||e.id(),name:e.name(),creative:t.creative,position:t.position}),this.pushEnhancedEcommerce(e,r,n._trackerName)},v.prototype.promotionClickedEnhanced=function(e){var t=e.properties(),n=this,r=this.options;this.loadEnhancedEcommerce(e),window.ga(n._trackerName+"ec:addPromo",{id:e.promotionId()||e.id(),name:e.name(),creative:t.creative,position:t.position}),window.ga(n._trackerName+"ec:setAction","promo_click",{}),this.pushEnhancedEcommerce(e,r,n._trackerName)},v.prototype.productListViewedEnhanced=function(e){var t=e.properties(),n=e.products(),i=this,s=this.options;this.loadEnhancedEcommerce(e),o(n,function(o){var u=new r({properties:o});if(!u.productId()&&!u.sku()&&!u.name())return;var a={id:u.productId()||u.sku(),name:u.name(),category:u.category()||e.category(),list:t.list_id||e.category()||"products",brand:u.properties().brand,variant:u.properties().variant,price:u.price(),position:n.map(function(e){return e.product_id}).indexOf(u.productId())+1};a=p(a,b(u.properties(),s));for(var f in a)a[f]===undefined&&delete a[f];window.ga(i._trackerName+"ec:addImpression",a)}),this.pushEnhancedEcommerce(e,s,i._trackerName)},v.prototype.productListFilteredEnhanced=function(e){var t=e.properties(),n=e.products();t.filters=t.filters||[],t.sorters=t.sorters||[];var i=t.filters.map(function(e){return e.type+":"+e.value}).join(),s=t.sorts.map(function(e){return e.type+":"+e.value}).join(),u=this,a=this.options;this.loadEnhancedEcommerce(e),o(n,function(o){var f=new r({properties:o});if(!f.productId()&&!f.sku()&&!f.name())return;var l={id:f.productId()||f.sku(),name:f.name(),category:f.category()||e.category(),list:t.list_id||e.category()||"search results",brand:f.properties().brand,variant:i+"::"+s,price:f.price(),position:n.map(function(e){return e.product_id}).indexOf(f.productId())+1};l=p(l,b(f.properties(),a));for(var c in l)l[c]===undefined&&delete l[c];window.ga(u._trackerName+"ec:addImpression",l)}),this.pushEnhancedEcommerce(e,a,u._trackerName)}},{"@ndhoule/defaults":7,"@segment/analytics.js-integration":33,"component-each":56,extend:68,"global-queue":69,is:75,"obj-case":87,"object-component":88,reject:90,"segmentio-facade":98,"use-https":113}],32:[function(e,t,n){"use strict";function c(e){return e.status?{status:e.status}:{}}var r=e("@segment/analytics.js-integration"),i=e("@ndhoule/defaults"),s=e("@ndhoule/foldl"),o=e("component-each"),u=e("obj-case"),a=e("segmentio-facade").Track,f=e("@ndhoule/extend"),l=t.exports=r("Twitter Ads").option("page","").option("universalTagPixelId","").option("identifier","productId").tag("singleTag",'<img src="//analytics.twitter.com/i/adsct?txn_id={{ pixelId }}&p_id=Twitter&tw_sale_amount={{ revenue }}&tw_order_quantity={{ quantity }}"/>').tag("universalTag",'<script src="//static.ads-twitter.com/uwt.js">').mapping("events");l.prototype.initialize=function(){var e=this;this.options.universalTagPixelId?(function(e,t,n,r,i,s){e.twq||(r=e.twq=function(){r.exe?r.exe.apply(r,arguments):r.queue.push(arguments)},r.version="1.1",r.queue=[])}(window,document,"script"),this.load("universalTag",function(){window.twq("init",e.options.universalTagPixelId),e.ready()})):this.ready()},l.prototype.page=function(e){this.options.universalTagPixelId&&window.twq("track","PageView"),this.options.page&&this.load("singleTag",{pixelId:this.options.page,revenue:0,quantity:0})},l.prototype.track=function(e){this.fireLegacyConversionTags(e)},l.prototype.productsSearched=function(e){this.fireLegacyConversionTags(e);if(this.options.universalTagPixelId){var t=c(e.properties());window.twq("track","Search",t)}},l.prototype.productViewed=function(e){this.fireLegacyConversionTags(e);if(this.options.universalTagPixelId){var t=e.properties(),n=this.options.identifier,r={content_ids:[e[n]()],content_type:"product",content_name:e.name(),content_category:e.category()};r=f(r,c(t)),window.twq("track","ViewContent",r)}},l.prototype.productAdded=function(e){this.fireLegacyConversionTags(e);if(this.options.universalTagPixelId){var t=e.properties(),n=this.options.identifier,r={content_ids:[e[n]()],content_type:"product",content_name:e.name()};r=f(r,c(t)),window.twq("track","AddToCart",r)}},l.prototype.orderCompleted=function(e){var t=this.options.identifier,n=s(function(e,t){return e+(u(t,"quantity")||0)},0,e.products());this.fireLegacyConversionTags(e,{quantity:n});if(this.options.universalTagPixelId){var r={currency:e.currency(),content_type:"product",order_id:e.orderId(),num_items:n.toString()};e.revenue()&&(r.value=e.revenue().toFixed(2)),r=f(r,c(e.properties()));var i=s(function(e,n){var r=new a({properties:n}),i=r[t]();return e.ids.push(i),e.names.push(r.name()),e},{ids:[],names:[]},e.products());r.content_ids=i.ids.sort(),r.content_name=i.names.sort().join(", "),window.twq("track","Purchase",r)}},l.prototype.productAddedToWishlist=function(e){this.fireLegacyConversionTags(e);if(this.options.universalTagPixelId){var t=e.properties(),n=this.options.identifier,r={content_name:e.name(),content_category:e.category(),content_ids:[e[n]()]};r=f(r,c(t)),window.twq("track","AddToWishlist",r)}},l.prototype.checkoutStarted=function(e){var t=s(function(e,t){return e+(u(t,"quantity")||0)},0,e.products());this.fireLegacyConversionTags(e,{quantity:t});if(this.options.universalTagPixelId){var n=this.options.identifier,r=s(function(e,t){var r=new a({properties:t}),i=r[n]();return e.ids.push(i),e.names.push(r.name()),e.categories.push(r.category()),e},{ids:[],names:[],categories:[]},e.products()),i={content_ids:r.ids.sort(),content_name:r.names.sort().join(", "),content_category:r.categories.join(", ")};i=f(i,c(e.properties())),window.twq("track","InitiateCheckout",i)}},l.prototype.paymentInfoEntered=function(e){this.fireLegacyConversionTags(e);var t=f({},c(e.properties()));this.options.universalTagPixelId&&window.twq("track","AddPaymentInfo",t)},l.prototype.fireLegacyConversionTags=function(e,t){var n=this.events(e.event()),r=this;o(n,function(n){var s={pixelId:n,quantity:e.proxy("properties.quantity")||0,revenue:e.revenue()||0};t&&(s=i(t,s)),r.load("singleTag",s)})}},{"@ndhoule/defaults":7,"@ndhoule/extend":11,"@ndhoule/foldl":12,"@segment/analytics.js-integration":33,"component-each":56,"obj-case":87,"segmentio-facade":98}],33:[function(e,t,n){"use strict";function l(e){function t(n){if(n&&n.addIntegration)return n.addIntegration(t);this.debug=i("analytics:integration:"+u(e));var a={};o(!0,a,n),this.options=s(a||{},this.defaults),this._queue=[],this.once("ready",r(this,this.flush)),t.emit("construct",this),this.ready=r(this,this.ready),this._wrapInitialize(),this._wrapPage(),this._wrapTrack()}return t.prototype.defaults={},t.prototype.globals=[],t.prototype.templates={},t.prototype.name=e,o(t,f),o(t.prototype,a),t}var r=e("component-bind"),i=e("debug"),s=e("@ndhoule/defaults"),o=e("extend"),u=e("slug-component"),a=e("./protos"),f=e("./statics");t.exports=l},{"./protos":34,"./statics":35,"@ndhoule/defaults":7,"component-bind":51,debug:36,extend:68,"slug-component":104}],34:[function(e,t,n){"use strict";function b(e){return l.array(e)?u(w,e)?"mixed":"array":l.object(e)?"map":"unknown"}function w(e){return l.object(e)?l.string(e.key)?v.call(e,"value")?!0:!1:!1:!1}function E(e,t){t=t||function(){};var n=new Image;return n.onerror=S(t,"failed to load pixel",n),n.onload=function(){t()},n.src=e.src,n.width=1,n.height=1,n}function S(e,t,n){return function(r){r=r||window.event;var i=new Error(t);i.event=r,i.source=n,e(i)}}function x(e,t){return f(function(e,n,r){return e[r]=n.replace(/\{\{\ *(\w+)\ *\}\}/g,function(e,n){return t[n]}),e},{},e.attrs)}var r=e("component-emitter"),i=e("@ndhoule/after"),s=e("@ndhoule/each"),o=e("analytics-events"),u=e("@ndhoule/every"),a=e("@segment/fmt"),f=e("@ndhoule/foldl"),l=e("is"),c=e("load-iframe"),h=e("@segment/load-script"),p=e("next-tick"),d=e("to-no-case"),v=Object.prototype.hasOwnProperty,m=function(){},g=window.onerror,y=null;r(n),n.initialize=function(){var e=this.ready;p(e)},n.loaded=function(){return!1},n.page=function(e){},n.track=function(e){},n.map=function(e,t){var n=d(t),r=b(e);return r==="unknown"?[]:f(function(e,t,i){var s,o;return r==="map"&&(s=i,o=t),r==="array"&&(s=t,o=t),r==="mixed"&&(s=t.key,o=t.value),d(s)===n&&e.push(o),e},[],e)},n.invoke=function(e){if(!this[e])return;var t=Array.prototype.slice.call(arguments,1);return this._ready?(this.debug("%s with %o",e,t),this[e].apply(this,t)):this.queue(e,t)},n.queue=function(e,t){this._queue.push({method:e,args:t})},n.flush=function(){this._ready=!0;var e=this;s(function(t){e[t.method].apply(e,t.args)},this._queue),this._queue.length=0},n.reset=function(){for(var e=0;e<this.globals.length;e++)window[this.globals[e]]=undefined;window.onerror=g,window.onload=y},n.load=function(e,t,n){typeof e=="function"&&(n=e,t=null,e=null),e&&typeof e=="object"&&(n=t,t=e,e=null),typeof t=="function"&&(n=t,t=null),e=e||"library",t=t||{},t=this.locals(t);var r=this.templates[e];if(!r)throw new Error(a('template "%s" not defined.',e));var i=x(r,t);n=n||m;var o=this,u;switch(r.type){case"img":i.width=1,i.height=1,u=E(i,n);break;case"script":u=h(i,function(e){if(!e)return n();o.debug('error loading "%s" error="%s"',o.name,e)}),delete i.src,s(function(e,t){u.setAttribute(t,e)},i);break;case"iframe":u=c(i,n);break;default:}return u},n.locals=function(e){e=e||{};var t=Math.floor((new Date).getTime()/36e5);return e.hasOwnProperty("cache")||(e.cache=t),s(function(t,n){e.hasOwnProperty(n)||(e[n]=t)},this.options),e},n.ready=function(){this.emit("ready")},n._wrapInitialize=function(){var e=this.initialize;this.initialize=function(){this.debug("initialize"),this._initialized=!0;var t=e.apply(this,arguments);return this.emit("initialize"),t}},n._wrapPage=function(){if(this._assumesPageview)return this.page=i(2,this.page)},n._wrapTrack=function(){var e=this.track;this.track=function(t){var n=t.event(),r,i;for(var s in o)if(v.call(o,s)){var u=o[s];if(!this[s])continue;if(!u.test(n))continue;i=this[s].apply(this,arguments),r=!0;break}return r||(i=e.apply(this,arguments)),i}}},{"@ndhoule/after":4,"@ndhoule/each":9,"@ndhoule/every":10,"@ndhoule/foldl":12,"@segment/fmt":40,"@segment/load-script":44,"analytics-events":49,"component-emitter":58,is:75,"load-iframe":80,"next-tick":86,"to-no-case":108}],35:[function(e,t,n){"use strict";function u(e){e=e.replace(' src="',' data-src="');var t=i(e),n={};return s(function(t){var r=t.name==="data-src"?"src":t.name;if(!o(t.name+"=",e))return;n[r]=t.value},t.attributes),{type:t.tagName.toLowerCase(),attrs:n}}var r=e("component-emitter"),i=e("domify"),s=e("@ndhoule/each"),o=e("@ndhoule/includes");r(n),n.option=function(e,t){return this.prototype.defaults[e]=t,this},n.mapping=function(e){return this.option(e,[]),this.prototype[e]=function(t){return this.map(this.options[e],t)},this},n.global=function(e){return this.prototype.globals.push(e),this},n.assumesPageview=function(){return this.prototype._assumesPageview=!0,this},n.readyOnLoad=function(){return this.prototype._readyOnLoad=!0,this},n.readyOnInitialize=function(){return this.prototype._readyOnInitialize=!0,this},n.tag=function(e,t){return t==null&&(t=e,e="library"),this.prototype.templates[e]=u(t),this}},{"@ndhoule/each":9,"@ndhoule/includes":13,"component-emitter":58,domify:67}],36:[function(e,t,n){(function(r){function i(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0: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+)/)}function s(e){var t=this.useColors;e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff);if(!t)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"===e)return;i++,"%c"===e&&(s=i)}),e.splice(s,0,r)}function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function u(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(t){}}function a(){var e;try{e=n.storage.debug}catch(t){}return!e&&typeof r!="undefined"&&"env"in r&&(e=r.env.DEBUG),e}function f(){try{return window.localStorage}catch(e){}}n=t.exports=e("./debug"),n.log=o,n.formatArgs=s,n.save=u,n.load=a,n.useColors=i,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:f(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},n.enable(a())}).call(this,e("_process"))},{"./debug":37,_process:89}],37:[function(e,t,n){function i(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return n.colors[Math.abs(t)%n.colors.length]}function s(e){function t(){if(!t.enabled)return;var e=t,i=+(new Date),s=i-(r||i);e.diff=s,e.prev=r,e.curr=i,r=i;var o=new Array(arguments.length);for(var u=0;u<o.length;u++)o[u]=arguments[u];o[0]=n.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var a=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(t,r){if(t==="%%")return t;a++;var i=n.formatters[r];if("function"==typeof i){var s=o[a];t=i.call(e,s),o.splice(a,1),a--}return t}),n.formatArgs.call(e,o);var f=t.log||n.log||console.log.bind(console);f.apply(e,o)}return t.namespace=e,t.enabled=n.enabled(e),t.useColors=n.useColors(),t.color=i(e),"function"==typeof n.init&&n.init(t),t}function o(e){n.save(e),n.names=[],n.skips=[];var t=(typeof e=="string"?e:"").split(/[\s,]+/),r=t.length;for(var i=0;i<r;i++){if(!t[i])continue;e=t[i].replace(/\*/g,".*?"),e[0]==="-"?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$"))}}function u(){n.enable("")}function a(e){var t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1}function f(e){return e instanceof Error?e.stack||e.message:e}n=t.exports=s.debug=s["default"]=s,n.coerce=f,n.disable=u,n.enable=o,n.enabled=a,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var r},{ms:81}],38:[function(e,t,n){function s(e){var t="",n,s,o,u,a,f,l,c=0;e=r(e);while(c<e.length)n=e.charCodeAt(c++),s=e.charCodeAt(c++),o=e.charCodeAt(c++),u=n>>2,a=(n&3)<<4|s>>4,f=(s&15)<<2|o>>6,l=o&63,isNaN(s)?f=l=64:isNaN(o)&&(l=64),t=t+i.charAt(u)+i.charAt(a)+i.charAt(f)+i.charAt(l);return t}var r=e("utf8-encode"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.exports=s},{"utf8-encode":114}],39:[function(e,t,n){"use strict";function r(){var e=document.getElementsByTagName("link");for(var t=0,n;n=e[t];t++)if(n.getAttribute("rel")==="canonical")return n.getAttribute("href")}t.exports=r},{}],40:[function(e,t,n){(function(e){"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1),n=0;return e.replace(/%([a-z])/gi,function(e,i){return r[i]?r[i](t[n++]):e+i})}var n=e.JSON&&typeof JSON.stringify=="function"?JSON.stringify:String;r.o=n,r.s=String,r.d=parseInt,t.exports=r}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],41:[function(e,t,n){"use strict";function r(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return!0;var t=e.which,n=e.button;return!t&&n!==undefined?!n&1&&!n&2&&n&4:t===2?!0:!1}t.exports=r},{}],42:[function(e,t,n){"use strict";function o(e,t){return t===undefined&&(t=!0),r(e)==="object"?u(e,t):r(e)==="array"?a(e,t):e}function u(e,t){return e.length&&typeof e.length=="number"&&!(e.length-1 in e)&&(e.lengthNonArray=e.length,delete e.length),i(e,function(n,i){s.is(i,t)?e[n]=s.parse(i):(r(i)==="object"||r(i)==="array")&&o(i,t)}),e.lengthNonArray&&(e.length=e.lengthNonArray,delete e.lengthNonArray),e}function a(e,t){return i(e,function(n,i){r(n)==="object"?o(n,t):s.is(n,t)&&(e[i]=s.parse(n))}),e}var r=e("component-type"),i=e("component-each"),s=e("@segment/isodate");t.exports=o},{"@segment/isodate":43,"component-each":56,"component-type":63}],43:[function(e,t,n){"use strict";var r=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;n.parse=function(e){var t=[1,5,6,7,11,12],n=r.exec(e),i=0;if(!n)return new Date(e);for(var s=0,o;o=t[s];s++)n[o]=parseInt(n[o],10)||0;n[2]=parseInt(n[2],10)||1,n[3]=parseInt(n[3],10)||1,n[2]--,n[8]=n[8]?(n[8]+"00").substring(0,3):0,n[4]===" "?i=(new Date).getTimezoneOffset():n[9]!=="Z"&&n[10]&&(i=n[11]*60+n[12],n[10]==="+"&&(i=0-i));var u=Date.UTC(n[1],n[2],n[3],n[5],n[6]+i,n[7],n[8]);return new Date(u)},n.is=function(e,t){return typeof e!="string"?!1:t&&/^\d{4}-\d{2}-\d{2}/.test(e)===!1?!1:r.test(e)}},{}],44:[function(e,t,n){"use strict";function o(e,t){if(!e)throw new Error("Can't load nothing...");s(e)==="string"&&(e={src:e});var n=document.location.protocol==="https:"||document.location.protocol==="chrome-extension:";e.src&&e.src.indexOf("//")===0&&(e.src=(n?"https:":"http:")+e.src),n&&e.https?e.src=e.https:!n&&e.http&&(e.src=e.http);var o=document.createElement("script");return o.type="text/javascript",o.async=!0,o.src=e.src,s(t)==="function"&&r(o,t),i(function(){var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(o,e)}),o}var r=e("script-onload"),i=e("next-tick"),s=e("component-type");t.exports=o},{"component-type":63,"next-tick":86,"script-onload":91}],45:[function(e,t,n){"use strict";function r(e){return e=e||window.event,e.preventDefault?e.preventDefault():e.returnValue=!1}t.exports=r},{}],46:[function(e,t,n){"use strict";function u(e,t,n,i){function u(){if(s.readyState===4)return i(null,s)}arguments.length===3&&(i=n,n={});var s=new XMLHttpRequest;s.onerror=i,s.onreadystatechange=u,s.open("POST",e,!0);for(var o in n)s.setRequestHeader(o,n[o]);s.send(r.stringify(t))}function a(e,t,r,i){arguments.length===3&&(i=r);var s=n.prefix,u=f(t);e+="?"+s+"="+u,o(e,{param:n.callback},function(t,n){if(t)return i(t);i(null,{url:e,body:n})})}function f(e){var t="";return t=r.stringify(e),t=i(t),t=t.replace(/\+/g,"-").replace(/\//g,"_"),encodeURIComponent(t)}var r=e("json3"),i=e("@segment/base64-encode"),s=e("has-cors"),o=e("jsonp");n=t.exports=s?u:a,n.callback="callback",n.prefix="data",n.json=u,n.base64=a,n.type=s?"xhr":"jsonp"},{"@segment/base64-encode":38,"has-cors":72,json3:76,jsonp:77}],47:[function(e,t,n){(function(n){"use strict";var r=e("json3");t.exports=function(){function a(){try{return s in t&&t[s]}catch(e){return!1}}var e={},t=typeof window!="undefined"?window:n,i=t.document,s="localStorage",o="script",u;e.disabled=!1,e.version="1.3.20",e.set=function(e,t){},e.get=function(e,t){},e.has=function(t){return e.get(t)!==undefined},e.remove=function(e){},e.clear=function(){},e.transact=function(t,n,r){r==null&&(r=n,n=null),n==null&&(n={});var i=e.get(t,n);r(i),e.set(t,i)},e.getAll=function(){var t={};return e.forEach(function(e,n){t[e]=n}),t},e.forEach=function(){},e.serialize=function(e){return r.stringify(e)},e.deserialize=function(e){if(typeof e!="string")return undefined;try{return r.parse(e)}catch(t){return e||undefined}};if(a())u=t[s],e.set=function(t,n){return n===undefined?e.remove(t):(u.setItem(t,e.serialize(n)),n)},e.get=function(t,n){var r=e.deserialize(u.getItem(t));return r===undefined?n:r},e.remove=function(e){u.removeItem(e)},e.clear=function(){u.clear()},e.forEach=function(t){for(var n=0;n<u.length;n++){var r=u.key(n);t(r,e.get(r))}};else if(i&&i.documentElement.addBehavior){var f,l;try{l=new ActiveXObject("htmlfile"),l.open(),l.write("<"+o+">document.w=window</"+o+'><iframe src="/favicon.ico"></iframe>'),l.close(),f=l.w.frames[0].document,u=f.createElement("div")}catch(c){u=i.createElement("div"),f=i.body}var h=function(t){return function(){var n=Array.prototype.slice.call(arguments,0);n.unshift(u),f.appendChild(u),u.addBehavior("#default#userData"),u.load(s);var r=t.apply(e,n);return f.removeChild(u),r}},p=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),d=function(e){return e.replace(/^d/,"___$&").replace(p,"___")};e.set=h(function(t,n,r){return n=d(n),r===undefined?e.remove(n):(t.setAttribute(n,e.serialize(r)),t.save(s),r)}),e.get=h(function(t,n,r){n=d(n);var i=e.deserialize(t.getAttribute(n));return i===undefined?r:i}),e.remove=h(function(e,t){t=d(t),e.removeAttribute(t),e.save(s)}),e.clear=h(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(s);for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save(s)}),e.forEach=h(function(t,n){var r=t.XMLDocument.documentElement.attributes;for(var i=0,s;s=r[i];++i)n(s.name,e.deserialize(t.getAttribute(s.name)))})}try{var v="__storejs__";e.set(v,v),e.get(v)!=v&&(e.disabled=!0),e.remove(v)}catch(c){e.disabled=!0}return e.enabled=!e.disabled,e}()}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{json3:76}],48:[function(e,t,n){"use strict";function s(e){var t=n.cookie,r=n.levels(e);for(var i=0;i<r.length;++i){var s="__tld__",o=r[i],u={domain:"."+o};t(s,1,u);if(t(s))return t(s,null,u),o}return""}var r=e("component-url").parse,i=e("component-cookie");s.levels=function(e){var t=r(e).hostname,n=t.split("."),i=n[n.length-1],s=[];if(n.length===4&&i===parseInt(i,10))return s
;if(n.length<=1)return s;for(var o=n.length-2;o>=0;--o)s.push(n.slice(o).join("."));return s},s.cookie=i,n=t.exports=s},{"component-cookie":52,"component-url":64}],49:[function(e,t,n){"use strict";var r=e("@ndhoule/map"),i=e("@ndhoule/foldl"),s={videoPlaybackStarted:[{object:"video playback",action:"started"}],videoPlaybackPaused:[{object:"video playback",action:"paused"}],videoPlaybackInterrupted:[{object:"video playback",action:"interrupted"}],videoPlaybackResumed:[{object:"video playback",action:"resumed"}],videoPlaybackCompleted:[{object:"video playback",action:"completed"}],videoPlaybackBufferStarted:[{object:"video playback buffer",action:"started"}],videoPlaybackBufferCompleted:[{object:"video playback buffer",action:"completed"}],videoPlaybackSeekStarted:[{object:"video playback seek",action:"started"}],videoPlaybackSeekCompleted:[{object:"video playback seek",action:"completed"}],videoContentStarted:[{object:"video content",action:"started"}],videoContentPlaying:[{object:"video content",action:"playing"}],videoContentCompleted:[{object:"video content",action:"completed"}],videoAdStarted:[{object:"video ad",action:"started"}],videoAdPlaying:[{object:"video ad",action:"playing"}],videoAdCompleted:[{object:"video ad",action:"completed"}],promotionViewed:[{object:"promotion",action:"viewed"}],promotionClicked:[{object:"promotion",action:"clicked"}],productsSearched:[{object:"products",action:"searched"}],productListViewed:[{object:"product list",action:"viewed"},{object:"product category",action:"viewed"}],productListFiltered:[{object:"product list",action:"filtered"}],productClicked:[{object:"product",action:"clicked"}],productViewed:[{object:"product",action:"viewed"}],productAdded:[{object:"product",action:"added"}],productRemoved:[{object:"product",action:"removed"}],cartViewed:[{object:"cart",action:"viewed"}],orderUpdated:[{object:"order",action:"updated"}],orderCompleted:[{object:"order",action:"completed"}],orderRefunded:[{object:"order",action:"refunded"}],orderCancelled:[{object:"order",action:"cancelled"}],paymentInfoEntered:[{object:"payment info",action:"entered"}],checkoutStarted:[{object:"checkout",action:"started"}],checkoutStepViewed:[{object:"checkout step",action:"viewed"}],checkoutStepCompleted:[{object:"checkout step",action:"completed"}],couponEntered:[{object:"coupon",action:"entered"}],couponApplied:[{object:"coupon",action:"applied"}],couponDenied:[{object:"coupon",action:"denied"}],couponRemoved:[{object:"coupon",action:"removed"}],productAddedToWishlist:[{object:"product",action:"added to wishlist"}],productRemovedFromWishlist:[{object:"product",action:"removed from wishlist"}],productAddedFromWishlistToCart:[{object:"product",action:"added to cart from wishlist"},{object:"product",action:"added from wishlist to cart"}],productShared:[{object:"product",action:"shared"}],cartShared:[{object:"cart",action:"shared"}],productReviewed:[{object:"product",action:"reviewed"}],applicationInstalled:[{object:"application",action:"installed"}],applicationUpdated:[{object:"application",action:"updated"}],applicationOpened:[{object:"application",action:"opened"}],applicationBackgrounded:[{object:"application",action:"backgrounded"}],applicationUninstalled:[{object:"application",action:"uninstalled"}],applicationCrashed:[{object:"application",action:"crashed"}],installAttributed:[{object:"install",action:"attributed"}],deepLinkOpened:[{object:"deep link",action:"opened"}],pushNotificationReceived:[{object:"push notification",action:"received"}],pushNotificationTapped:[{object:"push notification",action:"tapped"}],pushNotificationBounced:[{object:"push notification",action:"bounced"}],emailBounced:[{object:"email",action:"bounced"}],emailDelivered:[{object:"email",action:"delivered"}],emailLinkClicked:[{object:"email link",action:"clicked"}],emailMarkedAsSpam:[{object:"email",action:"marked as spam"}],emailOpened:[{object:"email",action:"opened"}],unsubscribed:[{object:"",action:"unsubscribed"}]};t.exports=i(function(t,n,i){var s=r(function(e){return r(function(e){var t=[].concat.apply([],r(function(e){return e.split(" ")},e));return"^[ _]?"+t.join("[ _]?")+"[ _]?"},[[e.action,e.object],[e.object,e.action]]).join("|")},n),o=s.join("|")+"$";return t[i]=new RegExp(o,"i"),t},{},s)},{"@ndhoule/foldl":12,"@ndhoule/map":15}],50:[function(e,t,n){"use strict";function i(e){for(var t in e){var n=e[t];typeof n=="function"&&(e[t]=r(e,e[t]))}return e}var r=e("component-bind");t.exports=i},{"component-bind":51}],51:[function(e,t,n){var r=[].slice;t.exports=function(e,t){"string"==typeof t&&(t=e[t]);if("function"!=typeof t)throw new Error("bind() requires a function");var n=r.call(arguments,2);return function(){return t.apply(e,n.concat(r.call(arguments)))}}},{}],52:[function(e,t,n){function i(e,t,n){n=n||{};var r=a(e)+"="+a(t);null==t&&(n.maxage=-1),n.maxage&&(n.expires=new Date(+(new Date)+n.maxage)),n.path&&(r+="; path="+n.path),n.domain&&(r+="; domain="+n.domain),n.expires&&(r+="; expires="+n.expires.toUTCString()),n.secure&&(r+="; secure"),document.cookie=r}function s(){var e;try{e=document.cookie}catch(t){return typeof console!="undefined"&&typeof console.error=="function"&&console.error(t.stack||t),{}}return u(e)}function o(e){return s()[e]}function u(e){var t={},n=e.split(/ *; */),r;if(""==n[0])return t;for(var i=0;i<n.length;++i)r=n[i].split("="),t[f(r[0])]=f(r[1]);return t}function a(e){try{return encodeURIComponent(e)}catch(t){r("error `encode(%o)` - %o",e,t)}}function f(e){try{return decodeURIComponent(e)}catch(t){r("error `decode(%o)` - %o",e,t)}}var r=e("debug")("cookie");t.exports=function(e,t,n){switch(arguments.length){case 3:case 2:return i(e,t,n);case 1:return o(e);default:return s()}}},{debug:53}],53:[function(e,t,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function i(){var e=arguments,t=this.useColors;e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff);if(!t)return e;var r="color: "+this.color;e=[e[0],r,"color: inherit"].concat(Array.prototype.slice.call(e,1));var i=0,s=0;return e[0].replace(/%[a-z%]/g,function(e){if("%%"===e)return;i++,"%c"===e&&(s=i)}),e.splice(s,0,r),e}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(t){}}function u(){var e;try{e=n.storage.debug}catch(t){}return e}function a(){try{return window.localStorage}catch(e){}}n=t.exports=e("./debug"),n.log=s,n.formatArgs=i,n.save=o,n.load=u,n.useColors=r,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:a(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){return JSON.stringify(e)},n.enable(u())},{"./debug":54}],54:[function(e,t,n){function s(){return n.colors[r++%n.colors.length]}function o(e){function t(){}function r(){var e=r,t=+(new Date),o=t-(i||t);e.diff=o,e.prev=i,e.curr=t,i=t,null==e.useColors&&(e.useColors=n.useColors()),null==e.color&&e.useColors&&(e.color=s());var u=Array.prototype.slice.call(arguments);u[0]=n.coerce(u[0]),"string"!=typeof u[0]&&(u=["%o"].concat(u));var a=0;u[0]=u[0].replace(/%([a-z%])/g,function(t,r){if(t==="%%")return t;a++;var i=n.formatters[r];if("function"==typeof i){var s=u[a];t=i.call(e,s),u.splice(a,1),a--}return t}),"function"==typeof n.formatArgs&&(u=n.formatArgs.apply(e,u));var f=r.log||n.log||console.log.bind(console);f.apply(e,u)}t.enabled=!1,r.enabled=!0;var o=n.enabled(e)?r:t;return o.namespace=e,o}function u(e){n.save(e);var t=(e||"").split(/[\s,]+/),r=t.length;for(var i=0;i<r;i++){if(!t[i])continue;e=t[i].replace(/\*/g,".*?"),e[0]==="-"?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$"))}}function a(){n.enable("")}function f(e){var t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}n=t.exports=o,n.coerce=l,n.disable=a,n.enable=u,n.enabled=f,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var r=0,i},{ms:55}],55:[function(e,t,n){function a(e){e=""+e;if(e.length>1e4)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]),a=(t[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"days":case"day":case"d":return n*o;case"hours":case"hour":case"hrs":case"hr":case"h":return n*s;case"minutes":case"minute":case"mins":case"min":case"m":return n*i;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}function f(e){return e>=o?Math.round(e/o)+"d":e>=s?Math.round(e/s)+"h":e>=i?Math.round(e/i)+"m":e>=r?Math.round(e/r)+"s":e+"ms"}function l(e){return c(e,o,"day")||c(e,s,"hour")||c(e,i,"minute")||c(e,r,"second")||e+" ms"}function c(e,t,n){if(e<t)return;return e<t*1.5?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var r=1e3,i=r*60,s=i*60,o=s*24,u=o*365.25;t.exports=function(e,t){return t=t||{},"string"==typeof e?a(e):t.long?l(e):f(e)}},{}],56:[function(e,t,n){function u(e,t,n){for(var r=0;r<e.length;++r)t.call(n,e.charAt(r),r)}function a(e,t,n){for(var r in e)o.call(e,r)&&t.call(n,r,e[r])}function f(e,t,n){for(var r=0;r<e.length;++r)t.call(n,e[r],r)}try{var r=e("type")}catch(i){var r=e("component-type")}var s=e("to-function"),o=Object.prototype.hasOwnProperty;t.exports=function(e,t,n){t=s(t),n=n||this;switch(r(e)){case"array":return f(e,t,n);case"object":if("number"==typeof e.length)return f(e,t,n);return a(e,t,n);case"string":return u(e,t,n)}}},{"component-type":57,"to-function":107,type:57}],57:[function(e,t,n){var r=Object.prototype.toString;t.exports=function(e){switch(r.call(e)){case"[object Function]":return"function";case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object String]":return"string"}return e===null?"null":e===undefined?"undefined":e&&e.nodeType===1?"element":e===Object(e)?"object":typeof e}},{}],58:[function(e,t,n){function r(e){if(e)return i(e)}function i(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}typeof t!="undefined"&&(t.exports=r),r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){this._callbacks=this._callbacks||{};if(0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;var r;for(var i=0;i<n.length;i++){r=n[i];if(r===t||r.fn===t){n.splice(i,1);break}}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},{}],59:[function(e,t,n){var r=window.addEventListener?"addEventListener":"attachEvent",i=window.removeEventListener?"removeEventListener":"detachEvent",s=r!=="addEventListener"?"on":"";n.bind=function(e,t,n,i){return e[r](s+t,n,i||!1),n},n.unbind=function(e,t,n,r){return e[i](s+t,n,r||!1),n}},{}],60:[function(e,t,n){function i(e){return e.replace(/\.\w+|\w+ *\(|"[^"]*"|'[^']*'|\/([^/]+)\//g,"").replace(r,"").match(/[a-zA-Z_]\w*/g)||[]}function s(e,t,n){var r=/\.\w+|\w+ *\(|"[^"]*"|'[^']*'|\/([^/]+)\/|[a-zA-Z_]\w*/g;return e.replace(r,function(e){return"("==e[e.length-1]?n(e):~t.indexOf(e)?n(e):e})}function o(e){var t=[];for(var n=0;n<e.length;n++){if(~t.indexOf(e[n]))continue;t.push(e[n])}return t}function u(e){return function(t){return e+t}}var r=/\b(Array|Date|Object|Math|JSON)\b/g;t.exports=function(e,t){var n=o(i(e));return t&&"string"==typeof t&&(t=u(t)),t?s(e,n,t):n}},{}],61:[function(e,t,n){var r=e("trim"),i=e("type"),s=/(\w+)\[(\d+)\]/,o=function(e){try{return encodeURIComponent(e)}catch(t){return e}},u=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}};n.parse=function(e){if("string"!=typeof e)return{};e=r(e);if(""==e)return{};"?"==e.charAt(0)&&(e=e.slice(1));var t={},n=e.split("&");for(var i=0;i<n.length;i++){var o=n[i].split("="),a=u(o[0]),f;if(f=s.exec(a)){t[f[1]]=t[f[1]]||[],t[f[1]][f[2]]=u(o[1]);continue}t[o[0]]=null==o[1]?"":u(o[1])}return t},n.stringify=function(e){if(!e)return"";var t=[];for(var n in e){var r=e[n];if("array"==i(r)){for(var s=0;s<r.length;++s)t.push(o(n+"["+s+"]")+"="+o(r[s]));continue}t.push(o(n)+"="+o(e[n]))}return t.join("&")}},{trim:111,type:62}],62:[function(e,t,n){var r=Object.prototype.toString;t.exports=function(e){switch(r.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return e===null?"null":e===undefined?"undefined":e!==e?"nan":e&&e.nodeType===1?"element":(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e),typeof e)}},{}],63:[function(e,t,n){function i(e){return e!=null&&!!(e._isBuffer||e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))}var r=Object.prototype.toString;t.exports=function(e){switch(r.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return e===null?"null":e===undefined?"undefined":e!==e?"nan":e&&e.nodeType===1?"element":i(e)?"buffer":(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e),typeof e)}},{}],64:[function(e,t,n){function r(e){switch(e){case"http:":return 80;case"https:":return 443;default:return location.port}}n.parse=function(e){var t=document.createElement("a");return t.href=e,{href:t.href,host:t.host||location.host,port:"0"===t.port||""===t.port?r(t.protocol):t.port,hash:t.hash,hostname:t.hostname||location.hostname,pathname:t.pathname.charAt(0)!="/"?"/"+t.pathname:t.pathname,protocol:!t.protocol||":"==t.protocol?location.protocol:t.protocol,search:t.search,query:t.search.slice(1)}},n.isAbsolute=function(e){return 0==e.indexOf("//")||!!~e.indexOf("://")},n.isRelative=function(e){return!n.isAbsolute(e)},n.isCrossDomain=function(e){e=n.parse(e);var t=n.parse(window.location.href);return e.hostname!==t.hostname||e.port!==t.port||e.protocol!==t.protocol}},{}],65:[function(e,t,n){(function(e){"use strict";function i(e,t){e=String(e),t=t||2;while(e.length<t)e="0"+e;return e}function s(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-r);var i=(t-n)/6048e5;return 1+Math.floor(i)}function o(e){var t=e.getDay();return t===0&&(t=7),t}function u(e){return e===null?"null":e===undefined?"undefined":typeof e!="object"?typeof e:Array.isArray(e)?"array":{}.toString.call(e).slice(8,-1).toLowerCase()}var r=function(){var e=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g;return function(a,f,l,c){arguments.length===1&&u(a)==="string"&&!/\d/.test(a)&&(f=a,a=undefined),a=a||new Date,a instanceof Date||(a=new Date(a));if(isNaN(a))throw TypeError("Invalid date");f=String(r.masks[f]||f||r.masks["default"]);var h=f.slice(0,4);if(h==="UTC:"||h==="GMT:")f=f.slice(4),l=!0,h==="GMT:"&&(c=!0);var p=l?"getUTC":"get",d=a[p+"Date"](),v=a[p+"Day"](),m=a[p+"Month"](),g=a[p+"FullYear"](),y=a[p+"Hours"](),b=a[p+"Minutes"](),w=a[p+"Seconds"](),E=a[p+"Milliseconds"](),S=l?0:a.getTimezoneOffset(),x=s(a),T=o(a),N={d:d,dd:i(d),ddd:r.i18n.dayNames[v],dddd:r.i18n.dayNames[v+7],m:m+1,mm:i(m+1),mmm:r.i18n.monthNames[m],mmmm:r.i18n.monthNames[m+12],yy:String(g).slice(2),yyyy:g,h:y%12||12,hh:i(y%12||12),H:y,HH:i(y),M:b,MM:i(b),s:w,ss:i(w),l:i(E,3),L:i(Math.round(E/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:c?"GMT":l?"UTC":(String(a).match(t)||[""]).pop().replace(n,""),o:(S>0?"-":"+")+i(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4),S:["th","st","nd","rd"][d%10>3?0:(d%100-d%10!=10)*d%10],W:x,N:T};return f.replace(e,function(e){return e in N?N[e]:e.slice(1,e.length-1)})}}();r.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},r.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},typeof define=="function"&&define.amd?define(function(){return r}):typeof n=="object"?t.exports=r:e.dateFormat=r})(this)},{}],66:[function(e,t,n){function r(e){return r.enabled(e)?function(t){t=i(t);var n=new Date,s=n-(r[e]||n);r[e]=n,t=e+" "+t+" +"+r.humanize(s),window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}:function(){}}function i(e){return e instanceof Error?e.stack||e.message:e}t.exports=r,r.names=[],r.skips=[],r.enable=function(e){try{localStorage.debug=e}catch(t){}var n=(e||"").split(/[\s,]+/),i=n.length;for(var s=0;s<i;s++)e=n[s].replace("*",".*?"),e[0]==="-"?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$"))},r.disable=function(){r.enable("")},r.humanize=function(e){var t=1e3,n=6e4,r=60*n;return e>=r?(e/r).toFixed(1)+"h":e>=n?(e/n).toFixed(1)+"m":e>=t?(e/t|0)+"s":e+"ms"},r.enabled=function(e){for(var t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(var t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1};try{window.localStorage&&r.enable(localStorage.debug)}catch(s){}},{}],67:[function(e,t,n){function o(e,t){if("string"!=typeof e)throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var r=n[1];if(r=="body"){var i=t.createElement("html");return i.innerHTML=e,i.removeChild(i.lastChild)}var o=s[r]||s._default,u=o[0],a=o[1],f=o[2],i=t.createElement("div");i.innerHTML=a+e+f;while(u--)i=i.lastChild;if(i.firstChild==i.lastChild)return i.removeChild(i.firstChild);var l=t.createDocumentFragment();while(i.firstChild)l.appendChild(i.removeChild(i.firstChild));return l}t.exports=o;var r=!1,i;typeof document!="undefined"&&(i=document.createElement("div"),i.innerHTML='  <link/><table></table><a href="/a">a</a><input type="checkbox"/>',r=!i.getElementsByTagName("link").length,i=undefined);var s={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:r?[1,"X<div>","</div>"]:[0,"",""]};s.td=s.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],s.option=s.optgroup=[1,'<select multiple="multiple">',"</select>"],s.thead=s.tbody=s.colgroup=s.caption=s.tfoot=[1,"<table>","</table>"],s.polyline=s.ellipse=s.polygon=s.circle=s.text=s.line=s.path=s.rect=s.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"]},{}],68:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=function(t){return typeof Array.isArray=="function"?Array.isArray(t):i.call(t)==="[object Array]"},o=function(t){if(!t||i.call(t)!=="[object Object]")return!1;var n=r.call(t,"constructor"),s=t.constructor&&t.constructor.prototype&&r.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!s)return!1;var o;for(o in t);return typeof o=="undefined"||r.call(t,o)};t.exports=function u(){var e,t,n,r,i,a,f=arguments[0],l=1,c=arguments.length,h=!1;typeof f=="boolean"&&(h=f,f=arguments[1]||{},l=2);if(f==null||typeof f!="object"&&typeof f!="function")f={};for(;l<c;++l){e=arguments[l];if(e!=null)for(t in e)n=f[t],r=e[t],f!==r&&(h&&r&&(o(r)||(i=s(r)))?(i?(i=!1,a=n&&s(n)?n:[]):a=n&&o(n)?n:{},f[t]=u(h,a,r)):typeof r!="undefined"&&(f[t]=r))}return f}},{}],69:[function(e,t,n){function i(e,t){var n=r("global-queue:"+e);return t=t||{},function(r){r=[].slice.call(arguments),window[e]||(window[e]=[]),n("%o",r),t.wrap===!1?window[e].push.apply(window[e],r):window[e].push(r)}}var r=e("debug");t.exports=i},{debug:70}],70:[function(e,t,n){arguments[4][36][0].apply(n,arguments)},{"./debug":71,_process:89,dup:36}],71:[function(e,t,n){arguments[4][37][0].apply(n,arguments)},{dup:37,ms:81}],72:[function(e,t,n){try{t.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(r){t.exports=!1}},{}],73:[function(e,t,n){typeof Object.create=="function"?t.exports=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],74:[function(e,t,n){t.exports=function(t){return/.+\@.+\..+/.test(t)}},{}],75:[function(e,t,n){"use strict";var r=Object.prototype,i=r.hasOwnProperty,s=r.toString,o;typeof Symbol=="function"&&(o=Symbol.prototype.valueOf);var u=function(e){return e!==e},a={"boolean":1,number:1,string:1,"undefined":1},f=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/,l=/^[A-Fa-f0-9]+$/,c={};c.a=c.type=function(e,t){return typeof e===t},c.defined=function(e){return typeof e!="undefined"},c.empty=function(e){var t=s.call(e),n;if(t==="[object Array]"||t==="[object Arguments]"||t==="[object String]")return e.length===0;if(t==="[object Object]"){for(n in e)if(i.call(e,n))return!1;return!0}return!e},c.equal=function(t,n){if(t===n)return!0;var r=s.call(t),i;if(r!==s.call(n))return!1;if(r==="[object Object]"){for(i in t)if(!c.equal(t[i],n[i])||!(i in n))return!1;for(i in n)if(!c.equal(t[i],n[i])||!(i in t))return!1;return!0}if(r==="[object Array]"){i=t.length;if(i!==n.length)return!1;while(i--)if(!c.equal(t[i],n[i]))return!1;return!0}return r==="[object Function]"?t.prototype===n.prototype:r==="[object Date]"?t.getTime()===n.getTime():!1},c.hosted=function(e,t){var n=typeof t[e];return n==="object"?!!t[e]:!a[n]},c.instance=c["instanceof"]=function(e,t){return e instanceof t},c.nil=c["null"]=function(e){return e===null},c.undef=c.undefined=function(e){return typeof e=="undefined"},c.args=c.arguments=function(e){var t=s.call(e)==="[object Arguments]",n=!c.array(e)&&c.arraylike(e)&&c.object(e)&&c.fn(e.callee);return t||n},c.array=Array.isArray||function(e){return s.call(e)==="[object Array]"},c.args.empty=function(e){return c.args(e)&&e.length===0},c.array.empty=function(e){return c.array(e)&&e.length===0},c.arraylike=function(e){return!!e&&!c.bool(e)&&i.call(e,"length")&&isFinite(e.length)&&c.number(e.length)&&e.length>=0},c.bool=c["boolean"]=function(e){return s.call(e)==="[object Boolean]"},c["false"]=function(e){return c.bool(e)&&Boolean(Number(e))===!1},c["true"]=function(e){return c.bool(e)&&Boolean(Number(e))===!0},c.date=function(e){return s.call(e)==="[object Date]"},c.date.valid=function(e){return c.date(e)&&!isNaN(Number(e))},c.element=function(e){return e!==undefined&&typeof HTMLElement!="undefined"&&e instanceof HTMLElement&&e.nodeType===1},c.error=function(e){return s.call(e)==="[object Error]"},c.fn=c["function"]=function(e){var t=typeof window!="undefined"&&e===window.alert;if(t)return!0;var n=s.call(e);return n==="[object Function]"||n==="[object GeneratorFunction]"||n==="[object AsyncFunction]"},c.number=function(e){return s.call(e)==="[object Number]"},c.infinite=function(e){return e===Infinity||e===-Infinity},c.decimal=function(e){return c.number(e)&&!u(e)&&!c.infinite(e)&&e%1!==0},c.divisibleBy=function(e,t){var n=c.infinite(e),r=c.infinite(t),i=c.number(e)&&!u(e)&&c.number(t)&&!u(t)&&t!==0;return n||r||i&&e%t===0},c.integer=c["int"]=function(e){return c.number(e)&&!u(e)&&e%1===0},c.maximum=function(e,t){if(u(e))throw new TypeError("NaN is not a valid value");if(!c.arraylike(t))throw new TypeError("second argument must be array-like");var n=t.length;while(--n>=0)if(e<t[n])return!1;return!0},c.minimum=function(e,t){if(u(e))throw new TypeError("NaN is not a valid value");if(!c.arraylike(t))throw new TypeError("second argument must be array-like");var n=t.length;while(--n>=0)if(e>t[n])return!1;return!0},c.nan=function(e){return!c.number(e)||e!==e},c.even=function(e){return c.infinite(e)||c.number(e)&&e===e&&e%2===0},c.odd=function(e){return c.infinite(e)||c.number(e)&&e===e&&e%2!==0},c.ge=function(e,t){if(u(e)||u(t))throw new TypeError("NaN is not a valid value");return!c.infinite(e)&&!c.infinite(t)&&e>=t},c.gt=function(e,t){if(u(e)||u(t))throw new TypeError("NaN is not a valid value");return!c.infinite(e)&&!c.infinite(t)&&e>t},c.le=function(e,t){if(u(e)||u(t))throw new TypeError("NaN is not a valid value");return!c.infinite(e)&&!c.infinite(t)&&e<=t},c.lt=function(e,t){if(u(e)||u(t))throw new TypeError("NaN is not a valid value");return!c.infinite(e)&&!c.infinite(t)&&e<t},c.within=function(e,t,n){if(u(e)||u(t)||u(n))throw new TypeError("NaN is not a valid value");if(!c.number(e)||!c.number(t)||!c.number(n))throw new TypeError("all arguments must be numbers");var r=c.infinite(e)||c.infinite(t)||c.infinite(n);return r||e>=t&&e<=n},c.object=function(e){return s.call(e)==="[object Object]"},c.primitive=function(t){return t?typeof t=="object"||c.object(t)||c.fn(t)||c.array(t)?!1:!0:!0},c.hash=function(e){return c.object(e)&&e.constructor===Object&&!e.nodeType&&!e.setInterval},c.regexp=function(e){return s.call(e)==="[object RegExp]"},c.string=function(e){return s.call(e)==="[object String]"},c.base64=function(e){return c.string(e)&&(!e.length||f.test(e))},c.hex=function(e){return c.string(e)&&(!e.length||l.test(e))},c.symbol=function(e){return typeof Symbol=="function"&&s.call(e)==="[object Symbol]"&&typeof o.call(e)=="symbol"},t.exports=c},{}],76:[function(e,t,n){(function(e){(function(){function a(e,t){function w(e){if(w[e]!==g)return w[e];var i;if(e=="bug-string-char-index")i="a"[0]!="a";else if(e=="json")i=w("json-stringify")&&w("json-parse");else{var s,o='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if(e=="json-stringify"){var a=t.stringify,f=typeof a=="function"&&y;if(f){(s=function(){return 1}).toJSON=s;try{f=a(0)==="0"&&a(new n)==="0"&&a(new r)=='""'&&a(d)===g&&a(g)===g&&a()===g&&a(s)==="1"&&a([s])=="[1]"&&a([g])=="[null]"&&a(null)=="null"&&a([g,d,null])=="[null,null,null]"&&a({a:[s,true,false,null,"\0\b\n\f\r	"]})==o&&a(null,s)==="1"&&a([1,2],null,1)=="[\n 1,\n 2\n]"&&a(new u(-864e13))=='"-271821-04-20T00:00:00.000Z"'&&a(new u(864e13))=='"+275760-09-13T00:00:00.000Z"'&&a(new u(-621987552e5))=='"-000001-01-01T00:00:00.000Z"'&&a(new u(-1))=='"1969-12-31T23:59:59.999Z"'}catch(l){f=!1}}i=f}if(e=="json-parse"){var c=t.parse;if(typeof c=="function")try{if(c("0")===0&&!c(!1)){s=c(o);var h=s["a"].length==5&&s.a[0]===1;if(h){try{h=!c('"	"')}catch(l){}if(h)try{h=c("01")!==1}catch(l){}if(h)try{h=c("1.")!==1}catch(l){}}}}catch(l){h=!1}i=h}}return w[e]=!!i}e||(e=o.Object()),t||(t=o.Object());var n=e.Number||o.Number,r=e.String||o.String,s=e.Object||o.Object,u=e.Date||o.Date,f=e.SyntaxError||o.SyntaxError,l=e.TypeError||o.TypeError,c=e.Math||o.Math,h=e.JSON||o.JSON;typeof h=="object"&&h&&(t.stringify=h.stringify,t.parse=h.parse);var p=s.prototype,d=p.toString,v,m,g,y=new u(-0xc782b5b800cec);try{y=y.getUTCFullYear()==-109252&&y.getUTCMonth()===0&&y.getUTCDate()===1&&y.getUTCHours()==10&&y.getUTCMinutes()==37&&y.getUTCSeconds()==6&&y.getUTCMilliseconds()==708}catch(b){}if(!w("json")){var E="[object Function]",S="[object Date]",x="[object Number]",T="[object String]",N="[object Array]",C="[object Boolean]",k=w("bug-string-char-index");if(!y)var L=c.floor,A=[0,31,59,90,120,151,181,212,243,273,304,334],O=function(e,t){return A[t]+365*(e-1970)+L((e-1969+(t=+(t>1)))/4)-L((e-1901+t)/100)+L((e-1601+t)/400)};(v=p.hasOwnProperty)||(v=function(e){var t={},n;return(t.__proto__=null,t.__proto__={toString:1},t).toString!=d?v=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);return this.__proto__=t,n}:(n=t.constructor,v=function(e){var t=(this.constructor||n).prototype;return e in this&&!(e in t&&this[e]===t[e])}),t=null,v.call(this,e)}),m=function(e,t){var n=0,r,s,o;(r=function(){this.valueOf=0}).prototype.valueOf=0,s=new r;for(o in s)v.call(s,o)&&n++;return r=s=null,n?n==2?m=function(e,t){var n={},r=d.call(e)==E,i;for(i in e)(!r||i!="prototype")&&!v.call(n,i)&&(n[i]=1)&&v.call(e,i)&&t(i)}:m=function(e,t){var n=d.call(e)==E,r,i;for(r in e)(!n||r!="prototype")&&v.call(e,r)&&!(i=r==="constructor")&&t(r);(i||v.call(e,r="constructor"))&&t(r)}:(s=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],m=function(e,t){var n=d.call(e)==E,r,o,u=!n&&typeof e.constructor!="function"&&i[typeof e.hasOwnProperty]&&e.hasOwnProperty||v;for(r in e)(!n||r!="prototype")&&u.call(e,r)&&t(r);for(o=s.length;r=s[--o];u.call(e,r)&&t(r));}),m(e,t)};if(!w("json-stringify")){var M={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},_="000000",D=function(e,t){return(_+(t||0)).slice(-e)},P="\\u00",H=function(e){var t='"',n=0,r=e.length,i=!k||r>10,s=i&&(k?e.split(""):e);for(;n<r;n++){var o=e.charCodeAt(n);switch(o){case 8:case 9:case 10:case 12:case 13:case 34:case 92:t+=M[o];break;default:if(o<32){t+=P+D(2,o.toString(16));break}t+=i?s[n]:e.charAt(n)}}return t+'"'},B=function(e,t,n,r,i,s,o){var u,a,f,c,h,p,y,b,w,E,k,A,M,_,P,j;try{u=t[e]}catch(F){}if(typeof u=="object"&&u){a=d.call(u);if(a==S&&!v.call(u,"toJSON"))if(u>-1/0&&u<1/0){if(O){h=L(u/864e5);for(f=L(h/365.2425)+1970-1;O(f+1,0)<=h;f++);for(c=L((h-O(f,0))/30.42);O(f,c+1)<=h;c++);h=1+h-O(f,c),p=(u%864e5+864e5)%864e5,y=L(p/36e5)%24,b=L(p/6e4)%60,w=L(p/1e3)%60,E=p%1e3}else f=u.getUTCFullYear(),c=u.getUTCMonth(),h=u.getUTCDate(),y=u.getUTCHours(),b=u.getUTCMinutes(),w=u.getUTCSeconds(),E=u.getUTCMilliseconds();u=(f<=0||f>=1e4?(f<0?"-":"+")+D(6,f<0?-f:f):D(4,f))+"-"+D(2,c+1)+"-"+D(2,h)+"T"+D(2,y)+":"+D(2,b)+":"+D(2,w)+"."+D(3,E)+"Z"}else u=null;else typeof u.toJSON=="function"&&(a!=x&&a!=T&&a!=N||v.call(u,"toJSON"))&&(u=u.toJSON(e))}n&&(u=n.call(t,e,u));if(u===null)return"null";a=d.call(u);if(a==C)return""+u;if(a==x)return u>-1/0&&u<1/0?""+u:"null";if(a==T)return H(""+u);if(typeof u=="object"){for(_=o.length;_--;)if(o[_]===u)throw l();o.push(u),k=[],P=s,s+=i;if(a==N){for(M=0,_=u.length;M<_;M++)A=B(M,u,n,r,i,s,o),k.push(A===g?"null":A);j=k.length?i?"[\n"+s+k.join(",\n"+s)+"\n"+P+"]":"["+k.join(",")+"]":"[]"}else m(r||u,function(e){var t=B(e,u,n,r,i,s,o);t!==g&&k.push(H(e)+":"+(i?" ":"")+t)}),j=k.length?i?"{\n"+s+k.join(",\n"+s)+"\n"+P+"}":"{"+k.join(",")+"}":"{}";return o.pop(),j}};t.stringify=function(e,t,n){var r,s,o,u;if(i[typeof t]&&t)if((u=d.call(t))==E)s=t;else if(u==N){o={};for(var a=0,f=t.length,l;a<f;l=t[a++],(u=d.call(l),u==T||u==x)&&(o[l]=1));}if(n)if((u=d.call(n))==x){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else u==T&&(r=n.length<=10?n:n.slice(0,10));return B("",(l={},l[""]=e,l),s,o,r,"",[])}}if(!w("json-parse")){var j=r.fromCharCode,F={92:"\\",34:'"',47:"/",98:"\b",116:"	",110:"\n",102:"\f",114:"\r"},I,q,R=function(){throw I=q=null,f()},U=function(){var e=q,t=e.length,n,r,i,s,o;while(I<t){o=e.charCodeAt(I);switch(o){case 9:case 10:case 13:case 32:I++;break;case 123:case 125:case 91:case 93:case 58:case 44:return n=k?e.charAt(I):e[I],I++,n;case 34:for(n="@",I++;I<t;){o=e.charCodeAt(I);if(o<32)R();else if(o==92){o=e.charCodeAt(++I);switch(o){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:n+=F[o],I++;break;case 117:r=++I;for(i=I+4;I<i;I++)o=e.charCodeAt(I),o>=48&&o<=57||
o>=97&&o<=102||o>=65&&o<=70||R();n+=j("0x"+e.slice(r,I));break;default:R()}}else{if(o==34)break;o=e.charCodeAt(I),r=I;while(o>=32&&o!=92&&o!=34)o=e.charCodeAt(++I);n+=e.slice(r,I)}}if(e.charCodeAt(I)==34)return I++,n;R();default:r=I,o==45&&(s=!0,o=e.charCodeAt(++I));if(o>=48&&o<=57){o==48&&(o=e.charCodeAt(I+1),o>=48&&o<=57)&&R(),s=!1;for(;I<t&&(o=e.charCodeAt(I),o>=48&&o<=57);I++);if(e.charCodeAt(I)==46){i=++I;for(;i<t&&(o=e.charCodeAt(i),o>=48&&o<=57);i++);i==I&&R(),I=i}o=e.charCodeAt(I);if(o==101||o==69){o=e.charCodeAt(++I),(o==43||o==45)&&I++;for(i=I;i<t&&(o=e.charCodeAt(i),o>=48&&o<=57);i++);i==I&&R(),I=i}return+e.slice(r,I)}s&&R();if(e.slice(I,I+4)=="true")return I+=4,!0;if(e.slice(I,I+5)=="false")return I+=5,!1;if(e.slice(I,I+4)=="null")return I+=4,null;R()}}return"$"},z=function(e){var t,n;e=="$"&&R();if(typeof e=="string"){if((k?e.charAt(0):e[0])=="@")return e.slice(1);if(e=="["){t=[];for(;;n||(n=!0)){e=U();if(e=="]")break;n&&(e==","?(e=U(),e=="]"&&R()):R()),e==","&&R(),t.push(z(e))}return t}if(e=="{"){t={};for(;;n||(n=!0)){e=U();if(e=="}")break;n&&(e==","?(e=U(),e=="}"&&R()):R()),(e==","||typeof e!="string"||(k?e.charAt(0):e[0])!="@"||U()!=":")&&R(),t[e.slice(1)]=z(U())}return t}R()}return e},W=function(e,t,n){var r=X(e,t,n);r===g?delete e[t]:e[t]=r},X=function(e,t,n){var r=e[t],i;if(typeof r=="object"&&r)if(d.call(r)==N)for(i=r.length;i--;)W(r,i,n);else m(r,function(e){W(r,e,n)});return n.call(e,t,r)};t.parse=function(e,t){var n,r;return I=0,q=""+e,n=z(U()),U()!="$"&&R(),I=q=null,t&&d.call(t)==E?X((r={},r[""]=n,r),"",t):n}}}return t.runInContext=a,t}var r=typeof define=="function"&&define.amd,i={"function":!0,object:!0},s=i[typeof n]&&n&&!n.nodeType&&n,o=i[typeof window]&&window||this,u=s&&i[typeof t]&&t&&!t.nodeType&&typeof e=="object"&&e;u&&(u.global===u||u.window===u||u.self===u)&&(o=u);if(s&&!r)a(o,s);else{var f=o.JSON,l=o.JSON3,c=!1,h=a(o,o.JSON3={noConflict:function(){return c||(c=!0,o.JSON=f,o.JSON3=l,f=l=null),h}});o.JSON={parse:h.parse,stringify:h.stringify}}r&&define(function(){return h})}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],77:[function(e,t,n){function s(){}function o(e,t,n){function d(){h.parentNode&&h.parentNode.removeChild(h),window[u]=s,p&&clearTimeout(p)}function v(){window[u]&&d()}"function"==typeof t&&(n=t,t={}),t||(t={});var o=t.prefix||"__jp",u=t.name||o+i++,a=t.param||"callback",f=null!=t.timeout?t.timeout:6e4,l=encodeURIComponent,c=document.getElementsByTagName("script")[0]||document.head,h,p;return f&&(p=setTimeout(function(){d(),n&&n(new Error("Timeout"))},f)),window[u]=function(e){r("jsonp got",e),d(),n&&n(null,e)},e+=(~e.indexOf("?")?"&":"?")+a+"="+l(u),e=e.replace("?&","?"),r('jsonp req "%s"',e),h=document.createElement("script"),h.src=e,c.parentNode.insertBefore(h,c),v}var r=e("debug")("jsonp");t.exports=o;var i=0},{debug:78}],78:[function(e,t,n){arguments[4][36][0].apply(n,arguments)},{"./debug":79,_process:89,dup:36}],79:[function(e,t,n){arguments[4][37][0].apply(n,arguments)},{dup:37,ms:81}],80:[function(e,t,n){var r=e("is"),i=e("script-onload"),s=e("next-tick");t.exports=function(t,n){if(!t)throw new Error("Cant load nothing...");r.string(t)&&(t={src:t});var o=document.location.protocol==="https:"||document.location.protocol==="chrome-extension:";t.src&&t.src.indexOf("//")===0&&(t.src=o?"https:"+t.src:"http:"+t.src),o&&t.https?t.src=t.https:!o&&t.http&&(t.src=t.http);var u=document.createElement("iframe");return u.src=t.src,u.width=t.width||1,u.height=t.height||1,u.style.display="none",r.fn(n)&&i(u,n),s(function(){var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(u,e)}),u}},{is:75,"next-tick":86,"script-onload":91}],81:[function(e,t,n){function a(e){e=String(e);if(e.length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]),a=(t[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"days":case"day":case"d":return n*o;case"hours":case"hour":case"hrs":case"hr":case"h":return n*s;case"minutes":case"minute":case"mins":case"min":case"m":return n*i;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return undefined}}function f(e){return e>=o?Math.round(e/o)+"d":e>=s?Math.round(e/s)+"h":e>=i?Math.round(e/i)+"m":e>=r?Math.round(e/r)+"s":e+"ms"}function l(e){return c(e,o,"day")||c(e,s,"hour")||c(e,i,"minute")||c(e,r,"second")||e+" ms"}function c(e,t,n){if(e<t)return;return e<t*1.5?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var r=1e3,i=r*60,s=i*60,o=s*24,u=o*365.25;t.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return a(e);if(n==="number"&&isNaN(e)===!1)return t.long?l(e):f(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],82:[function(e,t,n){"use strict";function u(e){return e<315576e5?e*1e3:e}var r=e("is"),i=e("@segment/isodate"),s=e("./milliseconds"),o=e("./seconds");t.exports=function(t){return r.date(t)?t:r.number(t)?new Date(u(t)):i.is(t)?i.parse(t):s.is(t)?s.parse(t):o.is(t)?o.parse(t):new Date(t)}},{"./milliseconds":83,"./seconds":84,"@segment/isodate":85,is:75}],83:[function(e,t,n){"use strict";var r=/\d{13}/;n.is=function(e){return r.test(e)},n.parse=function(e){return e=parseInt(e,10),new Date(e)}},{}],84:[function(e,t,n){"use strict";var r=/\d{10}/;n.is=function(e){return r.test(e)},n.parse=function(e){var t=parseInt(e,10)*1e3;return new Date(t)}},{}],85:[function(e,t,n){"use strict";var r=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;n.parse=function(e){var t=[1,5,6,7,11,12],n=r.exec(e),i=0;if(!n)return new Date(e);for(var s=0,o;o=t[s];s++)n[o]=parseInt(n[o],10)||0;n[2]=parseInt(n[2],10)||1,n[3]=parseInt(n[3],10)||1,n[2]--,n[8]=n[8]?(n[8]+"00").substring(0,3):0,n[4]===" "?i=(new Date).getTimezoneOffset():n[9]!=="Z"&&n[10]&&(i=n[11]*60+n[12],n[10]==="+"&&(i=0-i));var u=Date.UTC(n[1],n[2],n[3],n[5],n[6]+i,n[7],n[8]);return new Date(u)},n.is=function(e,t){return t&&/^\d{4}-\d{2}-\d{2}/.test(e)===!1?!1:r.test(e)}},{}],86:[function(e,t,n){(function(e,n){"use strict";var r,i;r=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},i=function(e){var t=document.createTextNode(""),n,i=0;return(new e(function(){var e;if(!n)return;e=n,n=null;if(typeof e=="function"){e();return}e.forEach(function(e){e()})})).observe(t,{characterData:!0}),function(e){r(e);if(n){typeof n=="function"?n=[n,e]:n.push(e);return}n=e,t.data=i=++i%2}},t.exports=function(){if(typeof e!="undefined"&&e&&typeof e.nextTick=="function")return e.nextTick;if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return i(MutationObserver);if(typeof WebKitMutationObserver=="function")return i(WebKitMutationObserver)}return typeof n=="function"?function(e){n(r(e))}:typeof setTimeout=="function"?function(e){setTimeout(r(e),0)}:null}()}).call(this,e("_process"),e("timers").setImmediate)},{_process:89,timers:105}],87:[function(e,t,n){function i(e){return function(t,n,r,i){function u(){for(s in t){var e=normalize(s);if(0===n.indexOf(e)){var r=n.substr(e.length);if(r.charAt(0)==="."||r.length===0){n=r.substr(1);var i=t[s];if(null==i){o=!0;return}if(!n.length){o=!0;return}t=i;return}}}s=undefined,o=!0}normalize=i&&f(i.normalizer)?i.normalizer:a,n=normalize(n);var s,o=!1;while(!o)u();if(!s)return;return null==t?t:e(t,s,r)}}function s(e,t){if(e.hasOwnProperty(t))return e[t]}function o(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function u(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function a(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}function f(e){return typeof e=="function"}var r=function(e){return e};t.exports=i(s),t.exports.find=t.exports,t.exports.replace=function(e,t,n,r){return i(u).call(this,e,t,n,r),e},t.exports.del=function(e,t,n){return i(o).call(this,e,t,null,n),e}},{}],88:[function(e,t,n){var r=Object.prototype.hasOwnProperty;n.keys=Object.keys||function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(n);return t},n.values=function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(e[n]);return t},n.merge=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);return e},n.length=function(e){return n.keys(e).length},n.isEmpty=function(e){return 0==n.length(e)}},{}],89:[function(e,t,n){function o(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}function f(e){if(s===clearTimeout)return clearTimeout(e);if((s===u||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}function d(){if(!c||!h)return;c=!1,h.length?l=h.concat(l):p=-1,l.length&&v()}function v(){if(c)return;var e=a(d);c=!0;var t=l.length;while(t){h=l,l=[];while(++p<t)h&&h[p].run();p=-1,t=l.length}h=null,c=!1,f(e)}function m(e,t){this.fun=e,this.array=t}function g(){}var r=t.exports={},i,s;(function(){try{typeof setTimeout=="function"?i=setTimeout:i=o}catch(e){i=o}try{typeof clearTimeout=="function"?s=clearTimeout:s=u}catch(e){s=u}})();var l=[],c=!1,h,p=-1;r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),l.length===1&&!c&&a(v)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},{}],90:[function(e,t,n){function i(e,t){return t=t||s,"array"==r(e)?i.array(e,t):i.object(e,t)}function s(e){return null==e}var r=e("type-component");t.exports=i,i.array=function(e,t){var n=[];for(var r=0;r<e.length;++r)t(e[r],r)||(n[n.length]=e[r]);return n},i.object=function(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!t(e[r],r)&&(n[r]=e[r]);return n},i.types=i.type=function(e,t){return Array.isArray(t)||(t=[t]),i(e,function(e){return-1!=t.indexOf(r(e))})}},{"type-component":112}],91:[function(e,t,n){function r(e,t){e.addEventListener("load",function(e,n){t(null,n)},!1),e.addEventListener("error",function(n){var r=new Error('script error "'+e.src+'"');r.event=n,t(r)},!1)}function i(e,t){e.attachEvent("onreadystatechange",function(n){if(!/complete|loaded/.test(e.readyState))return;t(null,n)}),e.attachEvent("onerror",function(n){var r=new Error('failed to load the script "'+e.src+'"');r.event=n||window.event,t(r)})}t.exports=function(e,t){return e.addEventListener?r(e,t):i(e,t)}},{}],92:[function(e,t,n){"use strict";var r=e("obj-case");t.exports=function(e){function t(e,t){return function(){var n=this.traits(),i=this.properties?this.properties():{};return r(n,"address."+e)||r(n,e)||(t?r(n,"address."+t):null)||(t?r(n,t):null)||r(i,"address."+e)||r(i,e)||(t?r(i,"address."+t):null)||(t?r(i,t):null)}}e.zip=t("postalCode","zip"),e.country=t("country"),e.street=t("street"),e.state=t("state"),e.city=t("city"),e.region=t("region")}},{"obj-case":87}],93:[function(e,t,n){"use strict";function s(e,t){i.call(this,e,t)}var r=e("./utils").inherit,i=e("./facade");r(s,i),s.prototype.action=function(){return"alias"},s.prototype.type=s.prototype.action,s.prototype.previousId=function(){return this.field("previousId")||this.field("from")},s.prototype.from=s.prototype.previousId,s.prototype.userId=function(){return this.field("userId")||this.field("to")},s.prototype.to=s.prototype.userId,t.exports=s},{"./facade":95,"./utils":103}],94:[function(e,t,n){"use strict";function s(e,t){i.call(this,e,t)}var r=e("./utils").inherit,i=e("./facade");r(s,i),s.prototype.type=function(){return"delete"},t.exports=s},{"./facade":95,"./utils":103}],95:[function(e,t,n){"use strict";function l(e,t){t=t||{},"clone"in t||(t.clone=!0),t.clone&&(e=i(e)),"traverse"in t||(t.traverse=!0),"timestamp"in e?e.timestamp=o(e.timestamp):e.timestamp=new Date,t.traverse&&a(e),this.opts=t,this.obj=e}function c(e){return i(e)}var r=e("./address"),i=e("./utils").clone,s=e("./is-enabled"),o=e("new-date"),u=e("obj-case"),a=e("@segment/isodate-traverse"),f=e("./utils").type;l.prototype.proxy=function(e){var t=e.split(".");e=t.shift();var n=this[e]||this.field(e);return n?(typeof n=="function"&&(n=n.call(this)||{}),t.length===0?this.opts.clone?c(n):n:(n=u(n,t.join(".")),this.opts.clone?c(n):n)):n},l.prototype.field=function(e){var t=this.obj[e];return this.opts.clone?c(t):t},l.proxy=function(e){return function(){return this.proxy(e)}},l.field=function(e){return function(){return this.field(e)}},l.multi=function(e){return function(){var t=this.proxy(e+"s");if(f(t)==="array")return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?i(n):n]),n||[]}},l.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");if(f(n)==="array")return n[0]}},l.prototype.json=function(){var e=this.opts.clone?i(this.obj):this.obj;return this.type&&(e.type=this.type()),e},l.prototype.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?i(t):t;if(!e)return n;if(!this.enabled(e))return;var r=this.integrations(),s=r[e]||u(r,e);return typeof s!="object"&&(s=u(this.options(),e)),typeof s=="object"?s:{}},l.prototype.context=l.prototype.options,l.prototype.enabled=function(e){var t=this.proxy("options.providers.all");typeof t!="boolean"&&(t=this.proxy("options.all")),typeof t!="boolean"&&(t=this.proxy("integrations.all")),typeof t!="boolean"&&(t=!0);var n=t&&s(e),r=this.integrations();r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]);if(r.hasOwnProperty(e)){var i=r[e];typeof i=="boolean"?n=i:n=!0}return!!n},l.prototype.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},l.prototype.active=function(){var e=this.proxy("options.active");if(e===null||e===undefined)e=!0;return e},l.prototype.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},l.prototype.sessionId=l.prototype.anonymousId,l.prototype.groupId=l.proxy("options.groupId"),l.prototype.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();e=e||{},n&&(t.id=n);for(var r in e){var i=this[r]==null?this.proxy("options.traits."+r):this[r]();if(i==null)continue;t[e[r]]=i,delete t[r]}return t},l.prototype.library=function(){var e=this.proxy("options.library");return e?typeof e=="string"?{name:e,version:null}:e:{name:"unknown",version:null}},l.prototype.device=function(){var e=this.proxy("context.device");f(e)!=="object"&&(e={});var t=this.library().name;return e.type?e:(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android"),e)},l.prototype.userAgent=l.proxy("context.userAgent"),l.prototype.timezone=l.proxy("context.timezone"),l.prototype.timestamp=l.field("timestamp"),l.prototype.channel=l.field("channel"),l.prototype.ip=l.proxy("context.ip"),l.prototype.userId=l.field("userId"),r(l.prototype),t.exports=l},{"./address":92,"./is-enabled":99,"./utils":103,"@segment/isodate-traverse":42,"new-date":82,"obj-case":87}],96:[function(e,t,n){"use strict";function u(e,t){o.call(this,e,t)}var r=e("./utils").inherit,i=e("is-email"),s=e("new-date"),o=e("./facade");r(u,o),u.prototype.action=function(){return"group"},u.prototype.type=u.prototype.action,u.prototype.groupId=o.field("groupId"),u.prototype.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return s(e)},u.prototype.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();if(i(t))return t},u.prototype.traits=function(e){var t=this.properties(),n=this.groupId();e=e||{},n&&(t.id=n);for(var r in e){var i=this[r]==null?this.proxy("traits."+r):this[r]();if(i==null)continue;t[e[r]]=i,delete t[r]}return t},u.prototype.name=o.proxy("traits.name"),u.prototype.industry=o.proxy("traits.industry"),u.prototype.employees=o.proxy("traits.employees"),u.prototype.properties=function(){return this.field("traits")||this.field("properties")||{}},t.exports=u},{"./facade":95,"./utils":103,"is-email":74,"new-date":82}],97:[function(e,t,n){"use strict";function l(e,t){r.call(this,e,t)}var r=e("./facade"),i=e("obj-case"),s=e("./utils").inherit,o=e("is-email"),u=e("new-date"),a=e("trim"),f=e("./utils").type;s(l,r),l.prototype.action=function(){return"identify"},l.prototype.type=l.prototype.action,l.prototype.traits=function(e){var t=this.field("traits")||{},n=this.userId();e=e||{},n&&(t.id=n);for(var r in e){var i=this[r]==null?this.proxy("traits."+r):this[r]();if(i==null)continue;t[e[r]]=i,r!==e[r]&&delete t[r]}return t},l.prototype.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();if(o(t))return t},l.prototype.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return u(e)},l.prototype.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return u(e)},l.prototype.companyName=function(){return this.proxy("traits.company.name")},l.prototype.name=function(){var e=this.proxy("traits.name");if(typeof e=="string")return a(e);var t=this.firstName(),n=this.lastName();if(t&&n)return a(t+" "+n)},l.prototype.firstName=function(){var e=this.proxy("traits.firstName");if(typeof e=="string")return a(e);var t=this.proxy("traits.name");if(typeof t=="string")return a(t).split(" ")[0]},l.prototype.lastName=function(){var e=this.proxy("traits.lastName");if(typeof e=="string")return a(e);var t=this.proxy("traits.name");if(typeof t!="string")return;var n=a(t).indexOf(" ");if(n===-1)return;return a(t.substr(n+1))},l.prototype.uid=function(){return this.userId()||this.username()||this.email()},l.prototype.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},l.prototype.age=function(){var e=this.birthday(),t=i(this.traits(),"age");if(t!=null)return t;if(f(e)!=="date")return;var n=new Date;return n.getFullYear()-e.getFullYear()},l.prototype.avatar=function(){var e=this.traits();return i(e,"avatar")||i(e,"photoUrl")||i(e,"avatarUrl")},l.prototype.position=function(){var e=this.traits();return i(e,"position")||i(e,"jobTitle")},l.prototype.username=r.proxy("traits.username"),l.prototype.website=r.one("traits.website"),l.prototype.websites=r.multi("traits.website"),l.prototype.phone=r.one("traits.phone"),l.prototype.phones=r.multi("traits.phone"),l.prototype.address=r.proxy("traits.address"),l.prototype.gender=r.proxy("traits.gender"),l.prototype.birthday=r.proxy("traits.birthday"),t.exports=l},{"./facade":95,"./utils":103,"is-email":74,"new-date":82,"obj-case":87,trim:111}],98:[function(e,t,n){"use strict";var r=e("./facade");r.Alias=e("./alias"),r.Group=e("./group"),r.Identify=e("./identify"),r.Track=e("./track"),r.Page=e("./page"),r.Screen=e("./screen"),r.Delete=e("./delete"),t.exports=r},{"./alias":93,"./delete":94,"./facade":95,"./group":96,"./identify":97,"./page":100,"./screen":101,"./track":102}],99:[function(e,t,n){"use strict";var r={Salesforce:!0};t.exports=function(e){return!r[e]}},{}],100:[function(e,t,n){"use strict";function u(e,t){i.call(this,e,t)}var r=e("./utils").inherit,i=e("./facade"),s=e("./track"),o=e("is-email");r(u,i),u.prototype.action=function(){return"page"},u.prototype.type=u.prototype.action,u.prototype.category=i.field("category"),u.prototype.name=i.field("name"),u.prototype.title=i.proxy("properties.title"),u.prototype.path=i.proxy("properties.path"),u.prototype.url=i.proxy("properties.url"),u.prototype.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},u.prototype.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();e=e||{},n&&(t.category=n),r&&(t.name=r);for(var i in e){var s=this[i]==null?this.proxy("properties."+i):this[i]();if(s==null)continue;t[e[i]]=s,i!==e[i]&&delete t[i]}return t},u.prototype.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();if(o(t))return t},u.prototype.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},u.prototype.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},u.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new s(t,this.opts)},t.exports=u},{"./facade":95,"./track":102,"./utils":103,"is-email":74}],101:[function(e,t,n){"use strict";function o(e,t){i.call(this,e,t)}var r=e("./utils").inherit,i=e("./page"),s=e("./track");r(o,i),o.prototype.action=function(){return"screen"},o.prototype.type=o.prototype.action,o.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},o.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new s(t,this.opts)},t.exports=o},{"./page":100,"./track":102,"./utils":103}],102:[function(e,t,n){"use strict";function f(e,t){s.call(this,e,t)}function l(e){if(!e)return;if(typeof e=="number")return e;if(typeof e!="string")return;e=e.replace(/\$/g,""),e=parseFloat(e);if(!isNaN(e))return e}var r=e("./utils").inherit,i=e("./utils").type,s=e("./facade"),o=e("./identify"),u=e("is-email"),a=e("obj-case");r(f,s),f.prototype.action=function(){return"track"},f.prototype.type=f.prototype.action,f.prototype.event=s.field("event"),f.prototype.value=s.proxy("properties.value"),f.prototype.category=s.proxy("properties.category"),f.prototype.id=s.proxy("properties.id"),f.prototype.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},f.prototype.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},f.prototype.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},f.prototype.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},f.prototype.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},f.prototype.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},f.prototype.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},f.prototype.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},f.prototype.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},f.prototype.sku=s.proxy("properties.sku"),f.prototype.tax=s.proxy("properties.tax"),f.prototype.name=s.proxy("properties.name"),f.prototype.price=s.proxy("properties.price"),f.prototype.total=s.proxy("properties.total"),f.prototype.repeat=s.proxy("properties.repeat"),f.prototype.coupon=s.proxy("properties.coupon"),f.prototype.shipping=s.proxy("properties.shipping"),f.prototype.discount=s.proxy("properties.discount"),f.prototype.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},f.prototype.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},f.prototype.description=s.proxy("properties.description"),f.prototype.plan=s.proxy("properties.plan"),f.prototype.subtotal=function(){var e=a(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),n=this.shipping(),n&&(t-=n),n=this.discount(),n&&(t+=n)}return t},f.prototype.products=function(){var e=this.properties(),t=a(e,"products");return i(t)==="array"?t:[]},f.prototype.quantity=function(){var e=this.obj.properties||{};return e.quantity||1},f.prototype.currency=function(){var e=this.obj.properties||{};return e.currency||"USD"},f.prototype.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},f.prototype.query=s.proxy("options.query"),f.prototype.properties=function(e){var t=this.field("properties")||{};e=e||{};for(var n in e){var r=this[n]==null?this.proxy("properties."+n):this[n]();if(r==null)continue;t[e[n]]=r,delete t[n]}return t},f.prototype.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},f.prototype.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();if(u(t))return t},f.prototype.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event(),n=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;return!e&&t&&t.match(n)&&(e=this.proxy("properties.total")),l(e)},f.prototype.cents=function(){var e=this.revenue();return typeof e!="number"?this.value()||0:e*100},f.prototype.identify=function(){var e=this.json();return e.traits=this.traits(),new o(e,this.opts)},t.exports=f},{"./facade":95,"./identify":97,"./utils":103,"is-email":74,"obj-case":87}],103:[function(e,t,n){"use strict";n.inherit=e("inherits"),n.clone=e("@ndhoule/clone"),n.type=e("type-component")},{"@ndhoule/clone":6,inherits:73,"type-component":112}],104:[function(e,t,n){t.exports=function(e,t){return t||(t={}),e.toLowerCase().replace(t.replace||/[^a-z0-9]/g," ").replace(/^ +| +$/g,"").replace(/ +/g,t.separator||"-")}},{}],105:[function(e,t,n){(function(t,r){function f(e,t){this._id=e,this._clearFn=t}var i=e("process/browser.js").nextTick,s=Function.prototype.apply,o=Array.prototype.slice,u={},a=0;n.setTimeout=function(){return new f(s.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new f(s.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},f.prototype.unref=f.prototype.ref=function(){},f.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n.setImmediate=typeof t=="function"?t:function(e){var t=a++,r=arguments.length<2?!1:o.call(arguments,1);return u[t]=!0,i(function(){u[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))}),t},n.clearImmediate=typeof r=="function"?r:function(e){delete u[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":89,timers:105}],106:[function(e,t,n){function i(e){return r(e).replace(/\s(\w)/g,function(e,t){return t.toUpperCase()})}var r=e("to-space-case");t.exports=i},{"to-space-case":109}],107:[function(e,t,n){function s(e){switch({}.toString.call(e)){case"[object Object]":return f(e);case"[object Function]":return e;case"[object String]":return a(e);case"[object RegExp]":return u(e);default:return o(e)}}function o(e){return function(t){return e===t}}function u(e){return function(t){return e.test(t)}}function a(e){return/^ *\W+/.test(e)?new Function("_","return _ "+e):new Function("_","return "+l(e))}function f(e){var t={};for(var n in e)t[n]=typeof e[n]=="string"?o(e[n]):s(e[n]);return function(e){if(typeof e!="object")return!1;for(var n in t){if(!(n in e))return!1;if(!t[n](e[n]))return!1}return!0}}function l(e){var t=r(e);if(!t.length)return"_."+e;var n,i,s;for(i=0;i<t.length;i++)s=t[i],n="_."+s,n="('function' == typeof "+n+" ? "+n+"() : "+n+")",e=c(s,e,n);return e}function c(e,t,n){return t.replace(new RegExp("(\\.)?"+e,"g"),function(e,t){return t?e:n})}var r;try{r=e("props")}catch(i){r=e("component-props")}t.exports=s},{"component-props":60,props:60}],108:[function(e,t,n){function s(e){return r.test(e)?e.toLowerCase():i.test(e)?(u(e)||e).toLowerCase():f(e).toLowerCase()}function u(e){return e.replace(o,function(e,t){return t?" "+t:""})}function f(e){return e.replace(a,function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")})}t.exports=s;var r=/\s/,i=/[\W_]/,o=/[\W_]+(.|$)/g,a=/(.)([A-Z]+)/g},{}],109:[function(e,t,n){function i(e){return r(e).replace(/[\W_]+(.|$)/g,function(e,t){return t?" "+t:""}).trim()}var r=e("to-no-case");t.exports=i},{"to-no-case":110}],110:[function(e,t,n){function o(e){return r.test(e)?e.toLowerCase():i.test(e)?(a(e)||e).toLowerCase():s.test(e)?l(e).toLowerCase():e.toLowerCase()}function a(e){return e.replace(u,function(e,t){return t?" "+t:""})}function l(e){return e.replace(f,function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")})}t.exports=o;var r=/\s/,i=/(_|-|\.|:)/,s=/([a-z][A-Z]|[A-Z][a-z])/,u=/[\W_]+(.|$)/g,f=/(.)([A-Z]+)/g},{}],111:[function(e,t,n){function r(e){return e.replace(/^\s*|\s*$/g,"")}n=t.exports=r,n.left=function(e){return e.replace(/^\s*/,"")},n.right=function(e){return e.replace(/\s*$/,"")}},{}],112:[function(e,t,n){var r=Object.prototype.toString;t.exports=function(e){switch(r.call(e)){case"[object Function]":return"function";case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array"}return e===null?"null":e===undefined?"undefined":e===Object(e)?"object":typeof e}},{}],113:[function(e,t,n){function r(e){return i()?"https:"+e:"http:"+e}function i(){return location.protocol=="https:"||location.protocol=="chrome-extension:"}t.exports=function(e){switch(arguments.length){case 0:return i();case 1:return r(e)}}},{}],114:[function(e,t,n){function r(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(r&63|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(r&63|128))}return t}t.exports=r},{}],115:[function(e,t,n){(function(e){var n,r=e.crypto||e.msCrypto;if(r&&r.getRandomValues){var i=new Uint8Array(16);n=function(){return r.getRandomValues(i),i}}if(!n){var s=new Array(16);n=function(){for(var e=0,t;e<16;e++)(e&3)===0&&(t=Math.random()*4294967296),s[e]=t>>>((e&3)<<3)&255;return s}}t.exports=n}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],116:[function(e,t,n){function u(e,t,n){var r=t&&n||0,i=0;t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){i<16&&(t[r+i++]=s[e])});while(i<16)t[r+i++]=0;return t}function a(e,t){var n=t||0,r=i;return r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}function d(e,t,n){var r=t&&n||0,i=t||[];e=e||{};var s=e.clockseq!==undefined?e.clockseq:c,o=e.msecs!==undefined?e.msecs:(new Date).getTime(),u=e.nsecs!==undefined?e.nsecs:p+1,f=o-h+(u-p)/1e4;f<0&&e.clockseq===undefined&&(s=s+1&16383),(f<0||o>h)&&e.nsecs===undefined&&(u=0);if(u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=o,p=u,c=s,o+=122192928e5;var d=((o&268435455)*1e4+u)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;var v=o/4294967296*1e4&268435455;i[r++]=v>>>8&255,i[r++]=v&255,i[r++]=v>>>24&15|16,i[r++]=v>>>16&255,i[r++]=s>>>8|128,i[r++]=s&255;var m=e.node||l;for(var g=0;g<6;g++)i[r+g]=m[g];return t?t:a(i)}function v(e,t,n){var i=t&&n||0;typeof e=="string"&&(t=e=="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||r)();s[6]=s[6]&15|64,s[8]=s[8]&63|128;if(t)for(var o=0;o<16;o++)t[i+o]=s[o];return t||a(s)}var r=e("./rng"),i=[],s={};for(var o=0;o<256;o++)i[o]=(o+256).toString(16).substr(1),s[i[o]]=o;var f=r(),l=[f[0]|1,f[1],f[2],f[3],f[4],f[5]],c=(f[6]<<8|f[7])&16383,h=0,p=0,m=v;m.v1=d,m.v4=v,m.parse=u,m.unparse=a,t.exports=m},{"./rng":115}]},{},[2]);


  analytics.add_persistent_properties({"user_id": null});
  if (window._ajs_persistent_props !== undefined) {
    analytics.add_persistent_properties(window._ajs_persistent_props);
  }
  analytics.identify("dJLs3jciPVQ5");
  analytics.page();

  if ("untd.io".includes('unitedmasters.com') || "untd.io".includes('untd.io')) {
    /* Google Tag Manager */
    (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-K8WJLFV');
    /* End Google Tag Manager */
  }
})();
