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