mixpanel-browser 2.70.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.
Files changed (38) hide show
  1. package/.claude/settings.local.json +9 -0
  2. package/CHANGELOG.md +11 -0
  3. package/build.sh +1 -0
  4. package/dist/mixpanel-core.cjs.d.ts +440 -0
  5. package/dist/mixpanel-core.cjs.js +849 -50
  6. package/dist/mixpanel-recorder.js +5 -3
  7. package/dist/mixpanel-recorder.min.js +1 -1
  8. package/dist/mixpanel-recorder.min.js.map +1 -1
  9. package/dist/mixpanel-with-async-recorder.cjs.d.ts +440 -0
  10. package/dist/mixpanel-with-async-recorder.cjs.js +849 -50
  11. package/dist/mixpanel-with-recorder.d.ts +440 -0
  12. package/dist/mixpanel-with-recorder.js +853 -52
  13. package/dist/mixpanel-with-recorder.min.d.ts +440 -0
  14. package/dist/mixpanel-with-recorder.min.js +1 -1
  15. package/dist/mixpanel.amd.d.ts +440 -0
  16. package/dist/mixpanel.amd.js +853 -52
  17. package/dist/mixpanel.cjs.d.ts +440 -0
  18. package/dist/mixpanel.cjs.js +853 -52
  19. package/dist/mixpanel.globals.js +849 -50
  20. package/dist/mixpanel.min.js +170 -153
  21. package/dist/mixpanel.module.d.ts +440 -0
  22. package/dist/mixpanel.module.js +853 -52
  23. package/dist/mixpanel.umd.d.ts +440 -0
  24. package/dist/mixpanel.umd.js +853 -52
  25. package/dist/rrweb-compiled.js +4 -2
  26. package/package.json +2 -19
  27. package/rollup.config.mjs +28 -4
  28. package/src/autocapture/deadclick.js +254 -0
  29. package/src/autocapture/index.js +239 -41
  30. package/src/autocapture/shadow-dom-observer.js +100 -0
  31. package/src/autocapture/utils.js +230 -3
  32. package/src/config.js +1 -1
  33. package/src/flags/index.js +32 -12
  34. package/src/index.d.ts +16 -3
  35. package/src/loaders/loader-module-core.d.ts +1 -0
  36. package/src/loaders/loader-module-with-async-recorder.d.ts +1 -0
  37. package/src/loaders/loader-module.d.ts +1 -0
  38. package/src/utils.js +15 -0
@@ -1,155 +1,172 @@
1
- (function(){function Db(){function a(){a.done||(Qa=a.done=!0,Ra=!1,d.h(R,function(e){e.rd()}))}function b(){try{B.documentElement.doScroll("left")}catch(e){setTimeout(b,1);return}a()}if(B.addEventListener)"complete"===B.readyState?a():B.addEventListener("DOMContentLoaded",a,!1);else if(B.attachEvent){B.attachEvent("onreadystatechange",a);var c=!1;try{c=null===r.frameElement}catch(e){}B.documentElement.doScroll&&c&&b()}d.Tc(r,"load",a,!0)}function Eb(){E.init=function(a,b,c){if(c)return E[c]||(E[c]=
2
- R[c]=ma(a,b,c),E[c].Ba()),E[c];c=E;R.mixpanel?c=R.mixpanel:a&&(c=ma(a,b,"mixpanel"),c.Ba(),R.mixpanel=c);E=c;1===xa&&(r.mixpanel=E);Fb()}}function Fb(){d.h(R,function(a,b){"mixpanel"!==b&&(E[b]=a)});E._=d}function ya(a){a=d.j(a)?a:d.l(a)?{}:{days:a};return d.extend({},Gb,a)}function ma(a,b,c){var e="mixpanel"===c?E:E[c];if(e&&0===xa)var f=e;else{if(e&&!d.isArray(e)){z.error("You have already initialized "+c);return}f=new l}f.Xb={};f.la(a,b,c);f.people=new x;f.people.la(f);if(!f.g("skip_first_touch_marketing")){a=
3
- d.info.ma(null);var g={},k=!1;d.h(a,function(h,p){(g["initial_"+p]=h)&&(k=!0)});k&&f.people.ba(g)}S=S||f.g("debug");!d.l(e)&&d.isArray(e)&&(f.Ya.call(f.people,e.people),f.Ya(e));return f}function l(){}function Hb(a){return a}function Sa(a){throw Error(a+" not available in this build.");}function T(a){this.X=null;this.Xe=a}function y(a){this.props={};this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;"cookie"!==b&&"localStorage"!==b&&(z.s("Unknown persistence type "+
4
- b+"; falling back to cookie"),b=a.persistence="cookie");"localStorage"===b&&d.localStorage.qa()?this.storage=d.localStorage:this.storage=d.cookie;this.load();this.ld(a);this.upgrade();this.save()}function x(){}function C(){}function M(a,b){this.Y=b.Y;this.ua=new O(a,{Y:d.bind(this.o,this),P:b.P,bd:b.bd,cd:b.cd,C:b.C,ob:b.ob});this.O=b.O;this.He=b.Ie;this.Da=b.Da;this.Ve=b.We;this.S=this.O.batch_size;this.Ja=this.O.batch_flush_interval_ms;this.stopped=!this.O.batch_autostart;this.lb=0;this.V={};this.vc=
5
- b.vc||!1}function Ta(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 Ua(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.ca=a;if(this.C=b.C)this.P=b.P||new fa,this.lock=new Va(a,{storage:b.bd||r.localStorage,Pb:b.cd});this.o=b.Y||d.bind(Wa.error,Wa);this.Qa=b.Qa||null;this.K=[];this.Ab=!1;this.Pd=b.ob?Ib(d.bind(this.Zb,this),b.ob):d.bind(function(c){return this.Zb([c])},this)}
6
- function fa(a){this.storage=a||r.localStorage}function Va(a,b){b=b||{};this.ca=a;this.storage=b.storage||r.localStorage;this.Qc=b.Qc||100;this.Pb=b.Pb||2E3;this.Rc=b.Rc||D}function na(){this.Mc="submit"}function ba(){this.Mc="click"}function Q(){}function A(a){this.tb=a.tb;this.oa=a.Ud;this.Me=a.Le;this.wc=a.Wd;this.track=a.kf}function I(a){this.A=a}function ha(){}function Xa(a){var b=Jb,c=a.split(".");c=c[c.length-1];if(4<c.length||"com"===c||"org"===c)b=Kb;return(a=a.match(b))?a[0]:""}function za(a){var b=
7
- Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return a?b.substring(0,a):b}function Ib(a,b){var c=null,e=[];return function(f){var g=this;e.push(f);c||(c=new D(function(k){setTimeout(function(){var h=a.apply(g,[e]);c=null;e=[];k(h)},b)}));return c}}function oa(a,b){return null===Aa||b?Aa=Ya(a||r.localStorage):Aa}function Ya(a){var b=!0;try{var c="__mplss_"+za(8);a.setItem(c,"xyz");"xyz"!==a.getItem(c)&&(b=!1);a.removeItem(c)}catch(e){b=!1}return b}function Za(a){a=
8
- a.prototype;for(var b in a)"function"===typeof a[b]&&(a[b]=Ba(a[b]))}function Ba(a){return function(){try{return a.apply(this,arguments)}catch(b){z.s("Implementation error. Please turn on debug and contact support@mixpanel.com."),S&&z.s(b)}}}function ia(a){return{log:Ca(z.log,a),error:Ca(z.error,a),s:Ca(z.s,a)}}function Ca(a,b){return function(){arguments[0]="["+b+"] "+arguments[0];return a.apply(z,arguments)}}function pa(a,b){$a.add(a,b);Da||(Da=Lb($a.Od))}function ab(a){var b=typeof a;if(null!==
9
- a&&("object"===b||"function"===b))var c=a.then;return"function"===typeof c?c:!1}function Ea(){for(var a=0;a<this.N.length;a++){var b=void 0,c=void 0,e=1===this.state?this.N[a].Ye:this.N[a].Qd,f=this.N[a];try{!1===e?f.reject(this.sa):(c=!0===e?this.sa:e.call(void 0,this.sa),c===f.promise?f.reject(TypeError("Promise-chain cycle")):(b=ab(c))?b.call(c,f.resolve,f.reject):f.resolve(c))}catch(g){f.reject(g)}}this.N.length=0}function bb(a){var b,c=this;if(!c.xa){c.xa=!0;c.Ia&&(c=c.Ia);try{(b=ab(a))?pa(function(){var e=
10
- new cb(c);try{b.call(a,function(){bb.apply(e,arguments)},function(){ja.apply(e,arguments)})}catch(f){ja.call(e,f)}}):(c.sa=a,c.state=1,0<c.N.length&&pa(Ea,c))}catch(e){ja.call(new cb(c),e)}}}function ja(a){var b=this;b.xa||(b.xa=!0,b.Ia&&(b=b.Ia),b.sa=a,b.state=2,0<b.N.length&&pa(Ea,b))}function db(a,b,c,e){for(var f=0;f<b.length;f++)(function(g){a.resolve(b[g]).then(function(k){c(g,k)},e)})(f)}function cb(a){this.Ia=a;this.xa=!1}function Mb(a){this.promise=a;this.state=0;this.xa=!1;this.N=[];this.sa=
11
- void 0}function U(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 Mb(this);this.then=function(c,e){var f={Ye:"function"===typeof c?c:!0,Qd:"function"===typeof e?e:!1};f.promise=new this.constructor(function(g,k){if("function"!==typeof g||"function"!==typeof k)throw TypeError("Not a function");f.resolve=g;f.reject=k});b.N.push(f);0!==b.state&&pa(Ea,b);return f.promise};this["catch"]=function(c){return this.then(void 0,
12
- c)};try{a.call(void 0,function(c){bb.call(b,c)},function(c){ja.call(b,c)})}catch(c){ja.call(b,c)}}function eb(a,b,c){function e(f){z.error(b+" error: "+f)}return{qa:function(f){(f=c(a,f))||z.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.ga(a.getItem(f))||{}}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 Fa(a){var b=
13
- {};a=fb(a).split(" ");for(var c=0;c<a.length;c++){var e=a[c];e&&(b[e]=!0)}return b}function fb(a){switch(typeof a.className){case "string":return a.className;case "object":return a.className.qf||a.getAttribute("class")||"";default:return""}}function Nb(a){if(a.previousElementSibling)return a.previousElementSibling;do a=a.previousSibling;while(a&&(!a||1!==a.nodeType));return a}function gb(a,b,c,e,f,g){var k={$classes:fb(a).split(" "),$tag_name:a.tagName.toLowerCase()},h=a.id;h&&(k.$id=h);Ga(a,b,f,
14
- g)&&d.h(Ob.concat(e),function(p){if(a.hasAttribute(p)&&!c[p]){var q=a.getAttribute(p);qa(q)&&(k["$attr-"+p]=q)}});e=b=1;for(f=a;f=Nb(f);)b++,f.tagName===a.tagName&&e++;k.$nth_child=b;k.$nth_of_type=e;return k}function Pb(a,b){var c=b.Ad,e=b.Bd||[],f=b.Fd,g=b.Gd||[],k=b.Jd||!1,h=b.Id||[],p=b.Kd||!1,q={};d.h(b.Ed||[],function(v){q[v]=!0});var n=null,m="undefined"===typeof a.target?a.srcElement:a.target;m&&3===m.nodeType&&(m=m.parentNode);if(Qb(m,a)&&Ha(m,a,c,e)&&!Ia(m,a,f,g)){b=[m];for(var t=m;t.parentNode&&
15
- !P(t,"body");)b.push(t.parentNode),t=t.parentNode;var w=[],u,G=!1;d.h(b,function(v){var N=Ga(v,a,c,e);q.href||"a"!==v.tagName.toLowerCase()||(u=v.getAttribute("href"),u=N&&qa(u)&&u);Ia(v,a,f,g)&&(G=!0);w.push(gb(v,a,q,h,c,e))},this);if(!G&&(b=B.documentElement,n={$event_type:a.type,$host:r.location.host,$pathname:r.location.pathname,$elements:w,$el_attr__href:u,$viewportHeight:Math.max(b.clientHeight,r.innerHeight||0),$viewportWidth:Math.max(b.clientWidth,r.innerWidth||0),$pageHeight:B.body.offsetHeight||
16
- 0,$pageWidth:B.body.offsetWidth||0},d.h(h,function(v){if(!q[v]&&m.hasAttribute(v)){var N=m.getAttribute(v);qa(N)&&(n["$el_attr__"+v]=N)}}),k&&(b=hb(m,a,c,e))&&b.length&&(n.$el_text=b),"click"===a.type&&(d.h(Rb,function(v){v in a&&(n["$"+v]=a[v])}),p&&(n.$captured_for_heatmap=!0),m=Sb(a)),k&&(b=hb(m,a,c,e))&&b.length&&(n.$el_text=b),m)){if(!Ha(m,a,c,e)||Ia(m,a,f,g))return null;k=gb(m,a,q,h,c,e);n.$target=k;n.$el_classes=k.$classes;d.extend(n,d.da({$el_id:k.$id,$el_tag_name:k.$tag_name}))}}return n}
17
- function hb(a,b,c,e){var f="";Ga(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(qa).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))});return d.trim(f)}function Sb(a){var b=a.target;a=a.composedPath();for(var c=0;c<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}
18
- function Ha(a,b,c,e){if(c)try{if(!c(a,b))return!1}catch(f){return J.s("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){J.s("Error while checking selector: "+c,f)}}return!1}function Ia(a,b,c,e){if(c)try{if(c(a,b))return!0}catch(f){return J.s("Error while checking element in blockElementCallback",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){J.s("Error while checking selector: "+
19
- c,f)}}a=Fa(a);for(b=0;b<Ja.length;b++)if(a[Ja[b]])return!0;return!1}function P(a,b){return a&&a.tagName&&a.tagName.toLowerCase()===b.toLowerCase()}function Qb(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:"click"===b.type;case "select":case "textarea":return"change"===b.type;default:return"click"===b.type}}function Ga(a,b,c,e){if(!Ha(a,
20
- b,c,e))return!1;for(c=a;c.parentNode&&!P(c,"body");c=c.parentNode)for(e=Fa(c),b=0;b<ib.length;b++)if(e[ib[b]])return!1;c=Fa(a);for(b=0;b<jb.length;b++)if(c[jb[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=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,
21
- ""))?!1:!0}function qa(a){return null===a||d.l(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))?!1:!0}function kb(){this.W=[]}function Tb(a,b){lb(!0,a,b)}function Ub(a,b){lb(!1,a,b)}function Vb(a,b){return"1"===mb(a,b)}function nb(a,b){if(Wb(b))return z.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"'),
22
- !0;(a="0"===mb(a,b))&&z.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data.");return a}function Y(a){return Ka(a,function(b){return this.g(b)})}function V(a){return Ka(a,function(b){return this.I(b)})}function ca(a){return Ka(a,function(b){return this.I(b)})}function Xb(a,b){b=b||{};La(b).remove(Ma(a,b),!!b.qc,b.oc)}function La(a){a=a||{};return"localStorage"===a.Pc?d.localStorage:d.cookie}function Ma(a,b){b=b||{};return(b.Oc||"__mp_opt_in_out_")+
23
- a}function mb(a,b){return La(b).get(Ma(a,b))}function Wb(a){if(a&&a.Dc)return!1;a=a&&a.window||r;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 lb(a,b,c){d.Cb(b)&&b.length?(c=c||{},La(c).set(Ma(b,c),a?1:0,d.le(c.pc)?c.pc:null,!!c.qc,!!c.Ge,!!c.Ld,c.oc),c.track&&a&&c.track(c.cf||"$opt_in",c.ef,{send_immediately:!0})):z.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token")}function Ka(a,b){return function(){var c=
24
- !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=nb(e,{Dc:f,Pc:g,Oc:k,window:h}))}catch(p){z.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 S=!1;if("undefined"===typeof window){var ob={hostname:""};var r={crypto:{tf:function(){throw Error("unsupported");
25
- }},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:ob,referrer:""},screen:{width:0,height:0},location:ob,addEventListener:function(){},removeEventListener:function(){}}}else r=window;var pb=r.setImmediate,Da,qb=Object.prototype.toString,Lb="undefined"!==typeof pb?function(a){return pb(a)}:setTimeout;try{Object.defineProperty({},"x",{});var Z=function(a,b,c,e){return Object.defineProperty(a,b,{value:c,writable:!0,configurable:!1!==e})}}catch(a){Z=function(b,
26
- c,e){b[c]=e;return b}}var $a=function(){function a(f,g){this.Sd=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},Od:function(){var f=b;for(b=c=Da=void 0;f;)f.Sd.call(f.self),f=f.next}}}();var rb=Z({},"constructor",U,!1);U.prototype=rb;Z(rb,"__NPO__",0,!1);Z(U,"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)})});
27
- Z(U,"reject",function(a){return new this(function(b,c){if("function"!==typeof b||"function"!==typeof c)throw TypeError("Not a function");c(a)})});Z(U,"all",function(a){var b=this;return"[object Array]"!==qb.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;db(b,a,function(h,p){g[h]=p;++k===f&&c(g)},e)})});Z(U,"race",function(a){var b=this;return"[object Array]"!==
28
- qb.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");db(b,a,function(f,g){c(g)},e)})});var D="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:U;var ra=Array.prototype,sb=Object.prototype,aa=ra.slice,ka=sb.toString,sa=sb.hasOwnProperty,F=r.console,W=r.navigator,B=r.document,ta=r.opera,tb=r.screen,H=W.userAgent,Na=Function.prototype.bind,ub=ra.forEach,vb=ra.indexOf,wb=
29
- ra.map,Yb=Array.isArray,Oa={},d={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},z={log:function(){if(S&&!d.l(F)&&F)try{F.log.apply(F,arguments)}catch(a){d.h(arguments,function(b){F.log(b)})}},warn:function(){if(S&&!d.l(F)&&F){var a=["Mixpanel warning:"].concat(d.ea(arguments));try{F.warn.apply(F,a)}catch(b){d.h(a,function(c){F.warn(c)})}}},error:function(){if(S&&!d.l(F)&&F){var a=["Mixpanel error:"].concat(d.ea(arguments));try{F.error.apply(F,a)}catch(b){d.h(a,function(c){F.error(c)})}}},
30
- s:function(){if(!d.l(F)&&F){var a=["Mixpanel error:"].concat(d.ea(arguments));try{F.error.apply(F,a)}catch(b){d.h(a,function(c){F.error(c)})}}}};d.bind=function(a,b){var c;if(Na&&a.bind===Na)return Na.apply(a,aa.call(arguments,1));if(!d.Bb(a))throw new TypeError;var e=aa.call(arguments,2);return c=function(){if(!(this instanceof c))return a.apply(b,e.concat(aa.call(arguments)));var f={};f.prototype=a.prototype;var g=new f;f.prototype=null;f=a.apply(g,e.concat(aa.call(arguments)));return Object(f)===
31
- f?f:g}};d.h=function(a,b,c){if(null!==a&&void 0!==a)if(ub&&a.forEach===ub)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)===Oa);e++);else for(e in a)if(sa.call(a,e)&&b.call(c,a[e],e,a)===Oa)break};d.extend=function(a){d.h(aa.call(arguments,1),function(b){for(var c in b)void 0!==b[c]&&(a[c]=b[c])});return a};d.isArray=Yb||function(a){return"[object Array]"===ka.call(a)};d.Bb=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return!1}};d.ie=
32
- function(a){return!(!a||!sa.call(a,"callee"))};d.ea=function(a){return a?a.ea?a.ea():d.isArray(a)||d.ie(a)?aa.call(a):d.values(a):[]};d.map=function(a,b,c){if(wb&&a.map===wb)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.zb=function(a,b){var c=!1;if(null===a)return c;if(vb&&a.indexOf===
33
- vb)return-1!=a.indexOf(b);d.h(a,function(e){if(c||(c=e===b))return Oa});return c};d.includes=function(a,b){return-1!==a.indexOf(b)};d.Fc=function(a,b){a.prototype=new b;a.prototype.constructor=a;a.Ze=b.prototype};d.j=function(a){return a===Object(a)&&!d.isArray(a)};d.Ma=function(a){if(d.j(a)){for(var b in a)if(sa.call(a,b))return!1;return!0}return!1};d.l=function(a){return void 0===a};d.Cb=function(a){return"[object String]"==ka.call(a)};d.je=function(a){return"[object Date]"==ka.call(a)};d.le=function(a){return"[object Number]"==
34
- ka.call(a)};d.ke=function(a){return!(!a||1!==a.nodeType)};d.nb=function(a){d.h(a,function(b,c){d.je(b)?a[c]=d.Td(b):d.j(b)&&(a[c]=d.nb(b))});return a};d.timestamp=function(){Date.now=Date.now||function(){return+new Date};return Date.now()};d.Td=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.da=function(a){var b={};d.h(a,function(c,e){d.Cb(c)&&0<c.length&&
35
- (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.Vb=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);
36
- case "object":if(!f)return"null";g+=" ";e=[];if("[object Array]"===ka.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)sa.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",
37
- "\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.ga=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()}
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.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
+ 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.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
+ 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
+ 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
+ (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
+ 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.ta(a.getItem(f))||
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
+ (!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
+ 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
+ $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.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
+ 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
+ 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
+ "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
+ 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
+ !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
+ (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.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
+ 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
+ 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
+ !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");
28
+ }},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:tb,referrer:""},screen:{width:0,height:0},location:tb,addEventListener:function(){},removeEventListener:function(){}}}else q=window;var ub=q.setImmediate,Fa,vb=Object.prototype.toString,Sb="undefined"!==typeof ub?function(a){return ub(a)}:setTimeout;try{Object.defineProperty({},"x",{});var ba=function(a,b,c,e){return Object.defineProperty(a,b,{value:c,writable:!0,configurable:!1!==e})}}catch(a){ba=function(b,
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
+ 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
+ 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.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
+ 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.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
+ 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.qa=function(a){var b={};d.h(a,function(c,e){d.Ub(c)&&0<c.length&&
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
+ 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.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()}
38
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;
39
- g("Bad number")}function f(m){m&&m!==h&&g("Expected '"+m+"' instead of '"+h+"'");h=q.charAt(k);k+=1;return h}function g(m){m=new SyntaxError(m);m.pf=k;m.text=q;throw m;}var k,h,p={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},q;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");
40
- 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){q=m;k=0;h=" ";m=n();b();h&&g("Syntax error");return m}}();d.Dd=function(a){var b=0,c=0,e=[];if(!a)return a;a=d.nf(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;
41
- 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.nf=function(a){a=(a+"").replace(/\r\n/g,
42
- "\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 r.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]=
43
- a[23]="-";return d.map(a,function(e){return e.toString(16)}).join("")}};var xb="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.Gc=function(a){var b;a=a.toLowerCase();for(b=0;b<xb.length;b++)if(-1!==a.indexOf(xb[b]))return!0;
44
- return!1};d.Ub=function(a){var b,c,e,f=[];d.l(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.vb=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){z.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")};d.cookie={get:function(a){a+=
45
- "=";for(var b=B.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.ga(d.cookie.get(a))||{}}catch(c){}return b},uf:function(a,b,c,e,f,g,k){var h="",p="",q="";k?h="; domain="+k:e&&(h=(h=Xa(B.location.hostname))?"; domain=."+h:"");c&&(p=new Date,p.setTime(p.getTime()+1E3*c),p="; expires="+p.toGMTString());g&&(f=!0,q="; SameSite=None");
46
- f&&(q+="; secure");B.cookie=a+"="+encodeURIComponent(b)+p+"; path=/"+h+q},set:function(a,b,c,e,f,g,k){var h="",p="",q="";k?h="; domain="+k:e&&(h=(h=Xa(B.location.hostname))?"; domain=."+h:"");c&&(p=new Date,p.setTime(p.getTime()+864E5*c),p="; expires="+p.toGMTString());g&&(f=!0,q="; SameSite=None");f&&(q+="; secure");a=a+"="+encodeURIComponent(b)+p+"; path=/"+h+q;return B.cookie=a},remove:function(a,b,c){d.cookie.set(a,"",-1,b,!1,!1,c)}};var Aa=null,Pa=null;d.localStorage=eb(r.localStorage,"localStorage",
47
- oa);d.sessionStorage=eb(r.sessionStorage,"sessionStorage",function(a,b){return null===Pa||b?Pa=Ya(a||r.sessionStorage):Pa});d.Tc=function(){function a(c,e,f){return function(g){if(g=g||b(r.event)){var k=!0,h;d.Bb(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?
48
- c.addEventListener&&!g?c.addEventListener(e,f,!!k):(e="on"+e,c[e]=a(c,f,c[e])):z.error("No valid element provided to register_event")}}();var Zb=/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/;d.Nd=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(!B.getElementsByTagName)return[];f=f.split(" ");var g,k,h,p,q=[B];for(k=0;k<f.length;k++){var n=f[k].replace(/^\s+/,"").replace(/\s+$/,
49
- "");if(-1<n.indexOf("#")){var m=n.split("#");n=m[0];q=B.getElementById(m[1]);if(!q||n&&q.nodeName.toLowerCase()!=n)return[];q=[q]}else if(-1<n.indexOf(".")){m=n.split(".");n=m[0];var t=m[1];n||(n="*");m=[];for(h=g=0;h<q.length;h++){var w="*"==n?a(q[h]):q[h].getElementsByTagName(n);for(p=0;p<w.length;p++)m[g++]=w[p]}q=[];for(h=n=0;h<m.length;h++)m[h].className&&d.Cb(m[h].className)&&b(m[h],t)&&(q[n++]=m[h])}else if(m=n.match(Zb)){n=m[1];var u=m[2];t=m[3];var G=m[4];n||(n="*");m=[];for(h=g=0;h<q.length;h++)for(w=
50
- "*"==n?a(q[h]):q[h].getElementsByTagName(n),p=0;p<w.length;p++)m[g++]=w[p];q=[];n=0;switch(t){case "=":t=function(v){return v.getAttribute(u)==G};break;case "~":t=function(v){return v.getAttribute(u).match(new RegExp("\\b"+G+"\\b"))};break;case "|":t=function(v){return v.getAttribute(u).match(new RegExp("^"+G+"-?"))};break;case "^":t=function(v){return 0===v.getAttribute(u).indexOf(G)};break;case "$":t=function(v){return v.getAttribute(u).lastIndexOf(G)==v.getAttribute(u).length-G.length};break;case "*":t=
51
- function(v){return-1<v.getAttribute(u).indexOf(G)};break;default:t=function(v){return v.getAttribute(u)}}q=[];for(h=n=0;h<m.length;h++)t(m[h])&&(q[n++]=m[h])}else{m=[];for(h=g=0;h<q.length;h++)for(w=q[h].getElementsByTagName(n),p=0;p<w.length;p++)m[g++]=w[p];q=m}}return q}var e=/[\t\r\n]/g;return function(f){return d.ke(f)?[f]:d.j(f)&&!d.l(f.length)?f:c.call(this,f)}}();var $b="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(" "),
52
- ac="dclid fbclid gclid ko_click_id li_fat_id msclkid sccid ttclid twclid wbraid".split(" ");d.info={ma:function(a){var b="",c={};d.h($b,function(e){b=d.vb(B.URL,e);b.length?c[e]=b:void 0!==a&&(c[e]=a)});return c},nc:function(){var a="",b={};d.h(ac,function(c){a=d.vb(B.URL,c);a.length&&(b[c]=a)});return b},ue:function(){return d.extend(d.info.ma(),d.info.nc())},Ee:function(a){return 0===a.search("https?://(.*)google.([^/?]*)")?"google":0===a.search("https?://(.*)bing.com")?"bing":0===a.search("https?://(.*)yahoo.com")?
53
- "yahoo":0===a.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},Fe:function(a){var b=d.info.Ee(a),c={};null!==b&&(c.$search_engine=b,a=d.vb(a,"yahoo"!=b?"q":"p"),a.length&&(c.mp_keyword=a));return c},Ea: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,
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
+ 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
+ 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.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
+ 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
+ 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.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
+ 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
+ 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
+ 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
+ "");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
+ "*"==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
+ 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={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
+ "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,
54
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,
55
- "Trident/")?"Internet Explorer":d.includes(a,"Gecko")?"Mozilla":""},kb: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+)?)/,
56
- 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.Ea(a,b,c)];return void 0===b?null:(a=a.match(b))?parseFloat(a[a.length-2]):null},Lc:function(){return/Windows/i.test(H)?/Phone/.test(H)||/WPDesktop/.test(H)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(H)?"iOS":/Android/.test(H)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(H)?
57
- "BlackBerry":/Mac/i.test(H)?"Mac OS X":/Linux/.test(H)?"Linux":/CrOS/.test(H)?"Chrome OS":""},uc: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":""},Sc:function(a){a=a.split("/");return 3<=a.length?a[2]:""},Ha:function(){return r.location.href},ta:function(a){"object"!==typeof a&&(a={});return d.extend(d.da({$os:d.info.Lc(),
58
- $browser:d.info.Ea(H,W.vendor,ta),$referrer:B.referrer,$referring_domain:d.info.Sc(B.referrer),$device:d.info.uc(H)}),{$current_url:d.info.Ha(),$browser_version:d.info.kb(H,W.vendor,ta),$screen_height:tb.height,$screen_width:tb.width,mp_lib:"web",$lib_version:"2.70.0",$insert_id:za(),time:d.timestamp()/1E3},d.da(a))},ze:function(){return d.extend(d.da({$os:d.info.Lc(),$browser:d.info.Ea(H,W.vendor,ta)}),{$browser_version:d.info.kb(H,W.vendor,ta)})},ve:function(){return d.da({current_page_title:B.title,
59
- current_domain:r.location.hostname,current_url_path:r.location.pathname,current_url_protocol:r.location.protocol,current_url_search:r.location.search})}};var Kb=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Jb=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,da=null,ua=null;"undefined"!==typeof JSON&&(da=JSON.stringify,ua=JSON.parse);da=da||d.Vb;ua=ua||d.ga;d.info=d.info;d.info.browser=d.info.Ea;d.info.browserVersion=d.info.kb;d.info.device=d.info.uc;d.info.properties=d.info.ta;d.isBlockedUA=d.Gc;d.isEmptyObject=d.Ma;d.isObject=
60
- d.j;d.JSONDecode=d.ga;d.JSONEncode=d.Vb;d.toArray=d.ea;d.NPO=U;var Rb="clientX clientY offsetX offsetY pageX pageY screenX screenY x y".split(" "),jb=["mp-include"],Ja=["mp-no-track"],ib=Ja.concat(["mp-sensitive"]),Ob="aria-label aria-labelledby aria-describedby href name role title type".split(" "),J=ia("autocapture");kb.prototype.me=function(a,b,c){c=c||{};var e=c.threshold_px||30,f=c.timeout_ms||1E3;c=c.click_count||4;var g=Date.now(),k=this.W[this.W.length-1];if(k&&g-k.timestamp<f&&Math.sqrt(Math.pow(a-
61
- k.x,2)+Math.pow(b-k.y,2))<e){if(this.W.push({x:a,y:b,timestamp:g}),this.W.length>=c)return this.W=[],!0}else this.W=[{x:a,y:b,timestamp:g}];return!1};var yb={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,input:!0,pageview:"full-url",rage_click:!0,scroll:!0,submit:!0},va={$mp_autocapture:!0};I.prototype.B=
62
- function(){try{var a=!!B.createElement("div").matches}catch(b){a=!1}a?(this.de(),this.be(),this.ce(),this.fe(),this.ge(),this.ee()):J.s("Autocapture unavailable: missing required DOM APIs")};I.prototype.ub=function(){var a=this.A.g("autocapture");return a?d.j(a)?d.extend({},yb,a):yb:{}};I.prototype.m=function(a){return this.ub()[a]};I.prototype.na=function(){var a,b=d.info.Ha(),c=this.m("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=!0;break}}catch(g){return J.s("Error while checking block URL regex: "+
63
- f,g),!0}}if(!e)return!0}c=this.m("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 J.s("Error while checking block URL regex: "+c[a],g),!0}return!1};I.prototype.Nc=function(){return this.A.g("autocapture")?this.m("pageview"):this.A.g("track_pageview")};I.prototype.Ra=function(a,b){if(!this.na()){var c=this.A.Eb()&&("$mp_click"===b&&!this.m("click")||"$mp_rage_click"===b&&!this.$a());if(a=Pb(a,{Ad:this.m("allow_element_callback"),
64
- Bd:this.m("allow_selectors"),Ed:this.m("block_attrs"),Fd:this.m("block_element_callback"),Gd:this.m("block_selectors"),Id:this.m("capture_extra_attrs"),Jd:this.m("capture_text_content"),Kd:c}))d.extend(a,va),this.A.track(b,a)}};I.prototype.$a=function(){var a=this.m("rage_click");return a?!0===a?{}:"object"===typeof a?a:{}:null};I.prototype.be=function(){r.removeEventListener("click",this.oe);if(this.m("click")||this.A.g("record_heatmap_data"))J.log("Initializing click tracking"),this.oe=r.addEventListener("click",
65
- function(a){(this.m("click")||this.A.Eb())&&this.Ra(a,"$mp_click")}.bind(this))};I.prototype.ce=function(){r.removeEventListener("change",this.ne);this.m("input")&&(J.log("Initializing input tracking"),this.ne=r.addEventListener("change",function(a){this.m("input")&&this.Ra(a,"$mp_input_change")}.bind(this)))};I.prototype.de=function(){r.removeEventListener("popstate",this.re);r.removeEventListener("hashchange",this.pe);r.removeEventListener("mp_locationchange",this.qe);if(this.Nc()){J.log("Initializing pageview tracking");
66
- var a="",b=!1;this.na()||(b=this.A.Qb(va));b&&(a=d.info.Ha());this.re=r.addEventListener("popstate",function(){r.dispatchEvent(new Event("mp_locationchange"))});this.pe=r.addEventListener("hashchange",function(){r.dispatchEvent(new Event("mp_locationchange"))});var c=r.history.pushState;"function"===typeof c&&(r.history.pushState=function(f,g,k){c.call(r.history,f,g,k);r.dispatchEvent(new Event("mp_locationchange"))});var e=r.history.replaceState;"function"===typeof e&&(r.history.replaceState=function(f,
67
- g,k){e.call(r.history,f,g,k);r.dispatchEvent(new Event("mp_locationchange"))});this.qe=r.addEventListener("mp_locationchange",Ba(function(){if(!this.na()){var f=d.info.Ha(),g=!1,k=f.split("#")[0].split("?")[0]!==a.split("#")[0].split("?")[0],h=this.Nc();"full-url"===h?g=f!==a:"url-with-path-and-query-string"===h?g=f.split("#")[0]!==a.split("#")[0]:"url-with-path"===h&&(g=k);g&&(this.A.Qb(va)&&(a=f),k&&(this.Na=0,J.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)))}};I.prototype.ee=
68
- function(){r.removeEventListener("click",this.Ic);if(this.$a()||this.A.g("record_heatmap_data"))J.log("Initializing rage click tracking"),this.ec||(this.ec=new kb),this.Ic=function(a){var b=this.$a();if(b||this.A.Eb())this.na()||this.ec.me(a.pageX,a.pageY,b)&&this.Ra(a,"$mp_rage_click")}.bind(this),r.addEventListener("click",this.Ic)};I.prototype.fe=function(){r.removeEventListener("scrollend",this.se);this.m("scroll")&&(J.log("Initializing scroll tracking"),this.Na=0,this.se=r.addEventListener("scrollend",
69
- Ba(function(){if(this.m("scroll")&&!this.na()){var a=this.m("scroll_capture_all"),b=(this.m("scroll_depth_percent_checkpoints")||[]).slice().sort(function(h,p){return h-p}),c=r.scrollY,e=d.extend({$scroll_top:c},va);try{var f=B.body.scrollHeight,g=Math.round(c/(f-r.innerHeight)*100);e.$scroll_height=f;e.$scroll_percentage=g;if(g>this.Na)for(c=0;c<b.length;c++){var k=b[c];g>=k&&this.Na<k&&(this.Na=e.$scroll_checkpoint=k,a=!0)}}catch(h){J.s("Error while calculating scroll percentage",h)}a&&this.A.track("$mp_scroll",
70
- e)}}.bind(this))))};I.prototype.ge=function(){r.removeEventListener("submit",this.te);this.m("submit")&&(J.log("Initializing submit tracking"),this.te=r.addEventListener("submit",function(a){this.m("submit")&&this.Ra(a,"$mp_submit")}.bind(this)))};Za(I);var bc=r.fetch,K=ia("flags"),zb={context:{}};A.prototype.B=function(){bc&&"undefined"!==typeof Promise&&"undefined"!==typeof Map&&"undefined"!==typeof Set?(this.flags=null,this.rb(),this.gd=new Set):K.s("Feature Flags unavailable: missing minimum required APIs")};
71
- A.prototype.ub=function(){var a=this.oa("flags");return a?d.j(a)?d.extend({},zb,a):zb:{}};A.prototype.m=function(a){return this.ub()[a]};A.prototype.Db=function(){return!!this.oa("flags")};A.prototype.lf=function(a,b){if(!this.Db())return K.s("Feature Flags not enabled, cannot update context"),Promise.resolve();var c=this.oa("flags");d.j(c)||(c={});b=b&&b.replace?{}:this.m("context");c.context=d.extend({},b,a);this.Me("flags",c);return this.rb()};A.prototype.jc=function(){this.Db()||K.error("Feature Flags not enabled");
72
- return!!this.flags};A.prototype.rb=function(){if(!this.Db())return Promise.resolve();var a=this.wc("distinct_id"),b=this.wc("$device_id");K.log("Fetching flags for distinct ID: "+a);a=d.extend({distinct_id:a,device_id:b},this.m("context"));b=new URLSearchParams;b.set("context",JSON.stringify(a));b.set("token",this.oa("token"));b.set("mp_lib","web");b.set("$lib_version","2.70.0");a=this.tb()+"?"+b.toString();this.Za=Date.now();return this.sb=r.fetch(a,{method:"GET",headers:{Authorization:"Basic "+
73
- btoa(this.oa("token")+":")}}).then(function(c){this.Fb();return c.json().then(function(e){e=e.flags;if(!e)throw Error("No flags in API response");var f=new Map;d.h(e,function(g,k){f.set(k,{key:g.variant_key,value:g.variant_value})});this.flags=f}.bind(this)).catch(function(e){this.Fb();K.error(e)}.bind(this))}.bind(this)).catch(function(c){this.Fb();K.error(c)}.bind(this))};A.prototype.Fb=function(){this.Za?(this.bc=this.Za,this.ac=Date.now(),this.td=this.ac-this.bc,this.Za=null):K.error("Fetch in progress started time not set, cannot mark fetch complete")};
74
- A.prototype.xc=function(a,b){return this.sb?this.sb.then(function(){return this.wb(a,b)}.bind(this)).catch(function(c){K.error(c);return b}):new Promise(function(c){K.s("Feature Flags not initialized");c(b)})};A.prototype.wb=function(a,b){if(!this.jc())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.df(a,c);return c};A.prototype.xb=function(a,b){return this.xc(a,{value:b}).then(function(c){return c.value}).catch(function(c){K.error(c);
75
- return b})};A.prototype.Vd=function(a,b){K.s("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead.");return this.xb(a,b)};A.prototype.yc=function(a,b){return this.wb(a,{value:b}).value};A.prototype.isEnabled=function(a,b){return this.xb(a).then(function(){return this.Hc(a,b)}.bind(this)).catch(function(c){K.error(c);return b})};A.prototype.Hc=function(a,b){b=b||!1;var c=this.yc(a,b);!0!==c&&!1!==c&&(K.error('Feature flag "'+
76
- a+'" value: '+c+" is not a boolean; returning fallback value: "+b),c=b);return c};A.prototype.df=function(a,b){this.gd.has(a)||(this.gd.add(a),this.track("$experiment_started",{"Experiment name":a,"Variant name":b.key,$experiment_type:"feature_flag","Variant fetch start time":(new Date(this.bc)).toISOString(),"Variant fetch complete time":(new Date(this.ac)).toISOString(),"Variant fetch latency (ms)":this.td}))};Za(A);A.prototype.are_flags_ready=A.prototype.jc;A.prototype.get_variant=A.prototype.xc;
77
- A.prototype.get_variant_sync=A.prototype.wb;A.prototype.get_variant_value=A.prototype.xb;A.prototype.get_variant_value_sync=A.prototype.yc;A.prototype.is_enabled=A.prototype.isEnabled;A.prototype.is_enabled_sync=A.prototype.Hc;A.prototype.update_context=A.prototype.lf;A.prototype.get_feature_data=A.prototype.Vd;Q.prototype.Ga=function(){};Q.prototype.pb=function(){};Q.prototype.hb=function(){};Q.prototype.B=function(a){this.A=a;return this};Q.prototype.track=function(a,b,c,e){var f=this,g=d.Nd(a);
78
- if(0===g.length)z.error("The DOM query ("+a+") returned 0 elements");else return d.h(g,function(k){d.Tc(k,this.Mc,function(h){var p={},q=f.Ga(c,this),n=f.A.g("track_links_timeout");f.pb(h,this,p);window.setTimeout(f.fd(e,q,p,!0),n);f.A.track(b,q,f.fd(e,q,p))})},this),!0};Q.prototype.fd=function(a,b,c,e){e=e||!1;var f=this;return function(){c.Hd||(c.Hd=!0,a&&!1===a(e,b)||f.hb(c))}};Q.prototype.Ga=function(a,b){return"function"===typeof a?a(b):d.extend({},a)};d.Fc(ba,Q);ba.prototype.Ga=function(a,b){var c=
79
- ba.Ze.Ga.apply(this,arguments);b.href&&(c.url=b.href);return c};ba.prototype.pb=function(a,b,c){c.Jc=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.Jc||a.preventDefault()};ba.prototype.hb=function(a){a.Jc||setTimeout(function(){window.location=a.href},0)};d.Fc(na,Q);na.prototype.pb=function(a,b,c){c.element=b;a.preventDefault()};na.prototype.hb=function(a){setTimeout(function(){a.element.submit()},0)};var cc=ia("lock");Va.prototype.Tb=function(a,b){return new this.Rc(d.bind(function(c,
80
- e){function f(){function L(){u.removeItem(N);u.getItem(v)===q&&u.removeItem(v);u.getItem(G)===q&&u.removeItem(G)}u.setItem(N,"1");a().then(function(X){L();c(X)}).catch(function(X){L();e(X)})}function g(){u.setItem(G,q);h(k,function(){u.getItem(G)===q?f():p(function(){u.getItem(v)!==q?g():h(function(){return!u.getItem(N)},f)})})}function k(){var L=u.getItem(v);if(L&&L!==q)return!1;u.setItem(v,q);if(u.getItem(v)===q)return!0;oa(u,!0)||e(Error("localStorage support dropped while acquiring lock"));return!1}
81
- function h(L,X){L()?X():p(function(){h(L,X)})}function p(L){(new Date).getTime()-n>w?(cc.error("Timeout waiting for mutex on "+m+"; clearing lock. ["+q+"]"),u.removeItem(N),u.removeItem(v),g()):setTimeout(function(){try{L()}catch(X){e(X)}},t*(Math.random()+.1))}var q=b||(new Date).getTime()+"|"+Math.random(),n=(new Date).getTime(),m=this.ca,t=this.Qc,w=this.Pb,u=this.storage,G=m+":X",v=m+":Y",N=m+":Z";try{if(oa(u,!0))g();else throw Error("localStorage support check failed");}catch(L){e(L)}},this))};
82
- fa.prototype.B=function(){return D.resolve()};fa.prototype.setItem=function(a,b){return new D(d.bind(function(c,e){try{this.storage.setItem(a,da(b))}catch(f){e(f)}c()},this))};fa.prototype.getItem=function(a){return new D(d.bind(function(b,c){try{var e=ua(this.storage.getItem(a))}catch(f){c(f)}b(e)},this))};fa.prototype.removeItem=function(a){return new D(d.bind(function(b,c){try{this.storage.removeItem(a)}catch(e){c(e)}b()},this))};var Wa=ia("batch");O.prototype.T=function(){return this.Ab||!this.C?
83
- D.resolve():this.P.B().then(d.bind(function(){this.Ab=!0},this)).catch(d.bind(function(a){this.o("Error initializing queue persistence. Disabling persistence",a);this.Ab=!0;this.C=!1},this))};O.prototype.enqueue=function(a,b){a={id:za(),flushAfter:(new Date).getTime()+2*b,payload:a};if(this.C)return this.Pd(a);this.K.push(a);return D.resolve(!0)};O.prototype.Zb=function(a){var b=d.bind(function(){return this.T().then(d.bind(function(){return this.wa()},this)).then(d.bind(function(c){return this.Jb(c.concat(a))},
84
- this)).then(d.bind(function(c){c&&(this.K=this.K.concat(a));return c},this)).catch(d.bind(function(c){this.o("Error enqueueing items",c,a);return!1},this))},this);return this.lock.Tb(b,this.Qa).catch(d.bind(function(c){this.o("Error acquiring storage lock",c);return!1},this))};O.prototype.Rd=function(a){var b=this.K.slice(0,a);return this.C&&b.length<a?this.T().then(d.bind(function(){return this.wa()},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<
85
- c.length;f++){var g=c[f];if((new Date).getTime()>g.flushAfter&&!e[g.id]&&(g.xe=!0,b.push(g),b.length>=a))break}}return b},this)):D.resolve(b)};O.prototype.Ae=function(a){var b={};d.h(a,function(e){b[e]=!0});this.K=Ua(this.K,b);if(this.C){var c=d.bind(function(){return this.T().then(d.bind(function(){return this.wa()},this)).then(d.bind(function(e){e=Ua(e,b);return this.Jb(e)},this)).then(d.bind(function(){return this.wa()},this)).then(d.bind(function(e){for(var f=0;f<e.length;f++){var g=e[f];if(g.id&&
86
- b[g.id])throw Error("Item not removed from storage");}return!0},this)).catch(d.bind(function(e){this.o("Error removing items",e,a);return!1},this))},this);return this.lock.Tb(c,this.Qa).catch(d.bind(function(e){this.o("Error acquiring storage lock",e);return oa(this.lock.storage,!0)?!1:c().then(d.bind(function(f){return f?f:this.P.removeItem(this.ca).then(function(){return f})},this)).catch(d.bind(function(f){this.o("Error clearing queue",f);return!1},this))},this))}return D.resolve(!0)};O.prototype.mf=
87
- function(a){this.K=Ta(this.K,a);return this.C?this.lock.Tb(d.bind(function(){return this.T().then(d.bind(function(){return this.wa()},this)).then(d.bind(function(b){b=Ta(b,a);return this.Jb(b)},this)).catch(d.bind(function(b){this.o("Error updating items",a,b);return!1},this))},this),this.Qa).catch(d.bind(function(b){this.o("Error acquiring storage lock",b);return!1},this)):D.resolve(!0)};O.prototype.wa=function(){return this.T().then(d.bind(function(){return this.P.getItem(this.ca)},this)).then(d.bind(function(a){a&&
88
- !d.isArray(a)&&(this.o("Invalid storage entry:",a),a=null);return a||[]},this)).catch(d.bind(function(a){this.o("Error retrieving queue",a);return[]},this))};O.prototype.Jb=function(a){return this.T().then(d.bind(function(){return this.P.setItem(this.ca,a)},this)).then(function(){return!0}).catch(d.bind(function(b){this.o("Error saving queue",b);return!1},this))};O.prototype.clear=function(){this.K=[];return this.C?this.T().then(d.bind(function(){return this.P.removeItem(this.ca)},this)):D.resolve()};
89
- var la=ia("batch");M.prototype.enqueue=function(a){return this.ua.enqueue(a,this.Ja)};M.prototype.start=function(){this.stopped=!1;this.lb=0;return this.flush()};M.prototype.stop=function(){this.stopped=!0;this.Ob&&(clearTimeout(this.Ob),this.Ob=null)};M.prototype.clear=function(){return this.ua.clear()};M.prototype.Vc=function(){this.S=this.O.batch_size};M.prototype.aa=function(){this.Xc(this.O.batch_flush_interval_ms)};M.prototype.Xc=function(a){this.Ja=a;this.stopped||(this.Ob=setTimeout(d.bind(function(){this.stopped||
90
- this.flush()},this),this.Ja))};M.prototype.Je=function(a,b){return new D(d.bind(function(c){this.He(a,b,c)},this))};M.prototype.flush=function(a){if(this.Ib)return la.log("Flush: Request already in progress"),D.resolve();this.Ib=!0;a=a||{};var b=this.O.batch_request_timeout_ms,c=(new Date).getTime(),e=this.S;return this.ua.Rd(e).then(d.bind(function(f){var g=f.length===e,k=[],h={};d.h(f,function(m){var t=m.payload;this.Da&&!m.xe&&(t=this.Da(t));if(t){t.event&&t.properties&&(t.properties=d.extend({},
91
- t.properties,{mp_sent_by_lib_version:"2.70.0"}));var w=!0,u=m.id;u?5<(this.V[u]||0)&&(this.o("[dupe] item ID sent too many times, not sending",{item:m,S:f.length,bf:this.V[u]}),w=!1):this.o("[dupe] found item with no ID",{item:m});w&&k.push(t)}h[m.id]=t},this);if(1>k.length)return this.Ib=!1,this.aa(),D.resolve();var p=d.bind(function(){return this.ua.Ae(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.V[w]=this.V[w]||0,this.V[w]++,5<this.V[w]&&
92
- this.o("[dupe] item ID sent too many times",{item:t,S:f.length,bf:this.V[w]})):this.o("[dupe] found item with no ID while removing",{item:t})},this));if(m)return this.lb=0,this.vc&&!g?(this.aa(),D.resolve()):this.flush();5<++this.lb?(this.o("Too many queue failures; disabling batching system."),this.Ve()):this.aa();return D.resolve()},this))},this),q=d.bind(function(m){this.Ib=!1;try{if(a.jd)return this.ua.mf(h);if(d.j(m)&&"timeout"===m.error&&(new Date).getTime()-c>=b)return this.o("Network timeout; retrying"),
93
- this.flush();var t;if(t=d.j(m)){var w;if(!(w=500<=m.La||429===m.La)){var u;if(u=0>=m.La){var G=r.navigator.onLine;u=!(d.l(G)||G)}w=u}t=w||"timeout"===m.error}if(t){var v=2*this.Ja;m.Wc&&(v=1E3*parseInt(m.Wc,10)||v);v=Math.min(6E5,v);this.o("Error; retry in "+v+" ms");this.Xc(v);return D.resolve()}if(d.j(m)&&413===m.La){if(1<f.length)return this.S=Math.min(this.S,Math.max(1,Math.floor(e/2)),f.length-1),this.o("413 response; reducing batch size to "+this.S),this.aa(),D.resolve();this.o("Single-event request too large; dropping",
94
- f);this.Vc()}return p()}catch(N){this.o("Error handling API response",N),this.aa()}},this),n={method:"POST",nd:!0,ae:!0,ed:b};a.jd&&(n.Rb="sendBeacon");la.log("MIXPANEL REQUEST:",k);return this.Je(k,n).then(q)},this)).catch(d.bind(function(f){this.o("Error flushing request queue",f);this.aa()},this))};M.prototype.o=function(a,b){la.error.apply(la.error,arguments);if(this.Y)try{b instanceof Error||(b=Error(a)),this.Y(a,b)}catch(c){la.error(c)}};var Ab={Zc:function(a,b){var c={},e={};d.j(a)?d.h(a,function(f,
95
- g){this.M(g)||(e[g]=f)},this):e[a]=b;c.$set=e;return c},kd:function(a){var b={},c=[];d.isArray(a)||(a=[a]);d.h(a,function(e){this.M(e)||c.push(e)},this);b.$unset=c;return b},ad:function(a,b){var c={},e={};d.j(a)?d.h(a,function(f,g){this.M(g)||(e[g]=f)},this):e[a]=b;c.$set_once=e;return c},hd:function(a,b){var c={},e={};d.j(a)?d.h(a,function(f,g){this.M(g)||(e[g]=d.isArray(f)?f:[f])},this):e[a]=d.isArray(b)?b:[b];c.$union=e;return c},Cd:function(a,b){var c={},e={};d.j(a)?d.h(a,function(f,g){this.M(g)||
96
- (e[g]=f)},this):e[a]=b;c.$append=e;return c},Uc:function(a,b){var c={},e={};d.j(a)?d.h(a,function(f,g){this.M(g)||(e[g]=f)},this):e[a]=b;c.$remove=e;return c},rf:function(){return{$delete:""}}};d.extend(C.prototype,Ab);C.prototype.la=function(a,b,c){this.i=a;this.cb=b;this.bb=c};C.prototype.set=ca(function(a,b,c){var e=this.Zc(a,b);d.j(a)&&(c=b);return this.u(e,c)});C.prototype.ba=ca(function(a,b,c){var e=this.ad(a,b);d.j(a)&&(c=b);return this.u(e,c)});C.prototype.Sa=ca(function(a,b){a=this.kd(a);
97
- return this.u(a,b)});C.prototype.ya=ca(function(a,b,c){d.j(a)&&(c=b);a=this.hd(a,b);return this.u(a,c)});C.prototype["delete"]=ca(function(a){return this.u({$delete:""},a)});C.prototype.remove=ca(function(a,b,c){a=this.Uc(a,b);return this.u(a,c)});C.prototype.u=function(a,b){a.$group_key=this.cb;a.$group_id=this.bb;a.$token=this.I("token");a=d.nb(a);return this.i.gb({type:"groups",data:a,endpoint:this.i.$("groups")+"/"+this.I("api_routes").groups,jb:this.i.H.groups},b)};C.prototype.M=function(a){return"$group_key"===
98
- a||"$group_id"===a};C.prototype.I=function(a){return this.i.g(a)};C.prototype.toString=function(){return this.i.toString()+".group."+this.cb+"."+this.bb};C.prototype.remove=C.prototype.remove;C.prototype.set=C.prototype.set;C.prototype.set_once=C.prototype.ba;C.prototype.union=C.prototype.ya;C.prototype.unset=C.prototype.Sa;C.prototype.toString=C.prototype.toString;d.extend(x.prototype,Ab);x.prototype.la=function(a){this.i=a};x.prototype.set=V(function(a,b,c){var e=this.Zc(a,b);d.j(a)&&(c=b);this.I("save_referrer")&&
99
- this.i.persistence.Sb(document.referrer);e.$set=d.extend({},d.info.ze(),e.$set);return this.u(e,c)});x.prototype.ba=V(function(a,b,c){var e=this.ad(a,b);d.j(a)&&(c=b);return this.u(e,c)});x.prototype.Sa=V(function(a,b){a=this.kd(a);return this.u(a,b)});x.prototype.Ec=V(function(a,b,c){var e={},f={};d.j(a)?(d.h(a,function(g,k){this.M(k)||(isNaN(parseFloat(g))?z.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):f[k]=g)},this),c=b):(d.l(b)&&(b=1),f[a]=b);e.$add=
100
- f;return this.u(e,c)});x.prototype.append=V(function(a,b,c){d.j(a)&&(c=b);a=this.Cd(a,b);return this.u(a,c)});x.prototype.remove=V(function(a,b,c){d.j(a)&&(c=b);a=this.Uc(a,b);return this.u(a,c)});x.prototype.ya=V(function(a,b,c){d.j(a)&&(c=b);a=this.hd(a,b);return this.u(a,c)});x.prototype.ff=V(function(){z.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")});x.prototype.lc=function(a){return this.set("$transactions",[],a)};x.prototype.tc=function(){if(this.eb()){var a=
101
- {$delete:this.i.U()};return this.u(a)}z.error("mixpanel.people.delete_user() requires you to call identify() first")};x.prototype.toString=function(){return this.i.toString()+".people"};x.prototype.u=function(a,b){a.$token=this.I("token");a.$distinct_id=this.i.U();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.nb(a);return this.eb()?this.i.gb({type:"people",data:c,endpoint:this.i.$("people")+
102
- "/"+this.I("api_routes").engage,jb:this.i.H.Hb},b):(this.sd(a),d.l(b)||(this.I("verbose")?b({status:-1,error:null}):b(-1)),d.truncate(c,255))};x.prototype.I=function(a){return this.i.g(a)};x.prototype.eb=function(){return!0===this.i.ia.Cc};x.prototype.sd=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
103
- a?this.i.persistence.G("$remove",a):"$union"in a?this.i.persistence.G("$union",a):z.error("Invalid call to _enqueue():",a)};x.prototype.ja=function(a,b,c,e){var f=this,g=d.extend({},this.i.persistence.ra(a)),k=g;d.l(g)||!d.j(g)||d.Ma(g)||(f.i.persistence.J(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.l(c)||c(h,p)}))};x.prototype.ud=function(a,b,c,e,f,g,k){var h=this;this.ja("$set",this.set,a);this.ja("$set_once",this.ba,e);this.ja("$unset",this.Sa,
104
- g,function(n){return d.keys(n)});this.ja("$add",this.Ec,b);this.ja("$union",this.ya,f);a=this.i.persistence.ra("$append");if(!d.l(a)&&d.isArray(a)&&a.length)for(b=function(n,m){0===n&&h.i.persistence.G("$append",p);d.l(c)||c(n,m)},e=a.length-1;0<=e;e--){a=this.i.persistence.ra("$append");var p=a.pop();h.i.persistence.save();d.Ma(p)||h.append(p,b)}a=this.i.persistence.ra("$remove");if(!d.l(a)&&d.isArray(a)&&a.length)for(b=function(n,m){0===n&&h.i.persistence.G("$remove",q);d.l(k)||k(n,m)},e=a.length-
105
- 1;0<=e;e--){a=this.i.persistence.ra("$remove");var q=a.pop();h.i.persistence.save();d.Ma(q)||h.remove(q,b)}};x.prototype.M=function(a){return"$distinct_id"===a||"$token"===a||"$device_id"===a||"$user_id"===a||"$had_persisted_distinct_id"===a};x.prototype.set=x.prototype.set;x.prototype.set_once=x.prototype.ba;x.prototype.unset=x.prototype.Sa;x.prototype.increment=x.prototype.Ec;x.prototype.append=x.prototype.append;x.prototype.remove=x.prototype.remove;x.prototype.union=x.prototype.ya;x.prototype.track_charge=
106
- x.prototype.ff;x.prototype.clear_charges=x.prototype.lc;x.prototype.delete_user=x.prototype.tc;x.prototype.toString=x.prototype.toString;var dc="__mps __mpso __mpus __mpa __mpap __mpr __mpu $people_distinct_id __alias __timers".split(" ");y.prototype.ta=function(){var a={};this.load();d.h(this.props,function(b,c){d.zb(dc,c)||(a[c]=b)});return a};y.prototype.load=function(){if(!this.disabled){var a=this.storage.parse(this.name);a&&(this.props=d.extend({},a))}};y.prototype.upgrade=function(){if(this.storage===
107
- d.localStorage){var a=d.cookie.parse(this.name);d.cookie.remove(this.name);d.cookie.remove(this.name,!0);a&&this.L(a)}else this.storage===d.cookie&&(a=d.localStorage.parse(this.name),d.localStorage.remove(this.name),a&&this.L(a))};y.prototype.save=function(){this.disabled||this.storage.set(this.name,da(this.props),this.qb,this.mb,this.Yc,this.rc,this.Fa)};y.prototype.Oa=function(a){this.load();return this.props[a]};y.prototype.remove=function(){this.storage.remove(this.name,!1,this.Fa);this.storage.remove(this.name,
108
- !0,this.Fa)};y.prototype.clear=function(){this.remove();this.props={}};y.prototype.L=function(a,b,c){return d.j(a)?("undefined"===typeof b&&(b="None"),this.qb="undefined"===typeof c?this.sc: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};y.prototype.register=function(a,b){return d.j(a)?(this.qb="undefined"===typeof b?this.sc:b,this.load(),d.extend(this.props,a),this.save(),!0):!1};y.prototype.unregister=function(a){this.load();
109
- a in this.props&&(delete this.props[a],this.save())};y.prototype.md=function(a){this.register(d.info.Fe(a))};y.prototype.Sb=function(a){this.L({$initial_referrer:a||"$direct",$initial_referring_domain:d.info.Sc(a)||"$direct"},"")};y.prototype.Zd=function(){return d.da({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};y.prototype.ld=function(a){this.sc=this.qb=a.cookie_expiration;this.$c(a.disable_persistence);this.Ne(a.cookie_domain);
110
- this.Oe(a.cross_site_cookie);this.Pe(a.cross_subdomain_cookie);this.Se(a.secure_cookie)};y.prototype.$c=function(a){(this.disabled=a)?this.remove():this.save()};y.prototype.Ne=function(a){a!==this.Fa&&(this.remove(),this.Fa=a,this.save())};y.prototype.Oe=function(a){a!==this.rc&&(this.rc=a,this.remove(),this.save())};y.prototype.Pe=function(a){a!==this.mb&&(this.mb=a,this.remove(),this.save())};y.prototype.Xd=function(){return this.mb};y.prototype.Se=function(a){a!==this.Yc&&(this.Yc=a?!0:!1,this.remove(),
111
- this.save())};y.prototype.G=function(a,b){var c=this.Aa(a);a=b[a];var e=this.R("$set"),f=this.R("$set_once"),g=this.R("$unset"),k=this.R("$add"),h=this.R("$union"),p=this.R("$remove",[]),q=this.R("$append",[]);"__mps"===c?(d.extend(e,a),this.J("$add",a),this.J("$union",a),this.J("$unset",a)):"__mpso"===c?(d.h(a,function(n,m){m in f||(f[m]=n)}),this.J("$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(q,function(m){n in m&&delete m[n]});g[n]=!0}):"__mpa"===
112
- c?(d.h(a,function(n,m){m in e?e[m]+=n:(m in k||(k[m]=0),k[m]+=n)},this),this.J("$unset",a)):"__mpu"===c?(d.h(a,function(n,m){d.isArray(n)&&(m in h||(h[m]=[]),d.h(n,function(t){d.zb(h[m],t)||h[m].push(t)}))}),this.J("$unset",a)):"__mpr"===c?(p.push(a),this.J("$append",a)):"__mpap"===c&&(q.push(a),this.J("$unset",a));z.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");z.log(b);this.save()};y.prototype.J=function(a,b){var c=this.props[this.Aa(a)];d.l(c)||d.h(b,function(e,f){"$append"===a||"$remove"===
113
- a?d.h(c,function(g){g[f]===e&&delete g[f]}):delete c[f]},this)};y.prototype.ra=function(a){return this.Oa(this.Aa(a))};y.prototype.Aa=function(a){if("$set"===a)return"__mps";if("$set_once"===a)return"__mpso";if("$unset"===a)return"__mpus";if("$add"===a)return"__mpa";if("$append"===a)return"__mpap";if("$remove"===a)return"__mpr";if("$union"===a)return"__mpu";z.error("Invalid queue:",a)};y.prototype.R=function(a,b){a=this.Aa(a);b=d.l(b)?{}:b;return this.props[a]||(this.props[a]=b)};y.prototype.Qe=function(a){var b=
114
- (new Date).getTime(),c=this.Oa("__timers")||{};c[a]=b;this.props.__timers=c;this.save()};y.prototype.Be=function(a){var b=(this.Oa("__timers")||{})[a];d.l(b)||(delete this.props.__timers[a],this.save());return b};var ec=["mixpanelRecordingEvents","mixpanelRecordingRegistry"];T.prototype.cc=function(){return new D(function(a,b){var c=r.indexedDB.open("mixpanelBrowserDb",1);c.onerror=function(){b(c.error)};c.onsuccess=function(){a(c.result)};c.onupgradeneeded=function(e){var f=e.target.result;ec.forEach(function(g){f.createObjectStore(g)})}})};
115
- T.prototype.B=function(){if(!r.indexedDB)return D.reject("indexedDB is not supported in this browser");this.X||(this.X=this.cc());return this.X.then(function(a){return a instanceof r.IDBDatabase?D.resolve():D.reject(a)})};T.prototype.Pa=function(a,b){function c(f){return new D(function(g,k){var h=f.transaction(e,a);h.oncomplete=function(){g(h)};h.onabort=h.onerror=function(){k(h.error)};b(h.objectStore(e))})}var e=this.Xe;return this.X.then(c).catch(function(f){return f&&"InvalidStateError"===f.name?
116
- (this.X=this.cc(),this.X.then(c)):D.reject(f)}.bind(this))};T.prototype.setItem=function(a,b){return this.Pa("readwrite",function(c){c.put(b,a)})};T.prototype.getItem=function(a){var b;return this.Pa("readonly",function(c){b=c.get(a)}).then(function(){return b.result})};T.prototype.removeItem=function(a){return this.Pa("readwrite",function(b){b.delete(a)})};T.prototype.getAll=function(){var a;return this.Pa("readonly",function(b){a=b.getAll()}).then(function(){return a.result})};var xa,E,ea=r.XMLHttpRequest&&
117
- "withCredentials"in new XMLHttpRequest,Ra=!ea&&-1===H.indexOf("MSIE")&&-1===H.indexOf("Mozilla"),wa=null;W.sendBeacon&&(wa=function(){return W.sendBeacon.apply(W,arguments)});var Bb={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},Cb={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Bb,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",
118
- cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ha,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:ha,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,
119
- opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},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)$/,
120
- record_mask_text_selector:"*",record_max_ms:864E5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Qa=!1;l.prototype.B=function(a,b,c){if(d.l(c))this.v("You must name your new library: init(token, config, name)");else if("mixpanel"===c)this.v("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=ma(a,b,c),E[c]=a,a.Ba(),a};l.prototype.la=function(a,b,c){b=b||{};this.__loaded=!0;this.config=
121
- {};var e={};"api_payload_format"in b||(b.api_host||Cb.api_host).match(/\.mixpanel\.com/)&&(e.api_payload_format="json");this.Kb(d.extend({},Cb,e,b,{name:c,token:a,callback_fn:("mixpanel"===c?c:"mixpanel."+c)+"._jsc"}));this._jsc=ha;this.Va=[];this.Wa=[];this.Ua=[];this.ia={disable_all_events:!1,identify_called:!1};this.H={};if(this.ha=this.g("batch_requests"))if(d.localStorage.qa(!0)&&ea){if(this.he(),wa&&r.addEventListener){var f=d.bind(function(){this.H.Z.stopped||this.H.Z.flush({jd:!0})},this);
122
- r.addEventListener("pagehide",function(g){g.persisted&&f()});r.addEventListener("visibilitychange",function(){"hidden"===B.visibilityState&&f()})}}else this.ha=!1,z.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),d.h(this.zc(),function(g){z.log("Clearing batch queue "+g.va);d.localStorage.remove(g.va)});this.persistence=this.cookie=new y(this.config);this.fa={};this.vd();a=d.Ta();this.U()||this.L({distinct_id:"$device:"+a,$device_id:a},"");this.flags=new A({tb:d.bind(function(){return this.$("flags")+
123
- "/"+this.g("api_routes").flags},this),Ud:d.bind(this.g,this),Le:d.bind(this.Kb,this),Wd:d.bind(this.F,this),kf:d.bind(this.track,this)});this.flags.B();this.flags=this.flags;this.ib=new I(this);this.ib.B();this.wd();this.Xa()};l.prototype.wd=function(){if(this.g("disable_persistence"))z.log("Tab ID initialization skipped due to disable_persistence config");else if(d.sessionStorage.qa())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)&&
124
- d.sessionStorage.get(b)||d.sessionStorage.set(b,"$tab-"+d.Ta());d.sessionStorage.set(c,"1");this.$e=d.sessionStorage.get(b);r.addEventListener("beforeunload",function(){d.sessionStorage.remove(c)})}catch(e){this.v("Error initializing tab id",e)}else this.v("Session storage is not supported, cannot keep track of unique tab ID.")};l.prototype.Bc=function(){return this.$e||null};l.prototype.xd=function(){if(this.g("disable_persistence"))return z.log("Load recorder check skipped due to disable_persistence config"),
125
- Promise.resolve(!1);var a=new T("mixpanelRecordingRegistry"),b=this.Bc();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.v("Error checking recording registry",c)},this))};l.prototype.Xa=Y(function(a){if(r.MutationObserver){var b=d.bind(function(e){var f=d.bind(function(){this.D=this.D||new r.__mp_recorder(this);this.D.resumeRecording(e)},
126
- this);d.l(r.__mp_recorder)?Sa(this.g("recorder_src"),f):f()},this),c=0<this.g("record_sessions_percent")&&100*Math.random()<=this.g("record_sessions_percent");a||c?b(!0):this.xd().then(function(e){e&&b(!1)})}else z.s("Browser does not support MutationObserver; skipping session recording")});l.prototype.Ue=function(){this.Xa(!0)};l.prototype.Nb=function(){return this.D?this.D.stopRecording():Promise.resolve()};l.prototype.ye=function(){return this.D?this.D.pauseRecording():Promise.resolve()};l.prototype.De=
127
- function(){return this.D?this.D.resumeRecording():Promise.resolve()};l.prototype.Eb=function(){return this.ab()&&this.g("record_heatmap_data")};l.prototype.Ac=function(){var a={},b=this.ab();b&&(a.$mp_replay_id=b);return a};l.prototype.$d=function(){var a=null,b=this.ab();b&&(a="https://mixpanel.com/projects/replay-redirect?"+d.Ub({replay_id:b,distinct_id:this.U(),token:this.g("token")}));return a};l.prototype.ab=function(){var a=null;this.D&&(a=this.D.replayId);return a||null};l.prototype.od=function(){return this.D};
128
- l.prototype.Ba=function(){this.g("loaded")(this);this.ic();this.people.ba(this.persistence.Zd());if(this.g("store_google")&&this.g("stop_utm_persistence")){var a=d.info.ma(null);d.h(a,function(b,c){this.unregister(c)}.bind(this))}};l.prototype.ic=function(){this.persistence.md(B.referrer);this.g("store_google")&&!this.g("stop_utm_persistence")&&this.register(d.info.ma());this.g("save_referrer")&&this.persistence.Sb(B.referrer)};l.prototype.rd=function(){d.h(this.Va,function(a){this.fb.apply(this,
129
- a)},this);this.pa()||d.h(this.Wa,function(a){this.u.apply(this,a)},this);delete this.Va;delete this.Wa};l.prototype.fb=function(a,b){if(this.g("img"))return this.v("You can't use DOM tracking functions with img = true."),!1;if(!Qa)return this.Va.push([a,b]),!1;a=(new a).B(this);return a.track.apply(a,b)};l.prototype.dc=function(a,b){if(d.l(a))return null;if(ea)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];
130
- a(g,b)};return f};l.prototype.u=function(a,b,c,e){var f=!0;if(Ra)return this.Wa.push(arguments),f;var g={method:this.g("api_method"),Rb:this.g("api_transport"),nd:this.g("verbose")},k=null;e||!d.Bb(c)&&"string"!==typeof c||(e=c,c=null);c=d.extend(g,c||{});ea||(c.method="GET");g="POST"===c.method;var h=wa&&g&&"sendbeacon"===c.Rb.toLowerCase(),p=c.nd;b.verbose&&(p=!0);this.g("test")&&(b.test=1);p&&(b.verbose=1);this.g("img")&&(b.img=1);if(!ea)if(e)b.callback=e;else if(p||this.g("test"))b.callback="(function(){})";
131
- b.ip=this.g("ip")?1:0;b._=(new Date).getTime().toString();g&&(k="data="+encodeURIComponent(b.data),delete b.data);d.extend(b,this.g("api_extra_query_params"));a+="?"+d.Ub(b);var q=this;if("img"in b)k=B.createElement("img"),k.src=a,B.body.appendChild(k);else if(h){try{f=wa(a,k)}catch(w){q.v(w),f=!1}try{e&&e(f?1:0)}catch(w){q.v(w)}}else if(ea)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,
132
- w)});if(c.ed&&"undefined"!==typeof n.timeout){n.timeout=c.ed;var t=(new Date).getTime()}n.withCredentials=!0;n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status){if(e)if(p){try{var w=d.ga(n.responseText)}catch(u){if(q.v(u),c.ae)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,q.v(w),e&&(p?e({status:0,La:n.status,error:w,Wc:(n.responseHeaders||{})["Retry-After"]}):
133
- e(0))};n.send(k)}catch(w){q.v(w),f=!1}else k=B.createElement("script"),k.type="text/javascript",k.async=!0,k.defer=!0,k.src=a,m=B.getElementsByTagName("script")[0],m.parentNode.insertBefore(k,m);return f};l.prototype.Ya=function(a){function b(k,h){d.h(k,function(p){if(d.isArray(p[0])){var q=h;d.h(p,function(n){q=q[n[0]].apply(q,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)&&
134
- "alias"===c?e.push(k):d.isArray(k)&&-1!==c.indexOf("track")&&"function"===typeof this[c]?g.push(k):f.push(k))},this);b(e,this);b(f,this);b(g,this)};l.prototype.kc=function(){return!!this.H.Z};l.prototype.zc=function(){var a="__mpq_"+this.g("token");return this.Wb=this.Wb||{Z:{type:"events",Ca:"track",va:a+"_ev"},Hb:{type:"people",Ca:"engage",va:a+"_pp"},groups:{type:"groups",Ca:"groups",va:a+"_gr"}}};l.prototype.he=function(){if(!this.kc()){var a=d.bind(function(c){return new M(c.va,{O:this.config,
135
- Y:this.g("error_reporter"),Ie:d.bind(function(e,f,g){this.u(this.$(c.Ca)+"/"+this.g("api_routes")[c.Ca],this.Yb(e),f,this.dc(g,e))},this),Da:d.bind(function(e){return this.hc("before_send_"+c.type,e)},this),We:d.bind(this.Mb,this),C:!0})},this),b=this.zc();this.H={Z:a(b.Z),Hb:a(b.Hb),groups:a(b.groups)}}this.g("batch_autostart")&&this.Lb()};l.prototype.Lb=function(){this.pd=!0;this.kc()&&(this.ha=!0,d.h(this.H,function(a){a.start()}))};l.prototype.Mb=function(){this.ha=!1;d.h(this.H,function(a){a.stop();
136
- a.clear()})};l.prototype.push=function(a){this.Ya([a])};l.prototype.disable=function(a){"undefined"===typeof a?this.ia.Md=!0:this.Ua=this.Ua.concat(a)};l.prototype.Yb=function(a){a=da(a);"base64"===this.g("api_payload_format")&&(a=d.Dd(a));return{data:a}};l.prototype.gb=function(a,b){var c=d.truncate(a.data,255),e=a.endpoint,f=a.jb,g=a.Te,k=a.Ke||{};b=b||ha;var h=!0,p=d.bind(function(){k.dd||(c=this.hc("before_send_"+a.type,c));return c?(z.log("MIXPANEL REQUEST:"),z.log(c),this.u(e,this.Yb(c),k,this.dc(b,
137
- c))):null},this);this.ha&&!g?f.enqueue(c).then(function(q){q?b(1,c):p()}):h=p();return h&&c};l.prototype.track=Y(function(a,b,c,e){e||"function"!==typeof c||(e=c,c=null);c=c||{};var f=c.transport;f&&(c.Rb=f);f=c.send_immediately;"function"!==typeof e&&(e=ha);if(d.l(a))this.v("No event name provided to mixpanel.track");else if(this.$b(a))e(0);else{b=d.extend({},b);b.token=this.g("token");var g=this.persistence.Be(a);d.l(g)||(b.$duration=parseFloat((((new Date).getTime()-g)/1E3).toFixed(3)));this.ic();
138
- g=this.g("track_marketing")?d.info.ue():{};b=d.extend({},d.info.ta({mp_loader:this.g("mp_loader")}),g,this.persistence.ta(),this.fa,this.Ac(),b);g=this.g("property_blacklist");d.isArray(g)?d.h(g,function(k){delete b[k]}):this.v("Invalid value for property_blacklist config: "+g);return this.gb({type:"events",data:{event:a,properties:b},endpoint:this.$("events")+"/"+this.g("api_routes").track,jb:this.H.Z,Te:f,Ke:c},e)}});l.prototype.Re=Y(function(a,b,c){d.isArray(b)||(b=[b]);var e={};e[a]=b;this.register(e);
139
- return this.people.set(a,b,c)});l.prototype.yd=Y(function(a,b,c){var e=this.F(a),f={};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.ya(a,b,c)});l.prototype.Ce=Y(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({sf:e}));0===e.length&&this.unregister(a)}return this.people.remove(a,b,c)});l.prototype.jf=Y(function(a,b,c,e){var f=d.extend({},b||{});d.h(c,function(g,k){null!==g&&void 0!==
140
- g&&(f[k]=g)});return this.track(a,f,e)});l.prototype.qd=function(a,b){return a+"_"+JSON.stringify(b)};l.prototype.Yd=function(a,b){var c=this.qd(a,b),e=this.Xb[c];if(void 0===e||e.cb!==a||e.bb!==b)e=new C,e.la(this,a,b),this.Xb[c]=e;return e};l.prototype.Qb=Y(function(a,b){"object"!==typeof a&&(a={});b=b||{};b=b.event_name||"$mp_web_page_view";var c=d.extend(d.info.ve(),d.info.ma(),d.info.nc());a=d.extend({},c,a);return this.track(b,a)});l.prototype.hf=function(){return this.fb.call(this,ba,arguments)};
141
- l.prototype.gf=function(){return this.fb.call(this,na,arguments)};l.prototype.af=function(a){d.l(a)?this.v("No event name provided to mixpanel.time_event"):this.$b(a)||this.persistence.Qe(a)};var Gb={persistent:!0};l.prototype.register=function(a,b){b=ya(b);b.persistent?this.persistence.register(a,b.days):d.extend(this.fa,a)};l.prototype.L=function(a,b,c){c=ya(c);c.persistent?this.persistence.L(a,b,c.days):("undefined"===typeof b&&(b="None"),d.h(a,function(e,f){this.fa.hasOwnProperty(f)&&this.fa[f]!==
142
- b||(this.fa[f]=e)},this))};l.prototype.unregister=function(a,b){b=ya(b);b.persistent?this.persistence.unregister(a):delete this.fa[a]};l.prototype.fc=function(a,b){var c={};c[a]=b;this.register(c)};l.prototype.yb=function(a,b,c,e,f,g,k,h){var p=this.U();if(a&&p!==a){if("string"===typeof a&&0===a.indexOf("$device:"))return this.v("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:a})}this.F("$device_id")||this.L({$had_persisted_distinct_id:!0,$device_id:p},"");a!==p&&a!==this.F("__alias")&&
143
- (this.unregister("__alias"),this.register({distinct_id:a}));this.ia.Cc=!0;this.people.ud(b,c,e,f,g,k,h);a!==p&&this.track("$identify",{distinct_id:a,$anon_distinct_id:p},{dd:!0});a!==p&&this.flags.rb()};l.prototype.reset=function(){this.Nb();this.persistence.clear();this.ia.Cc=!1;var a=d.Ta();this.L({distinct_id:"$device:"+a,$device_id:a},"");this.Xa()};l.prototype.U=function(){return this.F("distinct_id")};l.prototype.zd=function(a,b){if(a===this.F("$people_distinct_id"))return this.v("Attempting to create alias for existing People user - aborting."),
144
- -2;var c=this;d.l(b)&&(b=this.U());if(a!==b)return this.fc("__alias",a),this.track("$create_alias",{alias:a,distinct_id:b},{dd:!0},function(){c.yb(a)});this.v("alias matches current distinct_id - skipping api call.");this.yb(a);return-1};l.prototype.we=function(a){this.fc("mp_name_tag",a)};l.prototype.Kb=function(a){d.j(a)&&(d.extend(this.config,a),a.batch_size&&d.h(this.H,function(b){b.Vc()}),this.g("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.g("disable_persistence")||
145
- (this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.ld(this.config),S=S||this.g("debug"),("autocapture"in a||"record_heatmap_data"in a)&&this.ib&&this.ib.B())};l.prototype.g=function(a){return this.config[a]};l.prototype.hc=function(a){var b=(this.config.hooks[a]||Hb).apply(this,aa.call(arguments,1));"undefined"===typeof b&&(this.v(a+" hook did not return a value"),b=null);return b};l.prototype.F=function(a){return this.persistence.Oa([a])};l.prototype.$=
146
- function(a){return this.g("api_hosts")[a]||this.g("api_host")};l.prototype.toString=function(){var a=this.g("name");"mixpanel"!==a&&(a="mixpanel."+a);return a};l.prototype.$b=function(a){return d.Gc(H)||this.ia.Md||d.zb(this.Ua,a)};l.prototype.vd=function(){"localStorage"===this.g("opt_out_tracking_persistence_type")&&d.localStorage.qa()&&(!this.Ka()&&this.Ka({persistence_type:"cookie"})&&this.Kc({enable_persistence:!1}),!this.pa()&&this.pa({persistence_type:"cookie"})&&this.Gb({clear_persistence:!1}),
147
- this.mc({persistence_type:"cookie",enable_persistence:!1}));this.pa()?this.za({clear_persistence:!0}):this.Ka()||!this.g("opt_out_tracking_by_default")&&!d.cookie.get("mp_optout")||(d.cookie.remove("mp_optout"),this.Gb({clear_persistence:this.g("opt_out_persistence_by_default")}))};l.prototype.za=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.$c(a);a?(this.Mb(),this.Nb()):this.pd&&
148
- this.Lb()};l.prototype.ka=function(a,b){b=d.extend({track:d.bind(this.track,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.qa()||(b.persistence_type="cookie");
149
- return a(this.g("token"),{track:b.track,cf:b.track_event_name,ef:b.track_properties,Pc:b.persistence_type,Oc:b.cookie_prefix,oc:b.cookie_domain,pc:b.cookie_expiration,Ld:b.cross_site_cookie,qc:b.cross_subdomain_cookie,Ge:b.secure_cookie,Dc:b.ignore_dnt})};l.prototype.Kc=function(a){a=d.extend({enable_persistence:!0},a);this.ka(Tb,a);this.za(a)};l.prototype.Gb=function(a){a=d.extend({clear_persistence:!0,delete_user:!0},a);a.delete_user&&this.people&&this.people.eb()&&(this.people.tc(),this.people.lc());
150
- this.ka(Ub,a);this.za(a)};l.prototype.Ka=function(a){return this.ka(Vb,a)};l.prototype.pa=function(a){return this.ka(nb,a)};l.prototype.mc=function(a){a=d.extend({enable_persistence:!0},a);this.ka(Xb,a);this.za(a)};l.prototype.v=function(a,b){z.error.apply(z.error,arguments);try{b||a instanceof Error||(a=Error(a)),this.g("error_reporter")(a,b)}catch(c){z.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.af;
151
- l.prototype.track=l.prototype.track;l.prototype.track_links=l.prototype.hf;l.prototype.track_forms=l.prototype.gf;l.prototype.track_pageview=l.prototype.Qb;l.prototype.register=l.prototype.register;l.prototype.register_once=l.prototype.L;l.prototype.unregister=l.prototype.unregister;l.prototype.identify=l.prototype.yb;l.prototype.alias=l.prototype.zd;l.prototype.name_tag=l.prototype.we;l.prototype.set_config=l.prototype.Kb;l.prototype.get_config=l.prototype.g;l.prototype.get_api_host=l.prototype.$;
152
- l.prototype.get_property=l.prototype.F;l.prototype.get_distinct_id=l.prototype.U;l.prototype.toString=l.prototype.toString;l.prototype.opt_out_tracking=l.prototype.Gb;l.prototype.opt_in_tracking=l.prototype.Kc;l.prototype.has_opted_out_tracking=l.prototype.pa;l.prototype.has_opted_in_tracking=l.prototype.Ka;l.prototype.clear_opt_in_out_tracking=l.prototype.mc;l.prototype.get_group=l.prototype.Yd;l.prototype.set_group=l.prototype.Re;l.prototype.add_group=l.prototype.yd;l.prototype.remove_group=l.prototype.Ce;
153
- l.prototype.track_with_groups=l.prototype.jf;l.prototype.start_batch_senders=l.prototype.Lb;l.prototype.stop_batch_senders=l.prototype.Mb;l.prototype.start_session_recording=l.prototype.Ue;l.prototype.stop_session_recording=l.prototype.Nb;l.prototype.pause_session_recording=l.prototype.ye;l.prototype.resume_session_recording=l.prototype.De;l.prototype.get_session_recording_properties=l.prototype.Ac;l.prototype.get_session_replay_url=l.prototype.$d;l.prototype.get_tab_id=l.prototype.Bc;l.prototype.DEFAULT_API_ROUTES=
154
- Bb;l.prototype.__get_recorder=l.prototype.od;y.prototype.properties=y.prototype.ta;y.prototype.update_search_keyword=y.prototype.md;y.prototype.update_referrer_info=y.prototype.Sb;y.prototype.get_cross_subdomain=y.prototype.Xd;y.prototype.clear=y.prototype.clear;var R={};(function(a){Sa=a;xa=1;E=r.mixpanel;d.l(E)?z.s('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):E.__loaded||E.config&&E.persistence?z.s("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."):
155
- 1.1>(E.__SV||0)?z.s("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(d.h(E._i,function(b){b&&d.isArray(b)&&(R[b[b.length-1]]=ma.apply(this,b))}),Eb(),E.init(),d.h(R,function(b){b.Ba()}),Db())})(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)})})()
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
+ 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.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
+ 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
+ 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
+ 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
+ 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.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
+ 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
+ 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.ja()&&("$mp_click"===b&&!this.o("click")||"$mp_rage_click"===
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
+ 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.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
+ 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.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
+ 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
+ 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.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
+ 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
+ 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
+ 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);
92
+ return b})};B.prototype.dd=function(a,b){b=b||!1;var c=this.Vc(a,b);!0!==c&&!1!==c&&(K.error('Feature flag "'+a+'" value: '+c+" is not a boolean; returning fallback value: "+b),c=b);return c};B.prototype.Xf=function(a,b){this.Od.has(a)||(this.Od.add(a),a={"Experiment name":a,"Variant name":b.key,$experiment_type:"feature_flag","Variant fetch start time":(new Date(this.wc)).toISOString(),"Variant fetch complete time":(new Date(this.vc)).toISOString(),"Variant fetch latency (ms)":this.$d,"Variant fetch traceparent":this.fe},
93
+ "undefined"!==b.experiment_id&&(a.$experiment_id=b.experiment_id),"undefined"!==b.is_experiment_active&&(a.$is_experiment_active=b.is_experiment_active),"undefined"!==b.is_qa_tester&&(a.$is_qa_tester=b.is_qa_tester),this.track("$experiment_started",a))};B.prototype.ef=function(){return!!this.fetch&&"undefined"!==typeof Promise&&"undefined"!==typeof Map&&"undefined"!==typeof Set};bb(B);B.prototype.are_flags_ready=B.prototype.Ec;B.prototype.get_variant=B.prototype.Uc;B.prototype.get_variant_sync=B.prototype.Nb;
94
+ B.prototype.get_variant_value=B.prototype.Ob;B.prototype.get_variant_value_sync=B.prototype.Vc;B.prototype.is_enabled=B.prototype.isEnabled;B.prototype.is_enabled_sync=B.prototype.dd;B.prototype.update_context=B.prototype.eg;B.prototype.get_feature_data=B.prototype.He;R.prototype.Xa=function(){};R.prototype.Gb=function(){};R.prototype.yb=function(){};R.prototype.B=function(a){this.u=a;return this};R.prototype.track=function(a,b,c,e){var f=this,g=d.xe(a);if(0===g.length)A.error("The DOM query ("+a+
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
+ (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
+ 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.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
+ 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
+ !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
+ 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
+ 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.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
+ {},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.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
+ 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.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
+ 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
+ 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.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
+ 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.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
+ 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
+ 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
+ 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.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
+ 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
+ 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
+ (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=
130
+ function(a){if("$set"===a)return"__mps";if("$set_once"===a)return"__mpso";if("$unset"===a)return"__mpus";if("$add"===a)return"__mpa";if("$append"===a)return"__mpap";if("$remove"===a)return"__mpr";if("$union"===a)return"__mpu";A.error("Invalid queue:",a)};z.prototype.U=function(a,b){a=this.Ra(a);b=d.m(b)?{}:b;return this.props[a]||(this.props[a]=b)};z.prototype.Ff=function(a){var b=(new Date).getTime(),c=this.fb("__timers")||{};c[a]=b;this.props.__timers=c;this.save()};z.prototype.qf=function(a){var b=
131
+ (this.fb("__timers")||{})[a];d.m(b)||(delete this.props.__timers[a],this.save());return b};var rc=["mixpanelRecordingEvents","mixpanelRecordingRegistry"];U.prototype.xc=function(){return new E(function(a,b){var c=q.indexedDB.open("mixpanelBrowserDb",1);c.onerror=function(){b(c.error)};c.onsuccess=function(){a(c.result)};c.onupgradeneeded=function(e){var f=e.target.result;rc.forEach(function(g){f.createObjectStore(g)})}})};U.prototype.B=function(){if(!q.indexedDB)return E.reject("indexedDB is not supported in this browser");
132
+ this.ea||(this.ea=this.xc());return this.ea.then(function(a){return a instanceof q.IDBDatabase?E.resolve():E.reject(a)})};U.prototype.gb=function(a,b){function c(f){return new E(function(g,k){var h=f.transaction(e,a);h.oncomplete=function(){g(h)};h.onabort=h.onerror=function(){k(h.error)};b(h.objectStore(e))})}var e=this.Pf;return this.ea.then(c).catch(function(f){return f&&"InvalidStateError"===f.name?(this.ea=this.xc(),this.ea.then(c)):E.reject(f)}.bind(this))};U.prototype.setItem=function(a,b){return this.gb("readwrite",
133
+ function(c){c.put(b,a)})};U.prototype.getItem=function(a){var b;return this.gb("readonly",function(c){b=c.get(a)}).then(function(){return b.result})};U.prototype.removeItem=function(a){return this.gb("readwrite",function(b){b.delete(a)})};U.prototype.getAll=function(){var a;return this.gb("readonly",function(b){a=b.getAll()}).then(function(){return a.result})};var Aa,F,ha=q.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Ua=!ha&&-1===J.indexOf("MSIE")&&-1===J.indexOf("Mozilla"),za=null;X.sendBeacon&&
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
+ 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
+ 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.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
+ 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
+ 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
+ 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.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
+ 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
+ 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
+ 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.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
+ 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
+ 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.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
+ 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.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
+ 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.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
+ (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
+ 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.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
+ 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.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
+ 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.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
+ 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
+ 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
+ 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)})})()