1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70463,16573,e=>{"use strict";let t,r,i,o,n,s;function a(e){let t=null==e?void 0:e.host;return(null==t?void 0:t.shadowRoot)===e}function c(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function u(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,l).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 l(e){let t;if("styleSheet"in e)try{t=u(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}(eM=eE||(eE={}))[eM.Document=0]="Document",eM[eM.DocumentType=1]="DocumentType",eM[eM.Element=2]="Element",eM[eM.Text=3]="Text",eM[eM.CDATA=4]="CDATA",eM[eM.Comment=5]="Comment";class p{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 h({element:e,maskInputOptions:t,tagName:r,type:i,value:o,maskInputFn:n}){let s=o||"",a=i&&d(i);return(t[r.toLowerCase()]||a&&t[a])&&(s=n?n(s,e):"*".repeat(s.length)),s}function d(e){return e.toLowerCase()}let f="__rrweb_original__";function _(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?d(t):null}function g(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 m=1,y=RegExp("[^a-z0-9-_:]");function v(){return m++}let b=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,S=/^(?:[a-z+]+:)?\/\//i,k=/^www\..*/i,w=/^(data:)([^,]*),(.*)/i;function M(e,t){return(e||"").replace(b,(e,r,i,o,n,s)=>{let a=i||n||s,c=r||o||"";if(!a)return e;if(S.test(a)||k.test(a)||w.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 I=/^[^ \t\n\r\u000c]+/,E=/^[, \t\n\r\u000c]+/;function x(e,t){if(!t||""===t.trim())return t;let r=e.createElement("a");return r.href=t,r.href}function C(){let e=document.createElement("a");return e.href="",e.href}function O(e,t,r,i){if(!i)return i;if("src"===r||"href"===r&&("use"!==t||"#"!==i[0])||"xlink:href"===r&&"#"!==i[0])return x(e,i);if("background"===r&&("table"===t||"td"===t||"th"===t))return x(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(E),!(r>=t.length);){let n=i(I);if(","===n.slice(-1))n=x(e,n.substring(0,n.length-1)),o.push(n);else{let i="";n=x(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 M(i,C());else if("object"===t&&"data"===r)return x(e,i);return i}function T(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function D(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&D(e.parentNode,t,r);for(let r=e.classList.length;r--;){let i=e.classList[r];if(t.test(i))return!0}return!!r&&D(e.parentNode,t,r)}function R(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(D(o,t,i))return!0;
1if(r){if(i){if(o.closest(r))return!0}else if(o.matches(r))return!0}}catch(e){}return!1}function N(e){return null==e?"":e.toLowerCase()}function A(e,i){let o,{doc:n,mirror:s,blockClass:l,blockSelector:p,maskTextClass:m,maskTextSelector:b,skipChild:S=!1,inlineStylesheet:k=!0,maskInputOptions:w={},maskTextFn:I,maskInputFn:E,slimDOMOptions:x,dataURLOptions:D={},inlineImages:q=!1,recordCanvas:L=!1,onSerialize:P,onIframeLoad:F,iframeLoadTimeout:U=5e3,onStylesheetLoad:j,stylesheetLoadTimeout:B=5e3,keepIframeSrcFn:$=()=>!1,newlyAddedElement:z=!1}=i,{needsMask:W}=i,{preserveWhiteSpace:V=!0}=i;!W&&e.childNodes&&(W=R(e,m,b,void 0===W));let H=function(e,i){let{doc:o,mirror:n,blockClass:s,blockSelector:a,needsMask:c,inlineStylesheet:l,maskInputOptions:p={},maskTextFn:g,maskInputFn:m,dataURLOptions:v={},inlineImages:b,recordCanvas:S,keepIframeSrcFn:k,newlyAddedElement:w=!1}=i,I=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(o,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:eE.Document,childNodes:[],compatMode:e.compatMode};return{type:eE.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:eE.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return function(e,i){let o,{doc:n,blockClass:s,blockSelector:a,inlineStylesheet:c,maskInputOptions:l={},maskInputFn:p,dataURLOptions:g={},inlineImages:m,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1,rootId:k}=i,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),I=function(e){if(e instanceof HTMLFormElement)return"form";let t=d(e.tagName);return y.test(t)?"div":t}(e),E={},x=e.attributes.length;for(let t=0;t<x;t++){let r=e.attributes[t];T(I,r.name,r.value)||(E[r.name]=O(n,I,d(r.name),r.value))}if("link"===I&&c){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=u(t)),r&&(delete E.rel,delete E.href,E._cssText=M(r,t.href))}if("style"===I&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=u(e.sheet);t&&(E._cssText=M(t,C()))}if("input"===I||"textarea"===I||"select"===I){let t=e.value,r=e.checked;"radio"!==E.type&&"checkbox"!==E.type&&"submit"!==E.type&&"button"!==E.type&&t?E.value=h({element:e,type:_(e),tagName:I,value:t,maskInputOptions:l,maskInputFn:p}):r&&(E.checked=r)}if("option"===I&&(e.selected&&!l.select?E.selected=!0:delete E.selected),"canvas"===I&&v){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((f in o?o[f]: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)&&(E.rr_dataURL=e.toDataURL(g.type,g.quality));else if(!("__context"in e)){let t=e.toDataURL(g.type,g.quality),r=document.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(g.type,g.quality)&&(E.rr_dataURL=t)}}if("img"===I&&m){t||(r=(t=n.createElement("canvas")).getContext("2d"));let i=e.crossOrigin;e.crossOrigin="anonymous";let o=()=>{e.removeEventListener("load",o);try{t.width=e.naturalWidth,t.height=e.naturalHeight,r.drawImage(e,0,0),E.rr_dataURL=t.toDataURL(g.type,g.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}i?E.crossOrigin=i:e.removeAttribute("crossorigin")};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}if("audio"===I||"video"===I){let t=E;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&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),w){let{width:t,height:r}=e.getBoundingClientRect();E={class:E.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==I||b(E.src)||(e.contentDocument||(E.rr_src=E.src),delete E.src);try{customElements.get(I)&&(o=!0)}catch(e){}return{type:eE.Element,tagName:I,attributes:E,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:w,rootId:k,isCustom:o}}(e,{doc:o,blockClass:s,blockSelector:a,inlineStylesheet:l,maskInputOptions:p,maskInputFn:m,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:k,newlyAddedElement:w,rootId:I});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,l="SCRIPT"===s||void 0;if(c&&a){try{e.nextSibling||e.previousSibling||(null==(r=e.parentNode.sheet)?void 0:r.cssRules)&&(a=u(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}a=M(a,C())}return l&&(a="SCRIPT_PLACEHOLDER"),!c&&!l&&a&&i&&(a=o?o(a,e.parentElement):a.replace(/[\S]/g,"*")),{type:eE.Text,textContent:a||"",isStyle:c,rootId:n}}(e,{needsMask:c,maskTextFn:g,rootId:I});case e.CDATA_SECTION_NODE:return{type:eE.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:eE.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}(e,{doc:n,mirror:s,blockClass:l,blockSelector:p,needsMask:W,inlineStylesheet:k,maskInputOptions:w,maskTextFn:I,maskInputFn:E,dataURLOptions:D,inlineImages:q,recordCanvas:L,keepIframeSrcFn:$,newlyAddedElement:z});if(!H)return console.warn(e,"not serialized"),null;o=s.hasNode(e)?s.getId(e):!function(e,t){if(t.comment&&e.type===eE.Comment)return!0;
1if(e.type===eE.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"===g(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(N(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===N(e.attributes.name)||"icon"===N(e.attributes.rel)||"apple-touch-icon"===N(e.attributes.rel)||"shortcut icon"===N(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&N(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(N(e.attributes.property).match(/^(og|twitter|fb):/)||N(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===N(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===N(e.attributes.name)||"googlebot"===N(e.attributes.name)||"bingbot"===N(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===N(e.attributes.name)||"generator"===N(e.attributes.name)||"framework"===N(e.attributes.name)||"publisher"===N(e.attributes.name)||"progid"===N(e.attributes.name)||N(e.attributes.property).match(/^article:/)||N(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===N(e.attributes.name)||"yandex-verification"===N(e.attributes.name)||"csrf-token"===N(e.attributes.name)||"p:domain_verify"===N(e.attributes.name)||"verify-v1"===N(e.attributes.name)||"verification"===N(e.attributes.name)||"shopify-checkout-api-token"===N(e.attributes.name)))return!0}}return!1}(H,x)&&(V||H.type!==eE.Text||H.isStyle||H.textContent.replace(/^\s+|\s+$/gm,"").length)?v():-2;let G=Object.assign(H,{id:o});if(s.add(e,G),-2===o)return null;P&&P(e);let J=!S;if(G.type===eE.Element){J=J&&!G.needBlock,delete G.needBlock;let t=e.shadowRoot;t&&c(t)&&(G.isShadowHost=!0)}if((G.type===eE.Document||G.type===eE.Element)&&J){x.headWhitespace&&G.type===eE.Element&&"head"===G.tagName&&(V=!1);let t={doc:n,mirror:s,blockClass:l,blockSelector:p,needsMask:W,maskTextClass:m,maskTextSelector:b,skipChild:S,inlineStylesheet:k,maskInputOptions:w,maskTextFn:I,maskInputFn:E,slimDOMOptions:x,dataURLOptions:D,inlineImages:q,recordCanvas:L,preserveWhiteSpace:V,onSerialize:P,onIframeLoad:F,iframeLoadTimeout:U,onStylesheetLoad:j,stylesheetLoadTimeout:B,keepIframeSrcFn:$};if(G.type===eE.Element&&"textarea"===G.tagName&&void 0!==G.attributes.value);else for(let r of Array.from(e.childNodes)){let e=A(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=A(r,t);i&&(c(e.shadowRoot)&&(i.isShadow=!0),G.childNodes.push(i))}}return e.parentNode&&a(e.parentNode)&&c(e.parentNode)&&(G.isShadow=!0),G.type===eE.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=A(t,{doc:t,mirror:s,blockClass:l,blockSelector:p,needsMask:W,maskTextClass:m,maskTextSelector:b,skipChild:!1,inlineStylesheet:k,maskInputOptions:w,maskTextFn:I,maskInputFn:E,slimDOMOptions:x,dataURLOptions:D,inlineImages:q,recordCanvas:L,preserveWhiteSpace:V,onSerialize:P,onIframeLoad:F,iframeLoadTimeout:U,onStylesheetLoad:j,stylesheetLoadTimeout:B,keepIframeSrcFn:$});r&&F(e,r)}},U),G.type===eE.Element&&"link"===G.tagName&&"string"==typeof G.attributes.rel&&("stylesheet"===G.attributes.rel||"preload"===G.attributes.rel&&"string"==typeof G.attributes.href&&"css"===g(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=A(e,{doc:n,mirror:s,blockClass:l,blockSelector:p,needsMask:W,maskTextClass:m,maskTextSelector:b,skipChild:!1,inlineStylesheet:k,maskInputOptions:w,maskTextFn:I,maskInputFn:E,slimDOMOptions:x,dataURLOptions:D,inlineImages:q,recordCanvas:L,preserveWhiteSpace:V,onSerialize:P,onIframeLoad:F,iframeLoadTimeout:U,onStylesheetLoad:j,stylesheetLoadTimeout:B,keepIframeSrcFn:$});t&&j(e,t)}},B),G}function q(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}let L="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.",P={map:{},getId:()=>(console.error(L),-1),getNode:()=>(console.error(L),null),removeNodeFromMap(){console.error(L)},has:()=>(console.error(L),!1),reset(){console.error(L)}};function F(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 U(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)}}),()=>U(e,t,n||{},!0)}function j(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}}
1)),e[t]=o,()=>{e[t]=i}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(P=new Proxy(P,{get:(e,t,r)=>("map"===t&&console.error(L),Reflect.get(e,t,r))}));let B=Date.now;function $(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 z(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function W(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function V(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function H(e,t,r,i){if(!e)return!1;let o=V(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t)||i&&null!==o.closest("."+t))return!0}else if(D(o,t,i))return!0}catch(e){}return!!(r&&(o.matches(r)||i&&null!==o.closest(r)))||!1}function G(e,t){return -2===t.getId(e)}function J(e){return!!e.changedTouches}function K(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function Q(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function X(e){return!!(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(B=()=>new Date().getTime());class Y{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}has(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 Z(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 ee(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=Z(r);)r=t;return r}(e);return t.contains(r)}(e))}var et,er,ei,eo,en,es,ea,ec,eu,el,ep,eh,ed,ef,e_,eg,em,ey,ev,eb,eS,ek,ew,eM,eI,eE,ex,eC,eO,eT=((eI=eT||{})[eI.DomContentLoaded=0]="DomContentLoaded",eI[eI.Load=1]="Load",eI[eI.FullSnapshot=2]="FullSnapshot",eI[eI.IncrementalSnapshot=3]="IncrementalSnapshot",eI[eI.Meta=4]="Meta",eI[eI.Custom=5]="Custom",eI[eI.Plugin=6]="Plugin",eI),eD=((et=eD||{})[et.Mutation=0]="Mutation",et[et.MouseMove=1]="MouseMove",et[et.MouseInteraction=2]="MouseInteraction",et[et.Scroll=3]="Scroll",et[et.ViewportResize=4]="ViewportResize",et[et.Input=5]="Input",et[et.TouchMove=6]="TouchMove",et[et.MediaInteraction=7]="MediaInteraction",et[et.StyleSheetRule=8]="StyleSheetRule",et[et.CanvasMutation=9]="CanvasMutation",et[et.Font=10]="Font",et[et.Log=11]="Log",et[et.Drag=12]="Drag",et[et.StyleDeclaration=13]="StyleDeclaration",et[et.Selection=14]="Selection",et[et.AdoptedStyleSheet=15]="AdoptedStyleSheet",et[et.CustomElement=16]="CustomElement",et),eR=((er=eR||{})[er.MouseUp=0]="MouseUp",er[er.MouseDown=1]="MouseDown",er[er.Click=2]="Click",er[er.ContextMenu=3]="ContextMenu",er[er.DblClick=4]="DblClick",er[er.Focus=5]="Focus",er[er.Blur=6]="Blur",er[er.TouchStart=7]="TouchStart",er[er.TouchMove_Departed=8]="TouchMove_Departed",er[er.TouchEnd=9]="TouchEnd",er[er.TouchCancel=10]="TouchCancel",er),eN=((ei=eN||{})[ei.Mouse=0]="Mouse",ei[ei.Pen=1]="Pen",ei[ei.Touch=2]="Touch",ei),eA=((eo=eA||{})[eo["2D"]=0]="2D",eo[eo.WebGL=1]="WebGL",eo[eo.WebGL2=2]="WebGL2",eo);class eq{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;
1this.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 eL=(e,t)=>`${e}@${t}`;class eP{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 eq,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||!ee(o)||"TEXTAREA"===o.parentNode.tagName)return;let n=a(o.parentNode)?this.mirror.getId(Z(o)):this.mirror.getId(o.parentNode),s=i(o);if(-1===n||-1===s)return r.addNode(o);let c=A(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.inlineImages,onSerialize:e=>{K(e,this.mirror)&&this.iframeManager.addIframe(e),Q(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),X(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)}});c&&(e.push({parentId:n,nextId:s,node:c}),t.add(c.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!eU(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&o(e);for(let e of this.addedSet)ej(this.droppedSet,e)||eU(this.removes,e,this.mirror)?ej(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(!G(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;H(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:R(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,V(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=_(t);i=h({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:i,maskInputFn:this.maskInputFn})}if(H(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let o=this.attributeMap.get(e.target);
1if("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"),!T(t.tagName,r)&&(o.attributes[r]=O(this.doc,d(t.tagName),d(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(H(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),i=a(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);H(e.target,this.blockClass,this.blockSelector,!1)||G(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(eF(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(a(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[eL(r,i)]?eF(this.movedSet,t):this.removes.push({parentId:i,id:r,isShadow:!!(a(e.target)&&c(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(G(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[eL(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!H(e,this.blockClass,this.blockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),X(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 eF(e,t){e.delete(t),t.childNodes.forEach(t=>eF(e,t))}function eU(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 ej(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 eB=e=>i?(...t)=>{try{return e(...t)}catch(e){if(i&&!0===i(e))return;throw e}}:e,e$=[];function ez(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 eW(e,t){var r,i;let o=new eP;e$.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(eB(o.processMutations.bind(o)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function eV({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:o,sampling:n}){return q("scroll",eB(F(eB(n=>{let s=ez(n);if(!s||H(s,i,o,!0))return;let a=r.getId(s);if(s===t&&t.defaultView){let r=$(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 eH=["INPUT","TEXTAREA","SELECT"],eG=new WeakMap;function eJ(e){var t=[];if(eY("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||eY("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||eY("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||eY("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 eK(e,t,r){let i,o;return e?(e.ownerNode?i=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:i}):{}}function eQ({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}}),eB(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):()=>{}}function eX(e,t={}){let r,i=e.doc.defaultView;if(!i)return()=>{};!function(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:o,scrollCb:n,viewportResizeCb:s,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:u,styleDeclarationCb:l,canvasMutationCb:p,fontCb:h,selectionCb:d,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),o(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),n(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),s(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),l(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),p(...e)}
1,e.fontCb=(...e)=>{t.font&&t.font(...e),h(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),d(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}(e,t),e.recordDOM&&(r=eW(e,e.doc));let o=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=F(eB(t=>{let r=Date.now()-o;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],o=null}),s),u=eB(F(eB(e=>{let t=ez(e),{clientX:r,clientY:n}=J(e)?e.changedTouches[0]:e;o||(o=B()),a.push({x:r,y:n,id:i.getId(t),timeOffset:B()-o}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?eD.Drag:e instanceof MouseEvent?eD.MouseMove:eD.TouchMove)}),n,{trailing:!1})),l=[q("mousemove",u,r),q("touchmove",u,r),q("drag",u,r)];return eB(()=>{l.forEach(e=>e())})}(e),n=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(eR).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(n=>{let s=d(n),u=t=>{let s=ez(t);if(H(s,i,o,!0))return;let a=null,u=n;if("pointerType"in t){switch(t.pointerType){case"mouse":a=eN.Mouse;break;case"touch":a=eN.Touch;break;case"pen":a=eN.Pen}a===eN.Touch?eR[n]===eR.MouseDown?u="TouchStart":eR[n]===eR.MouseUp&&(u="TouchEnd"):eN.Pen}else J(t)&&(a=eN.Touch);null!==a?(c=a,(u.startsWith("Touch")&&a===eN.Touch||u.startsWith("Mouse")&&a===eN.Mouse)&&(a=null)):eR[n]===eR.Click&&(a=c,c=null);let l=J(t)?t.changedTouches[0]:t;if(!l)return;let p=r.getId(s),{clientX:h,clientY:d}=l;eB(e)(Object.assign({type:eR[u],id:p,x:h,y:d},null!==a&&{pointerType:a}))};if(window.PointerEvent)switch(eR[n]){case eR.MouseDown:case eR.MouseUp:s=s.replace("mouse","pointer");break;case eR.TouchStart:case eR.TouchEnd:return}a.push(q(s,u,t))}),eB(()=>{a.forEach(e=>e())})}(e),s=eV(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,i=-1;return q("resize",eB(F(eB(()=>{let t=z(),o=W();(r!==t||i!==o)&&(e({width:Number(o),height:Number(t)}),r=t,i=o)}),200)),t)}(e,{win:i}),c=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=ez(e),u=e.isTrusted,p=r&&r.tagName;if(r&&"OPTION"===p&&(r=r.parentElement),!r||!p||0>eH.indexOf(p)||H(r,i,o,!0)||r.classList.contains(n)||s&&r.matches(s))return;let f=r.value,g=!1,m=_(r)||"";"radio"===m||"checkbox"===m?g=r.checked:(a[p.toLowerCase()]||a[m])&&(f=h({element:r,maskInputOptions:a,tagName:p,type:m,value:f,maskInputFn:c})),d(r,l?{text:f,isChecked:g,userTriggered:u}:{text:f,isChecked:g});let y=r.name;"radio"===m&&y&&g&&t.querySelectorAll(`input[type="radio"][name="${y}"]`).forEach(e=>{if(e!==r){let t=e.value;d(e,l?{text:t,isChecked:!g,userTriggered:!1}:{text:t,isChecked:!g})}})}function d(t,i){let o=eG.get(t);if(!o||o.text!==i.text||o.isChecked!==i.isChecked){eG.set(t,i);let o=r.getId(t);eB(e)(Object.assign(Object.assign({},i),{id:o}))}}let f=("last"===u.input?["change"]:["input","change"]).map(e=>q(e,eB(p),t)),g=t.defaultView;if(!g)return()=>{f.forEach(e=>e())};let m=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),y=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&f.push(...y.map(e=>U(e[0],e[1],{set(){eB(p)({target:this,isTrusted:!1})}},!1,g))),eB(()=>{f.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:o,doc:n}){let s=eB(n=>F(eB(o=>{let s=ez(o);if(!s||H(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=[q("play",s(0),n),q("pause",s(1),n),q("seeked",s(2),n),q("volumechange",s(3),n),q("ratechange",s(4),n)];return eB(()=>
1{a.forEach(e=>e())})}(e),l=()=>{},p=()=>{},f=()=>{},g=()=>{};e.recordDOM&&(l=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:eB((i,o,n)=>{let[s,a]=n,{id:c,styleId:u}=eK(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:eB((i,o,n)=>{let[s]=n,{id:a,styleId:c}=eK(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:eB((i,o,n)=>{let[s]=n,{id:a,styleId:c}=eK(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:eB((i,o,n)=>{let[s]=n,{id:a,styleId:c}=eK(o,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),i.apply(o,n)})}));let c={};eZ("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(eZ("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),eZ("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),eZ("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:eB((i,o,n)=>{let[s,a]=n,{id:c,styleId:u}=eK(o.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:[...eJ(o),a||0]}]}),i.apply(o,n)})}),o.prototype.deleteRule=new Proxy(u[i].deleteRule,{apply:eB((i,o,n)=>{let[s]=n,{id:a,styleId:c}=eK(o.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...eJ(o),s]}]}),i.apply(o,n)})})}),eB(()=>{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}),p=eQ(e,e.doc),f=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:eB((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}=eK(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:eJ(s.parentRule)}),o.apply(s,a)})});let s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:eB((o,n,a)=>{var c;let[u]=a;if(r.has(u))return s.apply(n,[u]);let{id:l,styleId:p}=eK(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:eJ(n.parentRule)}),o.apply(n,a)})}),eB(()=>{o.CSSStyleDeclaration.prototype.setProperty=n,o.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:i}),e.collectFonts&&(g=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=j(t.fonts,"add",function(t){return function(r){return setTimeout(eB(()=>
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),eB(()=>{i.forEach(e=>e())})}(e)));let m=function(e){let{doc:t,mirror:r,blockClass:i,blockSelector:o,selectionCb:n}=e,s=!0,a=eB(()=>{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);H(n,i,o,!0)||H(c,i,o,!0)||a.push({start:r.getId(n),startOffset:s,end:r.getId(c),endOffset:u})}n({ranges:a})});return a(),q("selectionchange",a)}(e),y=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?j(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),v=[];for(let t of e.plugins)v.push(t.observer(t.callback,i,t.options));return eB(()=>{e$.forEach(e=>e.reset()),null==r||r.disconnect(),o(),n(),s(),a(),c(),u(),l(),p(),f(),g(),m(),y(),v.forEach(e=>e())})}function eY(e){return void 0!==window[e]}function eZ(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class e0{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 e1{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new e0(v),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new e0(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 eT.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:eT.IncrementalSnapshot,data:{source:eD.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case eT.Meta:case eT.Load:case eT.DomContentLoaded:break;case eT.Plugin:return t;case eT.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case eT.IncrementalSnapshot:switch(t.data.source){case eD.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 eD.Drag:case eD.TouchMove:case eD.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case eD.ViewportResize:return!1;case eD.MediaInteraction:case eD.MouseInteraction:case eD.Scroll:case eD.CanvasMutation:case eD.Input:return this.replaceIds(t.data,e,["id"]),t;case eD.StyleSheetRule:case eD.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case eD.Font:return t;case eD.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case eD.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===eE.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class e2{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(!c(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let r=eW(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(eV(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(eQ({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(j(e.prototype,"attachShadow",function(e){return function(i){let o=e.call(this,i);return this.shadowRoot&&ee(this)&&r.addShadowRoot(this.shadowRoot,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var e3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e6="undefined"==typeof Uint8Array?[]:new Uint8Array(256),e5=0;e5<e3.length;e5++)e6[e3.charCodeAt(e5)]=e5;var e4=function(e){var t,r=new Uint8Array(e),i=r.length,o="";for(t=0;t<i;t+=3)o+=e3[r[t]>>2],o+=e3[(3&r[t])<<4|r[t+1]>>4],o+=e3[(15&r[t+1])<<2|r[t+2]>>6],o+=e3[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 e8=new Map,e9=(e,t,r)=>{let i;if(!e||!(te(e,t)||"object"==typeof e))return;let o=e.constructor.name,n=((i=e8.get(r))||(i=new Map,e8.set(r,i)),i.has(o)||i.set(o,[]),i.get(o)),s=n.indexOf(e);return -1===s&&(s=n.length,n.push(e)),s},e7=(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:e4(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(te(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:e9(t,r,i)};return t})(e,t,r)),te=(e,t)=>
1!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function tt(e,t,r,i){let o=[];try{let n=j(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...n){if(!H(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()=>{o.forEach(e=>e())}}function tr(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=j(e,n,function(e){return function(...a){let c=e.apply(this,a);if(e9(c,s,this),"tagName"in this.canvas&&!H(this.canvas,i,o,!0)){let e=e7(a,s,this),i={type:t,property:n,args:e};r(this.canvas,i)}return c}});a.push(c)}catch(o){let i=U(e,n,{set(e){r(this.canvas,{type:t,property:n,args:[e],setter:!0})}});a.push(i)}return a}var ti=(en=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,_)}})}}()},function(e){var t;return new Worker(es=es||(t=new Blob(function(e,t){var r=null,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}(en,null),{type:"application/javascript"}),URL.createObjectURL(t)),e)});class to{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)};const{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=tt(t,r,i,!0),a=new Map,c=new ti;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:eA["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=>{let s;if(l&&e-l<u){n=requestAnimationFrame(p);return}
1l=e,(s=[],t.document.querySelectorAll("canvas").forEach(e=>{H(e,r,i,!0)||s.push(e)}),s).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){var i,o;let n;this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let s=tt(e,t,r,!1),a=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=j(t.CanvasRenderingContext2D.prototype,n,function(o){return function(...s){return H(this.canvas,r,i,!0)||setTimeout(()=>{let r=e7(s,t,this);e(this.canvas,{type:eA["2D"],property:n,args:r})},0),o.apply(this,s)}});o.push(s)}catch(i){let r=U(t.CanvasRenderingContext2D.prototype,n,{set(t){e(this.canvas,{type:eA["2D"],property:n,args:[t],setter:!0})}});o.push(r)}return()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),c=(i=this.processMutation.bind(this),o=this.mirror,(n=[]).push(...tr(e.WebGLRenderingContext.prototype,eA.WebGL,i,t,r,o,e)),void 0!==e.WebGL2RenderingContext&&n.push(...tr(e.WebGL2RenderingContext.prototype,eA.WebGL2,i,t,r,o,e)),()=>{n.forEach(e=>e())});this.resetObservers=()=>{s(),a(),c()}}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 tn{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Y,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:l(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 ts{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 ta(e){return Object.assign(Object.assign({},e),{timestamp:B()})}let tc=!1,tu=new p;function tl(e={}){let t,{emit:r,checkoutEveryNms:a,checkoutEveryNth:c,blockClass:u="rr-block",blockSelector:l=null,ignoreClass:h="rr-ignore",ignoreSelector:d=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:D=!1,collectFonts:R=!1,inl
1ineImages:N=!1,plugins:L,keepIframeSrcFn:P=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:U}=e;i=U;let j=!O||window.parent===window,B=!1;if(!j)try{window.parent.document&&(B=!1)}catch(e){B=!0}if(j&&!r)throw Error("emit function is required");void 0!==E&&void 0===M.mousemove&&(M.mousemove=E),tu.reset();let V=!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},H=!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 L||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!B&&(e=w(e)),e};o=(e,i)=>{var o;if((null==(o=e$[0])?void 0:o.isFrozen())&&e.type!==eT.FullSnapshot&&(e.type!==eT.IncrementalSnapshot||e.data.source!==eD.Mutation)&&e$.forEach(e=>e.unfreeze()),j)null==r||r(J(e),i);else if(B){let t={type:"rrweb",event:J(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===eT.FullSnapshot)t=e,G=0;else if(e.type===eT.IncrementalSnapshot){if(e.data.source===eD.Mutation&&e.data.isAttachIframe)return;G++;let r=c&&G>=c,i=a&&e.timestamp-t.timestamp>a;(r||i)&&n(!0)}};let Y=e=>{o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.Mutation},e)}))},Z=e=>o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.Scroll},e)})),ee=e=>o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.CanvasMutation},e)})),et=new tn({mutationCb:Y,adoptedStyleSheetCb:e=>o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.AdoptedStyleSheet},e)}))}),er=new e1({mirror:tu,mutationCb:Y,stylesheetManager:et,recordCrossOriginIframes:O,wrappedEmit:o});for(let e of L||[])e.getMirror&&e.getMirror({nodeMirror:tu,crossOriginIframeMirror:er.crossOriginIframeMirror,crossOriginIframeStyleMirror:er.crossOriginIframeStyleMirror});let ei=new ts;s=new to({recordCanvas:C,mutationCb:ee,win:window,blockClass:u,blockSelector:l,mirror:tu,sampling:M.canvas,dataURLOptions:I});let eo=new e2({mutationCb:Y,scrollCb:Z,bypassOptions:{blockClass:u,blockSelector:l,maskTextClass:f,maskTextSelector:_,inlineStylesheet:g,maskInputOptions:V,dataURLOptions:I,maskTextFn:S,maskInputFn:b,recordCanvas:C,inlineImages:N,sampling:M,slimDOMOptions:H,iframeManager:er,stylesheetManager:et,canvasManager:s,keepIframeSrcFn:P,processedNodeManager:ei},mirror:tu});n=(e=!1)=>{if(!x)return;o(ta({type:eT.Meta,data:{href:window.location.href,width:W(),height:z()}}),e),et.reset(),eo.init(),e$.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new p,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:h,maskInputFn:d,slimDOM:f=!1,dataURLOptions:_,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:k=()=>!1}=t||{};return A(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:h,maskInputFn:d,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:tu,blockClass:u,blockSelector:l,maskTextClass:f,maskTextSelector:_,inlineStylesheet:g,maskAllInputs:V,maskTextFn:S,slimDOM:H,dataURLOptions:I,recordCanvas:C,inl
1ineImages:N,onSerialize:e=>{K(e,tu)&&er.addIframe(e),Q(e,tu)&&et.trackLinkElement(e),X(e)&&eo.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{er.attachIframe(e,t),eo.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{et.attachLinkElement(e,t)},keepIframeSrcFn:P});if(!t)return console.warn("Failed to snapshot the document");o(ta({type:eT.FullSnapshot,data:{node:t,initialOffset:$(window)}}),e),e$.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&et.adoptStyleSheets(document.adoptedStyleSheets,tu.getId(document))};try{let e=[],t=e=>{var t;return eB(eX)({mutationCb:Y,mousemoveCb:(e,t)=>o(ta({type:eT.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.MouseInteraction},e)})),scrollCb:Z,viewportResizeCb:e=>o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.ViewportResize},e)})),inputCb:e=>o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.Input},e)})),mediaInteractionCb:e=>o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.MediaInteraction},e)})),styleSheetRuleCb:e=>o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.StyleSheetRule},e)})),styleDeclarationCb:e=>o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.StyleDeclaration},e)})),canvasMutationCb:ee,fontCb:e=>o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.Font},e)})),selectionCb:e=>{o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.Selection},e)}))},customElementCb:e=>{o(ta({type:eT.IncrementalSnapshot,data:Object.assign({source:eD.CustomElement},e)}))},blockClass:u,ignoreClass:h,ignoreSelector:d,maskTextClass:f,maskTextSelector:_,maskInputOptions:V,inlineStylesheet:g,sampling:M,recordDOM:x,recordCanvas:C,inlineImages:N,userTriggeredOnInput:D,collectFonts:R,doc:e,maskInputFn:b,maskTextFn:S,keepIframeSrcFn:P,blockSelector:l,slimDOMOptions:H,dataURLOptions:I,mirror:tu,iframeManager:er,stylesheetManager:et,shadowDomManager:eo,processedNodeManager:ei,canvasManager:s,ignoreCSSAttributes:F,plugins:(null==(t=null==L?void 0:L.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>o(ta({type:eT.Plugin,data:{plugin:e.name,payload:t}}))})))||[]},k)};er.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{n(),e.push(t(document)),tc=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(q("DOMContentLoaded",()=>{o(ta({type:eT.DomContentLoaded,data:{}})),"DOMContentLoaded"===T&&r()})),e.push(q("load",()=>{o(ta({type:eT.Load,data:{}})),"load"===T&&r()},window))),()=>{e.forEach(e=>e()),ei.destroy(),tc=!1,i=void 0}}catch(e){console.warn(e)}}tl.addCustomEvent=(e,t)=>{if(!tc)throw Error("please add custom event after start recording");o(ta({type:eT.Custom,data:{tag:e,payload:t}}))},tl.freezePage=()=>{e$.forEach(e=>e.freeze())},tl.takeFullSnapshot=e=>{if(!tc)throw Error("please take full snapshot after start recording");n(e)},tl.mirror=tu;var tp=((ea=tp||{})[ea.DomContentLoaded=0]="DomContentLoaded",ea[ea.Load=1]="Load",ea[ea.FullSnapshot=2]="FullSnapshot",ea[ea.IncrementalSnapshot=3]="IncrementalSnapshot",ea[ea.Meta=4]="Meta",ea[ea.Custom=5]="Custom",ea[ea.Plugin=6]="Plugin",ea),th=((ec=th||{})[ec.Mutation=0]="Mutation",ec[ec.MouseMove=1]="MouseMove",ec[ec.MouseInteraction=2]="MouseInteraction",ec[ec.Scroll=3]="Scroll",ec[ec.ViewportResize=4]="ViewportResize",ec[ec.Input=5]="Input",ec[ec.TouchMove=6]="TouchMove",ec[ec.MediaInteraction=7]="MediaInteraction",ec[ec.StyleSheetRule=8]="StyleSheetRule",ec[ec.CanvasMutation=9]="CanvasMutation",ec[ec.Font=10]="Font",ec[ec.Log=11]="Log",ec[ec.Drag=12]="Drag",ec[ec.StyleDeclaration=13]="StyleDeclaration",ec[ec.Selection=14]="Selection",ec[ec.AdoptedStyleSheet=15]="AdoptedStyleSheet",ec[ec.CustomElement=16]="CustomElement",ec),td={DEBUG:!1,LIB_VERSION:"2.55.0"};if("undefined"==typeof window){var tf={hostname:""};ex={navigator:{userAgent:""},document:{location:tf,referrer:""},screen:{width:0,height:0},location:tf}}else ex=window;var t_=Array.prototype,tg=Function.prototype,tm=Object.prototype,ty=t_.slice,tv=tm.toString,tb=tm.hasOwnProperty,tS=ex.console,tk=ex.navigator,tw=ex.document,tM=ex.opera,tI=ex.screen,tE=tk.userAgent,tx=tg.bind,tC=t_.forEach,tO=t_.indexOf,tT=t_.map,tD=Array.isArray,tR={},tN={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},tA={log:function(){if(td.DEBUG&&!tN.isUndefined(tS)&&tS)try{tS.log.apply(tS,arguments)}catch(e){tN.each(arguments,function(e){tS.log(e)})}},warn:function(){if(td.DEBUG&&!tN.isUndefined(tS)&&tS){var e=["Mixpanel warning:"].
1concat(tN.toArray(arguments));try{tS.warn.apply(tS,e)}catch(t){tN.each(e,function(e){tS.warn(e)})}}},error:function(){if(td.DEBUG&&!tN.isUndefined(tS)&&tS){var e=["Mixpanel error:"].concat(tN.toArray(arguments));try{tS.error.apply(tS,e)}catch(t){tN.each(e,function(e){tS.error(e)})}}},critical:function(){if(!tN.isUndefined(tS)&&tS){var e=["Mixpanel error:"].concat(tN.toArray(arguments));try{tS.error.apply(tS,e)}catch(t){tN.each(e,function(e){tS.error(e)})}}}},tq=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(tA,arguments)}},tL=function(e){return{log:tq(tA.log,e),error:tq(tA.error,e),critical:tq(tA.critical,e)}};tN.bind=function(e,t){var r,i;if(tx&&e.bind===tx)return tx.apply(e,ty.call(arguments,1));if(!tN.isFunction(e))throw TypeError();return r=ty.call(arguments,2),i=function(){if(!(this instanceof i))return e.apply(t,r.concat(ty.call(arguments)));var o={};o.prototype=e.prototype;var n=new o;o.prototype=null;var s=e.apply(n,r.concat(ty.call(arguments)));return Object(s)===s?s:n}},tN.each=function(e,t,r){if(null!=e){if(tC&&e.forEach===tC)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)===tR)return}else for(var n in e)if(tb.call(e,n)&&t.call(r,e[n],n,e)===tR)return}},tN.extend=function(e){return tN.each(ty.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},tN.isArray=tD||function(e){return"[object Array]"===tv.call(e)},tN.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},tN.isArguments=function(e){return!!(e&&tb.call(e,"callee"))},tN.toArray=function(e){return e?e.toArray?e.toArray():tN.isArray(e)||tN.isArguments(e)?ty.call(e):tN.values(e):[]},tN.map=function(e,t,r){if(tT&&e.map===tT)return e.map(t,r);var i=[];return tN.each(e,function(e){i.push(t.call(r,e))}),i},tN.keys=function(e){var t=[];return null===e||tN.each(e,function(e,r){t[t.length]=r}),t},tN.values=function(e){var t=[];return null===e||tN.each(e,function(e){t[t.length]=e}),t},tN.include=function(e,t){var r=!1;return null===e?r:tO&&e.indexOf===tO?-1!=e.indexOf(t):(tN.each(e,function(e){if(r||(r=e===t))return tR}),r)},tN.includes=function(e,t){return -1!==e.indexOf(t)},tN.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},tN.isObject=function(e){return e===Object(e)&&!tN.isArray(e)},tN.isEmptyObject=function(e){if(tN.isObject(e)){for(var t in e)if(tb.call(e,t))return!1;return!0}return!1},tN.isUndefined=function(e){return void 0===e},tN.isString=function(e){return"[object String]"==tv.call(e)},tN.isDate=function(e){return"[object Date]"==tv.call(e)},tN.isNumber=function(e){return"[object Number]"==tv.call(e)},tN.isElement=function(e){return!!(e&&1===e.nodeType)},tN.encodeDates=function(e){return tN.each(e,function(t,r){tN.isDate(t)?e[r]=tN.formatDate(t):tN.isObject(t)&&(e[r]=tN.encodeDates(t))}),e},tN.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},tN.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())},tN.strip_empty_properties=function(e){var t={};return tN.each(e,function(e,r){tN.isString(e)&&e.length>0&&(t[r]=e)}),t},tN.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):tN.isArray(e)?(r=[],tN.each(e,function(e){r.push(tN.truncate(e,t))})):tN.isObject(e)?(r={},tN.each(e,function(e,i){r[i]=tN.truncate(e,t)})):r=e,r},tN.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]"===tv.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)tb.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})},ed={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},ef=function(e){var t=SyntaxError(e);throw t.at=eu,t.text=ep,t},e_=function(e){return e&&e!==el&&ef("Expected '"+e+"' instead of '"+el+"'"),el=ep.charAt(eu),eu+=1,el},eg=function(){var e,t="";for("-"===el&&(t="-",e_("-"));el>="0"&&el<="9";)t+=el,e_();if("."===el)for(t+=".";e_()&&el>="0"&&el<="9";)t+=el;if("e"===el||"E"===el)for(t+=el,e_(),("-"===el||"+"===el)&&(t+=el,e_());el>="0"&&el<="9";)t+=el,e_();if(isFinite(e=+t))return e;ef("Bad number")},em=function(){var e,t,r,i="";if('"'===el)for(;e_();){if('"'===el)return e_(),i;if("\\"===el)if(e_(),"u"===el){for(t=0,r=0;t<4&&isFinite(e=parseInt(e_(),16));t+=1)r=16*r+e;i+=String.fromCharCode(r)}else if("string"==typeof ed[el])i+=ed[el];else break;else i+=el}ef("Bad string")},ey=function(){for(;el&&el<=" ";)e_()},ev=function(){switch(el){case"t":return e_("t"),e_("r"),e_("u"),e_("e"),!0;case"f":return e_("f"),e_("a"),e_("l"),e_("s"),e_("e"),!1;case"n":return e_("n"),e_("u"),e_("l"),e_("l"),null}ef('Unexpected "'+el+'"')},eb=function(){var e=[];
1if("["===el){if(e_("["),ey(),"]"===el)return e_("]"),e;for(;el;){if(e.push(eh()),ey(),"]"===el)return e_("]"),e;e_(","),ey()}}ef("Bad array")},eS=function(){var e,t={};if("{"===el){if(e_("{"),ey(),"}"===el)return e_("}"),t;for(;el;){if(e=em(),ey(),e_(":"),Object.hasOwnProperty.call(t,e)&&ef('Duplicate key "'+e+'"'),t[e]=eh(),ey(),"}"===el)return e_("}"),t;e_(","),ey()}}ef("Bad object")},eh=function(){switch(ey(),el){case"{":return eS();case"[":return eb();case'"':return em();case"-":return eg();default:return el>="0"&&el<="9"?eg():ev()}},tN.JSONDecode=function(e){var t;return ep=e,eu=0,el=" ",t=eh(),ey(),el&&ef("Syntax error"),t},tN.base64Encode=function(e){var t,r,i,o,n,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,u=0,l="",p=[];if(!e)return e;e=tN.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},tN.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},ek=function(){var e,t=+new Date;if(ex.performance&&ex.performance.now)e=ex.performance.now();else for(e=0;t==+new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},ew=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<tE.length;e++)t=tE.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)},tN.UUID=function(){var e=(tI.height*tI.width).toString(16);return ek()+"-"+Math.random().toString(16).replace(".","")+"-"+ew()+"-"+e+"-"+ek()};var tP=["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"];tN.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<tP.length;t++)if(-1!==e.indexOf(tP[t]))return!0;return!1},tN.HTTPBuildQuery=function(e,t){var r,i,o=[];return tN.isUndefined(t)&&(t="&"),tN.each(e,function(e,t){r=encodeURIComponent(e.toString()),i=encodeURIComponent(t),o[o.length]=i+"="+r}),o.join(t)},tN.getQueryParam=function(e,t){var r=RegExp("[\\?&]"+(t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"))+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch(e){tA.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},tN.cookie={get:function(e){for(var t=e+"=",r=tw.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;try{t=tN.JSONDecode(tN.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=tH(tw.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"),tw.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=tH(tw.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 tw.cookie=h,h},remove:function(e,t,r){tN.cookie.set(e,"",-1,t,!1,!1,r)}};var tF=null,tU=function(e,t){if(null!==tF&&!t)return tF;var r=!0;try{e=e||window.localStorage;var i="__mplss_"+tz(8);e.setItem(i,"xyz"),"xyz"!==e.getItem(i)&&(r=!1),e.removeItem(i)}catch(e){r=!1}return tF=r,r};tN.localStorage={is_supported:function(e){var t=tU(null,e);return t||tA.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){tA.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){tN.localStorage.error(e)}return null},parse:function(e){try{return tN.JSONDecode(tN.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(e){tN.localStorage.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){tN.localStorage.error(e)}}},tN.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}
1,function(t,r,i,o,n){if(!t)return void tA.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 tN.isFunction(c)&&(r=c(t)),i=a.call(s,t),(!1===r||!1===i)&&(o=!1),o}})}}}();var tj=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');tN.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!tw.getElementsByTagName)return[];var i=r.split(" "),o=[tw];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=tw.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&&tN.isString(h[_].className)&&(a=h[_],(" "+a.className+" ").replace(t," ").indexOf(" "+c+" ")>=0)&&(o[y++]=h[_]);continue}var u=l.match(tj);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 tN.isElement(e)?[e]:tN.isObject(e)&&!tN.isUndefined(e.length)?e:r.call(this,e)}}();var tB=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],t$=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","ttclid","twclid","wbraid"];tN.info={campaignParams:function(e){var t="",r={};return tN.each(tB,function(i){(t=tN.getQueryParam(tw.URL,i)).length?r[i]=t:void 0!==e&&(r[i]=e)}),r},clickParams:function(){var e="",t={};return tN.each(t$,function(r){(e=tN.getQueryParam(tw.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return tN.extend(tN.info.campaignParams(),tN.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=tN.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var i=tN.getQueryParam(e,"yahoo"!=t?"q":"p");
1i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,r){if(t=t||"",r||tN.includes(e," OPR/"))return tN.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(tN.includes(e,"IEMobile")||tN.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(tN.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(tN.includes(e,"Edge")||tN.includes(e,"Edg/"))return"Microsoft Edge";else if(tN.includes(e,"FBIOS"))return"Facebook Mobile";else if(tN.includes(e,"Chrome"))return"Chrome";else if(tN.includes(e,"CriOS"))return"Chrome iOS";else if(tN.includes(e,"UCWEB")||tN.includes(e,"UCBrowser"))return"UC Browser";else if(tN.includes(e,"FxiOS"))return"Firefox iOS";else if(tN.includes(t,"Apple"))return tN.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(tN.includes(e,"Android"))return"Android Mobile";else if(tN.includes(e,"Konqueror"))return"Konqueror";else if(tN.includes(e,"Firefox"))return"Firefox";else if(tN.includes(e,"MSIE")||tN.includes(e,"Trident/"))return"Internet Explorer";else if(tN.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+)?)/}[tN.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(tE))return/Phone/.test(tE)||/WPDesktop/.test(tE)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(tE))return"iOS";if(/Android/.test(tE))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(tE))return"BlackBerry";if(/Mac/i.test(tE))return"Mac OS X";else if(/Linux/.test(tE))return"Linux";else if(/CrOS/.test(tE))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 ex.location.href},properties:function(e){return"object"!=typeof e&&(e={}),tN.extend(tN.strip_empty_properties({$os:tN.info.os(),$browser:tN.info.browser(tE,tk.vendor,tM),$referrer:tw.referrer,$referring_domain:tN.info.referringDomain(tw.referrer),$device:tN.info.device(tE)}),{$current_url:tN.info.currentUrl(),$browser_version:tN.info.browserVersion(tE,tk.vendor,tM),$screen_height:tI.height,$screen_width:tI.width,mp_lib:"web",$lib_version:td.LIB_VERSION,$insert_id:tz(),time:tN.timestamp()/1e3},tN.strip_empty_properties(e))},people_properties:function(){return tN.extend(tN.strip_empty_properties({$os:tN.info.os(),$browser:tN.info.browser(tE,tk.vendor,tM)}),{$browser_version:tN.info.browserVersion(tE,tk.vendor,tM)})},mpPageViewProperties:function(){return tN.strip_empty_properties({current_page_title:tw.title,current_domain:ex.location.hostname,current_url_path:ex.location.pathname,current_url_protocol:ex.location.protocol,current_url_search:ex.location.search})}};var tz=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},tW=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,tV=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,tH=function(e){var t=tV,r=e.split("."),i=r[r.length-1];(i.length>4||"com"===i||"org"===i)&&(t=tW);var o=e.match(t);return o?o[0]:""},tG=null,tJ=null;function tK(e,t){t4(!0,e,t)}function tQ(e,t){t4(!1,e,t)}function tX(e,t){return"1"===t5(e,t)}function tY(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||ex,r=t.navigator||{},i=!1;return tN.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){tN.includes([!0,1,"1","yes"],e)&&(i=!0)}),i}(t))return tA.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"===t5(e,t);return r&&tA.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function tZ(e){return t8(e,function(e){return this.get_config(e)})}function t0(e){return t8(e,function(e){return this._get_config(e)})}function t1(e){return t8(e,function(e){return this._get_config(e)})}function t2(e,t){t3(t=t||{}).remove(t6(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function t3(e){return"localStorage"===(e=e||{}).persistenceType?tN.localStorage:tN.cookie}function t6(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function t5(e,t){return t3(t).get(t6(e,t))}function t4(e,t,r){tN.isString(t)&&t.length?(t3(r=r||{}).set(t6(t,r),+!!e,tN.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})):tA.error("gdpr."+(e?"optIn":"optOut")+" called with an invali
1d token")}function t8(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=tY(i,{ignoreDnt:o,persistenceType:n,persistencePrefix:s,window:a}))}catch(e){tA.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&&(tG=JSON.stringify,tJ=JSON.parse),tG=tG||tN.JSONEncode,tJ=tJ||tN.JSONDecode,tN.toArray=tN.toArray,tN.isObject=tN.isObject,tN.JSONEncode=tN.JSONEncode,tN.JSONDecode=tN.JSONDecode,tN.isBlockedUA=tN.isBlockedUA,tN.isEmptyObject=tN.isEmptyObject,tN.info=tN.info,tN.info.device=tN.info.device,tN.info.browser=tN.info.browser,tN.info.browserVersion=tN.info.browserVersion,tN.info.properties=tN.info.properties;var t9=tL("lock"),t7=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};t7.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){t9.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(!tU(c,!0))throw Error("localStorage support dropped while acquiring lock");return!1},g=function(){c.setItem(u,i),f(_,function(){c.getItem(u)===i?m():d(function(){c.getItem(l)!==i?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(tU(c,!0))g();else throw Error("localStorage support check failed")}catch(e){h(e)}};var re=tL("batch"),rt=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||tN.bind(re.error,re),this.lock=new t7(e,{storage:this.storage}),this.usePersistence=t.usePersistence,this.pid=t.pid||null,this.memQueue=[]};rt.prototype.enqueue=function(e,t,r){var i={id:tz(),flushAfter:new Date().getTime()+2*t,payload:e};this.usePersistence?this.lock.withLock(tN.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),tN.bind(function(e){this.reportError("Error acquiring storage lock",e),r&&r(!1)},this),this.pid):(this.memQueue.push(i),r&&r(!0))},rt.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={};tN.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 rr=function(e,t){var r=[];return tN.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};rt.prototype.removeItemsByID=function(e,t){var r={};if(tN.each(e,function(e){r[e]=!0}),this.memQueue=rr(this.memQueue,r),this.usePersistence){var i=tN.bind(function(){var t;try{var i=this.readFromStorage();if(i=rr(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)},tN.bind(function(e){var r=!1;if(this.reportError("Error acquiring storage lock",e),!tU(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 ri=function(e,t){var r=[];return tN.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};rt.prototype.updatePayloads=function(e,t){this.memQueue=ri(this.memQueue,e),this.usePersistence?this.lock.withLock(tN.bind(function(){var r;try{var i=this.readFromStorage();i=ri(i,e),r=this.saveToStorage(i)}catch(t){this.reportError("Error updating items",e),r=!1}t&&t(r)},this),tN.bind(function(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)},this),this.pid):t&&t(!0)},rt.prototype.readFromStorage=function(){var e;try{(e=this.storage.getItem(this.storageKey))&&(e=tJ(e),tN.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},rt.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,tG(e)),!0}catch(e){return this.reportError("Error saving queue",e),!1}},rt.prototype.clear=function(){this.memQueue=[],this.usePersistence&&this.storage.removeItem(this.storageKey)};var ro=tL("batch"),rn=function(e,t){this.errorReporter=t.errorReporter,this.queue=new rt(e,{errorReporter:tN.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};rn.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},rn.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},rn.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},rn.prototype.clear=function(){this.queue.clear()},rn.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},rn.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},rn.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(tN.bind(function(){this.stopped||this.flush()},this),this.flushInterval))},rn.prototype.flush=function(e){try{if(this.requestInProgress)return void ro.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(tN.each(o,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=tN.extend({},t.properties,{mp_sent_by_lib_version:td.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=tN.bind(function(s){this.requestInProgress=!1;try{var c=!1;if(e.unloading)this.queue.updatePayloads(a);else if(tN.isObject(s)&&"timeout"===s.error&&new Date().getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if(tN.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||"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(tN.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(tN.map(o,function(e){return e.id}),tN.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())}
1,this)),tN.each(o,tN.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"),ro.log("MIXPANEL REQUEST:",s),this.sendRequest(s,u,c)}catch(e){this.reportError("Error flushing request queue",e),this.resetFlush()}},rn.prototype.reportError=function(e,t){if(ro.error.apply(ro.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){ro.error(e)}};var rs=tL("recorder"),ra=ex.CompressionStream,rc={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},ru=new Set([th.MouseMove,th.MouseInteraction,th.Scroll,th.ViewportResize,th.Input,th.TouchMove,th.MediaInteraction,th.Drag,th.Selection]),rl=function(e){this._mixpanel=e,this._stopRecording=null,this.recEvents=[],this.seqNo=0,this.replayId=null,this.replayStartTime=null,this.sendBatchId=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this._initBatcher()};rl.prototype._initBatcher=function(){this.batcher=new rn("__mprec",{libConfig:rc,sendRequestFunc:tN.bind(this.flushEventsWithOptOut,this),errorReporter:tN.bind(this.reportError,this),flushOnlyOnInterval:!0,usePersistence:!1})},rl.prototype.get_config=function(e){return this._mixpanel.get_config(e)},rl.prototype.startRecording=function(e){if(null!==this._stopRecording)return void rs.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.get_config("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,rs.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.recEvents=[],this.seqNo=0,this.replayStartTime=null,this.replayId=tN.UUID(),e?this.batcher.stop():this.batcher.start();var t=tN.bind(function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(tN.bind(function(){rs.log("Idle timeout reached, restarting recording."),this.resetRecording()},this),this.get_config("record_idle_timeout_ms"))},this);this._stopRecording=tl({emit:tN.bind(function(e){this.batcher.enqueue(e),e.type===tp.IncrementalSnapshot&&ru.has(e.data.source)&&(this.batcher.stopped&&this.batcher.start(),t())},this),blockClass:this.get_config("record_block_class"),blockSelector:this.get_config("record_block_selector"),collectFonts:this.get_config("record_collect_fonts"),inlineImages:this.get_config("record_inline_images"),maskAllInputs:!0,maskTextClass:this.get_config("record_mask_text_class"),maskTextSelector:this.get_config("record_mask_text_selector")}),t(),this.maxTimeoutId=setTimeout(tN.bind(this.resetRecording,this),this.recordMaxMs)},rl.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)},rl.prototype.stopRecording=function(){null!==this._stopRecording&&(this._stopRecording(),this._stopRecording=null),this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),this.replayId=null,clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)},rl.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,tN.bind(this._onOptOut,this))},rl.prototype._onOptOut=function(e){0===e&&(this.recEvents=[],this.stopRecording())},rl.prototype._sendRequest=function(e,t,r){var i=tN.bind(function(e,t){200===e.status&&this.seqNo++,r({status:0,httpStatusCode:e.status,responseBody:t,retryAfter:e.headers.get("Retry-After")})},this);ex.fetch(this.get_config("api_host")+"/"+this.get_config("api_routes").record+"?"+new URLSearchParams(e),{method:"POST",headers:{Authorization:"Basic "+btoa(this.get_config("token")+":"),"Content-Type":"application/octet-stream"},body:t}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){r({error:e})})}).catch(function(e){r({error:e})})},rl.prototype._flushEvents=tZ(function(e,t,r){let i=e.length;if(i>0){var o=e[0].timestamp;0===this.seqNo&&(this.replayStartTime=o);var n=e[i-1].timestamp-this.replayStartTime,s={distinct_id:String(this._mixpanel.get_distinct_id()),seq:this.seqNo,batch_start_time:o/1e3,replay_id:this.replayId,replay_length_ms:n,replay_start_time:this.replayStartTime/1e3},a=tN.JSONEncode(e),c=this._mixpanel.get_property("$device_id");c&&(s.$device_id=c);var u=this._mixpanel.get_property("$user_id");u&&(s.$user_id=u),ra?new Response(new Blob([a],{type:"application/json"}
1).stream().pipeThrough(new ra("gzip"))).blob().then(tN.bind(function(e){s.format="gzip",this._sendRequest(s,e,r)},this)):(s.format="body",this._sendRequest(s,a,r))}}),rl.prototype.reportError=function(e,t){rs.error.apply(rs.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){rs.error(e)}},ex.__mp_recorder=rl;var rp=function(){};rp.prototype.create_properties=function(){},rp.prototype.event_handler=function(){},rp.prototype.after_track_handler=function(){},rp.prototype.init=function(e){return this.mp=e,this},rp.prototype.track=function(e,t,r,i){var o=this,n=tN.dom_query(e);return 0===n.length?void tA.error("The DOM query ("+e+") returned 0 elements"):(tN.each(n,function(e){tN.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)},rp.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))}},rp.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):tN.extend({},e)};var rh=function(){this.override_event="click"};tN.inherit(rh,rp),rh.prototype.create_properties=function(e,t){var r=rh.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},rh.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()},rh.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var rd=function(){this.override_event="submit"};tN.inherit(rd,rp),rd.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},rd.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var rf="$set",r_="$set_once",rg="$unset",rm="$add",ry="$append",rv="$union",rb="$remove",rS={set_action:function(e,t){var r={},i={};return tN.isObject(e)?tN.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[rf]=i,r},unset_action:function(e){var t={},r=[];return tN.isArray(e)||(e=[e]),tN.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[rg]=r,t},set_once_action:function(e,t){var r={},i={};return tN.isObject(e)?tN.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[r_]=i,r},union_action:function(e,t){var r={},i={};return tN.isObject(e)?tN.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=tN.isArray(e)?e:[e])},this):i[e]=tN.isArray(t)?t:[t],r[rv]=i,r},append_action:function(e,t){var r={},i={};return tN.isObject(e)?tN.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[ry]=i,r},remove_action:function(e,t){var r={},i={};return tN.isObject(e)?tN.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[rb]=i,r},delete_action:function(){var e={};return e.$delete="",e}},rk=function(){};tN.extend(rk.prototype,rS),rk.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},rk.prototype.set=t1(function(e,t,r){var i=this.set_action(e,t);return tN.isObject(e)&&(r=t),this._send_request(i,r)}),rk.prototype.set_once=t1(function(e,t,r){var i=this.set_once_action(e,t);return tN.isObject(e)&&(r=t),this._send_request(i,r)}),rk.prototype.unset=t1(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),rk.prototype.union=t1(function(e,t,r){tN.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)}),rk.prototype.delete=t1(function(e){var t=this.delete_action();return this._send_request(t,e)}),rk.prototype.remove=t1(function(e,t,r){var i=this.remove_action(e,t);return this._send_request(i,r)}),rk.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=tN.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)},rk.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},rk.prototype._get_config=function(e){return this._mixpanel.get_config(e)},rk.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},rk.prototype.remove=rk.prototype.remove,rk.prototype.set=rk.prototype.set,rk.prototype.set_once=rk.prototype.set_once,rk.prototype.union=rk.prototype.union,rk.prototype.unset=rk.prototype.unset,rk.prototype.toString=r
1k.prototype.toString;var rw=function(){};tN.extend(rw.prototype,rS),rw.prototype._init=function(e){this._mixpanel=e},rw.prototype.set=t0(function(e,t,r){var i=this.set_action(e,t);return tN.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),i[rf]=tN.extend({},tN.info.people_properties(),i[rf]),this._send_request(i,r)}),rw.prototype.set_once=t0(function(e,t,r){var i=this.set_once_action(e,t);return tN.isObject(e)&&(r=t),this._send_request(i,r)}),rw.prototype.unset=t0(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),rw.prototype.increment=t0(function(e,t,r){var i={},o={};return tN.isObject(e)?(tN.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void tA.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else o[t]=e},this),r=t):(tN.isUndefined(t)&&(t=1),o[e]=t),i[rm]=o,this._send_request(i,r)}),rw.prototype.append=t0(function(e,t,r){tN.isObject(e)&&(r=t);var i=this.append_action(e,t);return this._send_request(i,r)}),rw.prototype.remove=t0(function(e,t,r){tN.isObject(e)&&(r=t);var i=this.remove_action(e,t);return this._send_request(i,r)}),rw.prototype.union=t0(function(e,t,r){tN.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)}),rw.prototype.track_charge=t0(function(e,t,r){return!tN.isNumber(e)&&isNaN(e=parseFloat(e))?void tA.error("Invalid value passed to mixpanel.people.track_charge - must be a number"):this.append("$transactions",tN.extend({$amount:e},t),r)}),rw.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},rw.prototype.delete_user=function(){if(!this._identify_called())return void tA.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},rw.prototype.toString=function(){return this._mixpanel.toString()+".people"},rw.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=tN.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),tN.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),tN.truncate(n,255))},rw.prototype._get_config=function(e){return this._mixpanel.get_config(e)},rw.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},rw.prototype._enqueue=function(e){rf in e?this._mixpanel.persistence._add_to_people_queue(rf,e):r_ in e?this._mixpanel.persistence._add_to_people_queue(r_,e):rg in e?this._mixpanel.persistence._add_to_people_queue(rg,e):rm in e?this._mixpanel.persistence._add_to_people_queue(rm,e):ry in e?this._mixpanel.persistence._add_to_people_queue(ry,e):rb in e?this._mixpanel.persistence._add_to_people_queue(rb,e):rv in e?this._mixpanel.persistence._add_to_people_queue(rv,e):tA.error("Invalid call to _enqueue():",e)},rw.prototype._flush_one_queue=function(e,t,r,i){var o=this,n=tN.extend({},this._mixpanel.persistence.load_queue(e)),s=n;!tN.isUndefined(n)&&tN.isObject(n)&&!tN.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),tN.isUndefined(r)||r(t,i)}))},rw.prototype._flush=function(e,t,r,i,o,n,s){var a=this;this._flush_one_queue(rf,this.set,e),this._flush_one_queue(r_,this.set_once,i),this._flush_one_queue(rg,this.unset,n,function(e){return tN.keys(e)}),this._flush_one_queue(rm,this.increment,t),this._flush_one_queue(rv,this.union,o);var c=this._mixpanel.persistence.load_queue(ry);if(!tN.isUndefined(c)&&tN.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(ry,u),tN.isUndefined(r)||r(e,t)},p=c.length-1;p>=0;p--)u=(c=this._mixpanel.persistence.load_queue(ry)).pop(),a._mixpanel.persistence.save(),tN.isEmptyObject(u)||a.append(u,l);var h=this._mixpanel.persistence.load_queue(rb);if(!tN.isUndefined(h)&&tN.isArray(h)&&h.length)for(var d,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(rb,d),tN.isUndefined(s)||s(e,t)},_=h.length-1;_>=0;_--)d=(h=this._mixpanel.persistence.load_queue(rb)).pop(),a._mixpanel.persistence.save(),tN.isEmptyObject(d)||a.remove(d,f)},rw.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},rw.prototype.set=rw.prototype.set,rw.prototype.set_once=rw.prototype.set_once,rw.prototype.unset=rw.prototype.unset,rw.prototype.increment=rw.prototype.increment,rw.prototype.append=rw.prototype.append,rw.prototype.remove=rw.prototype.remove,rw.prototype.union=rw.prototype.union,rw.prototype.track_charge=rw.prototype.track_charge,rw.prototype.clear_charges=rw.prototype.clear_charges,rw.prototype.delete_user=rw.prototype.delete_user,rw.prototype.toString=rw.prototype.toString;var rM="__mps",rI="__mpso",rE="__mpus",rx="__mpa",rC="__mpap",rO="__mpr",rT="__mpu",rD="$people_distinct_id",rR="__alias",rN="__timers",rA=[rM,rI,rE,rx,rC,rO,rT,rD,rR,rN],rq=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&&(tA.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&tN.localStorage.is_supported()?this.storage=tN.localStorage:this.storage=tN.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};rq.prototype.properties=function(){var e={};return this.load(),tN.each(this.props,function(t,r){tN.include(rA,r)||(e[r]=t)}),e},rq.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=tN.extend({},e))}},rq.prototype.upgrade=function(){var e,t;this.storage===tN.localStorage?(e=tN.cookie.parse(this.name),tN.cookie.remove(this.name),tN.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===tN.cookie&&(t=tN.localStorage.parse(this.name),tN.localStorage.remove(this.name),t&&this.register_once(t))},rq.prototype.save=function(){this.disabled||this.storage.set(this.name,tN.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},rq.prototype.load_prop=function(e){return this.load(),this.props[e]},rq.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},rq.prototype.clear=function(){this.remove(),this.props={}},rq.prototype.register_once=function(e,t,r){return!!tN.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),tN.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},rq.prototype.register=function(e,t){return!!tN.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),tN.extend(this.props,e),this.save(),!0)},rq.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},rq.prototype.update_search_keyword=function(e){this.register(tN.info.searchInfo(e))},rq.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:tN.info.referringDomain(e)||"$direct"},"")},rq.prototype.get_referrer_info=function(){return tN.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},rq.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)},rq.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},rq.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},rq.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},rq.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},rq.prototype.get_cross_subdomain=function(){return this.cross_subdomain},rq.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},rq.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),i=t[e],o=this._get_or_create_queue(rf),n=this._get_or_create_queue(r_),s=this._get_or_create_queue(rg),a=this._get_or_create_queue(rm),c=this._get_or_create_queue(rv),u=this._get_or_create_queue(rb,[]),l=this._get_or_create_queue(ry,[]);r===rM?(tN.extend(o,i),this._pop_from_people_queue(rm,i),this._pop_from_people_queue(rv,i),this._pop_from_people_queue(rg,i)):r===rI?(tN.each(i,function(e,t){t in n||(n[t]=e)}),this._pop_from_people_queue(rg,i)):r===rE?tN.each(i,function(e){tN.each([o,n,a,c],function(t){e in t&&delete t[e]}),tN.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===rx?(tN.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(rg,i)):r===rT?(tN.each(i,function(e,t){tN.isArray(e)&&(t in c||(c[t]=[]),c[t]=c[t].concat(e))}),this._pop_from_people_queue(rg,i)):r===rO?(u.push(i),this._pop_from_people_queue(ry,i)):r===rC&&(l.push(i),this._pop_from_people_queue(rg,i)),tA.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),tA.log(t),this.save()},rq.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];tN.isUndefined(r)||tN.each(t,function(t,i){e===ry||e===rb?tN.each(r,function(e){e[i]===t&&delete e[i]}):delete r[i]},this)},rq.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},rq.prototype._get_queue_key=function(e){return e===rf?rM:e===r_?rI:e===rg?rE:e===rm?rx:e===ry?rC:e===rb?rO:e===rv?rT:void tA.error("Invalid queue:",e)},rq.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=tN.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},rq.prototype.set_event_timer=function(e,t){var r=this.load_prop(rN)||{};r[e]=t,this.props[rN]=r,this.save()},rq.prototype.remove_event_timer=function(e){var t=(this.load_prop(rN)||{})[e];return tN.isUndefined(t)||(delete this.props[rN][e],this.save()),t};var rL=function(e,t){throw Error(e+" not available in this build.")},rP=function(e){return e},rF=function(){},rU="mixpanel",rj="base64",rB="$device:",r$=ex.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,rz=!r$&&-1===tE.indexOf("MSIE")&&-1===tE.indexOf("Mozilla"),rW=null;tk.sendBeacon&&(rW=function(){return tk.sendBeacon.apply(tk,arguments)});var rV={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},rH={api_host:"https://api-js.mixpanel.com",api_routes:rV,api_method:"POST",api_transport:"XHR",api_payload_format:rj,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:rF,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:rF,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_inline_images:!1,record_mask_text_class:RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:864e5,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},rG=!1,rJ=function(){},rK=function(e,t,r){var i,o=r===rU?eO:eO[r];if(o&&0===eC)i=o;else{if(o&&!tN.isArray(o))return void tA.error("You have already initialized "+r);i=new rJ}if(i._cached_groups={},i._init(e,t,r),i.people=new rw,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var n=tN.info.campaignParams(null),s={},a=!1;tN.each(n,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&i.people.set_once(s)}return td.DEBUG=td.DEBUG||i.get_config("debug"),!tN.isUndefined(o)&&tN.isArray(o)&&(i._execute_array.call(i.people,o.people),i._execute_array(o)),i};rJ.prototype.init=function(e,t,r){if(tN.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===rU)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var i=rK(e,t,r);return eO[r]=i,i._loaded(),i},rJ.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var i={};if("api_payload_format"in t||(t.api_host||rH.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json"),this.set_config(tN.extend({},rH,i,t,{name:r,token:e,callback_fn:(r===rU?r:rU+"."+r)+"._jsc"})),this._jsc=rF,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(tN.localStorage.is_supported(!0)&&r$){if(this.init_batchers(),rW&&ex.addEventListener){var o=tN.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);ex.addEventListener("pagehide",function(e){e.persisted&&o()}),ex.addEventListener("visibilitychange",function(){"hidden"===tw.visibilityState&&o()})}}else this._batch_requests=!1,tA.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),tN.each(this.get_batcher_configs(),function(e){tA.log("Clearing batch queue "+e.queue_key),tN.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new rq(this.config),this.unpersisted_superprops={},this._gdpr_init();var n=tN.UUID();this.get_distinct_id()||this.register_once({distinct_id:rB+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()},rJ.prototype.start_session_recording=tZ(function(){if(!ex.MutationObserver)return void tA.critical("Browser does not support MutationObserver; skipping session recording");var e=tN.bind(function(){this._recorder=this._recorder||new ex.__mp_recorder(this),this._recorder.startRecording()},this);tN.isUndefined(ex.__mp_recorder)?rL(this.get_config("recorder_src"),e):e()}),rJ.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():tA.critical("Session recorder module not loaded")},rJ.prototype.get_session_recording_properties=function(){var e={};if(this._recorder){var t=this._recorder.replayId;t&&(e.$mp_replay_id=t)}return e},rJ.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=tN.info.campaignParams(null);tN.each(e,(function(e,t){this.unregister(t)}).bind(this))}},rJ.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(tw.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(tN.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(tw.referrer)},rJ.prototype._dom_loaded=function(){tN.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||tN.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},rJ.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(!rG)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},rJ.prototype._init_url_change_tracking=function(e){var t="";if(this.track_pageview()&&(t=tN.info.currentUrl()),tN.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){ex.addEventListener("popstate",function(){ex.dispatchEvent(new Event("mp_locationchange"))}),ex.addEventListener("hashchange",function(){ex.dispatchEvent(new Event("mp_locationchange"))});var r=ex.history.pushState;"function"==typeof r&&(ex.history.pushState=function(e,t,i){r.call(ex.history,e,t,i),ex.dispatchEvent(new Event("mp_locationchange"))});var i=ex.history.replaceState;"function"==typeof i&&(ex.history.replaceState=function(e,t,r){i.call(ex.history,e,t,r),ex.dispatchEvent(new Event("mp_locationchange"))}),ex.addEventListener("mp_locationchange",(function(){var r=tN.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))}},rJ.prototype._prepare_callback=function(e,t){if(tN.isUndefined(e))return null;if(r$)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},rJ.prototype._send_request=function(e,t,r,i){var o=!0;if(rz)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&&(tN.isFunction(r)||"string"==typeof r)&&(i=r,r=null),r=tN.extend(n,r||{}),r$||(r.method="GET");var a="POST"===r.method,c=rW&&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),!r$&&(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+="?"+tN.HTTPBuildQuery(t);var l=this;if("img"in t){var p=tw.createElement("img");p.src=e,tw.body.appendChild(p)}else if(c){try{o=rW(e,s)}catch(e){l.report_error(e),o=!1}try{i&&i(+!!o)}catch(e){l.report_error(e)}}else if(r$)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"),tN.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=tN.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 _=tw.createElement("script");_.type="text/javascript",_.async=!0,_.defer=!0,_.src=e;var g=tw.getElementsByTagName("script")[0];g.parentNode.insertBefore(_,g)}return o},rJ.prototype._execute_array=function(e){var t,r=[],i=[],o=[];tN.each(e,function(e){e&&(t=e[0],tN.isArray(t)?o.push(e):"function"==typeof e?e.call(this):tN.isArray(e)&&"alias"===t?r.push(e):tN.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?o.push(e):i.push(e))},this);var n=function(e,t){tN.each(e,function(e){if(tN.isArray(e[0])){var r=t;tN.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)},rJ.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},rJ.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},rJ.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=tN.bind(function(e){return new rn(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:tN.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:tN.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:tN.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()},rJ.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,tN.each(this.request_batchers,function(e){e.start()}))},rJ.prototype.stop_batch_senders=function(){this._batch_requests=!1,tN.each(this.request_batchers,function(e){e.stop(),e.clear()})},rJ.prototype.push=function(e){this._execute_array([e])},rJ.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},rJ.prototype._encode_data_for_request=function(e){var t=tN.JSONEncode(e);return this.get_config("api_payload_format")===rj&&(t=tN.base64Encode(t)),{data:t}},rJ.prototype._track_or_batch=function(e,t){var r=tN.truncate(e.data,255),i=e.endpoint,o=e.batcher,n=e.should_send_immediately,s=e.send_request_options||{};t=t||rF;var a=!0,c=tN.bind(function(){return(s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r)?(tA.log("MIXPANEL REQUEST:"),tA.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},rJ.prototype.track=tZ(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=rF),tN.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=tN.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!tN.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")?tN.info.marketingParams():{};t=tN.extend({},tN.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");tN.isArray(u)?tN.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)}),rJ.prototype.set_group=tZ(function(e,t,r){tN.isArray(t)||(t=[t]);var i={};return i[e]=t,this.register(i),this.people.set(e,t,r)}),rJ.prototype.add_group=tZ(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)}),rJ.prototype.remove_group=tZ(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)}),rJ.prototype.track_with_groups=tZ(function(e,t,r,i){var o=tN.extend({},t||{});return tN.each(r,function(e,t){null!=e&&(o[t]=e)}),this.track(e,o,i)}),rJ.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},rJ.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},rJ.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 rk)._init(this,e,t),this._cached_groups[r]=i),i},rJ.prototype.track_pageview=tZ(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",i=tN.extend(tN.info.mpPageViewProperties(),tN.info.campaignParams(),tN.info.clickParams()),o=tN.extend({},i,e);return this.track(r,o)}),rJ.prototype.track_links=function(){return this._track_dom.call(this,rh,arguments)},rJ.prototype.track_forms=function(){return this._track_dom.call(this,rd,arguments)},rJ.prototype.time_event=function(e){tN.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var rQ={persistent:!0},rX=function(e){var t;return t=tN.isObject(e)?e:tN.isUndefined(e)?{}:{days:e},tN.extend({},rQ,t)};rJ.prototype.register=function(e,t){var r=rX(t);r.persistent?this.persistence.register(e,r.days):tN.extend(this.unpersisted_superprops,e)},rJ.prototype.register_once=function(e,t,r){var i=rX(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),tN.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},rJ.prototype.unregister=function(e,t){(t=rX(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},rJ.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},rJ.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(rB))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(rR)&&(this.unregister(rR),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})},rJ.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=tN.UUID();this.register_once({distinct_id:rB+e,$device_id:e},"")},rJ.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},rJ.prototype.alias=function(e,t){if(e===this.get_property(rD))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(tN.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(rR,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)},rJ.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},rJ.prototype.set_config=function(e){tN.isObject(e)&&(tN.extend(this.config,e),e.batch_size&&tN.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),td.DEBUG=td.DEBUG||this.get_config("debug"))},rJ.prototype.get_config=function(e){return this.config[e]},rJ.prototype._run_hook=function(e){var t=(this.config.hooks[e]||rP).apply(this,ty.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},rJ.prototype.get_property=function(e){return this.persistence.load_prop([e])},rJ.prototype.toString=function(){var e=this.get_config("name");return e!==rU&&(e=rU+"."+e),e},rJ.prototype._event_is_disabled=function(e){return tN.isBlockedUA(tE)||this._flags.disable_all_events||tN.include(this.__disabled_events,e)},rJ.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&tN.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")||tN.cookie.get("mp_optout"))&&(tN.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},rJ.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()},rJ.prototype._gdpr_call_func=function(e,t){return t=tN.extend({track:tN.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),tN.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})},rJ.prototype.opt_in_tracking=function(e){e=tN.extend({enable_persistence:!0},e),this._gdpr_call_func(tK,e),this._gdpr_update_persistence(e)},rJ.prototype.opt_out_tracking=function(e){(e=tN.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(tQ,e),this._gdpr_update_persistence(e)},rJ.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(tX,e)},rJ.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(tY,e)},rJ.prototype.clear_opt_in_out_tracking=function(e){e=tN.extend({enable_persistence:!0},e),this._gdpr_call_func(t2,e),this._gdpr_update_persistence(e)},rJ.prototype.report_error=function(e,t){tA.error.apply(tA.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){tA.error(e)}},rJ.prototype.init=rJ.prototype.init,rJ.prototype.reset=rJ.prototype.reset,rJ.prototype.disable=rJ.prototype.disable,rJ.prototype.time_event=rJ.prototype.time_event,rJ.prototype.track=rJ.prototype.track,rJ.prototype.track_links=rJ.prototype.track_links,rJ.prototype.track_forms=rJ.prototype.track_forms,rJ.prototype.track_pageview=rJ.prototype.track_pageview,rJ.prototype.register=rJ.prototype.register,rJ.prototype.register_once=rJ.prototype.register_once,rJ.prototype.unregister=rJ.prototype.unregister,rJ.prototype.identify=rJ.prototype.identify,rJ.prototype.alias=rJ.prototype.alias,rJ.prototype.name_tag=rJ.prototype.name_tag,rJ.prototype.set_config=rJ.prototype.set_config,rJ.prototype.get_config=rJ.prototype.get_config,rJ.prototype.get_property=rJ.prototype.get_property,rJ.prototype.get_distinct_id=rJ.prototype.get_distinct_id,rJ.prototype.toString=rJ.prototype.toString,rJ.prototype.opt_out_tracking=rJ.prototype.opt_out_tracking,rJ.prototype.opt_in_tracking=rJ.prototype.opt_in_tracking,rJ.prototype.has_opted_out_tracking=rJ.prototype.has_opted_out_tracking,rJ.prototype.has_opted_in_tracking=rJ.prototype.has_opted_in_tracking,rJ.prototype.clear_opt_in_out_tracking=rJ.prototype.clear_opt_in_out_tracking,rJ.prototype.get_group=rJ.prototype.get_group,rJ.prototype.set_group=rJ.prototype.set_group,rJ.prototype.add_group=rJ.prototype.add_group,rJ.prototype.remove_group=rJ.prototype.remove_group,rJ.prototype.track_with_groups=rJ.prototype.track_with_groups,rJ.prototype.start_batch_senders=rJ.prototype.start_batch_senders,rJ.prototype.stop_batch_senders=rJ.prototype.stop_batch_senders,rJ.prototype.start_session_recording=rJ.prototype.start_session_recording,rJ.prototype.stop_session_recording=rJ.prototype.stop_session_recording,rJ.prototype.get_session_recording_properties=rJ.prototype.get_session_recording_properties,rJ.prototype.DEFAULT_API_ROUTES=rV,rq.prototype.properties=rq.prototype.properties,rq.prototype.update_search_keyword=rq.prototype.update_search_keyword,rq.prototype.update_referrer_info=rq.prototype.update_referrer_info,rq.prototype.get_cross_subdomain=rq.prototype.get_cross_subdomain,rq.prototype.clear=rq.prototype.clear;var rY={},rZ=function(){tN.each(rY,function(e,t){t!==rU&&(eO[t]=e)}),eO._=tN},r0=(rL=function(e,t){t()},eC=0,(eO=new rJ).init=function(e,t,r){if(r)return eO[r]||(eO[r]=rY[r]=rK(e,t,r),eO[r]._loaded()),eO[r];var i=eO;rY[rU]?i=rY[rU]:e&&((i=rK(e,t,rU))._loaded(),rY[rU]=i),eO=i,1===eC&&(ex[rU]=eO),rZ()},eO.init(),function(){function e(){e.done||(e.done=!0,rG=!0,rz=!1,tN.each(rY,function(e){e._dom_loaded()}))}if(tw.addEventListener)"complete"===tw.readyState?e():tw.addEventListener("DOMContentLoaded",e,!1);else if(tw.attachEvent){tw.attachEvent("onreadystatechange",e);var t=!1;try{t=null===ex.frameElement}catch(e){}tw.documentElement.doScroll&&t&&function t(){try{tw.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}tN.register_event(ex,"load",e,!0)}(),eO);e.s(["default",()=>r0],16573),e.s(["sendEvent",0,({name:e,category:t,label:r})=>{window.gtag&&window.gtag("event",e,{event_category:t,event_label:r}),r0.track(e,{category:t,label:r})}],70463)}]);
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.