text: !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("prop-types"));else if("function"==typeof define&&define.amd)define(["react","prop-types"],t);else{var n="object"==typeof exports?t(require("react"),require("prop-types")):t(e.react,e["prop-types"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}("undefined"!=typeof self?self:this,function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){console.warn("[react-ga]",e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(/^\s+|\s+$/g,"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initialize=k,t.ga=_,t.set=A,t.send=S,t.pageview=x,t.modalview=M,t.timing=E,t.event=q,t.exception=L,t.outboundLink=C,t.default=t.testModeAPI=t.plugin=void 0;var r=f(n(3)),a=f(n(6)),o=f(n(1)),i=f(n(7)),u=f(n(0)),l=f(n(8)),c=f(n(9));function f(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var b="undefined"==typeof window||"undefined"==typeof document,y=!1,v=!0,m=!1,O=!0,h=function(){var e;return m?c.default.ga.apply(c.default,arguments):!b&&(window.ga?(e=window).ga.apply(e,arguments):(0,u.default)("ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually"))};function w(e){return(0,r.default)(e,v)}function j(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=n[0];if("function"==typeof h){if("string"!=typeof a)return void(0,u.default)("ga command must be a string");!O&&Array.isArray(e)||h.apply(void 0,n),Array.isArray(e)&&e.forEach(function(e){h.apply(void 0,g(["".concat(e,".").concat(a)].concat(n.slice(1))))})}}function P(e,t){e?(t&&(t.debug&&!0===t.debug&&(y=!0),!1===t.titleCase&&(v=!1)),t&&t.gaOptions?h("create",e,t.gaOptions):h("create",e,"auto")):(0,u.default)("gaTrackingID is required in initialize()")}function k(e,t){if(t&&!0===t.testMode)m=!0;else{if(b)return!1;t&&!0===t.standardImplementation||(0,i.default)(t)}return O=!t||"boolean"!=typeof t.alwaysSendToDefaultTracker||t.alwaysSendToDefaultTracker,Array.isArray(e)?e.forEach(function(e){"object"===p(e)?P(e.trackingId,e):(0,u.default)("All configs must be an object")}):P(e,t),!0}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length>0&&(h.apply(void 0,t),y&&((0,l.default)("called ga('arguments');"),(0,l.default)("with arguments: ".concat(JSON.stringify(t))))),window.ga}function A(e,t){e?"object"===p(e)?(0===Object.keys(e).length&&(0,u.default)("empty `fieldsObject` given to .set()"),j(t,"set",e),y&&((0,l.default)("called ga('set', fieldsObject);"),(0,l.default)("with fieldsObject: ".concat(JSON.stringify(e))))):(0,u.default)("Expected `fieldsObject` arg to be an Object"):(0,u.default)("`fieldsObject` is required in .set()")}function S(e,t){j(t,"send",e),y&&((0,l.default)("called ga('send', fieldObject);"),(0,l.default)("with fieldObject: ".concat(JSON.stringify(e))),(0,l.default)("with trackers: ".concat(JSON.stringify(t))))}function x(e,t,n){if(e){var r=(0,o.default)(e);if(""!==r){var a={};if(n&&(a.title=n),j(t,"send",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){d(e,t,n[t])})}return e}({hitType:"pageview",page:r},a)),y){(0,l.default)("called ga('send', 'pageview', path);");var i="";n&&(i=" and title: ".concat(n)),(0,l.default)("with path: ".concat(r).concat(i))}}else(0,u.default)("path cannot be an empty string in .pageview()")}else(0,u.default)("path is required in .pageview()")}function M(e,t){if(e){var n=(0,a.default)((0,o.default)(e));if(""!==n){var r="/modal/".concat(n);j(t,"send","pageview",r),y&&((0,l.default)("called ga('send', 'pageview', path);"),(0,l.default)("with path: ".concat(r)))}else(0,u.default)("modalName cannot be an empty string or a single / in .modalview()")}else(0,u.default)("modalName is required in .modalview(modalName)")}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.variable,r=e.value,a=e.label,o=arguments.length>1?arguments[1]:void 0;if(t&&n&&r&&"number"==typeof r){var i={hitType:"timing",timingCategory:w(t),timingVar:w(n),timingValue:r};a&&(i.timingLabel=w(a)),S(i,o)}else(0,u.default)("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number")}function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.action,r=e.label,a=e.value,o=e.nonInteraction,i=e.transport,l=s(e,["category","action","label","value","nonInteraction","transport"]),c=arguments.length>1?arguments[1]:void 0;if(t&&n){var f={hitType:"event",eventCategory:w(t),eventAction:w(n)};r&&(f.eventLabel=w(r)),void 0!==a&&("number"!=typeof a?(0,u.default)("Expected `args.value` arg to be a Number."):f.eventValue=a),void 0!==o&&("boolean"!=typeof o?(0,u.default)("`args.nonInteraction` must be a boolean."):f.nonInteraction=o),void 0!==i&&("string"!=typeof i?(0,u.default)("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(i)&&(0,u.default)("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),f.transport=i)),Object.keys(l).filter(function(e){return"dimension"===e.substr(0,"dimension".length)}).forEach(function(e){f[e]=l[e]}),Object.keys(l).filter(function(e){return"metric"===e.substr(0,"metric".length)}).forEach(function(e){f[e]=l[e]}),S(f,c)}else(0,u.default)("args.category AND args.action are required in event()")}function L(e,t){var n=e.description,r=e.fatal,a={hitType:"exception"};n&&(a.exDescription=w(n)),void 0!==r&&("boolean"!=typeof r?(0,u.default)("`args.fatal` must be a boolean."):a.exFatal=r),S(a,t)}var T={require:function(e,t){if(e){var n=(0,o.default)(e);if(""!==n)if(t){if("object"!==p(t))return void(0,u.default)("Expected `options` arg to be an Object");0===Object.keys(t).length&&(0,u.default)("Empty `options` given to .require()"),_("require",n,t),y&&(0,l.default)("called ga('require', '".concat(n,"', ").concat(JSON.stringify(t)))}else _("require",n),y&&(0,l.default)("called ga('require', '".concat(n,"');"));else(0,u.default)("`name` cannot be an empty string in .require()")}else(0,u.default)("`name` is required in .require()")},execute:function(e,t){var n,r;if(1==(arguments.length<=2?0:arguments.length-2)?n=arguments.length<=2?void 0:arguments[2]:(r=arguments.length<=2?void 0:arguments[2],n=arguments.length<=3?void 0:arguments[3]),"string"!=typeof e)(0,u.default)("Expected `pluginName` arg to be a String.");else if("string"!=typeof t)(0,u.default)("Expected `action` arg to be a String.");else{var a="".concat(e,":").concat(t);n=n||null,r&&n?(_(a,r,n),y&&((0,l.default)("called ga('".concat(a,"');")),(0,l.default)('actionType: "'.concat(r,'" with payload: ').concat(JSON.stringify(n))))):n?(_(a,n),y&&((0,l.default)("called ga('".concat(a,"');")),(0,l.default)("with payload: ".concat(JSON.stringify(n))))):(_(a),y&&(0,l.default)("called ga('".concat(a,"');")))}}};function C(e,t,n){if("function"==typeof t)if(e&&e.label){var r={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:w(e.label)},a=!1,o=setTimeout(function(){a=!0,t()},250);r.hitCallback=function(){clearTimeout(o),a||t()},S(r,n)}else(0,u.default)("args.label is required in outboundLink()");else(0,u.default)("hitCallback function is required")}t.plugin=T;var N=c.default;t.testModeAPI=N;var D={initialize:k,ga:_,set:A,send:S,pageview:x,modalview:M,timing:E,event:q,exception:L,plugin:T,outboundLink:C,testModeAPI:c.default};t.default=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e))return(0,o.default)("This arg looks like an email address, redacting."),u;if(t)return(0,a.default)(e);return e};var r=i(n(4)),a=i(n(5)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}var u="REDACTED (Potential Email Address)"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return/[^@]+@[^@]+/.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(e,t,n){return t>0&&t+e.length!==n.length&&e.search(o)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&n.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})};var r,a=(r=n(1))&&r.__esModule?r:{default:r};var o=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("/"===e.substring(0,1))return e.substring(1);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="https://www.google-analytics.com/analytics.js";e&&e.gaAddress?t=e.gaAddress:e&&e.debug&&(t="https://www.google-analytics.com/analytics_debug.js");n=window,r=document,a="script",o=t,i="ga",n.GoogleAnalyticsObject=i,n.ga=n.ga||function(){(n.ga.q=n.ga.q||[]).push(arguments)},n.ga.l=1*new Date,u=r.createElement(a),l=r.getElementsByTagName(a)[0],u.async=1,u.src=o,l.parentNode.insertBefore(u,l);var n,r,a,o,i,u,l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){console.info("[react-ga]",e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.gaCalls=void 0;var r=[];t.gaCalls=r;var a={calls:r,ga:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.push([].concat(t))},resetCalls:function(){r.length=0}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.OutboundLink=t.testModeAPI=t.outboundLink=t.plugin=t.exception=t.event=t.timing=t.modalview=t.pageview=t.send=t.set=t.ga=t.initialize=void 0;var r,a=(r=n(11))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2));function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=o.initialize;t.initialize=u;var l=o.ga;t.ga=l;var c=o.set;t.set=c;var f=o.send;t.send=f;var s=o.pageview;t.pageview=s;var d=o.modalview;t.modalview=d;var p=o.timing;t.timing=p;var g=o.event;t.event=g;var b=o.exception;t.exception=b;var y=o.plugin;t.plugin=y;var v=o.outboundLink;t.outboundLink=v;var m=o.testModeAPI;t.testModeAPI=m,a.default.origTrackLink=a.default.trackLink,a.default.trackLink=o.outboundLink;var O=a.default;t.OutboundLink=O;var h=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}({},o,{OutboundLink:O});t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(12)),a=i(n(13)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g="_blank",b=1,y=function(e){function t(){var e,n,r,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=this,a=(e=f(t)).call.apply(e,[this].concat(i)),n=!a||"object"!==u(a)&&"function"!=typeof a?s(r):a,p(s(n),"handleClick",function(e){var r=n.props,a=r.target,o=r.eventLabel,i=r.to,u=r.onClick,l=r.trackerNames,c={label:o},f=a!==g,s=!(e.ctrlKey||e.shiftKey||e.metaKey||e.button===b);f&&s?(e.preventDefault(),t.trackLink(c,function(){window.location.href=i},l)):t.trackLink(c,function(){},l),u&&u(e)}),n}var n,a,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,r.Component),n=t,(a=[{key:"render",value:function(){var e=this.props,t=e.to,n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){p(e,t,n[t])})}return e}({},l(e,["to"]),{href:t,onClick:this.handleClick});return this.props.target===g&&(n.rel="noopener noreferrer"),delete n.eventLabel,r.default.createElement("a",n)}}])&&c(n.prototype,a),o&&c(n,o),t}();t.default=y,p(y,"trackLink",function(){(0,o.default)("ga tracking not enabled")}),p(y,"propTypes",{eventLabel:a.default.string.isRequired,target:a.default.string,to:a.default.string,onClick:a.default.func,trackerNames:a.default.arrayOf(a.default.string)}),p(y,"defaultProps",{target:null,to:null,onClick:null,trackerNames:null})},function(t,n){t.exports=e},function(e,n){e.exports=t}])});