mixpanel-browser 2.73.0 → 2.75.0

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