PageSourceSearch

https://vibetoon.com/mixpanel-core.cjs.162e65b1.js

js vibetoon.com collected 2026-10-08 07:17:34 UTC 128,266 bytes, 2 lines download raw bytes

1(0,globalThis.parcelRequirebb5a.register)("l3ZHh",function(e,t){var r,i,n,o,s,a,c,u,p,h,l,_,d,f,g,m,v={DEBUG:!1,LIB_VERSION:"2.82.1"},y="__mp_targeting",b="__mp_recorder",k="__MP_TARGETING_FILENAME__";if("u"<typeof window){var S={hostname:""};E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:S,referrer:""},screen:{width:0,height:0},location:S,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else E=window;var E,w,x,C,T=E.setImmediate,I=Object.prototype.toString,P=void 0!==T?function(e){return T(e)}:setTimeout;try{Object.defineProperty({},"x",{}),w=function(e,t,r,i){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==i})}}catch(e){w=function(e,t,r){return e[t]=r,e}}function O(e,t){C.add(e,t),x||(x=P(C.drain))}function q(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function F(){for(var e=0;e<this.chain.length;e++)!function(e,t,r){var i,n;try{!1===t?r.reject(e.msg):(i=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(n=q(i))?n.call(i,r.resolve,r.reject):r.resolve(i)}catch(e){r.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function D(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=q(e))?O(function(){var i=new A(r);try{t.call(e,function(){D.apply(i,arguments)},function(){M.apply(i,arguments)})}catch(e){M.call(i,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&O(F,r))}catch(e){M.call(new A(r),e)}}}function M(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&O(F,t))}function R(e,t,r,i){for(var n=0;n<t.length;n++)!function(n){e.resolve(t[n]).then(function(e){r(n,e)},i)}(n)}function A(e){this.def=e,this.triggered=!1}function L(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function N(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new L(this);this.then=function(e,r){var i={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return i.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");i.resolve=e,i.reject=t}),t.chain.push(i),0!==t.state&&O(F,t),i.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){D.call(t,e)},function(e){M.call(t,e)})}catch(e){M.call(t,e)}}C=function(){var e,t,r;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(n,o){r=new i(n,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=x=void 0;r;)r.fn.call(r.self),r=r.next}}}();var $=w({},"constructor",N,!1);N.prototype=$,w($,"__NPO__",0,!1),w(N,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),w(N,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),w(N,"all",function(e){var t=this;return"[object Array]"!==I.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,i){if("function"!=typeof r||"function"!=typeof i)throw TypeError("Not a function");var n=e.length,o=Array(n),s=0;R(t,e,function(e,t){o[e]=t,++s===n&&r(o)},i)})}),w(N,"race",function(e){var t=this;return"[object Array]"!==I.call(e)?t.reject(TypeError("Not an array")):new t(function(r,i){if("function"!=typeof r||"function"!=typeof i)throw TypeError("Not a function");R(t,e,function(e,t){r(t)},i)})}),f="u">typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:N;var B=Array.prototype,U=Function.prototype,j=Object.prototype,V=B.slice,z=j.toString,H=j.hasOwnProperty,W=E.console,K=E.navigator,G=E.document,Q=E.opera,Y=E.screen,J=K.userAgent,X=U.bind,Z=B.forEach,ee=B.indexOf,et=B.map,er=Array.isArray,ei={},en={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},eo={log:function(){if(v.DEBUG&&!en.isUndefined(W)&&W)try{W.log.apply(W,arguments)}catch(e){en.each(arguments,function(e){W.log(e)})}},warn:function(){if(v.DEBUG&&!en.isUndefined(W)&&W){var e=["Mixpanel warning:"].
1concat(en.toArray(arguments));try{W.warn.apply(W,e)}catch(t){en.each(e,function(e){W.warn(e)})}}},error:function(){if(v.DEBUG&&!en.isUndefined(W)&&W){var e=["Mixpanel error:"].concat(en.toArray(arguments));try{W.error.apply(W,e)}catch(t){en.each(e,function(e){W.error(e)})}}},critical:function(){if(!en.isUndefined(W)&&W){var e=["Mixpanel error:"].concat(en.toArray(arguments));try{W.error.apply(W,e)}catch(t){en.each(e,function(e){W.error(e)})}}}},es=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(eo,arguments)}},ea=function(e){return{log:es(eo.log,e),warn:es(eo.warn,e),error:es(eo.error,e),critical:es(eo.critical,e)}},ec=function(e){return function(){try{return e.apply(this,arguments)}catch(e){eo.critical("Implementation error. Please turn on debug and contact [email protected]."),v.DEBUG&&eo.critical(e)}}},eu=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=ec(t[r]))};en.bind=function(e,t){var r,i;if(X&&e.bind===X)return X.apply(e,V.call(arguments,1));if(!en.isFunction(e))throw TypeError();return r=V.call(arguments,2),i=function(){if(!(this instanceof i))return e.apply(t,r.concat(V.call(arguments)));var n={};n.prototype=e.prototype;var o=new n;n.prototype=null;var s=e.apply(o,r.concat(V.call(arguments)));return Object(s)===s?s:o}},en.each=function(e,t,r){if(null!=e){if(Z&&e.forEach===Z)e.forEach(t,r);else if(e.length===+e.length){for(var i=0,n=e.length;i<n;i++)if(i in e&&t.call(r,e[i],i,e)===ei)return}else for(var o in e)if(H.call(e,o)&&t.call(r,e[o],o,e)===ei)return}},en.extend=function(e){return en.each(V.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},en.isArray=er||function(e){return"[object Array]"===z.call(e)},en.isFunction=function(e){return"function"==typeof e},en.isArguments=function(e){return!!(e&&H.call(e,"callee"))},en.toArray=function(e){return e?e.toArray?e.toArray():en.isArray(e)||en.isArguments(e)?V.call(e):en.values(e):[]},en.map=function(e,t,r){if(et&&e.map===et)return e.map(t,r);var i=[];return en.each(e,function(e){i.push(t.call(r,e))}),i},en.keys=function(e){var t=[];return null===e||en.each(e,function(e,r){t[t.length]=r}),t},en.values=function(e){var t=[];return null===e||en.each(e,function(e){t[t.length]=e}),t},en.include=function(e,t){var r=!1;return null===e?r:ee&&e.indexOf===ee?-1!=e.indexOf(t):(en.each(e,function(e){if(r||(r=e===t))return ei}),r)},en.includes=function(e,t){return -1!==e.indexOf(t)},en.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},en.isObject=function(e){return e===Object(e)&&!en.isArray(e)},en.isEmptyObject=function(e){if(en.isObject(e)){for(var t in e)if(H.call(e,t))return!1;return!0}return!1},en.isUndefined=function(e){return void 0===e},en.isString=function(e){return"[object String]"==z.call(e)},en.isDate=function(e){return"[object Date]"==z.call(e)},en.isNumber=function(e){return"[object Number]"==z.call(e)},en.isElement=function(e){return!!(e&&1===e.nodeType)},en.encodeDates=function(e){return en.each(e,function(t,r){en.isDate(t)?e[r]=en.formatDate(t):en.isObject(t)&&(e[r]=en.encodeDates(t))}),e},en.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},en.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},en.strip_empty_properties=function(e){var t={};return en.each(e,function(e,r){en.isString(e)&&e.length>0&&(t[r]=e)}),t},en.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):en.isArray(e)?(r=[],en.each(e,function(e){r.push(en.truncate(e,t))})):en.isObject(e)?(r={},en.each(e,function(e,i){r[i]=en.truncate(e,t)})):r=e,r},en.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,i){var n="",o=0,s="",a="",c=0,u=n,p=[],h=i[e];
1switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(n+="    ",p=[],"[object Array]"===z.apply(h)){for(o=0,c=h.length;o<c;o+=1)p[o]=r(o,h)||"null";return a=0===p.length?"[]":n?"[\n"+n+p.join(",\n"+n)+"\n"+u+"]":"["+p.join(",")+"]",n=u,a}for(s in h)H.call(h,s)&&(a=r(s,h))&&p.push(t(s)+(n?": ":":")+a);return a=0===p.length?"{}":n?"{"+p.join(",")+u+"}":"{"+p.join(",")+"}",n=u,a}};return r("",{"":e})},s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"},a=function(e){var t=SyntaxError(e);throw t.at=r,t.text=n,t},c=function(e){return e&&e!==i&&a("Expected '"+e+"' instead of '"+i+"'"),i=n.charAt(r),r+=1,i},u=function(){var e,t="";for("-"===i&&(t="-",c("-"));i>="0"&&i<="9";)t+=i,c();if("."===i)for(t+=".";c()&&i>="0"&&i<="9";)t+=i;if("e"===i||"E"===i)for(t+=i,c(),("-"===i||"+"===i)&&(t+=i,c());i>="0"&&i<="9";)t+=i,c();if(isFinite(e=+t))return e;a("Bad number")},p=function(){var e,t,r,n="";if('"'===i)for(;c();){if('"'===i)return c(),n;if("\\"===i)if(c(),"u"===i){for(t=0,r=0;t<4&&isFinite(e=parseInt(c(),16));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else if("string"==typeof s[i])n+=s[i];else break;else n+=i}a("Bad string")},h=function(){for(;i&&i<=" ";)c()},l=function(){switch(i){case"t":return c("t"),c("r"),c("u"),c("e"),!0;case"f":return c("f"),c("a"),c("l"),c("s"),c("e"),!1;case"n":return c("n"),c("u"),c("l"),c("l"),null}a('Unexpected "'+i+'"')},_=function(){var e=[];if("["===i){if(c("["),h(),"]"===i)return c("]"),e;for(;i;){if(e.push(o()),h(),"]"===i)return c("]"),e;c(","),h()}}a("Bad array")},d=function(){var e,t={};if("{"===i){if(c("{"),h(),"}"===i)return c("}"),t;for(;i;){if(e=p(),h(),c(":"),Object.hasOwnProperty.call(t,e)&&a('Duplicate key "'+e+'"'),t[e]=o(),h(),"}"===i)return c("}"),t;c(","),h()}}a("Bad object")},o=function(){switch(h(),i){case"{":return d();case"[":return _();case'"':return p();case"-":return u();default:return i>="0"&&i<="9"?u():l()}},en.JSONDecode=function(e){var t;return n=e,r=0,i=" ",t=o(),h(),i&&a("Syntax error"),t},en.base64Encode=function(e){var t,r,i,n,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,u=0,p="",h=[];if(!e)return e;e=en.utf8Encode(e);do t=e.charCodeAt(c++),r=(s=t<<16|e.charCodeAt(c++)<<8|e.charCodeAt(c++))>>18&63,i=s>>12&63,n=s>>6&63,o=63&s,h[u++]=a.charAt(r)+a.charAt(i)+a.charAt(n)+a.charAt(o);while(c<e.length)switch(p=h.join(""),e.length%3){case 1:p=p.slice(0,-2)+"==";break;case 2:p=p.slice(0,-1)+"="}return p},en.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,i,n="",o=0;for(i=0,t=r=0,o=e.length;i<o;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(n+=e.substring(t,r)),n+=a,t=r=i+1)}return r>t&&(n+=e.substring(t,e.length)),n},en.UUID=function(){try{return E.crypto.randomUUID()}catch(r){for(var e=Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",en.map(e,function(e){return e.toString(16)}).join("")}};var ep=["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"];en.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<ep.length;t++)if(-1!==e.indexOf(ep[t]))return!0;return!1},en.HTTPBuildQuery=function(e,t){var r,i,n=[];return en.isUndefined(t)&&(t="&"),en.each(e,function(e,t){r=encodeURIComponent(e.toString()),i=encodeURIComponent(t),n[n.length]=i+"="+r}),n.join(t)},en.getQueryParam=function(e,t){var r=RegExp("[\\?&]"+(t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"))+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch(e){eo.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},en.cookie={get:function(e){for(var t=e+"=",r=G.cookie.split(";"),i=0;i<r.length;i++){for(var n=r[i];" "==n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return decodeURIComponent(n.substring(t.length,n.length))}return null},parse:function(e){var t;try{t=en.JSONDecode(en.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,i,n,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(i){var p=ex(G.location.hostname);a=p?"; domain=."+p:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(n=!0,u="; SameSite=None"),n&&(u+="; secure"),G.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,i,n,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(i){var p=ex(G.location.hostname);a=p?"; domain=."+p:""}if(r){var h=new Date;h.setTime(h.getTime()+864e5*r),c="; expires="+h.toGMTString()}o&&(n=!0,u="; SameSite=None"),n&&(u+="; secure");var l=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return G.cookie=l,l},remove:function(e,t,r){en.cookie.set(e,"",-1,t,!1,!1,r)}};var eh=function(e){var t=!0;
1try{var r="__mplss_"+ek(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},el=null,e_=function(e,t){return null===el||t?el=eh(e):el},ed=null;function ef(e,t,r){var i=function(e){eo.error(t+" error: "+e)};return{is_supported:function(i){var n=r(e,i);return n||eo.error(t+" unsupported"),n},error:i,get:function(t){try{return e.getItem(t)}catch(e){i(e)}return null},parse:function(t){try{return en.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){i(e)}},remove:function(t){try{e.removeItem(t)}catch(e){i(e)}}}}var eg=function(){try{return E.localStorage}catch(e){return null}};en.localStorage=ef(eg(),"localStorage",e_),en.sessionStorage=ef(function(){try{return E.sessionStorage}catch(e){return null}}(),"sessionStorage",function(e,t){return null===ed||t?ed=eh(e):ed}),en.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,i,n,o){if(!t)return void eo.error("No valid element provided to register_event");if(t.addEventListener&&!n)t.addEventListener(r,i,!!o);else{var s,a,c,u="on"+r,p=t[u];t[u]=(s=t,a=i,c=p,function(t){if(t=t||e(E.event)){var r,i,n=!0;return en.isFunction(c)&&(r=c(t)),i=a.call(s,t),(!1===r||!1===i)&&(n=!1),n}})}}}();var em=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');en.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!G.getElementsByTagName)return[];var i=r.split(" "),n=[G];for(d=0;d<i.length;d++){if((p=i[d].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){b=(h=p.split("#"))[0];var o=h[1],s=G.getElementById(o);if(!s||b&&s.nodeName.toLowerCase()!=b)return[];n=[s];continue}if(p.indexOf(".")>-1){b=(h=p.split("."))[0];var a,c=h[1];for(b||(b="*"),l=[],_=0,f=0;f<n.length;f++)for(g=0,m="*"==b?e(n[f]):n[f].getElementsByTagName(b);g<m.length;g++)l[_++]=m[g];for(f=0,n=[],v=0;f<l.length;f++)l[f].className&&en.isString(l[f].className)&&(a=l[f],(" "+a.className+" ").replace(t," ").indexOf(" "+c+" ")>=0)&&(n[v++]=l[f]);continue}var u=p.match(em);if(u){var p,h,l,_,d,f,g,m,v,y,b=u[1],k=u[2],S=u[3],E=u[4];for(b||(b="*"),l=[],_=0,f=0;f<n.length;f++)for(g=0,m="*"==b?e(n[f]):n[f].getElementsByTagName(b);g<m.length;g++)l[_++]=m[g];switch(n=[],v=0,S){case"=":y=function(e){return e.getAttribute(k)==E};break;case"~":y=function(e){return e.getAttribute(k).match(RegExp("\\b"+E+"\\b"))};break;case"|":y=function(e){return e.getAttribute(k).match(RegExp("^"+E+"-?"))};break;case"^":y=function(e){return 0===e.getAttribute(k).indexOf(E)};break;case"$":y=function(e){return e.getAttribute(k).lastIndexOf(E)==e.getAttribute(k).length-E.length};break;case"*":y=function(e){return e.getAttribute(k).indexOf(E)>-1};break;default:y=function(e){return e.getAttribute(k)}}for(f=0,n=[],v=0;f<l.length;f++)y(l[f])&&(n[v++]=l[f]);continue}for(f=0,b=p,l=[],_=0;f<n.length;f++)for(g=0,m=n[f].getElementsByTagName(b);g<m.length;g++)l[_++]=m[g];n=l}return n}return function(e){return en.isElement(e)?[e]:en.isObject(e)&&!en.isUndefined(e.length)?e:r.call(this,e)}}();var ev=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],ey=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];en.info={campaignParams:function(e){var t="",r={};return en.each(ev,function(i){(t=en.getQueryParam(G.URL,i)).length?r[i]=t:void 0!==e&&(r[i]=e)}),r},clickParams:function(){var e="",t={};return en.each(ey,function(r){(e=en.getQueryParam(G.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return en.extend(en.info.campaignParams(),en.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=en.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var i=en.getQueryParam(e,"yahoo"!=t?"q":"p");
1i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,r){if(t=t||"",r||en.includes(e," OPR/"))return en.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(en.includes(e,"IEMobile")||en.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(en.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(en.includes(e,"Edge")||en.includes(e,"Edg/"))return"Microsoft Edge";else if(en.includes(e,"FBIOS"))return"Facebook Mobile";else if(en.includes(e,"Whale/"))return"Whale Browser";else if(en.includes(e,"Chrome"))return"Chrome";else if(en.includes(e,"CriOS"))return"Chrome iOS";else if(en.includes(e,"UCWEB")||en.includes(e,"UCBrowser"))return"UC Browser";else if(en.includes(e,"FxiOS"))return"Firefox iOS";else if(en.includes(t,"Apple"))return en.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(en.includes(e,"Android"))return"Android Mobile";else if(en.includes(e,"Konqueror"))return"Konqueror";else if(en.includes(e,"Firefox"))return"Firefox";else if(en.includes(e,"MSIE")||en.includes(e,"Trident/"))return"Internet Explorer";else if(en.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var i={"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+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[en.info.browser(e,t,r)];if(void 0===i)return null;var n=e.match(i);return n?parseFloat(n[n.length-2]):null},os:function(){if(/Windows/i.test(J))return/Phone/.test(J)||/WPDesktop/.test(J)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(J))return"iOS";if(/Android/.test(J))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(J))return"BlackBerry";if(/Mac/i.test(J))return"Mac OS X";else if(/Linux/.test(J))return"Linux";else if(/CrOS/.test(J))return"Chrome OS";else return""},device:function(e){if(/Windows Phone/i.test(e)||/WPDesktop/.test(e))return"Windows Phone";if(/iPad/.test(e))return"iPad";if(/iPod/.test(e))return"iPod Touch";if(/iPhone/.test(e))return"iPhone";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";else if(/Android/.test(e))return"Android";else return""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return E.location.href},properties:function(e){return"object"!=typeof e&&(e={}),en.extend(en.strip_empty_properties({$os:en.info.os(),$browser:en.info.browser(J,K.vendor,Q),$referrer:G.referrer,$referring_domain:en.info.referringDomain(G.referrer),$device:en.info.device(J)}),{$current_url:en.info.currentUrl(),$browser_version:en.info.browserVersion(J,K.vendor,Q),$screen_height:Y.height,$screen_width:Y.width,mp_lib:"web",$lib_version:v.LIB_VERSION,$insert_id:ek(),time:en.timestamp()/1e3},en.strip_empty_properties(e))},people_properties:function(){return en.extend(en.strip_empty_properties({$os:en.info.os(),$browser:en.info.browser(J,K.vendor,Q)}),{$browser_version:en.info.browserVersion(J,K.vendor,Q)})},mpPageViewProperties:function(){return en.strip_empty_properties({current_page_title:G.title,current_domain:E.location.hostname,current_url_path:E.location.pathname,current_url_protocol:E.location.protocol,current_url_search:E.location.search})}};var eb=function(e,t){var r=null,i=[];return function(n){var o=this;return i.push(n),r||(r=new f(function(n){setTimeout(function(){var t=e.apply(o,[i]);r=null,i=[],n(t)},t)})),r}},ek=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},eS=function(){return"00-"+en.UUID().replace(/-/g,"")+"-"+en.UUID().replace(/-/g,"").substring(0,16)+"-01"},eE=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,ew=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ex=function(e){var t=ew,r=e.split("."),i=r[r.length-1];(i.length>4||"com"===i||"org"===i)&&(t=eE);var n=e.match(t);return n?n[0]:""},eC=function(){var e=E.navigator.onLine;return en.isUndefined(e)||e},eT=function(){},eI=function(e,t){for(var r=!1,i=0;i<t.length;i++)if(e.match(t[i])){r=!0;break}return r},eP=null,eO=null;"u">typeof JSON&&(eP=JSON.stringify,eO=JSON.parse),eP=eP||en.JSONEncode,eO=eO||en.JSONDecode,en.info=en.info,en.info.browser=en.info.browser,en.info.browserVersion=en.info.browserVersion,en.info.device=en.info.device,en.info.properties=en.info.properties,en.isBlockedUA=en.isBlockedUA,en.isEmptyObject=en.isEmptyObject,en.isObject=en.isObject,en.JSONDecode=en.JSONDecode,en.JSONEncode=en.JSONEncode,en.toArray=en.toArray,en.NPO=N;var eq="change",eF="click",eD="hashchange",eM="load",eR="mp_locationchange",eA="popstate",eL="scrollend",eN="scroll",e$="submit",eB="visibilitychange",eU=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],ej=["mp-include"],eV=["mp-no-track"],ez=eV.concat(["mp-sensitive"]),eH=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],eW={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,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},eK={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},eG={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0}
1,eQ=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],eY=ea("autocapture");function eJ(e){for(var t={},r=eX(e).split(" "),i=0;i<r.length;i++){var n=r[i];n&&(t[n]=!0)}return t}function eX(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function eZ(e,t,r,i,n,o){var s={$classes:eX(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),e4(e,t,n,o)&&en.each(eH.concat(i),function(t){if(e.hasAttribute(t)&&!r[t]){var i=e.getAttribute(t);e9(i)&&(s["$attr-"+t]=i)}});for(var c=1,u=1,p=e;p=function(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!e3(e))return e}(p);)c++,p.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function e0(e,t,r,i){var n="";return e4(e,t,r,i)&&e.childNodes&&e.childNodes.length&&en.each(e.childNodes,function(e){e5(e)&&e.textContent&&(n+=en.trim(e.textContent).split(/(\s+)/).filter(e9).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),en.trim(n)}function e1(e,t,r,i){if(r)try{if(!r(e,t))return!1}catch(e){return eY.critical("Error while checking element in allowElementCallback",e),!1}if(!i.length)return!0;for(var n=0;n<i.length;n++){var o=i[n];try{if(e.matches(o))return!0}catch(e){eY.critical("Error while checking selector: "+o,e)}}return!1}function e2(e,t,r,i){if(r)try{if(r(e,t))return!0}catch(e){return eY.critical("Error while checking element in blockElementCallback",e),!0}if(i&&i.length)for(n=0;n<i.length;n++){var n,o=i[n];try{if(e.matches(o))return!0}catch(e){eY.critical("Error while checking selector: "+o,e)}}var s=eJ(e);for(n=0;n<eV.length;n++)if(s[eV[n]])return!0;return!1}function e3(e){return e&&1===e.nodeType}function e6(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function e5(e){return e&&3===e.nodeType}function e4(e,t,r,i){if(!e1(e,t,r,i))return!1;for(var n,o,s,a=e;a.parentNode&&!e6(a,"body");a=a.parentNode){var c=eJ(a);for(s=0;s<ez.length;s++)if(c[ez[s]])return!1}var u=eJ(e);for(s=0;s<ej.length;s++)if(u[ej[s]])return!0;if(e6(e,"input")||e6(e,"select")||e6(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var p=e.type||"";if("string"==typeof p)switch(p.toLowerCase()){case"hidden":case"password":return!1}return!("string"==typeof(o=((n=e).name||n.id||"").toString().toLowerCase())&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(o.replace(/[^a-zA-Z0-9]/g,"")))}function e9(e){if(null===e||en.isUndefined(e))return!1;if("string"==typeof e&&(e=en.trim(e),/^(?:(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((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))return!1;return!0}function e8(e){var t="onscrollend"in E,r=ec(e),i=eL;if(!t){var n=null;r=ec(function(){clearTimeout(n),n=setTimeout(e,100)}),i=eN}return{listener:r,eventType:i}}function e7(e){var t,r=e.tagName.toLowerCase();return!!("button"===r||"input"===r||"select"===r||"textarea"===r||"details"===r||"dialog"===r||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||function(e){for(var t=0;t<eQ.length;t++)if(e.hasAttribute(eQ[t]))return!0;return!1}(e))||!!((t=e.getAttribute("role"))&&eW[t.trim().split(/\s+/)[0].toLowerCase()]||"a"===r&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function te(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(eK[t])return!0;if(e7(e))return!1;for(var r=e.parentElement,i=0;r&&i<5;){if(e7(r))return!1;if(r.getRootNode&&r.getRootNode()!==G){var n=r.getRootNode();if(n.host&&e7(n.host))return!1}r=r.parentElement,i++}return!!eG[t]}function tt(e){return"composedPath"in e?e.composedPath():[]}function tr(e){var t=tt(e);return t&&t.length>0?t[0]:e.target||e.srcElement}function ti(){this.clicks=[]}function tn(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}ti.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,i=t.timeout_ms||1e3,n=t.click_count||4;if(t.interactive_elements_only){var o=tr(e);if(!o||te(o))return!1}var s=Date.now(),a=e.pageX,c=e.pageY,u=this.clicks[this.clicks.length-1];if(u&&s-u.timestamp<i&&Math.sqrt(Math.pow(a-u.x,2)+Math.pow(c-u.y,2))<r){if(this.clicks.push({x:a,y:c,timestamp:s}),this.clicks.length>=n)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:s}];return!1},tn.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return tr(e)},tn.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=tt(e),r=0;r<t.length;r++){var i=t[r];
vendor: 5,108 bytes, line 1
1i&&i.shadowRoot&&this.observeShadowRoot(i.shadowRoot)}},tn.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){eY.critical("Error while observing shadow root",e)}}},tn.prototype.start=function(){if(!this.observedShadowRoots){if(!("u">typeof WeakSet))return void eY.critical("Shadow DOM observation unavailable: WeakSet not supported");this.observedShadowRoots=new WeakSet}},tn.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){eY.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var to=[eq,"input",e$,"select","toggle"],ts=[eL],ta=[eD],tc={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function tu(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}tu.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||te(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},tu.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},tu.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),i=this.pendingClicks.slice();this.pendingClicks=[];for(var n=[],o=0;o<i.length;o++){var s=i[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||n.push(s):this.pendingClicks.push(s)}return n},tu.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},tu.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},tu.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},tu.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),i=0;i<t.length;i++)r.onDeadClickCallback(t[i].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)},tu.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;to.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),ta.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),ts.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,tc)}catch(e){eY.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new tn(function(){e.recordChangeEvent()},tc),this.shadowDOMObserver.start()}catch(e){eY.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},tu.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){eY.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){eY.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){eY.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var tp="autocapture",th="full-url",tl="allow_selectors",t_="allow_url_regexes",td="block_attrs",tf="block_element_callback",tg="block_selectors",tm="block_url_regexes",tv="capture_extra_attrs",ty="capture_text_content",tb="scroll_capture_all",tk="scroll_depth_percent_checkpoints",tS="click",t
1E="dead_click",tw="input",tx="pageview",tC="rage_click",tT="scroll",tI="page_leave",tP="submit",tO={};tO[tl]=[],tO[t_]=[],tO[td]=[],tO[tf]=null,tO[tg]=[],tO[tm]=[],tO[tv]=[],tO[ty]=!1,tO[tb]=!1,tO[tk]=[25,50,75,100],tO[tS]=!0,tO[tE]=!0,tO[tw]=!0,tO[tx]=th,tO[tC]=!0,tO[tT]=!0,tO[tI]=!1,tO[tP]=!0;var tq={$mp_autocapture:!0},tF="$mp_click",tD="$mp_dead_click",tM="$mp_rage_click",tR=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};tR.prototype.init=function(){!function(){try{return!!G.createElement("div").matches}catch(e){return!1}}()?eY.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},tR.prototype.getFullConfig=function(){var e=this.mp.get_config(tp);return e?en.isObject(e)?en.extend({},tO,e):tO:{}},tR.prototype.getConfig=function(e){return this.getFullConfig()[e]},tR.prototype.currentUrlBlocked=function(){var e=en.info.currentUrl(),t=this.getConfig(t_)||[];if(t.length)try{return!eI(e,t)}catch(e){return eY.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(tm)||[];if(!r||!r.length)return!1;try{return eI(e,r)}catch(e){return eY.critical("Error while checking block URL regexes: ",e),!0}},tR.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(tp)?this.getConfig(tx):this.mp.get_config("track_pageview")},tR.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===tF&&!this.getConfig(tS)||t===tM&&!this._getClickTrackingConfig(tC)||t===tD&&!this._getClickTrackingConfig(tE)),i=function(e,t){var r=t.allowElementCallback,i=t.allowSelectors||[],n=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,p={};en.each(n,function(e){p[e]=!0});var h=null,l=void 0===e.target?e.srcElement:e.target;if(e5(l)&&(l=l.parentNode),function(e,t){if(!e||e6(e,"html")||!e3(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===e$;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===eq;return t.type===eF;case"select":case"textarea":return t.type===eq;default:return t.type===eF}}(l,e)&&e1(l,e,r,i)&&!e2(l,e,o,s)){for(var _=[l],d=l;d.parentNode&&!e6(d,"body");)_.push(d.parentNode),d=d.parentNode;var f,g=[],m=!1;if(en.each(_,function(t){var n=e4(t,e,r,i);p.href||"a"!==t.tagName.toLowerCase()||(f=t.getAttribute("href"),f=n&&e9(f)&&f),e2(t,e,o,s)&&(m=!0),g.push(eZ(t,e,p,c,r,i))},this),!m){var v=G.documentElement;if(h={$event_type:e.type,$host:E.location.host,$pathname:E.location.pathname,$elements:g,$el_attr__href:f,$viewportHeight:Math.max(v.clientHeight,E.innerHeight||0),$viewportWidth:Math.max(v.clientWidth,E.innerWidth||0),$pageHeight:G.body.offsetHeight||0,$pageWidth:G.body.offsetWidth||0},en.each(c,function(e){if(!p[e]&&l.hasAttribute(e)){var t=l.getAttribute(e);e9(t)&&(h["$el_attr__"+e]=t)}}),a&&(y=e0(l,e,r,i))&&y.length&&(h.$el_text=y),e.type===eF&&(en.each(eU,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h.$captured_for_heatmap=!0),l=function(e){for(var t=e.target,r=e.composedPath(),i=0;i<r.length;i++){var n=r[i];if(e6(n,"a")||e6(n,"button")||e6(n,"input")||e6(n,"select")||n.getAttribute&&"button"===n.getAttribute("role")){t=n;break}if(n===t)break}return t}(e)),a){var y=e0(l,e,r,i);y&&y.length&&(h.$el_text=y)}if(l){if(!e1(l,e,r,i)||e2(l,e,o,s))return null;var b=eZ(l,e,p,c,r,i);h.$target=b,h.$el_classes=b.$classes,en.extend(h,en.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return h}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(tl),blockAttrs:this.getConfig(td),blockElementCallback:this.getConfig(tf),blockSelectors:this.getConfig(tg),captureExtraAttrs:this.getConfig(tv),captureTextContent:this.getConfig(ty),capturedForHeatMap:r});i&&(en.extend(i,tq),this.mp.track(t,i))}},tR.prototype.initPageListeners=function(){if(E.removeEventListener(eA,this.listenerPopstate),E.removeEventListener(eD,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(tI)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){E.dispatchEvent(new Event(eR))},this.listenerHashchange=function(){E.dispatchEvent(new Event(eR))},E.addEventListener(eA,this.listenerPopstate),E.addEventListener(eD,this.listenerHashchange);var e=E.history.pushState;"function"==typeof e&&(E.history.pushState=function(t,r,i){e.call(E.history,t,r,i),E.dispatchEvent(new Event(eR))});var t=E.history.replaceState;"function"==typeof t&&(E.history.replaceState=function(e,r,i){t.call(E.history,e,r,i),E.dispatchEvent(new Event(eR))})}},tR.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},tR.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(tI)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var i=Math.max(G.documentElement.clientHeight,E.innerHeight||0),n=Math.round(Math.max(this.maxScrollViewDepth-i,0)/(r-i)*100),o=Math.round(i/r*100);r<=i&&(n=100,o=100);var s=en.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:n,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||en.info.currentUrl(),$viewportHe
1ight:i,$viewportWidth:Math.max(G.documentElement.clientWidth,E.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},tq);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},tR.prototype._initScrollDepthTracking=function(){if(E.removeEventListener(eN,this.listenerScrollDepth),E.removeEventListener(eL,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){eY.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(G.documentElement.clientHeight,E.innerHeight||0);var e=e8((function(){if(!this.currentUrlBlocked()){var e=Math.max(G.documentElement.clientHeight,E.innerHeight||0)+E.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=G.body.scrollHeight}}).bind(this));this.listenerScrollDepth=e.listener,E.addEventListener(e.eventType,this.listenerScrollDepth)}},tR.prototype.initClickTracking=function(){E.removeEventListener(eF,this.listenerClick,!0),(this.getConfig(tS)||this.mp.get_config("record_heatmap_data"))&&(eY.log("Initializing click tracking"),this.listenerClick=(function(e){(this.getConfig(tS)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,tF)}).bind(this),E.addEventListener(eF,this.listenerClick,!0))},tR.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(tE)||this.mp.get_config("record_heatmap_data")?(eY.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new tu((function(e){this.trackDomEvent(e,tD)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(e){var t=this._getClickTrackingConfig(tE);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}).bind(this),E.addEventListener(eF,this.listenerDeadClick,!0))):this.stopDeadClickTracking()},tR.prototype.initInputTracking=function(){E.removeEventListener(eq,this.listenerChange,!0),this.getConfig(tw)&&(eY.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(tw)&&this.trackDomEvent(e,"$mp_input_change")}).bind(this),E.addEventListener(eq,this.listenerChange,!0))},tR.prototype.initPageviewTracking=function(){if(E.removeEventListener(eR,this.listenerLocationchange),this.pageviewTrackingConfig()||this.mp.get_config("record_heatmap_data")){eY.log("Initializing pageview tracking");var e="",t=!1;(this.pageviewTrackingConfig()||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&(t=this.mp.track_pageview(tq)),t&&(e=en.info.currentUrl()),this.listenerLocationchange=ec((function(){if(!this.currentUrlBlocked()){var t=en.info.currentUrl(),r=!1,i=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],n=this.pageviewTrackingConfig();!n&&this.mp.is_recording_heatmap_data()&&(n=th),n===th?r=t!==e:"url-with-path-and-query-string"===n?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===n&&(r=i),r&&(this.mp.track_pageview(tq)&&(e=t),i&&(this.lastScrollCheckpoint=0,eY.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)),E.addEventListener(eR,this.listenerLocationchange)}},tR.prototype.initRageClickTracking=function(){E.removeEventListener(eF,this.listenerRageClick,!0),(this._getClickTrackingConfig(tC)||this.mp.get_config("record_heatmap_data"))&&(eY.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new ti),this.listenerRageClick=(function(e){var t=this._getClickTrackingConfig(tC);(t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,tM)}).bind(this),E.addEventListener(eF,this.listenerRageClick,!0))},tR.prototype.initScrollTracking=function(){if(E.removeEventListener(eL,this.listenerScroll),E.removeEventListener(eN,this.listenerScroll),this.getConfig(tT)){eY.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(tT)&&!this.currentUrlBlocked()){var e=this.getConfig(tb),t=(this.getConfig(tk)||[]).slice().sort(function(e,t){return e-t}
1),r=E.scrollY,i=en.extend({$scroll_top:r},tq);try{var n=G.body.scrollHeight,o=Math.round(r/(n-E.innerHeight)*100);if(i.$scroll_height=n,i.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(i.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){eY.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",i)}}).bind(this),t=e8(e);this.listenerScroll=t.listener,E.addEventListener(t.eventType,this.listenerScroll)}},tR.prototype.initSubmitTracking=function(){E.removeEventListener(e$,this.listenerSubmit,!0),this.getConfig(tP)&&(eY.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(tP)&&this.trackDomEvent(e,"$mp_submit")}).bind(this),E.addEventListener(e$,this.listenerSubmit,!0))},tR.prototype.initPageLeaveTracking=function(){if(G.removeEventListener(eB,this.listenerPageLeaveVisibilitychange),E.removeEventListener(eR,this.listenerPageLeaveLocationchange),E.removeEventListener(eM,this.listenerPageLoad),this.getConfig(tI)||this.mp.get_config("record_heatmap_data")){eY.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=en.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=G.body.scrollHeight}).bind(this),E.addEventListener(eM,this.listenerPageLoad),this.listenerPageLeaveLocationchange=ec((function(t){if(!this.currentUrlBlocked()){var r=en.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(G.documentElement.clientHeight,E.innerHeight||0),this.previousScrollHeight=G.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),E.addEventListener(eR,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){G.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),G.addEventListener(eB,this.listenerPageLeaveVisibilitychange)}},tR.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(E.removeEventListener(eF,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},eu(tR);var tA=function(e,t){return E[y]&&"function"==typeof E[y].then||(E[y]=new Promise(function(r){e(t,r)}).then(function(){var e=E[y];if(e&&"function"==typeof e.then)return e;throw Error("targeting failed to load")}).catch(function(e){throw delete E[y],e})),E[y]},tL=function(e,t,r){this.dbName=e,this.storeName=t,this.version=r.version,this.storeNamesInDb=r.storeNames,this.dbPromise=null};tL.prototype._openDb=function(){var e=this.dbName,t=this.version,r=this.storeNamesInDb;return new f(function(i,n){var o=E.indexedDB.open(e,t);o.onerror=function(){n(o.error)},o.onsuccess=function(){i(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;r.forEach(function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)})}})},tL.prototype.init=function(){return E.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof E.IDBDatabase?f.resolve():f.reject(e)})):f.reject("indexedDB is not supported in this browser")},tL.prototype.isInitialized=function(){return!!this.dbPromise},tL.prototype.makeTransaction=function(e,t){var r=this.storeName,i=function(i){return new f(function(n,o){var s=i.transaction(r,e);s.oncomplete=function(){n(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(i).catch((function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(i)):f.reject(e)}).bind(this))},tL.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},tL.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},tL.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},tL.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var tN=ea("flags"),t$="mixpanelFlags",tB={version:1,storeNames:[t$]},tU=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PE
1RSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),tj=[tU.NETWORK_ONLY,tU.NETWORK_FIRST,tU.PERSISTENCE_UNTIL_NETWORK_SUCCESS],tV=function(e,t,r){this.idb=new tL("mixpanelFlagsDb",t$,tB),this.persistenceConfig=e,this.persistedVariantsKey="persisted_variants_for_"+t,this.isGloballyDisabled=r||function(){return!1}};tV.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?tU.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},tV.prototype.getTtlMs=function(){if(!this._isConfigValid())return 864e5;var e=this.persistenceConfig.persistenceTtlMs;return null==e?864e5:e},tV.prototype._isConfigValid=function(){var e=this.persistenceConfig;return!!e&&(-1===tj.indexOf(e.variantLookupPolicy)?(tN.error("Invalid variantLookupPolicy:",e.variantLookupPolicy),!1):void 0===e.persistenceTtlMs||null===e.persistenceTtlMs||!(e.persistenceTtlMs<=0)||(tN.error("If provided, persistenceTtlMs must be a positive number. Provided value:",e.persistenceTtlMs),!1))},tV.prototype.loadFlagsFromStorage=function(e){var t=en.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===tU.NETWORK_ONLY)return t();var r=this.getTtlMs();return this.idb.init().then(en.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(en.bind(function(i){if(!i)return tN.log("No persisted variants found in IndexedDB"),null;if(r&&Date.now()-i.persistedAt>=r)return tN.log("Persisted variants are expiring"),null;if(!e||i.distinctId!==e.distinct_id)return tN.log("Persisted variants found, but for a different distinct_id so clearing."),t();var n=new Map;return en.each(i.flagVariants,function(e,t){n.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"persistence",persisted_at_in_ms:i.persistedAt,ttl_in_ms:r})}),tN.log("Loaded",n.size,"variants from IndexedDB for distinct_id",i.distinctId),{flags:n,pendingFirstTimeEvents:i.pendingFirstTimeEvents||{},persistedAtMs:i.persistedAt,ttlMs:r}},this)).catch(en.bind(function(e){return tN.error("Failed to load persisted variants from IndexedDB, so clearing",e),t()},this))},tV.prototype.save=function(e,t,r){if(this.getPolicy()===tU.NETWORK_ONLY)return Promise.resolve();var i={};t.forEach(function(e,t){i[t]={variant_key:e.key,variant_value:e.value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester}});var n={persistedAt:Date.now(),distinctId:e&&e.distinct_id,context:e,flagVariants:i,pendingFirstTimeEvents:r||{}};return this.idb.init().then(en.bind(function(){return this.idb.setItem(this.persistedVariantsKey,n)},this)).then(function(){tN.log("Saved",t.size,"variants to IndexedDB for distinct_id",n.distinctId)}).catch(function(e){tN.error("Failed to persist variants to IndexedDB:",e)})},tV.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(en.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){tN.log("Cleared persisted variants from IndexedDB")}).catch(function(e){tN.error("Failed to clear persisted variants from IndexedDB:",e)})};var tz=ea("flags"),tH="flags",tW="context",tK={};tK[tW]={};var tG="NOT_READY",tQ="BACKEND_ERROR",tY=function(e,t){var r={variant_source:"fallback"};return(t&&(r.fallback_reason=t),en.isObject(e))?en.extend({},e,r):en.extend({value:e},r)},tJ=function(e){this.fetch=E.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};function tX(e){return null!=e}tJ.prototype.init=function(){return this.minApisSupported()?(this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new tV(this.getConfig("persistence"),this.getMpConfig("token"),en.bind(function(){return this.getMpConfig("disable_persistence")}
1,this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(en.bind(function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)},this)),this.persistenceLoadedPromise.then(en.bind(function(){return this.fetchFlags()},this)).catch(function(){tz.error("Error initializing feature flags")})):void tz.critical("Feature Flags unavailable: missing minimum required APIs")},tJ.prototype._buildContext=function(){return en.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(tW))},tJ.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(en.bind(function(){return this.fetchFlags()},this)).catch(function(){tz.error("Error during flags reset")})):Promise.resolve()},tJ.prototype.getFullConfig=function(){var e=this.getMpConfig(tH);return e?en.isObject(e)?en.extend({},tK,e):tK:{}},tJ.prototype.getConfig=function(e){return this.getFullConfig()[e]},tJ.prototype.isSystemEnabled=function(){return!!this.getMpConfig(tH)},tJ.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return tz.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(tH);en.isObject(r)||(r={});var i=t&&t.replace?{}:this.getConfig(tW);r[tW]=en.extend({},i,e);var n={};return n[tH]=r,this.setMpConfig(n),this.fetchFlags().catch(function(){tz.error("Error fetching flags during updateContext")})},tJ.prototype.areFlagsReady=function(){return this.isSystemEnabled()||tz.error("Feature Flags not enabled"),!!this.flags},tJ.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this._buildContext(),t=e.distinct_id,r=eS();tz.log("Fetching flags for distinct ID: "+t);var i=new URLSearchParams;i.set("context",JSON.stringify(e)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",v.LIB_VERSION);var n=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(E,n,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then((function(e){return this.markFetchComplete(),e.json()}).bind(this)).then((function(t){var i=t.flags;if(!i)throw Error("No flags in API response");var n=new Map,o={};en.each(i,function(e,t){var r=!1,i=t+":";if(en.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&n.set(t,o)}else n.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"network"})},this);var s=t.pending_first_time_events;s&&s.length>0&&en.each(s,function(e){var t=e.flag_key,r=t+":"+e.first_time_event_hash;this.activatedFirstTimeEvents[r]||(o[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&en.each(this.activatedFirstTimeEvents,function(e,t){var r=t.split(":")[0];e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=o,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=r,this._loadTargetingIfNeeded(),this.persistence.save(e,this.flags,this.pendingFirstTimeEvents)}).bind(this)).catch((function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),tz.error(e),e}).bind(this)),this.fetchPromise},tJ.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(tz.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},tJ.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):tz.error("Fetch in progress started time not set, cannot mark fetch complete")},tJ.prototype._loadTargetingIfNeeded=function(){var e=!1;en.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!en.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){tz.log("targeting loaded for property filter evaluation")})},tJ.prototype.getTargeting=function(){return tA(this.loadExtraBundle.bind(this),this.targetingSrc).catch((function(e){tz.error("Failed to load targeting: "+e)}).bind(this))},tJ.prototype.checkFirstTimeEvents=function(e,t){!this.pendingFirstTimeEvents||en.isEmptyObject(this.pendingFirstTimeEvents)||(E[y]&&en.isFunction(E[y].then)?E[y].then((function(r){this._processFirstTimeEventCheck(e,t,r)}).bind(this)).catch((function(){this._processFirstTimeEventCheck(e,t,null)}).bind(this)):this._processFirstTimeEventCheck(e,t,null))},tJ.prototype._processFirstTimeEventCheck=function(e,t,r){en.each(this.pendingFirstTimeEvents,function(i,n){if(!this.activatedFirstTimeEvents[n]){var o,s=i.flag_key;if(!r&&i.property_filters&&!en.isEmptyObject(i.property_filters))return void tz.warn('Skipping event check for "'+s+'" - property filters require targeting library');if(r){var a={event_name:i.event_name,property_filters:i.property_filters};o=r.eventMatchesCriteria(e,t,a)}else o={matches:e===i.event_name,error:null};if(o.error)return void tz.error('Error checking first-time event for flag "'+s+'": '+o.error);if(o.matches){tz.log('First-time event matched for flag "'+s+'": '+e);var c={key:i.pending_variant.variant_key,value:i.pending_variant.variant_value,experiment_id:i.pending_variant.experiment_id,is_experiment_active:i.pending_variant.is_experiment_active};this.flags.set(s,c),this.trackedFeatures.delete(s),this.activatedFirstTimeEvents[n]=!0,this.recordFirstTimeEvent(i.flag_id,i.project_id,i.first_time_event_hash)}}},this)},tJ.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute().replace(/\/$/,"")+"/"+e+"/first-time-events"},tJ.prototype.recordFirstTimeEvent=function(e,t,r){var i=this.getMpProperty("distinct_id"),n=eS(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",v.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString();tz.log("Recording first-time event for flag: "+e),this.fetch.call(E,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:n},body:JSON.stringify({distinct_id:i,project_id:t,first_time_event_hash:r})}).catch(function(t){tz.error("Failed to record first-time event for flag "+e+": "+t)})},tJ.prototype.getVariant=function(e,t){if(!this.persistenceLoadedProm
1ise)return new Promise(function(e){tz.critical("Feature Flags not initialized"),e(tY(t,tG))});var r=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(en.bind(function(){if(r===tU.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(en.bind(function(){return this.getVariantSync(e,t)},this)).catch(function(e){return tz.error(e),tY(t,tQ)}):tY(t,tG);var i=en.bind(function(){return this.getVariantSync(e,t)},this);return this.fetchPromise?this.fetchPromise.then(i).catch(en.bind(function(e){return tz.error(e),this.areFlagsReady()?i():tY(t,tQ)},this)):tY(t,tG)},this))},tJ.prototype._loadedPersistenceIsStale=function(){return!!this._loadedPersistedAtMs&&!!this._loadedTtlMs&&Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},tJ.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return tz.log('Loaded persisted variants are past TTL so returning fallback for "'+e+'"'),tY(t,tG);if(!this.areFlagsReady())return tz.log("Flags not loaded yet"),tY(t,tG);var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(tz.log('No flag found: "'+e+'"'),tY(t,"FLAG_NOT_FOUND"))},tJ.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return tz.critical("Feature Flags not initialized"),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(en.bind(function(){if(e===tU.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(en.bind(function(){return this.getAllVariantsSync()},this)).catch(function(e){return tz.error(e),new Map}):new Map;var t=en.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map},this))},tJ.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(tz.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},tJ.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return tz.error(e),t})},tJ.prototype.getFeatureData=function(e,t){return tz.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},tJ.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},tJ.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return tz.error(e),t})},tJ.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(tz.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},tJ.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":tX(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":tX(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};tX(t.experiment_id)&&(r.$experiment_id=t.experiment_id),tX(t.is_experiment_active)&&(r.$is_experiment_active=t.is_experiment_active),tX(t.is_qa_tester)&&(r.$is_qa_tester=t.is_qa_tester),tX(t.variant_source)&&(r.$variant_source=t.variant_source),tX(t.persisted_at_in_ms)&&(r.$persisted_at_in_ms=t.persisted_at_in_ms),tX(t.ttl_in_ms)&&(r.$ttl_in_ms=t.ttl_in_ms),this.track("$experiment_started",r)}},tJ.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},tJ.prototype.minApisSupported=function(){return!!this.fetch&&"u">typeof Promise&&"u">typeof Map&&"u">typeof Set},eu(tJ),tJ.prototype.are_flags_ready=tJ.prototype.areFlagsReady,tJ.prototype.get_variant=tJ.prototype.getVariant,tJ.prototype.get_variant_sync=tJ.prototype.getVariantSync,tJ.prototype.get_all_variants=tJ.prototype.getAllVariants,tJ.prototype.get_all_variants_sync=tJ.prototype.getAllVariantsSync,tJ.prototype.get_variant_value=tJ.prototype.getVariantValue,tJ.prototype.get_variant_value_sync=tJ.prototype.getVariantValueSync,tJ.prototype.is_enabled=tJ.prototype.isEnabled,tJ.prototype.is_enabled_sync=tJ.prototype.isEnabledSync,tJ.prototype.load_flags=tJ.prototype.loadFlags,tJ.prototype.update_context=tJ.prototype.updateContext,tJ.prototype.when_ready=tJ.prototype.whenReady,tJ.prototype.get_feature_data=tJ.prototype.getFeatureData,tJ.prototype.getTargeting=tJ.prototype.getTargeting;
1var tZ="mixpanelRecordingRegistry",t0={version:1,storeNames:["mixpanelRecordingEvents",tZ]},t1=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},t2=function(e,t){if(!en.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],i=0;i<e.length;i++)try{var n=new URL(e[i]).origin;if("null"===n){t.critical(e[i]+" has an opaque origin. Skipping this entry.");continue}r.push(n)}catch(r){t.critical(e[i]+" is not a valid origin URL. Skipping this entry.")}return r},t3=ea("recorder"),t6="mp_iframe_handshake_request",t5="mp_iframe_handshake_response",t4=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};t4.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return eo.log("Load recorder check skipped due to disable_persistence config"),f.resolve(!1);var e=new tL("mixpanelBrowserDb",tZ,t0),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(t1(e[r])||e[r].tabId===t)return!0;return!1}).catch(en.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},t4.prototype.checkAndStartSessionRecording=function(e,t){if(!E.MutationObserver)return eo.critical("Browser does not support MutationObserver; skipping session recording"),f.resolve();var r=en.bind(function(e){return new f(en.bind(function(t){var r=ec(en.bind(function(){this._recorder=this._recorder||new E[b](this.mixpanelInstance),this._recorder.resumeRecording(e),t()},this));if(en.isUndefined(E[b])){var i=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(i,r)}else r()},this))},this),i=t2(this.getMpConfig("record_allowed_iframe_origins"),t3);if(i.length>0&&(this._setupParentFrameListener(i),E.parent!==E))return this._setupChildFrameListener(i,r),this._sendParentFrameRequestWithRetry(i),f.resolve();var n=en.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,o=n>0&&100*Math.random()<=n;return e||o?r(!0):this.shouldLoadRecorder().then(en.bind(function(e){return e?r(!1):f.resolve()},this))},t4.prototype.isRecording=function(){if(!this._recorder||!en.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},t4.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),i=this.getMpConfig("recording_event_triggers");if(!r&&i){var n=i[e];if(n&&"number"==typeof n.percentage){var o=n.percentage,s=n.property_filters;if(s&&!en.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+k;tA(this.loadExtraBundle,a).then((function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){eo.critical("Could not parse recording event trigger properties logic:",e)}}).bind(this)).catch(function(e){eo.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},t4.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():f.resolve()},t4.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():f.resolve()},t4.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():f.resolve()},t4.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},t4.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},t4.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+en.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")})),e},t4.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},t4.prototype.getRecorder=function(){return this._recorder},t4.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(i){if(-1!==e.indexOf(i.origin)){var n=i.data;n&&n.type===t5&&n.token===r.getMpConfig("token")&&n.replayId&&(r._parentReplayId=n.replayId,n.distinctId&&r.mixpanelInstance.identify(n.distinctId),r._parentFrameRetryActive=!1,E.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},E.addEventListener("message",this._childFrameMessageHandler)}},t4.prototype._sendParentFrameRequest=function(e){var t={};t.type=t6,t.token=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{E.parent.postMessage(t,e[r])}catch(e){}},t4.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=0,i=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),!function n(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=10||(t._sendParentFrameRequest(e),i*=2,n())},i)}()},t4.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var i=r.data;if(i&&i.type===t6&&i.token===t.getMpConfig("token")){var n=t.getSessionReplayId();if(n){var o={};o.type=t5,o.token=t.getMpConfig("token"),o.replayId=n,o.distinctId=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},E.addEventListener("message",this._parentFrameMessageHandler)}},eu(t4);var t9=function(){};t9.prototype.create_properties=function(){},t9.prototype.event_handler=function(){},t9.prototype.after_track_handler=function(){},t9.prototype.init=function(e){return this.mp=e,this},t9.prototype.track=function(e,t,r,i){var n=this,o=en.dom_query(e);return 0===o.length?void eo.error("The DOM query ("+e+") returned 0 elements"):(en.each(o,function(e){en.register_event(e,this.override_event,function(e){var o={},s=n.create_properties(r,this),a=n.mp.get_config("track_links_timeout");n.event_handler(e,this,o),window.setTimeout(n.track_callback(i,s,o,!0),a),n.mp.track(t,s,n.track_callback(i,s,o))})},this),!0)},t9.prototype.track_callback=function(e,t,r,i){i=i||!1;var n=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(i,t)||n.after_track_handler(t,r,i))}},t9.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):en.extend({},e)};var t8=function(){this.override_event="click"};en.inherit(t8,t9),t8.prototype.create_properties=function(e,t){var r=t8.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},t8.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},t8.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var t7=function(){this.override_event="submit"};en.inherit(t7,t9),t7.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},t7.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var re=ea("lock"),rt=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||eg(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||f};rt.prototype.withLock=function(e,t){return new this.promiseImpl(en.bind(function(r,i){var n=t||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,p=s+":X",h=s+":Y",l=s+":Z",_=function(e){if(new Date().getTime()-o>c){re.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+n+"]"),u.removeItem(l),u.removeItem(h),g();return}setTimeout(function(){try{e()}catch(e){i(e)}},a*(Math.random()+.1))},d=function(e,t){e()?t():_(function(){d(e,t)})},f=function(){var e=u.getItem(h);return(!e||e===n)&&(u.setItem(h,n),u.getItem(h)===n||(e_(u,!0)||i(Error("localStorage support dropped while acquiring lock")),!1))},g=function(){u.setItem(p,n),d(f,function(){u.getItem(p)===n?m():_(function(){u.getItem(h)!==n?g():d(function(){return!u.getItem(l)},m)})})},m=function(){u.setItem(l,"1");var t=function(){u.removeItem(l),u.getItem(h)===n&&u.removeItem(h),u.getItem(p)===n&&u.removeItem(p)};e().then(function(e){t(),r(e)}).catch(function(e){t(),i(e)})};try{if(e_(u,!0))g();else throw Error("localStorage support check failed")}catch(e){i(e)}},this))};var rr=function(e){this.storage=e||eg()};rr.prototype.init=function(){return this.storage?f.resolve():f.reject(Error("localStorage is not available"))},rr.prototype.isInitialized=function(){return!0},rr.prototype.setItem=function(e,t){return new f(en.bind(function(r,i){try{this.storage.setItem(e,eP(t))}catch(e){i(e)}r()},this))},rr.prototype.getItem=function(e){return new f(en.bind(function(t,r){var i;try{i=eO(this.storage.getItem(e))}catch(e){r(e)}t(i)},this))},rr.prototype.removeItem=function(e){return new f(en.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var ri=ea("batch"),rn=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new rr,this.lock=new rt(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||en.bind(ri.error,ri),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=eb(en.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=en.bind(function(e){return this._enqueuePersisted([e])},this)};rn.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?f.resolve():this.queueStorage.init(
1).then(en.bind(function(){this.initialized=!0},this)).catch(en.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},rn.prototype.enqueue=function(e,t){var r={id:ek(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),f.resolve(!0))},rn.prototype._enqueuePersisted=function(e){var t=en.bind(function(){return this.ensureInit().then(en.bind(function(){return this.readFromStorage()},this)).then(en.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(en.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(en.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(en.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},rn.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(en.bind(function(){return this.readFromStorage()},this)).then(en.bind(function(r){if(r.length){var i={};en.each(t,function(e){i[e.id]=!0});for(var n=0;n<r.length;n++){var o=r[n];if(new Date().getTime()>o.flushAfter&&!i[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):f.resolve(t)};var ro=function(e,t){var r=[];return en.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};rn.prototype.removeItemsByID=function(e){var t={};if(en.each(e,function(e){t[e]=!0}),this.memQueue=ro(this.memQueue,t),!this.usePersistence)return f.resolve(!0);var r=en.bind(function(){return this.ensureInit().then(en.bind(function(){return this.readFromStorage()},this)).then(en.bind(function(e){return e=ro(e,t),this.saveToStorage(e)},this)).then(en.bind(function(){return this.readFromStorage()},this)).then(en.bind(function(e){for(var r=0;r<e.length;r++){var i=e[r];if(i.id&&t[i.id])throw Error("Item not removed from storage")}return!0},this)).catch(en.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(en.bind(function(e){return this.reportError("Error acquiring storage lock",e),!e_(this.lock.storage,!0)&&r().then(en.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(en.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var rs=function(e,t){var r=[];return en.each(e,function(e){var i=e.id;if(i in t){var n=t[i];null!==n&&(e.payload=n,r.push(e))}else r.push(e)}),r};rn.prototype.updatePayloads=function(e){return(this.memQueue=rs(this.memQueue,e),this.usePersistence)?this.lock.withLock(en.bind(function(){return this.ensureInit().then(en.bind(function(){return this.readFromStorage()},this)).then(en.bind(function(t){return t=rs(t,e),this.saveToStorage(t)},this)).catch(en.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(en.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):f.resolve(!0)},rn.prototype.readFromStorage=function(){return this.ensureInit().then(en.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(en.bind(function(e){return e&&!en.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(en.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},rn.prototype.saveToStorage=function(e){return this.ensureInit().then(en.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(en.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},rn.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(en.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):f.resolve()};var ra=ea("batch"),rc=function(e,t){this.errorReporter=t.errorReporter,this.queue=new rn(e,{errorReporter:en.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};function ru(e,t){rb(!0,e,t)}function rp(e,t){rb(!1,e,t)}function rh(e,t){return"1"===ry(e,t)}function rl(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||E,r=t.navigator||{},i=!1;return en.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){en.includes([!0,1,"1","yes"],e)&&(i=!0)}),i}(t))return eo.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;var r="0"===ry(e,t);return r&&eo.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function r_(e){return rk(e,function(e){return this.get_config(e)})}function rd(e){return rk(e,function(e){return this._get_config(e)})}function rf(e){return rk(e,function(e){return this._get_config(e)})}function rg(e,t){rm(t=t||{}).remove(rv(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function rm(e){return"localStorage"===(e=e||{}).persistenceType?en.localStorage:en.cookie}function rv(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function ry(e,t){return rm(t).get(rv(e,t))}function rb(e,t,r){en.isString(t)&&t.length?(rm(r=r||{}).set(rv(t,r),+!!e,en.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):eo.error("gdpr."+(e?"optIn":"optOut")+" called with an invali
1d token")}function rk(e,t){return function(){var r=!1;try{var i=t.call(this,"token"),n=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");i&&(r=rl(i,{ignoreDnt:n,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){eo.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}rc.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},rc.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},rc.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},rc.prototype.clear=function(){return this.queue.clear()},rc.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},rc.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},rc.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(en.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},rc.prototype.sendRequestPromise=function(e,t){return new f(en.bind(function(r){this.sendRequest(e,t,r)},this))},rc.prototype.flush=function(e){if(this.requestInProgress)return ra.log("Flush: Request already in progress"),f.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),i=this.batchSize;return this.queue.fillBatch(i).then(en.bind(function(n){var o=n.length===i,s=[],a={};if(en.each(n,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=en.extend({},t.properties,{mp_sent_by_lib_version:v.LIB_VERSION}));var r=!0,i=e.id;i?(this.itemIdsSentSuccessfully[i]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:n.length,timesSent:this.itemIdsSentSuccessfully[i]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),f.resolve();var c=en.bind(function(){return this.queue.removeItemsByID(en.map(n,function(e){return e.id})).then(en.bind(function(e){return(en.each(n,en.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:n.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o)?(this.resetFlush(),f.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),f.resolve())},this))},this),u=en.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(en.isObject(o)&&"timeout"===o.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(en.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!eC()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),f.resolve()}else{if(!en.isObject(o)||413!==o.httpStatusCode)return c();if(!(n.length>1))return this.reportError("Single-event request too large; dropping",n),this.resetBatchSize(),c();var u=Math.max(1,Math.floor(i/2));return this.batchSize=Math.min(this.batchSize,u,n.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),f.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),p={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(p.transport="sendBeacon"),ra.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,p).then(u)},this)).catch(en.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},rc.prototype.reportError=function(e,t){if(ra.error.apply(ra.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){ra.error(e)}};var rS="$set",rE="$set_once",rw="$unset",rx="$add",rC="$append",rT="$union",rI="$remove",rP={set_action:function(e,t){var r={},i={};return en.isObject(e)?en.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[rS]=i,r},unset_action:function(e){var t={},r=[];return en.isArray(e)||(e=[e]),en.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[rw]=r,t},set_once_action:function(e,t){var r={},i={};return en.isObject(e)?en.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[rE]=i,r},union_action:function(e,t){var r={},i={};return en.isObject(e)?en.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=en.isArray(e)?e:[e])},this):i[e]=en.isArray(t)?t:[t],r[rT]=i,r},append_action:function(e,t){var r={},i={};return en.isObject(e)?en.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[rC]=i,r},remove_action:function(e,t){var r={},i={};return en.isObject(e)?en.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[rI]=i,r},delete_action:function(){var e={};return e.$delete="",e}},rO=function(){};en.extend(rO.prototype,rP),rO.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},rO.prototype.set=rf(function(e,t,r){var i=this.set_action(e,t);return en.isObject(e)&&(r=t),this._send_request(i,r)}),rO.prototype.set_once=rf(function(e,t,r){var i=this.set_once_action(e,t);return en.isObject(e)&&(r=t),this._send_request(i,r)}),rO.prototype.unset=rf(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),rO.prototype.union=rf(function(e,t,r){en.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)}),rO.prototype.delete=rf(function(e){var t=this.delete_action();return this._send_request(t,e)}),rO.prototype.remove=rf(function(e,t,r){var i=this.remove_action(e,t);return this._send_request(i,r)}),rO.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=en.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},rO.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},rO.prototype._get_config=function(e){return this._mixpanel.get_config(e)},rO.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},rO.prototype.remove=rO.prototype.remove,rO.prototype.set=rO.prototype.set,rO.prototype.set_once=rO.prototype.set_once,rO.prototype.union=rO.prototype.union,rO.prototype.unset=rO.prototype.unset,rO.prototype.toString=rO.prototype.toString;var rq=function(){};en.extend(rq.prototype,rP),rq.prototype._init=function(e){this._mixpanel=e},rq.prototype.set=rd(function(e,t,r){var i=this.set_action(e,t);return en.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),i[rS]=en.extend({},en.info.people_properties(),i[rS]),this._send_request(i,r)}),rq.prototype.set_once=rd(function(e,t,r){var i=this.set_once_action(e,t);return en.isObject(e)&&(r=t),this._send_request(i,r)}),rq.prototype.unset=rd(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),rq.prototype.increment=rd(function(e,t,r){var i={},n={};return en.isObject(e)?(en.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void eo.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else n[t]=e},this),r=t):(en.isUndefined(t)&&(t=1),n[e]=t),i[rx]=n,this._send_request(i,r)}),rq.prototype.append=rd(function(e,t,r){en.isObject(e)&&(r=t);var i=this.append_action(e,t);return this._send_request(i,r)}),rq.prototype.remove=rd(function(e,t,r){en.isObject(e)&&(r=t);var i=this.remove_action(e,t);return this._send_request(i,r)}),rq.prototype.union=rd(function(e,t,r){en.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)}),rq.prototype.track_charge=rd(function(){eo.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),rq.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},rq.prototype.delete_user=function(){if(!this._identify_called())return void eo.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},rq.prototype.toString=function(){return this._mixpanel.toString()+".people"},rq.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),i=this._mixpanel.get_property("$user_id"),n=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),i&&(e.$user_id=i),n&&(e.$had_persisted_distinct_id=n);var o=en.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),en.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),en.truncate(o,255))},rq.prototype._get_config=function(e){return this._mixpanel.get_config(e)},rq.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},rq.prototype._enqueue=function(e){rS in e?this._mixpanel.persistence._add_to_people_queue(rS,e):rE in e?this._mixpanel.persistence._add_to_people_queue(rE,e):rw in e?this._mixpanel.persistence._add_to_people_queue(rw,e):rx in e?this._mixpanel.persistence._add_to_people_queue(rx,e):rC in e?this._mixpanel.persistence._add_to_people_queue(rC,e):rI in e?this._mixpanel.persistence._add_to_people_queue(rI,e):rT in e?this._mixpanel.persistence._add_to_people_queue(rT,e):eo.error("Invalid call to _enqueue():",e)},rq.prototype._flush_one_queue=function(e,t,r,i){var n=this,o=en.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!en.isUndefined(o)&&en.isObject(o)&&!en.isEmptyObject(o)&&(n._mixpanel.persistence._pop_from_people_queue(e,o),n._mixpanel.persistence.save(),i&&(s=i(o)),t.call(n,s,function(t,i){0===t&&n._mi
1xpanel.persistence._add_to_people_queue(e,o),en.isUndefined(r)||r(t,i)}))},rq.prototype._flush=function(e,t,r,i,n,o,s){var a=this;this._flush_one_queue(rS,this.set,e),this._flush_one_queue(rE,this.set_once,i),this._flush_one_queue(rw,this.unset,o,function(e){return en.keys(e)}),this._flush_one_queue(rx,this.increment,t),this._flush_one_queue(rT,this.union,n);var c=this._mixpanel.persistence.load_queue(rC);if(!en.isUndefined(c)&&en.isArray(c)&&c.length)for(var u,p=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(rC,u),en.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)u=(c=this._mixpanel.persistence.load_queue(rC)).pop(),a._mixpanel.persistence.save(),en.isEmptyObject(u)||a.append(u,p);var l=this._mixpanel.persistence.load_queue(rI);if(!en.isUndefined(l)&&en.isArray(l)&&l.length)for(var _,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(rI,_),en.isUndefined(s)||s(e,t)},f=l.length-1;f>=0;f--)_=(l=this._mixpanel.persistence.load_queue(rI)).pop(),a._mixpanel.persistence.save(),en.isEmptyObject(_)||a.remove(_,d)},rq.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},rq.prototype.set=rq.prototype.set,rq.prototype.set_once=rq.prototype.set_once,rq.prototype.unset=rq.prototype.unset,rq.prototype.increment=rq.prototype.increment,rq.prototype.append=rq.prototype.append,rq.prototype.remove=rq.prototype.remove,rq.prototype.union=rq.prototype.union,rq.prototype.track_charge=rq.prototype.track_charge,rq.prototype.clear_charges=rq.prototype.clear_charges,rq.prototype.delete_user=rq.prototype.delete_user,rq.prototype.toString=rq.prototype.toString;var rF="__mps",rD="__mpso",rM="__mpus",rR="__mpa",rA="__mpap",rL="__mpr",rN="__mpu",r$="$people_distinct_id",rB="__alias",rU="__timers",rj=[rF,rD,rM,rR,rA,rL,rN,r$,rB,rU],rV=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(eo.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&en.localStorage.is_supported()?this.storage=en.localStorage:this.storage=en.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};rV.prototype.properties=function(){var e={};return this.load(),en.each(this.props,function(t,r){en.include(rj,r)||(e[r]=t)}),e},rV.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=en.extend({},e))}},rV.prototype.upgrade=function(){var e,t;this.storage===en.localStorage?(e=en.cookie.parse(this.name),en.cookie.remove(this.name),en.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===en.cookie&&(t=en.localStorage.parse(this.name),en.localStorage.remove(this.name),t&&this.register_once(t))},rV.prototype.save=function(){this.disabled||this.storage.set(this.name,eP(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},rV.prototype.load_prop=function(e){return this.load(),this.props[e]},rV.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},rV.prototype.clear=function(){this.remove(),this.props={}},rV.prototype.register_once=function(e,t,r){return!!en.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),en.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},rV.prototype.register=function(e,t){return!!en.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),en.extend(this.props,e),this.save(),!0)},rV.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},rV.prototype.update_search_keyword=function(e){this.register(en.info.searchInfo(e))},rV.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:en.info.referringDomain(e)||"$direct"},"")},rV.prototype.get_referrer_info=function(){return en.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},rV.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},rV.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},rV.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},rV.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},rV.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},rV.prototype.get_cross_subdomain=function(){return this.cross_subdomain},rV.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},rV.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),i=t[e],n=this._get_or_create_queue(rS),o=this._get_or_create_queue(rE),s=this._get_or_create_queue(rw),a=this._get_or_create_queue(rx),c=this._get_or_create_queue(rT),u=this._get_or_create_queue(rI,[]),p=this._get_or_create_queue(rC,[]);r===rF?(en.extend(n,i),this._pop_from_people_queue(rx,i),this._pop_from_people_queue(rT,i),this._pop_from_people_queue(rw,i)):r===rD?(en.each(i,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(rw,i)):r===rM?en.each(i,function(e){en.each([n,o,a,c],function(t){e in t&&delete t[e]}),en.each(p,function(t){e in t&&delete t[e]}),s[e]=!0}):r===rR?(en.each(i,function(e,t){t in n?n[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(rw,i)):r===rN?(en.each(i,function(e,t){en.isArray(e)&&(t in c||(c[t]=[]),en.each(e,function(e){en.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(rw,i)):r===rL?(u.push(i),this._pop_from_people_queue(rC,i)):r===rA&&(p.push(i),this._pop_from_people_queue(rw,i)),eo.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),eo.log(t),this.save()},rV.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];en.isUndefined(r)||en.each(t,function(t,i){e===rC||e===rI?en.each(r,function(e){e[i]===t&&delete e[i]}):delete r[i]},this)},rV.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},rV.prototype._get_queue_key=function(e){return e===rS?rF:e===rE?rD:e===rw?rM:e
1===rx?rR:e===rC?rA:e===rI?rL:e===rT?rN:void eo.error("Invalid queue:",e)},rV.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=en.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},rV.prototype.set_event_timer=function(e,t){var r=this.load_prop(rU)||{};r[e]=t,this.props[rU]=r,this.save()},rV.prototype.remove_event_timer=function(e){var t=(this.load_prop(rU)||{})[e];return en.isUndefined(t)||(delete this.props[rU][e],this.save()),t};var rz=function(e,t){throw Error(e+" not available in this build.")},rH="mixpanel",rW="base64",rK="$device:",rG=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,rQ=!rG&&-1===J.indexOf("MSIE")&&-1===J.indexOf("Mozilla"),rY=null;K.sendBeacon&&(rY=function(){return K.sendBeacon.apply(K,arguments)});var rJ={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},rX={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:rJ,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:rW,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:eT,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:eT,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},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:RegExp("^(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,record_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"},rZ=!1,r0=function(){},r1=function(e,t,r){var i,n=r===rH?m:m[r];if(n&&0===g)i=n;else{if(n&&!en.isArray(n))return void eo.error("You have already initialized "+r);i=new r0}if(i._cached_groups={},i._init(e,t,r),i.people=new rq,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var o=en.info.campaignParams(null),s={},a=!1;en.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&i.people.set_once(s)}v.DEBUG=v.DEBUG||i.get_config("debug");var c=0===g?"module":"snippet";return E.dispatchEvent(new E.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:i,source:c,token:e,name:r,info:en.info}})),!en.isUndefined(n)&&en.isArray(n)&&(i._execute_array.call(i.people,n.people),i._execute_array(n)),i};r0.prototype.init=function(e,t,r){if(en.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===rH)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var i=r1(e,t,r);return m[r]=i,i._loaded(),i},r0.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var i={};if("api_payload_format"in t||(t.api_host||rX.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json"),this.hooks={},this.set_config(en.extend({},rX,i,t,{name:r,token:e,callback_fn:(r===rH?r:rH+"."+r)+"._jsc"})),this.recorderManager=new t4({mixpanelInstance:this,getConfigFunc:en.bind(this.get_config,this),setConfigFunc:en.bind(this.set_config,this),getTabIdFunc:en.bind(this.get_tab_id,this),reportErrorFunc:en.bind(this.report_error,this),getDistinctIdFunc:en.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:rz}),this._jsc=eT,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(en.localStorage.is_supported(!0)&&rG){if(this.init_batchers(),rY&&E.addEventListener){var n=en.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);E.addEventListener("pagehide",function(e){e.persisted&&n()}),E.addEventListener("visibilitychange",function(){"hidden"===G.visibilityState&&n()})}}else this._batch_requests=!1,eo.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),en.each(this.get_batcher_configs(),function(e){eo.log("Clearing batch queue "+e.queue_key),en.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new rV(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=en.UUID();this.get_distinct_id()||this.register_once({distinct_id:rK+o,$device_id:o},""),this.flags=new tJ({getFullApiRoute:en.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:en.bind(this.get_config,this),setConfigFunc:en.bind(this.set_config,this),getPropertyFunc:en.bind(this.get_property,this),trackingFunc:en.bind(this.track,this),loadExtraBundle:rz,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+k}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var s=this.get_config("remote_settings_mode");"strict"===s||"fallback"===s?this.__session_recording_init_promise=this._fetch_remote_settings(s).then(en.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording(),this.autocapture=new tR(this),this.autocapture.init()},r0.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))eo.log("Tab ID initialization skipped due to disable_persistence config");
1else if(en.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;(en.sessionStorage.get(r)||!en.sessionStorage.get(t))&&en.sessionStorage.set(t,"$tab-"+en.UUID()),en.sessionStorage.set(r,"1"),this.tab_id=en.sessionStorage.get(t),E.addEventListener("beforeunload",function(){en.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},r0.prototype.get_tab_id=function(){return this.tab_id||null},r0.prototype._check_and_start_session_recording=r_(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),r0.prototype._start_recording_on_event=ec(function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(en.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)},this))}),r0.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},r0.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},r0.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},r0.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},r0.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},r0.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},r0.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},r0.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},r0.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},r0.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=en.info.campaignParams(null);en.each(e,(function(e,t){this.unregister(t)}).bind(this))}},r0.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(G.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(en.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(G.referrer)},r0.prototype._dom_loaded=function(){en.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||en.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},r0.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!rZ)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},r0.prototype._prepare_callback=function(e,t){if(en.isUndefined(e))return null;if(rG)return function(r){e(r,t)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),n=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(n){delete r[i],e(n,t)},n},r0.prototype._send_request=function(e,t,r,i){var n=!0;if(rQ)return this.__request_queue.push(arguments),n;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!i&&(en.isFunction(r)||"string"==typeof r)&&(i=r,r=null),r=en.extend(o,r||{}),rG||(r.method="GET");var a="POST"===r.method,c=rY&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),!rG&&(i?t.callback=i:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=+!!this.get_config("ip"),t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),en.extend(t,this.get_config("api_extra_query_params")),e+="?"+en.HTTPBuildQuery(t);var p=this;if("img"in t){var h=G.createElement("img");h.src=e,G.body.appendChild(h)}else if(c){try{n=rY(e,s)}catch(e){p.report_error(e),n=!1}try{i&&i(+!!n)}catch(e){p.report_error(e)}}else if(rG)try{var l=new XMLHttpRequest;l.open(r.method,e,!0);var _=this.get_config("xhr_headers");
1if(a&&(_["Content-Type"]="application/x-www-form-urlencoded"),en.each(_,function(e,t){l.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==l.timeout){l.timeout=r.timeout_ms;var d=new Date().getTime()}l.withCredentials=!0,l.onreadystatechange=function(){if(4===l.readyState){if(200===l.status){if(i)if(u){try{e=en.JSONDecode(l.responseText)}catch(t){if(p.report_error(t),!r.ignore_json_errors)return;e=l.responseText}i(e)}else i(Number(l.responseText))}else if(t=l.timeout&&!l.status&&new Date().getTime()-d>=l.timeout?"timeout":"Bad HTTP status: "+l.status+" "+l.statusText,p.report_error(t),i)if(u){var e,t,n=l.responseHeaders||{};i({status:0,httpStatusCode:l.status,error:t,retryAfter:n["Retry-After"]})}else i(0)}},l.send(s)}catch(e){p.report_error(e),n=!1}else{var f=G.createElement("script");f.type="text/javascript",f.async=!0,f.defer=!0,f.src=e;var g=G.getElementsByTagName("script")[0];g.parentNode.insertBefore(f,g)}return n},r0.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&(t.set_config({record_sessions_percent:0}),t._remote_settings_strict_disabled=!0)};if(!E.AbortController)return eo.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var i=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,n={$lib_version:v.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=en.HTTPBuildQuery(n),s=new AbortController,a=setTimeout(function(){s.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:s.signal};return E.fetch(i+"?"+o,c).then(function(e){if(clearTimeout(a),!e.ok){eo.critical("Network response was not ok"),r();return}return e.json()}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var i=e.sdk_config.config,n={};en.each(i,function(e,t){rX.hasOwnProperty(t)&&(n[t]=e)}),en.isEmptyObject(n)?(eo.critical("No valid config keys found in remote settings."),r()):t.set_config(n)}else r()}).catch(function(e){clearTimeout(a),eo.critical("Failed to fetch remote settings",e),r()})},r0.prototype._execute_array=function(e){var t,r=[],i=[],n=[];en.each(e,function(e){e&&(t=e[0],en.isArray(t)?n.push(e):"function"==typeof e?e.call(this):en.isArray(e)&&"alias"===t?r.push(e):en.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?n.push(e):i.push(e))},this);var o=function(e,t){en.each(e,function(e){if(en.isArray(e[0])){var r=t;en.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(i,this),o(n,this)},r0.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},r0.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},r0.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=en.bind(function(e){return new rc(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:en.bind(function(t,r,i){var n=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+n[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(i,t))},this),beforeSendHook:en.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:en.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},r0.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,en.each(this.request_batchers,function(e){e.start()}))},r0.prototype.stop_batch_senders=function(){this._batch_requests=!1,en.each(this.request_batchers,function(e){e.stop(),e.clear()})},r0.prototype.push=function(e){this._execute_array([e])},r0.prototype.enable=function(e){var t,r,i,n;if(void 0===e)this._flags.disable_all_events=!1;else{for(i=0,t={},r=[];i<e.length;i++)t[e[i]]=!0;for(n=0;n<this.__disabled_events.length;n++)t[this.__disabled_events[n]]||r.push(this.__disabled_events[n]);this.__disabled_events=r}},r0.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},r0.prototype._encode_data_for_request=function(e){var t=eP(e);return this.get_config("api_payload_format")===rW&&(t=en.base64Encode(t)),{data:t}},r0.prototype._track_or_batch=function(e,t){var r=en.truncate(e.data,255),i=e.endpoint,n=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||eT;var a=!0,c=en.bind(function(){return(!s.skip_hooks&&(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r)?(eo.log("MIXPANEL REQUEST:"),eo.log(r),this._send_request(i,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?n.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},r0.prototype.track=r_(function(e,t,r,i){if(!(r&&r.skip_hooks)){if(null===(n=this._run_hook("before_track",e,t)))return;e=n[0],t=n[1]}i||"function"!=typeof r||(i=r,r=null);var n,o=(r=r||{}).transport;o&&(r.transport=o);var s=r.send_immediately;if("function"!=typeof i&&(i=eT),en.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void i(0);(t=en.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!en.isUndefined(a)){var c=new Date().getTime()-a;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?en.info.marketingParams():{};t=en.extend({},en.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var p=this.get_config("property_blacklist");en.isArray(p)?en.each(p,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+p),this._start_recording_on_event(e,t);var h={event:e,properties:t};return n=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},i),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),n}),r0.prototype.set_group=r_(function(e,t,r){en.isArray(t)||(t=[t]);var i={};return i[e]=t,this.register(i),this.people.set(e,t,r)}),r0.prototype.add_group=r_(function(e,t,r){var i=this.get_property(e),n={};return void 0===i?(n[e]=[t],this.register(n)):-1===i.indexOf(t)&&(i.push(t),n[e]=i,this.register(n)),this.people.union(e,t,r)}),r0.prototype.remove_group=r_(function(e,t,r){var i=this.get_property(e);if(void 0!==i){var n=i.indexOf(t);n>-1&&(i.splice(n,1),this.register({group_key:i})),0===i.length&&this.unregister(e)}return this.people.remove(e,t,r)}),r0.prototype.track_with_groups=r_(function(e,t,r,i){var n=en.extend({},t||{});return en.each(r,function(e,t){null!=e&&(n[t]=e)}),this.track(e,n,i)}),r0.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},r0.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},r0.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),i=this._cached_groups[r];return(void 0===i||i._group_key!==e||i._group_id!==t)&&((i=new rO)._init(this,e,t),this._cached_groups[r]=i),i},r0.prototype.track_pageview=r_(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",i=en.extend(en.info.mpPageViewProperties(),en.info.campaignParams(),en.info.clickParams()),n=en.extend({},i,e);return this.is_recording_heatmap_data()&&(n.$captured_for_heatmap=!0),this.track(r,n)}),r0.prototype.track_links=function(){return this._track_dom.call(this,t8,arguments)},r0.prototype.track_forms=function(){return this._track_dom.call(this,t7,arguments)},r0.prototype.time_event=function(e){en.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var r2={persistent:!0},r3=function(e){var t;return t=en.isObject(e)?e:en.isUndefined(e)?{}:{days:e},en.extend({},r2,t)};r0.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0];var i=r3(t=r[1]);i.persistent?this.persistence.register(e,i.days):en.extend(this.unpersisted_superprops,e)}},r0.prototype.register_once=function(e,t,r){var i=this._run_hook("before_register_once",e,t,r);if(null!==i){e=i[0],t=i[1];var n=r3(r=i[2]);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),en.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},r0.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);
1null!==r&&(e=r[0],(t=r3(t=r[1])).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},r0.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},r0.prototype.identify=function(e,t,r,i,n,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return -1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(rK))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:u},""),e!==u&&e!==this.get_property(rB)&&(this.unregister(rB),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,i,n,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch(function(){eo.error("[flags] Error fetching flags during identify")})},r0.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=en.UUID();this.register_once({distinct_id:rK+e,$device_id:e},""),this._check_and_start_session_recording(),this.flags.reset()},r0.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},r0.prototype.alias=function(e,t){if(e===this.get_property(r$))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(en.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(rB,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},r0.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},r0.prototype.set_config=function(e){en.isObject(e)&&(en.extend(this.config,e),e.batch_size&&en.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),v.DEBUG=v.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),en.isObject(e.hooks)&&(this.hooks={},en.each(e.hooks,function(e,t){if(en.isFunction(e))this.hooks[t]=[e];else if(en.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)en.isFunction(e[r])||eo.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else eo.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},r0.prototype.get_config=function(e){return this.config[e]},r0.prototype._run_hook=function(e){var t=V.call(arguments,1);return en.each(this.hooks[e],function(r){if(null===t)return null;var i=r.apply(this,t);void 0===i?(this.report_error(e+" hook did not return a valid value"),t=null):(en.isArray(i)||(i=[i]),t.splice.apply(t,[0,i.length].concat(i)))},this),t},r0.prototype.get_property=function(e){return this.persistence.load_prop([e])},r0.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},r0.prototype.toString=function(){var e=this.get_config("name");return e!==rH&&(e=rH+"."+e),e},r0.prototype._event_is_disabled=function(e){return en.isBlockedUA(J)||this._flags.disable_all_events||en.include(this.__disabled_events,e)},r0.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&en.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||en.cookie.get("mp_optout"))&&(en.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},r0.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},r0.prototype._gdpr_call_func=function(e,t){return t=en.extend({track:en.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),en.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie
1:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},r0.prototype.opt_in_tracking=function(e){e=en.extend({enable_persistence:!0},e),this._gdpr_call_func(ru,e),this._gdpr_update_persistence(e)},r0.prototype.opt_out_tracking=function(e){(e=en.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(rp,e),this._gdpr_update_persistence(e)},r0.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(rh,e)},r0.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(rl,e)},r0.prototype.clear_opt_in_out_tracking=function(e){e=en.extend({enable_persistence:!0},e),this._gdpr_call_func(rg,e),this._gdpr_update_persistence(e)},r0.prototype.report_error=function(e,t){eo.error.apply(eo.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){eo.error(e)}},r0.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},r0.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):eo.log("remove_hook failed. Matching hook was not found"))},r0.prototype.init=r0.prototype.init,r0.prototype.reset=r0.prototype.reset,r0.prototype.enable=r0.prototype.enable,r0.prototype.disable=r0.prototype.disable,r0.prototype.time_event=r0.prototype.time_event,r0.prototype.track=r0.prototype.track,r0.prototype.track_links=r0.prototype.track_links,r0.prototype.track_forms=r0.prototype.track_forms,r0.prototype.track_pageview=r
10.prototype.track_pageview,r0.prototype.register=r0.prototype.register,r0.prototype.register_once=r0.prototype.register_once,r0.prototype.unregister=r0.prototype.unregister,r0.prototype.identify=r0.prototype.identify,r0.prototype.alias=r0.prototype.alias,r0.prototype.name_tag=r0.prototype.name_tag,r0.prototype.set_config=r0.prototype.set_config,r0.prototype.get_config=r0.prototype.get_config,r0.prototype.get_api_host=r0.prototype.get_api_host,r0.prototype.get_property=r0.prototype.get_property,r0.prototype.get_distinct_id=r0.prototype.get_distinct_id,r0.prototype.toString=r0.prototype.toString,r0.prototype.opt_out_tracking=r0.prototype.opt_out_tracking,r0.prototype.opt_in_tracking=r0.prototype.opt_in_tracking,r0.prototype.has_opted_out_tracking=r0.prototype.has_opted_out_tracking,r0.prototype.has_opted_in_tracking=r0.prototype.has_opted_in_tracking,r0.prototype.clear_opt_in_out_tracking=r0.prototype.clear_opt_in_out_tracking,r0.prototype.get_group=r0.prototype.get_group,r0.prototype.set_group=r0.prototype.set_group,r0.prototype.add_group=r0.prototype.add_group,r0.prototype.remove_group=r0.prototype.remove_group,r0.prototype.add_hook=r0.prototype.add_hook,r0.prototype.remove_hook=r0.prototype.remove_hook,r0.prototype.track_with_groups=r0.prototype.track_with_groups,r0.prototype.start_batch_senders=r0.prototype.start_batch_senders,r0.prototype.stop_batch_senders=r0.prototype.stop_batch_senders,r0.prototype.start_session_recording=r0.prototype.start_session_recording,r0.prototype.stop_session_recording=r0.prototype.stop_session_recording,r0.prototype.pause_session_recording=r0.prototype.pause_session_recording,r0.prototype.resume_session_recording=r0.prototype.resume_session_recording,r0.prototype.get_session_recording_properties=r0.prototype.get_session_recording_properties,r0.prototype.get_session_replay_url=r0.prototype.get_session_replay_url,r0.prototype.get_tab_id=r0.prototype.get_tab_id,r0.prototype.DEFAULT_API_ROUTES=rJ,r0.prototype.__get_recorder=r0.prototype.__get_recorder,r0.prototype.__get_recording_init_promise=r0.prototype.__get_recording_init_promise,rV.prototype.properties=rV.prototype.properties,rV.prototype.update_search_keyword=rV.prototype.update_search_keyword,rV.prototype.update_referrer_info=rV.prototype.update_referrer_info,rV.prototype.get_cross_subdomain=rV.prototype.get_cross_subdomain,rV.prototype.clear=rV.prototype.clear;var r6={},r5=function(){en.each(r6,function(e,t){t!==rH&&(m[t]=e)}),m._=en};rz=function(e,t){throw Error("This build of Mixpanel only includes core SDK functionality, could not load "+e)},g=0,(m=new r0).init=function(e,t,r){if(r)return m[r]||(m[r]=r6[r]=r1(e,t,r),m[r]._loaded()),m[r];var i=m;r6[rH]?i=r6[rH]:e&&((i=r1(e,t,rH))._loaded(),r6[rH]=i),m=i,1===g&&(E[rH]=m),r5()},m.init(),function(){function e(){e.done||(e.done=!0,rZ=!0,rQ=!1,en.each(r6,function(e){e._dom_loaded()}))}if(G.addEventListener)"complete"===G.readyState?e():G.addEventListener("DOMContentLoaded",e,!1);else if(G.attachEvent){G.attachEvent("onreadystatechange",e);var t=!1;try{t=null===E.frameElement}catch(e){}G.documentElement.doScroll&&t&&function t(){try{G.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}en.register_event(E,"load",e,!0)}(),e.exports=m});
2//# sourceMappingURL=mixpanel-core.cjs.162e65b1.js.map

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.