From 0efb1226ce56861673d40fe138747946d4aa1a7d Mon Sep 17 00:00:00 2001 From: Madhu Palani Date: Tue, 9 Apr 2019 15:31:00 -0700 Subject: [PATCH] v2.28.0 --- build/mixpanel.amd.js | 10 +- build/mixpanel.cjs.js | 10 +- build/mixpanel.globals.js | 10 +- build/mixpanel.umd.js | 10 +- examples/commonjs-browserify/bundle.js | 10 +- examples/es2015-babelify/bundle.js | 10 +- examples/umd-webpack/bundle.js | 10 +- mixpanel.min.js | 206 ++++++++++++------------- package.json | 2 +- src/config.js | 2 +- src/mixpanel-core.js | 8 +- 11 files changed, 144 insertions(+), 144 deletions(-) diff --git a/build/mixpanel.amd.js b/build/mixpanel.amd.js index 37618b8f..6abd6064 100644 --- a/build/mixpanel.amd.js +++ b/build/mixpanel.amd.js @@ -2,7 +2,7 @@ define(function () { 'use strict'; var Config = { DEBUG: false, - LIB_VERSION: '2.27.1' + LIB_VERSION: '2.28.0' }; // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file @@ -4005,7 +4005,7 @@ define(function () { 'use strict'; MixpanelLib.prototype._init = function(token, config, name) { this['__loaded'] = true; this['config'] = {}; - this._triggered_notifs = []; + this['_triggered_notifs'] = []; this.set_config(_.extend({}, DEFAULT_CONFIG, config, { 'name': name, @@ -4984,7 +4984,7 @@ define(function () { 'use strict'; }; MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) { - var arr = this._triggered_notifs; + var arr = this['_triggered_notifs']; for (var i = 0; i < arr.length; i++) { var notif = new MPNotif(arr[i], this); if (notif._matches_event_data(event_data)) { @@ -5017,10 +5017,10 @@ define(function () { 'use strict'; data, this._prepare_callback(_.bind(function(result) { if (result['notifications'] && result['notifications'].length > 0) { - this._triggered_notifs = []; + this['_triggered_notifs'] = []; var notifications = []; _.each(result['notifications'], function(notif) { - (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif); + (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif); }, this); if (notifications.length > 0) { this._show_notification.call(this, notifications[0]); diff --git a/build/mixpanel.cjs.js b/build/mixpanel.cjs.js index 05de0199..b49a43b5 100644 --- a/build/mixpanel.cjs.js +++ b/build/mixpanel.cjs.js @@ -2,7 +2,7 @@ var Config = { DEBUG: false, - LIB_VERSION: '2.27.1' + LIB_VERSION: '2.28.0' }; // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file @@ -4005,7 +4005,7 @@ MixpanelLib.prototype.init = function (token, config, name) { MixpanelLib.prototype._init = function(token, config, name) { this['__loaded'] = true; this['config'] = {}; - this._triggered_notifs = []; + this['_triggered_notifs'] = []; this.set_config(_.extend({}, DEFAULT_CONFIG, config, { 'name': name, @@ -4984,7 +4984,7 @@ MixpanelLib.prototype._event_is_disabled = function(event_name) { }; MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) { - var arr = this._triggered_notifs; + var arr = this['_triggered_notifs']; for (var i = 0; i < arr.length; i++) { var notif = new MPNotif(arr[i], this); if (notif._matches_event_data(event_data)) { @@ -5017,10 +5017,10 @@ MixpanelLib.prototype._check_and_handle_notifications = addOptOutCheckMixpanelLi data, this._prepare_callback(_.bind(function(result) { if (result['notifications'] && result['notifications'].length > 0) { - this._triggered_notifs = []; + this['_triggered_notifs'] = []; var notifications = []; _.each(result['notifications'], function(notif) { - (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif); + (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif); }, this); if (notifications.length > 0) { this._show_notification.call(this, notifications[0]); diff --git a/build/mixpanel.globals.js b/build/mixpanel.globals.js index e5438854..2c95ca9a 100644 --- a/build/mixpanel.globals.js +++ b/build/mixpanel.globals.js @@ -3,7 +3,7 @@ var Config = { DEBUG: false, - LIB_VERSION: '2.27.1' + LIB_VERSION: '2.28.0' }; // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file @@ -4006,7 +4006,7 @@ MixpanelLib.prototype._init = function(token, config, name) { this['__loaded'] = true; this['config'] = {}; - this._triggered_notifs = []; + this['_triggered_notifs'] = []; this.set_config(_.extend({}, DEFAULT_CONFIG, config, { 'name': name, @@ -4985,7 +4985,7 @@ }; MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) { - var arr = this._triggered_notifs; + var arr = this['_triggered_notifs']; for (var i = 0; i < arr.length; i++) { var notif = new MPNotif(arr[i], this); if (notif._matches_event_data(event_data)) { @@ -5018,10 +5018,10 @@ data, this._prepare_callback(_.bind(function(result) { if (result['notifications'] && result['notifications'].length > 0) { - this._triggered_notifs = []; + this['_triggered_notifs'] = []; var notifications = []; _.each(result['notifications'], function(notif) { - (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif); + (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif); }, this); if (notifications.length > 0) { this._show_notification.call(this, notifications[0]); diff --git a/build/mixpanel.umd.js b/build/mixpanel.umd.js index 023ee509..10a01ee7 100644 --- a/build/mixpanel.umd.js +++ b/build/mixpanel.umd.js @@ -6,7 +6,7 @@ var Config = { DEBUG: false, - LIB_VERSION: '2.27.1' + LIB_VERSION: '2.28.0' }; // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file @@ -4009,7 +4009,7 @@ MixpanelLib.prototype._init = function(token, config, name) { this['__loaded'] = true; this['config'] = {}; - this._triggered_notifs = []; + this['_triggered_notifs'] = []; this.set_config(_.extend({}, DEFAULT_CONFIG, config, { 'name': name, @@ -4988,7 +4988,7 @@ }; MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) { - var arr = this._triggered_notifs; + var arr = this['_triggered_notifs']; for (var i = 0; i < arr.length; i++) { var notif = new MPNotif(arr[i], this); if (notif._matches_event_data(event_data)) { @@ -5021,10 +5021,10 @@ data, this._prepare_callback(_.bind(function(result) { if (result['notifications'] && result['notifications'].length > 0) { - this._triggered_notifs = []; + this['_triggered_notifs'] = []; var notifications = []; _.each(result['notifications'], function(notif) { - (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif); + (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif); }, this); if (notifications.length > 0) { this._show_notification.call(this, notifications[0]); diff --git a/examples/commonjs-browserify/bundle.js b/examples/commonjs-browserify/bundle.js index c190d8d5..ffa89ed4 100644 --- a/examples/commonjs-browserify/bundle.js +++ b/examples/commonjs-browserify/bundle.js @@ -3,7 +3,7 @@ var Config = { DEBUG: false, - LIB_VERSION: '2.27.1' + LIB_VERSION: '2.28.0' }; // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file @@ -4006,7 +4006,7 @@ MixpanelLib.prototype.init = function (token, config, name) { MixpanelLib.prototype._init = function(token, config, name) { this['__loaded'] = true; this['config'] = {}; - this._triggered_notifs = []; + this['_triggered_notifs'] = []; this.set_config(_.extend({}, DEFAULT_CONFIG, config, { 'name': name, @@ -4985,7 +4985,7 @@ MixpanelLib.prototype._event_is_disabled = function(event_name) { }; MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) { - var arr = this._triggered_notifs; + var arr = this['_triggered_notifs']; for (var i = 0; i < arr.length; i++) { var notif = new MPNotif(arr[i], this); if (notif._matches_event_data(event_data)) { @@ -5018,10 +5018,10 @@ MixpanelLib.prototype._check_and_handle_notifications = addOptOutCheckMixpanelLi data, this._prepare_callback(_.bind(function(result) { if (result['notifications'] && result['notifications'].length > 0) { - this._triggered_notifs = []; + this['_triggered_notifs'] = []; var notifications = []; _.each(result['notifications'], function(notif) { - (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif); + (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif); }, this); if (notifications.length > 0) { this._show_notification.call(this, notifications[0]); diff --git a/examples/es2015-babelify/bundle.js b/examples/es2015-babelify/bundle.js index bc1f6811..b24f4934 100644 --- a/examples/es2015-babelify/bundle.js +++ b/examples/es2015-babelify/bundle.js @@ -732,7 +732,7 @@ Object.defineProperty(exports, '__esModule', { }); var Config = { DEBUG: false, - LIB_VERSION: '2.27.1' + LIB_VERSION: '2.28.0' }; exports['default'] = Config; @@ -1867,7 +1867,7 @@ MixpanelLib.prototype.init = function (token, config, name) { MixpanelLib.prototype._init = function (token, config, name) { this['__loaded'] = true; this['config'] = {}; - this._triggered_notifs = []; + this['_triggered_notifs'] = []; this.set_config(_utils._.extend({}, DEFAULT_CONFIG, config, { 'name': name, @@ -2849,7 +2849,7 @@ MixpanelLib.prototype._event_is_disabled = function (event_name) { }; MixpanelLib.prototype._check_and_handle_triggered_notifications = (0, _gdprUtils.addOptOutCheckMixpanelLib)(function (event_data) { - var arr = this._triggered_notifs; + var arr = this['_triggered_notifs']; for (var i = 0; i < arr.length; i++) { var notif = new MPNotif(arr[i], this); if (notif._matches_event_data(event_data)) { @@ -2875,10 +2875,10 @@ MixpanelLib.prototype._check_and_handle_notifications = (0, _gdprUtils.addOptOut }; this._send_request(this.get_config('api_host') + '/decide/', data, this._prepare_callback(_utils._.bind(function (result) { if (result['notifications'] && result['notifications'].length > 0) { - this._triggered_notifs = []; + this['_triggered_notifs'] = []; var notifications = []; _utils._.each(result['notifications'], function (notif) { - (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif); + (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif); }, this); if (notifications.length > 0) { this._show_notification.call(this, notifications[0]); diff --git a/examples/umd-webpack/bundle.js b/examples/umd-webpack/bundle.js index a8867236..075bee79 100644 --- a/examples/umd-webpack/bundle.js +++ b/examples/umd-webpack/bundle.js @@ -69,7 +69,7 @@ var Config = { DEBUG: false, - LIB_VERSION: '2.27.1' + LIB_VERSION: '2.28.0' }; // since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file @@ -4072,7 +4072,7 @@ MixpanelLib.prototype._init = function(token, config, name) { this['__loaded'] = true; this['config'] = {}; - this._triggered_notifs = []; + this['_triggered_notifs'] = []; this.set_config(_.extend({}, DEFAULT_CONFIG, config, { 'name': name, @@ -5051,7 +5051,7 @@ }; MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) { - var arr = this._triggered_notifs; + var arr = this['_triggered_notifs']; for (var i = 0; i < arr.length; i++) { var notif = new MPNotif(arr[i], this); if (notif._matches_event_data(event_data)) { @@ -5084,10 +5084,10 @@ data, this._prepare_callback(_.bind(function(result) { if (result['notifications'] && result['notifications'].length > 0) { - this._triggered_notifs = []; + this['_triggered_notifs'] = []; var notifications = []; _.each(result['notifications'], function(notif) { - (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif); + (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif); }, this); if (notifications.length > 0) { this._show_notification.call(this, notifications[0]); diff --git a/mixpanel.min.js b/mixpanel.min.js index 02e08af1..21557710 100644 --- a/mixpanel.min.js +++ b/mixpanel.min.js @@ -1,9 +1,9 @@ (function() { function k(ca){throw ca;}var l=void 0,p=!0,w=null,D=!1;function J(){return function(){}} -(function(){function ca(){function a(){if(!a.yd)ja=a.yd=p,ka=D,c.a(F,function(a){a.Qc()})}function b(){try{o.documentElement.doScroll("left")}catch(d){setTimeout(b,1);return}a()}if(o.addEventListener)"complete"===o.readyState?a():o.addEventListener("DOMContentLoaded",a,D);else if(o.attachEvent){o.attachEvent("onreadystatechange",a);var d=D;try{d=t.frameElement===w}catch(e){}o.documentElement.doScroll&&d&&b()}c.J(t,"load",a,p)}function ra(){y.init=function(a,b,d){if(d)return y[d]||(y[d]=F[d]=T(a,b, -d),y[d].Ca()),y[d];d=y;if(F.mixpanel)d=F.mixpanel;else if(a)d=T(a,b,"mixpanel"),d.Ca(),F.mixpanel=d;y=d;1===da&&(t.mixpanel=y);sa()}}function sa(){c.a(F,function(a,b){"mixpanel"!==b&&(y[b]=a)});y._=c}function T(a,b,d){var e,g="mixpanel"===d?y:y[d];if(g&&0===da)e=g;else{if(g&&!c.isArray(g)){s.error("You have already initialized "+d);return}e=new f}e.ia(a,b,d);e.people=new n;e.people.ia(e);e.Ab={};G=G||e.c("debug");e.__autotrack_enabled=e.c("autotrack");if(e.c("autotrack"))P.zd(e.c("token"),100,100)? -P.Fd()?P.aa(e):(e.__autotrack_enabled=D,s.log("Disabling Automatic Event Collection because this browser is not supported")):(e.__autotrack_enabled=D,s.log("Not in active bucket: disabling Automatic Event Collection."));!c.e(g)&&c.isArray(g)&&(e.Wa.call(e.people,g.people),e.Wa(g));return e}function n(){}function f(){}function q(a){this.props={};this.Rb=D;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)s.Z("Unknown persistence type "+ -b+"; falling back to cookie"),b=a.persistence="cookie";this.w="localStorage"===b&&c.localStorage.sb()?c.localStorage:c.cookie;this.load();this.Cc(a);this.ge(a);this.save()}function U(){this.mc="submit"}function K(){this.mc="click"}function E(){}function u(){}function ea(a){if(a===w)return w;switch(typeof a){case "object":if(c.O(a)&&0<=a.getTime())return a.getTime();break;case "boolean":return Number(a);case "number":return a;case "string":return a=Number(a),!isNaN(a)?a:0}return w}function Q(a){if(a=== +(function(){function ca(){function a(){if(!a.xd)ja=a.xd=p,ka=D,c.a(F,function(a){a.Pc()})}function b(){try{o.documentElement.doScroll("left")}catch(d){setTimeout(b,1);return}a()}if(o.addEventListener)"complete"===o.readyState?a():o.addEventListener("DOMContentLoaded",a,D);else if(o.attachEvent){o.attachEvent("onreadystatechange",a);var d=D;try{d=t.frameElement===w}catch(e){}o.documentElement.doScroll&&d&&b()}c.J(t,"load",a,p)}function ra(){y.init=function(a,b,d){if(d)return y[d]||(y[d]=F[d]=T(a,b, +d),y[d].Ca()),y[d];d=y;if(F.mixpanel)d=F.mixpanel;else if(a)d=T(a,b,"mixpanel"),d.Ca(),F.mixpanel=d;y=d;1===da&&(t.mixpanel=y);sa()}}function sa(){c.a(F,function(a,b){"mixpanel"!==b&&(y[b]=a)});y._=c}function T(a,b,d){var e,g="mixpanel"===d?y:y[d];if(g&&0===da)e=g;else{if(g&&!c.isArray(g)){s.error("You have already initialized "+d);return}e=new f}e.ia(a,b,d);e.people=new n;e.people.ia(e);e.zb={};G=G||e.c("debug");e.__autotrack_enabled=e.c("autotrack");if(e.c("autotrack"))P.yd(e.c("token"),100,100)? +P.Ed()?P.aa(e):(e.__autotrack_enabled=D,s.log("Disabling Automatic Event Collection because this browser is not supported")):(e.__autotrack_enabled=D,s.log("Not in active bucket: disabling Automatic Event Collection."));!c.e(g)&&c.isArray(g)&&(e.Wa.call(e.people,g.people),e.Wa(g));return e}function n(){}function f(){}function q(a){this.props={};this.Qb=D;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)s.Z("Unknown persistence type "+ +b+"; falling back to cookie"),b=a.persistence="cookie";this.w="localStorage"===b&&c.localStorage.rb()?c.localStorage:c.cookie;this.load();this.Bc(a);this.fe(a);this.save()}function U(){this.lc="submit"}function K(){this.lc="click"}function E(){}function u(){}function ea(a){if(a===w)return w;switch(typeof a){case "object":if(c.O(a)&&0<=a.getTime())return a.getTime();break;case "boolean":return Number(a);case "number":return a;case "string":return a=Number(a),!isNaN(a)?a:0}return w}function Q(a){if(a=== w)return D;switch(typeof a){case "boolean":return a;case "number":return 0!==a;case "string":return 0a.children.length)&&k("Invalid arithmetic operator "+a);var d=x(a.children[0],b),c=x(a.children[1],b);if("number"===typeof d&&"number"===typeof c)switch(a.operator){case "-":return d-c;case "*":return d*c;case "/":if(0!==c)return d/c;break;case "%":if(0===c)break;return 0===d?0:0>d&&0c?-(Math.floor(d/c)*c-d):d%c;default:k("Unknown operator: "+a.operator)}return w}function va(a,b){if(a===b)return p; if(a===w||b===w||a.length!==b.length)return D;for(var d=0;d",">=","<","<="].indexOf(a.operator)|| @@ -14,130 +14,130 @@ x(a.children[0],b),e=x(a.children[1],b);!c.isArray(e)&&!c.oa(e)&&k("Invalid oper !a.children||1!==a.children.length)&&k("Invalid cast operator: list "+a),d=x(a.children[0],b),d===w?w:c.isArray(d)?d:w;case "number":return(!a.operator||"number"!==a.operator||!a.children||1!==a.children.length)&&k("Invalid cast operator: number "+a),ea(x(a.children[0],b));case "string":a:{(!a.operator||"string"!==a.operator||!a.children||1!==a.children.length)&&k("Invalid cast operator: string "+a);d=x(a.children[0],b);switch(typeof d){case "object":d=c.O(d)?d.toJSON():JSON.stringify(d);break a}d= ""+d}return d;case "defined":case "not defined":return(!a.operator||-1===["defined","not defined"].indexOf(a.operator)||!a.children||1!==a.children.length)&&k("Invalid defined/not defined operator: "+a),d=x(a.children[0],b)!==w,"not defined"===a.operator?!d:d;case "not":return(!a.operator||"not"!==a.operator||!a.children||1!==a.children.length)&&k("Invalid not operator: "+a),d=x(a.children[0],b),d===w?p:"boolean"===typeof d?!d:w}}function x(a,b){if(a.property){var d;a:switch((!a.property||!a.value)&& k("Invalid operand: missing required keys "+a),a.property){case "event":d=b[a.value]!==l?b[a.value]:w;break a;case "literal":if("now"===a.value)d=new Date;else if("object"===typeof a.value){var c=a.value;d=c.window;(!d||!d.unit||!d.value)&&k("Invalid window: missing required keys "+JSON.stringify(c));c=new Date;switch(d.unit){case "hour":c.setTime(c.getTime()+-36E5*d.value);break;case "day":c.setTime(c.getTime()+-864E5*d.value);break;case "week":c.setTime(c.getTime()+-6048E5*d.value);break;case "month":c.setTime(c.getTime()+ --2592E6*d.value);break;default:k("Invalid unit: "+d.unit)}d=c}else d=a.value;break a;default:k("Invalid operand: Invalid property type "+a.property)}return d}if(a.operator)return ya(a,b)}function V(a){switch(typeof a.className){case "string":return a.className;case "object":return a.className.oe||a.getAttribute("class")||"";default:return""}}function za(a){var b="";W(a)&&a.childNodes&&a.childNodes.length&&c.a(a.childNodes,function(a){a&&3===a.nodeType&&a.textContent&&(b+=c.trim(a.textContent).split(/(\s+)/).filter(X).join("").replace(/[\r\n]/g, +-2592E6*d.value);break;default:k("Invalid unit: "+d.unit)}d=c}else d=a.value;break a;default:k("Invalid operand: Invalid property type "+a.property)}return d}if(a.operator)return ya(a,b)}function V(a){switch(typeof a.className){case "string":return a.className;case "object":return a.className.ne||a.getAttribute("class")||"";default:return""}}function za(a){var b="";W(a)&&a.childNodes&&a.childNodes.length&&c.a(a.childNodes,function(a){a&&3===a.nodeType&&a.textContent&&(b+=c.trim(a.textContent).split(/(\s+)/).filter(X).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g," ").substring(0,255))});return c.trim(b)}function L(a,b){return a&&a.tagName&&a.tagName.toLowerCase()===b.toLowerCase()}function Aa(a,b){if(!a||L(a,"html")||!(a&&1===a.nodeType))return D;switch(a.tagName.toLowerCase()){case "html":return D;case "form":return"submit"===b.type;case "input":return-1===["button","submit"].indexOf(a.getAttribute("type"))?"change"===b.type:"click"===b.type;case "select":case "textarea":return"change"===b.type;default:return"click"===b.type}}function W(a){for(var b= a;b.parentNode&&!L(b,"body");b=b.parentNode){var d=V(b).split(" ");if(c.h(d,"mp-sensitive")||c.h(d,"mp-no-track"))return D}if(c.h(V(a).split(" "),"mp-include"))return p;if(L(a,"input")||L(a,"select")||L(a,"textarea")||"true"===a.getAttribute("contenteditable"))return D;b=a.type||"";if("string"===typeof b)switch(b.toLowerCase()){case "hidden":return D;case "password":return D}a=a.name||a.id||"";return"string"===typeof a&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(a.replace(/[^a-zA-Z0-9]/g, ""))?D:p}function X(a){if(a===w||c.e(a)||"string"===typeof a&&(a=c.trim(a),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((a||"").replace(/[\- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(a)))return D;return p}function Ba(a,b){la(p,a,b)}function Ca(a,b){la(D,a,b)}function Da(a,b){return"1"===Y(b).get(Z(a,b))}function ma(a,b){return Ea(b)?p:"0"===Y(b).get(Z(a,b))}function I(a){return fa(a, -function(a){return this.c(a)})}function H(a){return fa(a,function(a){return this.M(a)})}function M(a){return fa(a,function(a){return this.M(a)})}function Fa(a,b){b=b||{};Y(b).remove(Z(a,b),!!b.Wb)}function Y(a){a=a||{};return"localStorage"===a.oc?c.localStorage:c.cookie}function Z(a,b){b=b||{};return(b.nc||Ga)+a}function Ea(a){var a=a&&a.window||t,b=a.navigator||{},d=D;c.a([b.doNotTrack,b.msDoNotTrack,a.doNotTrack],function(a){c.h([p,1,"1","yes"],a)&&(d=p)});return d}function la(a,b,d){!c.oa(b)|| -!b.length?console.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token"):(d=d||{},Y(d).set(Z(b,d),a?1:0,c.gc(d.Vb)?d.Vb:w,!!d.Wb,!!d.Rd),d.p&&a&&d.p(d.$d||"$opt_in",d.ae))}function fa(a,b){return function(){var d=D;try{var c=b.call(this,"token"),g=b.call(this,"opt_out_tracking_persistence_type"),j=b.call(this,"opt_out_tracking_cookie_prefix"),m=b.call(this,"window");c&&(d=ma(c,{oc:g,nc:j,window:m}))}catch(i){console.error("Unexpected error when checking tracking opt-out status: "+i)}if(!d)return a.apply(this, +function(a){return this.c(a)})}function H(a){return fa(a,function(a){return this.M(a)})}function M(a){return fa(a,function(a){return this.M(a)})}function Fa(a,b){b=b||{};Y(b).remove(Z(a,b),!!b.Vb)}function Y(a){a=a||{};return"localStorage"===a.nc?c.localStorage:c.cookie}function Z(a,b){b=b||{};return(b.mc||Ga)+a}function Ea(a){var a=a&&a.window||t,b=a.navigator||{},d=D;c.a([b.doNotTrack,b.msDoNotTrack,a.doNotTrack],function(a){c.h([p,1,"1","yes"],a)&&(d=p)});return d}function la(a,b,d){!c.oa(b)|| +!b.length?console.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token"):(d=d||{},Y(d).set(Z(b,d),a?1:0,c.fc(d.Ub)?d.Ub:w,!!d.Vb,!!d.Qd),d.p&&a&&d.p(d.Zd||"$opt_in",d.$d))}function fa(a,b){return function(){var d=D;try{var c=b.call(this,"token"),g=b.call(this,"opt_out_tracking_persistence_type"),j=b.call(this,"opt_out_tracking_cookie_prefix"),m=b.call(this,"window");c&&(d=ma(c,{nc:g,mc:j,window:m}))}catch(i){console.error("Unexpected error when checking tracking opt-out status: "+i)}if(!d)return a.apply(this, arguments);d=arguments[arguments.length-1];"function"===typeof d&&d(0)}}var G=D,t;if("undefined"===typeof window){var B={hostname:""};t={navigator:{userAgent:""},document:{location:B,referrer:""},screen:{width:0,height:0},location:B}}else t=window;var B=Array.prototype,na=Object.prototype,N=B.slice,R=na.toString,$=na.hasOwnProperty,A=t.console,O=t.navigator,o=t.document,S=t.opera,aa=t.screen,z=O.userAgent,ga=Function.prototype.bind,oa=B.forEach,pa=B.indexOf,B=Array.isArray,ha={},qa=/[a-z0-9][a-z0-9\-]+\.[a-z\.]{2,6}$/i, c={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},s={log:function(){if(G&&!c.e(A)&&A)try{A.log.apply(A,arguments)}catch(a){c.a(arguments,function(a){A.log(a)})}},error:function(){if(G&&!c.e(A)&&A){var a=["Mixpanel error:"].concat(c.sa(arguments));try{A.error.apply(A,a)}catch(b){c.a(a,function(a){A.error(a)})}}},Z:function(){if(!c.e(A)&&A){var a=["Mixpanel error:"].concat(c.sa(arguments));try{A.error.apply(A,a)}catch(b){c.a(a,function(a){A.error(a)})}}}};c.bind=function(a, -b){var d,e;if(ga&&a.bind===ga)return ga.apply(a,N.call(arguments,1));c.rb(a)||k(new TypeError);d=N.call(arguments,2);return e=function(){if(!(this instanceof e))return a.apply(b,d.concat(N.call(arguments)));var c={};c.prototype=a.prototype;var j=new c;c.prototype=w;c=a.apply(j,d.concat(N.call(arguments)));return Object(c)===c?c:j}};c.Pb=function(a){for(var b in a)"function"===typeof a[b]&&(a[b]=c.bind(a[b],a))};c.a=function(a,b,d){if(!(a===w||a===l))if(oa&&a.forEach===oa)a.forEach(b,d);else if(a.length=== -+a.length)for(var c=0,g=a.length;c/g,">").replace(/"/g,""").replace(/'/g,"'"));return a};c.extend=function(a){c.a(N.call(arguments,1),function(b){for(var d in b)b[d]!==l&&(a[d]=b[d])});return a};c.isArray=B||function(a){return"[object Array]"===R.call(a)};c.rb=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return D}}; -c.Ed=function(a){return!(!a||!$.call(a,"callee"))};c.sa=function(a){return!a?[]:a.sa?a.sa():c.isArray(a)||c.Ed(a)?N.call(a):c.je(a)};c.keys=function(a){var b=[];if(a===w)return b;c.a(a,function(a,c){b[b.length]=c});return b};c.je=function(a){var b=[];if(a===w)return b;c.a(a,function(a){b[b.length]=a});return b};c.re=function(a){return a};c.cc=function(a,b){var d=D;if(a===w)return d;if(pa&&a.indexOf===pa)return-1!=a.indexOf(b);c.a(a,function(a){if(d||(d=a===b))return ha});return d};c.h=function(a, -b){return-1!==a.indexOf(b)};c.ec=function(a,b){a.prototype=new b;a.Yd=b.prototype};c.g=function(a){return a===Object(a)&&!c.isArray(a)};c.T=function(a){if(c.g(a)){for(var b in a)if($.call(a,b))return D;return p}return D};c.e=function(a){return a===l};c.oa=function(a){return"[object String]"==R.call(a)};c.O=function(a){return"[object Date]"==R.call(a)};c.gc=function(a){return"[object Number]"==R.call(a)};c.Gd=function(a){return!!(a&&1===a.nodeType)};c.kb=function(a){c.a(a,function(b,d){c.O(b)?a[d]= -c.Ad(b):c.g(b)&&(a[d]=c.kb(b))});return a};c.timestamp=function(){Date.now=Date.now||function(){return+new Date};return Date.now()};c.Ad=function(a){function b(a){return 10>a?"0"+a:a}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};c.m=function(a){return function(){try{return a.apply(this,arguments)}catch(b){s.Z("Implementation error. Please turn on debug and contact support@mixpanel.com."),G&&s.Z(b)}}}; -c.Nd=function(a){for(var b=["identify","_check_and_handle_notifications","_show_notification"],d=0;d/g,">").replace(/"/g,""").replace(/'/g,"'"));return a};c.extend=function(a){c.a(N.call(arguments,1),function(b){for(var d in b)b[d]!==l&&(a[d]=b[d])});return a};c.isArray=B||function(a){return"[object Array]"===R.call(a)};c.qb=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return D}}; +c.Dd=function(a){return!(!a||!$.call(a,"callee"))};c.sa=function(a){return!a?[]:a.sa?a.sa():c.isArray(a)||c.Dd(a)?N.call(a):c.he(a)};c.keys=function(a){var b=[];if(a===w)return b;c.a(a,function(a,c){b[b.length]=c});return b};c.he=function(a){var b=[];if(a===w)return b;c.a(a,function(a){b[b.length]=a});return b};c.qe=function(a){return a};c.bc=function(a,b){var d=D;if(a===w)return d;if(pa&&a.indexOf===pa)return-1!=a.indexOf(b);c.a(a,function(a){if(d||(d=a===b))return ha});return d};c.h=function(a, +b){return-1!==a.indexOf(b)};c.dc=function(a,b){a.prototype=new b;a.Xd=b.prototype};c.g=function(a){return a===Object(a)&&!c.isArray(a)};c.T=function(a){if(c.g(a)){for(var b in a)if($.call(a,b))return D;return p}return D};c.e=function(a){return a===l};c.oa=function(a){return"[object String]"==R.call(a)};c.O=function(a){return"[object Date]"==R.call(a)};c.fc=function(a){return"[object Number]"==R.call(a)};c.Fd=function(a){return!!(a&&1===a.nodeType)};c.jb=function(a){c.a(a,function(b,d){c.O(b)?a[d]= +c.zd(b):c.g(b)&&(a[d]=c.jb(b))});return a};c.timestamp=function(){Date.now=Date.now||function(){return+new Date};return Date.now()};c.zd=function(a){function b(a){return 10>a?"0"+a:a}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};c.m=function(a){return function(){try{return a.apply(this,arguments)}catch(b){s.Z("Implementation error. Please turn on debug and contact support@mixpanel.com."),G&&s.Z(b)}}}; +c.Md=function(a){for(var b=["identify","_check_and_handle_notifications","_show_notification"],d=0;d=i;)g()}function d(){var a,b,d="",c;if('"'===i)for(;g();){if('"'===i)return g(),d;if("\\"===i)if(g(),"u"===i){for(b=c=0;4>b;b+=1){a=parseInt(g(),16);if(!isFinite(a))break;c=16*c+a}d+=String.fromCharCode(c)}else if("string"=== -typeof f[i])d+=f[i];else break;else d+=i}j("Bad string")}function c(){var a;a="";"-"===i&&(a="-",g("-"));for(;"0"<=i&&"9">=i;)a+=i,g();if("."===i)for(a+=".";g()&&"0"<=i&&"9">=i;)a+=i;if("e"===i||"E"===i){a+=i;g();if("-"===i||"+"===i)a+=i,g();for(;"0"<=i&&"9">=i;)a+=i,g()}a=+a;if(isFinite(a))return a;j("Bad number")}function g(a){a&&a!==i&&j("Expected '"+a+"' instead of '"+i+"'");i=h.charAt(m);m+=1;return i}function j(a){a=new SyntaxError(a);a.ne=m;a.text=h;k(a)}var m,i,f={'"':'"',"\\":"\\","/":"/", +typeof f[i])d+=f[i];else break;else d+=i}j("Bad string")}function c(){var a;a="";"-"===i&&(a="-",g("-"));for(;"0"<=i&&"9">=i;)a+=i,g();if("."===i)for(a+=".";g()&&"0"<=i&&"9">=i;)a+=i;if("e"===i||"E"===i){a+=i;g();if("-"===i||"+"===i)a+=i,g();for(;"0"<=i&&"9">=i;)a+=i,g()}a=+a;if(isFinite(a))return a;j("Bad number")}function g(a){a&&a!==i&&j("Expected '"+a+"' instead of '"+i+"'");i=h.charAt(m);m+=1;return i}function j(a){a=new SyntaxError(a);a.me=m;a.text=h;k(a)}var m,i,f={'"':'"',"\\":"\\","/":"/", b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"},h,r;r=function(){b();switch(i){case "{":var m;a:{var f,h={};if("{"===i){g("{");b();if("}"===i){g("}");m=h;break a}for(;i;){f=d();b();g(":");Object.hasOwnProperty.call(h,f)&&j('Duplicate key "'+f+'"');h[f]=r();b();if("}"===i){g("}");m=h;break a}g(",");b()}}j("Bad object")}return m;case "[":a:{m=[];if("["===i){g("[");b();if("]"===i){g("]");f=m;break a}for(;i;){m.push(r());b();if("]"===i){g("]");f=m;break a}g(",");b()}}j("Bad array")}return f;case '"':return d(); -case "-":return c();default:return"0"<=i&&"9">=i?c():a()}};return function(a){h=a;m=0;i=" ";a=r();b();i&&j("Syntax error");return a}}();c.gb=function(a){var b,d,e,g,j=0,m=0,i="",i=[];if(!a)return a;a=c.he(a);do b=a.charCodeAt(j++),d=a.charCodeAt(j++),e=a.charCodeAt(j++),g=b<<16|d<<8|e,b=g>>18&63,d=g>>12&63,e=g>>6&63,g&=63,i[m++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)+ -"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g);while(jm?c++:i=127m?String.fromCharCode(m>>6|192,m&63|128):String.fromCharCode(m>>12|224,m>>6&63|128,m&63|128);i!==w&&(c>d&&(b+=a.substring(d,c)),b+= -i,d=c=j+1)}c>d&&(b+=a.substring(d,a.length));return b};c.zb=function(){function a(){function a(b,d){var c,e=0;for(c=0;c=i?c():a()}};return function(a){h=a;m=0;i=" ";a=r();b();i&&j("Syntax error");return a}}();c.fb=function(a){var b,d,e,g,j=0,m=0,i="",i=[];if(!a)return a;a=c.ge(a);do b=a.charCodeAt(j++),d=a.charCodeAt(j++),e=a.charCodeAt(j++),g=b<<16|d<<8|e,b=g>>18&63,d=g>>12&63,e=g>>6&63,g&=63,i[m++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)+ +"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g);while(jm?c++:i=127m?String.fromCharCode(m>>6|192,m&63|128):String.fromCharCode(m>>12|224,m>>6&63|128,m&63|128);i!==w&&(c>d&&(b+=a.substring(d,c)),b+= +i,d=c=j+1)}c>d&&(b+=a.substring(d,a.length));return b};c.yb=function(){function a(){function a(b,d){var c,e=0;for(c=0;cb&&delete a[d];c.T(a)&&delete this.props.__cmpns}}); -q.prototype.fe=function(){if(!this.Rb)this.G(c.info.sd()),this.Rb=p};q.prototype.Dc=function(a){this.v(c.info.Qd(a))};q.prototype.yb=function(a){this.G({$initial_referrer:a||"$direct",$initial_referring_domain:c.info.pc(a)||"$direct"},"")};q.prototype.Dd=function(){return c.La({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};q.prototype.Cc=function(a){this.Xb=this.mb=a.cookie_expiration;this.uc(a.disable_persistence);this.Sd(a.cross_subdomain_cookie); -this.Vd(a.secure_cookie)};q.prototype.uc=function(a){(this.disabled=a)?this.remove():this.save()};q.prototype.Sd=function(a){if(a!==this.ib)this.ib=a,this.remove(),this.save()};q.prototype.Bd=function(){return this.ib};q.prototype.Vd=function(a){if(a!==this.rc)this.rc=a?p:D,this.remove(),this.save()};q.prototype.C=function(a,b){var d=this.Xa(a),e=b[a],g=this.Q("$set"),j=this.Q("$set_once"),f=this.Q("$unset"),i=this.Q("$add"),h=this.Q("$union"),n=this.Q("$remove",[]),r=this.Q("$append",[]);"__mps"=== +save_referrer:p,test:D,verbose:D,img:D,track_pageview:p,debug:D,track_links_timeout:300,cookie_expiration:365,upgrade:D,disable_persistence:D,disable_cookie:D,secure_cookie:D,ip:p,opt_out_tracking_by_default:D,opt_out_persistence_by_default:D,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:w,property_blacklist:[],xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:D},ja=D;E.prototype.Ga=J();E.prototype.kb=J();E.prototype.eb=J();E.prototype.aa=function(a){this.ic= +a;return this};E.prototype.p=function(a,b,d,e){var g=this,j=c.wd(a);if(0===j.length)s.error("The DOM query ("+a+") returned 0 elements");else return c.a(j,function(a){c.J(a,this.lc,function(a){var c={},j=g.Ga(d,this),f=g.ic.c("track_links_timeout");g.kb(a,this,c);t.setTimeout(g.xc(e,j,c,p),f);g.ic.p(b,j,g.xc(e,j,c))})},this),p};E.prototype.xc=function(a,b,d,c){var c=c||D,g=this;return function(){if(!d.qd)d.qd=p,a&&a(c,b)===D||g.eb(b,d,c)}};E.prototype.Ga=function(a,b){return"function"===typeof a? +a(b):c.extend({},a)};c.dc(K,E);K.prototype.Ga=function(a,b){var d=K.Xd.Ga.apply(this,arguments);if(b.href)d.url=b.href;return d};K.prototype.kb=function(a,b,d){d.jc=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;d.href=b.href;d.jc||a.preventDefault()};K.prototype.eb=function(a,b){b.jc||setTimeout(function(){t.location=b.href},0)};c.dc(U,E);U.prototype.kb=function(a,b,d){d.element=b;a.preventDefault()};U.prototype.eb=function(a,b){setTimeout(function(){b.element.submit()},0)};q.prototype.ra= +function(){var a={};c.a(this.props,function(b,d){c.bc(Ia,d)||(a[d]=b)});return a};q.prototype.load=function(){if(!this.disabled){var a=this.w.parse(this.name);a&&(this.props=c.extend({},a))}};q.prototype.fe=function(a){var b=a.upgrade,d;if(b)d="mp_super_properties","string"===typeof b&&(d=b),b=this.w.parse(d),this.w.remove(d),this.w.remove(d,p),b&&(this.props=c.extend(this.props,b.all,b.events));if(!a.cookie_name&&"mixpanel"!==a.name&&(d="mp_"+a.token+"_"+a.name,b=this.w.parse(d)))this.w.remove(d), +this.w.remove(d,p),this.G(b);this.w===c.localStorage&&(b=c.cookie.parse(this.name),c.cookie.remove(this.name),c.cookie.remove(this.name,p),b&&this.G(b))};q.prototype.save=function(){this.disabled||(this.Rc(),this.w.set(this.name,c.ea(this.props),this.lb,this.hb,this.qc))};q.prototype.remove=function(){this.w.remove(this.name,D);this.w.remove(this.name,p)};q.prototype.clear=function(){this.remove();this.props={}};q.prototype.G=function(a,b,d){return c.g(a)?("undefined"===typeof b&&(b="None"),this.lb= +"undefined"===typeof d?this.Wb:d,c.a(a,function(a,d){if(!this.props.hasOwnProperty(d)||this.props[d]===b)this.props[d]=a},this),this.save(),p):D};q.prototype.v=function(a,b){return c.g(a)?(this.lb="undefined"===typeof b?this.Wb:b,c.extend(this.props,a),this.save(),p):D};q.prototype.ua=function(a){a in this.props&&(delete this.props[a],this.save())};q.prototype.Rc=c.m(function(){var a=this.props.__cmpns,b=G?6E4:36E5;if(a){for(var d in a)1*new Date-a[d]>b&&delete a[d];c.T(a)&&delete this.props.__cmpns}}); +q.prototype.ee=function(){if(!this.Qb)this.G(c.info.rd()),this.Qb=p};q.prototype.Cc=function(a){this.v(c.info.Pd(a))};q.prototype.xb=function(a){this.G({$initial_referrer:a||"$direct",$initial_referring_domain:c.info.oc(a)||"$direct"},"")};q.prototype.Cd=function(){return c.La({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};q.prototype.Bc=function(a){this.Wb=this.lb=a.cookie_expiration;this.tc(a.disable_persistence);this.Rd(a.cross_subdomain_cookie); +this.Ud(a.secure_cookie)};q.prototype.tc=function(a){(this.disabled=a)?this.remove():this.save()};q.prototype.Rd=function(a){if(a!==this.hb)this.hb=a,this.remove(),this.save()};q.prototype.Ad=function(){return this.hb};q.prototype.Ud=function(a){if(a!==this.qc)this.qc=a?p:D,this.remove(),this.save()};q.prototype.C=function(a,b){var d=this.Xa(a),e=b[a],g=this.Q("$set"),j=this.Q("$set_once"),f=this.Q("$unset"),i=this.Q("$add"),h=this.Q("$union"),n=this.Q("$remove",[]),r=this.Q("$append",[]);"__mps"=== d?(c.extend(g,e),this.H("$add",e),this.H("$union",e),this.H("$unset",e)):"__mpso"===d?(c.a(e,function(a,b){b in j||(j[b]=a)}),this.H("$unset",e)):"__mpus"===d?c.a(e,function(a){c.a([g,j,i,h],function(b){a in b&&delete b[a]});c.a(r,function(b){a in b&&delete b[a]});f[a]=p}):"__mpa"===d?(c.a(e,function(a,b){b in g?g[b]+=a:(b in i||(i[b]=0),i[b]+=a)},this),this.H("$unset",e)):"__mpu"===d?(c.a(e,function(a,b){c.isArray(a)&&(b in h||(h[b]=[]),h[b]=h[b].concat(a))}),this.H("$unset",e)):"__mpr"===d?(n.push(e), this.H("$append",e)):"__mpap"===d&&(r.push(e),this.H("$unset",e));s.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");s.log(b);this.save()};q.prototype.H=function(a,b){var d=this.Ba(a);c.e(d)||(c.a(b,function(b,g){"$append"===a||"$remove"===a?c.a(d,function(a){a[g]===b&&delete a[g]}):delete d[g]},this),this.save())};q.prototype.Xa=function(a){if("$set"===a)return"__mps";if("$set_once"===a)return"__mpso";if("$unset"===a)return"__mpus";if("$add"===a)return"__mpa";if("$append"===a)return"__mpap"; -if("$remove"===a)return"__mpr";if("$union"===a)return"__mpu";s.error("Invalid queue:",a)};q.prototype.Ba=function(a){return this.props[this.Xa(a)]};q.prototype.Q=function(a,b){var d=this.Xa(a),b=c.e(b)?{}:b;return this.props[d]||(this.props[d]=b)};q.prototype.Td=function(a){var b=this.props.__timers||{};b[a]=(new Date).getTime();this.props.__timers=b;this.save()};q.prototype.Ld=function(a){var b=(this.props.__timers||{})[a];c.e(b)||(delete this.props.__timers[a],this.save());return b};var h;c.extend(n.prototype, -B);f.prototype.aa=function(a,b,d){if(c.e(d))s.error("You must name your new library: init(token, config, name)");else if("mixpanel"===d)s.error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=T(a,b,d),y[d]=a,a.Ca(),a};f.prototype.ia=function(a,b,d){this.__loaded=p;this.config={};this.eb=[];this.tc(c.extend({},Ja,b,{name:d,token:a,callback_fn:("mixpanel"===d?d:"mixpanel."+d)+"._jsc"}));this._jsc=J();this.Ua=[];this.Va=[];this.Ta=[];this.X= -{disable_all_events:D,identify_called:D};this.persistence=this.cookie=new q(this.config);this.Vc();a=c.zb();this.S()||this.G({distinct_id:a,$device_id:a},"")};f.prototype.Ca=function(){this.c("loaded")(this);this.c("track_pageview")&&this.zc()};f.prototype.Qc=function(){c.a(this.Ua,function(a){this.bb.apply(this,a)},this);this.na()||c.a(this.Va,function(a){this.i.apply(this,a)},this);delete this.Ua;delete this.Va};f.prototype.bb=function(a,b){if(this.c("img"))return s.error("You can't use DOM tracking functions with img = true."), +if("$remove"===a)return"__mpr";if("$union"===a)return"__mpu";s.error("Invalid queue:",a)};q.prototype.Ba=function(a){return this.props[this.Xa(a)]};q.prototype.Q=function(a,b){var d=this.Xa(a),b=c.e(b)?{}:b;return this.props[d]||(this.props[d]=b)};q.prototype.Sd=function(a){var b=this.props.__timers||{};b[a]=(new Date).getTime();this.props.__timers=b;this.save()};q.prototype.Kd=function(a){var b=(this.props.__timers||{})[a];c.e(b)||(delete this.props.__timers[a],this.save());return b};var h;c.extend(n.prototype, +B);f.prototype.aa=function(a,b,d){if(c.e(d))s.error("You must name your new library: init(token, config, name)");else if("mixpanel"===d)s.error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=T(a,b,d),y[d]=a,a.Ca(),a};f.prototype.ia=function(a,b,d){this.__loaded=p;this.config={};this._triggered_notifs=[];this.sc(c.extend({},Ja,b,{name:d,token:a,callback_fn:("mixpanel"===d?d:"mixpanel."+d)+"._jsc"}));this._jsc=J();this.Ua=[];this.Va=[]; +this.Ta=[];this.X={disable_all_events:D,identify_called:D};this.persistence=this.cookie=new q(this.config);this.Uc();a=c.yb();this.S()||this.G({distinct_id:a,$device_id:a},"")};f.prototype.Ca=function(){this.c("loaded")(this);this.c("track_pageview")&&this.yc()};f.prototype.Pc=function(){c.a(this.Ua,function(a){this.bb.apply(this,a)},this);this.na()||c.a(this.Va,function(a){this.i.apply(this,a)},this);delete this.Ua;delete this.Va};f.prototype.bb=function(a,b){if(this.c("img"))return s.error("You can't use DOM tracking functions with img = true."), D;if(!ja)return this.Ua.push([a,b]),D;var d=(new a).aa(this);return d.p.apply(d,b)};f.prototype.ja=function(a,b){if(c.e(a))return w;if(ba)return function(d){a(d,b)};var d=this._jsc,e=""+Math.floor(1E8*Math.random()),g=this.c("callback_fn")+"["+e+"]";d[e]=function(c){delete d[e];a(c,b)};return g};f.prototype.i=function(a,b,d){if(ka)this.Va.push(arguments);else{var e=this.c("verbose");b.verbose&&(e=p);this.c("test")&&(b.test=1);e&&(b.verbose=1);this.c("img")&&(b.img=1);if(!ba)if(d)b.callback=d;else if(e|| -this.c("test"))b.callback="(function(){})";b.ip=this.c("ip")?1:0;b._=(new Date).getTime().toString();a+="?"+c.Ic(b);if("img"in b){var g=o.createElement("img");g.src=a;o.body.appendChild(g)}else if(ba)try{var j=new XMLHttpRequest;j.open("GET",a,p);c.a(this.c("xhr_headers"),function(a,b){j.setRequestHeader(b,a)});j.withCredentials=p;j.onreadystatechange=function(){if(4===j.readyState)if(200===j.status){if(d)if(e){var a;try{a=c.xa(j.responseText)}catch(b){s.error(b);return}d(a)}else d(Number(j.responseText))}else a= +this.c("test"))b.callback="(function(){})";b.ip=this.c("ip")?1:0;b._=(new Date).getTime().toString();a+="?"+c.Hc(b);if("img"in b){var g=o.createElement("img");g.src=a;o.body.appendChild(g)}else if(ba)try{var j=new XMLHttpRequest;j.open("GET",a,p);c.a(this.c("xhr_headers"),function(a,b){j.setRequestHeader(b,a)});j.withCredentials=p;j.onreadystatechange=function(){if(4===j.readyState)if(200===j.status){if(d)if(e){var a;try{a=c.xa(j.responseText)}catch(b){s.error(b);return}d(a)}else d(Number(j.responseText))}else a= "Bad HTTP status: "+j.status+" "+j.statusText,s.error(a),d&&(e?d({status:0,error:a}):d(0))};j.send(w)}catch(f){s.error(f)}else{g=o.createElement("script");g.type="text/javascript";g.async=p;g.defer=p;g.src=a;var i=o.getElementsByTagName("script")[0];i.parentNode.insertBefore(g,i)}}};f.prototype.Wa=function(a){function b(a,b){c.a(a,function(a){if(c.isArray(a[0])){var d=b;c.a(a,function(a){d=d[a[0]].apply(d,a.slice(1))})}else this[a[0]].apply(this,a.slice(1))},b)}var d,e=[],g=[],j=[];c.a(a,function(a){a&& -(d=a[0],c.isArray(d)?j.push(a):"function"===typeof a?a.call(this):c.isArray(a)&&"alias"===d?e.push(a):c.isArray(a)&&-1!==d.indexOf("track")&&"function"===typeof this[d]?j.push(a):g.push(a))},this);b(e,this);b(g,this);b(j,this)};f.prototype.push=function(a){this.Wa([a])};f.prototype.disable=function(a){"undefined"===typeof a?this.X.ud=p:this.Ta=this.Ta.concat(a)};f.prototype.p=I(function(a,b,d){"function"!==typeof d&&(d=J());if(c.e(a))s.error("No event name provided to mixpanel.track");else if(this.Eb(a))d(0); -else{b=b||{};b.token=this.c("token");var e=this.persistence.Ld(a);c.e(e)||(b.$duration=parseFloat((((new Date).getTime()-e)/1E3).toFixed(3)));this.persistence.Dc(o.referrer);this.c("store_google")&&this.persistence.fe();this.c("save_referrer")&&this.persistence.yb(o.referrer);b=c.extend({},c.info.ra(),this.persistence.ra(),b);e=this.c("property_blacklist");c.isArray(e)?c.a(e,function(a){delete b[a]}):s.error("Invalid value for property_blacklist config: "+e);var a={event:a,properties:b},e=c.truncate(a, -255),g=c.ea(e),g=c.gb(g);s.log("MIXPANEL REQUEST:");s.log(e);this.i(this.c("api_host")+"/track/",{data:g},this.ja(d,e));this.Oc(a);return e}});f.prototype.Ud=I(function(a,b,d){c.isArray(b)||(b=[b]);var e={};e[a]=b;this.v(e);return this.people.set(a,b,d)});f.prototype.nd=I(function(a,b,d){var c=this.F(a);if(c===l){var g={};g[a]=[b];this.v(g)}else-1===c.indexOf(b)&&(c.push(b),this.v(g));return this.people.ta(a,b,d)});f.prototype.Md=I(function(a,b,d){var c=this.F(a);if(c!==l){var g=c.indexOf(b);-1");this.td=c.R(a.cta)||"Close";this.pa=c.R(a.type)||"takeover";this.style=c.R(a.style)||"light";this.title=c.R(a.title)||"";this.va=h.Kc;this.da=h.Jc;this.$b=a.display_triggers||[];this.$=a.cta_url||w;this.qb=a.image_url||w;this.z=a.thumb_image_url||w;this.Pa=a.video_url||w;if(this.z&& -0===this.z.indexOf("//"))this.z=this.z.replace("//",this.Ja);this.Fa=p;if(!this.$)this.$="#dismiss",this.Fa=D;this.u="mini"===this.pa;if(!this.u)this.pa="takeover";this.Id=!this.u?h.fa:h.Qa;this.Mb();this.Ia=this.Zc();this.bd()};h=f.Lc;h.U=200;h.A="mixpanel-notification";h.wa=0.6;h.L=25;h.ya=200;h.fa=388;h.Qa=420;h.B=85;h.Ra=5;h.P=60;h.Sa=Math.round(h.P/2);h.Kc=595;h.Jc=334;h.prototype.show=function(){var a=this;this.Mb();this.q?(this.ad(),this.$c(),this.gd(this.Nc)):setTimeout(function(){a.show()}, -300)};h.prototype.jb=c.m(function(){this.hc||this.Jb({invisible:p});var a=this.Wd?this.k("video"):this.Y();if(this.Ec)this.jd("bg","visible"),this.V(a,"exiting"),setTimeout(this.Lb,h.U);else{var b,d,c;this.u?(b="right",d=20,c=-100):(b="top",d=h.L,c=h.ya+h.L);this.za([{s:this.k("bg"),o:"opacity",start:h.wa,l:0},{s:a,o:"opacity",start:1,l:0},{s:a,o:b,start:d,l:c}],h.U,this.Lb)}});h.prototype.V=c.m(function(a,b){b=h.A+"-"+b;"string"===typeof a&&(a=this.k(a));a.className?~(" "+a.className+" ").indexOf(" "+ -b+" ")||(a.className+=" "+b):a.className=b});h.prototype.jd=c.m(function(a,b){b=h.A+"-"+b;"string"===typeof a&&(a=this.k(a));if(a.className)a.className=(" "+a.className+" ").replace(" "+b+" ","").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")});h.prototype.za=c.m(function(a,b,d,c){var g=this,f=D,h,i;h=1*new Date;var n,c=c||h;n=h-c;for(h=0;h=i.start?1:-1;i.K=i.start+(i.l-i.start)*n/b;if("opacity"!==i.o)i.K= -Math.round(i.K);if(0=i.l||0>o&&i.K<=i.l)i.K=i.l}}if(f){for(h=0;h'):this.bc="",this.z?(a.push(this.z),this.xc='
'):this.xc="");return a};h.prototype.$c=function(){var a="",b="",d="";this.qa=o.createElement("div");this.qa.id=h.A+"-wrapper";if(this.u)a='
'+ -this.body+'
';else{var a=this.Fa||this.ca?"":'
',c=this.ca?'
':"";this.W("ie",7)&&(c=a="");a='
'+this.xc+'
'+this.bc+'
'+this.title+'
'+this.body+'
'+ -a+''+this.td+""+c+"
"}this.Gc?(b=this.Ja+"www.youtube.com/embed/"+this.Gc+"?wmode=transparent&showinfo=0&modestbranding=0&rel=0&autoplay=1&loop=0&vq=hd1080",this.Hc&&(b+="&enablejsapi=1&html5=1&controls=0",d='
')): -this.Fc&&(b=this.Ja+"player.vimeo.com/video/"+this.Fc+"?autoplay=1&title=0&byline=0&portrait=0");if(this.ca)this.ke='',d='
'+d+"
";b=d+a;this.nb&&(b=(this.u?a:"")+'
'+(this.u? -d:b)+"
");this.qa.innerHTML=('
'+b+"
").replace(/class=\"/g,'class="'+h.A+"-").replace(/id=\"/g,'id="'+h.A+"-")};h.prototype.ad=function(){this.j="dark"===this.style?{hb:"#1d1f25",ka:"#282b32",Da:"#3a4147",Ob:"#4a5157",qd:"#32353c",Sb:"0.4",tb:"#2a3137",Na:"#fff",xb:"#9498a3",wc:"#464851",Ma:"#ddd"}:{hb:"#fff",ka:"#e7eaee",Da:"#eceff3",Ob:"#f5f5f5",qd:"#e4ecf2",Sb:"1.0", -tb:"#fafafa",Na:"#5c6578",xb:"#8b949b",wc:"#ced9e6",Ma:"#7c8598"};var a="0px 0px 35px 0px rgba(45, 49, 56, 0.7)",b=a,d=a,e=h.P+2*h.Ra,g=h.U/1E3+"s";this.u&&(a="none");var f={};f["@media only screen and (max-width: "+(h.Qa+20-1)+"px)"]={"#overlay":{display:"none"}};a={".flipped":{transform:"rotateY(180deg)"},"#overlay":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",overflow:"auto","text-align":"center","z-index":"10000","font-family":'"Helvetica", "Arial", sans-serif',"-webkit-font-smoothing":"antialiased", -"-moz-osx-font-smoothing":"grayscale"},"#overlay.mini":{height:"0",overflow:"visible"},"#overlay a":{width:"initial",padding:"0","text-decoration":"none","text-transform":"none",color:"inherit"},"#bgwrapper":{position:"relative",width:"100%",height:"100%"},"#bg":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","min-width":4*this.wd+"px","min-height":4*this.vd+"px","background-color":"black",opacity:"0.0","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)",filter:"alpha(opacity=60)", +a};f.Kc=function(a,b){c.Ob(this);this.ba=b;this.vb=this.ba.persistence;this.Ja=this.ba.c("inapp_protocol");this.Ea=this.ba.c("cdn");this.I=c.R(a.id);this.hc=c.R(a.message_id);this.body=(c.R(a.body)||"").replace(/\n/g,"
");this.sd=c.R(a.cta)||"Close";this.pa=c.R(a.type)||"takeover";this.style=c.R(a.style)||"light";this.title=c.R(a.title)||"";this.va=h.Jc;this.da=h.Ic;this.Zb=a.display_triggers||[];this.$=a.cta_url||w;this.pb=a.image_url||w;this.z=a.thumb_image_url||w;this.Pa=a.video_url||w;if(this.z&& +0===this.z.indexOf("//"))this.z=this.z.replace("//",this.Ja);this.Fa=p;if(!this.$)this.$="#dismiss",this.Fa=D;this.u="mini"===this.pa;if(!this.u)this.pa="takeover";this.Hd=!this.u?h.fa:h.Qa;this.Lb();this.Ia=this.Yc();this.ad()};h=f.Kc;h.U=200;h.A="mixpanel-notification";h.wa=0.6;h.L=25;h.ya=200;h.fa=388;h.Qa=420;h.B=85;h.Ra=5;h.P=60;h.Sa=Math.round(h.P/2);h.Jc=595;h.Ic=334;h.prototype.show=function(){var a=this;this.Lb();this.q?(this.$c(),this.Zc(),this.fd(this.Mc)):setTimeout(function(){a.show()}, +300)};h.prototype.ib=c.m(function(){this.gc||this.Ib({invisible:p});var a=this.Vd?this.k("video"):this.Y();if(this.Dc)this.hd("bg","visible"),this.V(a,"exiting"),setTimeout(this.Kb,h.U);else{var b,d,c;this.u?(b="right",d=20,c=-100):(b="top",d=h.L,c=h.ya+h.L);this.za([{s:this.k("bg"),o:"opacity",start:h.wa,l:0},{s:a,o:"opacity",start:1,l:0},{s:a,o:b,start:d,l:c}],h.U,this.Kb)}});h.prototype.V=c.m(function(a,b){b=h.A+"-"+b;"string"===typeof a&&(a=this.k(a));a.className?~(" "+a.className+" ").indexOf(" "+ +b+" ")||(a.className+=" "+b):a.className=b});h.prototype.hd=c.m(function(a,b){b=h.A+"-"+b;"string"===typeof a&&(a=this.k(a));if(a.className)a.className=(" "+a.className+" ").replace(" "+b+" ","").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")});h.prototype.za=c.m(function(a,b,d,c){var g=this,f=D,h,i;h=1*new Date;var n,c=c||h;n=h-c;for(h=0;h=i.start?1:-1;i.K=i.start+(i.l-i.start)*n/b;if("opacity"!==i.o)i.K= +Math.round(i.K);if(0=i.l||0>o&&i.K<=i.l)i.K=i.l}}if(f){for(h=0;h'):this.ac="",this.z?(a.push(this.z),this.wc='
'):this.wc="");return a};h.prototype.Zc=function(){var a="",b="",d="";this.qa=o.createElement("div");this.qa.id=h.A+"-wrapper";if(this.u)a='
'+ +this.body+'
';else{var a=this.Fa||this.ca?"":'
',c=this.ca?'
':"";this.W("ie",7)&&(c=a="");a='
'+this.wc+'
'+this.ac+'
'+this.title+'
'+this.body+'
'+ +a+''+this.sd+""+c+"
"}this.Fc?(b=this.Ja+"www.youtube.com/embed/"+this.Fc+"?wmode=transparent&showinfo=0&modestbranding=0&rel=0&autoplay=1&loop=0&vq=hd1080",this.Gc&&(b+="&enablejsapi=1&html5=1&controls=0",d='
')): +this.Ec&&(b=this.Ja+"player.vimeo.com/video/"+this.Ec+"?autoplay=1&title=0&byline=0&portrait=0");if(this.ca)this.je='',d='
'+d+"
";b=d+a;this.mb&&(b=(this.u?a:"")+'
'+(this.u? +d:b)+"
");this.qa.innerHTML=('
'+b+"
").replace(/class=\"/g,'class="'+h.A+"-").replace(/id=\"/g,'id="'+h.A+"-")};h.prototype.$c=function(){this.j="dark"===this.style?{gb:"#1d1f25",ka:"#282b32",Da:"#3a4147",Nb:"#4a5157",pd:"#32353c",Rb:"0.4",sb:"#2a3137",Na:"#fff",wb:"#9498a3",vc:"#464851",Ma:"#ddd"}:{gb:"#fff",ka:"#e7eaee",Da:"#eceff3",Nb:"#f5f5f5",pd:"#e4ecf2",Rb:"1.0", +sb:"#fafafa",Na:"#5c6578",wb:"#8b949b",vc:"#ced9e6",Ma:"#7c8598"};var a="0px 0px 35px 0px rgba(45, 49, 56, 0.7)",b=a,d=a,e=h.P+2*h.Ra,g=h.U/1E3+"s";this.u&&(a="none");var f={};f["@media only screen and (max-width: "+(h.Qa+20-1)+"px)"]={"#overlay":{display:"none"}};a={".flipped":{transform:"rotateY(180deg)"},"#overlay":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",overflow:"auto","text-align":"center","z-index":"10000","font-family":'"Helvetica", "Arial", sans-serif',"-webkit-font-smoothing":"antialiased", +"-moz-osx-font-smoothing":"grayscale"},"#overlay.mini":{height:"0",overflow:"visible"},"#overlay a":{width:"initial",padding:"0","text-decoration":"none","text-transform":"none",color:"inherit"},"#bgwrapper":{position:"relative",width:"100%",height:"100%"},"#bg":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","min-width":4*this.vd+"px","min-height":4*this.ud+"px","background-color":"black",opacity:"0.0","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)",filter:"alpha(opacity=60)", transition:"opacity "+g},"#bg.visible":{opacity:h.wa},".mini #bg":{width:"0",height:"0","min-width":"0"},"#flipcontainer":{perspective:"1000px",position:"absolute",width:"100%"},"#flipper":{position:"relative","transform-style":"preserve-3d",transition:"0.3s"},"#takeover":{position:"absolute",left:"50%",width:h.fa+"px","margin-left":Math.round(-h.fa/2)+"px","backface-visibility":"hidden",transform:"rotateY(0deg)",opacity:"0.0",top:h.ya+"px",transition:"opacity "+g+", top "+g},"#takeover.visible":{opacity:"1.0", top:h.L+"px"},"#takeover.exiting":{opacity:"0.0",top:h.ya+"px"},"#thumbspacer":{height:h.Sa+"px"},"#thumbborder-wrapper":{position:"absolute",top:-h.Ra+"px",left:h.fa/2-h.Sa-h.Ra+"px",width:e+"px",height:e/2+"px",overflow:"hidden"},"#thumbborder":{position:"absolute",width:e+"px",height:e+"px","border-radius":e+"px","background-color":this.j.ka,opacity:"0.5"},"#thumbnail":{position:"absolute",top:"0px",left:h.fa/2-h.Sa+"px",width:h.P+"px",height:h.P+"px",overflow:"hidden","z-index":"100","border-radius":h.P+ -"px"},"#mini":{position:"absolute",right:"20px",top:h.L+"px",width:this.Id+"px",height:2*h.B+"px","margin-top":20-h.B+"px","backface-visibility":"hidden",opacity:"0.0",transform:"rotateX(90deg)",transition:"opacity 0.3s, transform 0.3s, right 0.3s"},"#mini.visible":{opacity:"1.0",transform:"rotateX(0deg)"},"#mini.exiting":{opacity:"0.0",right:"-150px"},"#mainbox":{"border-radius":"4px","box-shadow":a,"text-align":"center","background-color":this.j.hb,"font-size":"14px",color:this.j.xb},"#mini #mainbox":{height:h.B+ -"px","margin-top":h.B+"px","border-radius":"3px",transition:"background-color "+g},"#mini-border":{height:h.B+6+"px",width:h.Qa+6+"px",position:"absolute",top:"-3px",left:"-3px","margin-top":h.B+"px","border-radius":"6px",opacity:"0.25","background-color":"#fff","z-index":"-1","box-shadow":d},"#mini-icon":{position:"relative",display:"inline-block",width:"75px",height:h.B+"px","border-radius":"3px 0 0 3px","background-color":this.j.ka,background:"linear-gradient(135deg, "+this.j.Ob+" 0%, "+this.j.ka+ -" 100%)",transition:"background-color "+g},"#mini:hover #mini-icon":{"background-color":this.j.tb},"#mini:hover #mainbox":{"background-color":this.j.tb},"#mini-icon-img":{position:"absolute","background-image":"url("+this.z+")",width:"48px",height:"48px",top:"20px",left:"12px"},"#content":{padding:"30px 20px 0px 20px"},"#mini-content":{"text-align":"left",height:h.B+"px",cursor:"pointer"},"#img":{width:"328px","margin-top":"30px","border-radius":"5px"},"#title":{"max-height":"600px",overflow:"hidden", +"px"},"#mini":{position:"absolute",right:"20px",top:h.L+"px",width:this.Hd+"px",height:2*h.B+"px","margin-top":20-h.B+"px","backface-visibility":"hidden",opacity:"0.0",transform:"rotateX(90deg)",transition:"opacity 0.3s, transform 0.3s, right 0.3s"},"#mini.visible":{opacity:"1.0",transform:"rotateX(0deg)"},"#mini.exiting":{opacity:"0.0",right:"-150px"},"#mainbox":{"border-radius":"4px","box-shadow":a,"text-align":"center","background-color":this.j.gb,"font-size":"14px",color:this.j.wb},"#mini #mainbox":{height:h.B+ +"px","margin-top":h.B+"px","border-radius":"3px",transition:"background-color "+g},"#mini-border":{height:h.B+6+"px",width:h.Qa+6+"px",position:"absolute",top:"-3px",left:"-3px","margin-top":h.B+"px","border-radius":"6px",opacity:"0.25","background-color":"#fff","z-index":"-1","box-shadow":d},"#mini-icon":{position:"relative",display:"inline-block",width:"75px",height:h.B+"px","border-radius":"3px 0 0 3px","background-color":this.j.ka,background:"linear-gradient(135deg, "+this.j.Nb+" 0%, "+this.j.ka+ +" 100%)",transition:"background-color "+g},"#mini:hover #mini-icon":{"background-color":this.j.sb},"#mini:hover #mainbox":{"background-color":this.j.sb},"#mini-icon-img":{position:"absolute","background-image":"url("+this.z+")",width:"48px",height:"48px",top:"20px",left:"12px"},"#content":{padding:"30px 20px 0px 20px"},"#mini-content":{"text-align":"left",height:h.B+"px",cursor:"pointer"},"#img":{width:"328px","margin-top":"30px","border-radius":"5px"},"#title":{"max-height":"600px",overflow:"hidden", "word-wrap":"break-word",padding:"25px 0px 20px 0px","font-size":"19px","font-weight":"bold",color:this.j.Na},"#body":{"max-height":"600px","margin-bottom":"25px",overflow:"hidden","word-wrap":"break-word","line-height":"21px","font-size":"15px","font-weight":"normal","text-align":"left"},"#mini #body":{display:"inline-block","max-width":"250px",margin:"0 0 0 30px",height:h.B+"px","font-size":"16px","letter-spacing":"0.8px",color:this.j.Na},"#mini #body-text":{display:"table",height:h.B+"px"},"#mini #body-text div":{display:"table-cell", -"vertical-align":"middle"},"#tagline":{"margin-bottom":"15px","font-size":"10px","font-weight":"600","letter-spacing":"0.8px",color:"#ccd7e0","text-align":"left"},"#tagline a":{color:this.j.wc,transition:"color "+g},"#tagline a:hover":{color:this.j.Ma},"#cancel":{position:"absolute",right:"0",width:"8px",height:"8px",padding:"10px","border-radius":"20px",margin:"12px 12px 0 0","box-sizing":"content-box",cursor:"pointer",transition:"background-color "+g},"#mini #cancel":{margin:"7px 7px 0 0"},"#cancel-icon":{width:"8px", -height:"8px",overflow:"hidden","background-image":"url("+this.Ea+"/site_media/images/icons/notifications/cancel-x.png)",opacity:this.j.Sb},"#cancel:hover":{"background-color":this.j.Da},"#button":{display:"block",height:"60px","line-height":"60px","text-align":"center","background-color":this.j.ka,"border-radius":"0 0 4px 4px",overflow:"hidden",cursor:"pointer",transition:"background-color "+g},"#button-close":{display:"inline-block",width:"9px",height:"60px","margin-right":"8px","vertical-align":"top", +"vertical-align":"middle"},"#tagline":{"margin-bottom":"15px","font-size":"10px","font-weight":"600","letter-spacing":"0.8px",color:"#ccd7e0","text-align":"left"},"#tagline a":{color:this.j.vc,transition:"color "+g},"#tagline a:hover":{color:this.j.Ma},"#cancel":{position:"absolute",right:"0",width:"8px",height:"8px",padding:"10px","border-radius":"20px",margin:"12px 12px 0 0","box-sizing":"content-box",cursor:"pointer",transition:"background-color "+g},"#mini #cancel":{margin:"7px 7px 0 0"},"#cancel-icon":{width:"8px", +height:"8px",overflow:"hidden","background-image":"url("+this.Ea+"/site_media/images/icons/notifications/cancel-x.png)",opacity:this.j.Rb},"#cancel:hover":{"background-color":this.j.Da},"#button":{display:"block",height:"60px","line-height":"60px","text-align":"center","background-color":this.j.ka,"border-radius":"0 0 4px 4px",overflow:"hidden",cursor:"pointer",transition:"background-color "+g},"#button-close":{display:"inline-block",width:"9px",height:"60px","margin-right":"8px","vertical-align":"top", "background-image":"url("+this.Ea+"/site_media/images/icons/notifications/close-x-"+this.style+".png)","background-repeat":"no-repeat","background-position":"0px 25px"},"#button-play":{display:"inline-block",width:"30px",height:"60px","margin-left":"15px","background-image":"url("+this.Ea+"/site_media/images/icons/notifications/play-"+this.style+"-small.png)","background-repeat":"no-repeat","background-position":"0px 15px"},"a#button-link":{display:"inline-block","vertical-align":"top","text-align":"center", "font-size":"17px","font-weight":"bold",overflow:"hidden","word-wrap":"break-word",color:this.j.Na,transition:"color "+g},"#button:hover":{"background-color":this.j.Da,color:this.j.Ma},"#button:hover a":{color:this.j.Ma},"#video-noflip":{position:"relative",top:2*-this.da+"px"},"#video-flip":{"backface-visibility":"hidden",transform:"rotateY(180deg)"},"#video":{position:"absolute",width:this.va-1+"px",height:this.da+"px",top:h.L+"px","margin-top":"100px",left:"50%","margin-left":Math.round(-this.va/ 2)+"px",overflow:"hidden","border-radius":"5px","box-shadow":b,transform:"translateZ(1px)",transition:"opacity "+g+", top "+g},"#video.exiting":{opacity:"0.0",top:this.da+"px"},"#video-holder":{position:"absolute",width:this.va-1+"px",height:this.da+"px",overflow:"hidden","border-radius":"5px"},"#video-frame":{"margin-left":"-1px",width:this.va+"px"},"#video-controls":{opacity:"0",transition:"opacity 0.5s"},"#video:hover #video-controls":{opacity:"1.0"},"#video .video-progress-el":{position:"absolute", -bottom:"0",height:"25px","border-radius":"0 0 0 5px"},"#video-progress":{width:"90%"},"#video-progress-total":{width:"100%","background-color":this.j.hb,opacity:"0.7"},"#video-elapsed":{width:"0","background-color":"#6cb6f5",opacity:"0.9"},"#video #video-time":{width:"10%",right:"0","font-size":"11px","line-height":"25px",color:this.j.xb,"background-color":"#666","border-radius":"0 0 5px 0"}};this.W("ie",8)&&c.extend(a,{"* html #overlay":{position:"absolute"},"* html #bg":{position:"absolute"},"html, body":{height:"100%"}}); +bottom:"0",height:"25px","border-radius":"0 0 0 5px"},"#video-progress":{width:"90%"},"#video-progress-total":{width:"100%","background-color":this.j.gb,opacity:"0.7"},"#video-elapsed":{width:"0","background-color":"#6cb6f5",opacity:"0.9"},"#video #video-time":{width:"10%",right:"0","font-size":"11px","line-height":"25px",color:this.j.wb,"background-color":"#666","border-radius":"0 0 5px 0"}};this.W("ie",8)&&c.extend(a,{"* html #overlay":{position:"absolute"},"* html #bg":{position:"absolute"},"html, body":{height:"100%"}}); this.W("ie",7)&&c.extend(a,{"#mini #body":{display:"inline",zoom:"1",border:"1px solid "+this.j.Da},"#mini #body-text":{padding:"20px"},"#mini #mini-icon":{display:"none"}});var b="backface-visibility,border-radius,box-shadow,opacity,perspective,transform,transform-style,transition".split(","),d=["khtml","moz","ms","o","webkit"],m;for(m in a)for(e=0;e +c.replace(/#/g,"#"+h.A+"-").replace(/\./g,"."+h.A+"-"),b=b+("\n"+e+" {"),e=a[c],g;for(g in e)b+=g+":"+e[g]+";";b+="}"}return b}var c=d(a)+function(a){var b="",c;for(c in a)b+="\n"+c+" {"+d(a[c])+"\n}";return b}(b),e=o.head||o.getElementsByTagName("head")[0]||o.documentElement,g=o.createElement("style");e.appendChild(g);g.setAttribute("type","text/css");g.styleSheet?g.styleSheet.cssText=c:g.textContent=c})(a,f)};h.prototype.ad=c.m(function(){if(this.Pa){var a=this;a.Gc="postMessage"in t;a.$=a.Pa;var b= +a.Pa.match(/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i),c=a.Pa.match(/vimeo\.com\/.*?(\d+)/i);if(b){if(a.ca=p,a.Fc=b[1],a.Gc)t.onYouTubeIframeAPIReady=function(){a.k("video-frame")&&a.Mb()},b=o.createElement("script"),b.src=a.Ja+"www.youtube.com/iframe_api",c=o.getElementsByTagName("script")[0],c.parentNode.insertBefore(b,c)}else if(c)a.ca=p,a.Ec=c[1];if(a.W("ie",7)||a.W("firefox",3))a.ca=D,a.Fa=p}});h.prototype.Hb=c.m(function(){function a(a, +b){var c={};if(o.defaultView&&o.defaultView.getComputedStyle)c=o.defaultView.getComputedStyle(a,w);else if(a.currentStyle)c=a.currentStyle;return c[b]}var b=this;c.J(b.k("bg"),"click",function(){b.ib()});if(this.I){var d=this.k("overlay");d&&"hidden"!==a(d,"visibility")&&"none"!==a(d,"display")&&this.Ib()}});h.prototype.Ib=c.m(function(a){if(!this.gc)this.gc=p,this.I&&(this.Fb()[this.I]=1*new Date,this.vb.save()),this.cb("$campaign_delivery",a),this.ba.people.append({$campaigns:this.I,$notifications:{campaign_id:this.I, +message_id:this.hc,type:"web",time:new Date}})});h.prototype.fd=function(a){var b=this;if(0===this.Ia.length)a();else{for(var c=0,e=[],g=function(){c++;c===b.Ia.length&&a&&(a(),a=w)},f=0;f (y.__SV||0)?s.Z("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(c.a(y._i,function(a){a&&c.isArray(a)&&(F[a[a.length-1]]=T.apply(this,a))}),ra(),y.init(),c.a(F,function(a){a.Ca()}),ca())})()})(); })(); diff --git a/package.json b/package.json index 2493cc0b..a8550493 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mixpanel-browser", - "version": "2.27.1", + "version": "2.28.0", "description": "The official Mixpanel JavaScript browser client library", "main": "build/mixpanel.cjs.js", "directories": { diff --git a/src/config.js b/src/config.js index 664ce7ef..ae1e01a9 100644 --- a/src/config.js +++ b/src/config.js @@ -1,6 +1,6 @@ var Config = { DEBUG: false, - LIB_VERSION: '2.27.1' + LIB_VERSION: '2.28.0' }; export default Config; diff --git a/src/mixpanel-core.js b/src/mixpanel-core.js index a7966954..f526f69d 100644 --- a/src/mixpanel-core.js +++ b/src/mixpanel-core.js @@ -838,7 +838,7 @@ MixpanelLib.prototype.init = function (token, config, name) { MixpanelLib.prototype._init = function(token, config, name) { this['__loaded'] = true; this['config'] = {}; - this._triggered_notifs = []; + this['_triggered_notifs'] = []; this.set_config(_.extend({}, DEFAULT_CONFIG, config, { 'name': name, @@ -1817,7 +1817,7 @@ MixpanelLib.prototype._event_is_disabled = function(event_name) { }; MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) { - var arr = this._triggered_notifs; + var arr = this['_triggered_notifs']; for (var i = 0; i < arr.length; i++) { var notif = new MPNotif(arr[i], this); if (notif._matches_event_data(event_data)) { @@ -1850,10 +1850,10 @@ MixpanelLib.prototype._check_and_handle_notifications = addOptOutCheckMixpanelLi data, this._prepare_callback(_.bind(function(result) { if (result['notifications'] && result['notifications'].length > 0) { - this._triggered_notifs = []; + this['_triggered_notifs'] = []; var notifications = []; _.each(result['notifications'], function(notif) { - (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif); + (notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif); }, this); if (notifications.length > 0) { this._show_notification.call(this, notifications[0]);