1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9933],{14679:(e,t,r)=>{let i,o,n,s,a,c;function u(e){let t=null==e?void 0:e.host;return(null==t?void 0:t.shadowRoot)===e}function l(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function p(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,h).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function h(e){let t;if("styleSheet"in e)try{t=p(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}r.d(t,{A:()=>rA}),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ei||(ei={}));class d{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return -1;let r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function f({element:e,maskInputOptions:t,tagName:r,type:i,value:o,maskInputFn:n}){let s=o||"",a=i&&_(i);return(t[r.toLowerCase()]||a&&t[a])&&(s=n?n(s,e):"*".repeat(s.length)),s}function _(e){return e.toLowerCase()}let g="__rrweb_original__";function m(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?_(t):null}function y(e,t){var r;let i;try{i=new URL(e,null!=t?t:window.location.href)}catch(e){return null}let o=i.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(r=null==o?void 0:o[1])?r:null}let v=1,b=RegExp("[^a-z0-9-_:]");function S(){return v++}let k=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,w=/^(?:[a-z+]+:)?\/\//i,M=/^www\..*/i,I=/^(data:)([^,]*),(.*)/i;function E(e,t){return(e||"").replace(k,(e,r,i,o,n,s)=>{let a=i||n||s,c=r||o||"";if(!a)return e;if(w.test(a)||M.test(a)||I.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${c})`;let u=t.split("/"),l=a.split("/");for(let e of(u.pop(),l))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${c}${u.join("/")}${c})`})}let x=/^[^ \t\n\r\u000c]+/,C=/^[, \t\n\r\u000c]+/;function O(e,t){if(!t||""===t.trim())return t;let r=e.createElement("a");return r.href=t,r.href}function T(){let e=document.createElement("a");return e.href="",e.href}function R(e,t,r,i){if(!i)return i;if("src"===r||"href"===r&&("use"!==t||"#"!==i[0])||"xlink:href"===r&&"#"!==i[0])return O(e,i);if("background"===r&&("table"===t||"td"===t||"th"===t))return O(e,i);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function i(e){let i,o=e.exec(t.substring(r));return o?(i=o[0],r+=i.length,i):""}let o=[];for(;i(C),!(r>=t.length);){let n=i(x);if(","===n.slice(-1))n=O(e,n.substring(0,n.length-1)),o.push(n);else{let i="";n=O(e,n);let s=!1;for(;;){let e=t.charAt(r);if(""===e){o.push((n+i).trim());break}if(s)")"===e&&(s=!1);else if(","===e){r+=1,o.push((n+i).trim());break}else"("===e&&(s=!0);i+=e,r+=1}}}return o.join(", ")}(e,i);if("style"===r)return E(i,T());else if("object"===t&&"data"===r)return O(e,i);return i}function D(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function N(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&N(e.parentNode,t,r);for(let r=e.classList.length;r--;){let i=e.classList[r];if(t.test(i))return!0}return!!r&&N(e.parentNode,t,r)}
1function A(e,t,r,i){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(i){if(o.closest(`.${t}`))return!0}else if(o.classList.contains(t))return!0}else if(N(o,t,i))return!0;if(r){if(i){if(o.closest(r))return!0}else if(o.matches(r))return!0}}catch(e){}return!1}function q(e){return null==e?"":e.toLowerCase()}function L(e,t){let r,{doc:n,mirror:s,blockClass:a,blockSelector:c,maskTextClass:h,maskTextSelector:d,skipChild:v=!1,inlineStylesheet:k=!0,maskInputOptions:w={},maskTextFn:M,maskInputFn:I,slimDOMOptions:x,dataURLOptions:C={},inlineImages:O=!1,recordCanvas:N=!1,onSerialize:P,onIframeLoad:F,iframeLoadTimeout:U=5e3,onStylesheetLoad:j,stylesheetLoadTimeout:$=5e3,keepIframeSrcFn:B=()=>!1,newlyAddedElement:z=!1}=t,{needsMask:W}=t,{preserveWhiteSpace:V=!0}=t;!W&&e.childNodes&&(W=A(e,h,d,void 0===W));let H=function(e,t){let{doc:r,mirror:n,blockClass:s,blockSelector:a,needsMask:c,inlineStylesheet:u,maskInputOptions:l={},maskTextFn:h,maskInputFn:d,dataURLOptions:y={},inlineImages:v,recordCanvas:S,keepIframeSrcFn:k,newlyAddedElement:w=!1}=t,M=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:ei.Document,childNodes:[],compatMode:e.compatMode};return{type:ei.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ei.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:M};case e.ELEMENT_NODE:return function(e,t){let r,{doc:n,blockClass:s,blockSelector:a,inlineStylesheet:c,maskInputOptions:u={},maskInputFn:l,dataURLOptions:h={},inlineImages:d,recordCanvas:y,keepIframeSrcFn:v,newlyAddedElement:S=!1,rootId:k}=t,w=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let i=e.classList[r];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,s,a),M=function(e){if(e instanceof HTMLFormElement)return"form";let t=_(e.tagName);return b.test(t)?"div":t}(e),I={},x=e.attributes.length;for(let t=0;t<x;t++){let r=e.attributes[t];D(M,r.name,r.value)||(I[r.name]=R(n,M,_(r.name),r.value))}if("link"===M&&c){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=p(t)),r&&(delete I.rel,delete I.href,I._cssText=E(r,t.href))}if("style"===M&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=p(e.sheet);t&&(I._cssText=E(t,T()))}if("input"===M||"textarea"===M||"select"===M){let t=e.value,r=e.checked;"radio"!==I.type&&"checkbox"!==I.type&&"submit"!==I.type&&"button"!==I.type&&t?I.value=f({element:e,type:m(e),tagName:M,value:t,maskInputOptions:u,maskInputFn:l}):r&&(I.checked=r)}if("option"===M&&(e.selected&&!u.select?I.selected=!0:delete I.selected),"canvas"===M&&y){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let i=0;i<e.height;i+=50){let o=t.getImageData;if(new Uint32Array((g in o?o[g]:o).call(t,r,i,Math.min(50,e.width-r),Math.min(50,e.height-i)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(I.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){let t=e.toDataURL(h.type,h.quality),r=document.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(h.type,h.quality)&&(I.rr_dataURL=t)}}if("img"===M&&d){i||(o=(i=n.createElement("canvas")).getContext("2d"));let t=e.crossOrigin;e.crossOrigin="anonymous";let r=()=>{e.removeEventListener("load",r);try{i.width=e.naturalWidth,i.height=e.naturalHeight,o.drawImage(e,0,0),I.rr_dataURL=i.toDataURL(h.type,h.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}t?I.crossOrigin=t:e.removeAttribute("crossorigin")};e.complete&&0!==e.naturalWidth?r():e.addEventListener("load",r)}if("audio"===M||"video"===M){let t=I;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(!S&&(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),w){let{width:t,height:r}=e.getBoundingClientRect();I={class:I.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==M||v(I.src)||(e.contentDocument||(I.rr_src=I.src),delete I.src);try{customElements.get(M)&&(r=!0)}catch(e){}return{type:ei.Element,tagName:M,attributes:I,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:w,rootId:k,isCustom:r}}(e,{doc:r,blockClass:s,blockSelector:a,inlineStylesheet:u,maskInputOptions:l,maskInputFn:d,dataURLOptions:y,inlineImages:v,recordCanvas:S,keepIframeSrcFn:k,newlyAddedElement:w,rootId:M});case e.TEXT_NODE:return function(e,t){var r;let{needsMask:i,maskTextFn:o,rootId:n}=t,s=e.parentNode&&e.parentNode.tagName,a=e.textContent,c="STYLE"===s||void 0,u="SCRIPT"===s||void 0;if(c&&a){try{e.nextSibling||e.previousSibling||(null==(r=e.parentNode.sheet)?void 0:r.cssRules)&&(a=p(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}a=E(a,T())}return u&&(a="SCRIPT_PLACEHOLDER"),!c&&!u&&a&&i&&(a=o?o(a,e.parentElement):a.replace(/[\S]/g,"*")),{type:ei.Text,textContent:a||"",isStyle:c,rootId:n}}
1(e,{needsMask:c,maskTextFn:h,rootId:M});case e.CDATA_SECTION_NODE:return{type:ei.CDATA,textContent:"",rootId:M};case e.COMMENT_NODE:return{type:ei.Comment,textContent:e.textContent||"",rootId:M};default:return!1}}(e,{doc:n,mirror:s,blockClass:a,blockSelector:c,needsMask:W,inlineStylesheet:k,maskInputOptions:w,maskTextFn:M,maskInputFn:I,dataURLOptions:C,inlineImages:O,recordCanvas:N,keepIframeSrcFn:B,newlyAddedElement:z});if(!H)return console.warn(e,"not serialized"),null;r=s.hasNode(e)?s.getId(e):!function(e,t){if(t.comment&&e.type===ei.Comment)return!0;if(e.type===ei.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===y(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===q(e.attributes.name)||"icon"===q(e.attributes.rel)||"apple-touch-icon"===q(e.attributes.rel)||"shortcut icon"===q(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===q(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===q(e.attributes.name)||"googlebot"===q(e.attributes.name)||"bingbot"===q(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===q(e.attributes.name)||"generator"===q(e.attributes.name)||"framework"===q(e.attributes.name)||"publisher"===q(e.attributes.name)||"progid"===q(e.attributes.name)||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===q(e.attributes.name)||"yandex-verification"===q(e.attributes.name)||"csrf-token"===q(e.attributes.name)||"p:domain_verify"===q(e.attributes.name)||"verify-v1"===q(e.attributes.name)||"verification"===q(e.attributes.name)||"shopify-checkout-api-token"===q(e.attributes.name)))return!0}}return!1}(H,x)&&(V||H.type!==ei.Text||H.isStyle||H.textContent.replace(/^\s+|\s+$/gm,"").length)?S():-2;let G=Object.assign(H,{id:r});if(s.add(e,G),-2===r)return null;P&&P(e);let J=!v;if(G.type===ei.Element){J=J&&!G.needBlock,delete G.needBlock;let t=e.shadowRoot;t&&l(t)&&(G.isShadowHost=!0)}if((G.type===ei.Document||G.type===ei.Element)&&J){x.headWhitespace&&G.type===ei.Element&&"head"===G.tagName&&(V=!1);let t={doc:n,mirror:s,blockClass:a,blockSelector:c,needsMask:W,maskTextClass:h,maskTextSelector:d,skipChild:v,inlineStylesheet:k,maskInputOptions:w,maskTextFn:M,maskInputFn:I,slimDOMOptions:x,dataURLOptions:C,inlineImages:O,recordCanvas:N,preserveWhiteSpace:V,onSerialize:P,onIframeLoad:F,iframeLoadTimeout:U,onStylesheetLoad:j,stylesheetLoadTimeout:$,keepIframeSrcFn:B};if(G.type===ei.Element&&"textarea"===G.tagName&&void 0!==G.attributes.value);else for(let r of Array.from(e.childNodes)){let e=L(r,t);e&&G.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let i=L(r,t);i&&(l(e.shadowRoot)&&(i.isShadow=!0),G.childNodes.push(i))}}return e.parentNode&&u(e.parentNode)&&l(e.parentNode)&&(G.isShadow=!0),G.type===ei.Element&&"iframe"===G.tagName&&function(e,t,r){let i,o=e.contentWindow;if(!o)return;let n=!1;try{i=o.document.readyState}catch(e){return}if("complete"!==i){let i=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),n=!0,t()});return}let s="about:blank";if(o.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&F){let r=L(t,{doc:t,mirror:s,blockClass:a,blockSelector:c,needsMask:W,maskTextClass:h,maskTextSelector:d,skipChild:!1,inlineStylesheet:k,maskInputOptions:w,maskTextFn:M,maskInputFn:I,slimDOMOptions:x,dataURLOptions:C,inl
1ineImages:O,recordCanvas:N,preserveWhiteSpace:V,onSerialize:P,onIframeLoad:F,iframeLoadTimeout:U,onStylesheetLoad:j,stylesheetLoadTimeout:$,keepIframeSrcFn:B});r&&F(e,r)}},U),G.type===ei.Element&&"link"===G.tagName&&"string"==typeof G.attributes.rel&&("stylesheet"===G.attributes.rel||"preload"===G.attributes.rel&&"string"==typeof G.attributes.href&&"css"===y(G.attributes.href))&&function(e,t,r){let i,o=!1;try{i=e.sheet}catch(e){return}if(i)return;let n=setTimeout(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{clearTimeout(n),o=!0,t()})}(e,()=>{if(j){let t=L(e,{doc:n,mirror:s,blockClass:a,blockSelector:c,needsMask:W,maskTextClass:h,maskTextSelector:d,skipChild:!1,inlineStylesheet:k,maskInputOptions:w,maskTextFn:M,maskInputFn:I,slimDOMOptions:x,dataURLOptions:C,inlineImages:O,recordCanvas:N,preserveWhiteSpace:V,onSerialize:P,onIframeLoad:F,iframeLoadTimeout:U,onStylesheetLoad:j,stylesheetLoadTimeout:$,keepIframeSrcFn:B});t&&j(e,t)}},$),G}function P(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}let F="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",U={map:{},getId:()=>(console.error(F),-1),getNode:()=>(console.error(F),null),removeNodeFromMap(){console.error(F)},has:()=>(console.error(F),!1),reset(){console.error(F)}};function j(e,t,r={}){let i=null,o=0;return function(...n){let s=Date.now();o||!1!==r.leading||(o=s);let a=t-(s-o),c=this;a<=0||a>t?(i&&(clearTimeout(i),i=null),o=s,e.apply(c,n)):i||!1===r.trailing||(i=setTimeout(()=>{o=!1===r.leading?0:Date.now(),i=null,e.apply(c,n)},a))}}function $(e,t,r,i,o=window){let n=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,i?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),n&&n.set&&n.set.call(this,e)}}),()=>$(e,t,n||{},!0)}function B(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],o=r(i);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=o,()=>{e[t]=i}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(U=new Proxy(U,{get:(e,t,r)=>("map"===t&&console.error(F),Reflect.get(e,t,r))}));let z=Date.now;function W(e){var t,r,i,o,n,s;let a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null==(r=null==(t=null==a?void 0:a.body)?void 0:t.parentElement)?void 0:r.scrollLeft)||(null==(i=null==a?void 0:a.body)?void 0:i.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(n=null==(o=null==a?void 0:a.body)?void 0:o.parentElement)?void 0:n.scrollTop)||(null==(s=null==a?void 0:a.body)?void 0:s.scrollTop)||0}}function V(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function H(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function G(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function J(e,t,r,i){if(!e)return!1;let o=G(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t)||i&&null!==o.closest("."+t))return!0}else if(N(o,t,i))return!0}catch(e){}return!!(r&&(o.matches(r)||i&&null!==o.closest(r)))||!1}function Q(e,t){return -2===t.getId(e)}function K(e){return!!e.changedTouches}function X(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function Y(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Z(e){return!!(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(z=()=>new Date().getTime());class ee{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}
1has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function et(e){var t,r;let i=null;return(null==(r=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(i=e.getRootNode().host),i}function er(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=et(r);)r=t;return r}(e);return t.contains(r)}(e))}var ei,eo,en,es,ea=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(ea||{}),ec=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ec||{}),eu=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(eu||{}),el=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(el||{}),ep=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(ep||{});class eh{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let ed=(e,t)=>`${e}@${t}`;class ef{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new eh,i=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},o=o=>{if(!o.parentNode||!er(o)||"TEXTAREA"===o.parentNode.tagName)return;let n=u(o.parentNode)?this.mirror.getId(et(o)):this.mirror.getId(o.parentNode),s=i(o);if(-1===n||-1===s)return r.addNode(o);let a=L(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inl
1ineImages,onSerialize:e=>{X(e,this.mirror)&&this.iframeManager.addIframe(e),Y(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Z(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:n,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!eg(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&o(e);for(let e of this.addedSet)em(this.droppedSet,e)||eg(this.removes,e,this.mirror)?em(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let n=null;for(;r.length;){let e=null;if(n){let t=this.mirror.getId(n.value.parentNode),r=i(n.value);-1!==t&&-1!==r&&(e=n)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===i(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let i=t.parentNode.host;if(-1!==this.mirror.getId(i)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}n=e.previous,r.removeNode(e.value),o(e.value)}let s={texts:this.texts.map(e=>{let t=e.node;return t.parentNode&&"TEXTAREA"===t.parentNode.tagName&&this.genTextAreaValueMutation(t.parentNode),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),i=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+i).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.genTextAreaValueMutation=e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(e.childNodes,e=>e.textContent||"").join("")},this.processMutation=e=>{if(!Q(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;J(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:A(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,G(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,i=e.target.getAttribute(r);if("value"===r){let e=m(t);i=f({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:i,maskInputFn:this.maskInputFn})}if(J(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(i))if(t.contentDocument)return;else r="rr_src";if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!D(t.tagName,r)&&(o.attributes[r]=R(this.doc,_(t.tagName),_(r),i),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let i of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(i),n=t.style.getPropertyPriority(i);e!==r.style.getPropertyValue(i)||n!==r.style.getPropertyPriority(i)?""===n?o.styleDiff[i]=e:o.styleDiff[i]=[e,n]:o._unchangedStyles[i]=[e,n]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(J(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);
1e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),i=u(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);J(e.target,this.blockClass,this.blockSelector,!1)||Q(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(e_(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(u(t))return!1;let i=r.getId(t);return!r.has(i)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ed(r,i)]?e_(this.movedSet,t):this.removes.push({parentId:i,id:r,isShadow:!!(u(e.target)&&l(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(Q(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[ed(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!J(e,this.blockClass,this.blockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),Z(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function e_(e,t){e.delete(t),t.childNodes.forEach(t=>e_(e,t))}function eg(e,t,r){return 0!==e.length&&function e(t,r,i){let{parentNode:o}=r;if(!o)return!1;let n=i.getId(o);return!!t.some(e=>e.id===n)||e(t,o,i)}(e,t,r)}function em(e,t){return 0!==e.size&&function e(t,r){let{parentNode:i}=r;return!!i&&(!!t.has(i)||e(t,i))}(e,t)}let ey=e=>n?(...t)=>{try{return e(...t)}catch(e){if(n&&!0===n(e))return;throw e}}:e,ev=[];function eb(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function eS(e,t){var r,i;let o=new ef;ev.push(o),o.init(e);let n=window.MutationObserver||window.__rrMutationObserver,s=null==(i=null==(r=null==window?void 0:window.Zone)?void 0:r.__symbol__)?void 0:i.call(r,"MutationObserver");s&&window[s]&&(n=window[s]);let a=new n(ey(o.processMutations.bind(o)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function ek({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:o,sampling:n}){return P("scroll",ey(j(ey(n=>{let s=eb(n);if(!s||J(s,i,o,!0))return;let a=r.getId(s);if(s===t&&t.defaultView){let r=W(t.defaultView);e({id:a,x:r.left,y:r.top})}else e({id:a,x:s.scrollLeft,y:s.scrollTop})}),n.scroll||100)),t)}let ew=["INPUT","TEXTAREA","SELECT"],eM=new WeakMap;function eI(e){var t=[];if(eO("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||eO("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||eO("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||eO("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function eE(e,t,r){let i,o;return e?(e.ownerNode?i=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:i}):{}}function ex({mirror:e,stylesheetManager:t},r){var i,o,n;let s=null;s="#document"===r.nodeName?e.getId(r):e.getId(r.host);let a="#document"===r.nodeName?null==(i=r.defaultView)?void 0:i.Document:null==(n=null==(o=r.ownerDocument)?void 0:o.defaultView)?void 0:n.ShadowRoot,c=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&a&&c?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var e;return null==(e=c.get)?void 0:e.call(this)},set(e){var r;let i=null==(r=c.set)?void 0:r.call(this,e);if(null!==s&&-1!==s)try{t.adoptStyleSheets(e,s)}catch(e){}return i}}),ey(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):()=>{}}function eC(e,t={}){let r,i=e.doc.defaultView;if(!i)return()=>{};
1let{mutationCb:o,mousemoveCb:n,mouseInteractionCb:s,scrollCb:a,viewportResizeCb:c,inputCb:u,mediaInteractionCb:l,styleSheetRuleCb:p,styleDeclarationCb:h,canvasMutationCb:d,fontCb:g,selectionCb:y,customElementCb:v}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),o(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),n(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),s(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),a(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),c(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),u(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),p(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),h(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),g(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),y(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),v(...e)},e.recordDOM&&(r=eS(e,e.doc));let b=function({mousemoveCb:e,sampling:t,doc:r,mirror:i}){let o;if(!1===t.mousemove)return()=>{};let n="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],c=j(ey(t=>{let r=Date.now()-o;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],o=null}),s),u=ey(j(ey(e=>{let t=eb(e),{clientX:r,clientY:n}=K(e)?e.changedTouches[0]:e;o||(o=z()),a.push({x:r,y:n,id:i.getId(t),timeOffset:z()-o}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?ec.Drag:e instanceof MouseEvent?ec.MouseMove:ec.TouchMove)}),n,{trailing:!1})),l=[P("mousemove",u,r),P("touchmove",u,r),P("drag",u,r)];return ey(()=>{l.forEach(e=>e())})}(e),S=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:o,sampling:n}){if(!1===n.mouseInteraction)return()=>{};let s=!0===n.mouseInteraction||void 0===n.mouseInteraction?{}:n.mouseInteraction,a=[],c=null;return Object.keys(eu).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(n=>{let s=_(n),u=t=>{let s=eb(t);if(J(s,i,o,!0))return;let a=null,u=n;if("pointerType"in t){switch(t.pointerType){case"mouse":a=el.Mouse;break;case"touch":a=el.Touch;break;case"pen":a=el.Pen}a===el.Touch?eu[n]===eu.MouseDown?u="TouchStart":eu[n]===eu.MouseUp&&(u="TouchEnd"):el.Pen}else K(t)&&(a=el.Touch);null!==a?(c=a,(u.startsWith("Touch")&&a===el.Touch||u.startsWith("Mouse")&&a===el.Mouse)&&(a=null)):eu[n]===eu.Click&&(a=c,c=null);let l=K(t)?t.changedTouches[0]:t;if(!l)return;let p=r.getId(s),{clientX:h,clientY:d}=l;ey(e)(Object.assign({type:eu[u],id:p,x:h,y:d},null!==a&&{pointerType:a}))};if(window.PointerEvent)switch(eu[n]){case eu.MouseDown:case eu.MouseUp:s=s.replace("mouse","pointer");break;case eu.TouchStart:case eu.TouchEnd:return}a.push(P(s,u,t))}),ey(()=>{a.forEach(e=>e())})}(e),k=ek(e),w=function({viewportResizeCb:e},{win:t}){let r=-1,i=-1;return P("resize",ey(j(ey(()=>{let t=V(),o=H();(r!==t||i!==o)&&(e({width:Number(o),height:Number(t)}),r=t,i=o)}),200)),t)}(e,{win:i}),M=function({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:o,ignoreClass:n,ignoreSelector:s,maskInputOptions:a,maskInputFn:c,sampling:u,userTriggeredOnInput:l}){function p(e){let r=eb(e),u=e.isTrusted,p=r&&r.tagName;if(r&&"OPTION"===p&&(r=r.parentElement),!r||!p||0>ew.indexOf(p)||J(r,i,o,!0)||r.classList.contains(n)||s&&r.matches(s))return;let d=r.value,_=!1,g=m(r)||"";"radio"===g||"checkbox"===g?_=r.checked:(a[p.toLowerCase()]||a[g])&&(d=f({element:r,maskInputOptions:a,tagName:p,type:g,value:d,maskInputFn:c})),h(r,l?{text:d,isChecked:_,userTriggered:u}:{text:d,isChecked:_});let y=r.name;"radio"===g&&y&&_&&t.querySelectorAll(`input[type="radio"][name="${y}"]`).forEach(e=>{if(e!==r){let t=e.value;h(e,l?{text:t,isChecked:!_,userTriggered:!1}:{text:t,isChecked:!_})}})}function h(t,i){let o=eM.get(t);if(!o||o.text!==i.text||o.isChecked!==i.isChecked){eM.set(t,i);let o=r.getId(t);ey(e)(Object.assign(Object.assign({},i),{id:o}))}}let d=("last"===u.input?["change"]:["input","change"]).map(e=>P(e,ey(p),t)),_=t.defaultView;if(!_)return()=>
1{d.forEach(e=>e())};let g=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),y=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&d.push(...y.map(e=>$(e[0],e[1],{set(){ey(p)({target:this,isTrusted:!1})}},!1,_))),ey(()=>{d.forEach(e=>e())})}(e),I=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:o,doc:n}){let s=ey(n=>j(ey(o=>{let s=eb(o);if(!s||J(s,t,r,!0))return;let{currentTime:a,volume:c,muted:u,playbackRate:l,loop:p}=s;e({type:n,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:p})}),o.media||500)),a=[P("play",s(0),n),P("pause",s(1),n),P("seeked",s(2),n),P("volumechange",s(3),n),P("ratechange",s(4),n)];return ey(()=>{a.forEach(e=>e())})}(e),E=()=>{},x=()=>{},C=()=>{},O=()=>{};e.recordDOM&&(E=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){let o,n;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:ey((i,o,n)=>{let[s,a]=n,{id:c,styleId:u}=eE(o,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:a}]}),i.apply(o,n)})});let a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:ey((i,o,n)=>{let[s]=n,{id:a,styleId:c}=eE(o,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),i.apply(o,n)})}),i.CSSStyleSheet.prototype.replace&&(o=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:ey((i,o,n)=>{let[s]=n,{id:a,styleId:c}=eE(o,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),i.apply(o,n)})})),i.CSSStyleSheet.prototype.replaceSync&&(n=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(n,{apply:ey((i,o,n)=>{let[s]=n,{id:a,styleId:c}=eE(o,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),i.apply(o,n)})}));let c={};eT("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(eT("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),eT("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),eT("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));let u={};return Object.entries(c).forEach(([i,o])=>{u[i]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(u[i].insertRule,{apply:ey((i,o,n)=>{let[s,a]=n,{id:c,styleId:u}=eE(o.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:[...eI(o),a||0]}]}),i.apply(o,n)})}),o.prototype.deleteRule=new Proxy(u[i].deleteRule,{apply:ey((i,o,n)=>{let[s]=n,{id:a,styleId:c}=eE(o.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...eI(o),s]}]}),i.apply(o,n)})})}),ey(()=>{i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=a,o&&(i.CSSStyleSheet.prototype.replace=o),n&&(i.CSSStyleSheet.prototype.replaceSync=n),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:i}),x=ex(e,e.doc),C=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:o}){let n=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:ey((o,s,a)=>{var c;let[u,l,p]=a;if(r.has(u))return n.apply(s,[u,l,p]);let{id:h,styleId:d}=eE(null==(c=s.parentRule)?void 0:c.parentStyleSheet,t,i.styleMirror);return(h&&-1!==h||d&&-1!==d)&&e({id:h,styleId:d,set:{property:u,value:l,priority:p},index:eI(s.parentRule)}),o.apply(s,a)})});let s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:ey((o,n,a)=>{var c;let[u]=a;if(r.has(u))return s.apply(n,[u]);let{id:l,styleId:p}=eE(null==(c=n.parentRule)?void 0:c.parentStyleSheet,t,i.styleMirror);return(l&&-1!==l||p&&-1!==p)&&e({id:l,styleId:p,remove:{property:u},index:eI(n.parentRule)}),o.apply(n,a)})}),ey(()=>{o.CSSStyleDeclaration.prototype.setProperty=n,o.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:i}),e.collectFonts&&(O=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],o=new WeakMap,n=r.FontFace;r.FontFace=function(e,t,r){let i=new n(e,t,r);return o.set(i,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};let s=B(t.fonts,"add",function(t){return function(r){return setTimeout(ey(()=>
1{let t=o.get(r);t&&(e(t),o.delete(r))}),0),t.apply(this,[r])}});return i.push(()=>{r.FontFace=n}),i.push(s),ey(()=>{i.forEach(e=>e())})}(e)));let T=function(e){let{doc:t,mirror:r,blockClass:i,blockSelector:o,selectionCb:n}=e,s=!0,a=ey(()=>{let e=t.getSelection();if(!e||s&&(null==e?void 0:e.isCollapsed))return;s=e.isCollapsed||!1;let a=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:n,startOffset:s,endContainer:c,endOffset:u}=e.getRangeAt(t);J(n,i,o,!0)||J(c,i,o,!0)||a.push({start:r.getId(n),startOffset:s,end:r.getId(c),endOffset:u})}n({ranges:a})});return a(),P("selectionchange",a)}(e),R=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?B(r.customElements,"define",function(e){return function(r,i,o){try{t({define:{name:r}})}catch(e){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,i,o])}}):()=>{}}(e),D=[];for(let t of e.plugins)D.push(t.observer(t.callback,i,t.options));return ey(()=>{ev.forEach(e=>e.reset()),null==r||r.disconnect(),b(),S(),k(),w(),M(),I(),E(),x(),C(),O(),T(),R(),D.forEach(e=>e())})}function eO(e){return void 0!==window[e]}function eT(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class eR{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,i){let o=r||this.getIdToRemoteIdMap(e),n=i||this.getRemoteIdToIdMap(e),s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),n.set(s,t)),s}getIds(e,t){let r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,i))}getRemoteId(e,t,r){let i=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let o=i.get(t);return o||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class eD{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new eR(S),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new eR(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null==(r=this.loadListener)||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case ea.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:ea.IncrementalSnapshot,data:{source:ec.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ea.Meta:case ea.Load:case ea.DomContentLoaded:break;case ea.Plugin:return t;case ea.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case ea.IncrementalSnapshot:switch(t.data.source){case ec.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
1),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case ec.Drag:case ec.TouchMove:case ec.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case ec.ViewportResize:return!1;case ec.MediaInteraction:case ec.MouseInteraction:case ec.Scroll:case ec.CanvasMutation:case ec.Input:return this.replaceIds(t.data,e,["id"]),t;case ec.StyleSheetRule:case ec.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ec.Font:return t;case ec.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case ec.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,i){for(let o of i)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(r,t[o]):t[o]=e.getId(r,t[o]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===ei.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class eN{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!l(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let r=eS(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(ek(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(ex({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(B(e.prototype,"attachShadow",function(e){return function(i){let o=e.call(this,i);return this.shadowRoot&&er(this)&&r.addShadowRoot(this.shadowRoot,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var eA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eq="undefined"==typeof Uint8Array?[]:new Uint8Array(256),eL=0;eL<eA.length;eL++)eq[eA.charCodeAt(eL)]=eL;var eP=function(e){var t,r=new Uint8Array(e),i=r.length,o="";for(t=0;t<i;t+=3)o+=eA[r[t]>>2],o+=eA[(3&r[t])<<4|r[t+1]>>4],o+=eA[(15&r[t+1])<<2|r[t+2]>>6],o+=eA[63&r[t+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o};let eF=new Map,eU=(e,t,r)=>{if(!e||!(e$(e,t)||"object"==typeof e))return;let i=function(e,t){let r=eF.get(e);return r||(r=new Map,eF.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),o=i.indexOf(e);return -1===o&&(o=i.length,i.push(e)),o},ej=(e,t,r)=>e.map(e=>(function e(t,r,i){if(t instanceof Array)return t.map(t=>e(t,r,i));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:eP(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,i),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,i),t.width,t.height]};else if(e$(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:eU(t,r,i)};return t})(e,t,r)),e$=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function eB(e,t,r,i){let o=[];try{let n=B(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...n){if(!J(this,t,r,!0)){let e="experimental-webgl"===o?"webgl":o;if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(n[0]&&"object"==typeof n[0]){let e=n[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else n.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...n])}});o.push(n)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>
1{o.forEach(e=>e())}}function ez(e,t,r,i,o,n,s){let a=[];for(let n of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(n))try{if("function"!=typeof e[n])continue;let c=B(e,n,function(e){return function(...a){let c=e.apply(this,a);if(eU(c,s,this),"tagName"in this.canvas&&!J(this.canvas,i,o,!0)){let e=ej(a,s,this),i={type:t,property:n,args:e};r(this.canvas,i)}return c}});a.push(c)}catch(o){let i=$(e,n,{set(e){r(this.canvas,{type:t,property:n,args:[e],setter:!0})}});a.push(i)}return a}var eW=function(e,t){var r;return function(t){var i;return new Worker(r=r||(i=new Blob(function(e,t){var r=t,i=e.toString().split("\n");i.pop(),i.shift();for(var o=i[0].search(/\S/),n=/(['"])__worker_loader_strict__(['"])/g,s=0,a=i.length;s<a;++s)i[s]=i[s].substring(o).replace(n,"$1use strict$2")+"\n";return r&&i.push("//# sourceMappingURL="+r+"\n"),i}(e,null),{type:"application/javascript"}),URL.createObjectURL(i)),t)}}(function(){!function(){function e(e,t,r,i){return new(r||(r=Promise))(function(o,n){function s(e){try{c(i.next(e))}catch(e){n(e)}}function a(e){try{c(i.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((i=i.apply(e,t||[])).next())})}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i=0;i<t.length;i++)r[t.charCodeAt(i)]=i;var o=function(e){var r,i=new Uint8Array(e),o=i.length,n="";for(r=0;r<o;r+=3)n+=t[i[r]>>2],n+=t[(3&i[r])<<4|i[r+1]>>4],n+=t[(15&i[r+1])<<2|i[r+2]>>6],n+=t[63&i[r+2]];return o%3==2?n=n.substring(0,n.length-1)+"=":o%3==1&&(n=n.substring(0,n.length-2)+"=="),n};let n=new Map,s=new Map,a=self;a.onmessage=function(t){return e(this,void 0,void 0,function*(){if(!("OffscreenCanvas"in globalThis))return a.postMessage({id:t.data.id});{let{id:r,bitmap:i,width:c,height:u,dataURLOptions:l}=t.data,p=function(t,r,i){return e(this,void 0,void 0,function*(){let e=`${t}-${r}`;if(!("OffscreenCanvas"in globalThis))return"";{if(s.has(e))return s.get(e);let n=new OffscreenCanvas(t,r);n.getContext("2d");let a=yield n.convertToBlob(i),c=o((yield a.arrayBuffer()));return s.set(e,c),c}})}(c,u,l),h=new OffscreenCanvas(c,u);h.getContext("2d").drawImage(i,0,0),i.close();let d=yield h.convertToBlob(l),f=d.type,_=o((yield d.arrayBuffer()));if(!n.has(r)&&(yield p)===_)return n.set(r,_),a.postMessage({id:r});if(n.get(r)===_)return a.postMessage({id:r});a.postMessage({id:r,type:f,base64:_,width:c,height:u}),n.set(r,_)}})}}()},0);class eV{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{sampling:t="all",win:r,blockClass:i,blockSelector:o,recordCanvas:n,dataURLOptions:s}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,n&&"all"===t&&this.initCanvasMutationObserver(r,i,o),n&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,i,o,{dataURLOptions:s})}initCanvasFPSObserver(e,t,r,i,o){let n,s=eB(t,r,i,!0),a=new Map,c=new eW;c.onmessage=e=>{let{id:t}=e.data;if(a.set(t,!1),!("base64"in e.data))return;let{base64:r,type:i,width:o,height:n}=e.data;this.mutationCb({id:t,type:ep["2D"],commands:[{property:"clearRect",args:[0,0,o,n]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:i}]},0,0]}]})};let u=1e3/e,l=0,p=e=>{if(l&&e-l<u){n=requestAnimationFrame(p);return}l=e,(()=>{let e=[];return t.document.querySelectorAll("canvas").forEach(t=>{J(t,r,i,!0)||e.push(t)}),e}
1)().forEach(e=>{var t,r,i,n;return t=this,r=void 0,i=void 0,n=function*(){var t;let r=this.mirror.getId(e);if(a.get(r)||0===e.width||0===e.height)return;if(a.set(r,!0),["webgl","webgl2"].includes(e.__context)){let r=e.getContext(e.__context);(null==(t=null==r?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&r.clear(r.COLOR_BUFFER_BIT)}let i=yield createImageBitmap(e);c.postMessage({id:r,bitmap:i,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[i])},new(i||(i=Promise))(function(e,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(s,a)}c((n=n.apply(t,r||[])).next())})}),n=requestAnimationFrame(p)};n=requestAnimationFrame(p),this.resetObservers=()=>{s(),cancelAnimationFrame(n)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=eB(e,t,r,!1),o=function(e,t,r,i){let o=[];for(let n of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[n])continue;let s=B(t.CanvasRenderingContext2D.prototype,n,function(o){return function(...s){return J(this.canvas,r,i,!0)||setTimeout(()=>{let r=ej(s,t,this);e(this.canvas,{type:ep["2D"],property:n,args:r})},0),o.apply(this,s)}});o.push(s)}catch(i){let r=$(t.CanvasRenderingContext2D.prototype,n,{set(t){e(this.canvas,{type:ep["2D"],property:n,args:[t],setter:!0})}});o.push(r)}return()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),n=function(e,t,r,i,o){let n=[];return n.push(...ez(t.WebGLRenderingContext.prototype,ep.WebGL,e,r,i,o,t)),void 0!==t.WebGL2RenderingContext&&n.push(...ez(t.WebGL2RenderingContext.prototype,ep.WebGL2,e,r,i,o,t)),()=>{n.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,this.mirror);this.resetObservers=()=>{i(),o(),n()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let i=r.map(e=>(function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)0>t.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r})(e,["type"])),{type:o}=r[0];this.mutationCb({id:t,type:o,commands:i}),this.pendingCanvasMutations.delete(e)}}class eH{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ee,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},i=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),i.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:h(e),index:t}))})),r.styleIds.push(e)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class eG{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function eJ(e){return Object.assign(Object.assign({},e),{timestamp:z()})}let eQ=!1,eK=new d;function eX(e={}){let t,{emit:r,checkoutEveryNms:i,checkoutEveryNth:o,blockClass:u="rr-block",blockSelector:l=null,ignoreClass:p="rr-ignore",ignoreSelector:h=null,maskTextClass:f="rr-mask",maskTextSelector:_=null,inlineStylesheet:g=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:v,maskInputFn:b,maskTextFn:S,hooks:k,packFn:w,sampling:M={},dataURLOptions:I={},mousemoveWait:E,recordDOM:x=!0,recordCanvas:C=!1,recordCrossOriginIframes:O=!1,recordAfter:T="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:R=!1,collectFonts:D=!1,inl
1ineImages:N=!1,plugins:A,keepIframeSrcFn:q=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:U}=e;n=U;let j=!O||window.parent===window,$=!1;if(!j)try{window.parent.document&&($=!1)}catch(e){$=!0}if(j&&!r)throw Error("emit function is required");void 0!==E&&void 0===M.mousemove&&(M.mousemove=E),eK.reset();let B=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==y?y:{password:!0},z=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let G=0,J=e=>{for(let t of A||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!$&&(e=w(e)),e};s=(e,n)=>{var s;if((null==(s=ev[0])?void 0:s.isFrozen())&&e.type!==ea.FullSnapshot&&(e.type!==ea.IncrementalSnapshot||e.data.source!==ec.Mutation)&&ev.forEach(e=>e.unfreeze()),j)null==r||r(J(e),n);else if($){let t={type:"rrweb",event:J(e),origin:window.location.origin,isCheckout:n};window.parent.postMessage(t,"*")}if(e.type===ea.FullSnapshot)t=e,G=0;else if(e.type===ea.IncrementalSnapshot){if(e.data.source===ec.Mutation&&e.data.isAttachIframe)return;G++;let r=o&&G>=o,n=i&&e.timestamp-t.timestamp>i;(r||n)&&a(!0)}};let Q=e=>{s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.Mutation},e)}))},K=e=>s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.Scroll},e)})),ee=e=>s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.CanvasMutation},e)})),et=new eH({mutationCb:Q,adoptedStyleSheetCb:e=>s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.AdoptedStyleSheet},e)}))}),er=new eD({mirror:eK,mutationCb:Q,stylesheetManager:et,recordCrossOriginIframes:O,wrappedEmit:s});for(let e of A||[])e.getMirror&&e.getMirror({nodeMirror:eK,crossOriginIframeMirror:er.crossOriginIframeMirror,crossOriginIframeStyleMirror:er.crossOriginIframeStyleMirror});let ei=new eG;c=new eV({recordCanvas:C,mutationCb:ee,win:window,blockClass:u,blockSelector:l,mirror:eK,sampling:M.canvas,dataURLOptions:I});let eo=new eN({mutationCb:Q,scrollCb:K,bypassOptions:{blockClass:u,blockSelector:l,maskTextClass:f,maskTextSelector:_,inlineStylesheet:g,maskInputOptions:B,dataURLOptions:I,maskTextFn:S,maskInputFn:b,recordCanvas:C,inlineImages:N,sampling:M,slimDOMOptions:z,iframeManager:er,stylesheetManager:et,canvasManager:c,keepIframeSrcFn:q,processedNodeManager:ei},mirror:eK});a=(e=!1)=>{if(!x)return;s(eJ({type:ea.Meta,data:{href:window.location.href,width:H(),height:V()}}),e),et.reset(),eo.init(),ev.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new d,blockClass:i="rr-block",blockSelector:o=null,maskTextClass:n="rr-mask",maskTextSelector:s=null,inlineStylesheet:a=!0,inlineImages:c=!1,recordCanvas:u=!1,maskAllInputs:l=!1,maskTextFn:p,maskInputFn:h,slimDOM:f=!1,dataURLOptions:_,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:k=()=>!1}=t||{};return L(e,{doc:e,mirror:r,blockClass:i,blockSelector:o,maskTextClass:n,maskTextSelector:s,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===l?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===l?{password:!0}:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:_,inlineImages:c,recordCanvas:u,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:k,newlyAddedElement:!1})}(document,{mirror:eK,blockClass:u,blockSelector:l,maskTextClass:f,maskTextSelector:_,inlineStylesheet:g,maskAllInputs:B,maskTextFn:S,slimDOM:z,dataURLOptions:I,recordCanvas:C,inl
1ineImages:N,onSerialize:e=>{X(e,eK)&&er.addIframe(e),Y(e,eK)&&et.trackLinkElement(e),Z(e)&&eo.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{er.attachIframe(e,t),eo.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{et.attachLinkElement(e,t)},keepIframeSrcFn:q});if(!t)return console.warn("Failed to snapshot the document");s(eJ({type:ea.FullSnapshot,data:{node:t,initialOffset:W(window)}}),e),ev.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&et.adoptStyleSheets(document.adoptedStyleSheets,eK.getId(document))};try{let e=[],t=e=>{var t;return ey(eC)({mutationCb:Q,mousemoveCb:(e,t)=>s(eJ({type:ea.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.MouseInteraction},e)})),scrollCb:K,viewportResizeCb:e=>s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.ViewportResize},e)})),inputCb:e=>s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.Input},e)})),mediaInteractionCb:e=>s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.MediaInteraction},e)})),styleSheetRuleCb:e=>s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.StyleSheetRule},e)})),styleDeclarationCb:e=>s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.StyleDeclaration},e)})),canvasMutationCb:ee,fontCb:e=>s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.Font},e)})),selectionCb:e=>{s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.Selection},e)}))},customElementCb:e=>{s(eJ({type:ea.IncrementalSnapshot,data:Object.assign({source:ec.CustomElement},e)}))},blockClass:u,ignoreClass:p,ignoreSelector:h,maskTextClass:f,maskTextSelector:_,maskInputOptions:B,inlineStylesheet:g,sampling:M,recordDOM:x,recordCanvas:C,inlineImages:N,userTriggeredOnInput:R,collectFonts:D,doc:e,maskInputFn:b,maskTextFn:S,keepIframeSrcFn:q,blockSelector:l,slimDOMOptions:z,dataURLOptions:I,mirror:eK,iframeManager:er,stylesheetManager:et,shadowDomManager:eo,processedNodeManager:ei,canvasManager:c,ignoreCSSAttributes:F,plugins:(null==(t=null==A?void 0:A.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>s(eJ({type:ea.Plugin,data:{plugin:e.name,payload:t}}))})))||[]},k)};er.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{a(),e.push(t(document)),eQ=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(P("DOMContentLoaded",()=>{s(eJ({type:ea.DomContentLoaded,data:{}})),"DOMContentLoaded"===T&&r()})),e.push(P("load",()=>{s(eJ({type:ea.Load,data:{}})),"load"===T&&r()},window))),()=>{e.forEach(e=>e()),ei.destroy(),eQ=!1,n=void 0}}catch(e){console.warn(e)}}eX.addCustomEvent=(e,t)=>{if(!eQ)throw Error("please add custom event after start recording");s(eJ({type:ea.Custom,data:{tag:e,payload:t}}))},eX.freezePage=()=>{ev.forEach(e=>e.freeze())},eX.takeFullSnapshot=e=>{if(!eQ)throw Error("please take full snapshot after start recording");a(e)},eX.mirror=eK;var eY=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(eY||{}),eZ=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(eZ||{}),e0={DEBUG:!1,LIB_VERSION:"2.56.0"};if("undefined"==typeof window){var e1={hostname:""};eo={navigator:{userAgent:"",onLine:!0},document:{location:e1,referrer:""},screen:{width:0,height:0},location:e1}}else eo=window;var e2=Array.prototype,e3=Function.prototype,e6=Object.prototype,e5=e2.slice,e4=e6.toString,e8=e6.hasOwnProperty,e9=eo.console,e7=eo.navigator,te=eo.document,tt=eo.opera,tr=eo.screen,ti=e7.userAgent,to=e3.bind,tn=e2.forEach,ts=e2.indexOf,ta=e2.map,tc=Array.isArray,tu={},tl={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},tp={log:function(){if(e0.DEBUG&&!tl.isUndefined(e9)&&e9)try{e9.log.apply(e9,arguments)}catch(e){tl.each(arguments,function(e){e9.log(e)})}},warn:function(){if(e0.DEBUG&&!tl.isUndefined(e9)&&e9){var e=["Mixpanel warning:"].
1concat(tl.toArray(arguments));try{e9.warn.apply(e9,e)}catch(t){tl.each(e,function(e){e9.warn(e)})}}},error:function(){if(e0.DEBUG&&!tl.isUndefined(e9)&&e9){var e=["Mixpanel error:"].concat(tl.toArray(arguments));try{e9.error.apply(e9,e)}catch(t){tl.each(e,function(e){e9.error(e)})}}},critical:function(){if(!tl.isUndefined(e9)&&e9){var e=["Mixpanel error:"].concat(tl.toArray(arguments));try{e9.error.apply(e9,e)}catch(t){tl.each(e,function(e){e9.error(e)})}}}},th=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(tp,arguments)}},td=function(e){return{log:th(tp.log,e),error:th(tp.error,e),critical:th(tp.critical,e)}};tl.bind=function(e,t){var r,i;if(to&&e.bind===to)return to.apply(e,e5.call(arguments,1));if(!tl.isFunction(e))throw TypeError();return r=e5.call(arguments,2),i=function(){if(!(this instanceof i))return e.apply(t,r.concat(e5.call(arguments)));var o={};o.prototype=e.prototype;var n=new o;o.prototype=null;var s=e.apply(n,r.concat(e5.call(arguments)));return Object(s)===s?s:n}},tl.each=function(e,t,r){if(null!=e){if(tn&&e.forEach===tn)e.forEach(t,r);else if(e.length===+e.length){for(var i=0,o=e.length;i<o;i++)if(i in e&&t.call(r,e[i],i,e)===tu)return}else for(var n in e)if(e8.call(e,n)&&t.call(r,e[n],n,e)===tu)return}},tl.extend=function(e){return tl.each(e5.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},tl.isArray=tc||function(e){return"[object Array]"===e4.call(e)},tl.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},tl.isArguments=function(e){return!!(e&&e8.call(e,"callee"))},tl.toArray=function(e){return e?e.toArray?e.toArray():tl.isArray(e)||tl.isArguments(e)?e5.call(e):tl.values(e):[]},tl.map=function(e,t,r){if(ta&&e.map===ta)return e.map(t,r);var i=[];return tl.each(e,function(e){i.push(t.call(r,e))}),i},tl.keys=function(e){var t=[];return null===e||tl.each(e,function(e,r){t[t.length]=r}),t},tl.values=function(e){var t=[];return null===e||tl.each(e,function(e){t[t.length]=e}),t},tl.include=function(e,t){var r=!1;return null===e?r:ts&&e.indexOf===ts?-1!=e.indexOf(t):(tl.each(e,function(e){if(r||(r=e===t))return tu}),r)},tl.includes=function(e,t){return -1!==e.indexOf(t)},tl.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},tl.isObject=function(e){return e===Object(e)&&!tl.isArray(e)},tl.isEmptyObject=function(e){if(tl.isObject(e)){for(var t in e)if(e8.call(e,t))return!1;return!0}return!1},tl.isUndefined=function(e){return void 0===e},tl.isString=function(e){return"[object String]"==e4.call(e)},tl.isDate=function(e){return"[object Date]"==e4.call(e)},tl.isNumber=function(e){return"[object Number]"==e4.call(e)},tl.isElement=function(e){return!!(e&&1===e.nodeType)},tl.encodeDates=function(e){return tl.each(e,function(t,r){tl.isDate(t)?e[r]=tl.formatDate(t):tl.isObject(t)&&(e[r]=tl.encodeDates(t))}),e},tl.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},tl.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())},tl.strip_empty_properties=function(e){var t={};return tl.each(e,function(e,r){tl.isString(e)&&e.length>0&&(t[r]=e)}),t},tl.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):tl.isArray(e)?(r=[],tl.each(e,function(e){r.push(tl.truncate(e,t))})):tl.isObject(e)?(r={},tl.each(e,function(e,i){r[i]=tl.truncate(e,t)})):r=e,r},tl.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 o="",n=0,s="",a="",c=0,u=o,l=[],p=i[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(o+=" ",l=[],"[object Array]"===e4.apply(p)){for(n=0,c=p.length;n<c;n+=1)l[n]=r(n,p)||"null";return a=0===l.length?"[]":o?"[\n"+o+l.join(",\n"+o)+"\n"+u+"]":"["+l.join(",")+"]",o=u,a}for(s in p)e8.call(p,s)&&(a=r(s,p))&&l.push(t(s)+(o?": ":":")+a);return a=0===l.length?"{}":o?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",o=u,a}};return r("",{"":e})},tl.JSONDecode=function(){var e,t,r,i,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},n=function(t){var i=SyntaxError(t);throw i.at=e,i.text=r,i},s=function(i){return i&&i!==t&&n("Expected '"+i+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";for("-"===t&&(r="-",s("-"));t>="0"&&t<="9";)r+=t,s();if("."===t)for(r+=".";s()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,s(),("-"===t||"+"===t)&&(r+=t,s());t>="0"&&t<="9";)r+=t,s();if(isFinite(e=+r))return e;n("Bad number")},c=function(){var e,r,i,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;
1if("\\"===t)if(s(),"u"===t){for(r=0,i=0;r<4&&isFinite(e=parseInt(s(),16));r+=1)i=16*i+e;a+=String.fromCharCode(i)}else if("string"==typeof o[t])a+=o[t];else break;else a+=t}n("Bad string")},u=function(){for(;t&&t<=" ";)s()},l=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}n('Unexpected "'+t+'"')},p=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;for(;t;){if(e.push(i()),u(),"]"===t)return s("]"),e;s(","),u()}}n("Bad array")},h=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;for(;t;){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&n('Duplicate key "'+e+'"'),r[e]=i(),u(),"}"===t)return s("}"),r;s(","),u()}}n("Bad object")};return i=function(){switch(u(),t){case"{":return h();case"[":return p();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(o){var s;return r=o,e=0,t=" ",s=i(),u(),t&&n("Syntax error"),s}}(),tl.base64Encode=function(e){var t,r,i,o,n,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,u=0,l="",p=[];if(!e)return e;e=tl.utf8Encode(e);do t=e.charCodeAt(c++),r=(s=t<<16|e.charCodeAt(c++)<<8|e.charCodeAt(c++))>>18&63,i=s>>12&63,o=s>>6&63,n=63&s,p[u++]=a.charAt(r)+a.charAt(i)+a.charAt(o)+a.charAt(n);while(c<e.length);switch(l=p.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},tl.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,i,o="",n=0;for(i=0,t=r=0,n=e.length;i<n;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&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},tl.UUID=function(){var e=function(){var e,t=+new Date;if(eo.performance&&eo.performance.now)e=eo.performance.now();else for(e=0;t==+new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},t=function(){var e,t,r=[],i=0;function o(e,t){var i,o=0;for(i=0;i<t.length;i++)o|=r[i]<<8*i;return e^o}for(e=0;e<ti.length;e++)t=ti.charCodeAt(e),r.unshift(255&t),r.length>=4&&(i=o(i,r),r=[]);return r.length>0&&(i=o(i,r)),i.toString(16)};return function(){var r=(tr.height*tr.width).toString(16);return e()+"-"+Math.random().toString(16).replace(".","")+"-"+t()+"-"+r+"-"+e()}}();var tf=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];tl.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<tf.length;t++)if(-1!==e.indexOf(tf[t]))return!0;return!1},tl.HTTPBuildQuery=function(e,t){var r,i,o=[];return tl.isUndefined(t)&&(t="&"),tl.each(e,function(e,t){r=encodeURIComponent(e.toString()),i=encodeURIComponent(t),o[o.length]=i+"="+r}),o.join(t)},tl.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){tp.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},tl.cookie={get:function(e){for(var t=e+"=",r=te.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},parse:function(e){var t;
1try{t=tl.JSONDecode(tl.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,i,o,n,s){var a="",c="",u="";if(s)a="; domain="+s;else if(i){var l=tw(te.location.hostname);a=l?"; domain=."+l:""}if(r){var p=new Date;p.setTime(p.getTime()+1e3*r),c="; expires="+p.toGMTString()}n&&(o=!0,u="; SameSite=None"),o&&(u+="; secure"),te.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,i,o,n,s){var a="",c="",u="";if(s)a="; domain="+s;else if(i){var l=tw(te.location.hostname);a=l?"; domain=."+l:""}if(r){var p=new Date;p.setTime(p.getTime()+24*r*36e5),c="; expires="+p.toGMTString()}n&&(o=!0,u="; SameSite=None"),o&&(u+="; secure");var h=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return te.cookie=h,h},remove:function(e,t,r){tl.cookie.set(e,"",-1,t,!1,!1,r)}};var t_=null,tg=function(e,t){if(null!==t_&&!t)return t_;var r=!0;try{e=e||window.localStorage;var i="__mplss_"+tb(8);e.setItem(i,"xyz"),"xyz"!==e.getItem(i)&&(r=!1),e.removeItem(i)}catch(e){r=!1}return t_=r,r};tl.localStorage={is_supported:function(e){var t=tg(null,e);return t||tp.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){tp.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){tl.localStorage.error(e)}return null},parse:function(e){try{return tl.JSONDecode(tl.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(e){tl.localStorage.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){tl.localStorage.error(e)}}},tl.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,o,n){if(!t)return void tp.error("No valid element provided to register_event");if(t.addEventListener&&!o)t.addEventListener(r,i,!!n);else{var s,a,c,u="on"+r,l=t[u];t[u]=(s=t,a=i,c=l,function(t){if(t=t||e(window.event)){var r,i,o=!0;return tl.isFunction(c)&&(r=c(t)),i=a.call(s,t),(!1===r||!1===i)&&(o=!1),o}})}}}();var tm=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');tl.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!te.getElementsByTagName)return[];var i=r.split(" "),o=[te];for(f=0;f<i.length;f++){if((l=i[f].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){b=(p=l.split("#"))[0];var n=p[1],s=te.getElementById(n);if(!s||b&&s.nodeName.toLowerCase()!=b)return[];o=[s];continue}if(l.indexOf(".")>-1){b=(p=l.split("."))[0];var a,c=p[1];for(b||(b="*"),h=[],d=0,_=0;_<o.length;_++)for(g=0,m="*"==b?e(o[_]):o[_].getElementsByTagName(b);g<m.length;g++)h[d++]=m[g];for(_=0,o=[],y=0;_<h.length;_++)h[_].className&&tl.isString(h[_].className)&&(a=h[_],(" "+a.className+" ").replace(t," ").indexOf(" "+c+" ")>=0)&&(o[y++]=h[_]);continue}var u=l.match(tm);if(u){var l,p,h,d,f,_,g,m,y,v,b=u[1],S=u[2],k=u[3],w=u[4];for(b||(b="*"),h=[],d=0,_=0;_<o.length;_++)for(g=0,m="*"==b?e(o[_]):o[_].getElementsByTagName(b);g<m.length;g++)h[d++]=m[g];switch(o=[],y=0,k){case"=":v=function(e){return e.getAttribute(S)==w};break;case"~":v=function(e){return e.getAttribute(S).match(RegExp("\\b"+w+"\\b"))};break;case"|":v=function(e){return e.getAttribute(S).match(RegExp("^"+w+"-?"))};break;case"^":v=function(e){return 0===e.getAttribute(S).indexOf(w)};break;case"$":v=function(e){return e.getAttribute(S).lastIndexOf(w)==e.getAttribute(S).length-w.length};break;case"*":v=function(e){return e.getAttribute(S).indexOf(w)>-1};break;default:v=function(e){return e.getAttribute(S)}}for(_=0,o=[],y=0;_<h.length;_++)v(h[_])&&(o[y++]=h[_]);continue}for(_=0,b=l,h=[],d=0;_<o.length;_++)for(g=0,m=o[_].getElementsByTagName(b);g<m.length;g++)h[d++]=m[g];o=h}return o}return function(e){return tl.isElement(e)?[e]:tl.isObject(e)&&!tl.isUndefined(e.length)?e:r.call(this,e)}}();var ty=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],tv=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];tl.info={campaignParams:function(e){var t="",r={};return tl.each(ty,function(i){(t=tl.getQueryParam(te.URL,i)).length?r[i]=t:void 0!==e&&(r[i]=e)}),r},clickParams:function(){var e="",t={};return tl.each(tv,function(r){(e=tl.getQueryParam(te.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return tl.extend(tl.info.campaignParams(),tl.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=tl.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var i=tl.getQueryParam(e,"yahoo"!=t?"q":"p");
1i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,r){if(t=t||"",r||tl.includes(e," OPR/"))return tl.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(tl.includes(e,"IEMobile")||tl.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(tl.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(tl.includes(e,"Edge")||tl.includes(e,"Edg/"))return"Microsoft Edge";else if(tl.includes(e,"FBIOS"))return"Facebook Mobile";else if(tl.includes(e,"Chrome"))return"Chrome";else if(tl.includes(e,"CriOS"))return"Chrome iOS";else if(tl.includes(e,"UCWEB")||tl.includes(e,"UCBrowser"))return"UC Browser";else if(tl.includes(e,"FxiOS"))return"Firefox iOS";else if(tl.includes(t,"Apple"))return tl.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(tl.includes(e,"Android"))return"Android Mobile";else if(tl.includes(e,"Konqueror"))return"Konqueror";else if(tl.includes(e,"Firefox"))return"Firefox";else if(tl.includes(e,"MSIE")||tl.includes(e,"Trident/"))return"Internet Explorer";else if(tl.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+)?)/}[tl.info.browser(e,t,r)];if(void 0===i)return null;var o=e.match(i);return o?parseFloat(o[o.length-2]):null},os:function(){if(/Windows/i.test(ti))return/Phone/.test(ti)||/WPDesktop/.test(ti)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(ti))return"iOS";if(/Android/.test(ti))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(ti))return"BlackBerry";if(/Mac/i.test(ti))return"Mac OS X";else if(/Linux/.test(ti))return"Linux";else if(/CrOS/.test(ti))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 eo.location.href},properties:function(e){return"object"!=typeof e&&(e={}),tl.extend(tl.strip_empty_properties({$os:tl.info.os(),$browser:tl.info.browser(ti,e7.vendor,tt),$referrer:te.referrer,$referring_domain:tl.info.referringDomain(te.referrer),$device:tl.info.device(ti)}),{$current_url:tl.info.currentUrl(),$browser_version:tl.info.browserVersion(ti,e7.vendor,tt),$screen_height:tr.height,$screen_width:tr.width,mp_lib:"web",$lib_version:e0.LIB_VERSION,$insert_id:tb(),time:tl.timestamp()/1e3},tl.strip_empty_properties(e))},people_properties:function(){return tl.extend(tl.strip_empty_properties({$os:tl.info.os(),$browser:tl.info.browser(ti,e7.vendor,tt)}),{$browser_version:tl.info.browserVersion(ti,e7.vendor,tt)})},mpPageViewProperties:function(){return tl.strip_empty_properties({current_page_title:te.title,current_domain:eo.location.hostname,current_url_path:eo.location.pathname,current_url_protocol:eo.location.protocol,current_url_search:eo.location.search})}};var tb=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},tS=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,tk=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,tw=function(e){var t=tk,r=e.split("."),i=r[r.length-1];(i.length>4||"com"===i||"org"===i)&&(t=tS);var o=e.match(t);return o?o[0]:""},tM=function(){var e=eo.navigator.onLine;return tl.isUndefined(e)||e},tI=null,tE=null;function tx(e,t){tF(!0,e,t)}function tC(e,t){tF(!1,e,t)}function tO(e,t){return"1"===tP(e,t)}function tT(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||eo,r=t.navigator||{},i=!1;return tl.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){tl.includes([!0,1,"1","yes"],e)&&(i=!0)}),i}(t))return tp.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"===tP(e,t);return r&&tp.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function tR(e){return tU(e,function(e){return this.get_config(e)})}function tD(e){return tU(e,function(e){return this._get_config(e)})}function tN(e){return tU(e,function(e){return this._get_config(e)})}function tA(e,t){tq(t=t||{}).remove(tL(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function tq(e){return"localStorage"===(e=e||{}).persistenceType?tl.localStorage:tl.cookie}function tL(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function tP(e,t){return tq(t).get(tL(e,t))}function tF(e,t,r){if(!tl.isString(t)||!t.length)return void tp.error("gdpr."+(e?"optIn":"optOut")+" called with an invali
1d token");tq(r=r||{}).set(tL(t,r),+!!e,tl.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})}function tU(e,t){return function(){var r=!1;try{var i=t.call(this,"token"),o=t.call(this,"ignore_dnt"),n=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");i&&(r=tT(i,{ignoreDnt:o,persistenceType:n,persistencePrefix:s,window:a}))}catch(e){tp.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)}}"undefined"!=typeof JSON&&(tI=JSON.stringify,tE=JSON.parse),tI=tI||tl.JSONEncode,tE=tE||tl.JSONDecode,tl.toArray=tl.toArray,tl.isObject=tl.isObject,tl.JSONEncode=tl.JSONEncode,tl.JSONDecode=tl.JSONDecode,tl.isBlockedUA=tl.isBlockedUA,tl.isEmptyObject=tl.isEmptyObject,tl.info=tl.info,tl.info.device=tl.info.device,tl.info.browser=tl.info.browser,tl.info.browserVersion=tl.info.browserVersion,tl.info.properties=tl.info.properties;var tj=td("lock"),t$=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};t$.prototype.withLock=function(e,t,r){r||"function"==typeof t||(r=t,t=null);var i=r||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),n=this.storageKey,s=this.pollIntervalMS,a=this.timeoutMS,c=this.storage,u=n+":X",l=n+":Y",p=n+":Z",h=function(e){t&&t(e)},d=function(e){if(new Date().getTime()-o>a){tj.error("Timeout waiting for mutex on "+n+"; clearing lock. ["+i+"]"),c.removeItem(p),c.removeItem(l),g();return}setTimeout(function(){try{e()}catch(e){h(e)}},s*(Math.random()+.1))},f=function(e,t){e()?t():d(function(){f(e,t)})},_=function(){var e=c.getItem(l);if(e&&e!==i)return!1;if(c.setItem(l,i),c.getItem(l)===i)return!0;if(!tg(c,!0))throw Error("localStorage support dropped while acquiring lock");return!1},g=function(){c.setItem(u,i),f(_,function(){if(c.getItem(u)===i)return void m();d(function(){if(c.getItem(l)!==i)return void g();f(function(){return!c.getItem(p)},m)})})},m=function(){c.setItem(p,"1");try{e()}finally{c.removeItem(p),c.getItem(l)===i&&c.removeItem(l),c.getItem(u)===i&&c.removeItem(u)}};try{if(tg(c,!0))g();else throw Error("localStorage support check failed")}catch(e){h(e)}};var tB=td("batch"),tz=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.storage=t.storage||window.localStorage,this.lock=new t$(e,{storage:this.storage})),this.reportError=t.errorReporter||tl.bind(tB.error,tB),this.pid=t.pid||null,this.memQueue=[]};tz.prototype.enqueue=function(e,t,r){var i={id:tb(),flushAfter:new Date().getTime()+2*t,payload:e};this.usePersistence?this.lock.withLock(tl.bind(function(){var t;try{var o=this.readFromStorage();o.push(i),(t=this.saveToStorage(o))&&this.memQueue.push(i)}catch(r){this.reportError("Error enqueueing item",e),t=!1}r&&r(t)},this),tl.bind(function(e){this.reportError("Error acquiring storage lock",e),r&&r(!1)},this),this.pid):(this.memQueue.push(i),r&&r(!0))},tz.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(this.usePersistence&&t.length<e){var r=this.readFromStorage();if(r.length){var i={};tl.each(t,function(e){i[e.id]=!0});for(var o=0;o<r.length;o++){var n=r[o];if(new Date().getTime()>n.flushAfter&&!i[n.id]&&(n.orphaned=!0,t.push(n),t.length>=e))break}}}return t};var tW=function(e,t){var r=[];return tl.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};tz.prototype.removeItemsByID=function(e,t){var r={};if(tl.each(e,function(e){r[e]=!0}),this.memQueue=tW(this.memQueue,r),this.usePersistence){var i=tl.bind(function(){var t;try{var i=this.readFromStorage();if(i=tW(i,r),t=this.saveToStorage(i)){i=this.readFromStorage();for(var o=0;o<i.length;o++){var n=i[o];if(n.id&&r[n.id])return this.reportError("Item not removed from storage"),!1}}}catch(r){this.reportError("Error removing items",e),t=!1}return t},this);this.lock.withLock(function(){var e=i();t&&t(e)},tl.bind(function(e){var r=!1;if(this.reportError("Error acquiring storage lock",e),!tg(this.storage,!0)&&!(r=i()))try{this.storage.removeItem(this.storageKey)}catch(e){this.reportError("Error clearing queue",e)}t&&t(r)},this),this.pid)}else t&&t(!0)};var tV=function(e,t){var r=[];return tl.each(e,function(e){var i=e.id;if(i in t){var o=t[i];null!==o&&(e.payload=o,r.push(e))}else r.push(e)}),r};tz.prototype.updatePayloads=function(e,t){this.memQueue=tV(this.memQueue,e),this.usePersistence?this.lock.withLock(tl.bind(function(){var r;try{var i=this.readFromStorage();i=tV(i,e),r=this.saveToStorage(i)}catch(t){this.reportError("Error updating items",e),r=!1}t&&t(r)},this),tl.bind(function(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)},this),this.pid):t&&t(!0)},tz.prototype.readFromStorage=function(){var e;try{(e=this.storage.getItem(this.storageKey))&&(e=tE(e),tl.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},tz.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,tI(e)),!0}catch(e){return this.reportError("Error saving queue",e),!1}},tz.prototype.clear=function(){this.memQueue=[],this.usePersistence&&this.storage.removeItem(this.storageKey)};var tH=td("batch"),tG=function(e,t){this.errorReporter=t.errorReporter,this.queue=new tz(e,{errorReporter:tl.bind(this.reportError,this),storage:t.storage,usePersistence:t.usePersistence}),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};tG.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},tG.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},tG.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},tG.prototype.clear=function(){this.queue.clear()},tG.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},tG.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},tG.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(tl.bind(function(){this.stopped||this.flush()},this),this.flushInterval))},tG.prototype.flush=function(e){try{if(this.requestInProgress)return void tH.log("Flush: Request already in progress");e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),i=this.batchSize,o=this.queue.fillBatch(i),n=o.length===i,s=[],a={};if(tl.each(o,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=tl.extend({}
1,t.properties,{mp_sent_by_lib_version:e0.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:o.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 void this.resetFlush();this.requestInProgress=!0;var c=tl.bind(function(s){this.requestInProgress=!1;try{var c=!1;if(e.unloading)this.queue.updatePayloads(a);else if(tl.isObject(s)&&"timeout"===s.error&&new Date().getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if(tl.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&!tM()||"timeout"===s.error)){var u=2*this.flushInterval;s.retryAfter&&(u=1e3*parseInt(s.retryAfter,10)||u),u=Math.min(6e5,u),this.reportError("Error; retry in "+u+" ms"),this.scheduleFlush(u)}else if(tl.isObject(s)&&413===s.httpStatusCode)if(o.length>1){var l=Math.max(1,Math.floor(i/2));this.batchSize=Math.min(this.batchSize,l,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),c=!0;else c=!0;c&&(this.queue.removeItemsByID(tl.map(o,function(e){return e.id}),tl.bind(function(e){e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!n?this.resetFlush():this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())},this)),tl.each(o,tl.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:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)))}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(u.transport="sendBeacon"),tH.log("MIXPANEL REQUEST:",s),this.sendRequest(s,u,c)}catch(e){this.reportError("Error flushing request queue",e),this.resetFlush()}},tG.prototype.reportError=function(e,t){if(tH.error.apply(tH.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){tH.error(e)}};var tJ=td("recorder"),tQ=eo.CompressionStream,tK={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},tX=new Set([eZ.MouseMove,eZ.MouseInteraction,eZ.Scroll,eZ.ViewportResize,eZ.Input,eZ.TouchMove,eZ.MediaInteraction,eZ.Drag,eZ.Selection]),tY=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout,this._onMaxLengthReached=e.onMaxLengthReached,this._rrwebRecord=e.rrwebRecord,this.replayId=e.replayId,this._stopRecording=null,this.seqNo=0,this.replayStartTime=null,this.batchStartUrl=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this.recordMinMs=0;var t="__mprec_"+this.getConfig("token")+"_"+this.replayId;this.batcher=new tG(t,{errorReporter:tl.bind(this.reportError,this),flushOnlyOnInterval:!0,libConfig:tK,sendRequestFunc:tl.bind(this.flushEventsWithOptOut,this),usePersistence:!1})};tY.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},tY.prototype.get_config=function(e){return this.getConfig(e)},tY.prototype.startRecording=function(e){if(null!==this._stopRecording)return void tJ.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,tJ.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>8e3&&(this.recordMinMs=8e3,tJ.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime=new Date().getTime(),this.batchStartUrl=tl.info.currentUrl(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=tl.bind(function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(this._onIdleTimeout,this.getConfig("record_idle_timeout_ms"))},this),r=this.getConfig("record_block_selector");if((""===r||null===r)&&(r=void 0),this._stopRecording=this._rrwebRecord({emit:tl.bind(function(e){this.batcher.enqueue(e),e.type===eY.IncrementalSnapshot&&tX.has(e.data.source)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())},this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector")}),"function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}t(),this.maxTimeoutId=setTimeout(tl.bind(this._onMaxLengthReached,this),this.recordMaxMs)},tY.prototype.stopRecording=function(){if(!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)},tY.prototype.isRrwebStopped=function(){return null===this._stopRecording},tY.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,tl.bind(this._onOptOut,this))},tY.prototype._onOptOut=function(e){0===e&&this.stopRecording()},tY.prototype._sendRequest=function(e,t,r,i){var o=tl.bind(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=tl.info.currentUrl()),i({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})},this);eo.fetch(this.getConfig("api_host")+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){o(e,t)}).catch(function(e){i({error:e})})}).catch(function(e){i({error:e,httpStatusCode:0})})},tY.prototype._flushEvents=tR(function(e,t,r){let i=e.length;if(i>0){var o=this.replayId,n=e[0].timestamp;0!==this.seqNo&&this.replayStartTime||(0!==this.seqNo&&this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=n);var s=e[i-1].timestamp-this.replayStartTime,a={$current_url:this.batchStartUrl,$lib_version:e0.L
1IB_VERSION,batch_start_time:n/1e3,distinct_id:String(this._mixpanel.get_distinct_id()),mp_lib:"web",replay_id:o,replay_length_ms:s,replay_start_time:this.replayStartTime/1e3,seq:this.seqNo},c=tl.JSONEncode(e),u=this._mixpanel.get_property("$device_id");u&&(a.$device_id=u);var l=this._mixpanel.get_property("$user_id");l&&(a.$user_id=l),tQ?new Response(new Blob([c],{type:"application/json"}).stream().pipeThrough(new tQ("gzip"))).blob().then(tl.bind(function(e){a.format="gzip",this._sendRequest(o,a,e,r)},this)):(a.format="body",this._sendRequest(o,a,c,r))}}),tY.prototype.reportError=function(e,t){tJ.error.apply(tJ.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){tJ.error(e)}};var tZ=td("recorder"),t0=function(e){this._mixpanel=e,this.activeRecording=null};t0.prototype.startRecording=function(e){if(this.activeRecording&&!this.activeRecording.isRrwebStopped())return void tZ.log("Recording already in progress, skipping startRecording.");var t=tl.bind(function(){tZ.log("Idle timeout reached, restarting recording."),this.resetRecording()},this),r=tl.bind(function(){tZ.log("Max recording length reached, stopping recording."),this.resetRecording()},this);this.activeRecording=new tY({mixpanelInstance:this._mixpanel,onIdleTimeout:t,onMaxLengthReached:r,replayId:tl.UUID(),rrwebRecord:eX}),this.activeRecording.startRecording(e)},t0.prototype.stopRecording=function(){this.activeRecording&&(this.activeRecording.stopRecording(),this.activeRecording=null)},t0.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)},t0.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(t0.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),eo.__mp_recorder=t0;var t1=function(){};t1.prototype.create_properties=function(){},t1.prototype.event_handler=function(){},t1.prototype.after_track_handler=function(){},t1.prototype.init=function(e){return this.mp=e,this},t1.prototype.track=function(e,t,r,i){var o=this,n=tl.dom_query(e);return 0===n.length?void tp.error("The DOM query ("+e+") returned 0 elements"):(tl.each(n,function(e){tl.register_event(e,this.override_event,function(e){var n={},s=o.create_properties(r,this),a=o.mp.get_config("track_links_timeout");o.event_handler(e,this,n),window.setTimeout(o.track_callback(i,s,n,!0),a),o.mp.track(t,s,o.track_callback(i,s,n))})},this),!0)},t1.prototype.track_callback=function(e,t,r,i){i=i||!1;var o=this;return function(){!r.callback_fired&&(r.callback_fired=!0,e&&!1===e(i,t)||o.after_track_handler(t,r,i))}},t1.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):tl.extend({},e)};var t2=function(){this.override_event="click"};tl.inherit(t2,t1),t2.prototype.create_properties=function(e,t){var r=t2.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},t2.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()},t2.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var t3=function(){this.override_event="submit"};tl.inherit(t3,t1),t3.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},t3.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var t6="$set",t5="$set_once",t4="$unset",t8="$add",t9="$append",t7="$union",re="$remove",rt={set_action:function(e,t){var r={},i={};return tl.isObject(e)?tl.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[t6]=i,r},unset_action:function(e){var t={},r=[];return tl.isArray(e)||(e=[e]),tl.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[t4]=r,t},set_once_action:function(e,t){var r={},i={};return tl.isObject(e)?tl.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[t5]=i,r},union_action:function(e,t){var r={},i={};return tl.isObject(e)?tl.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=tl.isArray(e)?e:[e])},this):i[e]=tl.isArray(t)?t:[t],r[t7]=i,r},append_action:function(e,t){var r={},i={};return tl.isObject(e)?tl.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[t9]=i,r},remove_action:function(e,t){var r={},i={};return tl.isObject(e)?tl.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[re]=i,r},delete_action:function(){var e={};return e.$delete="",e}},rr=function(){};tl.extend(rr.prototype,rt),rr.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},rr.prototype.set=tN(function(e,t,r){var i=this.set_action(e,t);return tl.isObject(e)&&(r=t),this._send_request(i,r)}),rr.prototype.set_once=tN(function(e,t,r){var i=this.set_once_action(e,t);return tl.isObject(e)&&(r=t),this._send_request(i,r)}),rr.prototype.unset=tN(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),rr.prototype.union=tN(function(e,t,r){tl.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)}),rr.prototype.delete=tN(function(e){var t=this.delete_action();return this._send_request(t,e)}),rr.prototype.remove=tN(function(e,t,r){var i=this.remove_action(e,t);return this._send_request(i,r)}),rr.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=tl.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},rr.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},rr.prototype._get_config=function(e){return this._mixpanel.get_config(e)},rr.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},rr.prototype.remove=rr.prototype.remove,rr.prototype.set=rr.prototype.set,rr.prototype.set_once=rr.prototype.set_once,rr.prototype.union=rr.prototype.union,rr.prototype.unset=rr.prototype.unset,rr.prototype.toString=rr.prototype.toString;var ri=function(){};tl.extend(ri.prototype,rt),ri.prototype._init=function(e){this._mixpanel=e},ri.prototype.set=tD(function(e,t,r){var i=this.set_action(e,t);return tl.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),i[t6]=tl.extend({},tl.info.people_properties(),i[t6]),this._send_request(i,r)}),ri.prototype.set_once=tD(function(e,t,r){var i=this.set_once_action(e,t);return tl.isObject(e)&&(r=t),this._send_request(i,r)}),ri.prototype.unset=tD(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),ri.prototype.increment=tD(function(e,t,r){var i={},o={};return tl.isObject(e)?(tl.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void tp.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else o[t]=e},this),r=t):(tl.isUndefined(t)&&(t=1),o[e]=t),i[t8]=o,this._send_request(i,r)}),ri.prototype.append=tD(function(e,t,r){tl.isObject(e)&&(r=t);var i=this.append_action(e,t);return this._send_request(i,r)}),ri.prototype.remove=tD(function(e,t,r){tl.isObject(e)&&(r=t);var i=this.remove_action(e,t);return this._send_request(i,r)}),ri.prototype.union=tD(function(e,t,r){tl.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)}),ri.prototype.track_charge=tD(function(e,t,r){return!tl.isNumber(e)&&isNaN(e=parseFloat(e))?void tp.error("Invalid value passed to mixpanel.people.track_charge - must be a number"):this.append("$transactions",tl.extend({$amount:e},t),r)}),ri.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},ri.prototype.delete_user=function(){if(!this._identify_called())return void tp.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},ri.prototype.toString=function(){return this._mixpanel.toString()+".people"},ri.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"),o=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),i&&(e.$user_id=i),o&&(e.$had_persisted_distinct_id=o);var n=tl.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:n,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),tl.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),tl.truncate(n,255))},ri.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ri.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},ri.prototype._enqueue=function(e){t6 in e?this._mixpanel.persistence._add_to_people_queue(t6,e):t5 in e?this._mixpanel.persistence._add_to_people_queue(t5,e):t4 in e?this._mixpanel.persistence._add_to_people_queue(t4,e):t8 in e?this._mixpanel.persistence._add_to_people_queue(t8,e):t9 in e?this._mixpanel.persistence._add_to_people_queue(t9,e):re in e?this._mixpanel.persistence._add_to_people_queue(re,e):t7 in e?this._mixpanel.persistence._add_to_people_queue(t7,e):tp.error("Invalid call to _enqueue():",e)},ri.prototype._flush_one_queue=function(e,t,r,i){var o=this,n=tl.extend({},this._mixpanel.persistence.load_queue(e)),s=n;!tl.isUndefined(n)&&tl.isObject(n)&&!tl.isEmptyObject(n)&&(o._mixpanel.persistence._pop_from_people_queue(e,n),o._mixpanel.persistence.save(),i&&(s=i(n)),t.call(o,s,function(t,i){0===t&&o._mixpanel.persistence._add_to_people_queue(e,n),tl.isUndefined(r)||r(t,
1i)}))},ri.prototype._flush=function(e,t,r,i,o,n,s){var a=this;this._flush_one_queue(t6,this.set,e),this._flush_one_queue(t5,this.set_once,i),this._flush_one_queue(t4,this.unset,n,function(e){return tl.keys(e)}),this._flush_one_queue(t8,this.increment,t),this._flush_one_queue(t7,this.union,o);var c=this._mixpanel.persistence.load_queue(t9);if(!tl.isUndefined(c)&&tl.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(t9,u),tl.isUndefined(r)||r(e,t)},p=c.length-1;p>=0;p--)u=(c=this._mixpanel.persistence.load_queue(t9)).pop(),a._mixpanel.persistence.save(),tl.isEmptyObject(u)||a.append(u,l);var h=this._mixpanel.persistence.load_queue(re);if(!tl.isUndefined(h)&&tl.isArray(h)&&h.length)for(var d,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(re,d),tl.isUndefined(s)||s(e,t)},_=h.length-1;_>=0;_--)d=(h=this._mixpanel.persistence.load_queue(re)).pop(),a._mixpanel.persistence.save(),tl.isEmptyObject(d)||a.remove(d,f)},ri.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},ri.prototype.set=ri.prototype.set,ri.prototype.set_once=ri.prototype.set_once,ri.prototype.unset=ri.prototype.unset,ri.prototype.increment=ri.prototype.increment,ri.prototype.append=ri.prototype.append,ri.prototype.remove=ri.prototype.remove,ri.prototype.union=ri.prototype.union,ri.prototype.track_charge=ri.prototype.track_charge,ri.prototype.clear_charges=ri.prototype.clear_charges,ri.prototype.delete_user=ri.prototype.delete_user,ri.prototype.toString=ri.prototype.toString;var ro="__mps",rn="__mpso",rs="__mpus",ra="__mpa",rc="__mpap",ru="__mpr",rl="__mpu",rp="$peo
1ple_distinct_id",rh="__alias",rd="__timers",rf=[ro,rn,rs,ra,rc,ru,rl,rp,rh,rd],r_=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&&(tp.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&tl.localStorage.is_supported()?this.storage=tl.localStorage:this.storage=tl.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};r_.prototype.properties=function(){var e={};return this.load(),tl.each(this.props,function(t,r){tl.include(rf,r)||(e[r]=t)}),e},r_.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=tl.extend({},e))}},r_.prototype.upgrade=function(){var e,t;this.storage===tl.localStorage?(e=tl.cookie.parse(this.name),tl.cookie.remove(this.name),tl.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===tl.cookie&&(t=tl.localStorage.parse(this.name),tl.localStorage.remove(this.name),t&&this.register_once(t))},r_.prototype.save=function(){this.disabled||this.storage.set(this.name,tl.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},r_.prototype.load_prop=function(e){return this.load(),this.props[e]},r_.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},r_.prototype.clear=function(){this.remove(),this.props={}},r_.prototype.register_once=function(e,t,r){return!!tl.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),tl.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},r_.prototype.register=function(e,t){return!!tl.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),tl.extend(this.props,e),this.save(),!0)},r_.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},r_.prototype.update_search_keyword=function(e){this.register(tl.info.searchInfo(e))},r_.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:tl.info.referringDomain(e)||"$direct"},"")},r_.prototype.get_referrer_info=function(){return tl.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},r_.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)},r_.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},r_.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},r_.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},r_.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},r_.prototype.get_cross_subdomain=function(){return this.cross_subdomain},r_.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},r_.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),i=t[e],o=this._get_or_create_queue(t6),n=this._get_or_create_queue(t5),s=this._get_or_create_queue(t4),a=this._get_or_create_queue(t8),c=this._get_or_create_queue(t7),u=this._get_or_create_queue(re,[]),l=this._get_or_create_queue(t9,[]);r===ro?(tl.extend(o,i),this._pop_from_people_queue(t8,i),this._pop_from_people_queue(t7,i),this._pop_from_people_queue(t4,i)):r===rn?(tl.each(i,function(e,t){t in n||(n[t]=e)}),this._pop_from_people_queue(t4,i)):r===rs?tl.each(i,function(e){tl.each([o,n,a,c],function(t){e in t&&delete t[e]}),tl.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===ra?(tl.each(i,function(e,t){t in o?o[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(t4,i)):r===rl?(tl.each(i,function(e,t){tl.isArray(e)&&(t in c||(c[t]=[]),c[t]=c[t].concat(e))}),this._pop_from_people_queue(t4,i)):r===ru?(u.push(i),this._pop_from_people_queue(t9,i)):r===rc&&(l.push(i),this._pop_from_people_queue(t4,i)),tp.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),tp.log(t),this.save()},r_.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];tl.isUndefined(r)||tl.each(t,function(t,i){e===t9||e===re?tl.each(r,function(e){e[i]===t&&delete e[i]}):delete r[i]},this)},r_.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},r_.prototype._get_queue_key=function(e){return e===t6?ro:e===t5?rn:e===t4?rs:e===t8?ra:e===t9?rc:e===re?ru:e===t7?rl:void tp.error("Invalid queue:",e)},r_.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=tl.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},r_.prototype.set_event_timer=function(e,t){var r=this.load_prop(rd)||{};r[e]=t,this.props[rd]=r,this.save()},r_.prototype.remove_event_timer=function(e){var t=(this.load_prop(rd)||{})[e];return tl.isUndefined(t)||(delete this.props[rd][e],this.save()),t};var rg=function(e,t){throw Error(e+" not available in this build.")},rm=function(e){return e},ry=function(){},rv="mixpanel",rb="base64",rS="$device:",rk=eo.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,rw=!rk&&-1===ti.indexOf("MSIE")&&-1===ti.indexOf("Mozilla"),rM=null;e7.sendBeacon&&(rM=function(){return e7.sendBeacon.apply(e7,arguments)});var rI={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},rE={api_host:"https://api-js.mixpanel.com",api_routes:rI,api_method:"POST",api_transport:"XHR",api_payload_format:rb,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ry,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:ry,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:!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_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_collect_fonts:!1,record_idle_timeout_ms:18e5,record_mask_text_class:RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:864e5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},rx=!1,rC=function(){},rO=function(e,t,r){var i,o=r===rv?es:es[r];if(o&&0===en)i=o;else{if(o&&!tl.isArray(o))return void tp.error("You have already initialized "+r);i=new rC}if(i._cached_groups={},i._init(e,t,r),i.people=new ri,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var n=tl.info.campaignParams(null),s={},a=!1;tl.each(n,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&i.people.set_once(s)}return e0.DEBUG=e0.DEBUG||i.get_config("debug"),!tl.isUndefined(o)&&tl.isArray(o)&&(i._execute_array.call(i.people,o.people),i._execute_array(o)),i};rC.prototype.init=function(e,t,r){if(tl.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===rv)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var i=rO(e,t,r);return es[r]=i,i._loaded(),i},rC.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var i={};if("api_payload_format"in t||(t.api_host||rE.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json"),this.set_config(tl.extend({},rE,i,t,{name:r,token:e,callback_fn:(r===rv?r:rv+"."+r)+"._jsc"})),this._jsc=ry,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(tl.localStorage.is_supported(!0)&&rk){if(this.init_batchers(),rM&&eo.addEventListener){var o=tl.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);eo.addEventListener("pagehide",function(e){e.persisted&&o()}),eo.addEventListener("visibilitychange",function(){"hidden"===te.visibilityState&&o()})}}else this._batch_requests=!1,tp.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),tl.each(this.get_batcher_configs(),function(e){tp.log("Clearing batch queue "+e.queue_key),tl.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new r_(this.config),this.unpersisted_superprops={},this._gdpr_init();var n=tl.UUID();this.get_distinct_id()||this.register_once({distinct_id:rS+n,$device_id:n},"");var s=this.get_config("track_pageview");s&&this._init_url_change_tracking(s),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},rC.prototype.start_session_recording=tR(function(){if(!eo.MutationObserver)return void tp.critical("Browser does not support MutationObserver; skipping session recording");var e=tl.bind(function(){this._recorder=this._recorder||new eo.__mp_recorder(this),this._recorder.startRecording()},this);tl.isUndefined(eo.__mp_recorder)?rg(this.get_config("recorder_src"),e):e()}),rC.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():tp.critical("Session recorder module not loaded")},rC.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},rC.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+tl.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},rC.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},rC.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=tl.info.campaignParams(null);tl.each(e,(function(e,t){this.unregister(t)}).bind(this))}},rC.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(te.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(tl.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(te.referrer)},rC.prototype._dom_loaded=function(){tl.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||tl.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},rC.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(!rx)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},rC.prototype._init_url_change_tracking=function(e){var t="";if(this.track_pageview()&&(t=tl.info.currentUrl()),tl.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){eo.addEventListener("popstate",function(){eo.dispatchEvent(new Event("mp_locationchange"))}),eo.addEventListener("hashchange",function(){eo.dispatchEvent(new Event("mp_locationchange"))});var r=eo.history.pushState;"function"==typeof r&&(eo.history.pushState=function(e,t,i){r.call(eo.history,e,t,i),eo.dispatchEvent(new Event("mp_locationchange"))});var i=eo.history.replaceState;"function"==typeof i&&(eo.history.replaceState=function(e,t,r){i.call(eo.history,e,t,r),eo.dispatchEvent(new Event("mp_locationchange"))}),eo.addEventListener("mp_locationchange",(function(){var r=tl.info.currentUrl(),i=!1;"full-url"===e?i=r!==t:"url-with-path-and-query-string"===e?i=r.split("#")[0]!==t.split("#")[0]:"url-with-path"===e&&(i=r.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),i&&this.track_pageview()&&(t=r)}).bind(this))}},rC.prototype._prepare_callback=function(e,t){if(tl.isUndefined(e))return null;if(rk)return function(r){e(r,t)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],e(o,t)},o},rC.prototype._send_request=function(e,t,r,i){var o=!0;if(rw)return this.__request_queue.push(arguments),o;var n={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
1:this.get_config("verbose")},s=null;!i&&(tl.isFunction(r)||"string"==typeof r)&&(i=r,r=null),r=tl.extend(n,r||{}),rk||(r.method="GET");var a="POST"===r.method,c=rM&&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),!rk&&(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),e+="?"+tl.HTTPBuildQuery(t);var l=this;if("img"in t){var p=te.createElement("img");p.src=e,te.body.appendChild(p)}else if(c){try{o=rM(e,s)}catch(e){l.report_error(e),o=!1}try{i&&i(+!!o)}catch(e){l.report_error(e)}}else if(rk)try{var h=new XMLHttpRequest;h.open(r.method,e,!0);var d=this.get_config("xhr_headers");if(a&&(d["Content-Type"]="application/x-www-form-urlencoded"),tl.each(d,function(e,t){h.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==h.timeout){h.timeout=r.timeout_ms;var f=new Date().getTime()}h.withCredentials=!0,h.onreadystatechange=function(){if(4===h.readyState){if(200===h.status){if(i)if(u){try{e=tl.JSONDecode(h.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=h.responseText}i(e)}else i(Number(h.responseText))}else if(t=h.timeout&&!h.status&&new Date().getTime()-f>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,l.report_error(t),i)if(u){var e,t,o=h.responseHeaders||{};i({status:0,httpStatusCode:h.status,error:t,retryAfter:o["Retry-After"]})}else i(0)}},h.send(s)}catch(e){l.report_error(e),o=!1}else{var _=te.createElement("script");_.type="text/javascript",_.async=!0,_.defer=!0,_.src=e;var g=te.getElementsByTagName("script")[0];g.parentNode.insertBefore(_,g)}return o},rC.prototype._execute_array=function(e){var t,r=[],i=[],o=[];tl.each(e,function(e){e&&(t=e[0],tl.isArray(t)?o.push(e):"function"==typeof e?e.call(this):tl.isArray(e)&&"alias"===t?r.push(e):tl.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?o.push(e):i.push(e))},this);var n=function(e,t){tl.each(e,function(e){if(tl.isArray(e[0])){var r=t;tl.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};n(r,this),n(i,this),n(o,this)},rC.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},rC.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},rC.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=tl.bind(function(e){return new tG(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:tl.bind(function(t,r,i){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(i,t))},this),beforeSendHook:tl.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:tl.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()},rC.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,tl.each(this.request_batchers,function(e){e.start()}))},rC.prototype.stop_batch_senders=function(){this._batch_requests=!1,tl.each(this.request_batchers,function(e){e.stop(),e.clear()})},rC.prototype.push=function(e){this._execute_array([e])},rC.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},rC.prototype._encode_data_for_request=function(e){var t=tl.JSONEncode(e);return this.get_config("api_payload_format")===rb&&(t=tl.base64Encode(t)),{data:t}},rC.prototype._track_or_batch=function(e,t){var r=tl.truncate(e.data,255),i=e.endpoint,o=e.batcher,n=e.should_send_immediately,s=e.send_request_options||{};t=t||ry;var a=!0,c=tl.bind(function(){return(s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r)?(tp.log("MIXPANEL REQUEST:"),tp.log(r),this._send_request(i,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!n?o.enqueue(r,function(e){e?t(1,r):c()}):a=c(),a&&r},rC.prototype.track=tR(function(e,t,r,i){i||"function"!=typeof r||(i=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var n=r.send_immediately;if("function"!=typeof i&&(i=ry),tl.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=tl.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!tl.isUndefined(s)){var a=new Date().getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?tl.info.marketingParams():{};t=tl.extend({},tl.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");tl.isArray(u)?tl.each(u,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+u);var l={event:e,properties:t};return this._track_or_batch({type:"events",data:l,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:n,send_request_options:r},i)}),rC.prototype.set_group=tR(function(e,t,r){tl.isArray(t)||(t=[t]);var i={};return i[e]=t,this.register(i),this.people.set(e,t,r)}),rC.prototype.add_group=tR(function(e,t,r){var i=this.get_property(e),o={};return void 0===i?(o[e]=[t],this.register(o)):-1===i.indexOf(t)&&(i.push(t),o[e]=i,this.register(o)),this.people.union(e,t,r)}),rC.prototype.remove_group=tR(function(e,t,r){var i=this.get_property(e);if(void 0!==i){var o=i.indexOf(t);o>
1-1&&(i.splice(o,1),this.register({group_key:i})),0===i.length&&this.unregister(e)}return this.people.remove(e,t,r)}),rC.prototype.track_with_groups=tR(function(e,t,r,i){var o=tl.extend({},t||{});return tl.each(r,function(e,t){null!=e&&(o[t]=e)}),this.track(e,o,i)}),rC.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},rC.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},rC.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 rr)._init(this,e,t),this._cached_groups[r]=i),i},rC.prototype.track_pageview=tR(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",i=tl.extend(tl.info.mpPageViewProperties(),tl.info.campaignParams(),tl.info.clickParams()),o=tl.extend({},i,e);return this.track(r,o)}),rC.prototype.track_links=function(){return this._track_dom.call(this,t2,arguments)},rC.prototype.track_forms=function(){return this._track_dom.call(this,t3,arguments)},rC.prototype.time_event=function(e){if(tl.isUndefined(e))return void 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 rT={persistent:!0},rR=function(e){var t;return t=tl.isObject(e)?e:tl.isUndefined(e)?{}:{days:e},tl.extend({},rT,t)};rC.prototype.register=function(e,t){var r=rR(t);r.persistent?this.persistence.register(e,r.days):tl.extend(this.unpersisted_superprops,e)},rC.prototype.register_once=function(e,t,r){var i=rR(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),tl.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},rC.prototype.unregister=function(e,t){(t=rR(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},rC.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},rC.prototype.identify=function(e,t,r,i,o,n,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(rS))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:c},""),e!==c&&e!==this.get_property(rh)&&(this.unregister(rh),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,i,o,n,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0})},rC.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=tl.UUID();this.register_once({distinct_id:rS+e,$device_id:e},"")},rC.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},rC.prototype.alias=function(e,t){if(e===this.get_property(rp))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(tl.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(rh,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)},rC.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},rC.prototype.set_config=function(e){tl.isObject(e)&&(tl.extend(this.config,e),e.batch_size&&tl.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),e0.DEBUG=e0.DEBUG||this.get_config("debug"))},rC.prototype.get_config=function(e){return this.config[e]},rC.prototype._run_hook=function(e){var t=(this.config.hooks[e]||rm).apply(this,e5.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},rC.prototype.get_property=function(e){return this.persistence.load_prop([e])},rC.prototype.toString=function(){var e=this.get_config("name");return e!==rv&&(e=rv+"."+e),e},rC.prototype._event_is_disabled=function(e){return tl.isBlockedUA(ti)||this._flags.disable_all_events||tl.include(this.__disabled_events,e)},rC.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&tl.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")||tl.cookie.get("mp_optout"))&&(tl.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},rC.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._batchers_were_started&&this.start_batch_senders()},rC.prototype._gdpr_call_func=function(e,t){return t=tl.extend({track:tl.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),tl.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})},rC.prototype.opt_in_tracking=function(e){e=tl.extend({enable_persistence:!0},e),this._gdpr_call_func(tx,e),this._gdpr_update_persistence(e)},rC.prototype.opt_out_tracking=function(e){(e=tl.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(tC,e),this._gdpr_update_persistence(e)},rC.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(tO,e)},rC.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(tT,e)},rC.prototype.clear_opt_in_out_tracking=function(e){e=tl.extend({enable_persistence:!0},e),this._gdpr_call_func(tA,e),this._gdpr_update_persistence(e)},rC.prototype.report_error=function(e,t){tp.error.apply(tp.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){tp.error(e)}},rC.prototype.init=rC.prototype.init,rC.prototype.reset=rC.prototype.reset,rC.prototype.disable=rC.prototype.disable,rC.prototype.time_event=rC.prototype.time_event,rC.prototype.track=rC.prototype.track,rC.prototype.track_links=rC.prototype.track_links,rC.prototype.track_forms=rC.prototype.track_forms,rC.prototype.track_pageview=rC.prototype.track_pageview,rC.prototype.register=rC.prototype.register,rC.prototype.register_once=rC.prototype.register_once,rC.prototype.unregister=rC.prototype.unregister,rC.prototype.identify=rC.prototype.identify,rC.prototype.alias=rC.prototype.alias,rC.prototype.name_tag=rC.prototype.name_tag,rC.prototype.set_config=rC.prototype.set_config,rC.prototype.get_config=rC.prototype.get_config,rC.prototype.get_property=rC.prototype.get_property,rC.prototype.get_distinct_id=rC.prototype.get_distinct_id,rC.prototype.toString=rC.prototype.toString,rC.prototype.opt_out_tracking=rC.prototype.opt_out_tracking,rC.prototype.opt_in_tracking=rC.prototype.opt_in_tracking,rC.prototype.has_opted_out_tracking=rC.prototype.has_opted_out_tracking,rC.prototype.has_opted_in_tracking=rC.prototype.has_opted_in_tracking,rC.prototype.clear_opt_in_out_tracking=rC.prototype.clear_opt_in_out_tracking,rC.prototype.get_group=rC.prototype.get_group,rC.prototype.set_group=rC.prototype.set_group,rC.prototype.add_group=rC.prototype.add_group,rC.prototype.remove_group=rC.prototype.remove_group,rC.prototype.track_with_groups=rC.prototype.track_with_groups,rC.prototype.start_batch_senders=rC.prototype.start_batch_senders,rC.prototype.stop_batch_senders=rC.prototype.stop_batch_senders,rC.prototype.start_session_recording=rC.prototype.start_session_recording,rC.prototype.stop_session_recording=rC.prototype.stop_session_recording,rC.prototype.get_session_recording_properties=rC.prototype.get_session_recording_properties,rC.prototype.get_session_replay_url=rC.prototype.get_session_replay_url,rC.prototype.DEFAULT_API_ROUTES=rI,r_.prototype.properties=r_.prototype.properties,r_.prototype.update_search_keyword=r_.prototype.update_search_keyword,r_.prototype.update_referrer_info=r_.prototype.update_referrer_info,r_.prototype.get_cross_subdomain=r_.prototype.get_cross_subdomain,r_.prototype.clear=r_.prototype.clear;var rD={},rN=function(){tl.each(rD,function(e,t){t!==rv&&(es[t]=e)}),es._=tl},rA=(rg=function(e,t){t()},en=0,(es=new rC).init=function(e,t,r){if(r)return es[r]||(es[r]=rD[r]=rO(e,t,r),es[r]._loaded()),es[r];var i=es;rD[rv]?i=rD[rv]:e&&((i=rO(e,t,rv))._loaded(),rD[rv]=i),es=i,1===en&&(eo[rv]=es),rN()},es.init(),function(){function e(){e.done||(e.done=!0,rx=!0,rw=!1,tl.each(rD,function(e){e._dom_loaded()}))}if(te.addEventListener)"complete"===te.readyState?e():te.addEventListener("DOMContentLoaded",e,!1);else if(te.attachEvent){te.attachEvent("onreadystatechange",e);var t=!1;try{t=null===eo.frameElement}catch(e){}te.documentElement.doScroll&&t&&function t(){try{te.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}tl.register_event(eo,"load",e,!0)}(),es)}}]);
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.