🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

vue-multianalytics

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-multianalytics - npm Package Compare versions

Comparing version

to
1.11.3

2

dist/vue-multianalytics.min.js

@@ -1,2 +0,2 @@

module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=o(i),c=n(3),u=o(c),l=n(7),s=o(l),f=n(8),p=o(f),d=n(9),v=o(d),h=n(10),g=o(h),y=n(6),m=(r(y),n(4)),b=r(m),w={},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];e.modulesEnabled=[];for(var r in t.modules){var o=void 0;switch(r){case b.MODULE_GA:o=new u.default,o.init(t.modules[r]);break;case b.MODULE_MIXPANEL:o=new s.default,o.init(t.modules[r]);break;case b.MODULE_SEGMENT:o=new p.default,o.init(t.modules[r]);break;case b.MODULE_FACEBOOK:o=new v.default,o.init(t.modules[r]);break;case b.MODULE_MPARTICLE:o=new g.default,o.init(t.modules[r])}o&&e.modulesEnabled.push(o)}Object.keys(w).length>0&&Object.values(w).forEach(function(n,r){var o=new n;o.init(t.modules[Object.keys(w)[r]]),e.modulesEnabled.push(o)}),t.routing&&t.routing.vueRouter&&_(e,t.routing);var i=new a.default(e.modulesEnabled);return t.returnModule?n?n(i):i:(e.prototype.$multianalytics=e.prototype.$ma=e.ma=i,void(n&&(e.prototype.$multianalyticsm=e.prototype.$mam=e.mam=n(i))))},E=function(e,t){w[e]=t},_=function(e,t){return t.ignoredViews&&(t.ignoredViews=t.ignoredViews.map(function(e){return e.toLowerCase()})),t.preferredProperty||(t.preferredProperty="path"),t.vueRouter.afterEach(function(n){t.ignoredViews&&t.ignoredViews.indexOf(n[t.preferredProperty].toLowerCase())!==-1||e.ma.trackView({viewName:n.meta.analytics||n[t.preferredProperty]},t.ignoredModules)}),t.ignoredViews};t.default={install:k,addCustomModule:E}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(2);var i=function(){function e(t){r(this,e),this.modulesEnabled=t}return o(e,[{key:"trackView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.viewName&&this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.trackView(e)})}},{key:"trackEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.trackEvent(e)})}},{key:"ecommerceTrackEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.ecommerceTrackEvent(e)})}},{key:"trackException",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.trackException(e)})}},{key:"trackTiming",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.trackTiming(e)})}},{key:"addTransaction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.addTransaction(e)})}},{key:"addItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.addItem(e)})}},{key:"trackTransaction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.modulesEnabled.forEach(function(t){e.indexOf(t.name)===-1&&t.trackTransaction()})}},{key:"clearTransactions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.modulesEnabled.forEach(function(t){e.indexOf(t.name)===-1&&t.clearTransactions()})}},{key:"setUsername",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.setUsername(e)})}},{key:"setUserProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.modulesEnabled.filter(function(e){return t.indexOf(e.name)===-1});return Promise.all(n.map(function(t){return t.setUserProperties(e)}))}},{key:"setUserPropertiesOnce",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.modulesEnabled.filter(function(e){return t.indexOf(e.name)===-1});return Promise.all(n.map(function(t){return t.setUserPropertiesOnce(e)}))}},{key:"setSuperProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.setSuperProperties(e)})}},{key:"setSuperPropertiesOnce",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.setSuperPropertiesOnce(e)})}},{key:"identify",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.modulesEnabled.filter(function(e){return t.indexOf(e.name)===-1});return Promise.all(n.map(function(t){return t.identify(e)}))}},{key:"setAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.setAlias(e)})}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.modulesEnabled.filter(function(t){return e.indexOf(t.name)===-1});return Promise.all(t.map(function(e){return e.reset()}))}}]),e}();t.default=i},function(e,t){!function(t){"use strict";function n(e,t,n,r){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),c=new d(r||[]);return a._invoke=l(e,n,c),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function i(){}function a(){}function c(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e){function t(n,o,i,a){var c=r(e[n],e,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&m.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(l).then(function(e){u.value=e,i(u)},a)}a(c.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function l(e,t,n){var o=O;return function(i,a){if(o===j)throw new Error("Generator is already running");if(o===L){if("throw"===i)throw a;return h()}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=s(c,n);if(u){if(u===T)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===O)throw o=L,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=j;var l=r(e,t,n);if("normal"===l.type){if(o=n.done?L:x,l.arg===T)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=L,n.method="throw",n.arg=l.arg)}}}function s(e,t){var n=e.iterator[t.method];if(n===g){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=g,s(e,t),"throw"===t.method))return T;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,T;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=g),t.delegate=null,T):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,T)}function f(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function v(e){if(e){var t=e[w];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(m.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=g,t.done=!0,t};return r.next=r}}return{next:h}}function h(){return{value:g,done:!0}}var g,y=Object.prototype,m=y.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},w=b.iterator||"@@iterator",k=b.asyncIterator||"@@asyncIterator",E=b.toStringTag||"@@toStringTag",_="object"==typeof e,P=t.regeneratorRuntime;if(P)return void(_&&(e.exports=P));P=t.regeneratorRuntime=_?e.exports:{},P.wrap=n;var O="suspendedStart",x="suspendedYield",j="executing",L="completed",T={},M={};M[w]=function(){return this};var A=Object.getPrototypeOf,I=A&&A(A(v([])));I&&I!==y&&m.call(I,w)&&(M=I);var D=a.prototype=o.prototype=Object.create(M);i.prototype=D.constructor=a,a.constructor=i,a[E]=i.displayName="GeneratorFunction",P.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},P.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,E in e||(e[E]="GeneratorFunction")),e.prototype=Object.create(D),e},P.awrap=function(e){return{__await:e}},c(u.prototype),u.prototype[k]=function(){return this},P.AsyncIterator=u,P.async=function(e,t,r,o){var i=new u(n(e,t,r,o));return P.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},c(D),D[E]="Generator",D[w]=function(){return this},D.toString=function(){return"[object Generator]"},P.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},P.values=v,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&m.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=g)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return i.type="throw",i.arg=e,n.next=t,r&&(n.method="next",n.arg=g),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=m.call(o,"catchLoc"),c=m.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&m.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,T):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),T},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),T}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=g),T}}}(function(){return this}()||Function("return this")())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),l=n(5),s=r(l),f=n(6),p=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_GA));return e.settings={additionalAccountNames:[],userId:null},e}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t,n,r,o,i,a){e.GoogleAnalyticsObject=o,e[o]=e[o]||function(){(e[o].q=e[o].q||[]).push(arguments)},e[o].l=1*new Date,i=t.createElement(n),a=t.getElementsByTagName(n)[0],i.setAttribute("defer",""),i.src=r,a.parentNode.insertBefore(i,a)}(window,document,"script","https://www.google-analytics.com/analytics.js","ga");var t=["trackingId","appName","appVersion"];t.forEach(function(t){if(!e[t])throw new Error('VueAnalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,ga("create",e.trackingId,"auto"),ga("set","transport","beacon"),ga("set","appName",e.appName),ga("set","appVersion",e.appVersion),e.ecommerce&&ga("require","ecommerce")}},{key:"trackView",value:function(e){var t=e.viewName;this.config.debug&&(0,f.logDebug)(t);var n={hitType:"pageview",page:t};this.settings.userId&&ga("set","&uid",this.settings.userId),ga("send",n)}},{key:"trackEvent",value:function(e){var t=e.category,n=void 0===t?"Event":t,r=e.action,o=e.label,i=void 0===o?null:o,a=e.value,c=void 0===a?null:a,u=e.callback,l=void 0===u?null:u;if(this.config.debug&&f.logDebug.apply(void 0,arguments),c){var s=parseInt(c,10);c=isNaN(s)?0:s}var p={hitType:"event",eventCategory:n,eventAction:r,eventLabel:i,eventValue:c,hitCallback:l,userId:this.settings.userId};ga("send",p)}},{key:"trackException",value:function(e){var t=e.description,n=void 0===t?"":t,r=e.isFatal,o=void 0!==r&&r;this.config.debug&&(0,f.logDebug)({description:n,isFatal:o}),ga("send","exception",{exDescription:n,exFatal:o})}},{key:"trackTiming",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.config.debug&&(0,f.logDebug)({timingCategory:e,timingVar:t,timingValue:n,timingLabel:r});var o={hitType:"timing",timingCategory:e,timingVar:t,timingValue:n};r&&(o.timingLabel=r),ga("send",o)}},{key:"setUsername",value:function(e){this.settings.userId=e}},{key:"identify",value:function(e){var t=e.userId;this.setUsername(t)}},{key:"setUserProperties",value:function(e){e.properties}},{key:"addTransaction",value:function(e){var t=e.id,n=e.affiliation,r=void 0===n?"":n,o=e.revenue,i=void 0===o?0:o,a=e.shipping,c=void 0===a?0:a,u=e.tax,l=void 0===u?0:u,s=e.currency,f=void 0===s?"USD":s;ga("ecommerce:addTransaction",{id:t,affiliation:r,revenue:i,shipping:c,tax:l,currency:f})}},{key:"addItem",value:function(e){var t=e.id,n=e.name,r=e.sku,o=e.category,i=e.price,a=void 0===i?0:i,c=e.quantity,u=void 0===c?1:c;ga("ecommerce:addItem",{id:t,name:n,sku:r,category:o,price:a,quantity:u})}},{key:"trackTransaction",value:function(){ga("ecommerce:send")}},{key:"clearTransactions",value:function(){ga("ecommerce:clear")}}]),t}(s.default);t.default=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.MODULE_GA="ga",t.MODULE_MIXPANEL="mixpanel",t.MODULE_SEGMENT="segment",t.MODULE_FACEBOOK="facebook",t.MODULE_MPARTICLE="mparticle"},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.name=t,this.config=r}return r(e,[{key:"trackView",value:function(){}},{key:"trackEvent",value:function(){}},{key:"trackException",value:function(){}},{key:"trackTiming",value:function(){}},{key:"setAlias",value:function(){}},{key:"identify",value:function(){}},{key:"setUsername",value:function(){}},{key:"setUserProperties",value:function(){}},{key:"setUserPropertiesOnce",value:function(){}},{key:"incrementUserProperties",value:function(){}},{key:"setSuperProperties",value:function(){}},{key:"setSuperPropertiesOnce",value:function(){}},{key:"ecommerceTrackEvent",value:function(){}},{key:"addTransaction",value:function(){}},{key:"addItem",value:function(){}},{key:"trackTransaction",value:function(){}},{key:"clearTransactions",value:function(){}},{key:"reset",value:function(){}}]),e}();t.default=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.logDebug=function(e){var t;(t=console).log.apply(t,["VueAnalytics :"].concat(Array.prototype.slice.call(arguments)))},t.cordovaApp={bootstrapWindows:function(){window.ActiveXObject=void 0,ga("set","checkProtocolTask",null)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(4),s=n(5),f=r(s),p=n(6),d=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l.MODULE_MIXPANEL))}return a(t,e),u(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!t.__SV){var n=window;try{var r,o,i,a=n.location,c=a.hash;r=function(e,t){return(o=e.match(RegExp(t+"=([^&]*)")))?o[1]:null},c&&r(c,"state")&&(i=JSON.parse(decodeURIComponent(r(c,"state"))),"mpeditor"===i.action&&(n.sessionStorage.setItem("_mpcehash",c),history.replaceState(i.desiredHash||"",e.title,a.pathname+a.search)))}catch(e){}var u,l;window.mixpanel=t,t._i=[],t.init=function(e,n,r){function o(e,t){var n=t.split(".");2==n.length&&(e=e[n[0]],t=n[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}var i=t;for("undefined"!=typeof r?i=t[r]=[]:r="mixpanel",i.people=i.people||[],i.toString=function(e){var t="mixpanel";return"mixpanel"!==r&&(t+="."+r),e||(t+=" (stub)"),t},i.people.toString=function(){return i.toString(1)+".people (stub)"},u="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" "),l=0;l<u.length;l++)o(i,u[l]);t._i.push([e,n,r])},t.__SV=1.2,n=e.createElement("script"),n.type="text/javascript",n.setAttribute("defer",""),n.src="undefined"!=typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",r=e.getElementsByTagName("script")[0],r.parentNode.insertBefore(n,r)}}(document,window.mixpanel||[]);var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueMultianalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,mixpanel.init(e.token,e.config)}},{key:"trackView",value:function(e){var t=e.viewName;mixpanel.track&&(this.config.debug&&(0,p.logDebug)(t),mixpanel.track("Page Viewed",{page:t}))}},{key:"trackEvent",value:function(e){var t=e.action,n=e.properties,r=void 0===n?{}:n,o=e.callback,i=void 0===o?null:o;if(mixpanel.track){this.config.debug&&p.logDebug.apply(void 0,arguments);var a=c({},r);mixpanel.track(t,a,i)}}},{key:"setAlias",value:function(e){mixpanel.alias&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.alias(e))}},{key:"identify",value:function(e){var t=e.userId;mixpanel.identify&&(this.config.debug&&(0,p.logDebug)(t),t&&mixpanel.identify(t))}},{key:"setUsername",value:function(e){mixpanel.identity&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.identify(e))}},{key:"setUserProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};mixpanel.people&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.people.set(e))}},{key:"setUserPropertiesOnce",value:function(e){mixpanel.people&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.people.set_once(e))}},{key:"incrementUserProperties",value:function(e){mixpanel.people&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.people.increment(e))}},{key:"setSuperProperties",value:function(e){mixpanel.register&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.register(e))}},{key:"setSuperPropertiesOnce",value:function(e){mixpanel.register_once&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.register_once(e))}},{key:"reset",value:function(){mixpanel.reset&&(this.config.debug&&(0,p.logDebug)("reset"),mixpanel.reset())}}]),t}(f.default);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(4),s=n(5),f=r(s),p=n(6),d=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l.MODULE_SEGMENT));return e.superProperties={},e}return a(t,e),u(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(){var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"],e.factory=function(t){return function(){var n=Array.prototype.slice.call(arguments);return n.unshift(t),e.push(n),e}};for(var t=0;t<e.methods.length;t++){var n=e.methods[t];e[n]=e.factory(n)}e.load=function(e){var t=document.createElement("script");t.type="text/javascript",t.setAttribute("defer",""),t.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+e+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)},e.SNIPPET_VERSION="4.0.0"}}();var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueMultianalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,analytics.load(e.token),analytics.debug(Boolean(this.config.debug))}},{key:"trackView",value:function(e){var t=e.viewName,n=e.properties,r=void 0===n?{}:n;if(analytics.page){this.config.debug&&p.logDebug.apply(void 0,arguments);try{c(r,this.superProperties);analytics.page(t,r)}catch(e){if(!(e instanceof ReferenceError))throw e}}}},{key:"trackEvent",value:function(e){var t=(e.category,e.action),n=(e.label,e.value,e.properties),r=void 0===n?{}:n;e.callback;if(analytics.track){this.config.debug&&p.logDebug.apply(void 0,arguments);try{var o=c(r,this.superProperties);analytics.track(t,o)}catch(e){if(!(e instanceof ReferenceError))throw e}}}},{key:"setUserProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config.debug&&(0,p.logDebug)(e);var t={};if(e.hasOwnProperty("userId")){var n=e.userId;delete e.userId,t.userId=n}t.options=e,this.identify(t)}},{key:"setSuperProperties",value:function(e){this.config.debug&&(0,p.logDebug)(e),this.superProperties=e}},{key:"identify",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(analytics.identify){this.config.debug&&(0,p.logDebug)(e);try{e.userId?analytics.identify(e.userId,e.options):analytics.identify(e.options)}catch(e){if(!(e instanceof ReferenceError))throw e}}}},{key:"setUsername",value:function(e){this.config.debug&&(0,p.logDebug)(e),this.identify({userId:e})}},{key:"setAlias",value:function(e){if(analytics.alias){this.config.debug&&(0,p.logDebug)(e);try{analytics.alias(e)}catch(e){if(!(e instanceof ReferenceError))throw e}}}},{key:"reset",value:function(){if(analytics.reset){this.config.debug&&(0,p.logDebug)("reset");try{analytics.reset()}catch(e){if(!(e instanceof ReferenceError))throw e}}}}]),t}(f.default);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(4),s=n(5),f=r(s),p=n(6),d=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l.MODULE_FACEBOOK))}return c(t,e),u(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t,n,r,o,i,a){e.fbq||(o=e.fbq=function(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)},e._fbq||(e._fbq=o),o.push=o,o.loaded=!0,o.version="2.0",o.queue=[],i=t.createElement(n),i.setAttribute("defer",""),i.src=r,a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(i,a))}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js");var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueAnalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,fbq("init",e.token)}},{key:"trackView",value:function(e){o(e),fbq("track","PageView")}},{key:"trackEvent",value:function(e){var t=e.fb_event,n=void 0===t?"ViewContent":t,r=e.category,o=void 0===r?"Event":r,i=(e.action,e.label),a=void 0===i?null:i,c=e.value,u=void 0===c?null:c,l=(e.callback,e.ids),s=void 0===l?[]:l,f=e.type,d=void 0===f?null:f,v=e.currency,h=void 0===v?null:v;if(this.config.debug&&p.logDebug.apply(void 0,arguments),u){var g=parseInt(u,10);u=isNaN(g)?0:g}var y={content_name:a,content_category:o,content_ids:s,content_type:d,value:u,currency:h};fbq("track",n,y)}}]),t}(f.default);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(4),s=n(5),f=r(s),p=n(6),d=8,v=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l.MODULE_MPARTICLE));return e.superProperties={},e.config,e}return a(t,e),u(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config=e;var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueMultianalytics : Please provide a "'+t+'" from the config.')});var n={isDevelopmentMode:e.debug};window.mParticle={config:n},function(e){function t(e,t){return function(){t&&(e=t+"."+e);var n=Array.prototype.slice.call(arguments);n.unshift(e),window.mParticle.config.rq.push(n)}}window.mParticle=window.mParticle||{},window.mParticle.eCommerce={Cart:{}},window.mParticle.Identity={},window.mParticle.config=window.mParticle.config||{},
module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=o(i),c=n(3),u=o(c),l=n(7),s=o(l),f=n(8),p=o(f),d=n(9),v=o(d),h=n(10),g=o(h),y=n(4),m=r(y),b={},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];e.modulesEnabled=[];for(var r in t.modules){var o=void 0;switch(r){case m.MODULE_GA:o=new u.default,o.init(t.modules[r]);break;case m.MODULE_MIXPANEL:o=new s.default,o.init(t.modules[r]);break;case m.MODULE_SEGMENT:o=new p.default,o.init(t.modules[r]);break;case m.MODULE_FACEBOOK:o=new v.default,o.init(t.modules[r]);break;case m.MODULE_MPARTICLE:o=new g.default,o.init(t.modules[r])}o&&e.modulesEnabled.push(o)}Object.keys(b).length>0&&Object.values(b).forEach(function(n,r){var o=new n;o.init(t.modules[Object.keys(b)[r]]),e.modulesEnabled.push(o)}),t.routing&&t.routing.vueRouter&&E(e,t.routing);var i=new a.default(e.modulesEnabled);return t.returnModule?n?n(i):i:(e.prototype.$multianalytics=e.prototype.$ma=e.ma=i,void(n&&(e.prototype.$multianalyticsm=e.prototype.$mam=e.mam=n(i))))},k=function(e,t){b[e]=t},E=function(e,t){return t.ignoredViews&&(t.ignoredViews=t.ignoredViews.map(function(e){return e.toLowerCase()})),t.preferredProperty||(t.preferredProperty="path"),t.vueRouter.afterEach(function(n){t.ignoredViews&&t.ignoredViews.indexOf(n[t.preferredProperty].toLowerCase())!==-1||e.ma.trackView({viewName:n.meta.analytics||n[t.preferredProperty]},t.ignoredModules)}),t.ignoredViews};t.default={install:w,addCustomModule:k}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(2);var i=function(){function e(t){r(this,e),this.modulesEnabled=t}return o(e,[{key:"trackView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.viewName&&this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.trackView(e)})}},{key:"trackEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.trackEvent(e)})}},{key:"ecommerceTrackEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.ecommerceTrackEvent(e)})}},{key:"trackException",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.trackException(e)})}},{key:"trackTiming",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.trackTiming(e)})}},{key:"addTransaction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.addTransaction(e)})}},{key:"addItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.addItem(e)})}},{key:"trackTransaction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.modulesEnabled.forEach(function(t){e.indexOf(t.name)===-1&&t.trackTransaction()})}},{key:"clearTransactions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.modulesEnabled.forEach(function(t){e.indexOf(t.name)===-1&&t.clearTransactions()})}},{key:"setUsername",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.setUsername(e)})}},{key:"setUserProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.modulesEnabled.filter(function(e){return t.indexOf(e.name)===-1});return Promise.all(n.map(function(t){return t.setUserProperties(e)}))}},{key:"setUserPropertiesOnce",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.modulesEnabled.filter(function(e){return t.indexOf(e.name)===-1});return Promise.all(n.map(function(t){return t.setUserPropertiesOnce(e)}))}},{key:"setSuperProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.setSuperProperties(e)})}},{key:"setSuperPropertiesOnce",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.setSuperPropertiesOnce(e)})}},{key:"identify",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.modulesEnabled.filter(function(e){return t.indexOf(e.name)===-1});return Promise.all(n.map(function(t){return t.identify(e)}))}},{key:"setAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.setAlias(e)})}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.modulesEnabled.filter(function(t){return e.indexOf(t.name)===-1});return Promise.all(t.map(function(e){return e.reset()}))}}]),e}();t.default=i},function(e,t){!function(t){"use strict";function n(e,t,n,r){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),c=new d(r||[]);return a._invoke=l(e,n,c),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function i(){}function a(){}function c(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e){function t(n,o,i,a){var c=r(e[n],e,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&m.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(l).then(function(e){u.value=e,i(u)},a)}a(c.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function l(e,t,n){var o=O;return function(i,a){if(o===j)throw new Error("Generator is already running");if(o===L){if("throw"===i)throw a;return h()}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=s(c,n);if(u){if(u===T)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===O)throw o=L,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=j;var l=r(e,t,n);if("normal"===l.type){if(o=n.done?L:x,l.arg===T)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=L,n.method="throw",n.arg=l.arg)}}}function s(e,t){var n=e.iterator[t.method];if(n===g){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=g,s(e,t),"throw"===t.method))return T;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,T;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=g),t.delegate=null,T):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,T)}function f(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function v(e){if(e){var t=e[w];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(m.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=g,t.done=!0,t};return r.next=r}}return{next:h}}function h(){return{value:g,done:!0}}var g,y=Object.prototype,m=y.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},w=b.iterator||"@@iterator",k=b.asyncIterator||"@@asyncIterator",E=b.toStringTag||"@@toStringTag",_="object"==typeof e,P=t.regeneratorRuntime;if(P)return void(_&&(e.exports=P));P=t.regeneratorRuntime=_?e.exports:{},P.wrap=n;var O="suspendedStart",x="suspendedYield",j="executing",L="completed",T={},M={};M[w]=function(){return this};var A=Object.getPrototypeOf,I=A&&A(A(v([])));I&&I!==y&&m.call(I,w)&&(M=I);var D=a.prototype=o.prototype=Object.create(M);i.prototype=D.constructor=a,a.constructor=i,a[E]=i.displayName="GeneratorFunction",P.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},P.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,E in e||(e[E]="GeneratorFunction")),e.prototype=Object.create(D),e},P.awrap=function(e){return{__await:e}},c(u.prototype),u.prototype[k]=function(){return this},P.AsyncIterator=u,P.async=function(e,t,r,o){var i=new u(n(e,t,r,o));return P.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},c(D),D[E]="Generator",D[w]=function(){return this},D.toString=function(){return"[object Generator]"},P.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},P.values=v,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&m.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=g)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return i.type="throw",i.arg=e,n.next=t,r&&(n.method="next",n.arg=g),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=m.call(o,"catchLoc"),c=m.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&m.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,T):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),T},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),T}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=g),T}}}(function(){return this}()||Function("return this")())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),l=n(5),s=r(l),f=n(6),p=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_GA));return e.settings={additionalAccountNames:[],userId:null},e}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t,n,r,o,i,a){e.GoogleAnalyticsObject=o,e[o]=e[o]||function(){(e[o].q=e[o].q||[]).push(arguments)},e[o].l=1*new Date,i=t.createElement(n),a=t.getElementsByTagName(n)[0],i.setAttribute("defer",""),i.src=r,a.parentNode.insertBefore(i,a)}(window,document,"script","https://www.google-analytics.com/analytics.js","ga");var t=["trackingId","appName","appVersion"];t.forEach(function(t){if(!e[t])throw new Error('VueAnalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,ga("create",e.trackingId,"auto"),ga("set","transport","beacon"),ga("set","appName",e.appName),ga("set","appVersion",e.appVersion),e.ecommerce&&ga("require","ecommerce")}},{key:"trackView",value:function(e){var t=e.viewName;this.config.debug&&(0,f.logDebug)(t);var n={hitType:"pageview",page:t};this.settings.userId&&ga("set","&uid",this.settings.userId),ga("send",n)}},{key:"trackEvent",value:function(e){var t=e.category,n=void 0===t?"Event":t,r=e.action,o=e.label,i=void 0===o?null:o,a=e.value,c=void 0===a?null:a,u=e.callback,l=void 0===u?null:u;if(this.config.debug&&f.logDebug.apply(void 0,arguments),c){var s=parseInt(c,10);c=isNaN(s)?0:s}var p={hitType:"event",eventCategory:n,eventAction:r,eventLabel:i,eventValue:c,hitCallback:l,userId:this.settings.userId};ga("send",p)}},{key:"trackException",value:function(e){var t=e.description,n=void 0===t?"":t,r=e.isFatal,o=void 0!==r&&r;this.config.debug&&(0,f.logDebug)({description:n,isFatal:o}),ga("send","exception",{exDescription:n,exFatal:o})}},{key:"trackTiming",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.config.debug&&(0,f.logDebug)({timingCategory:e,timingVar:t,timingValue:n,timingLabel:r});var o={hitType:"timing",timingCategory:e,timingVar:t,timingValue:n};r&&(o.timingLabel=r),ga("send",o)}},{key:"setUsername",value:function(e){this.settings.userId=e}},{key:"identify",value:function(e){var t=e.userId;this.setUsername(t)}},{key:"setUserProperties",value:function(e){e.properties}},{key:"addTransaction",value:function(e){var t=e.id,n=e.affiliation,r=void 0===n?"":n,o=e.revenue,i=void 0===o?0:o,a=e.shipping,c=void 0===a?0:a,u=e.tax,l=void 0===u?0:u,s=e.currency,f=void 0===s?"USD":s;ga("ecommerce:addTransaction",{id:t,affiliation:r,revenue:i,shipping:c,tax:l,currency:f})}},{key:"addItem",value:function(e){var t=e.id,n=e.name,r=e.sku,o=e.category,i=e.price,a=void 0===i?0:i,c=e.quantity,u=void 0===c?1:c;ga("ecommerce:addItem",{id:t,name:n,sku:r,category:o,price:a,quantity:u})}},{key:"trackTransaction",value:function(){ga("ecommerce:send")}},{key:"clearTransactions",value:function(){ga("ecommerce:clear")}}]),t}(s.default);t.default=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.MODULE_GA="ga",t.MODULE_MIXPANEL="mixpanel",t.MODULE_SEGMENT="segment",t.MODULE_FACEBOOK="facebook",t.MODULE_MPARTICLE="mparticle"},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.name=t,this.config=r}return r(e,[{key:"trackView",value:function(){}},{key:"trackEvent",value:function(){}},{key:"trackException",value:function(){}},{key:"trackTiming",value:function(){}},{key:"setAlias",value:function(){}},{key:"identify",value:function(){}},{key:"setUsername",value:function(){}},{key:"setUserProperties",value:function(){}},{key:"setUserPropertiesOnce",value:function(){}},{key:"incrementUserProperties",value:function(){}},{key:"setSuperProperties",value:function(){}},{key:"setSuperPropertiesOnce",value:function(){}},{key:"ecommerceTrackEvent",value:function(){}},{key:"addTransaction",value:function(){}},{key:"addItem",value:function(){}},{key:"trackTransaction",value:function(){}},{key:"clearTransactions",value:function(){}},{key:"reset",value:function(){}}]),e}();t.default=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.logDebug=function(e){var t;(t=console).log.apply(t,["VueAnalytics :"].concat(Array.prototype.slice.call(arguments)))},t.cordovaApp={bootstrapWindows:function(){window.ActiveXObject=void 0,ga("set","checkProtocolTask",null)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(4),s=n(5),f=r(s),p=n(6),d=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l.MODULE_MIXPANEL))}return a(t,e),u(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!t.__SV){var n=window;try{var r,o,i,a=n.location,c=a.hash;r=function(e,t){return(o=e.match(RegExp(t+"=([^&]*)")))?o[1]:null},c&&r(c,"state")&&(i=JSON.parse(decodeURIComponent(r(c,"state"))),"mpeditor"===i.action&&(n.sessionStorage.setItem("_mpcehash",c),history.replaceState(i.desiredHash||"",e.title,a.pathname+a.search)))}catch(e){}var u,l;window.mixpanel=t,t._i=[],t.init=function(e,n,r){function o(e,t){var n=t.split(".");2==n.length&&(e=e[n[0]],t=n[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}var i=t;for("undefined"!=typeof r?i=t[r]=[]:r="mixpanel",i.people=i.people||[],i.toString=function(e){var t="mixpanel";return"mixpanel"!==r&&(t+="."+r),e||(t+=" (stub)"),t},i.people.toString=function(){return i.toString(1)+".people (stub)"},u="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" "),l=0;l<u.length;l++)o(i,u[l]);t._i.push([e,n,r])},t.__SV=1.2,n=e.createElement("script"),n.type="text/javascript",n.setAttribute("defer",""),n.src="undefined"!=typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",r=e.getElementsByTagName("script")[0],r.parentNode.insertBefore(n,r)}}(document,window.mixpanel||[]);var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueMultianalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,mixpanel.init(e.token,e.config)}},{key:"trackView",value:function(e){var t=e.viewName;mixpanel.track&&(this.config.debug&&(0,p.logDebug)(t),mixpanel.track("Page Viewed",{page:t}))}},{key:"trackEvent",value:function(e){var t=e.action,n=e.properties,r=void 0===n?{}:n,o=e.callback,i=void 0===o?null:o;if(mixpanel.track){this.config.debug&&p.logDebug.apply(void 0,arguments);var a=c({},r);mixpanel.track(t,a,i)}}},{key:"setAlias",value:function(e){mixpanel.alias&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.alias(e))}},{key:"identify",value:function(e){var t=e.userId;mixpanel.identify&&(this.config.debug&&(0,p.logDebug)(t),t&&mixpanel.identify(t))}},{key:"setUsername",value:function(e){mixpanel.identity&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.identify(e))}},{key:"setUserProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};mixpanel.people&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.people.set(e))}},{key:"setUserPropertiesOnce",value:function(e){mixpanel.people&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.people.set_once(e))}},{key:"incrementUserProperties",value:function(e){mixpanel.people&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.people.increment(e))}},{key:"setSuperProperties",value:function(e){mixpanel.register&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.register(e))}},{key:"setSuperPropertiesOnce",value:function(e){mixpanel.register_once&&(this.config.debug&&(0,p.logDebug)(e),mixpanel.register_once(e))}},{key:"reset",value:function(){mixpanel.reset&&(this.config.debug&&(0,p.logDebug)("reset"),mixpanel.reset())}}]),t}(f.default);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(4),s=n(5),f=r(s),p=n(6),d=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l.MODULE_SEGMENT));return e.superProperties={},e}return a(t,e),u(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(){var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"],e.factory=function(t){return function(){var n=Array.prototype.slice.call(arguments);return n.unshift(t),e.push(n),e}};for(var t=0;t<e.methods.length;t++){var n=e.methods[t];e[n]=e.factory(n)}e.load=function(e){var t=document.createElement("script");t.type="text/javascript",t.setAttribute("defer",""),t.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+e+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)},e.SNIPPET_VERSION="4.0.0"}}();var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueMultianalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,analytics.load(e.token),analytics.debug(Boolean(this.config.debug))}},{key:"trackView",value:function(e){var t=e.viewName,n=e.properties,r=void 0===n?{}:n;if(analytics.page){this.config.debug&&p.logDebug.apply(void 0,arguments);try{c(r,this.superProperties);analytics.page(t,r)}catch(e){if(!(e instanceof ReferenceError))throw e}}}},{key:"trackEvent",value:function(e){var t=(e.category,e.action),n=(e.label,e.value,e.properties),r=void 0===n?{}:n;e.callback;if(analytics.track){this.config.debug&&p.logDebug.apply(void 0,arguments);try{var o=c(r,this.superProperties);analytics.track(t,o)}catch(e){if(!(e instanceof ReferenceError))throw e}}}},{key:"setUserProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config.debug&&(0,p.logDebug)(e);var t={};if(e.hasOwnProperty("userId")){var n=e.userId;delete e.userId,t.userId=n}t.options=e,this.identify(t)}},{key:"setSuperProperties",value:function(e){this.config.debug&&(0,p.logDebug)(e),this.superProperties=e}},{key:"identify",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(analytics.identify){this.config.debug&&(0,p.logDebug)(e);try{e.userId?analytics.identify(e.userId,e.options):analytics.identify(e.options)}catch(e){if(!(e instanceof ReferenceError))throw e}}}},{key:"setUsername",value:function(e){this.config.debug&&(0,p.logDebug)(e),this.identify({userId:e})}},{key:"setAlias",value:function(e){if(analytics.alias){this.config.debug&&(0,p.logDebug)(e);try{analytics.alias(e)}catch(e){if(!(e instanceof ReferenceError))throw e}}}},{key:"reset",value:function(){if(analytics.reset){this.config.debug&&(0,p.logDebug)("reset");try{analytics.reset()}catch(e){if(!(e instanceof ReferenceError))throw e}}}}]),t}(f.default);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(4),s=n(5),f=r(s),p=n(6),d=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l.MODULE_FACEBOOK))}return c(t,e),u(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t,n,r,o,i,a){e.fbq||(o=e.fbq=function(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)},e._fbq||(e._fbq=o),o.push=o,o.loaded=!0,o.version="2.0",o.queue=[],i=t.createElement(n),i.setAttribute("defer",""),i.src=r,a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(i,a))}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js");var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueAnalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,fbq("init",e.token)}},{key:"trackView",value:function(e){o(e),fbq("track","PageView")}},{key:"trackEvent",value:function(e){var t=e.fb_event,n=void 0===t?"ViewContent":t,r=e.category,o=void 0===r?"Event":r,i=(e.action,e.label),a=void 0===i?null:i,c=e.value,u=void 0===c?null:c,l=(e.callback,e.ids),s=void 0===l?[]:l,f=e.type,d=void 0===f?null:f,v=e.currency,h=void 0===v?null:v;if(this.config.debug&&p.logDebug.apply(void 0,arguments),u){var g=parseInt(u,10);u=isNaN(g)?0:g}var y={content_name:a,content_category:o,content_ids:s,content_type:d,value:u,currency:h};fbq("track",n,y)}}]),t}(f.default);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(4),s=n(5),f=r(s),p=n(6),d=8,v=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l.MODULE_MPARTICLE));return e.superProperties={},e.config,e}return a(t,e),u(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config=e;var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueMultianalytics : Please provide a "'+t+'" from the config.')});var n=c({isDevelopmentMode:e.debug},e.config);console.log(n),window.mParticle={config:n},function(e){function t(e,t){return function(){t&&(e=t+"."+e);var n=Array.prototype.slice.call(arguments);n.unshift(e),window.mParticle.config.rq.push(n)}}window.mParticle=window.mParticle||{},window.mParticle.eCommerce={Cart:{}},window.mParticle.Identity={},window.mParticle.config=window.mParticle.config||{},
window.mParticle.config.rq=[],window.mParticle.ready=function(e){window.mParticle.config.rq.push(e)};var n=["endSession","logError","logEvent","logForm","logLink","logPageView","setSessionAttribute","setAppName","setAppVersion","setOptOut","setPosition","startNewSession","startTrackingLocation","stopTrackingLocation"],r=["setCurrencyCode","logCheckout"],o=["login","logout","modify"];n.forEach(function(e){window.mParticle[e]=t(e)}),r.forEach(function(e){window.mParticle.eCommerce[e]=t(e,"eCommerce")}),o.forEach(function(e){window.mParticle.Identity[e]=t(e,"Identity")});var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=("https:"==document.location.protocol?"https://jssdkcdns":"http://jssdkcdn")+".mparticle.com/js/v2/"+e+"/mparticle.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(i,a)}(e.token)}},{key:"trackView",value:function(e){var t=e.viewName,n=e.properties,r=void 0===n?{}:n,o=e.customFlags,i=void 0===o?{}:o;if(mParticle.logPageView)try{var a=c(r,this.superProperties);mParticle.logPageView(t,a,i)}catch(e){if(!(e instanceof ReferenceError))throw e}}},{key:"trackEvent",value:function(e){var t=(e.category,e.action),n=e.eventType,r=void 0===n?d:n,o=(e.label,e.value,e.properties),i=void 0===o?{}:o;e.callback;if(mParticle.logEvent)try{this.config.debug&&p.logDebug.apply(void 0,arguments);var a=c(i,this.superProperties);mParticle.logEvent(t,r,a)}catch(e){if(!(e instanceof ReferenceError))throw e}}},{key:"ecommerceTrackEvent",value:function(e){var t=e.productActionType,n=void 0===t?mParticle.CommerceEventType.ProductAddToCart:t,r=e.product,o=void 0===r?[]:r,i=e.properties,a=void 0===i?{}:i,u=e.currency,l=void 0===u?void 0:u;if(mParticle.eCommerce&&mParticle.eCommerce.createProduct)try{this.config.debug&&p.logDebug.apply(void 0,arguments);var s={};Array.isArray(o)||(s=mParticle.eCommerce.createProduct(o.name,o.sku||performance.now(),o.price,o.quantity));var f=c(a,this.superProperties);l&&mParticle.eCommerce.setCurrencyCode(l),mParticle.eCommerce.logProductAction(n,s,f)}catch(e){if(!(e instanceof ReferenceError))throw e}}},{key:"identify",value:function(e){return new Promise(function(t,n){var r={userIdentities:e};mParticle.Identity.login(r,function(e){200===e.httpCode?t(e):n(e)})})}},{key:"reset",value:function(){return new Promise(function(e,t){mParticle.Identity.logout({},function(n){200===n.httpCode?e(n):t(n)})})}},{key:"setUserProperties",value:function(e){var t=mParticle.Identity.getCurrentUser();if(!t)return null;for(var n in e)t.setUserAttribute(n,e[n])}},{key:"setSuperProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.isAuthorized&&(e.isAuthorized=e.isAuthorized?"true":"false"),this.superProperties=e}}]),t}(f.default);t.default=v}]);
{
"name": "vue-multianalytics",
"version": "1.11.2",
"version": "1.11.3",
"description": "A vue multianalytics tool",

@@ -5,0 +5,0 @@ "main": "./dist/vue-multianalytics.min.js",

@@ -1,11 +0,11 @@

import AnalyticsPlugin from './AnalyticsPlugin'
import GAModule from './modules/GAModule'
import MixpanelModule from './modules/MixpanelModule'
import SegmentModule from './modules/SegmentModule'
import FacebookModule from './modules/FacebookModule'
import MparticleModule from './modules/MparticleModule'
import * as Utils from './utils'
import * as types from './analyticsTypes'
/* eslint-disable */
import AnalyticsPlugin from "./AnalyticsPlugin";
import GAModule from "./modules/GAModule";
import MixpanelModule from "./modules/MixpanelModule";
import SegmentModule from "./modules/SegmentModule";
import FacebookModule from "./modules/FacebookModule";
import MparticleModule from "./modules/MparticleModule";
import * as types from "./analyticsTypes";
const customModules = {}
const customModules = {};

@@ -19,70 +19,69 @@ /**

const install = function(Vue, initConf = {}, mixin) {
// init Google Analytics
// We create all the modules that app will use
Vue.modulesEnabled = [];
for (let key in initConf.modules) {
let module;
switch (key) {
case types.MODULE_GA:
module = new GAModule();
module.init(initConf.modules[key]);
break;
case types.MODULE_MIXPANEL:
module = new MixpanelModule();
module.init(initConf.modules[key]);
break;
case types.MODULE_SEGMENT:
module = new SegmentModule();
module.init(initConf.modules[key]);
break;
case types.MODULE_FACEBOOK:
module = new FacebookModule();
module.init(initConf.modules[key]);
break;
case types.MODULE_MPARTICLE:
module = new MparticleModule();
module.init(initConf.modules[key]);
default:
break;
}
if (module) {
Vue.modulesEnabled.push(module);
}
}
const install = function (Vue, initConf = {}, mixin) {
// init Google Analytics
// We create all the modules that app will use
Vue.modulesEnabled = []
for (let key in initConf.modules) {
let module
switch (key) {
case types.MODULE_GA:
module = new GAModule()
module.init(initConf.modules[key])
break;
case types.MODULE_MIXPANEL:
module = new MixpanelModule()
module.init(initConf.modules[key])
break;
case types.MODULE_SEGMENT:
module = new SegmentModule()
module.init(initConf.modules[key])
break;
case types.MODULE_FACEBOOK:
module = new FacebookModule()
module.init(initConf.modules[key])
break;
case types.MODULE_MPARTICLE:
module = new MparticleModule()
module.init(initConf.modules[key])
default:
break;
}
if (module) {
Vue.modulesEnabled.push(module)
}
}
if (Object.keys(customModules).length > 0) {
Object.values(customModules).forEach((module, index) => {
let moduleInstance = new module();
moduleInstance.init(initConf.modules[Object.keys(customModules)[index]]);
Vue.modulesEnabled.push(moduleInstance);
});
}
// Handle vue-router if defined
if (initConf.routing && initConf.routing.vueRouter) {
initVueRouterGuard(Vue, initConf.routing);
}
if (Object.keys(customModules).length > 0) {
Object.values(customModules).forEach((module, index) => {
let moduleInstance = new module()
moduleInstance.init(initConf.modules[Object.keys(customModules)[index]])
Vue.modulesEnabled.push(moduleInstance)
})
}
// Handle vue-router if defined
if (initConf.routing && initConf.routing.vueRouter) {
initVueRouterGuard(Vue, initConf.routing)
}
// Add to vue prototype and also from globals
const analyticsPlugin = new AnalyticsPlugin(Vue.modulesEnabled);
// Add to vue prototype and also from globals
const analyticsPlugin = new AnalyticsPlugin(Vue.modulesEnabled)
if (!initConf.returnModule) {
Vue.prototype.$multianalytics = Vue.prototype.$ma = Vue.ma = analyticsPlugin;
if (!initConf.returnModule) {
Vue.prototype.$multianalytics = Vue.prototype.$ma = Vue.ma = analyticsPlugin
// User can add its own implementation of an interface
if (mixin) {
Vue.prototype.$multianalyticsm = Vue.prototype.$mam = Vue.mam = mixin(analyticsPlugin)
}
} else {
return mixin ? mixin(analyticsPlugin) : analyticsPlugin
}
// User can add its own implementation of an interface
if (mixin) {
Vue.prototype.$multianalyticsm = Vue.prototype.$mam = Vue.mam = mixin(
analyticsPlugin
);
}
} else {
return mixin ? mixin(analyticsPlugin) : analyticsPlugin;
}
};
}
const addCustomModule = function(name, module) {
customModules[name] = module;
};
const addCustomModule = function (name, module) {
customModules[name] = module
}
/**

@@ -95,26 +94,33 @@ * Init the router guard.

*/
const initVueRouterGuard = function (Vue, routing) {
// Flatten routes name
if (routing.ignoredViews) {
routing.ignoredViews = routing.ignoredViews.map(view => view.toLowerCase())
}
const initVueRouterGuard = function(Vue, routing) {
// Flatten routes name
if (routing.ignoredViews) {
routing.ignoredViews = routing.ignoredViews.map(view => view.toLowerCase());
}
if (!routing.preferredProperty) {
routing.preferredProperty = 'path'
}
if (!routing.preferredProperty) {
routing.preferredProperty = "path";
}
routing.vueRouter.afterEach(to => {
// Ignore some routes
if (
routing.ignoredViews &&
routing.ignoredViews.indexOf(
to[routing.preferredProperty].toLowerCase()
) !== -1
) {
return;
}
// Dispatch vue event using meta analytics value if defined otherwise fallback to route name
Vue.ma.trackView(
{ viewName: to.meta.analytics || to[routing.preferredProperty] },
routing.ignoredModules
);
});
routing.vueRouter.afterEach(to => {
// Ignore some routes
if (routing.ignoredViews && routing.ignoredViews.indexOf(to[routing.preferredProperty].toLowerCase()) !== -1) {
return
}
// Dispatch vue event using meta analytics value if defined otherwise fallback to route name
Vue.ma.trackView({viewName: to.meta.analytics || to[routing.preferredProperty]}, routing.ignoredModules)
})
return routing.ignoredViews;
};
return routing.ignoredViews;
}
// Export module
export default { install, addCustomModule }
export default { install, addCustomModule };

@@ -1,188 +0,235 @@

import { MODULE_MPARTICLE } from '../analyticsTypes'
import BasicModule from './BasicModule'
import { logDebug } from '../utils'
import { MODULE_MPARTICLE } from "../analyticsTypes";
import BasicModule from "./BasicModule";
import { logDebug } from "../utils";
const OTHER = 8
const OTHER = 8;
export default class MparticleModule extends BasicModule {
constructor() {
super(MODULE_MPARTICLE);
this.superProperties = {};
this.config
}
constructor() {
super(MODULE_MPARTICLE);
this.superProperties = {};
this.config;
}
init(initConf = {}) {
// Apply default configuration
// initConf = { ...pluginConfig, ...initConf }
this.config = initConf
const mandatoryParams = ["token"];
mandatoryParams.forEach(el => {
if (!initConf[el]) throw new Error(`VueMultianalytics : Please provide a "${el}" from the config.`);
});
let config = { isDevelopmentMode: initConf.debug };
window.mParticle = { config };
init(initConf = {}) {
// Apply default configuration
// initConf = { ...pluginConfig, ...initConf }
this.config = initConf;
const mandatoryParams = ["token"];
mandatoryParams.forEach(el => {
if (!initConf[el])
throw new Error(
`VueMultianalytics : Please provide a "${el}" from the config.`
);
});
let config = { isDevelopmentMode: initConf.debug, ...initConf.config };
window.mParticle = { config };
// name of gloval variable changed from analytics to segment
(function(apiKey) {
window.mParticle = window.mParticle || {};
window.mParticle.eCommerce = { Cart: {} };
window.mParticle.Identity = {};
window.mParticle.config = window.mParticle.config || {};
window.mParticle.config.rq = [];
window.mParticle.ready = function(f) {
window.mParticle.config.rq.push(f);
};
// name of gloval variable changed from analytics to segment
(function(apiKey) {
window.mParticle = window.mParticle || {};
window.mParticle.eCommerce = { Cart: {} };
window.mParticle.Identity = {};
window.mParticle.config = window.mParticle.config || {};
window.mParticle.config.rq = [];
window.mParticle.ready = function(f) {
window.mParticle.config.rq.push(f);
};
function a(o, t) {
return function() {
t && (o = t + "." + o);
var e = Array.prototype.slice.call(arguments);
e.unshift(o), window.mParticle.config.rq.push(e);
};
}
var x = ["endSession", "logError", "logEvent", "logForm", "logLink", "logPageView", "setSessionAttribute", "setAppName", "setAppVersion", "setOptOut", "setPosition", "startNewSession", "startTrackingLocation", "stopTrackingLocation"],
y = ["setCurrencyCode", "logCheckout"],
z = ["login", "logout", "modify"];
x.forEach(function(o) {
window.mParticle[o] = a(o);
}), y.forEach(function(o) {
window.mParticle.eCommerce[o] = a(o, "eCommerce");
}), z.forEach(function(o) {
window.mParticle.Identity[o] = a(o, "Identity");
});
function a(o, t) {
return function() {
t && (o = t + "." + o);
var e = Array.prototype.slice.call(arguments);
e.unshift(o), window.mParticle.config.rq.push(e);
};
}
var x = [
"endSession",
"logError",
"logEvent",
"logForm",
"logLink",
"logPageView",
"setSessionAttribute",
"setAppName",
"setAppVersion",
"setOptOut",
"setPosition",
"startNewSession",
"startTrackingLocation",
"stopTrackingLocation"
],
y = ["setCurrencyCode", "logCheckout"],
z = ["login", "logout", "modify"];
x.forEach(function(o) {
window.mParticle[o] = a(o);
}),
y.forEach(function(o) {
window.mParticle.eCommerce[o] = a(o, "eCommerce");
}),
z.forEach(function(o) {
window.mParticle.Identity[o] = a(o, "Identity");
});
var mp = document.createElement("script");
mp.type = "text/javascript";
mp.async = true;
mp.src = ("https:" == document.location.protocol ? "https://jssdkcdns" : "http://jssdkcdn") + ".mparticle.com/js/v2/" + apiKey + "/mparticle.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(mp, s);
})(initConf.token);
}
var mp = document.createElement("script");
mp.type = "text/javascript";
mp.async = true;
mp.src =
("https:" == document.location.protocol
? "https://jssdkcdns"
: "http://jssdkcdn") +
".mparticle.com/js/v2/" +
apiKey +
"/mparticle.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(mp, s);
})(initConf.token);
}
/**
* https://segment.com/docs/sources/website/analytics.js/#page
* Dispatch a page event
*
* params object should contain
* @param {string} viewName
*/
trackView({ viewName, properties = {}, customFlags = {} }) {
if (!mParticle.logPageView) return;
try {
let fullProperties = Object.assign(properties, this.superProperties);
mParticle.logPageView(viewName, fullProperties, customFlags);
} catch (e) {
if (!(e instanceof ReferenceError)) {
throw e;
}
}
}
/**
* Dispatch a tracking analytics event
* https://segment.com/docs/sources/website/analytics.js/#track
*
* params object should contain
* @param {string} category - Typically the object that was interacted with (e.g. 'Video')
* @param {string} action - The type of interaction (e.g. 'play')
* @param {integer} eventType - Type of event for mParticle
* @param {string} label - Useful for categorizing events (e.g. 'Fall Campaign')
* @param {integer} value - A numeric value associated with the event (e.g. 42)
*/
trackEvent({ category = "Event", action, eventType = OTHER, label = null, value = null, properties = {}, callback = null }) {
if (!mParticle.logEvent) return;
try {
if (this.config.debug) {
logDebug(...arguments);
}
let fullProperties = Object.assign(properties, this.superProperties);
mParticle.logEvent(action, eventType, fullProperties);
} catch (e) {
if (!(e instanceof ReferenceError)) {
throw e;
}
}
}
/**
* https://segment.com/docs/sources/website/analytics.js/#page
* Dispatch a page event
*
* params object should contain
* @param {string} viewName
*/
trackView({ viewName, properties = {}, customFlags = {} }) {
if (!mParticle.logPageView) return;
try {
let fullProperties = Object.assign(properties, this.superProperties);
mParticle.logPageView(viewName, fullProperties, customFlags);
} catch (e) {
if (!(e instanceof ReferenceError)) {
throw e;
}
}
}
/**
* Dispatch a tracking analytics event
* https://segment.com/docs/sources/website/analytics.js/#track
*
* params object should contain
* @param {string} category - Typically the object that was interacted with (e.g. 'Video')
* @param {string} action - The type of interaction (e.g. 'play')
* @param {integer} eventType - Type of event for mParticle
* @param {string} label - Useful for categorizing events (e.g. 'Fall Campaign')
* @param {integer} value - A numeric value associated with the event (e.g. 42)
*/
trackEvent({
category = "Event",
action,
eventType = OTHER,
label = null,
value = null,
properties = {},
callback = null
}) {
if (!mParticle.logEvent) return;
try {
if (this.config.debug) {
logDebug(...arguments);
}
let fullProperties = Object.assign(properties, this.superProperties);
mParticle.logEvent(action, eventType, fullProperties);
} catch (e) {
if (!(e instanceof ReferenceError)) {
throw e;
}
}
}
/**
* Dispatch a tracking analytics event
* https://segment.com/docs/sources/website/analytics.js/#track
*
* params object should contain
* @param {integer} productActionType - Type of action to ecommerce platform (e.g. 1)
* @param {object} product - Product to be tracked
* @param {object} attributes - object of attributes related to the event
*/
ecommerceTrackEvent({ productActionType = mParticle.CommerceEventType.ProductAddToCart, product = [], properties = {}, currency = undefined }) {
if (!mParticle.eCommerce || !mParticle.eCommerce.createProduct) return;
try {
if (this.config.debug) {
logDebug(...arguments);
}
let mProduct = {};
if (!Array.isArray(product)) {
mProduct = mParticle.eCommerce.createProduct(product.name, product.sku || performance.now(), product.price, product.quantity);
}
/**
* Dispatch a tracking analytics event
* https://segment.com/docs/sources/website/analytics.js/#track
*
* params object should contain
* @param {integer} productActionType - Type of action to ecommerce platform (e.g. 1)
* @param {object} product - Product to be tracked
* @param {object} attributes - object of attributes related to the event
*/
ecommerceTrackEvent({
productActionType = mParticle.CommerceEventType.ProductAddToCart,
product = [],
properties = {},
currency = undefined
}) {
if (!mParticle.eCommerce || !mParticle.eCommerce.createProduct) return;
try {
if (this.config.debug) {
logDebug(...arguments);
}
let mProduct = {};
if (!Array.isArray(product)) {
mProduct = mParticle.eCommerce.createProduct(
product.name,
product.sku || performance.now(),
product.price,
product.quantity
);
}
let fullProperties = Object.assign(properties, this.superProperties);
if (currency) {
mParticle.eCommerce.setCurrencyCode(currency);
}
mParticle.eCommerce.logProductAction(productActionType, mProduct, fullProperties);
} catch (e) {
if (!(e instanceof ReferenceError)) {
throw e;
}
}
}
let fullProperties = Object.assign(properties, this.superProperties);
if (currency) {
mParticle.eCommerce.setCurrencyCode(currency);
}
mParticle.eCommerce.logProductAction(
productActionType,
mProduct,
fullProperties
);
} catch (e) {
if (!(e instanceof ReferenceError)) {
throw e;
}
}
}
/**
* associate your users and their actions to a recognizable userId
* https://segment.com/docs/sources/website/analytics.js/#identify
*
* @param {any} properties - traits of your user. If you specify a properties.userId, then a userId will be set
*/
/**
* associate your users and their actions to a recognizable userId
* https://segment.com/docs/sources/website/analytics.js/#identify
*
* @param {any} properties - traits of your user. If you specify a properties.userId, then a userId will be set
*/
identify (userParams) {
return new Promise ((resolve, reject) => {
let identityRequest = { userIdentities: userParams }
mParticle.Identity.login(identityRequest, (result) => {
if (result.httpCode === 200) resolve(result)
else reject(result)
})
})
}
identify(userParams) {
return new Promise((resolve, reject) => {
let identityRequest = { userIdentities: userParams };
mParticle.Identity.login(identityRequest, result => {
if (result.httpCode === 200) resolve(result);
else reject(result);
});
});
}
reset () {
return new Promise ((resolve, reject) => {
mParticle.Identity.logout({}, function (result) {
if (result.httpCode === 200) {
resolve(result)
}
else reject(result)
})
})
}
reset() {
return new Promise((resolve, reject) => {
mParticle.Identity.logout({}, function(result) {
if (result.httpCode === 200) {
resolve(result);
} else reject(result);
});
});
}
setUserProperties (userParams) {
let currentUser = mParticle.Identity.getCurrentUser();
if (!currentUser) {
return null
}
for (let key in userParams) {
currentUser.setUserAttribute(key, userParams[key]);
}
}
setUserProperties(userParams) {
let currentUser = mParticle.Identity.getCurrentUser();
if (!currentUser) {
return null;
}
for (let key in userParams) {
currentUser.setUserAttribute(key, userParams[key]);
}
}
/**
* Define a property that will be sent across all the events
*
* @param {any} properties
*/
setSuperProperties(properties = {}) {
if (properties.isAuthorized !== undefined) {
properties.isAuthorized = properties.isAuthorized ? "true" : "false";
}
this.superProperties = properties;
}
}
/**
* Define a property that will be sent across all the events
*
* @param {any} properties
*/
setSuperProperties(properties = {}) {
if (properties.isAuthorized !== undefined) {
properties.isAuthorized = properties.isAuthorized ? "true" : "false";
}
this.superProperties = properties;
}
}

Sorry, the diff of this file is too big to display