mixpanel-browser 2.71.0 → 2.71.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,27 @@
1
1
  (function(){function Jb(){function a(){a.done||(Ta=a.done=!0,Ua=!1,d.h(S,function(e){e.Yd()}))}function b(){try{x.documentElement.doScroll("left")}catch(e){setTimeout(b,1);return}a()}if(x.addEventListener)"complete"===x.readyState?a():x.addEventListener("DOMContentLoaded",a,!1);else if(x.attachEvent){x.attachEvent("onreadystatechange",a);var c=!1;try{c=null===q.frameElement}catch(e){}x.documentElement.doScroll&&c&&b()}d.Ad(q,"load",a,!0)}function Kb(){F.init=function(a,b,c){if(c)return F[c]||(F[c]=
2
- S[c]=qa(a,b,c),F[c].Sa()),F[c];c=F;S.mixpanel?c=S.mixpanel:a&&(c=qa(a,b,"mixpanel"),c.Sa(),S.mixpanel=c);F=c;1===Aa&&(q.mixpanel=F);Lb()}}function Lb(){d.h(S,function(a,b){"mixpanel"!==b&&(F[b]=a)});F._=d}function Ba(a){a=d.j(a)?a:d.m(a)?{}:{days:a};return d.extend({},Mb,a)}function qa(a,b,c){var e="mixpanel"===c?F:F[c];if(e&&0===Aa)var f=e;else{if(e&&!d.isArray(e)){A.error("You have already initialized "+c);return}f=new l}f.rc={};f.ya(a,b,c);f.people=new y;f.people.ya(f);if(!f.g("skip_first_touch_marketing")){a=
3
- d.info.za(null);var g={},k=!1;d.h(a,function(h,p){(g["initial_"+p]=h)&&(k=!0)});k&&f.people.na(g)}T=T||f.g("debug");!d.m(e)&&d.isArray(e)&&(f.qb.call(f.people,e.people),f.qb(e));return f}function l(){}function Nb(a){return a}function Va(a){throw Error(a+" not available in this build.");}function U(a){this.ea=null;this.Pf=a}function z(a){this.props={};this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;"cookie"!==b&&"localStorage"!==b&&(A.l("Unknown persistence type "+
2
+ S[c]=qa(a,b,c),F[c].Sa()),F[c];c=F;S.mixpanel?c=S.mixpanel:a&&(c=qa(a,b,"mixpanel"),c.Sa(),S.mixpanel=c);F=c;1===Aa&&(q.mixpanel=F);Lb()}}function Lb(){d.h(S,function(a,b){"mixpanel"!==b&&(F[b]=a)});F._=d}function Ba(a){a=d.j(a)?a:d.m(a)?{}:{days:a};return d.extend({},Mb,a)}function qa(a,b,c){var e="mixpanel"===c?F:F[c];if(e&&0===Aa)var f=e;else{if(e&&!d.isArray(e)){A.error("You have already initialized "+c);return}f=new l}f.rc={};f.za(a,b,c);f.people=new y;f.people.za(f);if(!f.g("skip_first_touch_marketing")){a=
3
+ d.info.Aa(null);var g={},k=!1;d.h(a,function(h,p){(g["initial_"+p]=h)&&(k=!0)});k&&f.people.oa(g)}T=T||f.g("debug");!d.m(e)&&d.isArray(e)&&(f.qb.call(f.people,e.people),f.qb(e));return f}function l(){}function Nb(a){return a}function Va(a){throw Error(a+" not available in this build.");}function U(a){this.ea=null;this.Pf=a}function z(a){this.props={};this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;"cookie"!==b&&"localStorage"!==b&&(A.l("Unknown persistence type "+
4
4
  b+"; falling back to cookie"),b=a.persistence="cookie");"localStorage"===b&&d.localStorage.Da()?this.storage=d.localStorage:this.storage=d.cookie;this.load();this.Sd(a);this.upgrade();this.save()}function y(){}function D(){}function M(a,b){this.fa=b.fa;this.Ka=new O(a,{fa:d.bind(this.s,this),T:b.T,Jd:b.Jd,Kd:b.Kd,C:b.C,Fb:b.Fb});this.S=b.S;this.wf=b.xf;this.Ua=b.Ua;this.Lf=b.Mf;this.V=this.S.batch_size;this.Za=this.S.batch_flush_interval_ms;this.stopped=!this.S.batch_autostart;this.Cb=0;this.$={};
5
- this.Rc=b.Rc||!1}function Wa(a,b){var c=[];d.h(a,function(e){var f=e.id;f in b?(f=b[f],null!==f&&(e.payload=f,c.push(e))):c.push(e)});return c}function Xa(a,b){var c=[];d.h(a,function(e){e.id&&!b[e.id]&&c.push(e)});return c}function O(a,b){b=b||{};this.oa=a;if(this.C=b.C)this.T=b.T||new ia,this.lock=new Ya(a,{storage:b.Jd||q.localStorage,kc:b.Kd});this.s=b.fa||d.bind(Za.error,Za);this.hb=b.hb||null;this.L=[];this.Sb=!1;this.ze=b.Fb?Ob(d.bind(this.tc,this),b.Fb):d.bind(function(c){return this.tc([c])},
6
- this)}function ia(a){this.storage=a||q.localStorage}function Ya(a,b){b=b||{};this.oa=a;this.storage=b.storage||q.localStorage;this.wd=b.wd||100;this.kc=b.kc||2E3;this.yd=b.yd||E}function ra(){this.td="submit"}function da(){this.td="click"}function R(){}function B(a){this.fetch=q.fetch;this.Kb=a.Kb;this.Aa=a.Ee;this.Bf=a.Af;this.Tc=a.Ie;this.track=a.cg}function G(a){this.u=a;this.ja=0;this.Pb=!1;this.Ia=0}function ja(){}function $a(a){var b=Pb,c=a.split(".");c=c[c.length-1];if(4<c.length||"com"===
7
- c||"org"===c)b=Qb;return(a=a.match(b))?a[0]:""}function Rb(){var a=d.ta().replace(/-/g,""),b=d.ta().replace(/-/g,"").substring(0,16);return"00-"+a+"-"+b+"-01"}function Ca(a){var b=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return a?b.substring(0,a):b}function Ob(a,b){var c=null,e=[];return function(f){var g=this;e.push(f);c||(c=new E(function(k){setTimeout(function(){var h=a.apply(g,[e]);c=null;e=[];k(h)},b)}));return c}}function sa(a,b){return null===Da||
5
+ this.Rc=b.Rc||!1}function Wa(a,b){var c=[];d.h(a,function(e){var f=e.id;f in b?(f=b[f],null!==f&&(e.payload=f,c.push(e))):c.push(e)});return c}function Xa(a,b){var c=[];d.h(a,function(e){e.id&&!b[e.id]&&c.push(e)});return c}function O(a,b){b=b||{};this.pa=a;if(this.C=b.C)this.T=b.T||new ia,this.lock=new Ya(a,{storage:b.Jd||q.localStorage,kc:b.Kd});this.s=b.fa||d.bind(Za.error,Za);this.hb=b.hb||null;this.L=[];this.Sb=!1;this.ze=b.Fb?Ob(d.bind(this.tc,this),b.Fb):d.bind(function(c){return this.tc([c])},
6
+ this)}function ia(a){this.storage=a||q.localStorage}function Ya(a,b){b=b||{};this.pa=a;this.storage=b.storage||q.localStorage;this.wd=b.wd||100;this.kc=b.kc||2E3;this.yd=b.yd||E}function ra(){this.td="submit"}function da(){this.td="click"}function R(){}function B(a){this.fetch=q.fetch;this.Kb=a.Kb;this.Ba=a.Ee;this.Bf=a.Af;this.Tc=a.Ie;this.track=a.cg}function G(a){this.u=a;this.ka=0;this.Pb=!1;this.Ia=0}function ja(){}function $a(a){var b=Pb,c=a.split(".");c=c[c.length-1];if(4<c.length||"com"===
7
+ c||"org"===c)b=Qb;return(a=a.match(b))?a[0]:""}function Rb(){var a=d.ua().replace(/-/g,""),b=d.ua().replace(/-/g,"").substring(0,16);return"00-"+a+"-"+b+"-01"}function Ca(a){var b=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return a?b.substring(0,a):b}function Ob(a,b){var c=null,e=[];return function(f){var g=this;e.push(f);c||(c=new E(function(k){setTimeout(function(){var h=a.apply(g,[e]);c=null;e=[];k(h)},b)}));return c}}function sa(a,b){return null===Da||
8
8
  b?Da=ab(a||q.localStorage):Da}function ab(a){var b=!0;try{var c="__mplss_"+Ca(8);a.setItem(c,"xyz");"xyz"!==a.getItem(c)&&(b=!1);a.removeItem(c)}catch(e){b=!1}return b}function bb(a){a=a.prototype;for(var b in a)"function"===typeof a[b]&&(a[b]=ka(a[b]))}function ka(a){return function(){try{return a.apply(this,arguments)}catch(b){A.l("Implementation error. Please turn on debug and contact support@mixpanel.com."),T&&A.l(b)}}}function la(a){return{log:Ea(A.log,a),error:Ea(A.error,a),l:Ea(A.l,a)}}function Ea(a,
9
9
  b){return function(){arguments[0]="["+b+"] "+arguments[0];return a.apply(A,arguments)}}function ta(a,b){cb.add(a,b);Fa||(Fa=Sb(cb.ye))}function db(a){var b=typeof a;if(null!==a&&("object"===b||"function"===b))var c=a.then;return"function"===typeof c?c:!1}function Ga(){for(var a=0;a<this.P.length;a++){var b=void 0,c=void 0,e=1===this.state?this.P[a].Qf:this.P[a].Ae,f=this.P[a];try{!1===e?f.reject(this.Ga):(c=!0===e?this.Ga:e.call(void 0,this.Ga),c===f.promise?f.reject(TypeError("Promise-chain cycle")):
10
10
  (b=db(c))?b.call(c,f.resolve,f.reject):f.resolve(c))}catch(g){f.reject(g)}}this.P.length=0}function eb(a){var b,c=this;if(!c.Oa){c.Oa=!0;c.Ya&&(c=c.Ya);try{(b=db(a))?ta(function(){var e=new fb(c);try{b.call(a,function(){eb.apply(e,arguments)},function(){ma.apply(e,arguments)})}catch(f){ma.call(e,f)}}):(c.Ga=a,c.state=1,0<c.P.length&&ta(Ga,c))}catch(e){ma.call(new fb(c),e)}}}function ma(a){var b=this;b.Oa||(b.Oa=!0,b.Ya&&(b=b.Ya),b.Ga=a,b.state=2,0<b.P.length&&ta(Ga,b))}function gb(a,b,c,e){for(var f=
11
11
  0;f<b.length;f++)(function(g){a.resolve(b[g]).then(function(k){c(g,k)},e)})(f)}function fb(a){this.Ya=a;this.Oa=!1}function Tb(a){this.promise=a;this.state=0;this.Oa=!1;this.P=[];this.Ga=void 0}function V(a){if("function"!==typeof a)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var b=new Tb(this);this.then=function(c,e){var f={Qf:"function"===typeof c?c:!0,Ae:"function"===typeof e?e:!1};f.promise=new this.constructor(function(g,k){if("function"!==
12
- typeof g||"function"!==typeof k)throw TypeError("Not a function");f.resolve=g;f.reject=k});b.P.push(f);0!==b.state&&ta(Ga,b);return f.promise};this["catch"]=function(c){return this.then(void 0,c)};try{a.call(void 0,function(c){eb.call(b,c)},function(c){ma.call(b,c)})}catch(c){ma.call(b,c)}}function hb(a,b,c){function e(f){A.error(b+" error: "+f)}return{Da:function(f){(f=c(a,f))||A.error(b+" unsupported");return f},error:e,get:function(f){try{return a.getItem(f)}catch(g){e(g)}return null},parse:function(f){try{return d.sa(a.getItem(f))||
12
+ typeof g||"function"!==typeof k)throw TypeError("Not a function");f.resolve=g;f.reject=k});b.P.push(f);0!==b.state&&ta(Ga,b);return f.promise};this["catch"]=function(c){return this.then(void 0,c)};try{a.call(void 0,function(c){eb.call(b,c)},function(c){ma.call(b,c)})}catch(c){ma.call(b,c)}}function hb(a,b,c){function e(f){A.error(b+" error: "+f)}return{Da:function(f){(f=c(a,f))||A.error(b+" unsupported");return f},error:e,get:function(f){try{return a.getItem(f)}catch(g){e(g)}return null},parse:function(f){try{return d.ta(a.getItem(f))||
13
13
  {}}catch(g){}return null},set:function(f,g){try{a.setItem(f,g)}catch(k){e(k)}},remove:function(f){try{a.removeItem(f)}catch(g){e(g)}}}}function Ha(a){var b={};a=ib(a).split(" ");for(var c=0;c<a.length;c++){var e=a[c];e&&(b[e]=!0)}return b}function ib(a){switch(typeof a.className){case "string":return a.className;case "object":return a.className.ig||a.getAttribute("class")||"";default:return""}}function Ub(a){if(a.previousElementSibling)return a.previousElementSibling;do a=a.previousSibling;while(a&&
14
14
  (!a||1!==a.nodeType));return a}function jb(a,b,c,e,f,g){var k={$classes:ib(a).split(" "),$tag_name:a.tagName.toLowerCase()},h=a.id;h&&(k.$id=h);Ia(a,b,f,g)&&d.h(Vb.concat(e),function(p){if(a.hasAttribute(p)&&!c[p]){var r=a.getAttribute(p);ua(r)&&(k["$attr-"+p]=r)}});e=b=1;for(f=a;f=Ub(f);)b++,f.tagName===a.tagName&&e++;k.$nth_child=b;k.$nth_of_type=e;return k}function Wb(a,b){var c=b.je,e=b.ke||[],f=b.oe,g=b.pe||[],k=b.se||!1,h=b.re||[],p=b.te||!1,r={};d.h(b.ne||[],function(v){r[v]=!0});var n=null,
15
15
  m="undefined"===typeof a.target?a.srcElement:a.target;m&&3===m.nodeType&&(m=m.parentNode);if(Xb(m,a)&&Ja(m,a,c,e)&&!Ka(m,a,f,g)){b=[m];for(var t=m;t.parentNode&&!P(t,"body");)b.push(t.parentNode),t=t.parentNode;var w=[],u,I=!1;d.h(b,function(v){var N=Ia(v,a,c,e);r.href||"a"!==v.tagName.toLowerCase()||(u=v.getAttribute("href"),u=N&&ua(u)&&u);Ka(v,a,f,g)&&(I=!0);w.push(jb(v,a,r,h,c,e))},this);if(!I&&(b=x.documentElement,n={$event_type:a.type,$host:q.location.host,$pathname:q.location.pathname,$elements:w,
16
16
  $el_attr__href:u,$viewportHeight:Math.max(b.clientHeight,q.innerHeight||0),$viewportWidth:Math.max(b.clientWidth,q.innerWidth||0),$pageHeight:x.body.offsetHeight||0,$pageWidth:x.body.offsetWidth||0},d.h(h,function(v){if(!r[v]&&m.hasAttribute(v)){var N=m.getAttribute(v);ua(N)&&(n["$el_attr__"+v]=N)}}),k&&(b=kb(m,a,c,e))&&b.length&&(n.$el_text=b),"click"===a.type&&(d.h(Yb,function(v){v in a&&(n["$"+v]=a[v])}),p&&(n.$captured_for_heatmap=!0),m=Zb(a)),k&&(b=kb(m,a,c,e))&&b.length&&(n.$el_text=b),m)){if(!Ja(m,
17
- a,c,e)||Ka(m,a,f,g))return null;k=jb(m,a,r,h,c,e);n.$target=k;n.$el_classes=k.$classes;d.extend(n,d.pa({$el_id:k.$id,$el_tag_name:k.$tag_name}))}}return n}function kb(a,b,c,e){var f="";Ia(a,b,c,e)&&a.childNodes&&a.childNodes.length&&d.h(a.childNodes,function(g){g&&3===g.nodeType&&g.textContent&&(f+=d.trim(g.textContent).split(/(\s+)/).filter(ua).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))});return d.trim(f)}function Zb(a){var b=a.target;a=a.composedPath();for(var c=0;c<
17
+ a,c,e)||Ka(m,a,f,g))return null;k=jb(m,a,r,h,c,e);n.$target=k;n.$el_classes=k.$classes;d.extend(n,d.qa({$el_id:k.$id,$el_tag_name:k.$tag_name}))}}return n}function kb(a,b,c,e){var f="";Ia(a,b,c,e)&&a.childNodes&&a.childNodes.length&&d.h(a.childNodes,function(g){g&&3===g.nodeType&&g.textContent&&(f+=d.trim(g.textContent).split(/(\s+)/).filter(ua).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))});return d.trim(f)}function Zb(a){var b=a.target;a=a.composedPath();for(var c=0;c<
18
18
  a.length;c++){var e=a[c];if(P(e,"a")||P(e,"button")||P(e,"input")||P(e,"select")||e.getAttribute&&"button"===e.getAttribute("role")){b=e;break}if(e===b)break}return b}function Ja(a,b,c,e){if(c)try{if(!c(a,b))return!1}catch(f){return C.l("Error while checking element in allowElementCallback",f),!1}if(!e.length)return!0;for(b=0;b<e.length;b++){c=e[b];try{if(a.matches(c))return!0}catch(f){C.l("Error while checking selector: "+c,f)}}return!1}function Ka(a,b,c,e){if(c)try{if(c(a,b))return!0}catch(f){return C.l("Error while checking element in blockElementCallback",
19
19
  f),!0}if(e&&e.length)for(b=0;b<e.length;b++){c=e[b];try{if(a.matches(c))return!0}catch(f){C.l("Error while checking selector: "+c,f)}}a=Ha(a);for(b=0;b<La.length;b++)if(a[La[b]])return!0;return!1}function P(a,b){return a&&a.tagName&&a.tagName.toLowerCase()===b.toLowerCase()}function Xb(a,b){if(!a||P(a,"html")||!a||1!==a.nodeType)return!1;switch(a.tagName.toLowerCase()){case "form":return"submit"===b.type;case "input":return-1===["button","submit"].indexOf(a.getAttribute("type"))?"change"===b.type:
20
20
  "click"===b.type;case "select":case "textarea":return"change"===b.type;default:return"click"===b.type}}function Ia(a,b,c,e){if(!Ja(a,b,c,e))return!1;for(c=a;c.parentNode&&!P(c,"body");c=c.parentNode)for(e=Ha(c),b=0;b<lb.length;b++)if(e[lb[b]])return!1;c=Ha(a);for(b=0;b<mb.length;b++)if(c[mb[b]])return!0;if(P(a,"input")||P(a,"select")||P(a,"textarea")||"true"===a.getAttribute("contenteditable"))return!1;b=a.type||"";if("string"===typeof b)switch(b.toLowerCase()){case "hidden":return!1;case "password":return!1}a=
21
21
  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,""))?!1:!0}function ua(a){return null===a||d.m(a)||"string"===typeof a&&(a=d.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))?
22
22
  !1:!0}function nb(a){var b="onscrollend"in q,c=ka(a),e="scrollend";if(!b){var f=null;c=ka(function(){clearTimeout(f);f=setTimeout(a,100)});e="scroll"}return{listener:c,Qc:e}}function Ma(a){var b=a.tagName.toLowerCase(),c;if(!(c="button"===b||"input"===b||"select"===b||"textarea"===b||"details"===b||"dialog"===b||a.isContentEditable||a.onclick||a.onmousedown||a.onmouseup||a.ontouchstart||a.ontouchend))a:{for(c=0;c<ob.length;c++)if(a.hasAttribute(ob[c])){c=!0;break a}c=!1}c||((c=a.getAttribute("role"))?
23
23
  (c=c.trim().split(/\s+/)[0].toLowerCase(),c=$b[c]):c=!1);return c||"a"===b&&a.hasAttribute("href")||a.hasAttribute("tabindex")?!0:!1}function ac(a){if(!a||!a.tagName)return!0;var b=a.tagName.toLowerCase();if(bc[b])return!0;if(Ma(a))return!1;a=a.parentElement;for(var c=0;a&&5>c;){if(Ma(a))return!1;if(a.getRootNode&&a.getRootNode()!==x){var e=a.getRootNode();if(e.host&&Ma(e.host))return!1}a=a.parentElement;c++}return cc[b]?!0:!1}function pb(){this.da=[]}function Z(a,b){this.ue=a||function(){};this.kf=
24
- b;this.M=null;this.jb=[]}function Q(a){this.Y=[];this.I=this.Ha=null;this.ia=!1;this.Wb=0;this.aa=[];this.qd=a;this.ka=!1;this.ib=null}function dc(a,b){qb(!0,a,b)}function ec(a,b){qb(!1,a,b)}function fc(a,b){return"1"===rb(a,b)}function sb(a,b){if(gc(b))return A.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;(a="0"===rb(a,
24
+ b;this.M=null;this.jb=[]}function Q(a){this.Y=[];this.I=this.Ha=null;this.ia=!1;this.Wb=0;this.aa=[];this.qd=a;this.la=!1;this.ib=null}function dc(a,b){qb(!0,a,b)}function ec(a,b){qb(!1,a,b)}function fc(a,b){return"1"===rb(a,b)}function sb(a,b){if(gc(b))return A.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;(a="0"===rb(a,
25
25
  b))&&A.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data.");return a}function aa(a){return Na(a,function(b){return this.g(b)})}function W(a){return Na(a,function(b){return this.J(b)})}function ea(a){return Na(a,function(b){return this.J(b)})}function hc(a,b){b=b||{};Oa(b).remove(Pa(a,b),!!b.Lc,b.Jc)}function Oa(a){a=a||{};return"localStorage"===a.vd?d.localStorage:d.cookie}function Pa(a,b){b=b||{};return(b.ud||"__mp_opt_in_out_")+a}function rb(a,
26
26
  b){return Oa(b).get(Pa(a,b))}function gc(a){if(a&&a.$c)return!1;a=a&&a.window||q;var b=a.navigator||{},c=!1;d.h([b.doNotTrack,b.msDoNotTrack,a.doNotTrack],function(e){d.includes([!0,1,"1","yes"],e)&&(c=!0)});return c}function qb(a,b,c){d.Ub(b)&&b.length?(c=c||{},Oa(c).set(Pa(b,c),a?1:0,d.bf(c.Kc)?c.Kc:null,!!c.Lc,!!c.vf,!!c.ve,c.Jc),c.track&&a&&c.track(c.Wf||"$opt_in",c.Yf,{send_immediately:!0})):A.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token")}function Na(a,b){return function(){var c=
27
27
  !1;try{var e=b.call(this,"token"),f=b.call(this,"ignore_dnt"),g=b.call(this,"opt_out_tracking_persistence_type"),k=b.call(this,"opt_out_tracking_cookie_prefix"),h=b.call(this,"window");e&&(c=sb(e,{$c:f,vd:g,ud:k,window:h}))}catch(p){A.error("Unexpected error when checking tracking opt-out status: "+p)}if(!c)return a.apply(this,arguments);c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}var T=!1;if("undefined"===typeof window){var tb={hostname:""};var q={crypto:{lg:function(){throw Error("unsupported");
@@ -29,63 +29,63 @@ b){return Oa(b).get(Pa(a,b))}function gc(a){if(a&&a.$c)return!1;a=a&&a.window||q
29
29
  c,e){b[c]=e;return b}}var cb=function(){function a(f,g){this.Ce=f;this.self=g;this.next=void 0}var b,c,e;return{add:function(f,g){e=new a(f,g);c?c.next=e:b=e;c=e;e=void 0},ye:function(){var f=b;for(b=c=Fa=void 0;f;)f.Ce.call(f.self),f=f.next}}}();var wb=ba({},"constructor",V,!1);V.prototype=wb;ba(wb,"__NPO__",0,!1);ba(V,"resolve",function(a){return a&&"object"===typeof a&&1===a.__NPO__?a:new this(function(b,c){if("function"!==typeof b||"function"!==typeof c)throw TypeError("Not a function");b(a)})});
30
30
  ba(V,"reject",function(a){return new this(function(b,c){if("function"!==typeof b||"function"!==typeof c)throw TypeError("Not a function");c(a)})});ba(V,"all",function(a){var b=this;return"[object Array]"!==vb.call(a)?b.reject(TypeError("Not an array")):0===a.length?b.resolve([]):new b(function(c,e){if("function"!==typeof c||"function"!==typeof e)throw TypeError("Not a function");var f=a.length,g=Array(f),k=0;gb(b,a,function(h,p){g[h]=p;++k===f&&c(g)},e)})});ba(V,"race",function(a){var b=this;return"[object Array]"!==
31
31
  vb.call(a)?b.reject(TypeError("Not an array")):new b(function(c,e){if("function"!==typeof c||"function"!==typeof e)throw TypeError("Not a function");gb(b,a,function(f,g){c(g)},e)})});var E="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:V;var va=Array.prototype,xb=Object.prototype,ca=va.slice,na=xb.toString,wa=xb.hasOwnProperty,H=q.console,X=q.navigator,x=q.document,xa=q.opera,yb=q.screen,J=X.userAgent,Qa=Function.prototype.bind,zb=va.forEach,Ab=va.indexOf,Bb=
32
- va.map,ic=Array.isArray,Ra={},d={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},A={log:function(){if(T&&!d.m(H)&&H)try{H.log.apply(H,arguments)}catch(a){d.h(arguments,function(b){H.log(b)})}},warn:function(){if(T&&!d.m(H)&&H){var a=["Mixpanel warning:"].concat(d.qa(arguments));try{H.warn.apply(H,a)}catch(b){d.h(a,function(c){H.warn(c)})}}},error:function(){if(T&&!d.m(H)&&H){var a=["Mixpanel error:"].concat(d.qa(arguments));try{H.error.apply(H,a)}catch(b){d.h(a,function(c){H.error(c)})}}},
33
- l:function(){if(!d.m(H)&&H){var a=["Mixpanel error:"].concat(d.qa(arguments));try{H.error.apply(H,a)}catch(b){d.h(a,function(c){H.error(c)})}}}};d.bind=function(a,b){var c;if(Qa&&a.bind===Qa)return Qa.apply(a,ca.call(arguments,1));if(!d.Tb(a))throw new TypeError;var e=ca.call(arguments,2);return c=function(){if(!(this instanceof c))return a.apply(b,e.concat(ca.call(arguments)));var f={};f.prototype=a.prototype;var g=new f;f.prototype=null;f=a.apply(g,e.concat(ca.call(arguments)));return Object(f)===
32
+ va.map,ic=Array.isArray,Ra={},d={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},A={log:function(){if(T&&!d.m(H)&&H)try{H.log.apply(H,arguments)}catch(a){d.h(arguments,function(b){H.log(b)})}},warn:function(){if(T&&!d.m(H)&&H){var a=["Mixpanel warning:"].concat(d.ra(arguments));try{H.warn.apply(H,a)}catch(b){d.h(a,function(c){H.warn(c)})}}},error:function(){if(T&&!d.m(H)&&H){var a=["Mixpanel error:"].concat(d.ra(arguments));try{H.error.apply(H,a)}catch(b){d.h(a,function(c){H.error(c)})}}},
33
+ l:function(){if(!d.m(H)&&H){var a=["Mixpanel error:"].concat(d.ra(arguments));try{H.error.apply(H,a)}catch(b){d.h(a,function(c){H.error(c)})}}}};d.bind=function(a,b){var c;if(Qa&&a.bind===Qa)return Qa.apply(a,ca.call(arguments,1));if(!d.Tb(a))throw new TypeError;var e=ca.call(arguments,2);return c=function(){if(!(this instanceof c))return a.apply(b,e.concat(ca.call(arguments)));var f={};f.prototype=a.prototype;var g=new f;f.prototype=null;f=a.apply(g,e.concat(ca.call(arguments)));return Object(f)===
34
34
  f?f:g}};d.h=function(a,b,c){if(null!==a&&void 0!==a)if(zb&&a.forEach===zb)a.forEach(b,c);else if(a.length===+a.length)for(var e=0,f=a.length;e<f&&!(e in a&&b.call(c,a[e],e,a)===Ra);e++);else for(e in a)if(wa.call(a,e)&&b.call(c,a[e],e,a)===Ra)break};d.extend=function(a){d.h(ca.call(arguments,1),function(b){for(var c in b)void 0!==b[c]&&(a[c]=b[c])});return a};d.isArray=ic||function(a){return"[object Array]"===na.call(a)};d.Tb=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return!1}};d.Ze=
35
- function(a){return!(!a||!wa.call(a,"callee"))};d.qa=function(a){return a?a.qa?a.qa():d.isArray(a)||d.Ze(a)?ca.call(a):d.values(a):[]};d.map=function(a,b,c){if(Bb&&a.map===Bb)return a.map(b,c);var e=[];d.h(a,function(f){e.push(b.call(c,f))});return e};d.keys=function(a){var b=[];if(null===a)return b;d.h(a,function(c,e){b[b.length]=e});return b};d.values=function(a){var b=[];if(null===a)return b;d.h(a,function(c){b[b.length]=c});return b};d.Rb=function(a,b){var c=!1;if(null===a)return c;if(Ab&&a.indexOf===
35
+ function(a){return!(!a||!wa.call(a,"callee"))};d.ra=function(a){return a?a.ra?a.ra():d.isArray(a)||d.Ze(a)?ca.call(a):d.values(a):[]};d.map=function(a,b,c){if(Bb&&a.map===Bb)return a.map(b,c);var e=[];d.h(a,function(f){e.push(b.call(c,f))});return e};d.keys=function(a){var b=[];if(null===a)return b;d.h(a,function(c,e){b[b.length]=e});return b};d.values=function(a){var b=[];if(null===a)return b;d.h(a,function(c){b[b.length]=c});return b};d.Rb=function(a,b){var c=!1;if(null===a)return c;if(Ab&&a.indexOf===
36
36
  Ab)return-1!=a.indexOf(b);d.h(a,function(e){if(c||(c=e===b))return Ra});return c};d.includes=function(a,b){return-1!==a.indexOf(b)};d.bd=function(a,b){a.prototype=new b;a.prototype.constructor=a;a.Rf=b.prototype};d.j=function(a){return a===Object(a)&&!d.isArray(a)};d.cb=function(a){if(d.j(a)){for(var b in a)if(wa.call(a,b))return!1;return!0}return!1};d.m=function(a){return void 0===a};d.Ub=function(a){return"[object String]"==na.call(a)};d.$e=function(a){return"[object Date]"==na.call(a)};d.bf=function(a){return"[object Number]"==
37
- na.call(a)};d.af=function(a){return!(!a||1!==a.nodeType)};d.Eb=function(a){d.h(a,function(b,c){d.$e(b)?a[c]=d.De(b):d.j(b)&&(a[c]=d.Eb(b))});return a};d.timestamp=function(){Date.now=Date.now||function(){return+new Date};return Date.now()};d.De=function(a){function b(c){return 10>c?"0"+c:c}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};d.pa=function(a){var b={};d.h(a,function(c,e){d.Ub(c)&&0<c.length&&
37
+ na.call(a)};d.af=function(a){return!(!a||1!==a.nodeType)};d.Eb=function(a){d.h(a,function(b,c){d.$e(b)?a[c]=d.De(b):d.j(b)&&(a[c]=d.Eb(b))});return a};d.timestamp=function(){Date.now=Date.now||function(){return+new Date};return Date.now()};d.De=function(a){function b(c){return 10>c?"0"+c:c}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};d.qa=function(a){var b={};d.h(a,function(c,e){d.Ub(c)&&0<c.length&&
38
38
  (b[e]=c)});return b};d.truncate=function(a,b){if("string"===typeof a)var c=a.slice(0,b);else d.isArray(a)?(c=[],d.h(a,function(e){c.push(d.truncate(e,b))})):d.j(a)?(c={},d.h(a,function(e,f){c[f]=d.truncate(e,b)})):c=a;return c};d.pc=function(){return function(a){function b(e,f){var g="";var k="";var h=g;(f=f[e])&&"object"===typeof f&&"function"===typeof f.toJSON&&(f=f.toJSON(e));switch(typeof f){case "string":return c(f);case "number":return isFinite(f)?String(f):"null";case "boolean":case "null":return String(f);
39
39
  case "object":if(!f)return"null";g+=" ";e=[];if("[object Array]"===na.apply(f)){var p=f.length;for(k=0;k<p;k+=1)e[k]=b(k,f)||"null";return p=0===e.length?"[]":g?"[\n"+g+e.join(",\n"+g)+"\n"+h+"]":"["+e.join(",")+"]"}for(k in f)wa.call(f,k)&&(p=b(k,f))&&e.push(c(k)+(g?": ":":")+p);return p=0===e.length?"{}":g?"{"+e.join(",")+h+"}":"{"+e.join(",")+"}"}}function c(e){var f=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,g={"\b":"\\b",
40
- "\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};f.lastIndex=0;return f.test(e)?'"'+e.replace(f,function(k){var h=g[k];return"string"===typeof h?h:"\\u"+("0000"+k.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}return b("",{"":a})}}();d.sa=function(){function a(){switch(h){case "t":return f("t"),f("r"),f("u"),f("e"),!0;case "f":return f("f"),f("a"),f("l"),f("s"),f("e"),!1;case "n":return f("n"),f("u"),f("l"),f("l"),null}g('Unexpected "'+h+'"')}function b(){for(;h&&" ">=h;)f()}
40
+ "\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};f.lastIndex=0;return f.test(e)?'"'+e.replace(f,function(k){var h=g[k];return"string"===typeof h?h:"\\u"+("0000"+k.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}return b("",{"":a})}}();d.ta=function(){function a(){switch(h){case "t":return f("t"),f("r"),f("u"),f("e"),!0;case "f":return f("f"),f("a"),f("l"),f("s"),f("e"),!1;case "n":return f("n"),f("u"),f("l"),f("l"),null}g('Unexpected "'+h+'"')}function b(){for(;h&&" ">=h;)f()}
41
41
  function c(){var m,t="",w;if('"'===h)for(;f();){if('"'===h)return f(),t;if("\\"===h)if(f(),"u"===h){for(m=w=0;4>m;m+=1){var u=parseInt(f(),16);if(!isFinite(u))break;w=16*w+u}t+=String.fromCharCode(w)}else if("string"===typeof p[h])t+=p[h];else break;else t+=h}g("Bad string")}function e(){var m="";"-"===h&&(m="-",f("-"));for(;"0"<=h&&"9">=h;)m+=h,f();if("."===h)for(m+=".";f()&&"0"<=h&&"9">=h;)m+=h;if("e"===h||"E"===h){m+=h;f();if("-"===h||"+"===h)m+=h,f();for(;"0"<=h&&"9">=h;)m+=h,f()}m=+m;if(isFinite(m))return m;
42
42
  g("Bad number")}function f(m){m&&m!==h&&g("Expected '"+m+"' instead of '"+h+"'");h=r.charAt(k);k+=1;return h}function g(m){m=new SyntaxError(m);m.hg=k;m.text=r;throw m;}var k,h,p={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},r;var n=function(){b();switch(h){case "{":a:{var m={};if("{"===h){f("{");b();if("}"===h){f("}");var t=m;break a}for(;h;){t=c();b();f(":");Object.hasOwnProperty.call(m,t)&&g('Duplicate key "'+t+'"');m[t]=n();b();if("}"===h){f("}");t=m;break a}f(",");b()}}g("Bad object");
43
43
  t=void 0}return t;case "[":a:{t=[];if("["===h){f("[");b();if("]"===h){f("]");break a}for(;h;){t.push(n());b();if("]"===h){f("]");break a}f(",");b()}}g("Bad array");t=void 0}return t;case '"':return c();case "-":return e();default:return"0"<=h&&"9">=h?e():a()}};return function(m){r=m;k=0;h=" ";m=n();b();h&&g("Syntax error");return m}}();d.me=function(a){var b=0,c=0,e=[];if(!a)return a;a=d.gg(a);do{var f=a.charCodeAt(b++);var g=a.charCodeAt(b++);var k=a.charCodeAt(b++);var h=f<<16|g<<8|k;f=h>>18&63;
44
44
  g=h>>12&63;k=h>>6&63;h&=63;e[c++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(k)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)}while(b<a.length);b=e.join("");switch(a.length%3){case 1:b=b.slice(0,-2)+"==";break;case 2:b=b.slice(0,-1)+"="}return b};d.gg=function(a){a=(a+"").replace(/\r\n/g,
45
- "\n").replace(/\r/g,"\n");var b="",c,e;var f=c=0;var g=a.length;for(e=0;e<g;e++){var k=a.charCodeAt(e),h=null;128>k?c++:h=127<k&&2048>k?String.fromCharCode(k>>6|192,k&63|128):String.fromCharCode(k>>12|224,k>>6&63|128,k&63|128);null!==h&&(c>f&&(b+=a.substring(f,c)),b+=h,f=c=e+1)}c>f&&(b+=a.substring(f,a.length));return b};d.ta=function(){try{return q.crypto.randomUUID()}catch(c){for(var a=Array(36),b=0;36>b;b++)a[b]=Math.floor(16*Math.random());a[14]=4;a[19]=a[19]&=-5;a[19]=a[19]|=8;a[8]=a[13]=a[18]=
45
+ "\n").replace(/\r/g,"\n");var b="",c,e;var f=c=0;var g=a.length;for(e=0;e<g;e++){var k=a.charCodeAt(e),h=null;128>k?c++:h=127<k&&2048>k?String.fromCharCode(k>>6|192,k&63|128):String.fromCharCode(k>>12|224,k>>6&63|128,k&63|128);null!==h&&(c>f&&(b+=a.substring(f,c)),b+=h,f=c=e+1)}c>f&&(b+=a.substring(f,a.length));return b};d.ua=function(){try{return q.crypto.randomUUID()}catch(c){for(var a=Array(36),b=0;36>b;b++)a[b]=Math.floor(16*Math.random());a[14]=4;a[19]=a[19]&=-5;a[19]=a[19]|=8;a[8]=a[13]=a[18]=
46
46
  a[23]="-";return d.map(a,function(e){return e.toString(16)}).join("")}};var Cb="ahrefsbot;ahrefssiteaudit;amazonbot;baiduspider;bingbot;bingpreview;chrome-lighthouse;facebookexternal;petalbot;pinterest;screaming frog;yahoo! slurp;yandex;adsbot-google;apis-google;duplexweb-google;feedfetcher-google;google favicon;google web preview;google-read-aloud;googlebot;googleweblight;mediapartners-google;storebot-google".split(";");d.cd=function(a){var b;a=a.toLowerCase();for(b=0;b<Cb.length;b++)if(-1!==a.indexOf(Cb[b]))return!0;
47
47
  return!1};d.oc=function(a){var b,c,e,f=[];d.m(b)&&(b="&");d.h(a,function(g,k){c=encodeURIComponent(g.toString());e=encodeURIComponent(k);f[f.length]=e+"="+c});return f.join(b)};d.Mb=function(a,b){b=b.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");a=(new RegExp("[\\?&]"+b+"=([^&#]*)")).exec(a);if(null===a||a&&"string"!==typeof a[1]&&a[1].length)return"";a=a[1];try{a=decodeURIComponent(a)}catch(c){A.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")};d.cookie={get:function(a){a+=
48
- "=";for(var b=x.cookie.split(";"),c=0;c<b.length;c++){for(var e=b[c];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(a))return decodeURIComponent(e.substring(a.length,e.length))}return null},parse:function(a){try{var b=d.sa(d.cookie.get(a))||{}}catch(c){}return b},mg:function(a,b,c,e,f,g,k){var h="",p="",r="";k?h="; domain="+k:e&&(h=(h=$a(x.location.hostname))?"; domain=."+h:"");c&&(p=new Date,p.setTime(p.getTime()+1E3*c),p="; expires="+p.toGMTString());g&&(f=!0,r="; SameSite=None");
48
+ "=";for(var b=x.cookie.split(";"),c=0;c<b.length;c++){for(var e=b[c];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(a))return decodeURIComponent(e.substring(a.length,e.length))}return null},parse:function(a){try{var b=d.ta(d.cookie.get(a))||{}}catch(c){}return b},mg:function(a,b,c,e,f,g,k){var h="",p="",r="";k?h="; domain="+k:e&&(h=(h=$a(x.location.hostname))?"; domain=."+h:"");c&&(p=new Date,p.setTime(p.getTime()+1E3*c),p="; expires="+p.toGMTString());g&&(f=!0,r="; SameSite=None");
49
49
  f&&(r+="; secure");x.cookie=a+"="+encodeURIComponent(b)+p+"; path=/"+h+r},set:function(a,b,c,e,f,g,k){var h="",p="",r="";k?h="; domain="+k:e&&(h=(h=$a(x.location.hostname))?"; domain=."+h:"");c&&(p=new Date,p.setTime(p.getTime()+864E5*c),p="; expires="+p.toGMTString());g&&(f=!0,r="; SameSite=None");f&&(r+="; secure");a=a+"="+encodeURIComponent(b)+p+"; path=/"+h+r;return x.cookie=a},remove:function(a,b,c){d.cookie.set(a,"",-1,b,!1,!1,c)}};var Da=null,Sa=null;d.localStorage=hb(q.localStorage,"localStorage",
50
50
  sa);d.sessionStorage=hb(q.sessionStorage,"sessionStorage",function(a,b){return null===Sa||b?Sa=ab(a||q.sessionStorage):Sa});d.Ad=function(){function a(c,e,f){return function(g){if(g=g||b(q.event)){var k=!0,h;d.Tb(f)&&(h=f(g));g=e.call(c,g);if(!1===h||!1===g)k=!1;return k}}}function b(c){c&&(c.preventDefault=b.preventDefault,c.stopPropagation=b.stopPropagation);return c}b.preventDefault=function(){this.returnValue=!1};b.stopPropagation=function(){this.cancelBubble=!0};return function(c,e,f,g,k){c?
51
51
  c.addEventListener&&!g?c.addEventListener(e,f,!!k):(e="on"+e,c[e]=a(c,f,c[e])):A.error("No valid element provided to register_event")}}();var jc=/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/;d.xe=function(){function a(f){return f.all?f.all:f.getElementsByTagName("*")}function b(f,g){g=" "+g+" ";return 0<=(" "+f.className+" ").replace(e," ").indexOf(g)}function c(f){if(!x.getElementsByTagName)return[];f=f.split(" ");var g,k,h,p,r=[x];for(k=0;k<f.length;k++){var n=f[k].replace(/^\s+/,"").replace(/\s+$/,
52
52
  "");if(-1<n.indexOf("#")){var m=n.split("#");n=m[0];r=x.getElementById(m[1]);if(!r||n&&r.nodeName.toLowerCase()!=n)return[];r=[r]}else if(-1<n.indexOf(".")){m=n.split(".");n=m[0];var t=m[1];n||(n="*");m=[];for(h=g=0;h<r.length;h++){var w="*"==n?a(r[h]):r[h].getElementsByTagName(n);for(p=0;p<w.length;p++)m[g++]=w[p]}r=[];for(h=n=0;h<m.length;h++)m[h].className&&d.Ub(m[h].className)&&b(m[h],t)&&(r[n++]=m[h])}else if(m=n.match(jc)){n=m[1];var u=m[2];t=m[3];var I=m[4];n||(n="*");m=[];for(h=g=0;h<r.length;h++)for(w=
53
53
  "*"==n?a(r[h]):r[h].getElementsByTagName(n),p=0;p<w.length;p++)m[g++]=w[p];r=[];n=0;switch(t){case "=":t=function(v){return v.getAttribute(u)==I};break;case "~":t=function(v){return v.getAttribute(u).match(new RegExp("\\b"+I+"\\b"))};break;case "|":t=function(v){return v.getAttribute(u).match(new RegExp("^"+I+"-?"))};break;case "^":t=function(v){return 0===v.getAttribute(u).indexOf(I)};break;case "$":t=function(v){return v.getAttribute(u).lastIndexOf(I)==v.getAttribute(u).length-I.length};break;case "*":t=
54
54
  function(v){return-1<v.getAttribute(u).indexOf(I)};break;default:t=function(v){return v.getAttribute(u)}}r=[];for(h=n=0;h<m.length;h++)t(m[h])&&(r[n++]=m[h])}else{m=[];for(h=g=0;h<r.length;h++)for(w=r[h].getElementsByTagName(n),p=0;p<w.length;p++)m[g++]=w[p];r=m}}return r}var e=/[\t\r\n]/g;return function(f){return d.af(f)?[f]:d.j(f)&&!d.m(f.length)?f:c.call(this,f)}}();var kc="utm_source utm_medium utm_campaign utm_content utm_term utm_id utm_source_platform utm_campaign_id utm_creative_format utm_marketing_tactic".split(" "),
55
- lc="dclid fbclid gclid ko_click_id li_fat_id msclkid sccid ttclid twclid wbraid".split(" ");d.info={za:function(a){var b="",c={};d.h(kc,function(e){b=d.Mb(x.URL,e);b.length?c[e]=b:void 0!==a&&(c[e]=a)});return c},Ic:function(){var a="",b={};d.h(lc,function(c){a=d.Mb(x.URL,c);a.length&&(b[c]=a)});return b},df:function(){return d.extend(d.info.za(),d.info.Ic())},tf:function(a){return 0===a.search("https?://(.*)google.([^/?]*)")?"google":0===a.search("https?://(.*)bing.com")?"bing":0===a.search("https?://(.*)yahoo.com")?
55
+ lc="dclid fbclid gclid ko_click_id li_fat_id msclkid sccid ttclid twclid wbraid".split(" ");d.info={Aa:function(a){var b="",c={};d.h(kc,function(e){b=d.Mb(x.URL,e);b.length?c[e]=b:void 0!==a&&(c[e]=a)});return c},Ic:function(){var a="",b={};d.h(lc,function(c){a=d.Mb(x.URL,c);a.length&&(b[c]=a)});return b},df:function(){return d.extend(d.info.Aa(),d.info.Ic())},tf:function(a){return 0===a.search("https?://(.*)google.([^/?]*)")?"google":0===a.search("https?://(.*)bing.com")?"bing":0===a.search("https?://(.*)yahoo.com")?
56
56
  "yahoo":0===a.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},uf:function(a){var b=d.info.tf(a),c={};null!==b&&(c.$search_engine=b,a=d.Mb(a,"yahoo"!=b?"q":"p"),a.length&&(c.mp_keyword=a));return c},Va:function(a,b,c){b=b||"";return c||d.includes(a," OPR/")?d.includes(a,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":d.includes(a,"IEMobile")||d.includes(a,"WPDesktop")?"Internet Explorer Mobile":d.includes(a,"SamsungBrowser/")?"Samsung Internet":d.includes(a,
57
57
  "Edge")||d.includes(a,"Edg/")?"Microsoft Edge":d.includes(a,"FBIOS")?"Facebook Mobile":d.includes(a,"Whale/")?"Whale Browser":d.includes(a,"Chrome")?"Chrome":d.includes(a,"CriOS")?"Chrome iOS":d.includes(a,"UCWEB")||d.includes(a,"UCBrowser")?"UC Browser":d.includes(a,"FxiOS")?"Firefox iOS":d.includes(b,"Apple")?d.includes(a,"Mobile")?"Mobile Safari":"Safari":d.includes(a,"Android")?"Android Mobile":d.includes(a,"Konqueror")?"Konqueror":d.includes(a,"Firefox")?"Firefox":d.includes(a,"MSIE")||d.includes(a,
58
58
  "Trident/")?"Internet Explorer":d.includes(a,"Gecko")?"Mozilla":""},Bb:function(a,b,c){b={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,
59
59
  BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[d.info.Va(a,b,c)];return void 0===b?null:(a=a.match(b))?parseFloat(a[a.length-2]):null},sd:function(){return/Windows/i.test(J)?/Phone/.test(J)||/WPDesktop/.test(J)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(J)?"iOS":/Android/.test(J)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(J)?
60
- "BlackBerry":/Mac/i.test(J)?"Mac OS X":/Linux/.test(J)?"Linux":/CrOS/.test(J)?"Chrome OS":""},Pc:function(a){return/Windows Phone/i.test(a)||/WPDesktop/.test(a)?"Windows Phone":/iPad/.test(a)?"iPad":/iPod/.test(a)?"iPod Touch":/iPhone/.test(a)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":/Android/.test(a)?"Android":""},zd:function(a){a=a.split("/");return 3<=a.length?a[2]:""},W:function(){return q.location.href},Ja:function(a){"object"!==typeof a&&(a={});return d.extend(d.pa({$os:d.info.sd(),
61
- $browser:d.info.Va(J,X.vendor,xa),$referrer:x.referrer,$referring_domain:d.info.zd(x.referrer),$device:d.info.Pc(J)}),{$current_url:d.info.W(),$browser_version:d.info.Bb(J,X.vendor,xa),$screen_height:yb.height,$screen_width:yb.width,mp_lib:"web",$lib_version:"2.71.0",$insert_id:Ca(),time:d.timestamp()/1E3},d.pa(a))},nf:function(){return d.extend(d.pa({$os:d.info.sd(),$browser:d.info.Va(J,X.vendor,xa)}),{$browser_version:d.info.Bb(J,X.vendor,xa)})},ff:function(){return d.pa({current_page_title:x.title,
62
- current_domain:q.location.hostname,current_url_path:q.location.pathname,current_url_protocol:q.location.protocol,current_url_search:q.location.search})}};var Qb=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Pb=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,fa=null,ya=null;"undefined"!==typeof JSON&&(fa=JSON.stringify,ya=JSON.parse);fa=fa||d.pc;ya=ya||d.sa;d.info=d.info;d.info.browser=d.info.Va;d.info.browserVersion=d.info.Bb;d.info.device=d.info.Pc;d.info.properties=d.info.Ja;d.isBlockedUA=d.cd;d.isEmptyObject=d.cb;d.isObject=
63
- d.j;d.JSONDecode=d.sa;d.JSONEncode=d.pc;d.toArray=d.qa;d.NPO=V;var Yb="clientX clientY offsetX offsetY pageX pageY screenX screenY x y".split(" "),mb=["mp-include"],La=["mp-no-track"],lb=La.concat(["mp-sensitive"]),Vb="aria-label aria-labelledby aria-describedby href name role title type".split(" "),$b={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,
60
+ "BlackBerry":/Mac/i.test(J)?"Mac OS X":/Linux/.test(J)?"Linux":/CrOS/.test(J)?"Chrome OS":""},Pc:function(a){return/Windows Phone/i.test(a)||/WPDesktop/.test(a)?"Windows Phone":/iPad/.test(a)?"iPad":/iPod/.test(a)?"iPod Touch":/iPhone/.test(a)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":/Android/.test(a)?"Android":""},zd:function(a){a=a.split("/");return 3<=a.length?a[2]:""},W:function(){return q.location.href},Ja:function(a){"object"!==typeof a&&(a={});return d.extend(d.qa({$os:d.info.sd(),
61
+ $browser:d.info.Va(J,X.vendor,xa),$referrer:x.referrer,$referring_domain:d.info.zd(x.referrer),$device:d.info.Pc(J)}),{$current_url:d.info.W(),$browser_version:d.info.Bb(J,X.vendor,xa),$screen_height:yb.height,$screen_width:yb.width,mp_lib:"web",$lib_version:"2.71.1",$insert_id:Ca(),time:d.timestamp()/1E3},d.qa(a))},nf:function(){return d.extend(d.qa({$os:d.info.sd(),$browser:d.info.Va(J,X.vendor,xa)}),{$browser_version:d.info.Bb(J,X.vendor,xa)})},ff:function(){return d.qa({current_page_title:x.title,
62
+ current_domain:q.location.hostname,current_url_path:q.location.pathname,current_url_protocol:q.location.protocol,current_url_search:q.location.search})}};var Qb=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Pb=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,fa=null,ya=null;"undefined"!==typeof JSON&&(fa=JSON.stringify,ya=JSON.parse);fa=fa||d.pc;ya=ya||d.ta;d.info=d.info;d.info.browser=d.info.Va;d.info.browserVersion=d.info.Bb;d.info.device=d.info.Pc;d.info.properties=d.info.Ja;d.isBlockedUA=d.cd;d.isEmptyObject=d.cb;d.isObject=
63
+ d.j;d.JSONDecode=d.ta;d.JSONEncode=d.pc;d.toArray=d.ra;d.NPO=V;var Yb="clientX clientY offsetX offsetY pageX pageY screenX screenY x y".split(" "),mb=["mp-include"],La=["mp-no-track"],lb=La.concat(["mp-sensitive"]),Vb="aria-label aria-labelledby aria-describedby href name role title type".split(" "),$b={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,
64
64
  spinbutton:!0,"switch":!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},bc={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},cc={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},ob="onclick onmousedown onmouseup onpointerdown onpointerup ontouchend ontouchstart".split(" "),C=la("autocapture");pb.prototype.cf=function(a,b,c){c=c||{};var e=c.threshold_px||30,f=c.timeout_ms||
65
65
  1E3;c=c.click_count||4;var g=Date.now(),k=this.da[this.da.length-1];if(k&&g-k.timestamp<f&&Math.sqrt(Math.pow(a-k.x,2)+Math.pow(b-k.y,2))<e){if(this.da.push({x:a,y:b,timestamp:g}),this.da.length>=c)return this.da=[],!0}else this.da=[{x:a,y:b,timestamp:g}];return!1};Z.prototype.Ge=function(a){if(this.M){var b=this.Sc(a);return b&&b.length?b[0]:a.target||a.srcElement}};Z.prototype.Sc=function(a){return"composedPath"in a?a.composedPath():[]};Z.prototype.hf=function(a){if(this.M){a=this.Sc(a);for(var b=
66
66
  0;b<a.length;b++){var c=a[b];c&&c.shadowRoot&&this.jf(c.shadowRoot)}}};Z.prototype.jf=function(a){if(this.M&&!this.M.has(a)){var b=this;try{this.M.add(a);var c=new window.MutationObserver(function(){b.ue()});c.observe(a,this.kf);this.jb.push(c)}catch(e){C.l("Error while observing shadow root",e)}}};Z.prototype.start=function(){this.M||("undefined"!==typeof WeakSet?this.M=new WeakSet:C.l("Shadow DOM observation unavailable: WeakSet not supported"))};Z.prototype.stop=function(){if(this.M){for(var a=
67
67
  0;a<this.jb.length;a++)try{this.jb[a].disconnect()}catch(b){C.l("Error while disconnecting shadow DOM observer",b)}this.jb=[];this.M=null}};var mc=["change","input","submit","select","toggle"],nc=["scrollend"],oc=["hashchange"],Db={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:"style class hidden checked selected value display visibility".split(" ")};Q.prototype.ge=function(a){var b=this.I&&this.I.Ge(a);b||(b=a.target||a.srcElement);if(!b||ac(b))return!1;this.I&&this.I.hf(a);
68
- this.aa.push({element:b,event:a,timestamp:Date.now()});return!0};Q.prototype.Vf=function(a,b){this.ia&&this.ge(a)&&this.dg(b)};Q.prototype.Fe=function(a){if(0===this.aa.length)return[];a=a.timeout_ms;var b=Date.now(),c=this.aa.slice();this.aa=[];for(var e=[],f=0;f<c.length;f++){var g=c[f];b-g.timestamp>=a?this.Ne(g.timestamp)||e.push(g):this.aa.push(g)}return e};Q.prototype.Ne=function(a){return this.Wb>=a-100};Q.prototype.la=function(){this.Wb=Date.now()};Q.prototype.dg=function(a){this.ka||(this.ka=
69
- !0,this.xd(a))};Q.prototype.xd=function(a){if(this.ia&&this.qd){var b=this;this.ib=setTimeout(function(){if(b.ka){for(var c=b.Fe(a),e=0;e<c.length;e++)b.qd(c[e].event);0<b.aa.length?b.xd(a):b.ka=!1}},a.timeout_ms)}else this.ka=!1};Q.prototype.Jf=function(){if(!this.ia){this.ia=!0;var a=this;mc.forEach(function(c){function e(){a.la()}document.addEventListener(c,e,{capture:!0,passive:!0});a.Y.push({target:document,event:c,$a:e,options:{capture:!0,passive:!0}})});oc.forEach(function(c){function e(){a.la()}
70
- window.addEventListener(c,e);a.Y.push({target:window,event:c,$a:e})});nc.forEach(function(c){function e(){a.la()}window.addEventListener(c,e,{passive:!0});a.Y.push({target:window,event:c,$a:e,options:{passive:!0}})});var b=function(){a.la()};document.addEventListener("selectionchange",b);a.Y.push({target:document,event:"selectionchange",$a:b});if(window.MutationObserver)try{this.Ha=new window.MutationObserver(function(){a.la()}),this.Ha.observe(document.body||document.documentElement,Db)}catch(c){C.l("Error while setting up mutation observer",
71
- c)}if(window.customElements)try{this.I=new Z(function(){a.la()},Db),this.I.start()}catch(c){C.l("Error while setting up shadow DOM observer",c),this.I=null}}};Q.prototype.Of=function(){if(this.ia){this.ia=!1;this.aa=[];this.Wb=0;this.ka=!1;this.ib&&(clearTimeout(this.ib),this.ib=null);for(var a=0;a<this.Y.length;a++){var b=this.Y[a];try{b.target.removeEventListener(b.event,b.$a,b.options)}catch(c){C.l("Error while removing event listener",c)}}this.Y=[];if(this.Ha){try{this.Ha.disconnect()}catch(c){C.l("Error while disconnecting mutation observer",
68
+ this.aa.push({element:b,event:a,timestamp:Date.now()});return!0};Q.prototype.Vf=function(a,b){this.ia&&this.ge(a)&&this.dg(b)};Q.prototype.Fe=function(a){if(0===this.aa.length)return[];a=a.timeout_ms;var b=Date.now(),c=this.aa.slice();this.aa=[];for(var e=[],f=0;f<c.length;f++){var g=c[f];b-g.timestamp>=a?this.Ne(g.timestamp)||e.push(g):this.aa.push(g)}return e};Q.prototype.Ne=function(a){return this.Wb>=a-100};Q.prototype.ma=function(){this.Wb=Date.now()};Q.prototype.dg=function(a){this.la||(this.la=
69
+ !0,this.xd(a))};Q.prototype.xd=function(a){if(this.ia&&this.qd){var b=this;this.ib=setTimeout(function(){if(b.la){for(var c=b.Fe(a),e=0;e<c.length;e++)b.qd(c[e].event);0<b.aa.length?b.xd(a):b.la=!1}},a.timeout_ms)}else this.la=!1};Q.prototype.Jf=function(){if(!this.ia){this.ia=!0;var a=this;mc.forEach(function(c){function e(){a.ma()}document.addEventListener(c,e,{capture:!0,passive:!0});a.Y.push({target:document,event:c,$a:e,options:{capture:!0,passive:!0}})});oc.forEach(function(c){function e(){a.ma()}
70
+ window.addEventListener(c,e);a.Y.push({target:window,event:c,$a:e})});nc.forEach(function(c){function e(){a.ma()}window.addEventListener(c,e,{passive:!0});a.Y.push({target:window,event:c,$a:e,options:{passive:!0}})});var b=function(){a.ma()};document.addEventListener("selectionchange",b);a.Y.push({target:document,event:"selectionchange",$a:b});if(window.MutationObserver)try{this.Ha=new window.MutationObserver(function(){a.ma()}),this.Ha.observe(document.body||document.documentElement,Db)}catch(c){C.l("Error while setting up mutation observer",
71
+ c)}if(window.customElements)try{this.I=new Z(function(){a.ma()},Db),this.I.start()}catch(c){C.l("Error while setting up shadow DOM observer",c),this.I=null}}};Q.prototype.Of=function(){if(this.ia){this.ia=!1;this.aa=[];this.Wb=0;this.la=!1;this.ib&&(clearTimeout(this.ib),this.ib=null);for(var a=0;a<this.Y.length;a++){var b=this.Y[a];try{b.target.removeEventListener(b.event,b.$a,b.options)}catch(c){C.l("Error while removing event listener",c)}}this.Y=[];if(this.Ha){try{this.Ha.disconnect()}catch(c){C.l("Error while disconnecting mutation observer",
72
72
  c)}this.Ha=null}if(this.I){try{this.I.stop()}catch(c){C.l("Error while stopping shadow DOM observer",c)}this.I=null}}};var Eb={allow_selectors:[],allow_url_regexes:[],block_attrs:[],block_element_callback:null,block_selectors:[],block_url_regexes:[],capture_extra_attrs:[],capture_text_content:!1,scroll_capture_all:!1,scroll_depth_percent_checkpoints:[25,50,75,100],click:!0,dead_click:!0,input:!0,pageview:"full-url",rage_click:!0,scroll:!0,page_leave:!1,submit:!0},oa={$mp_autocapture:!0};G.prototype.B=
73
73
  function(){try{var a=!!x.createElement("div").matches}catch(b){a=!1}a?(this.Te(),this.Ue(),this.Pe(),this.Qe(),this.Re(),this.We(),this.Xe(),this.Ve(),this.Se()):C.l("Autocapture unavailable: missing required DOM APIs")};G.prototype.Lb=function(){var a=this.u.g("autocapture");return a?d.j(a)?d.extend({},Eb,a):Eb:{}};G.prototype.o=function(a){return this.Lb()[a]};G.prototype.R=function(){var a,b=d.info.W(),c=this.o("allow_url_regexes")||[];if(c.length){var e=!1;for(a=0;a<c.length;a++){var f=c[a];try{if(b.match(f)){e=
74
- !0;break}}catch(g){return C.l("Error while checking block URL regex: "+f,g),!0}}if(!e)return!0}c=this.o("block_url_regexes")||[];if(!c||!c.length)return!1;for(a=0;a<c.length;a++)try{if(b.match(c[a]))return!0}catch(g){return C.l("Error while checking block URL regex: "+c[a],g),!0}return!1};G.prototype.ac=function(){return this.u.g("autocapture")?this.o("pageview"):this.u.g("track_pageview")};G.prototype.Na=function(a,b){if(!this.R()){var c=this.u.Ca()&&("$mp_click"===b&&!this.o("click")||"$mp_rage_click"===
74
+ !0;break}}catch(g){return C.l("Error while checking block URL regex: "+f,g),!0}}if(!e)return!0}c=this.o("block_url_regexes")||[];if(!c||!c.length)return!1;for(a=0;a<c.length;a++)try{if(b.match(c[a]))return!0}catch(g){return C.l("Error while checking block URL regex: "+c[a],g),!0}return!1};G.prototype.ac=function(){return this.u.g("autocapture")?this.o("pageview"):this.u.g("track_pageview")};G.prototype.Na=function(a,b){if(!this.R()){var c=this.u.ja()&&("$mp_click"===b&&!this.o("click")||"$mp_rage_click"===
75
75
  b&&!this.ca("rage_click")||"$mp_dead_click"===b&&!this.ca("dead_click"));if(a=Wb(a,{je:this.o("allow_element_callback"),ke:this.o("allow_selectors"),ne:this.o("block_attrs"),oe:this.o("block_element_callback"),pe:this.o("block_selectors"),re:this.o("capture_extra_attrs"),se:this.o("capture_text_content"),te:c}))d.extend(a,oa),this.u.track(b,a)}};G.prototype.Te=function(){q.removeEventListener("popstate",this.md);q.removeEventListener("hashchange",this.gd);if(this.ac()||this.o("page_leave")||this.u.g("record_heatmap_data")){this.md=
76
76
  function(){q.dispatchEvent(new Event("mp_locationchange"))};this.gd=function(){q.dispatchEvent(new Event("mp_locationchange"))};q.addEventListener("popstate",this.md);q.addEventListener("hashchange",this.gd);var a=q.history.pushState;"function"===typeof a&&(q.history.pushState=function(c,e,f){a.call(q.history,c,e,f);q.dispatchEvent(new Event("mp_locationchange"))});var b=q.history.replaceState;"function"===typeof b&&(q.history.replaceState=function(c,e,f){b.call(q.history,c,e,f);q.dispatchEvent(new Event("mp_locationchange"))})}};
77
- G.prototype.ca=function(a){return(a=this.o(a))?!0===a?{}:"object"===typeof a?a:{}:null};G.prototype.Dc=function(a,b,c){if(!this.Pb){this.Pb=!0;var e=Math.max(x.documentElement.clientHeight,q.innerHeight||0),f=Math.round(Math.max(this.ja-e,0)/(c-e)*100),g=Math.round(e/c*100);c<=e&&(g=f=100);a=d.extend({$max_scroll_view_depth:this.ja,$max_scroll_percentage:f,$fold_line_percentage:g,$scroll_height:c,$event_type:a.type,$current_url:b||d.info.W(),$viewportHeight:e,$viewportWidth:Math.max(x.documentElement.clientWidth,
78
- q.innerWidth||0)},oa);this.u.Ca()&&!this.o("page_leave")&&(a.$captured_for_heatmap=!0);this.u.track("$mp_page_leave",a,{kb:"sendBeacon"})}};G.prototype.ce=function(){q.removeEventListener("scroll",this.Yb);q.removeEventListener("scrollend",this.Yb);if(this.u.g("record_heatmap_data")){C.log("Initializing scroll depth tracking");this.ja=Math.max(x.documentElement.clientHeight,q.innerHeight||0);var a=function(){if(!this.R()){var b=Math.max(x.documentElement.clientHeight,q.innerHeight||0)+q.scrollY;b>
79
- this.ja&&(this.ja=b);this.Ia=x.body.scrollHeight}}.bind(this);a=nb(a);this.Yb=a.listener;q.addEventListener(a.Qc,this.Yb)}};G.prototype.Pe=function(){q.removeEventListener("click",this.fd);if(this.o("click")||this.u.g("record_heatmap_data"))C.log("Initializing click tracking"),this.fd=function(a){(this.o("click")||this.u.Ca())&&this.Na(a,"$mp_click")}.bind(this),q.addEventListener("click",this.fd)};G.prototype.Qe=function(){this.ca("dead_click")||this.u.g("record_heatmap_data")?(C.log("Initializing dead click tracking"),
80
- this.ba||(this.ba=new Q(function(a){this.Na(a,"$mp_dead_click")}.bind(this)),this.ba.Jf()),this.Ea||(this.Ea=function(a){var b=this.ca("dead_click");!b&&!this.u.Ca()||this.R()||(b=b||{},b.timeout_ms||(b.timeout_ms=500),this.ba.Vf(a,b))}.bind(this),q.addEventListener("click",this.Ea))):this.Nf()};G.prototype.Re=function(){q.removeEventListener("change",this.ed);this.o("input")&&(C.log("Initializing input tracking"),this.ed=function(a){this.o("input")&&this.Na(a,"$mp_input_change")}.bind(this),q.addEventListener("change",
77
+ G.prototype.ca=function(a){return(a=this.o(a))?!0===a?{}:"object"===typeof a?a:{}:null};G.prototype.Dc=function(a,b,c){if(!this.Pb&&(this.o("page_leave")||this.u.ja())){this.Pb=!0;var e=Math.max(x.documentElement.clientHeight,q.innerHeight||0),f=Math.round(Math.max(this.ka-e,0)/(c-e)*100),g=Math.round(e/c*100);c<=e&&(g=f=100);a=d.extend({$max_scroll_view_depth:this.ka,$max_scroll_percentage:f,$fold_line_percentage:g,$scroll_height:c,$event_type:a.type,$current_url:b||d.info.W(),$viewportHeight:e,
78
+ $viewportWidth:Math.max(x.documentElement.clientWidth,q.innerWidth||0),$captured_for_heatmap:this.u.ja()},oa);this.u.track("$mp_page_leave",a,{kb:"sendBeacon"})}};G.prototype.ce=function(){q.removeEventListener("scroll",this.Yb);q.removeEventListener("scrollend",this.Yb);if(this.u.g("record_heatmap_data")){C.log("Initializing scroll depth tracking");this.ka=Math.max(x.documentElement.clientHeight,q.innerHeight||0);var a=function(){if(!this.R()){var b=Math.max(x.documentElement.clientHeight,q.innerHeight||
79
+ 0)+q.scrollY;b>this.ka&&(this.ka=b);this.Ia=x.body.scrollHeight}}.bind(this);a=nb(a);this.Yb=a.listener;q.addEventListener(a.Qc,this.Yb)}};G.prototype.Pe=function(){q.removeEventListener("click",this.fd);if(this.o("click")||this.u.g("record_heatmap_data"))C.log("Initializing click tracking"),this.fd=function(a){(this.o("click")||this.u.ja())&&this.Na(a,"$mp_click")}.bind(this),q.addEventListener("click",this.fd)};G.prototype.Qe=function(){this.ca("dead_click")||this.u.g("record_heatmap_data")?(C.log("Initializing dead click tracking"),
80
+ this.ba||(this.ba=new Q(function(a){this.Na(a,"$mp_dead_click")}.bind(this)),this.ba.Jf()),this.Ea||(this.Ea=function(a){var b=this.ca("dead_click");!b&&!this.u.ja()||this.R()||(b=b||{},b.timeout_ms||(b.timeout_ms=500),this.ba.Vf(a,b))}.bind(this),q.addEventListener("click",this.Ea))):this.Nf()};G.prototype.Re=function(){q.removeEventListener("change",this.ed);this.o("input")&&(C.log("Initializing input tracking"),this.ed=function(a){this.o("input")&&this.Na(a,"$mp_input_change")}.bind(this),q.addEventListener("change",
81
81
  this.ed))};G.prototype.Ue=function(){q.removeEventListener("mp_locationchange",this.hd);if(this.ac()){C.log("Initializing pageview tracking");var a="",b=!1;this.R()||(b=this.u.lc(oa));b&&(a=d.info.W());this.hd=ka(function(){if(!this.R()){var c=d.info.W(),e=!1,f=c.split("#")[0].split("?")[0]!==a.split("#")[0].split("?")[0],g=this.ac();"full-url"===g?e=c!==a:"url-with-path-and-query-string"===g?e=c.split("#")[0]!==a.split("#")[0]:"url-with-path"===g&&(e=f);e&&(this.u.lc(oa)&&(a=c),f&&(this.eb=0,C.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this));
82
- q.addEventListener("mp_locationchange",this.hd)}};G.prototype.Ve=function(){q.removeEventListener("click",this.nd);if(this.ca("rage_click")||this.u.g("record_heatmap_data"))C.log("Initializing rage click tracking"),this.zc||(this.zc=new pb),this.nd=function(a){var b=this.ca("rage_click");if(b||this.u.Ca())this.R()||this.zc.cf(a.pageX,a.pageY,b)&&this.Na(a,"$mp_rage_click")}.bind(this),q.addEventListener("click",this.nd)};G.prototype.We=function(){q.removeEventListener("scrollend",this.Xb);q.removeEventListener("scroll",
82
+ q.addEventListener("mp_locationchange",this.hd)}};G.prototype.Ve=function(){q.removeEventListener("click",this.nd);if(this.ca("rage_click")||this.u.g("record_heatmap_data"))C.log("Initializing rage click tracking"),this.zc||(this.zc=new pb),this.nd=function(a){var b=this.ca("rage_click");if(b||this.u.ja())this.R()||this.zc.cf(a.pageX,a.pageY,b)&&this.Na(a,"$mp_rage_click")}.bind(this),q.addEventListener("click",this.nd)};G.prototype.We=function(){q.removeEventListener("scrollend",this.Xb);q.removeEventListener("scroll",
83
83
  this.Xb);if(this.o("scroll")){C.log("Initializing scroll tracking");this.eb=0;var a=function(){if(this.o("scroll")&&!this.R()){var b=this.o("scroll_capture_all"),c=(this.o("scroll_depth_percent_checkpoints")||[]).slice().sort(function(p,r){return p-r}),e=q.scrollY,f=d.extend({$scroll_top:e},oa);try{var g=x.body.scrollHeight,k=Math.round(e/(g-q.innerHeight)*100);f.$scroll_height=g;f.$scroll_percentage=k;if(k>this.eb)for(e=0;e<c.length;e++){var h=c[e];k>=h&&this.eb<h&&(this.eb=f.$scroll_checkpoint=
84
84
  h,b=!0)}}catch(p){C.l("Error while calculating scroll percentage",p)}b&&this.u.track("$mp_scroll",f)}}.bind(this);a=nb(a);this.Xb=a.listener;q.addEventListener(a.Qc,this.Xb)}};G.prototype.Xe=function(){q.removeEventListener("submit",this.od);this.o("submit")&&(C.log("Initializing submit tracking"),this.od=function(a){this.o("submit")&&this.Na(a,"$mp_submit")}.bind(this),q.addEventListener("submit",this.od))};G.prototype.Se=function(){x.removeEventListener("visibilitychange",this.kd);q.removeEventListener("mp_locationchange",
85
- this.jd);q.removeEventListener("load",this.ld);if(this.o("page_leave")||this.u.g("record_heatmap_data")){C.log("Initializing page visibility tracking.");this.ce();var a=d.info.W();this.ld=function(){this.Ia=x.body.scrollHeight}.bind(this);q.addEventListener("load",this.ld);this.jd=ka(function(b){if(!this.R()){var c=d.info.W();c!==a&&(this.Dc(b,a,this.Ia),a=c,this.ja=Math.max(x.documentElement.clientHeight,q.innerHeight||0),this.Ia=x.body.scrollHeight,this.Pb=!1)}}.bind(this));q.addEventListener("mp_locationchange",
86
- this.jd);this.kd=function(b){x.hidden&&this.Dc(b,a,this.Ia)}.bind(this);x.addEventListener("visibilitychange",this.kd)}};G.prototype.Nf=function(){this.Ea&&(q.removeEventListener("click",this.Ea),this.Ea=null);this.ba&&(this.ba.Of(),this.ba=null)};bb(G);var K=la("flags"),Fb={context:{}};B.prototype.B=function(){this.ef()?(this.flags=null,this.Ib(),this.Od=new Set):K.l("Feature Flags unavailable: missing minimum required APIs")};B.prototype.Lb=function(){var a=this.Aa("flags");return a?d.j(a)?d.extend({},
87
- Fb,a):Fb:{}};B.prototype.o=function(a){return this.Lb()[a]};B.prototype.Vb=function(){return!!this.Aa("flags")};B.prototype.eg=function(a,b){if(!this.Vb())return K.l("Feature Flags not enabled, cannot update context"),Promise.resolve();var c=this.Aa("flags");d.j(c)||(c={});b=b&&b.replace?{}:this.o("context");c.context=d.extend({},b,a);this.Bf("flags",c);return this.Ib()};B.prototype.Ec=function(){this.Vb()||K.error("Feature Flags not enabled");return!!this.flags};B.prototype.Ib=function(){if(!this.Vb())return Promise.resolve();
88
- var a=this.Tc("distinct_id"),b=this.Tc("$device_id"),c=Rb();K.log("Fetching flags for distinct ID: "+a);a=d.extend({distinct_id:a,device_id:b},this.o("context"));b=new URLSearchParams;b.set("context",JSON.stringify(a));b.set("token",this.Aa("token"));b.set("mp_lib","web");b.set("$lib_version","2.71.0");a=this.Kb()+"?"+b.toString();this.rb=Date.now();return this.Jb=this.fetch.call(q,a,{method:"GET",headers:{Authorization:"Basic "+btoa(this.Aa("token")+":"),traceparent:c}}).then(function(e){this.Zb();
85
+ this.jd);q.removeEventListener("load",this.ld);if(this.o("page_leave")||this.u.g("record_heatmap_data")){C.log("Initializing page visibility tracking.");this.ce();var a=d.info.W();this.ld=function(){this.Ia=x.body.scrollHeight}.bind(this);q.addEventListener("load",this.ld);this.jd=ka(function(b){if(!this.R()){var c=d.info.W();c!==a&&(this.Dc(b,a,this.Ia),a=c,this.ka=Math.max(x.documentElement.clientHeight,q.innerHeight||0),this.Ia=x.body.scrollHeight,this.Pb=!1)}}.bind(this));q.addEventListener("mp_locationchange",
86
+ this.jd);this.kd=function(b){x.hidden&&this.Dc(b,a,this.Ia)}.bind(this);x.addEventListener("visibilitychange",this.kd)}};G.prototype.Nf=function(){this.Ea&&(q.removeEventListener("click",this.Ea),this.Ea=null);this.ba&&(this.ba.Of(),this.ba=null)};bb(G);var K=la("flags"),Fb={context:{}};B.prototype.B=function(){this.ef()?(this.flags=null,this.Ib(),this.Od=new Set):K.l("Feature Flags unavailable: missing minimum required APIs")};B.prototype.Lb=function(){var a=this.Ba("flags");return a?d.j(a)?d.extend({},
87
+ Fb,a):Fb:{}};B.prototype.o=function(a){return this.Lb()[a]};B.prototype.Vb=function(){return!!this.Ba("flags")};B.prototype.eg=function(a,b){if(!this.Vb())return K.l("Feature Flags not enabled, cannot update context"),Promise.resolve();var c=this.Ba("flags");d.j(c)||(c={});b=b&&b.replace?{}:this.o("context");c.context=d.extend({},b,a);this.Bf("flags",c);return this.Ib()};B.prototype.Ec=function(){this.Vb()||K.error("Feature Flags not enabled");return!!this.flags};B.prototype.Ib=function(){if(!this.Vb())return Promise.resolve();
88
+ var a=this.Tc("distinct_id"),b=this.Tc("$device_id"),c=Rb();K.log("Fetching flags for distinct ID: "+a);a=d.extend({distinct_id:a,device_id:b},this.o("context"));b=new URLSearchParams;b.set("context",JSON.stringify(a));b.set("token",this.Ba("token"));b.set("mp_lib","web");b.set("$lib_version","2.71.1");a=this.Kb()+"?"+b.toString();this.rb=Date.now();return this.Jb=this.fetch.call(q,a,{method:"GET",headers:{Authorization:"Basic "+btoa(this.Ba("token")+":"),traceparent:c}}).then(function(e){this.Zb();
89
89
  return e.json().then(function(f){f=f.flags;if(!f)throw Error("No flags in API response");var g=new Map;d.h(f,function(k,h){g.set(h,{key:k.variant_key,value:k.variant_value,experiment_id:k.experiment_id,is_experiment_active:k.is_experiment_active,is_qa_tester:k.is_qa_tester})});this.flags=g;this.fe=c}.bind(this)).catch(function(f){this.Zb();K.error(f)}.bind(this))}.bind(this)).catch(function(e){this.Zb();K.error(e)}.bind(this))};B.prototype.Zb=function(){this.rb?(this.wc=this.rb,this.vc=Date.now(),
90
90
  this.$d=this.vc-this.wc,this.rb=null):K.error("Fetch in progress started time not set, cannot mark fetch complete")};B.prototype.Uc=function(a,b){return this.Jb?this.Jb.then(function(){return this.Nb(a,b)}.bind(this)).catch(function(c){K.error(c);return b}):new Promise(function(c){K.l("Feature Flags not initialized");c(b)})};B.prototype.Nb=function(a,b){if(!this.Ec())return K.log("Flags not loaded yet"),b;var c=this.flags.get(a);if(!c)return K.log('No flag found: "'+a+'"'),b;this.Xf(a,c);return c};
91
91
  B.prototype.Ob=function(a,b){return this.Uc(a,{value:b}).then(function(c){return c.value}).catch(function(c){K.error(c);return b})};B.prototype.He=function(a,b){K.l("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead.");return this.Ob(a,b)};B.prototype.Vc=function(a,b){return this.Nb(a,{value:b}).value};B.prototype.isEnabled=function(a,b){return this.Ob(a).then(function(){return this.dd(a,b)}.bind(this)).catch(function(c){K.error(c);
@@ -95,35 +95,35 @@ B.prototype.get_variant_value=B.prototype.Ob;B.prototype.get_variant_value_sync=
95
95
  ") returned 0 elements");else return d.h(g,function(k){d.Ad(k,this.td,function(h){var p={},r=f.Xa(c,this),n=f.u.g("track_links_timeout");f.Gb(h,this,p);window.setTimeout(f.Nd(e,r,p,!0),n);f.u.track(b,r,f.Nd(e,r,p))})},this),!0};R.prototype.Nd=function(a,b,c,e){e=e||!1;var f=this;return function(){c.qe||(c.qe=!0,a&&!1===a(e,b)||f.yb(c))}};R.prototype.Xa=function(a,b){return"function"===typeof a?a(b):d.extend({},a)};d.bd(da,R);da.prototype.Xa=function(a,b){var c=da.Rf.Xa.apply(this,arguments);b.href&&
96
96
  (c.url=b.href);return c};da.prototype.Gb=function(a,b,c){c.pd=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.pd||a.preventDefault()};da.prototype.yb=function(a){a.pd||setTimeout(function(){window.location=a.href},0)};d.bd(ra,R);ra.prototype.Gb=function(a,b,c){c.element=b;a.preventDefault()};ra.prototype.yb=function(a){setTimeout(function(){a.element.submit()},0)};var pc=la("lock");Ya.prototype.nc=function(a,b){return new this.yd(d.bind(function(c,e){function f(){function L(){u.removeItem(N);
97
97
  u.getItem(v)===r&&u.removeItem(v);u.getItem(I)===r&&u.removeItem(I)}u.setItem(N,"1");a().then(function(Y){L();c(Y)}).catch(function(Y){L();e(Y)})}function g(){u.setItem(I,r);h(k,function(){u.getItem(I)===r?f():p(function(){u.getItem(v)!==r?g():h(function(){return!u.getItem(N)},f)})})}function k(){var L=u.getItem(v);if(L&&L!==r)return!1;u.setItem(v,r);if(u.getItem(v)===r)return!0;sa(u,!0)||e(Error("localStorage support dropped while acquiring lock"));return!1}function h(L,Y){L()?Y():p(function(){h(L,
98
- Y)})}function p(L){(new Date).getTime()-n>w?(pc.error("Timeout waiting for mutex on "+m+"; clearing lock. ["+r+"]"),u.removeItem(N),u.removeItem(v),g()):setTimeout(function(){try{L()}catch(Y){e(Y)}},t*(Math.random()+.1))}var r=b||(new Date).getTime()+"|"+Math.random(),n=(new Date).getTime(),m=this.oa,t=this.wd,w=this.kc,u=this.storage,I=m+":X",v=m+":Y",N=m+":Z";try{if(sa(u,!0))g();else throw Error("localStorage support check failed");}catch(L){e(L)}},this))};ia.prototype.B=function(){return E.resolve()};
98
+ Y)})}function p(L){(new Date).getTime()-n>w?(pc.error("Timeout waiting for mutex on "+m+"; clearing lock. ["+r+"]"),u.removeItem(N),u.removeItem(v),g()):setTimeout(function(){try{L()}catch(Y){e(Y)}},t*(Math.random()+.1))}var r=b||(new Date).getTime()+"|"+Math.random(),n=(new Date).getTime(),m=this.pa,t=this.wd,w=this.kc,u=this.storage,I=m+":X",v=m+":Y",N=m+":Z";try{if(sa(u,!0))g();else throw Error("localStorage support check failed");}catch(L){e(L)}},this))};ia.prototype.B=function(){return E.resolve()};
99
99
  ia.prototype.setItem=function(a,b){return new E(d.bind(function(c,e){try{this.storage.setItem(a,fa(b))}catch(f){e(f)}c()},this))};ia.prototype.getItem=function(a){return new E(d.bind(function(b,c){try{var e=ya(this.storage.getItem(a))}catch(f){c(f)}b(e)},this))};ia.prototype.removeItem=function(a){return new E(d.bind(function(b,c){try{this.storage.removeItem(a)}catch(e){c(e)}b()},this))};var Za=la("batch");O.prototype.X=function(){return this.Sb||!this.C?E.resolve():this.T.B().then(d.bind(function(){this.Sb=
100
100
  !0},this)).catch(d.bind(function(a){this.s("Error initializing queue persistence. Disabling persistence",a);this.Sb=!0;this.C=!1},this))};O.prototype.enqueue=function(a,b){a={id:Ca(),flushAfter:(new Date).getTime()+2*b,payload:a};if(this.C)return this.ze(a);this.L.push(a);return E.resolve(!0)};O.prototype.tc=function(a){var b=d.bind(function(){return this.X().then(d.bind(function(){return this.Ma()},this)).then(d.bind(function(c){return this.dc(c.concat(a))},this)).then(d.bind(function(c){c&&(this.L=
101
101
  this.L.concat(a));return c},this)).catch(d.bind(function(c){this.s("Error enqueueing items",c,a);return!1},this))},this);return this.lock.nc(b,this.hb).catch(d.bind(function(c){this.s("Error acquiring storage lock",c);return!1},this))};O.prototype.Be=function(a){var b=this.L.slice(0,a);return this.C&&b.length<a?this.X().then(d.bind(function(){return this.Ma()},this)).then(d.bind(function(c){if(c.length){var e={};d.h(b,function(k){e[k.id]=!0});for(var f=0;f<c.length;f++){var g=c[f];if((new Date).getTime()>
102
102
  g.flushAfter&&!e[g.id]&&(g.lf=!0,b.push(g),b.length>=a))break}}return b},this)):E.resolve(b)};O.prototype.pf=function(a){var b={};d.h(a,function(e){b[e]=!0});this.L=Xa(this.L,b);if(this.C){var c=d.bind(function(){return this.X().then(d.bind(function(){return this.Ma()},this)).then(d.bind(function(e){e=Xa(e,b);return this.dc(e)},this)).then(d.bind(function(){return this.Ma()},this)).then(d.bind(function(e){for(var f=0;f<e.length;f++){var g=e[f];if(g.id&&b[g.id])throw Error("Item not removed from storage");
103
- }return!0},this)).catch(d.bind(function(e){this.s("Error removing items",e,a);return!1},this))},this);return this.lock.nc(c,this.hb).catch(d.bind(function(e){this.s("Error acquiring storage lock",e);return sa(this.lock.storage,!0)?!1:c().then(d.bind(function(f){return f?f:this.T.removeItem(this.oa).then(function(){return f})},this)).catch(d.bind(function(f){this.s("Error clearing queue",f);return!1},this))},this))}return E.resolve(!0)};O.prototype.fg=function(a){this.L=Wa(this.L,a);return this.C?
104
- this.lock.nc(d.bind(function(){return this.X().then(d.bind(function(){return this.Ma()},this)).then(d.bind(function(b){b=Wa(b,a);return this.dc(b)},this)).catch(d.bind(function(b){this.s("Error updating items",a,b);return!1},this))},this),this.hb).catch(d.bind(function(b){this.s("Error acquiring storage lock",b);return!1},this)):E.resolve(!0)};O.prototype.Ma=function(){return this.X().then(d.bind(function(){return this.T.getItem(this.oa)},this)).then(d.bind(function(a){a&&!d.isArray(a)&&(this.s("Invalid storage entry:",
105
- a),a=null);return a||[]},this)).catch(d.bind(function(a){this.s("Error retrieving queue",a);return[]},this))};O.prototype.dc=function(a){return this.X().then(d.bind(function(){return this.T.setItem(this.oa,a)},this)).then(function(){return!0}).catch(d.bind(function(b){this.s("Error saving queue",b);return!1},this))};O.prototype.clear=function(){this.L=[];return this.C?this.X().then(d.bind(function(){return this.T.removeItem(this.oa)},this)):E.resolve()};var pa=la("batch");M.prototype.enqueue=function(a){return this.Ka.enqueue(a,
106
- this.Za)};M.prototype.start=function(){this.stopped=!1;this.Cb=0;return this.flush()};M.prototype.stop=function(){this.stopped=!0;this.jc&&(clearTimeout(this.jc),this.jc=null)};M.prototype.clear=function(){return this.Ka.clear()};M.prototype.Cd=function(){this.V=this.S.batch_size};M.prototype.ma=function(){this.Ed(this.S.batch_flush_interval_ms)};M.prototype.Ed=function(a){this.Za=a;this.stopped||(this.jc=setTimeout(d.bind(function(){this.stopped||this.flush()},this),this.Za))};M.prototype.yf=function(a,
107
- b){return new E(d.bind(function(c){this.wf(a,b,c)},this))};M.prototype.flush=function(a){if(this.cc)return pa.log("Flush: Request already in progress"),E.resolve();this.cc=!0;a=a||{};var b=this.S.batch_request_timeout_ms,c=(new Date).getTime(),e=this.V;return this.Ka.Be(e).then(d.bind(function(f){var g=f.length===e,k=[],h={};d.h(f,function(m){var t=m.payload;this.Ua&&!m.lf&&(t=this.Ua(t));if(t){t.event&&t.properties&&(t.properties=d.extend({},t.properties,{mp_sent_by_lib_version:"2.71.0"}));var w=
108
- !0,u=m.id;u?5<(this.$[u]||0)&&(this.s("[dupe] item ID sent too many times, not sending",{item:m,V:f.length,Uf:this.$[u]}),w=!1):this.s("[dupe] found item with no ID",{item:m});w&&k.push(t)}h[m.id]=t},this);if(1>k.length)return this.cc=!1,this.ma(),E.resolve();var p=d.bind(function(){return this.Ka.pf(d.map(f,function(m){return m.id})).then(d.bind(function(m){d.h(f,d.bind(function(t){var w=t.id;w?(this.$[w]=this.$[w]||0,this.$[w]++,5<this.$[w]&&this.s("[dupe] item ID sent too many times",{item:t,V:f.length,
109
- Uf:this.$[w]})):this.s("[dupe] found item with no ID while removing",{item:t})},this));if(m)return this.Cb=0,this.Rc&&!g?(this.ma(),E.resolve()):this.flush();5<++this.Cb?(this.s("Too many queue failures; disabling batching system."),this.Lf()):this.ma();return E.resolve()},this))},this),r=d.bind(function(m){this.cc=!1;try{if(a.Qd)return this.Ka.fg(h);if(d.j(m)&&"timeout"===m.error&&(new Date).getTime()-c>=b)return this.s("Network timeout; retrying"),this.flush();var t;if(t=d.j(m)){var w;if(!(w=500<=
110
- m.bb||429===m.bb)){var u;if(u=0>=m.bb){var I=q.navigator.onLine;u=!(d.m(I)||I)}w=u}t=w||"timeout"===m.error}if(t){var v=2*this.Za;m.Dd&&(v=1E3*parseInt(m.Dd,10)||v);v=Math.min(6E5,v);this.s("Error; retry in "+v+" ms");this.Ed(v);return E.resolve()}if(d.j(m)&&413===m.bb){if(1<f.length)return this.V=Math.min(this.V,Math.max(1,Math.floor(e/2)),f.length-1),this.s("413 response; reducing batch size to "+this.V),this.ma(),E.resolve();this.s("Single-event request too large; dropping",f);this.Cd()}return p()}catch(N){this.s("Error handling API response",
111
- N),this.ma()}},this),n={method:"POST",Ud:!0,Oe:!0,Md:b};a.Qd&&(n.kb="sendBeacon");pa.log("MIXPANEL REQUEST:",k);return this.yf(k,n).then(r)},this)).catch(d.bind(function(f){this.s("Error flushing request queue",f);this.ma()},this))};M.prototype.s=function(a,b){pa.error.apply(pa.error,arguments);if(this.fa)try{b instanceof Error||(b=Error(a)),this.fa(a,b)}catch(c){pa.error(c)}};var Gb={Gd:function(a,b){var c={},e={};d.j(a)?d.h(a,function(f,g){this.O(g)||(e[g]=f)},this):e[a]=b;c.$set=e;return c},Rd:function(a){var b=
103
+ }return!0},this)).catch(d.bind(function(e){this.s("Error removing items",e,a);return!1},this))},this);return this.lock.nc(c,this.hb).catch(d.bind(function(e){this.s("Error acquiring storage lock",e);return sa(this.lock.storage,!0)?!1:c().then(d.bind(function(f){return f?f:this.T.removeItem(this.pa).then(function(){return f})},this)).catch(d.bind(function(f){this.s("Error clearing queue",f);return!1},this))},this))}return E.resolve(!0)};O.prototype.fg=function(a){this.L=Wa(this.L,a);return this.C?
104
+ this.lock.nc(d.bind(function(){return this.X().then(d.bind(function(){return this.Ma()},this)).then(d.bind(function(b){b=Wa(b,a);return this.dc(b)},this)).catch(d.bind(function(b){this.s("Error updating items",a,b);return!1},this))},this),this.hb).catch(d.bind(function(b){this.s("Error acquiring storage lock",b);return!1},this)):E.resolve(!0)};O.prototype.Ma=function(){return this.X().then(d.bind(function(){return this.T.getItem(this.pa)},this)).then(d.bind(function(a){a&&!d.isArray(a)&&(this.s("Invalid storage entry:",
105
+ a),a=null);return a||[]},this)).catch(d.bind(function(a){this.s("Error retrieving queue",a);return[]},this))};O.prototype.dc=function(a){return this.X().then(d.bind(function(){return this.T.setItem(this.pa,a)},this)).then(function(){return!0}).catch(d.bind(function(b){this.s("Error saving queue",b);return!1},this))};O.prototype.clear=function(){this.L=[];return this.C?this.X().then(d.bind(function(){return this.T.removeItem(this.pa)},this)):E.resolve()};var pa=la("batch");M.prototype.enqueue=function(a){return this.Ka.enqueue(a,
106
+ this.Za)};M.prototype.start=function(){this.stopped=!1;this.Cb=0;return this.flush()};M.prototype.stop=function(){this.stopped=!0;this.jc&&(clearTimeout(this.jc),this.jc=null)};M.prototype.clear=function(){return this.Ka.clear()};M.prototype.Cd=function(){this.V=this.S.batch_size};M.prototype.na=function(){this.Ed(this.S.batch_flush_interval_ms)};M.prototype.Ed=function(a){this.Za=a;this.stopped||(this.jc=setTimeout(d.bind(function(){this.stopped||this.flush()},this),this.Za))};M.prototype.yf=function(a,
107
+ b){return new E(d.bind(function(c){this.wf(a,b,c)},this))};M.prototype.flush=function(a){if(this.cc)return pa.log("Flush: Request already in progress"),E.resolve();this.cc=!0;a=a||{};var b=this.S.batch_request_timeout_ms,c=(new Date).getTime(),e=this.V;return this.Ka.Be(e).then(d.bind(function(f){var g=f.length===e,k=[],h={};d.h(f,function(m){var t=m.payload;this.Ua&&!m.lf&&(t=this.Ua(t));if(t){t.event&&t.properties&&(t.properties=d.extend({},t.properties,{mp_sent_by_lib_version:"2.71.1"}));var w=
108
+ !0,u=m.id;u?5<(this.$[u]||0)&&(this.s("[dupe] item ID sent too many times, not sending",{item:m,V:f.length,Uf:this.$[u]}),w=!1):this.s("[dupe] found item with no ID",{item:m});w&&k.push(t)}h[m.id]=t},this);if(1>k.length)return this.cc=!1,this.na(),E.resolve();var p=d.bind(function(){return this.Ka.pf(d.map(f,function(m){return m.id})).then(d.bind(function(m){d.h(f,d.bind(function(t){var w=t.id;w?(this.$[w]=this.$[w]||0,this.$[w]++,5<this.$[w]&&this.s("[dupe] item ID sent too many times",{item:t,V:f.length,
109
+ Uf:this.$[w]})):this.s("[dupe] found item with no ID while removing",{item:t})},this));if(m)return this.Cb=0,this.Rc&&!g?(this.na(),E.resolve()):this.flush();5<++this.Cb?(this.s("Too many queue failures; disabling batching system."),this.Lf()):this.na();return E.resolve()},this))},this),r=d.bind(function(m){this.cc=!1;try{if(a.Qd)return this.Ka.fg(h);if(d.j(m)&&"timeout"===m.error&&(new Date).getTime()-c>=b)return this.s("Network timeout; retrying"),this.flush();var t;if(t=d.j(m)){var w;if(!(w=500<=
110
+ m.bb||429===m.bb)){var u;if(u=0>=m.bb){var I=q.navigator.onLine;u=!(d.m(I)||I)}w=u}t=w||"timeout"===m.error}if(t){var v=2*this.Za;m.Dd&&(v=1E3*parseInt(m.Dd,10)||v);v=Math.min(6E5,v);this.s("Error; retry in "+v+" ms");this.Ed(v);return E.resolve()}if(d.j(m)&&413===m.bb){if(1<f.length)return this.V=Math.min(this.V,Math.max(1,Math.floor(e/2)),f.length-1),this.s("413 response; reducing batch size to "+this.V),this.na(),E.resolve();this.s("Single-event request too large; dropping",f);this.Cd()}return p()}catch(N){this.s("Error handling API response",
111
+ N),this.na()}},this),n={method:"POST",Ud:!0,Oe:!0,Md:b};a.Qd&&(n.kb="sendBeacon");pa.log("MIXPANEL REQUEST:",k);return this.yf(k,n).then(r)},this)).catch(d.bind(function(f){this.s("Error flushing request queue",f);this.na()},this))};M.prototype.s=function(a,b){pa.error.apply(pa.error,arguments);if(this.fa)try{b instanceof Error||(b=Error(a)),this.fa(a,b)}catch(c){pa.error(c)}};var Gb={Gd:function(a,b){var c={},e={};d.j(a)?d.h(a,function(f,g){this.O(g)||(e[g]=f)},this):e[a]=b;c.$set=e;return c},Rd:function(a){var b=
112
112
  {},c=[];d.isArray(a)||(a=[a]);d.h(a,function(e){this.O(e)||c.push(e)},this);b.$unset=c;return b},Id:function(a,b){var c={},e={};d.j(a)?d.h(a,function(f,g){this.O(g)||(e[g]=f)},this):e[a]=b;c.$set_once=e;return c},Pd:function(a,b){var c={},e={};d.j(a)?d.h(a,function(f,g){this.O(g)||(e[g]=d.isArray(f)?f:[f])},this):e[a]=d.isArray(b)?b:[b];c.$union=e;return c},le:function(a,b){var c={},e={};d.j(a)?d.h(a,function(f,g){this.O(g)||(e[g]=f)},this):e[a]=b;c.$append=e;return c},Bd:function(a,b){var c={},e=
113
- {};d.j(a)?d.h(a,function(f,g){this.O(g)||(e[g]=f)},this):e[a]=b;c.$remove=e;return c},jg:function(){return{$delete:""}}};d.extend(D.prototype,Gb);D.prototype.ya=function(a,b,c){this.i=a;this.ub=b;this.tb=c};D.prototype.set=ea(function(a,b,c){var e=this.Gd(a,b);d.j(a)&&(c=b);return this.v(e,c)});D.prototype.na=ea(function(a,b,c){var e=this.Id(a,b);d.j(a)&&(c=b);return this.v(e,c)});D.prototype.lb=ea(function(a,b){a=this.Rd(a);return this.v(a,b)});D.prototype.Pa=ea(function(a,b,c){d.j(a)&&(c=b);a=this.Pd(a,
113
+ {};d.j(a)?d.h(a,function(f,g){this.O(g)||(e[g]=f)},this):e[a]=b;c.$remove=e;return c},jg:function(){return{$delete:""}}};d.extend(D.prototype,Gb);D.prototype.za=function(a,b,c){this.i=a;this.ub=b;this.tb=c};D.prototype.set=ea(function(a,b,c){var e=this.Gd(a,b);d.j(a)&&(c=b);return this.v(e,c)});D.prototype.oa=ea(function(a,b,c){var e=this.Id(a,b);d.j(a)&&(c=b);return this.v(e,c)});D.prototype.lb=ea(function(a,b){a=this.Rd(a);return this.v(a,b)});D.prototype.Pa=ea(function(a,b,c){d.j(a)&&(c=b);a=this.Pd(a,
114
114
  b);return this.v(a,c)});D.prototype["delete"]=ea(function(a){return this.v({$delete:""},a)});D.prototype.remove=ea(function(a,b,c){a=this.Bd(a,b);return this.v(a,c)});D.prototype.v=function(a,b){a.$group_key=this.ub;a.$group_id=this.tb;a.$token=this.J("token");a=d.Eb(a);return this.i.xb({type:"groups",data:a,endpoint:this.i.ha("groups")+"/"+this.J("api_routes").groups,Ab:this.i.H.groups},b)};D.prototype.O=function(a){return"$group_key"===a||"$group_id"===a};D.prototype.J=function(a){return this.i.g(a)};
115
- D.prototype.toString=function(){return this.i.toString()+".group."+this.ub+"."+this.tb};D.prototype.remove=D.prototype.remove;D.prototype.set=D.prototype.set;D.prototype.set_once=D.prototype.na;D.prototype.union=D.prototype.Pa;D.prototype.unset=D.prototype.lb;D.prototype.toString=D.prototype.toString;d.extend(y.prototype,Gb);y.prototype.ya=function(a){this.i=a};y.prototype.set=W(function(a,b,c){var e=this.Gd(a,b);d.j(a)&&(c=b);this.J("save_referrer")&&this.i.persistence.mc(document.referrer);e.$set=
116
- d.extend({},d.info.nf(),e.$set);return this.v(e,c)});y.prototype.na=W(function(a,b,c){var e=this.Id(a,b);d.j(a)&&(c=b);return this.v(e,c)});y.prototype.lb=W(function(a,b){a=this.Rd(a);return this.v(a,b)});y.prototype.ad=W(function(a,b,c){var e={},f={};d.j(a)?(d.h(a,function(g,k){this.O(k)||(isNaN(parseFloat(g))?A.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):f[k]=g)},this),c=b):(d.m(b)&&(b=1),f[a]=b);e.$add=f;return this.v(e,c)});y.prototype.append=W(function(a,
115
+ D.prototype.toString=function(){return this.i.toString()+".group."+this.ub+"."+this.tb};D.prototype.remove=D.prototype.remove;D.prototype.set=D.prototype.set;D.prototype.set_once=D.prototype.oa;D.prototype.union=D.prototype.Pa;D.prototype.unset=D.prototype.lb;D.prototype.toString=D.prototype.toString;d.extend(y.prototype,Gb);y.prototype.za=function(a){this.i=a};y.prototype.set=W(function(a,b,c){var e=this.Gd(a,b);d.j(a)&&(c=b);this.J("save_referrer")&&this.i.persistence.mc(document.referrer);e.$set=
116
+ d.extend({},d.info.nf(),e.$set);return this.v(e,c)});y.prototype.oa=W(function(a,b,c){var e=this.Id(a,b);d.j(a)&&(c=b);return this.v(e,c)});y.prototype.lb=W(function(a,b){a=this.Rd(a);return this.v(a,b)});y.prototype.ad=W(function(a,b,c){var e={},f={};d.j(a)?(d.h(a,function(g,k){this.O(k)||(isNaN(parseFloat(g))?A.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):f[k]=g)},this),c=b):(d.m(b)&&(b=1),f[a]=b);e.$add=f;return this.v(e,c)});y.prototype.append=W(function(a,
117
117
  b,c){d.j(a)&&(c=b);a=this.le(a,b);return this.v(a,c)});y.prototype.remove=W(function(a,b,c){d.j(a)&&(c=b);a=this.Bd(a,b);return this.v(a,c)});y.prototype.Pa=W(function(a,b,c){d.j(a)&&(c=b);a=this.Pd(a,b);return this.v(a,c)});y.prototype.Zf=W(function(){A.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")});y.prototype.Gc=function(a){return this.set("$transactions",[],a)};y.prototype.Oc=function(){if(this.vb()){var a={$delete:this.i.Z()};return this.v(a)}A.error("mixpanel.people.delete_user() requires you to call identify() first")};
118
118
  y.prototype.toString=function(){return this.i.toString()+".people"};y.prototype.v=function(a,b){a.$token=this.J("token");a.$distinct_id=this.i.Z();var c=this.i.F("$device_id"),e=this.i.F("$user_id"),f=this.i.F("$had_persisted_distinct_id");c&&(a.$device_id=c);e&&(a.$user_id=e);f&&(a.$had_persisted_distinct_id=f);c=d.Eb(a);return this.vb()?this.i.xb({type:"people",data:c,endpoint:this.i.ha("people")+"/"+this.J("api_routes").engage,Ab:this.i.H.bc},b):(this.Zd(a),d.m(b)||(this.J("verbose")?b({status:-1,
119
- error:null}):b(-1)),d.truncate(c,255))};y.prototype.J=function(a){return this.i.g(a)};y.prototype.vb=function(){return!0===this.i.va.Zc};y.prototype.Zd=function(a){"$set"in a?this.i.persistence.G("$set",a):"$set_once"in a?this.i.persistence.G("$set_once",a):"$unset"in a?this.i.persistence.G("$unset",a):"$add"in a?this.i.persistence.G("$add",a):"$append"in a?this.i.persistence.G("$append",a):"$remove"in a?this.i.persistence.G("$remove",a):"$union"in a?this.i.persistence.G("$union",a):A.error("Invalid call to _enqueue():",
120
- a)};y.prototype.wa=function(a,b,c,e){var f=this,g=d.extend({},this.i.persistence.Fa(a)),k=g;d.m(g)||!d.j(g)||d.cb(g)||(f.i.persistence.K(a,g),f.i.persistence.save(),e&&(k=e(g)),b.call(f,k,function(h,p){0===h&&f.i.persistence.G(a,g);d.m(c)||c(h,p)}))};y.prototype.ae=function(a,b,c,e,f,g,k){var h=this;this.wa("$set",this.set,a);this.wa("$set_once",this.na,e);this.wa("$unset",this.lb,g,function(n){return d.keys(n)});this.wa("$add",this.ad,b);this.wa("$union",this.Pa,f);a=this.i.persistence.Fa("$append");
119
+ error:null}):b(-1)),d.truncate(c,255))};y.prototype.J=function(a){return this.i.g(a)};y.prototype.vb=function(){return!0===this.i.wa.Zc};y.prototype.Zd=function(a){"$set"in a?this.i.persistence.G("$set",a):"$set_once"in a?this.i.persistence.G("$set_once",a):"$unset"in a?this.i.persistence.G("$unset",a):"$add"in a?this.i.persistence.G("$add",a):"$append"in a?this.i.persistence.G("$append",a):"$remove"in a?this.i.persistence.G("$remove",a):"$union"in a?this.i.persistence.G("$union",a):A.error("Invalid call to _enqueue():",
120
+ a)};y.prototype.xa=function(a,b,c,e){var f=this,g=d.extend({},this.i.persistence.Fa(a)),k=g;d.m(g)||!d.j(g)||d.cb(g)||(f.i.persistence.K(a,g),f.i.persistence.save(),e&&(k=e(g)),b.call(f,k,function(h,p){0===h&&f.i.persistence.G(a,g);d.m(c)||c(h,p)}))};y.prototype.ae=function(a,b,c,e,f,g,k){var h=this;this.xa("$set",this.set,a);this.xa("$set_once",this.oa,e);this.xa("$unset",this.lb,g,function(n){return d.keys(n)});this.xa("$add",this.ad,b);this.xa("$union",this.Pa,f);a=this.i.persistence.Fa("$append");
121
121
  if(!d.m(a)&&d.isArray(a)&&a.length)for(b=function(n,m){0===n&&h.i.persistence.G("$append",p);d.m(c)||c(n,m)},e=a.length-1;0<=e;e--){a=this.i.persistence.Fa("$append");var p=a.pop();h.i.persistence.save();d.cb(p)||h.append(p,b)}a=this.i.persistence.Fa("$remove");if(!d.m(a)&&d.isArray(a)&&a.length)for(b=function(n,m){0===n&&h.i.persistence.G("$remove",r);d.m(k)||k(n,m)},e=a.length-1;0<=e;e--){a=this.i.persistence.Fa("$remove");var r=a.pop();h.i.persistence.save();d.cb(r)||h.remove(r,b)}};y.prototype.O=
122
- function(a){return"$distinct_id"===a||"$token"===a||"$device_id"===a||"$user_id"===a||"$had_persisted_distinct_id"===a};y.prototype.set=y.prototype.set;y.prototype.set_once=y.prototype.na;y.prototype.unset=y.prototype.lb;y.prototype.increment=y.prototype.ad;y.prototype.append=y.prototype.append;y.prototype.remove=y.prototype.remove;y.prototype.union=y.prototype.Pa;y.prototype.track_charge=y.prototype.Zf;y.prototype.clear_charges=y.prototype.Gc;y.prototype.delete_user=y.prototype.Oc;y.prototype.toString=
122
+ function(a){return"$distinct_id"===a||"$token"===a||"$device_id"===a||"$user_id"===a||"$had_persisted_distinct_id"===a};y.prototype.set=y.prototype.set;y.prototype.set_once=y.prototype.oa;y.prototype.unset=y.prototype.lb;y.prototype.increment=y.prototype.ad;y.prototype.append=y.prototype.append;y.prototype.remove=y.prototype.remove;y.prototype.union=y.prototype.Pa;y.prototype.track_charge=y.prototype.Zf;y.prototype.clear_charges=y.prototype.Gc;y.prototype.delete_user=y.prototype.Oc;y.prototype.toString=
123
123
  y.prototype.toString;var qc="__mps __mpso __mpus __mpa __mpap __mpr __mpu $people_distinct_id __alias __timers".split(" ");z.prototype.Ja=function(){var a={};this.load();d.h(this.props,function(b,c){d.Rb(qc,c)||(a[c]=b)});return a};z.prototype.load=function(){if(!this.disabled){var a=this.storage.parse(this.name);a&&(this.props=d.extend({},a))}};z.prototype.upgrade=function(){if(this.storage===d.localStorage){var a=d.cookie.parse(this.name);d.cookie.remove(this.name);d.cookie.remove(this.name,!0);
124
124
  a&&this.N(a)}else this.storage===d.cookie&&(a=d.localStorage.parse(this.name),d.localStorage.remove(this.name),a&&this.N(a))};z.prototype.save=function(){this.disabled||this.storage.set(this.name,fa(this.props),this.Hb,this.Db,this.Fd,this.Mc,this.Wa)};z.prototype.fb=function(a){this.load();return this.props[a]};z.prototype.remove=function(){this.storage.remove(this.name,!1,this.Wa);this.storage.remove(this.name,!0,this.Wa)};z.prototype.clear=function(){this.remove();this.props={}};z.prototype.N=
125
125
  function(a,b,c){return d.j(a)?("undefined"===typeof b&&(b="None"),this.Hb="undefined"===typeof c?this.Nc:c,this.load(),d.h(a,function(e,f){this.props.hasOwnProperty(f)&&this.props[f]!==b||(this.props[f]=e)},this),this.save(),!0):!1};z.prototype.register=function(a,b){return d.j(a)?(this.Hb="undefined"===typeof b?this.Nc:b,this.load(),d.extend(this.props,a),this.save(),!0):!1};z.prototype.unregister=function(a){this.load();a in this.props&&(delete this.props[a],this.save())};z.prototype.Td=function(a){this.register(d.info.uf(a))};
126
- z.prototype.mc=function(a){this.N({$initial_referrer:a||"$direct",$initial_referring_domain:d.info.zd(a)||"$direct"},"")};z.prototype.Le=function(){return d.pa({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};z.prototype.Sd=function(a){this.Nc=this.Hb=a.cookie_expiration;this.Hd(a.disable_persistence);this.Cf(a.cookie_domain);this.Df(a.cross_site_cookie);this.Ef(a.cross_subdomain_cookie);this.Hf(a.secure_cookie)};z.prototype.Hd=function(a){(this.disabled=
126
+ z.prototype.mc=function(a){this.N({$initial_referrer:a||"$direct",$initial_referring_domain:d.info.zd(a)||"$direct"},"")};z.prototype.Le=function(){return d.qa({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};z.prototype.Sd=function(a){this.Nc=this.Hb=a.cookie_expiration;this.Hd(a.disable_persistence);this.Cf(a.cookie_domain);this.Df(a.cross_site_cookie);this.Ef(a.cross_subdomain_cookie);this.Hf(a.secure_cookie)};z.prototype.Hd=function(a){(this.disabled=
127
127
  a)?this.remove():this.save()};z.prototype.Cf=function(a){a!==this.Wa&&(this.remove(),this.Wa=a,this.save())};z.prototype.Df=function(a){a!==this.Mc&&(this.Mc=a,this.remove(),this.save())};z.prototype.Ef=function(a){a!==this.Db&&(this.Db=a,this.remove(),this.save())};z.prototype.Je=function(){return this.Db};z.prototype.Hf=function(a){a!==this.Fd&&(this.Fd=a?!0:!1,this.remove(),this.save())};z.prototype.G=function(a,b){var c=this.Ra(a);a=b[a];var e=this.U("$set"),f=this.U("$set_once"),g=this.U("$unset"),
128
128
  k=this.U("$add"),h=this.U("$union"),p=this.U("$remove",[]),r=this.U("$append",[]);"__mps"===c?(d.extend(e,a),this.K("$add",a),this.K("$union",a),this.K("$unset",a)):"__mpso"===c?(d.h(a,function(n,m){m in f||(f[m]=n)}),this.K("$unset",a)):"__mpus"===c?d.h(a,function(n){d.h([e,f,k,h],function(m){n in m&&delete m[n]});d.h(r,function(m){n in m&&delete m[n]});g[n]=!0}):"__mpa"===c?(d.h(a,function(n,m){m in e?e[m]+=n:(m in k||(k[m]=0),k[m]+=n)},this),this.K("$unset",a)):"__mpu"===c?(d.h(a,function(n,m){d.isArray(n)&&
129
129
  (m in h||(h[m]=[]),d.h(n,function(t){d.Rb(h[m],t)||h[m].push(t)}))}),this.K("$unset",a)):"__mpr"===c?(p.push(a),this.K("$append",a)):"__mpap"===c&&(r.push(a),this.K("$unset",a));A.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");A.log(b);this.save()};z.prototype.K=function(a,b){var c=this.props[this.Ra(a)];d.m(c)||d.h(b,function(e,f){"$append"===a||"$remove"===a?d.h(c,function(g){g[f]===e&&delete g[f]}):delete c[f]},this)};z.prototype.Fa=function(a){return this.fb(this.Ra(a))};z.prototype.Ra=
@@ -134,39 +134,39 @@ function(c){c.put(b,a)})};U.prototype.getItem=function(a){var b;return this.gb("
134
134
  (za=function(){return X.sendBeacon.apply(X,arguments)});var Hb={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},Ib={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Hb,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:"base64",app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ja,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",
135
135
  cookie_name:"",loaded:ja,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},
136
136
  ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5E3,batch_request_timeout_ms:9E4,batch_autostart:!0,hooks:{},record_block_class:/^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$/,record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_heatmap_data:!1,record_idle_timeout_ms:18E5,record_mask_text_class:/^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$/,record_mask_text_selector:"*",record_max_ms:864E5,record_min_ms:0,record_sessions_percent:0,
137
- recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Ta=!1;l.prototype.B=function(a,b,c){if(d.m(c))this.A("You must name your new library: init(token, config, name)");else if("mixpanel"===c)this.A("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=qa(a,b,c),F[c]=a,a.Sa(),a};l.prototype.ya=function(a,b,c){b=b||{};this.__loaded=!0;this.config={};var e={};"api_payload_format"in b||(b.api_host||Ib.api_host).match(/\.mixpanel\.com/)&&
138
- (e.api_payload_format="json");this.ec(d.extend({},Ib,e,b,{name:c,token:a,callback_fn:("mixpanel"===c?c:"mixpanel."+c)+"._jsc"}));this._jsc=ja;this.nb=[];this.ob=[];this.mb=[];this.va={disable_all_events:!1,identify_called:!1};this.H={};if(this.ua=this.g("batch_requests"))if(d.localStorage.Da(!0)&&ha){if(this.Ye(),za&&q.addEventListener){var f=d.bind(function(){this.H.ga.stopped||this.H.ga.flush({Qd:!0})},this);q.addEventListener("pagehide",function(g){g.persisted&&f()});q.addEventListener("visibilitychange",
139
- function(){"hidden"===x.visibilityState&&f()})}}else this.ua=!1,A.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),d.h(this.Wc(),function(g){A.log("Clearing batch queue "+g.La);d.localStorage.remove(g.La)});this.persistence=this.cookie=new z(this.config);this.ra={};this.be();a=d.ta();this.Z()||this.N({distinct_id:"$device:"+a,$device_id:a},"");this.flags=new B({Kb:d.bind(function(){return this.ha("flags")+"/"+this.g("api_routes").flags},this),Ee:d.bind(this.g,this),
140
- Af:d.bind(this.ec,this),Ie:d.bind(this.F,this),cg:d.bind(this.track,this)});this.flags.B();this.flags=this.flags;this.zb=new G(this);this.zb.B();this.de();this.pb()};l.prototype.de=function(){if(this.g("disable_persistence"))A.log("Tab ID initialization skipped due to disable_persistence config");else if(d.sessionStorage.Da())try{var a=this.g("name")+"_"+this.g("token"),b="mp_tab_id_"+a,c="mp_gen_new_tab_id_"+a;!d.sessionStorage.get(c)&&d.sessionStorage.get(b)||d.sessionStorage.set(b,"$tab-"+d.ta());
137
+ recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Ta=!1;l.prototype.B=function(a,b,c){if(d.m(c))this.A("You must name your new library: init(token, config, name)");else if("mixpanel"===c)this.A("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=qa(a,b,c),F[c]=a,a.Sa(),a};l.prototype.za=function(a,b,c){b=b||{};this.__loaded=!0;this.config={};var e={};"api_payload_format"in b||(b.api_host||Ib.api_host).match(/\.mixpanel\.com/)&&
138
+ (e.api_payload_format="json");this.ec(d.extend({},Ib,e,b,{name:c,token:a,callback_fn:("mixpanel"===c?c:"mixpanel."+c)+"._jsc"}));this._jsc=ja;this.nb=[];this.ob=[];this.mb=[];this.wa={disable_all_events:!1,identify_called:!1};this.H={};if(this.va=this.g("batch_requests"))if(d.localStorage.Da(!0)&&ha){if(this.Ye(),za&&q.addEventListener){var f=d.bind(function(){this.H.ga.stopped||this.H.ga.flush({Qd:!0})},this);q.addEventListener("pagehide",function(g){g.persisted&&f()});q.addEventListener("visibilitychange",
139
+ function(){"hidden"===x.visibilityState&&f()})}}else this.va=!1,A.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),d.h(this.Wc(),function(g){A.log("Clearing batch queue "+g.La);d.localStorage.remove(g.La)});this.persistence=this.cookie=new z(this.config);this.sa={};this.be();a=d.ua();this.Z()||this.N({distinct_id:"$device:"+a,$device_id:a},"");this.flags=new B({Kb:d.bind(function(){return this.ha("flags")+"/"+this.g("api_routes").flags},this),Ee:d.bind(this.g,this),
140
+ Af:d.bind(this.ec,this),Ie:d.bind(this.F,this),cg:d.bind(this.track,this)});this.flags.B();this.flags=this.flags;this.zb=new G(this);this.zb.B();this.de();this.pb()};l.prototype.de=function(){if(this.g("disable_persistence"))A.log("Tab ID initialization skipped due to disable_persistence config");else if(d.sessionStorage.Da())try{var a=this.g("name")+"_"+this.g("token"),b="mp_tab_id_"+a,c="mp_gen_new_tab_id_"+a;!d.sessionStorage.get(c)&&d.sessionStorage.get(b)||d.sessionStorage.set(b,"$tab-"+d.ua());
141
141
  d.sessionStorage.set(c,"1");this.Sf=d.sessionStorage.get(b);q.addEventListener("beforeunload",function(){d.sessionStorage.remove(c)})}catch(e){this.A("Error initializing tab id",e)}else this.A("Session storage is not supported, cannot keep track of unique tab ID.")};l.prototype.Yc=function(){return this.Sf||null};l.prototype.ee=function(){if(this.g("disable_persistence"))return A.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var a=new U("mixpanelRecordingRegistry"),
142
142
  b=this.Yc();return a.B().then(function(){return a.getAll()}).then(function(c){for(var e=0;e<c.length;e++){var f=c[e],g=Date.now();if(!f||g>f.maxExpires||g>f.idleExpires||c[e].tabId===b)return!0}return!1}).catch(d.bind(function(c){this.A("Error checking recording registry",c)},this))};l.prototype.pb=aa(function(a){if(q.MutationObserver){var b=d.bind(function(e){var f=d.bind(function(){this.D=this.D||new q.__mp_recorder(this);this.D.resumeRecording(e)},this);d.m(q.__mp_recorder)?Va(this.g("recorder_src"),
143
143
  f):f()},this),c=0<this.g("record_sessions_percent")&&100*Math.random()<=this.g("record_sessions_percent");a||c?b(!0):this.ee().then(function(e){e&&b(!1)})}else A.l("Browser does not support MutationObserver; skipping session recording")});l.prototype.Kf=function(){this.pb(!0)};l.prototype.ic=function(){return this.D?this.D.stopRecording():Promise.resolve()};l.prototype.mf=function(){return this.D?this.D.pauseRecording():Promise.resolve()};l.prototype.sf=function(){return this.D?this.D.resumeRecording():
144
- Promise.resolve()};l.prototype.Ca=function(){return this.sb()&&this.g("record_heatmap_data")};l.prototype.Xc=function(){var a={},b=this.sb();b&&(a.$mp_replay_id=b);return a};l.prototype.Me=function(){var a=null,b=this.sb();b&&(a="https://mixpanel.com/projects/replay-redirect?"+d.oc({replay_id:b,distinct_id:this.Z(),token:this.g("token")}));return a};l.prototype.sb=function(){var a=null;this.D&&(a=this.D.replayId);return a||null};l.prototype.Vd=function(){return this.D};l.prototype.Sa=function(){this.g("loaded")(this);
145
- this.Cc();this.people.na(this.persistence.Le());if(this.g("store_google")&&this.g("stop_utm_persistence")){var a=d.info.za(null);d.h(a,function(b,c){this.unregister(c)}.bind(this))}};l.prototype.Cc=function(){this.persistence.Td(x.referrer);this.g("store_google")&&!this.g("stop_utm_persistence")&&this.register(d.info.za());this.g("save_referrer")&&this.persistence.mc(x.referrer)};l.prototype.Yd=function(){d.h(this.nb,function(a){this.wb.apply(this,a)},this);this.Ba()||d.h(this.ob,function(a){this.v.apply(this,
144
+ Promise.resolve()};l.prototype.ja=function(){return this.sb()&&this.g("record_heatmap_data")};l.prototype.Xc=function(){var a={},b=this.sb();b&&(a.$mp_replay_id=b);return a};l.prototype.Me=function(){var a=null,b=this.sb();b&&(a="https://mixpanel.com/projects/replay-redirect?"+d.oc({replay_id:b,distinct_id:this.Z(),token:this.g("token")}));return a};l.prototype.sb=function(){var a=null;this.D&&(a=this.D.replayId);return a||null};l.prototype.Vd=function(){return this.D};l.prototype.Sa=function(){this.g("loaded")(this);
145
+ this.Cc();this.people.oa(this.persistence.Le());if(this.g("store_google")&&this.g("stop_utm_persistence")){var a=d.info.Aa(null);d.h(a,function(b,c){this.unregister(c)}.bind(this))}};l.prototype.Cc=function(){this.persistence.Td(x.referrer);this.g("store_google")&&!this.g("stop_utm_persistence")&&this.register(d.info.Aa());this.g("save_referrer")&&this.persistence.mc(x.referrer)};l.prototype.Yd=function(){d.h(this.nb,function(a){this.wb.apply(this,a)},this);this.Ca()||d.h(this.ob,function(a){this.v.apply(this,
146
146
  a)},this);delete this.nb;delete this.ob};l.prototype.wb=function(a,b){if(this.g("img"))return this.A("You can't use DOM tracking functions with img = true."),!1;if(!Ta)return this.nb.push([a,b]),!1;a=(new a).B(this);return a.track.apply(a,b)};l.prototype.yc=function(a,b){if(d.m(a))return null;if(ha)return function(g){a(g,b)};var c=this._jsc,e=""+Math.floor(1E8*Math.random()),f=this.g("callback_fn")+"["+e+"]";c[e]=function(g){delete c[e];a(g,b)};return f};l.prototype.v=function(a,b,c,e){var f=!0;if(Ua)return this.ob.push(arguments),
147
147
  f;var g={method:this.g("api_method"),kb:this.g("api_transport"),Ud:this.g("verbose")},k=null;e||!d.Tb(c)&&"string"!==typeof c||(e=c,c=null);c=d.extend(g,c||{});ha||(c.method="GET");g="POST"===c.method;var h=za&&g&&"sendbeacon"===c.kb.toLowerCase(),p=c.Ud;b.verbose&&(p=!0);this.g("test")&&(b.test=1);p&&(b.verbose=1);this.g("img")&&(b.img=1);if(!ha)if(e)b.callback=e;else if(p||this.g("test"))b.callback="(function(){})";b.ip=this.g("ip")?1:0;b._=(new Date).getTime().toString();g&&(k="data="+encodeURIComponent(b.data),
148
148
  delete b.data);d.extend(b,this.g("api_extra_query_params"));a+="?"+d.oc(b);var r=this;if("img"in b)k=x.createElement("img"),k.src=a,x.body.appendChild(k);else if(h){try{f=za(a,k)}catch(w){r.A(w),f=!1}try{e&&e(f?1:0)}catch(w){r.A(w)}}else if(ha)try{var n=new XMLHttpRequest;n.open(c.method,a,!0);var m=this.g("xhr_headers");g&&(m["Content-Type"]="application/x-www-form-urlencoded");d.h(m,function(w,u){n.setRequestHeader(u,w)});if(c.Md&&"undefined"!==typeof n.timeout){n.timeout=c.Md;var t=(new Date).getTime()}n.withCredentials=
149
- !0;n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status){if(e)if(p){try{var w=d.sa(n.responseText)}catch(u){if(r.A(u),c.Oe)w=n.responseText;else return}e(w)}else e(Number(n.responseText))}else w=n.timeout&&!n.status&&(new Date).getTime()-t>=n.timeout?"timeout":"Bad HTTP status: "+n.status+" "+n.statusText,r.A(w),e&&(p?e({status:0,bb:n.status,error:w,Dd:(n.responseHeaders||{})["Retry-After"]}):e(0))};n.send(k)}catch(w){r.A(w),f=!1}else k=x.createElement("script"),k.type="text/javascript",
149
+ !0;n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status){if(e)if(p){try{var w=d.ta(n.responseText)}catch(u){if(r.A(u),c.Oe)w=n.responseText;else return}e(w)}else e(Number(n.responseText))}else w=n.timeout&&!n.status&&(new Date).getTime()-t>=n.timeout?"timeout":"Bad HTTP status: "+n.status+" "+n.statusText,r.A(w),e&&(p?e({status:0,bb:n.status,error:w,Dd:(n.responseHeaders||{})["Retry-After"]}):e(0))};n.send(k)}catch(w){r.A(w),f=!1}else k=x.createElement("script"),k.type="text/javascript",
150
150
  k.async=!0,k.defer=!0,k.src=a,m=x.getElementsByTagName("script")[0],m.parentNode.insertBefore(k,m);return f};l.prototype.qb=function(a){function b(k,h){d.h(k,function(p){if(d.isArray(p[0])){var r=h;d.h(p,function(n){r=r[n[0]].apply(r,n.slice(1))})}else this[p[0]].apply(this,p.slice(1))},h)}var c,e=[],f=[],g=[];d.h(a,function(k){k&&(c=k[0],d.isArray(c)?g.push(k):"function"===typeof k?k.call(this):d.isArray(k)&&"alias"===c?e.push(k):d.isArray(k)&&-1!==c.indexOf("track")&&"function"===typeof this[c]?
151
151
  g.push(k):f.push(k))},this);b(e,this);b(f,this);b(g,this)};l.prototype.Fc=function(){return!!this.H.ga};l.prototype.Wc=function(){var a="__mpq_"+this.g("token");return this.qc=this.qc||{ga:{type:"events",Ta:"track",La:a+"_ev"},bc:{type:"people",Ta:"engage",La:a+"_pp"},groups:{type:"groups",Ta:"groups",La:a+"_gr"}}};l.prototype.Ye=function(){if(!this.Fc()){var a=d.bind(function(c){return new M(c.La,{S:this.config,fa:this.g("error_reporter"),xf:d.bind(function(e,f,g){this.v(this.ha(c.Ta)+"/"+this.g("api_routes")[c.Ta],
152
- this.sc(e),f,this.yc(g,e))},this),Ua:d.bind(function(e){return this.Bc("before_send_"+c.type,e)},this),Mf:d.bind(this.hc,this),C:!0})},this),b=this.Wc();this.H={ga:a(b.ga),bc:a(b.bc),groups:a(b.groups)}}this.g("batch_autostart")&&this.fc()};l.prototype.fc=function(){this.Wd=!0;this.Fc()&&(this.ua=!0,d.h(this.H,function(a){a.start()}))};l.prototype.hc=function(){this.ua=!1;d.h(this.H,function(a){a.stop();a.clear()})};l.prototype.push=function(a){this.qb([a])};l.prototype.disable=function(a){"undefined"===
153
- typeof a?this.va.we=!0:this.mb=this.mb.concat(a)};l.prototype.sc=function(a){a=fa(a);"base64"===this.g("api_payload_format")&&(a=d.me(a));return{data:a}};l.prototype.xb=function(a,b){var c=d.truncate(a.data,255),e=a.endpoint,f=a.Ab,g=a.If,k=a.zf||{};b=b||ja;var h=!0,p=d.bind(function(){k.Ld||(c=this.Bc("before_send_"+a.type,c));return c?(A.log("MIXPANEL REQUEST:"),A.log(c),this.v(e,this.sc(c),k,this.yc(b,c))):null},this);this.ua&&!g?f.enqueue(c).then(function(r){r?b(1,c):p()}):h=p();return h&&c};
152
+ this.sc(e),f,this.yc(g,e))},this),Ua:d.bind(function(e){return this.Bc("before_send_"+c.type,e)},this),Mf:d.bind(this.hc,this),C:!0})},this),b=this.Wc();this.H={ga:a(b.ga),bc:a(b.bc),groups:a(b.groups)}}this.g("batch_autostart")&&this.fc()};l.prototype.fc=function(){this.Wd=!0;this.Fc()&&(this.va=!0,d.h(this.H,function(a){a.start()}))};l.prototype.hc=function(){this.va=!1;d.h(this.H,function(a){a.stop();a.clear()})};l.prototype.push=function(a){this.qb([a])};l.prototype.disable=function(a){"undefined"===
153
+ typeof a?this.wa.we=!0:this.mb=this.mb.concat(a)};l.prototype.sc=function(a){a=fa(a);"base64"===this.g("api_payload_format")&&(a=d.me(a));return{data:a}};l.prototype.xb=function(a,b){var c=d.truncate(a.data,255),e=a.endpoint,f=a.Ab,g=a.If,k=a.zf||{};b=b||ja;var h=!0,p=d.bind(function(){k.Ld||(c=this.Bc("before_send_"+a.type,c));return c?(A.log("MIXPANEL REQUEST:"),A.log(c),this.v(e,this.sc(c),k,this.yc(b,c))):null},this);this.va&&!g?f.enqueue(c).then(function(r){r?b(1,c):p()}):h=p();return h&&c};
154
154
  l.prototype.track=aa(function(a,b,c,e){e||"function"!==typeof c||(e=c,c=null);c=c||{};var f=c.transport;f&&(c.kb=f);f=c.send_immediately;"function"!==typeof e&&(e=ja);if(d.m(a))this.A("No event name provided to mixpanel.track");else if(this.uc(a))e(0);else{b=d.extend({},b);b.token=this.g("token");var g=this.persistence.qf(a);d.m(g)||(b.$duration=parseFloat((((new Date).getTime()-g)/1E3).toFixed(3)));this.Cc();g=this.g("track_marketing")?d.info.df():{};b=d.extend({},d.info.Ja({mp_loader:this.g("mp_loader")}),
155
- g,this.persistence.Ja(),this.ra,this.Xc(),b);g=this.g("property_blacklist");d.isArray(g)?d.h(g,function(k){delete b[k]}):this.A("Invalid value for property_blacklist config: "+g);return this.xb({type:"events",data:{event:a,properties:b},endpoint:this.ha("events")+"/"+this.g("api_routes").track,Ab:this.H.ga,If:f,zf:c},e)}});l.prototype.Gf=aa(function(a,b,c){d.isArray(b)||(b=[b]);var e={};e[a]=b;this.register(e);return this.people.set(a,b,c)});l.prototype.he=aa(function(a,b,c){var e=this.F(a),f={};
155
+ g,this.persistence.Ja(),this.sa,this.Xc(),b);g=this.g("property_blacklist");d.isArray(g)?d.h(g,function(k){delete b[k]}):this.A("Invalid value for property_blacklist config: "+g);return this.xb({type:"events",data:{event:a,properties:b},endpoint:this.ha("events")+"/"+this.g("api_routes").track,Ab:this.H.ga,If:f,zf:c},e)}});l.prototype.Gf=aa(function(a,b,c){d.isArray(b)||(b=[b]);var e={};e[a]=b;this.register(e);return this.people.set(a,b,c)});l.prototype.he=aa(function(a,b,c){var e=this.F(a),f={};
156
156
  void 0===e?(f[a]=[b],this.register(f)):-1===e.indexOf(b)&&(e.push(b),f[a]=e,this.register(f));return this.people.Pa(a,b,c)});l.prototype.rf=aa(function(a,b,c){var e=this.F(a);if(void 0!==e){var f=e.indexOf(b);-1<f&&(e.splice(f,1),this.register({kg:e}));0===e.length&&this.unregister(a)}return this.people.remove(a,b,c)});l.prototype.bg=aa(function(a,b,c,e){var f=d.extend({},b||{});d.h(c,function(g,k){null!==g&&void 0!==g&&(f[k]=g)});return this.track(a,f,e)});l.prototype.Xd=function(a,b){return a+"_"+
157
- JSON.stringify(b)};l.prototype.Ke=function(a,b){var c=this.Xd(a,b),e=this.rc[c];if(void 0===e||e.ub!==a||e.tb!==b)e=new D,e.ya(this,a,b),this.rc[c]=e;return e};l.prototype.lc=aa(function(a,b){"object"!==typeof a&&(a={});b=b||{};b=b.event_name||"$mp_web_page_view";var c=d.extend(d.info.ff(),d.info.za(),d.info.Ic());a=d.extend({},c,a);return this.track(b,a)});l.prototype.ag=function(){return this.wb.call(this,da,arguments)};l.prototype.$f=function(){return this.wb.call(this,ra,arguments)};l.prototype.Tf=
158
- function(a){d.m(a)?this.A("No event name provided to mixpanel.time_event"):this.uc(a)||this.persistence.Ff(a)};var Mb={persistent:!0};l.prototype.register=function(a,b){b=Ba(b);b.persistent?this.persistence.register(a,b.days):d.extend(this.ra,a)};l.prototype.N=function(a,b,c){c=Ba(c);c.persistent?this.persistence.N(a,b,c.days):("undefined"===typeof b&&(b="None"),d.h(a,function(e,f){this.ra.hasOwnProperty(f)&&this.ra[f]!==b||(this.ra[f]=e)},this))};l.prototype.unregister=function(a,b){b=Ba(b);b.persistent?
159
- this.persistence.unregister(a):delete this.ra[a]};l.prototype.Ac=function(a,b){var c={};c[a]=b;this.register(c)};l.prototype.Qb=function(a,b,c,e,f,g,k,h){var p=this.Z();if(a&&p!==a){if("string"===typeof a&&0===a.indexOf("$device:"))return this.A("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:a})}this.F("$device_id")||this.N({$had_persisted_distinct_id:!0,$device_id:p},"");a!==p&&a!==this.F("__alias")&&(this.unregister("__alias"),this.register({distinct_id:a}));this.va.Zc=!0;
160
- this.people.ae(b,c,e,f,g,k,h);a!==p&&this.track("$identify",{distinct_id:a,$anon_distinct_id:p},{Ld:!0});a!==p&&this.flags.Ib()};l.prototype.reset=function(){this.ic();this.persistence.clear();this.va.Zc=!1;var a=d.ta();this.N({distinct_id:"$device:"+a,$device_id:a},"");this.pb()};l.prototype.Z=function(){return this.F("distinct_id")};l.prototype.ie=function(a,b){if(a===this.F("$people_distinct_id"))return this.A("Attempting to create alias for existing People user - aborting."),-2;var c=this;d.m(b)&&
157
+ JSON.stringify(b)};l.prototype.Ke=function(a,b){var c=this.Xd(a,b),e=this.rc[c];if(void 0===e||e.ub!==a||e.tb!==b)e=new D,e.za(this,a,b),this.rc[c]=e;return e};l.prototype.lc=aa(function(a,b){"object"!==typeof a&&(a={});b=b||{};b=b.event_name||"$mp_web_page_view";var c=d.extend(d.info.ff(),d.info.Aa(),d.info.Ic());a=d.extend({},c,a);return this.track(b,a)});l.prototype.ag=function(){return this.wb.call(this,da,arguments)};l.prototype.$f=function(){return this.wb.call(this,ra,arguments)};l.prototype.Tf=
158
+ function(a){d.m(a)?this.A("No event name provided to mixpanel.time_event"):this.uc(a)||this.persistence.Ff(a)};var Mb={persistent:!0};l.prototype.register=function(a,b){b=Ba(b);b.persistent?this.persistence.register(a,b.days):d.extend(this.sa,a)};l.prototype.N=function(a,b,c){c=Ba(c);c.persistent?this.persistence.N(a,b,c.days):("undefined"===typeof b&&(b="None"),d.h(a,function(e,f){this.sa.hasOwnProperty(f)&&this.sa[f]!==b||(this.sa[f]=e)},this))};l.prototype.unregister=function(a,b){b=Ba(b);b.persistent?
159
+ this.persistence.unregister(a):delete this.sa[a]};l.prototype.Ac=function(a,b){var c={};c[a]=b;this.register(c)};l.prototype.Qb=function(a,b,c,e,f,g,k,h){var p=this.Z();if(a&&p!==a){if("string"===typeof a&&0===a.indexOf("$device:"))return this.A("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:a})}this.F("$device_id")||this.N({$had_persisted_distinct_id:!0,$device_id:p},"");a!==p&&a!==this.F("__alias")&&(this.unregister("__alias"),this.register({distinct_id:a}));this.wa.Zc=!0;
160
+ this.people.ae(b,c,e,f,g,k,h);a!==p&&this.track("$identify",{distinct_id:a,$anon_distinct_id:p},{Ld:!0});a!==p&&this.flags.Ib()};l.prototype.reset=function(){this.ic();this.persistence.clear();this.wa.Zc=!1;var a=d.ua();this.N({distinct_id:"$device:"+a,$device_id:a},"");this.pb()};l.prototype.Z=function(){return this.F("distinct_id")};l.prototype.ie=function(a,b){if(a===this.F("$people_distinct_id"))return this.A("Attempting to create alias for existing People user - aborting."),-2;var c=this;d.m(b)&&
161
161
  (b=this.Z());if(a!==b)return this.Ac("__alias",a),this.track("$create_alias",{alias:a,distinct_id:b},{Ld:!0},function(){c.Qb(a)});this.A("alias matches current distinct_id - skipping api call.");this.Qb(a);return-1};l.prototype.gf=function(a){this.Ac("mp_name_tag",a)};l.prototype.ec=function(a){d.j(a)&&(d.extend(this.config,a),a.batch_size&&d.h(this.H,function(b){b.Cd()}),this.g("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.g("disable_persistence")||(this.config.disable_persistence=
162
162
  this.config.disable_cookie),this.persistence&&this.persistence.Sd(this.config),T=T||this.g("debug"),("autocapture"in a||"record_heatmap_data"in a)&&this.zb&&this.zb.B())};l.prototype.g=function(a){return this.config[a]};l.prototype.Bc=function(a){var b=(this.config.hooks[a]||Nb).apply(this,ca.call(arguments,1));"undefined"===typeof b&&(this.A(a+" hook did not return a value"),b=null);return b};l.prototype.F=function(a){return this.persistence.fb([a])};l.prototype.ha=function(a){return this.g("api_hosts")[a]||
163
- this.g("api_host")};l.prototype.toString=function(){var a=this.g("name");"mixpanel"!==a&&(a="mixpanel."+a);return a};l.prototype.uc=function(a){return d.cd(J)||this.va.we||d.Rb(this.mb,a)};l.prototype.be=function(){"localStorage"===this.g("opt_out_tracking_persistence_type")&&d.localStorage.Da()&&(!this.ab()&&this.ab({persistence_type:"cookie"})&&this.rd({enable_persistence:!1}),!this.Ba()&&this.Ba({persistence_type:"cookie"})&&this.$b({clear_persistence:!1}),this.Hc({persistence_type:"cookie",enable_persistence:!1}));
164
- this.Ba()?this.Qa({clear_persistence:!0}):this.ab()||!this.g("opt_out_tracking_by_default")&&!d.cookie.get("mp_optout")||(d.cookie.remove("mp_optout"),this.$b({clear_persistence:this.g("opt_out_persistence_by_default")}))};l.prototype.Qa=function(a){if(a&&a.clear_persistence)a=!0;else if(a&&a.enable_persistence)a=!1;else return;this.g("disable_persistence")||this.persistence.disabled===a||this.persistence.Hd(a);a?(this.hc(),this.ic()):this.Wd&&this.fc()};l.prototype.xa=function(a,b){b=d.extend({track:d.bind(this.track,
163
+ this.g("api_host")};l.prototype.toString=function(){var a=this.g("name");"mixpanel"!==a&&(a="mixpanel."+a);return a};l.prototype.uc=function(a){return d.cd(J)||this.wa.we||d.Rb(this.mb,a)};l.prototype.be=function(){"localStorage"===this.g("opt_out_tracking_persistence_type")&&d.localStorage.Da()&&(!this.ab()&&this.ab({persistence_type:"cookie"})&&this.rd({enable_persistence:!1}),!this.Ca()&&this.Ca({persistence_type:"cookie"})&&this.$b({clear_persistence:!1}),this.Hc({persistence_type:"cookie",enable_persistence:!1}));
164
+ this.Ca()?this.Qa({clear_persistence:!0}):this.ab()||!this.g("opt_out_tracking_by_default")&&!d.cookie.get("mp_optout")||(d.cookie.remove("mp_optout"),this.$b({clear_persistence:this.g("opt_out_persistence_by_default")}))};l.prototype.Qa=function(a){if(a&&a.clear_persistence)a=!0;else if(a&&a.enable_persistence)a=!1;else return;this.g("disable_persistence")||this.persistence.disabled===a||this.persistence.Hd(a);a?(this.hc(),this.ic()):this.Wd&&this.fc()};l.prototype.ya=function(a,b){b=d.extend({track:d.bind(this.track,
165
165
  this),persistence_type:this.g("opt_out_tracking_persistence_type"),cookie_prefix:this.g("opt_out_tracking_cookie_prefix"),cookie_expiration:this.g("cookie_expiration"),cross_site_cookie:this.g("cross_site_cookie"),cross_subdomain_cookie:this.g("cross_subdomain_cookie"),cookie_domain:this.g("cookie_domain"),secure_cookie:this.g("secure_cookie"),ignore_dnt:this.g("ignore_dnt")},b);d.localStorage.Da()||(b.persistence_type="cookie");return a(this.g("token"),{track:b.track,Wf:b.track_event_name,Yf:b.track_properties,
166
- vd:b.persistence_type,ud:b.cookie_prefix,Jc:b.cookie_domain,Kc:b.cookie_expiration,ve:b.cross_site_cookie,Lc:b.cross_subdomain_cookie,vf:b.secure_cookie,$c:b.ignore_dnt})};l.prototype.rd=function(a){a=d.extend({enable_persistence:!0},a);this.xa(dc,a);this.Qa(a)};l.prototype.$b=function(a){a=d.extend({clear_persistence:!0,delete_user:!0},a);a.delete_user&&this.people&&this.people.vb()&&(this.people.Oc(),this.people.Gc());this.xa(ec,a);this.Qa(a)};l.prototype.ab=function(a){return this.xa(fc,a)};l.prototype.Ba=
167
- function(a){return this.xa(sb,a)};l.prototype.Hc=function(a){a=d.extend({enable_persistence:!0},a);this.xa(hc,a);this.Qa(a)};l.prototype.A=function(a,b){A.error.apply(A.error,arguments);try{b||a instanceof Error||(a=Error(a)),this.g("error_reporter")(a,b)}catch(c){A.error(c)}};l.prototype.init=l.prototype.B;l.prototype.reset=l.prototype.reset;l.prototype.disable=l.prototype.disable;l.prototype.time_event=l.prototype.Tf;l.prototype.track=l.prototype.track;l.prototype.track_links=l.prototype.ag;l.prototype.track_forms=
166
+ vd:b.persistence_type,ud:b.cookie_prefix,Jc:b.cookie_domain,Kc:b.cookie_expiration,ve:b.cross_site_cookie,Lc:b.cross_subdomain_cookie,vf:b.secure_cookie,$c:b.ignore_dnt})};l.prototype.rd=function(a){a=d.extend({enable_persistence:!0},a);this.ya(dc,a);this.Qa(a)};l.prototype.$b=function(a){a=d.extend({clear_persistence:!0,delete_user:!0},a);a.delete_user&&this.people&&this.people.vb()&&(this.people.Oc(),this.people.Gc());this.ya(ec,a);this.Qa(a)};l.prototype.ab=function(a){return this.ya(fc,a)};l.prototype.Ca=
167
+ function(a){return this.ya(sb,a)};l.prototype.Hc=function(a){a=d.extend({enable_persistence:!0},a);this.ya(hc,a);this.Qa(a)};l.prototype.A=function(a,b){A.error.apply(A.error,arguments);try{b||a instanceof Error||(a=Error(a)),this.g("error_reporter")(a,b)}catch(c){A.error(c)}};l.prototype.init=l.prototype.B;l.prototype.reset=l.prototype.reset;l.prototype.disable=l.prototype.disable;l.prototype.time_event=l.prototype.Tf;l.prototype.track=l.prototype.track;l.prototype.track_links=l.prototype.ag;l.prototype.track_forms=
168
168
  l.prototype.$f;l.prototype.track_pageview=l.prototype.lc;l.prototype.register=l.prototype.register;l.prototype.register_once=l.prototype.N;l.prototype.unregister=l.prototype.unregister;l.prototype.identify=l.prototype.Qb;l.prototype.alias=l.prototype.ie;l.prototype.name_tag=l.prototype.gf;l.prototype.set_config=l.prototype.ec;l.prototype.get_config=l.prototype.g;l.prototype.get_api_host=l.prototype.ha;l.prototype.get_property=l.prototype.F;l.prototype.get_distinct_id=l.prototype.Z;l.prototype.toString=
169
- l.prototype.toString;l.prototype.opt_out_tracking=l.prototype.$b;l.prototype.opt_in_tracking=l.prototype.rd;l.prototype.has_opted_out_tracking=l.prototype.Ba;l.prototype.has_opted_in_tracking=l.prototype.ab;l.prototype.clear_opt_in_out_tracking=l.prototype.Hc;l.prototype.get_group=l.prototype.Ke;l.prototype.set_group=l.prototype.Gf;l.prototype.add_group=l.prototype.he;l.prototype.remove_group=l.prototype.rf;l.prototype.track_with_groups=l.prototype.bg;l.prototype.start_batch_senders=l.prototype.fc;
169
+ l.prototype.toString;l.prototype.opt_out_tracking=l.prototype.$b;l.prototype.opt_in_tracking=l.prototype.rd;l.prototype.has_opted_out_tracking=l.prototype.Ca;l.prototype.has_opted_in_tracking=l.prototype.ab;l.prototype.clear_opt_in_out_tracking=l.prototype.Hc;l.prototype.get_group=l.prototype.Ke;l.prototype.set_group=l.prototype.Gf;l.prototype.add_group=l.prototype.he;l.prototype.remove_group=l.prototype.rf;l.prototype.track_with_groups=l.prototype.bg;l.prototype.start_batch_senders=l.prototype.fc;
170
170
  l.prototype.stop_batch_senders=l.prototype.hc;l.prototype.start_session_recording=l.prototype.Kf;l.prototype.stop_session_recording=l.prototype.ic;l.prototype.pause_session_recording=l.prototype.mf;l.prototype.resume_session_recording=l.prototype.sf;l.prototype.get_session_recording_properties=l.prototype.Xc;l.prototype.get_session_replay_url=l.prototype.Me;l.prototype.get_tab_id=l.prototype.Yc;l.prototype.DEFAULT_API_ROUTES=Hb;l.prototype.__get_recorder=l.prototype.Vd;z.prototype.properties=z.prototype.Ja;
171
171
  z.prototype.update_search_keyword=z.prototype.Td;z.prototype.update_referrer_info=z.prototype.mc;z.prototype.get_cross_subdomain=z.prototype.Je;z.prototype.clear=z.prototype.clear;var S={};(function(a){Va=a;Aa=1;F=q.mixpanel;d.m(F)?A.l('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):F.__loaded||F.config&&F.persistence?A.l("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors."):
172
172
  1.1>(F.__SV||0)?A.l("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(d.h(F._i,function(b){b&&d.isArray(b)&&(S[b[b.length-1]]=qa.apply(this,b))}),Kb(),F.init(),d.h(S,function(b){b.Sa()}),Jb())})(function(a,b){var c=document.createElement("script");c.type="text/javascript";c.async=!0;c.onload=b;c.src=a;document.head.appendChild(c)})})()
@@ -14041,7 +14041,7 @@ if (typeof Promise !== 'undefined' && Promise.toString().indexOf('[native code]'
14041
14041
 
14042
14042
  var Config = {
14043
14043
  DEBUG: false,
14044
- LIB_VERSION: '2.71.0'
14044
+ LIB_VERSION: '2.71.1'
14045
14045
  };
14046
14046
 
14047
14047
  /* eslint camelcase: "off", eqeqeq: "off" */
@@ -19223,6 +19223,11 @@ Autocapture.prototype._trackPageLeave = function(ev, currentUrl, currentScrollHe
19223
19223
  // User has navigated away already ending their impression.
19224
19224
  return;
19225
19225
  }
19226
+
19227
+ if (!this.getConfig(CONFIG_TRACK_PAGE_LEAVE) && !this.mp.is_recording_heatmap_data()) {
19228
+ return;
19229
+ }
19230
+
19226
19231
  this.hasTrackedScrollSession = true;
19227
19232
  var viewportHeight = Math.max(document$1.documentElement.clientHeight, win.innerHeight || 0);
19228
19233
  var scrollPercentage = Math.round(Math.max(this.maxScrollViewDepth - viewportHeight, 0) / (currentScrollHeight - viewportHeight) * 100);
@@ -19242,12 +19247,9 @@ Autocapture.prototype._trackPageLeave = function(ev, currentUrl, currentScrollHe
19242
19247
  '$current_url': currentUrl || _.info.currentUrl(),
19243
19248
  '$viewportHeight': viewportHeight, // This is the fold line
19244
19249
  '$viewportWidth': Math.max(document$1.documentElement.clientWidth, win.innerWidth || 0),
19250
+ '$captured_for_heatmap': this.mp.is_recording_heatmap_data()
19245
19251
  }, DEFAULT_PROPS);
19246
19252
 
19247
- if (this.mp.is_recording_heatmap_data() && !this.getConfig(CONFIG_TRACK_PAGE_LEAVE)) {
19248
- props['$captured_for_heatmap'] = true;
19249
- }
19250
-
19251
19253
  // Send with beacon transport to ensure event is sent before unload
19252
19254
  this.mp.track(MP_EV_PAGE_LEAVE, props, {transport: 'sendBeacon'});
19253
19255
  };
@@ -14047,7 +14047,7 @@
14047
14047
 
14048
14048
  var Config = {
14049
14049
  DEBUG: false,
14050
- LIB_VERSION: '2.71.0'
14050
+ LIB_VERSION: '2.71.1'
14051
14051
  };
14052
14052
 
14053
14053
  /* eslint camelcase: "off", eqeqeq: "off" */
@@ -19229,6 +19229,11 @@
19229
19229
  // User has navigated away already ending their impression.
19230
19230
  return;
19231
19231
  }
19232
+
19233
+ if (!this.getConfig(CONFIG_TRACK_PAGE_LEAVE) && !this.mp.is_recording_heatmap_data()) {
19234
+ return;
19235
+ }
19236
+
19232
19237
  this.hasTrackedScrollSession = true;
19233
19238
  var viewportHeight = Math.max(document$1.documentElement.clientHeight, win.innerHeight || 0);
19234
19239
  var scrollPercentage = Math.round(Math.max(this.maxScrollViewDepth - viewportHeight, 0) / (currentScrollHeight - viewportHeight) * 100);
@@ -19248,12 +19253,9 @@
19248
19253
  '$current_url': currentUrl || _.info.currentUrl(),
19249
19254
  '$viewportHeight': viewportHeight, // This is the fold line
19250
19255
  '$viewportWidth': Math.max(document$1.documentElement.clientWidth, win.innerWidth || 0),
19256
+ '$captured_for_heatmap': this.mp.is_recording_heatmap_data()
19251
19257
  }, DEFAULT_PROPS);
19252
19258
 
19253
- if (this.mp.is_recording_heatmap_data() && !this.getConfig(CONFIG_TRACK_PAGE_LEAVE)) {
19254
- props['$captured_for_heatmap'] = true;
19255
- }
19256
-
19257
19259
  // Send with beacon transport to ensure event is sent before unload
19258
19260
  this.mp.track(MP_EV_PAGE_LEAVE, props, {transport: 'sendBeacon'});
19259
19261
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mixpanel-browser",
3
- "version": "2.71.0",
3
+ "version": "2.71.1",
4
4
  "description": "The official Mixpanel JavaScript browser client library",
5
5
  "main": "dist/mixpanel.cjs.js",
6
6
  "module": "dist/mixpanel.module.js",