PageSourceSearch

https://cdn-frontend-static.lingualeo.com/_next/static/chunks/b3a13d7d.bbc468b9e5ad053d60b4.js

js lingualeo.com collected 2026-09-24 08:58:50 UTC 144,202 bytes, 1 lines download raw bytes

1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[39],{cq8b:function(e,t,n){"use strict";n.d(t,"a",(function(){return ga}));var r=n("rg98"),a=n("7LId"),i=n("VIvw"),o=n("iHvq"),s=n("wC0P"),c=n("xvhg"),u=n("z7pX"),l=n("cpVT"),d=n("H+61"),f=n("UlJF"),p=n("vJKn"),h=n.n(p),m=n("P/f2"),v=n("fqQG"),y=n("AsUd"),g=n("hy7p"),k=n("oMcV"),b=n("2HVB"),S=n("GIgW"),w=n("i/+n"),_=n("ufci"),I=n("rbyU"),x=n("Fffm"),C=n("6PXS"),E=n("vFt6"),T=n("kdvv"),O=n("8LbN"),M=n("9/Zf"),R=n("1WTN"),A=n("+924"),D=n("kXX0"),L=n("Z0I1"),j=n("vKyX"),N=n("oZ5x"),F=n("jIae"),P=n("o3HM"),B=n("A0tF");function U(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(o.a)(e);if(t){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){Object(l.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var K,V=I.a,J="sentryReplaySession",X="replay_event",Y="Unable to send Replay",G=5e3,$=15e4,Q=5e3,Z=2e7,ee=36e5;function te(e){for(var t=void 0,n=e[0],r=1;r<e.length;){var a=e[r],i=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=i(n)):"call"!==a&&"optionalCall"!==a||(n=i((function(){for(var e,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=n).call.apply(e,[t].concat(a))})),t=void 0)}return n}function ne(e){var t=te([e,"optionalAccess",function(e){return e.host}]);return Boolean(te([t,"optionalAccess",function(e){return e.shadowRoot}])===e)}function re(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function ae(e){try{var t=e.rules||e.cssRules;return t?((n=Array.from(t,ie).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),n):null}catch(r){return null}var n}function ie(e){var t;if(function(e){return"styleSheet"in e}(e))try{t=ae(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var n=["@import","url(".concat(JSON.stringify(e.href),")")];return""===e.layerName?n.push("layer"):e.layerName&&n.push("layer(".concat(e.layerName,")")),e.supportsText&&n.push("supports(".concat(e.supportsText,")")),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(n){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(K||(K={}));var oe=function(){function e(){Object(d.a)(this,e),this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return Object(f.a)(e,[{key:"getId",value:function(e){if(!e)return-1;var t,n,r=te([this,"access",function(e){return e.getMeta},"call",function(t){return t(e)},"optionalAccess",function(e){return e.id}]);return n=function(){return-1},null!=(t=r)?t:n()}},{key:"getNode",value:function(e){return this.idNodeMap.get(e)||null}},{key:"getIds",value:function(){return Array.from(this.idNodeMap.keys())}},{key:"getMeta",value:function(e){return this.nodeMetaMap.get(e)||null}},{key:"removeNodeFromMap",value:function(e){var t=this,n=this.getId(e);
1this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach((function(e){return t.removeNodeFromMap(e)}))}},{key:"has",value:function(e){return this.idNodeMap.has(e)}},{key:"hasNode",value:function(e){return this.nodeMetaMap.has(e)}},{key:"add",value:function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}},{key:"replace",value:function(e,t){var n=this.getNode(e);if(n){var r=this.nodeMetaMap.get(n);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}},{key:"reset",value:function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}]),e}();function se(e){var t=e.maskInputOptions,n=e.tagName,r=e.type;return"OPTION"===n&&(n="SELECT"),Boolean(t[n.toLowerCase()]||r&&t[r]||"password"===r||"INPUT"===n&&!r&&t.text)}function ce(e){var t=e.isMasked,n=e.element,r=e.value,a=e.maskInputFn,i=r||"";return t?(a&&(i=a(i,n)),"*".repeat(i.length)):i}function ue(e){return e.toLowerCase()}function le(e){return e.toUpperCase()}var de="__rrweb_original__";function fe(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ue(t):null}function pe(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}var he,me,ve=1,ye=new RegExp("[^a-z0-9-_:]");function ge(){return ve++}var ke=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,be=/^(?:[a-z+]+:)?\/\//i,Se=/^www\..*/i,we=/^(data:)([^,]*),(.*)/i;function _e(e,t){return(e||"").replace(ke,(function(e,n,r,a,i,o){var s,c=r||i||o,u=n||a||"";if(!c)return e;if(be.test(c)||Se.test(c))return"url(".concat(u).concat(c).concat(u,")");if(we.test(c))return"url(".concat(u).concat(c).concat(u,")");if("/"===c[0])return"url(".concat(u).concat((s=t,(s.indexOf("//")>-1?s.split("/").slice(0,3).join("/"):s.split("/")[0]).split("?")[0]+c)).concat(u,")");var l=t.split("/"),d=c.split("/");l.pop();var f,p=H(d);try{for(p.s();!(f=p.n()).done;){var h=f.value;"."!==h&&(".."===h?l.pop():l.push(h))}}catch(m){p.e(m)}finally{p.f()}return"url(".concat(u).concat(l.join("/")).concat(u,")")}))}var Ie=/^[^ \t\n\r\u000c]+/,xe=/^[, \t\n\r\u000c]+/;function Ce(e,t){if(!t||""===t.trim())return t;var n=e.createElement("a");return n.href=t,n.href}function Ee(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Te(){var e=document.createElement("a");return e.href="",e.href}function Oe(e,t,n,r,a,i){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Ce(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;var n=0;function r(e){var r,a=e.exec(t.substring(n));return a?(r=a[0],n+=r.length,r):""}for(var a=[];r(xe),!(n>=t.length);){var i=r(Ie);if(","===i.slice(-1))i=Ce(e,i.substring(0,i.length-1)),a.push(i);else{var o="";i=Ce(e,i);for(var s=!1;;){var c=t.charAt(n);if(""===c){a.push((i+o).trim());break}if(s)")"===c&&(s=!1);else{if(","===c){n+=1,a.push((i+o).trim());break}"("===c&&(s=!0)}o+=c,n+=1}}}return a.join(", ")}(e,r):"style"===n?_e(r,Te()):"object"===t&&"data"===n?Ce(e,r):"function"===typeof i?i(n,r,a):r:Ce(e,r):r}function Me(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Re(e.parentNode,t,n,r+1):-1}function Ae(e,t){return function(n){var r=n;if(null===r)return!1;try{if(e)if("string"===typeof e){if(r.matches(".".concat(e)))return!0}else if(function(e,t){for(var n=e.classList.length;n--;){var r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(a){return!1}}}function De(e,t,n,r,a,i){try{var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){var s=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(s))return!0}var c=-1,u=-1;if(i){if((u=Re(o,Ae(r,a)))<0)return!0;c=Re(o,Ae(t,n),u>=0?u:1/0)}else{if((c=Re(o,Ae(t,n)))<0)return!1;u=Re(o,Ae(r,a),c>=0?c:1/0)}return c>=0?!(u>=0)||c<=u:!(u>=0)&&!!i}catch(l){}return!!i}function Le(e,t){var n=t.doc,r=t.mirror,a=t.blockClass,i=t.blockSelector,o=t.unblockSelector,s=t.maskAllText,c=t.maskAttributeFn,u=t.maskTextClass,l=t.unmaskTextClass,d=t.maskTextSelector,f=t.unmaskTextSelector,p=t.inlineStylesheet,h=t.maskInputOptions,m=void 0===h?{}:h,v=t.maskTextFn,y=t.maskInputFn,g=t.dataURLOptions,k=void 0===g?{}
1:g,b=t.inlineImages,S=t.recordCanvas,w=t.keepIframeSrcFn,_=t.newlyAddedElement,I=void 0!==_&&_,x=function(e,t){if(!t.hasNode(e))return;var n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:K.Document,childNodes:[],compatMode:e.compatMode}:{type:K.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:K.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return function(e,t){for(var n,r=t.doc,a=t.blockClass,i=t.blockSelector,o=t.unblockSelector,s=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskAttributeFn,d=t.maskInputFn,f=t.dataURLOptions,p=void 0===f?{}:f,h=t.inlineImages,m=t.recordCanvas,v=t.keepIframeSrcFn,y=t.newlyAddedElement,g=void 0!==y&&y,k=t.rootId,b=(t.maskAllText,t.maskTextClass),S=t.unmaskTextClass,w=t.maskTextSelector,_=t.unmaskTextSelector,I=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"===typeof t){if(e.classList.contains(t))return!0}else for(var a=e.classList.length;a--;){var i=e.classList[a];if(t.test(i))return!0}if(n)return e.matches(n)}catch(o){}return!1}(e,a,i,o),x=function(e){if(e instanceof HTMLFormElement)return"form";var t=ue(e.tagName);return ye.test(t)?"div":t}(e),C={},E=e.attributes.length,T=0;T<E;T++){var O=e.attributes[T];O.name&&!Me(x,O.name,O.value)&&(C[O.name]=Oe(r,x,ue(O.name),O.value,e,l))}if("link"===x&&s){var M=Array.from(r.styleSheets).find((function(t){return t.href===e.href})),R=null;M&&(R=ae(M)),R&&(delete C.rel,delete C.href,C._cssText=_e(R,M.href))}if("style"===x&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){var A=ae(e.sheet);A&&(C._cssText=_e(A,Te()))}if("input"===x||"textarea"===x||"select"===x||"option"===x){var D=e,L=fe(D),j=pe(D,le(x),L),N=D.checked;if("submit"!==L&&"button"!==L&&j){var F=De(D,b,w,S,_,se({type:L,tagName:le(x),maskInputOptions:u}));C.value=ce({isMasked:F,element:D,value:j,maskInputFn:d})}N&&(C.checked=N)}"option"===x&&(e.selected&&!u.select?C.selected=!0:delete C.selected);if("canvas"===x&&m)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var n=0;n<e.width;n+=50)for(var r=0;r<e.height;r+=50){var a=t.getImageData,i=de in a?a.__rrweb_original__:a;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((function(e){return 0!==e})))return!1}return!0})(e)||(C.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){var P=e.toDataURL(p.type,p.quality),B=document.createElement("canvas");B.width=e.width,B.height=e.height,P!==B.toDataURL(p.type,p.quality)&&(C.rr_dataURL=P)}if("img"===x&&h){he||(he=r.createElement("canvas"),me=he.getContext("2d"));var U=e,z=U.crossOrigin;U.crossOrigin="anonymous";var W=function e(){U.removeEventListener("load",e);try{he.width=U.naturalWidth,he.height=U.naturalHeight,me.drawImage(U,0,0),C.rr_dataURL=he.toDataURL(p.type,p.quality)}catch(t){console.warn("Cannot inline img src=".concat(U.currentSrc,"! Error: ").concat(t))}z?C.crossOrigin=z:U.removeAttribute("crossorigin")};U.complete&&0!==U.naturalWidth?W():U.addEventListener("load",W)}"audio"!==x&&"video"!==x||(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime);g||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop));if(I){var H=e.getBoundingClientRect(),q=H.width,V=H.height;C={class:C.class,rr_width:"".concat(q,"px"),rr_height:"".concat(V,"px")}}"iframe"!==x||v(C.src)||(e.contentDocument||(C.rr_src=C.src),delete C.src);try{customElements.get(x)&&(n=!0)}catch(J){}return{type:K.Element,tagName:x,attributes:C,childNodes:[],isSVG:Ee(e)||void 0,needBlock:I,rootId:k,isCustom:n}}(e,{doc:n,blockClass:a,blockSelector:i,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:y,dataURLOptions:k,inlineImages:b,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:I,rootId:x,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return function(e,t){var n=t.maskAllText,r=t.maskTextClass,a=t.unmaskTextClass,i=t.maskTextSelector,o=t.unmaskTextSelector,s=t.maskTextFn,c=t.maskInputOptions,u=t.maskInputFn,l=t.rootId,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||te([e,"access",function(e){return e.parentNode},"access",function(e){return e.sheet},"optionalAccess",function(e){return e.cssRules}])&&(f=ae(e.parentNode.sheet))}catch(y){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(y),e)}
1f=_e(f,Te())}h&&(f="SCRIPT_PLACEHOLDER");var v=De(e,r,i,a,o,n);p||h||m||!f||!v||(f=s?s(f):f.replace(/[\S]/g,"*"));m&&f&&(c.textarea||v)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*"));if("OPTION"===d&&f){f=ce({isMasked:De(e,r,i,a,o,se({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:u})}return{type:K.Text,textContent:f||"",isStyle:p,rootId:l}}(e,{maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:v,maskInputOptions:m,maskInputFn:y,rootId:x});case e.CDATA_SECTION_NODE:return{type:K.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:K.Comment,textContent:e.textContent||"",rootId:x};default:return!1}}function je(e){return void 0===e||null===e?"":e.toLowerCase()}function Ne(e,t){var n,r=t.doc,a=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.unblockSelector,c=t.maskAllText,u=t.maskTextClass,l=t.unmaskTextClass,d=t.maskTextSelector,f=t.unmaskTextSelector,p=t.skipChild,h=void 0!==p&&p,m=t.inlineStylesheet,v=void 0===m||m,y=t.maskInputOptions,g=void 0===y?{}:y,k=t.maskAttributeFn,b=t.maskTextFn,S=t.maskInputFn,w=t.slimDOMOptions,_=t.dataURLOptions,I=void 0===_?{}:_,x=t.inlineImages,C=void 0!==x&&x,E=t.recordCanvas,T=void 0!==E&&E,O=t.onSerialize,M=t.onIframeLoad,R=t.iframeLoadTimeout,A=void 0===R?5e3:R,D=t.onStylesheetLoad,L=t.stylesheetLoadTimeout,j=void 0===L?5e3:L,N=t.keepIframeSrcFn,F=void 0===N?function(){return!1}:N,P=t.newlyAddedElement,B=void 0!==P&&P,U=t.preserveWhiteSpace,z=void 0===U||U,W=Le(e,{doc:r,mirror:a,blockClass:i,blockSelector:o,maskAllText:c,unblockSelector:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:v,maskInputOptions:g,maskAttributeFn:k,maskTextFn:b,maskInputFn:S,dataURLOptions:I,inlineImages:C,recordCanvas:T,keepIframeSrcFn:F,newlyAddedElement:B});if(!W)return console.warn(e,"not serialized"),null;n=a.hasNode(e)?a.getId(e):!function(e,t){if(t.comment&&e.type===K.Comment)return!0;if(e.type===K.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&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(je(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===je(e.attributes.name)||"icon"===je(e.attributes.rel)||"apple-touch-icon"===je(e.attributes.rel)||"shortcut icon"===je(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&je(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(je(e.attributes.property).match(/^(og|twitter|fb):/)||je(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===je(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===je(e.attributes.name)||"googlebot"===je(e.attributes.name)||"bingbot"===je(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===je(e.attributes.name)||"generator"===je(e.attributes.name)||"framework"===je(e.attributes.name)||"publisher"===je(e.attributes.name)||"progid"===je(e.attributes.name)||je(e.attributes.property).match(/^article:/)||je(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===je(e.attributes.name)||"yandex-verification"===je(e.attributes.name)||"csrf-token"===je(e.attributes.name)||"p:domain_verify"===je(e.attributes.name)||"verify-v1"===je(e.attributes.name)||"verification"===je(e.attributes.name)||"shopify-checkout-api-token"===je(e.attributes.name)))return!0}}return!1}(W,w)&&(z||W.type!==K.Text||W.isStyle||W.textContent.replace(/^\s+|\s+$/gm,"").length)?ge():-2;var H=Object.assign(W,{id:n});if(a.add(e,H),-2===n)return null;O&&O(e);var q=!h;if(H.type===K.Element){q=q&&!H.needBlock,delete H.needBlock;var V=e.shadowRoot;V&&re(V)&&(H.isShadowHost=!0)}if((H.type===K.Document||H.type===K.Element)&&q){w.headWhitespace&&H.type===K.Element&&"head"===H.tagName&&(z=!1);for(var J={doc:r,mirror:a,blockClass:i,blockSelector:o,maskAllText:c,unblockSelector:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:h,inlineStylesheet:v,maskInputOptions:g,maskAttributeFn:k,maskTextFn:b,maskInputFn:S,slimDOMOptions:w,dataURLOptions:I,inlineImages:C,recordCanvas:T,preserveWhiteSpace:z,onSerialize:O,onIframeLoad:M,iframeLoadTimeout:A,onStylesheetLoad:D,stylesheetLoadTimeout:j,keepIframeSrcFn:F},X=0,Y=Array.from(e.childNodes);X<Y.length;X++){var G=Ne(Y[X],J);G&&H.childNodes.push(G)}
1if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(var $=0,Q=Array.from(e.shadowRoot.childNodes);$<Q.length;$++){var Z=Ne(Q[$],J);Z&&(re(e.shadowRoot)&&(Z.isShadow=!0),H.childNodes.push(Z))}}return e.parentNode&&ne(e.parentNode)&&re(e.parentNode)&&(H.isShadow=!0),H.type===K.Element&&"iframe"===H.tagName&&function(e,t,n){var r=e.contentWindow;if(r){var a,i=!1;try{a=r.document.readyState}catch(c){return}if("complete"===a){var o="about:blank";if(r.location.href!==o||e.src===o||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var s=setTimeout((function(){i||(t(),i=!0)}),n);e.addEventListener("load",(function(){clearTimeout(s),i=!0,t()}))}}}(e,(function(){var t=e.contentDocument;if(t&&M){var n=Ne(t,{doc:t,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:v,maskInputOptions:g,maskAttributeFn:k,maskTextFn:b,maskInputFn:S,slimDOMOptions:w,dataURLOptions:I,inlineImages:C,recordCanvas:T,preserveWhiteSpace:z,onSerialize:O,onIframeLoad:M,iframeLoadTimeout:A,onStylesheetLoad:D,stylesheetLoadTimeout:j,keepIframeSrcFn:F});n&&M(e,n)}}),A),H.type===K.Element&&"link"===H.tagName&&"stylesheet"===H.attributes.rel&&function(e,t,n){var r,a=!1;try{r=e.sheet}catch(o){return}if(!r){var i=setTimeout((function(){a||(t(),a=!0)}),n);e.addEventListener("load",(function(){clearTimeout(i),a=!0,t()}))}}(e,(function(){if(D){var t=Ne(e,{doc:r,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:v,maskInputOptions:g,maskAttributeFn:k,maskTextFn:b,maskInputFn:S,slimDOMOptions:w,dataURLOptions:I,inlineImages:C,recordCanvas:T,preserveWhiteSpace:z,onSerialize:O,onIframeLoad:M,iframeLoadTimeout:A,onStylesheetLoad:D,stylesheetLoadTimeout:j,keepIframeSrcFn:F});t&&D(e,t)}}),j),H}function Fe(e,t){var n=t||{},r=n.mirror,a=void 0===r?new oe:r,i=n.blockClass,o=void 0===i?"rr-block":i,s=n.blockSelector,c=void 0===s?null:s,u=n.unblockSelector,l=void 0===u?null:u,d=n.maskAllText,f=void 0!==d&&d,p=n.maskTextClass,h=void 0===p?"rr-mask":p,m=n.unmaskTextClass,v=void 0===m?null:m,y=n.maskTextSelector,g=void 0===y?null:y,k=n.unmaskTextSelector,b=void 0===k?null:k,S=n.inlineStylesheet,w=void 0===S||S,_=n.inlineImages,I=void 0!==_&&_,x=n.recordCanvas,C=void 0!==x&&x,E=n.maskAllInputs,T=void 0!==E&&E,O=n.maskAttributeFn,M=n.maskTextFn,R=n.maskInputFn,A=n.slimDOM,D=void 0!==A&&A,L=n.dataURLOptions,j=n.preserveWhiteSpace,N=n.onSerialize,F=n.onIframeLoad,P=n.iframeLoadTimeout,B=n.onStylesheetLoad,U=n.stylesheetLoadTimeout,z=n.keepIframeSrcFn;return Ne(e,{doc:e,mirror:a,blockClass:o,blockSelector:c,unblockSelector:l,maskAllText:f,maskTextClass:h,unmaskTextClass:v,maskTextSelector:g,unmaskTextSelector:b,skipChild:!1,inlineStylesheet:w,maskInputOptions:!0===T?{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}:!1===T?{}:T,maskAttributeFn:O,maskTextFn:M,maskInputFn:R,slimDOMOptions:!0===D||"all"===D?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===D,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===D?{}:D,dataURLOptions:L,inlineImages:I,recordCanvas:C,preserveWhiteSpace:j,onSerialize:N,onIframeLoad:F,iframeLoadTimeout:P,onStylesheetLoad:B,stylesheetLoadTimeout:U,keepIframeSrcFn:void 0===z?function(){return!1}:z,newlyAddedElement:!1})}function Pe(e){for(var t=void 0,n=e[0],r=1;r<e.length;){var a=e[r],i=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=i(n)):"call"!==a&&"optionalCall"!==a||(n=i((function(){for(var e,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=n).call.apply(e,[t].concat(a))})),t=void 0)}return n}function Be(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}var Ue="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.",ze={map:{},getId:function(){return console.error(Ue),-1},getNode:function(){return console.error(Ue),null},removeNodeFromMap:function(){console.error(Ue)},has:function(){return console.error(Ue),!1},reset:function(){console.error(Ue)}};function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,a=0;return function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var c=Date.now();a||!1!==n.leading||(a=c);var u=t-(c-a),l=this;u<=0||u>t?(r&&(clearTimeout(r),r=null),a=c,e.apply(l,o)):r||!1===n.trailing||(r=setTimeout((function(){a=!1===n.leading?0:Date.now(),r=null,e.apply(l,o)}),u))}}function He(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,r?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),i&&i.set&&i.set.call(this,e)}}),function(){return He(e,t,i||{},!0)}}function qe(e,t,n){try{if(!(t in e))return function(){};var r=e[t],a=n(r);return"function"===typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,function(){e[t]=r}}catch(i){return function(){}}}window.Proxy&&window.Reflect&&(ze=new Proxy(ze,{get:function(e,t,n){return"map"===t&&console.error(Ue),Reflect.get(e,t,n)}}));var Ke=Date.now;function Ve(e){var t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Pe([t,"optionalAccess",function(e){return e.documentElement},"access",function(e){return e.scrollLeft}
1])||Pe([t,"optionalAccess",function(e){return e.body},"optionalAccess",function(e){return e.parentElement},"optionalAccess",function(e){return e.scrollLeft}])||Pe([t,"optionalAccess",function(e){return e.body},"optionalAccess",function(e){return e.scrollLeft}])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Pe([t,"optionalAccess",function(e){return e.documentElement},"access",function(e){return e.scrollTop}])||Pe([t,"optionalAccess",function(e){return e.body},"optionalAccess",function(e){return e.parentElement},"optionalAccess",function(e){return e.scrollTop}])||Pe([t,"optionalAccess",function(e){return e.body},"optionalAccess",function(e){return e.scrollTop}])||0}}function Je(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ye(e,t,n,r,a){if(!e)return!1;var i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!i)return!1;var o=Ae(t,n);if(!a){var s=r&&i.matches(r);return o(i)&&!s}var c=Re(i,o),u=-1;return!(c<0)&&(r&&(u=Re(i,Ae(null,r))),c>-1&&u<0||c<u)}function Ge(e,t){return-2===t.getId(e)}function $e(e,t){if(ne(e))return!1;var n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||$e(e.parentNode,t))}function Qe(e){return Boolean(e.changedTouches)}function Ze(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(!(0 in n))throw new TypeError("1 argument is required");do{if(e===a)return!0}while(a=a&&a.parentNode);return!1})}function et(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function tt(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function nt(e){return Boolean(Pe([e,"optionalAccess",function(e){return e.shadowRoot}]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ke=function(){return(new Date).getTime()});var rt,at=function(){function e(){Object(d.a)(this,e),this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}return Object(f.a)(e,[{key:"getId",value:function(e){return Object(m.a)(this.styleIDMap.get(e),(function(){return-1}))}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n);var n}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]),e}();function it(e){var t=null;return Pe([e,"access",function(e){return e.getRootNode},"optionalCall",function(e){return e()},"optionalAccess",function(e){return e.nodeType}])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function ot(e){var t=e.ownerDocument;if(!t)return!1;var n=function(e){for(var t,n=e;t=it(n);)n=t;return n}(e);return t.contains(n)}function st(e){var t=e.ownerDocument;return!!t&&(t.contains(e)||ot(e))}function ct(){if(rt)return rt;var e=window.document,t=window.requestAnimationFrame;if(e&&"function"===typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.requestAnimationFrame&&(t=r.requestAnimationFrame),e.head.removeChild(n)}catch(a){}return rt=t.bind(window)}var ut=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(ut||{}),lt=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(lt||{}),dt=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(dt||{}),ft=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(ft||{});function pt(e){for(var t=void 0,n=e[0],r=1;r<e.length;){var a=e[r],i=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=i(n)):"call"!==a&&"optionalCall"!==a||(n=i((function(){for(var e,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=n).call.apply(e,[t].concat(a))})),t=void 0)}return n}function ht(e){return"__ln"in e}var mt,vt=function(){function e(){Object(d.a)(this,e),this.length=0,this.head=null,this.tail=null}return Object(f.a)(e,[{key:"get",value:function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=pt([t,"optionalAccess",function(e){return e.next}])||null;return t}},{key:"addNode",value:function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&ht(e.previousSibling)){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
1(n.previous=t)}else if(e.nextSibling&&ht(e.nextSibling)&&e.nextSibling.__ln.previous){var 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++}},{key:"removeNode",value:function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}]),e}(),yt=function(e,t){return"".concat(e,"@").concat(t)},gt=function(){function e(){var t=this;Object(d.a)(this,e),this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(e){e.forEach(t.processMutation),t.emit()},this.emit=function(){if(!t.frozen&&!t.locked){for(var e=[],n=new Set,r=new vt,a=function(e){for(var n=e,r=-2;-2===r;)r=(n=n&&n.nextSibling)&&t.mirror.getId(n);return r},i=function(i){if(i.parentNode&&st(i)){var o=ne(i.parentNode)?t.mirror.getId(it(i)):t.mirror.getId(i.parentNode),s=a(i);if(-1===o||-1===s)return r.addNode(i);var c=Ne(i,{doc:t.doc,mirror:t.mirror,blockClass:t.blockClass,blockSelector:t.blockSelector,maskAllText:t.maskAllText,unblockSelector:t.unblockSelector,maskTextClass:t.maskTextClass,unmaskTextClass:t.unmaskTextClass,maskTextSelector:t.maskTextSelector,unmaskTextSelector:t.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:t.inlineStylesheet,maskInputOptions:t.maskInputOptions,maskAttributeFn:t.maskAttributeFn,maskTextFn:t.maskTextFn,maskInputFn:t.maskInputFn,slimDOMOptions:t.slimDOMOptions,dataURLOptions:t.dataURLOptions,recordCanvas:t.recordCanvas,inlineImages:t.inlineImages,onSerialize:function(e){et(e,t.mirror)&&t.iframeManager.addIframe(e),tt(e,t.mirror)&&t.stylesheetManager.trackLinkElement(e),nt(i)&&t.shadowDomManager.addShadowRoot(i.shadowRoot,t.doc)},onIframeLoad:function(e,n){t.iframeManager.attachIframe(e,n),t.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:function(e,n){t.stylesheetManager.attachLinkElement(e,n)}});c&&(e.push({parentId:o,nextId:s,node:c}),n.add(c.id))}};t.mapRemoves.length;)t.mirror.removeNodeFromMap(t.mapRemoves.shift());var o,s=H(t.movedSet);try{for(s.s();!(o=s.n()).done;){var c=o.value;bt(t.removes,c,t.mirror)&&!t.movedSet.has(c.parentNode)||i(c)}}catch(w){s.e(w)}finally{s.f()}var u,l=H(t.addedSet);try{for(l.s();!(u=l.n()).done;){var d=u.value;wt(t.droppedSet,d)||bt(t.removes,d,t.mirror)?wt(t.movedSet,d)?i(d):t.droppedSet.add(d):i(d)}}catch(w){l.e(w)}finally{l.f()}for(var f=null;r.length;){var p=null;if(f){var h=t.mirror.getId(f.value.parentNode),m=a(f.value);-1!==h&&-1!==m&&(p=f)}if(!p)for(var v=r.tail;v;){var y=v;if(v=v.previous,y){var g=t.mirror.getId(y.value.parentNode);if(-1===a(y.value))continue;if(-1!==g){p=y;break}var k=y.value;if(k.parentNode&&k.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var b=k.parentNode.host;if(-1!==t.mirror.getId(b)){p=y;break}}}}if(!p){for(;r.head;)r.removeNode(r.head.value);break}f=p.previous,r.removeNode(p.value),i(p.value)}var S={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return!n.has(e.id)})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){var n=e.attributes;if("string"===typeof n.style){var r=JSON.stringify(e.styleDiff),a=JSON.stringify(e._unchangedStyles);r.length<n.style.length&&(r+a).split("var(").length===n.style.split("var(").length&&(n.style=e.styleDiff)}return{id:t.mirror.getId(e.node),attributes:n}})).filter((function(e){return!n.has(e.id)})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:e};(S.texts.length||S.attributes.length||S.removes.length||S.adds.length)&&(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(S))}},this.processMutation=function(e){if(!Ge(e.target,t.mirror)){var n;try{n=document.implementation.createHTMLDocument()}catch(b){n=t.doc}switch(e.type){case"characterData":var r=e.target.textContent;Ye(e.target,t.blockClass,t.blockSelector,t.unblockSelector,!1)||r===e.oldValue||t.texts.push({value:De(e.target,t.maskTextClass,t.maskTextSelector,t.unmaskTextClass,t.unmaskTextSelector,t.maskAllText)&&r?t.maskTextFn?t.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:e.target});break;case"attributes":var a=e.target,i=e.attributeName,o=e.target.getAttribute(i);if("value"===i){var s=fe(a),c=a.tagName;o=pe(a,c,s);var u=se({maskInputOptions:t.maskInputOptions,tagName:c,type:s});o=ce({isMasked:De(e.target,t.maskTextClass,t.maskTextSelector,t.unmaskTextClass,t.unmaskTextSelector,u),element:a,value:o,maskInputFn:t.maskInputFn})}if(Ye(e.target,t.blockClass,t.blockSelector,t.unblockSelector,!1)||o===e.oldValue)return;var l=t.attributes.find((function(t){return t.node===e.target}));if("IFRAME"===a.tagName&&"src"===i&&!t.keepIframeSrcFn(o)){if(a.contentDocument)return;i="rr_src"}
1if(l||(l={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},t.attributes.push(l)),"type"===i&&"INPUT"===a.tagName&&"password"===(e.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!Me(a.tagName,i)&&(l.attributes[i]=Oe(t.doc,ue(a.tagName),ue(i),o,a,t.maskAttributeFn),"style"===i)){var d=n.createElement("span");e.oldValue&&d.setAttribute("style",e.oldValue);for(var f=0,p=Array.from(a.style);f<p.length;f++){var h=p[f],m=a.style.getPropertyValue(h),v=a.style.getPropertyPriority(h);m!==d.style.getPropertyValue(h)||v!==d.style.getPropertyPriority(h)?l.styleDiff[h]=""===v?m:[m,v]:l._unchangedStyles[h]=[m,v]}for(var y=0,g=Array.from(d.style);y<g.length;y++){var k=g[y];""===a.style.getPropertyValue(k)&&(l.styleDiff[k]=!1)}}break;case"childList":if(Ye(e.target,t.blockClass,t.blockSelector,t.unblockSelector,!0))return;e.addedNodes.forEach((function(n){return t.genAdds(n,e.target)})),e.removedNodes.forEach((function(n){var r=t.mirror.getId(n),a=ne(e.target)?t.mirror.getId(e.target.host):t.mirror.getId(e.target);Ye(e.target,t.blockClass,t.blockSelector,t.unblockSelector,!1)||Ge(n,t.mirror)||!function(e,t){return-1!==t.getId(e)}(n,t.mirror)||(t.addedSet.has(n)?(kt(t.addedSet,n),t.droppedSet.add(n)):t.addedSet.has(e.target)&&-1===r||$e(e.target,t.mirror)||(t.movedSet.has(n)&&t.movedMap[yt(r,a)]?kt(t.movedSet,n):t.removes.push({parentId:a,id:r,isShadow:!(!ne(e.target)||!re(e.target))||void 0})),t.mapRemoves.push(n))}))}}},this.genAdds=function(e,n){if(!t.processedNodeManager.inOtherBuffer(e,t)&&!t.addedSet.has(e)&&!t.movedSet.has(e)){if(t.mirror.hasNode(e)){if(Ge(e,t.mirror))return;t.movedSet.add(e);var r=null;n&&t.mirror.hasNode(n)&&(r=t.mirror.getId(n)),r&&-1!==r&&(t.movedMap[yt(t.mirror.getId(e),r)]=!0)}else t.addedSet.add(e),t.droppedSet.delete(e);Ye(e,t.blockClass,t.blockSelector,t.unblockSelector,!1)||(e.childNodes.forEach((function(e){return t.genAdds(e)})),nt(e)&&e.shadowRoot.childNodes.forEach((function(n){t.processedNodeManager.add(n,t),t.genAdds(n,e)})))}}}return Object(f.a)(e,[{key:"init",value:function(e){var t=this;["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((function(n){t[n]=e[n]}))}},{key:"freeze",value:function(){this.frozen=!0,this.canvasManager.freeze()}},{key:"unfreeze",value:function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}},{key:"isFrozen",value:function(){return this.frozen}},{key:"lock",value:function(){this.locked=!0,this.canvasManager.lock()}},{key:"unlock",value:function(){this.locked=!1,this.canvasManager.unlock(),this.emit()}},{key:"reset",value:function(){this.shadowDomManager.reset(),this.canvasManager.reset()}}]),e}();function kt(e,t){e.delete(t),t.childNodes.forEach((function(t){return kt(e,t)}))}function bt(e,t,n){return 0!==e.length&&St(e,t,n)}function St(e,t,n){var r=t.parentNode;if(!r)return!1;var a=n.getId(r);return!!e.some((function(e){return e.id===a}))||St(e,r,n)}function wt(e,t){return 0!==e.size&&_t(e,t)}function _t(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||_t(e,n))}function It(e){mt=e}function xt(){mt=void 0}var Ct=function(e){if(!mt)return e;return function(){try{return e.apply(void 0,arguments)}catch(t){if(mt&&!0===mt(t))return function(){};throw t}}};function Et(e){for(var t=void 0,n=e[0],r=1;r<e.length;){var a=e[r],i=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=i(n)):"call"!==a&&"optionalCall"!==a||(n=i((function(){for(var e,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=n).call.apply(e,[t].concat(a))})),t=void 0)}return n}var Tt=[];function Ot(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(n){}return e&&e.target}function Mt(e,t){var n=new gt;Tt.push(n),n.init(e);var r=window.MutationObserver||window.__rrMutationObserver,a=Et([window,"optionalAccess",function(e){return e.Zone},"optionalAccess",function(e){return e.__symbol__},"optionalCall",function(e){return e("MutationObserver")}]);
1a&&window[a]&&(r=window[a]);var i=new r(Ct((function(t){e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Rt(e){var t=e.mousemoveCb,n=e.sampling,r=e.doc,a=e.mirror;if(!1===n.mousemove)return function(){};var i,o="number"===typeof n.mousemove?n.mousemove:50,s="number"===typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],u=We(Ct((function(e){var n=Date.now()-i;t(c.map((function(e){return e.timeOffset-=n,e})),e),c=[],i=null})),s),l=Ct(We(Ct((function(e){var t=Ot(e),n=Qe(e)?e.changedTouches[0]:e,r=n.clientX,o=n.clientY;i||(i=Ke()),c.push({x:r,y:o,id:a.getId(t),timeOffset:Ke()-i}),u("undefined"!==typeof DragEvent&&e instanceof DragEvent?lt.Drag:e instanceof MouseEvent?lt.MouseMove:lt.TouchMove)})),o,{trailing:!1})),d=[Be("mousemove",l,r),Be("touchmove",l,r),Be("drag",l,r)];return Ct((function(){d.forEach((function(e){return e()}))}))}function At(e){var t=e.mouseInteractionCb,n=e.doc,r=e.mirror,a=e.blockClass,i=e.blockSelector,o=e.unblockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var c=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[],l=null;return Object.keys(dt).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==c[e]})).forEach((function(e){var s=ue(e),c=function(e){return function(n){var s=Ot(n);if(!Ye(s,a,i,o,!0)){var c=null,u=e;if("pointerType"in n){switch(n.pointerType){case"mouse":c=ft.Mouse;break;case"touch":c=ft.Touch;break;case"pen":c=ft.Pen}c===ft.Touch?dt[e]===dt.MouseDown?u="TouchStart":dt[e]===dt.MouseUp&&(u="TouchEnd"):ft.Pen}else Qe(n)&&(c=ft.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===ft.Touch||u.startsWith("Mouse")&&c===ft.Mouse)&&(c=null)):dt[e]===dt.Click&&(c=l,l=null);var d=Qe(n)?n.changedTouches[0]:n;if(d){var f=r.getId(s),p=d.clientX,h=d.clientY;Ct(t)(W({type:dt[u],id:f,x:p,y:h},null!==c&&{pointerType:c}))}}}}(e);if(window.PointerEvent)switch(dt[e]){case dt.MouseDown:case dt.MouseUp:s=s.replace("mouse","pointer");break;case dt.TouchStart:case dt.TouchEnd:return}u.push(Be(s,c,n))})),Ct((function(){u.forEach((function(e){return e()}))}))}function Dt(e){var t=e.scrollCb,n=e.doc,r=e.mirror,a=e.blockClass,i=e.blockSelector,o=e.unblockSelector,s=e.sampling;return Be("scroll",Ct(We(Ct((function(e){var s=Ot(e);if(s&&!Ye(s,a,i,o,!0)){var c=r.getId(s);if(s===n&&n.defaultView){var u=Ve(n.defaultView);t({id:c,x:u.left,y:u.top})}else t({id:c,x:s.scrollLeft,y:s.scrollTop})}})),s.scroll||100)),n)}function Lt(e,t){var n=e.viewportResizeCb,r=t.win,a=-1,i=-1;return Be("resize",Ct(We(Ct((function(){var e=Je(),t=Xe();a===e&&i===t||(n({width:Number(t),height:Number(e)}),a=e,i=t)})),200)),r)}var jt=["INPUT","TEXTAREA","SELECT"],Nt=new WeakMap;function Ft(e){var t=e.inputCb,n=e.doc,r=e.mirror,a=e.blockClass,i=e.blockSelector,o=e.unblockSelector,s=e.ignoreClass,c=e.ignoreSelector,l=e.maskInputOptions,d=e.maskInputFn,f=e.sampling,p=e.userTriggeredOnInput,h=e.maskTextClass,m=e.unmaskTextClass,v=e.maskTextSelector,y=e.unmaskTextSelector;function g(e){var t=Ot(e),r=e.isTrusted,u=t&&le(t.tagName);if("OPTION"===u&&(t=t.parentElement),t&&u&&!(jt.indexOf(u)<0)&&!Ye(t,a,i,o,!0)){var f=t;if(!(f.classList.contains(s)||c&&f.matches(c))){var g=fe(t),b=pe(f,u,g),S=!1,w=se({maskInputOptions:l,tagName:u,type:g}),_=De(t,h,v,m,y,w);"radio"!==g&&"checkbox"!==g||(S=t.checked),b=ce({isMasked:_,element:t,value:b,maskInputFn:d}),k(t,p?{text:b,isChecked:S,userTriggered:r}:{text:b,isChecked:S});var I=t.name;"radio"===g&&I&&S&&n.querySelectorAll('input[type="radio"][name="'.concat(I,'"]')).forEach((function(e){if(e!==t){var n=ce({isMasked:_,element:e,value:pe(e,u,g),maskInputFn:d});k(e,p?{text:n,isChecked:!S,userTriggered:!1}:{text:n,isChecked:!S})}}))}}}function k(e,n){var a=Nt.get(e);if(!a||a.text!==n.text||a.isChecked!==n.isChecked){Nt.set(e,n);var i=r.getId(e);Ct(t)(W(W({},n),{},{id:i}))}}var b=("last"===f.input?["change"]:["input","change"]).map((function(e){return Be(e,Ct(g),n)})),S=n.defaultView;if(!S)return function(){b.forEach((function(e){return e()}))};var w=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),_=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[
1S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&b.push.apply(b,Object(u.a)(_.map((function(e){return He(e[0],e[1],{set:function(){Ct(g)({target:this,isTrusted:!1})}},!1,S)})))),Ct((function(){b.forEach((function(e){return e()}))}))}function Pt(e){return function(e,t){if(Xt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Xt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Xt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Xt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function Bt(e,t,n){var r,a;return e?(e.ownerNode?r=t.getId(e.ownerNode):a=n.getId(e),{styleId:a,id:r}):{}}function Ut(e,t){var n=e.styleSheetRuleCb,r=e.mirror,a=e.stylesheetManager,i=t.win;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return function(){};var o=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Ct((function(e,t,i){var o=Object(c.a)(i,2),s=o[0],u=o[1],l=Bt(t,r,a.styleMirror),d=l.id,f=l.styleId;return(d&&-1!==d||f&&-1!==f)&&n({id:d,styleId:f,adds:[{rule:s,index:u}]}),e.apply(t,i)}))});var s,l,d=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(d,{apply:Ct((function(e,t,i){var o=Object(c.a)(i,1)[0],s=Bt(t,r,a.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&n({id:u,styleId:l,removes:[{index:o}]}),e.apply(t,i)}))}),i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Ct((function(e,t,i){var o=Object(c.a)(i,1)[0],s=Bt(t,r,a.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&n({id:u,styleId:l,replace:o}),e.apply(t,i)}))})),i.CSSStyleSheet.prototype.replaceSync&&(l=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:Ct((function(e,t,i){var o=Object(c.a)(i,1)[0],s=Bt(t,r,a.styleMirror),u=s.id,l=s.styleId;return(u&&-1!==u||l&&-1!==l)&&n({id:u,styleId:l,replaceSync:o}),e.apply(t,i)}))}));var f={};Yt("CSSGroupingRule")?f.CSSGroupingRule=i.CSSGroupingRule:(Yt("CSSMediaRule")&&(f.CSSMediaRule=i.CSSMediaRule),Yt("CSSConditionRule")&&(f.CSSConditionRule=i.CSSConditionRule),Yt("CSSSupportsRule")&&(f.CSSSupportsRule=i.CSSSupportsRule));var p={};return Object.entries(f).forEach((function(e){var t=Object(c.a)(e,2),i=t[0],o=t[1];p[i]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(p[i].insertRule,{apply:Ct((function(e,t,i){var o=Object(c.a)(i,2),s=o[0],l=o[1],d=Bt(t.parentStyleSheet,r,a.styleMirror),f=d.id,p=d.styleId;return(f&&-1!==f||p&&-1!==p)&&n({id:f,styleId:p,adds:[{rule:s,index:[].concat(Object(u.a)(Pt(t)),[l||0])}]}),e.apply(t,i)}))}),o.prototype.deleteRule=new Proxy(p[i].deleteRule,{apply:Ct((function(e,t,i){var o=Object(c.a)(i,1)[0],s=Bt(t.parentStyleSheet,r,a.styleMirror),l=s.id,d=s.styleId;return(l&&-1!==l||d&&-1!==d)&&n({id:l,styleId:d,removes:[{index:[].concat(Object(u.a)(Pt(t)),[o])}]}),e.apply(t,i)}))})})),Ct((function(){i.CSSStyleSheet.prototype.insertRule=o,i.CSSStyleSheet.prototype.deleteRule=d,s&&(i.CSSStyleSheet.prototype.replace=s),l&&(i.CSSStyleSheet.prototype.replaceSync=l),Object.entries(f).forEach((function(e){var t=Object(c.a)(e,2),n=t[0],r=t[1];r.prototype.insertRule=p[n].insertRule,r.prototype.deleteRule=p[n].deleteRule}))}))}function zt(e,t){var n=e.mirror,r=e.stylesheetManager,a=null;a="#document"===t.nodeName?n.getId(t):n.getId(t.host);var i="#document"===t.nodeName?Et([t,"access",function(e){return e.defaultView},"optionalAccess",function(e){return e.Document}]):Et([t,"access",function(e){return e.ownerDocument},"optionalAccess",function(e){return e.defaultView},"optionalAccess",function(e){return e.ShadowRoot}]),o=Et([i,"optionalAccess",function(e){return e.prototype}])?Object.getOwnPropertyDescriptor(Et([i,"optionalAccess",function(e){return e.prototype}]),"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&i&&o?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:function(){var e=this;return Et([o,"access",function(e){return e.get},"optionalAccess",function(e){return e.call},"call",function(t){return t(e)}])},set:function(e){var t=this,n=Et([o,"access",function(e){return e.set},"optionalAccess",function(e){return e.call},"call",function(n){return n(t,e)}]);if(null!==a&&-1!==a)try{r.adoptStyleSheets(e,a)}catch(i){}return n}}),Ct((function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):function(){}}function Wt(e,t){var n=e.styleDeclarationCb,r=e.mirror,a=e.ignoreCSSAttributes,i=e.stylesheetManager,o=t.win,s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Ct((function(e,t,o){var u=Object(c.a)(o,3),l=u[0],d=u[1],f=u[2];if(a.has(l))return s.apply(t,[l,d,f]);var p=Bt(Et([t,"access",function(e){return e.parentRule},"optionalAccess",function(e){return e.parentStyleSheet}]),r,i.styleMirror),h=p.id,m=p.styleId;
1return(h&&-1!==h||m&&-1!==m)&&n({id:h,styleId:m,set:{property:l,value:d,priority:f},index:Pt(t.parentRule)}),e.apply(t,o)}))});var u=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:Ct((function(e,t,o){var s=Object(c.a)(o,1)[0];if(a.has(s))return u.apply(t,[s]);var l=Bt(Et([t,"access",function(e){return e.parentRule},"optionalAccess",function(e){return e.parentStyleSheet}]),r,i.styleMirror),d=l.id,f=l.styleId;return(d&&-1!==d||f&&-1!==f)&&n({id:d,styleId:f,remove:{property:s},index:Pt(t.parentRule)}),e.apply(t,o)}))}),Ct((function(){o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=u}))}function Ht(e){var t=e.mediaInteractionCb,n=e.blockClass,r=e.blockSelector,a=e.unblockSelector,i=e.mirror,o=e.sampling,s=e.doc,c=Ct((function(e){return We(Ct((function(o){var s=Ot(o);if(s&&!Ye(s,n,r,a,!0)){var c=s.currentTime,u=s.volume,l=s.muted,d=s.playbackRate;t({type:e,id:i.getId(s),currentTime:c,volume:u,muted:l,playbackRate:d})}})),o.media||500)})),u=[Be("play",c(0),s),Be("pause",c(1),s),Be("seeked",c(2),s),Be("volumechange",c(3),s),Be("ratechange",c(4),s)];return Ct((function(){u.forEach((function(e){return e()}))}))}function qt(e){var t=e.fontCb,n=e.doc,r=n.defaultView;if(!r)return function(){};var a=[],i=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,n){var r=new o(e,t,n);return i.set(r,{family:e,buffer:"string"!==typeof t,descriptors:n,fontSource:"string"===typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};var s=qe(n.fonts,"add",(function(e){return function(n){return setTimeout(Ct((function(){var e=i.get(n);e&&(t(e),i.delete(n))})),0),e.apply(this,[n])}}));return a.push((function(){r.FontFace=o})),a.push(s),Ct((function(){a.forEach((function(e){return e()}))}))}function Kt(e){var t=e.doc,n=e.mirror,r=e.blockClass,a=e.blockSelector,i=e.unblockSelector,o=e.selectionCb,s=!0,c=Ct((function(){var e=t.getSelection();if(!(!e||s&&Et([e,"optionalAccess",function(e){return e.isCollapsed}]))){s=e.isCollapsed||!1;for(var c=[],u=e.rangeCount||0,l=0;l<u;l++){var d=e.getRangeAt(l),f=d.startContainer,p=d.startOffset,h=d.endContainer,m=d.endOffset;Ye(f,r,a,i,!0)||Ye(h,r,a,i,!0)||c.push({start:n.getId(f),startOffset:p,end:n.getId(h),endOffset:m})}o({ranges:c})}}));return c(),Be("selectionchange",c)}function Vt(e){var t=e.doc,n=e.customElementCb,r=t.defaultView;return r&&r.customElements?qe(r.customElements,"define",(function(e){return function(t,r,a){try{n({define:{name:t}})}catch(i){}return e.apply(this,[t,r,a])}})):function(){}}function Jt(e){var t=e.doc.defaultView;if(!t)return function(){};var n,r=Mt(e,e.doc),a=Rt(e),i=At(e),o=Dt(e),s=Lt(e,{win:t}),c=Ft(e),u=Ht(e),l=Ut(e,{win:t}),d=zt(e,e.doc),f=Wt(e,{win:t}),p=e.collectFonts?qt(e):function(){},h=Kt(e),m=Vt(e),v=[],y=H(e.plugins);try{for(y.s();!(n=y.n()).done;){var g=n.value;v.push(g.observer(g.callback,t,g.options))}}catch(k){y.e(k)}finally{y.f()}return Ct((function(){Tt.forEach((function(e){return e.reset()})),r.disconnect(),a(),i(),o(),s(),c(),u(),l(),d(),f(),p(),h(),m(),v.forEach((function(e){return e()}))}))}function Xt(e){return"undefined"!==typeof window[e]}function Yt(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Gt=function(){function e(t){Object(d.a)(this,e),this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}return Object(f.a)(e,[{key:"getId",value:function(e,t,n,r){var a=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e),o=a.get(t);return o||(o=this.generateIdFn(),a.set(t,o),i.set(o,t)),o}},{key:"getIds",value:function(e,t){var n=this,r=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return t.map((function(t){return n.getId(e,t,r,a)}))}},{key:"getRemoteId",value:function(e,t,n){var r=n||this.getRemoteIdToIdMap(e);if("number"!==typeof t)return t;var a=r.get(t);return a||-1}},{key:"getRemoteIds",value:function(e,t){var n=this,r=this.getRemoteIdToIdMap(e);return t.map((function(t){return n.getRemoteId(e,t,r)}))}},{key:"reset",value:function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}},{key:"getIdToRemoteIdMap",value:function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}},{key:"getRemoteIdToIdMap",value:function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}]),e}();function $t(e){for(var t=void 0,n=e[0],r=1;r<e.length;){var a=e[r],i=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=i(n)):"call"!==a&&"optionalCall"!==a||(n=i((function(){for(var e,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=n).call.apply(e,[t].concat(a))})),t=void 0)}return n}var Qt,Zt=function(){function e(){Object(d.a)(this,e),this.crossOriginIframeMirror=ne
1w Gt(ge),this.crossOriginIframeRootIdMap=new WeakMap}return Object(f.a)(e,[{key:"addIframe",value:function(){}},{key:"addLoadListener",value:function(){}},{key:"attachIframe",value:function(){}}]),e}(),en=function(){function e(t){Object(d.a)(this,e),this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Gt(ge),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Gt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}return Object(f.a)(e,[{key:"addIframe",value:function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}},{key:"addLoadListener",value:function(e){this.loadListener=e}},{key:"attachIframe",value:function(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),$t([this,"access",function(e){return e.loadListener},"optionalCall",function(t){return t(e)}]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var n=this.crossOriginIframeMap.get(e.source);if(n){var r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}}}},{key:"transformCrossOriginEvent",value:function(e,t){var n=this;switch(t.type){case ut.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:ut.IncrementalSnapshot,data:{source:lt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case ut.Meta:case ut.Load:case ut.DomContentLoaded:return!1;case ut.Plugin:return t;case ut.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case ut.IncrementalSnapshot:switch(t.data.source){case lt.Mutation:return t.data.adds.forEach((function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((function(t){n.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){n.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case lt.Drag:case lt.TouchMove:case lt.MouseMove:return t.data.positions.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case lt.ViewportResize:return!1;case lt.MediaInteraction:case lt.MouseInteraction:case lt.Scroll:case lt.CanvasMutation:case lt.Input:return this.replaceIds(t.data,e,["id"]),t;case lt.StyleSheetRule:case lt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case lt.Font:return t;case lt.Selection:return t.data.ranges.forEach((function(t){n.replaceIds(t,e,["start","end"])})),t;case lt.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),$t([t,"access",function(e){return e.data},"access",function(e){return e.styles},"optionalAccess",function(e){return e.forEach},"call",function(t){return t((function(t){n.replaceStyleIds(t,e,["styleId"])}))}]),t}}return!1}},{key:"replace",value:function(e,t,n,r){var a,i=H(r);try{for(i.s();!(a=i.n()).done;){var o=a.value;(Array.isArray(t[o])||"number"===typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]))}}catch(s){i.e(s)}finally{i.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
1h((function(e){n.replaceIdOnNode(e,t)}))}},{key:"patchRootIdOnNode",value:function(e,t){var n=this;e.type===K.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((function(e){n.patchRootIdOnNode(e,t)}))}}]),e}(),tn=function(){function e(){Object(d.a)(this,e)}return Object(f.a)(e,[{key:"init",value:function(){}},{key:"addShadowRoot",value:function(){}},{key:"observeAttachShadow",value:function(){}},{key:"reset",value:function(){}}]),e}(),nn=function(){function e(t){Object(d.a)(this,e),this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}return Object(f.a)(e,[{key:"init",value:function(){this.reset(),this.patchAttachShadow(Element,document)}},{key:"addShadowRoot",value:function(e,t){var n=this;if(re(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var r=Mt(W(W({},this.bypassOptions),{},{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((function(){return r.disconnect()})),this.restoreHandlers.push(Dt(W(W({},this.bypassOptions),{},{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(e.host)),n.restoreHandlers.push(zt({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e))}),0)}}},{key:"observeAttachShadow",value:function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}},{key:"patchAttachShadow",value:function(e,t){var n=this;this.restoreHandlers.push(qe(e.prototype,"attachShadow",(function(e){return function(r){var a=e.call(this,r);return this.shadowRoot&&st(this)&&n.addShadowRoot(this.shadowRoot,t),a}})))}},{key:"reset",value:function(){this.restoreHandlers.forEach((function(e){try{e()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}]),e}(),rn=function(){function e(){Object(d.a)(this,e)}return Object(f.a)(e,[{key:"reset",value:function(){}},{key:"freeze",value:function(){}},{key:"unfreeze",value:function(){}},{key:"lock",value:function(){}},{key:"unlock",value:function(){}},{key:"snapshot",value:function(){}}]),e}(),an=function(){function e(t){Object(d.a)(this,e),this.trackedLinkElements=new WeakSet,this.styleMirror=new at,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}return Object(f.a)(e,[{key:"attachLinkElement",value:function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}},{key:"trackLinkElement",value:function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}},{key:"adoptStyleSheets",value:function(e,t){if(0!==e.length){var n,r={id:t,styleIds:[]},a=[],i=H(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,s=void 0;this.styleMirror.has(o)?s=this.styleMirror.getId(o):(s=this.styleMirror.add(o),a.push({styleId:s,rules:Array.from(o.rules||CSSRule,(function(e,t){return{rule:ie(e),index:t}}))})),r.styleIds.push(s)}}catch(c){i.e(c)}finally{i.f()}a.length>0&&(r.styles=a),this.adoptedStyleSheetCb(r)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}(),on=function(){function e(){Object(d.a)(this,e),this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}return Object(f.a)(e,[{key:"periodicallyClear",value:function(){var e=this;!function(){ct().apply(void 0,arguments)}((function(){e.clear(),e.loop&&e.periodicallyClear()}))}},{key:"inOtherBuffer",value:function(e,t){var n=this.nodeMap.get(e);return n&&Array.from(n).some((function(e){return e!==t}))}},{key:"add",value:function(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}},{key:"clear",value:function(){this.nodeMap=new WeakMap}},{key:"destroy",value:function(){this.loop=!1}}]),e}();function sn(e){var t=e;return t.timestamp=Ke(),t}var cn=new oe;function un(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,n=e.checkoutEveryNms,r=e.checkoutEveryNth,a=e.blockClass,i=void 0===a?"rr-block":a,o=e.blockSelector,s=void 0===o?null:o,c=e.unblockSelector,u=void 0===c?null:c,l=e.ignoreClass,d=void 0===l?"rr-ignore":l,f=e.ignoreSelector,p=void 0===f?null:f,h=e.maskAllText,m=void 0!==h&&h,y=e.maskTextClass,g=void 0===y?"rr-mask":y,k=e.unmaskTextClass,b=void 0===k?null:k,S=e.maskTextSelector,w=void 0===S?null:S,_=e.unmaskTextSelector,I=void 0===_?null:_,x=e.inlineStylesheet,C=void 0===x||x,E=e.maskAllInputs,T=e.maskInputOptions,O=e.slimDOMOptions,M=e.maskAttributeFn,R=e.maskInputFn,A=e.maskTextFn,D=e.packFn,L=e.sampling,j=void 0===L?{}:L,N=e.dataURLOptions,F=void 0===N?{}:N,P=e.mousemoveWait,B=e.recordCanvas,U=void 0!==B&&B,z=e.recordCrossOriginIframes,q=void 0!==z&&z,K=e.recordAfter,V=void 0===K?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":K,J=e.userTriggeredOnInput,X=void 0!==J&&J,Y=e.collectFonts,G=void 0!==Y&&Y,$=e.inlineImages,Q=void 0!==$&&$,Z=e.plugins,ee=e.keepIframeSrcFn,te=void 0===ee?function(){return!1}:ee,ne=e.ignoreCSSAttributes,re=void 0===ne?new Set([]):ne,ae=e.errorHandler,ie=e.onMutation,oe=e.getCanvasManager;It(ae);var se=!q||window.parent===window,ce=!1;
1if(!se)try{window.parent.document&&(ce=!1)}catch(Re){ce=!0}if(se&&!t)throw new Error("emit function is required");void 0!==P&&void 0===j.mousemove&&(j.mousemove=P),cn.reset();var ue,le=!0===E?{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,radio:!0,checkbox:!0}:void 0!==T?T:{},de=!0===O||"all"===O?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===O,headMetaDescKeywords:"all"===O}:O||{};Ze();var fe,pe=0,he=function(e){var t,n=H(Z||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.eventProcessor&&(e=r.eventProcessor(e))}}catch(a){n.e(a)}finally{n.f()}return D&&!ce&&(e=D(e)),e},me=function(e,a){if(!Object(v.a)([Tt,"access",function(e){return e[0]},"optionalAccess",function(e){return e.isFrozen},"call",function(e){return e()}])||e.type===ut.FullSnapshot||e.type===ut.IncrementalSnapshot&&e.data.source===lt.Mutation||Tt.forEach((function(e){return e.unfreeze()})),se)Object(v.a)([t,"optionalCall",function(t){return t(he(e),a)}]);else if(ce){var i={type:"rrweb",event:he(e),origin:window.location.origin,isCheckout:a};window.parent.postMessage(i,"*")}if(e.type===ut.FullSnapshot)ue=e,pe=0;else if(e.type===ut.IncrementalSnapshot){if(e.data.source===lt.Mutation&&e.data.isAttachIframe)return;pe++;var o=r&&pe>=r,s=n&&ue&&e.timestamp-ue.timestamp>n;(o||s)&&Ee(!0)}},ve=function(e){me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.Mutation},e)}))},ye=function(e){return me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.Scroll},e)}))},ge=function(e){return me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.CanvasMutation},e)}))},ke=function(e){return me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.AdoptedStyleSheet},e)}))},be=new an({mutationCb:ve,adoptedStyleSheetCb:ke}),Se="boolean"===typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Zt:new en({mirror:cn,mutationCb:ve,stylesheetManager:be,recordCrossOriginIframes:q,wrappedEmit:me}),we=H(Z||[]);try{for(we.s();!(fe=we.n()).done;){var _e=fe.value;_e.getMirror&&_e.getMirror({nodeMirror:cn,crossOriginIframeMirror:Se.crossOriginIframeMirror,crossOriginIframeStyleMirror:Se.crossOriginIframeStyleMirror})}}catch(Ae){we.e(Ae)}finally{we.f()}var Ie=new on,xe=ln(oe,{mirror:cn,win:window,mutationCb:function(e){return me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.CanvasMutation},e)}))},recordCanvas:U,blockClass:i,blockSelector:s,unblockSelector:u,sampling:j.canvas,dataURLOptions:F,errorHandler:ae}),Ce="boolean"===typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new tn:new nn({mutationCb:ve,scrollCb:ye,bypassOptions:{onMutation:ie,blockClass:i,blockSelector:s,unblockSelector:u,maskAllText:m,maskTextClass:g,unmaskTextClass:b,maskTextSelector:w,unmaskTextSelector:I,inlineStylesheet:C,maskInputOptions:le,dataURLOptions:F,maskAttributeFn:M,maskTextFn:A,maskInputFn:R,recordCanvas:U,inlineImages:Q,sampling:j,slimDOMOptions:de,iframeManager:Se,stylesheetManager:be,canvasManager:xe,keepIframeSrcFn:te,processedNodeManager:Ie},mirror:cn}),Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];me(sn({type:ut.Meta,data:{href:window.location.href,width:Xe(),height:Je()}}),e),be.reset(),Ce.init(),Tt.forEach((function(e){return e.lock()}));var t=Fe(document,{mirror:cn,blockClass:i,blockSelector:s,unblockSelector:u,maskAllText:m,maskTextClass:g,unmaskTextClass:b,maskTextSelector:w,unmaskTextSelector:I,inlineStylesheet:C,maskAllInputs:le,maskAttributeFn:M,maskInputFn:R,maskTextFn:A,slimDOM:de,dataURLOptions:F,recordCanvas:U,inlineImages:Q,onSerialize:function(e){et(e,cn)&&Se.addIframe(e),tt(e,cn)&&be.trackLinkElement(e),nt(e)&&Ce.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){Se.attachIframe(e,t),Ce.observeAttachShadow(e)},onStylesheetLoad:function(e,t){be.attachLinkElement(e,t)},keepIframeSrcFn:te});if(!t)return console.warn("Failed to snapshot the document");me(sn({type:ut.FullSnapshot,data:{node:t,initialOffset:Ve(window)}})),Tt.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&be.adoptStyleSheets(document.adoptedStyleSheets,cn.getId(document))};Qt=Ee;try{var Te=[],Oe=function(e){return Ct(Jt)({onMutation:ie,mutationCb:ve,mousemoveCb:function(e,t){return me(sn({type:ut.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.MouseInteraction},e)}))},scrollCb:ye,viewportResizeCb:function(e){return me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.ViewportResize},e)}))},inputCb:function(e){return me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.Input},e)}))},mediaInteractionCb:function(e){return me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.StyleDeclaration},e)}))},canvasMutationCb:ge,fontCb:function(e){return me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.Font},e)}))},selectionCb:function(e){me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.Selection},e)}))},customElementCb:function(e){me(sn({type:ut.IncrementalSnapshot,data:W({source:lt.CustomElement},e)}))},blockClass:i,ignoreClass:d,ignoreSelector:p,maskAllText:m,maskTextClass:g,unmaskTextClass:b,maskTextSelector:w,unmaskTextSelector:I,maskInputOptions:le,inlineStylesheet:C,sampling:j,recordCanvas:U,inlineImages:Q,userTr
1iggeredOnInput:X,collectFonts:G,doc:e,maskAttributeFn:M,maskInputFn:R,maskTextFn:A,keepIframeSrcFn:te,blockSelector:s,unblockSelector:u,slimDOMOptions:de,dataURLOptions:F,mirror:cn,iframeManager:Se,stylesheetManager:be,shadowDomManager:Ce,processedNodeManager:Ie,canvasManager:xe,ignoreCSSAttributes:re,plugins:Object(v.a)([Z,"optionalAccess",function(e){return e.filter},"call",function(e){return e((function(e){return e.observer}))},"optionalAccess",function(e){return e.map},"call",function(e){return e((function(e){return{observer:e.observer,options:e.options,callback:function(t){return me(sn({type:ut.Plugin,data:{plugin:e.name,payload:t}}))}}}))}])||[]},{})};Se.addLoadListener((function(e){try{Te.push(Oe(e.contentDocument))}catch(t){console.warn(t)}}));var Me=function(){Ee(),Te.push(Oe(document))};return"interactive"===document.readyState||"complete"===document.readyState?Me():(Te.push(Be("DOMContentLoaded",(function(){me(sn({type:ut.DomContentLoaded,data:{}})),"DOMContentLoaded"===V&&Me()}))),Te.push(Be("load",(function(){me(sn({type:ut.Load,data:{}})),"load"===V&&Me()}),window))),function(){Te.forEach((function(e){return e()})),Ie.destroy(),Qt=void 0,xt()}}catch(De){console.warn(De)}}function ln(e,t){try{return e?e(t):new rn}catch(n){return console.warn("Unable to initialize CanvasManager"),new rn}}un.mirror=cn,un.takeFullSnapshot=function(e){if(!Qt)throw new Error("please take full snapshot after start recording");Qt(e)};function dn(e){return e>9999999999?e:1e3*e}function fn(e){return e>9999999999?e/1e3:e}function pn(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((function(){return e.throttledAddEvent({type:ut.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:Object(x.a)(t,10,1e3)}}),"console"===t.category})))}var hn;function mn(e){return e.closest("button,a")||e}function vn(e){var t=yn(e);return t&&t instanceof Element?mn(t):t}function yn(e){return function(e){return"object"===typeof e&&!!e&&"target"in e}(e)?e.target:e}function gn(e){return hn||(hn=[],Object(C.e)(V,"open",(function(e){return function(){if(hn)try{hn.forEach((function(e){return e()}))}catch(a){}for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(V,n)}}))),hn.push(e),function(){var t=hn?hn.indexOf(e):-1;t>-1&&hn.splice(t,1)}}var kn,bn=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pn;Object(d.a)(this,e),this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}return Object(f.a)(e,[{key:"addListeners",value:function(){var e=this,t=gn((function(){e._lastMutation=wn()}));this._teardown=function(){t(),e._clicks=[],e._lastMutation=0,e._lastScroll=0}}},{key:"removeListeners",value:function(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}},{key:"handleClick",value:function(e,t){if(!function(e,t){if(!Sn.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)&&function(e){return!(!e.data||"number"!==typeof e.data.nodeId||!e.timestamp)}(e)){var n={timestamp:fn(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((function(e){return e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1}))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}}},{key:"registerMutation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=fn(e)}},{key:"registerScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=fn(e)}},{key:"registerClick",value:function(e){var t=mn(e);this._handleMultiClick(t)}},{key:"_handleMultiClick",value:function(e){this._getClicks(e).forEach((function(e){e.clickCount++}))}},{key:"_getClicks",value:function(e){return this._clicks.filter((function(t){return t.node===e}))}},{key:"_checkClicks",value:function(){var e=this,t=[],n=wn();this._clicks.forEach((function(r){!r.mutationAfter&&e._lastMutation&&(r.mutationAfter=r.timestamp<=e._lastMutation?e._lastMutation-r.timestamp:void 0),!r.scrollAfter&&e._lastScroll&&(r.scrollAfter=r.timestamp<=e._lastScroll?e._lastScroll-r.timestamp:void 0),r.timestamp+e._timeout<=n&&t.push(r)}));for(var r=0,a=t;r<a.length;r++){var i=a[r],o=this._clicks.indexOf(i);o>-1&&(this._generateBreadcrumbs(i),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}},{key:"_generateBreadcrumbs",value:function(e){var t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!r,i=e.clickCount,o=e.clickBreadcrumb;if(a){var s=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),c=s<1e3*this._timeout?"mutation":"timeout",u={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:W(W({},o.data),{},{url:V.location.href,route:t.getCurrentRoute(),timeAfterClickMs:s,endReason:c,clickCount:i||1})};this._addBreadcrumbEvent(t,u)}
1else if(i>1){var l={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:W(W({},o.data),{},{url:V.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0})};this._addBreadcrumbEvent(t,l)}}},{key:"_scheduleCheckClicks",value:function(){var e=this;this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((function(){return e._checkClicks()}),1e3)}}]),e}(),Sn=["A","BUTTON","INPUT"];function wn(){return Date.now()/1e3}function _n(e,t){try{if(!function(e){return 3===e.type}(t))return;var n=t.data.source;if(n===lt.Mutation&&e.registerMutation(t.timestamp),n===lt.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===lt.MouseInteraction}(t)){var r=t.data,a=r.type,i=r.id,o=un.mirror.getNode(i);o instanceof HTMLElement&&a===dt.Click&&e.registerClick(o)}}catch(s){}}function In(e){return W({timestamp:Date.now()/1e3,type:"default"},e)}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(kn||(kn={}));var xn=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Cn(e){var t={};for(var n in e)if(xn.has(n)){var r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}var En=function(e){return function(t){if(e.isEnabled()){var n=function(e){var t=function(e){var t,n="click"===e.name,r=null;try{r=n?vn(e.event):yn(e.event),t=Object(E.d)(r,{maxStringLength:200})||"<unknown>"}catch(a){t="<unknown>"}return{target:r,message:t}}(e),n=t.target,r=t.message;return In(W({category:"ui.".concat(e.name)},Tn(n,r)))}(t);if(n){var r,a,i,o="click"===t.name,s=o?t.event:void 0;!(o&&e.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(r=e.clickDetector,a=n,i=vn(t.event),r.handleClick(a,i)),pn(e,n)}}}};function Tn(e,t){var n=un.mirror.getId(e),r=n&&un.mirror.getNode(n),a=r&&un.mirror.getMeta(r),i=a&&function(e){return e.type===kn.Element}(a)?a:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((function(e){return e.type===kn.Text&&e.textContent})).filter(Boolean).map((function(e){return e.trim()})).join(""),attributes:Cn(i.attributes)}}:{}}}function On(e,t){if(e.isEnabled()){e.updateUserActivity();var n=function(e){var t=e.metaKey,n=e.shiftKey,r=e.ctrlKey,a=e.altKey,i=e.key,o=e.target;if(!o||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(o)||!i)return null;var s=t||r||a,c=1===i.length;if(!s&&c)return null;var u=Object(E.d)(o,{maxStringLength:200})||"<unknown>",l=Tn(o,u);return In({category:"ui.keyDown",message:u,data:W(W({},l.data),{},{metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:i})})}(t);n&&pn(e,n)}}var Mn={resource:function(e){var t=e.entryType,n=e.initiatorType,r=e.name,a=e.responseEnd,i=e.startTime,o=e.decodedBodySize,s=e.encodedBodySize,c=e.responseStatus,u=e.transferSize;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:"".concat(t,".").concat(n),start:An(i),end:An(a),name:r,data:{size:u,statusCode:c,decodedBodySize:o,encodedBodySize:s}}},paint:function(e){var t=e.duration,n=e.entryType,r=e.name,a=An(e.startTime);return{type:n,name:r,start:a,end:a+t,data:void 0}},navigation:function(e){var t=e.entryType,n=e.name,r=e.decodedBodySize,a=e.duration,i=e.domComplete,o=e.encodedBodySize,s=e.domContentLoadedEventStart,c=e.domContentLoadedEventEnd,u=e.domInteractive,l=e.loadEventStart,d=e.loadEventEnd,f=e.redirectCount,p=e.startTime,h=e.transferSize,m=e.type;if(0===a)return null;return{type:"".concat(t,".").concat(m),start:An(p),end:An(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:o,duration:a,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:f}}}};function Rn(e){return Mn[e.entryType]?Mn[e.entryType](e):null}function An(e){return((T.a||V.performance.timeOrigin)+e)/1e3}function Dn(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}
1function n(e){e.entries.forEach(t)}var r=[];return["navigation","paint","resource"].forEach((function(e){r.push(Object(B.e)(e,n))})),r.push(Object(B.d)((function(t){var n=t.metric;e.replayPerformanceEntries.push(function(e){var t=e.entries,n=t[t.length-1],r=n?n.element:void 0,a=e.value,i=An(a);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:a,size:a,nodeId:r?un.mirror.getId(r):void 0}}}(n))}))),function(){r.forEach((function(e){return e()}))}}var Ln=!1;var jn=function(e){Object(a.a)(n,e);var t=U(n);function n(){return Object(d.a)(this,n),t.call(this,"Event buffer exceeded maximum size of ".concat(Z,"."))}return n}(Object(s.a)(Error)),Nn=function(){function e(){Object(d.a)(this,e),this.events=[],this._totalSize=0,this.hasCheckout=!1}return Object(f.a)(e,[{key:"hasEvents",get:function(){return this.events.length>0}},{key:"type",get:function(){return"sync"}},{key:"destroy",value:function(){this.events=[]}},{key:"addEvent",value:function(){var e=Object(r.a)(h.a.mark((function e(t){var n;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=JSON.stringify(t).length,this._totalSize+=n,!(this._totalSize>Z)){e.next=4;break}throw new jn;case 4:this.events.push(t);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"finish",value:function(){var e=this;return new Promise((function(t){var n=e.events;e.clear(),t(JSON.stringify(n))}))}},{key:"clear",value:function(){this.events=[],this._totalSize=0,this.hasCheckout=!1}},{key:"getEarliestTimestamp",value:function(){var e=this.events.map((function(e){return e.timestamp})).sort()[0];return e?dn(e):null}}]),e}(),Fn=function(){function e(t){Object(d.a)(this,e),this._worker=t,this._id=0}return Object(f.a)(e,[{key:"ensureReady",value:function(){var e=this;return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((function(t,n){e._worker.addEventListener("message",(function(e){e.data.success?t():n()}),{once:!0}),e._worker.addEventListener("error",(function(e){n(e)}),{once:!0})}))),this._ensureReadyPromise}},{key:"destroy",value:function(){this._worker.terminate()}},{key:"postMessage",value:function(e,t){var n=this,r=this._getAndIncrementId();return new Promise((function(a,i){n._worker.addEventListener("message",(function t(o){var s=o.data;s.method===e&&s.id===r&&(n._worker.removeEventListener("message",t),s.success?a(s.response):i(new Error("Error in compression worker")))})),n._worker.postMessage({id:r,method:e,arg:t})}))}},{key:"_getAndIncrementId",value:function(){return this._id++}}]),e}(),Pn=function(){function e(t){Object(d.a)(this,e),this._worker=new Fn(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}return Object(f.a)(e,[{key:"hasEvents",get:function(){return!!this._earliestTimestamp}},{key:"type",get:function(){return"worker"}},{key:"ensureReady",value:function(){return this._worker.ensureReady()}},{key:"destroy",value:function(){this._worker.destroy()}},{key:"addEvent",value:function(e){var t=dn(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);var n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Z?Promise.reject(new jn):this._sendEventToWorker(n)}},{key:"finish",value:function(){return this._finishRequest()}},{key:"clear",value:function(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(function(e){}))}},{key:"getEarliestTimestamp",value:function(){return this._earliestTimestamp}},{key:"_sendEventToWorker",value:function(e){return this._worker.postMessage("addEvent",e)}},{key:"_finishRequest",value:function(){var e=Object(r.a)(h.a.mark((function e(){var t;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._worker.postMessage("finish");case 2:return t=e.sent,this._earliestTimestamp=null,this._totalSize=0,e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Bn=function(){function e(t){Object(d.a)(this,e),this._fallback=new Nn,this._compression=new Pn(t),this._used=this._fallback,this._ensureWorkerIsLoadedProm
1ise=this._ensureWorkerIsLoaded()}return Object(f.a)(e,[{key:"type",get:function(){return this._used.type}},{key:"hasEvents",get:function(){return this._used.hasEvents}},{key:"hasCheckout",get:function(){return this._used.hasCheckout},set:function(e){this._used.hasCheckout=e}},{key:"destroy",value:function(){this._fallback.destroy(),this._compression.destroy()}},{key:"clear",value:function(){return this._used.clear()}},{key:"getEarliestTimestamp",value:function(){return this._used.getEarliestTimestamp()}},{key:"addEvent",value:function(e){return this._used.addEvent(e)}},{key:"finish",value:function(){var e=Object(r.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureWorkerIsLoaded();case 2:return e.abrupt("return",this._used.finish());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"ensureWorkerIsLoaded",value:function(){return this._ensureWorkerIsLoadedPromise}},{key:"_ensureWorkerIsLoaded",value:function(){var e=Object(r.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._compression.ensureReady();case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 9:return e.next=11,this._switchToCompressionWorker();case 11:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(){return e.apply(this,arguments)}}()},{key:"_switchToCompressionWorker",value:function(){var e=Object(r.a)(h.a.mark((function e(){var t,n,r,a,i,o,s;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this._fallback,n=t.events,r=t.hasCheckout,a=[],i=H(n);try{for(i.s();!(o=i.n()).done;)s=o.value,a.push(this._compression.addEvent(s))}catch(c){i.e(c)}finally{i.f()}return this._compression.hasCheckout=r,this._used=this._compression,e.prev=6,e.next=9,Promise.all(a);case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(6);case 14:case"end":return e.stop()}}),e,this,[[6,11]])})));return function(){return e.apply(this,arguments)}}()}]),e}();function Un(e){var t=e.useCompression,n=e.workerUrl;if(t&&window.Worker){var r=function(e){try{var t=e||function(){if("undefined"===typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){var e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,465 bytes, line 1
1,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
1++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;"[Replay] Using compression worker".concat(e?" from ".concat(e):"");var n=new Worker(t);return new Bn(n)}catch(r){}}(n);if(r)return r}return new Nn}function zn(){try{return"sessionStorage"in V&&!!V.sessionStorage}catch(e){return!1}}function Wn(e){!function(){if(!zn())return;try{V.sessionStorage.removeItem(J)}catch(e){}}(),e.session=void 0}function Hn(e){return void 0!==e&&Math.random()<e}function qn(e){var t=Date.now();return{id:e.id||Object(M.f)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Kn(e){if(zn())try{V.sessionStorage.setItem(J,JSON.stringify(e))}catch(t){}}
1function Vn(e,t){return Hn(e)?"session":!!t&&"buffer"}function Jn(e){var t=e.sessionSampleRate,n=e.allowBuffering,r=e.stickySession,a=void 0!==r&&r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.previousSessionId,s=Vn(t,n),c=qn({sampled:s,previousSessionId:o});return a&&Kn(c),c}function Xn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Yn(e,t){var n=t.maxReplayDuration,r=t.sessionIdleExpire,a=t.targetTime,i=void 0===a?Date.now():a;return Xn(e.started,n,i)||Xn(e.lastActivity,r,i)}function Gn(e,t){return!!Yn(e,{sessionIdleExpire:t.sessionIdleExpire,maxReplayDuration:t.maxReplayDuration})&&("buffer"!==e.sampled||0!==e.segmentId)}function $n(e,t){e.traceInternals;var n=e.sessionIdleExpire,r=e.maxReplayDuration,a=e.previousSessionId,i=t.stickySession&&function(e){if(!zn())return null;try{var t=V.sessionStorage.getItem(J);return t?qn(JSON.parse(t)):null}catch(n){return null}}();return i?Gn(i,{sessionIdleExpire:n,maxReplayDuration:r})?Jn(t,{previousSessionId:i.id}):i:Jn(t,{previousSessionId:a})}function Qn(e,t,n){return!!tr(e,t)&&(Zn(e,t,n),!0)}function Zn(e,t,n){return er.apply(this,arguments)}function er(){return(er=Object(r.a)(h.a.mark((function e(t,n,r){var a,i,o,s;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.eventBuffer){e.next=2;break}return e.abrupt("return",null);case 2:if(e.prev=2,r&&"buffer"===t.recordingMode&&t.eventBuffer.clear(),r&&(t.eventBuffer.hasCheckout=!0),a=t.getOptions(),i=nr(n,a.beforeAddRecordingEvent)){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,t.eventBuffer.addEvent(i);case 11:return e.abrupt("return",e.sent);case 14:return e.prev=14,e.t0=e.catch(2),o=e.t0&&e.t0 instanceof jn?"addEventSizeExceeded":"addEvent",e.next=20,t.stop({reason:o});case 20:(s=Object(y.e)())&&s.recordDroppedEvent("internal_sdk_error","replay");case 22:case"end":return e.stop()}}),e,null,[[2,14]])})))).apply(this,arguments)}function tr(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;var n=dn(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||("[Replay] Skipping event with timestamp ".concat(n," because it is after maxReplayDuration"),e.getOptions()._experiments.traceInternals,!1))}function nr(e,t){try{if("function"===typeof t&&function(e){return e.type===ut.Custom}(e))return t(e)}catch(n){return null}return e}function rr(e){return!e.type}function ar(e){return"transaction"===e.type}function ir(e){return"replay_event"===e.type}function or(e){return"feedback"===e.type}function sr(e){var t=function(){var e=Object(y.e)();if(!e)return!1;var t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return function(n,r){if(e.isEnabled()&&(rr(n)||ar(n))){var a=r&&r.statusCode;t&&(!a||a<200||a>=300)||(ar(n)?function(e,t){var n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){var n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;var r=e.getOptions().beforeErrorSampling;if("function"===typeof r&&!r(t))return;setTimeout((function(){e.sendBufferedReplayOrFlush()}))}(e,n))}}}function cr(e){return function(t){e.isEnabled()&&rr(t)&&function(e,t){var n=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"!==typeof n)return;if(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){pn(e,In({category:"replay.hydrate-error"}))}}(e,t)}}function ur(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}function lr(e,t){e.triggerUserActivity(),e.addUpdate((function(){return!t.timestamp||(e.throttledAddEvent({type:ut.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)}))}function dr(e,t){return"buffer"===e.recordingMode&&(t.message!==Y&&(!(!t.exception||t.type)&&Hn(e.getOptions().errorSampleRate)))}function fr(e,t){return t.map((function(t){var n=t.type,r=t.start,a=t.end,i=t.name,o=t.data,s=e.throttledAddEvent({type:ut.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:a,data:o}}});return"string"===typeof s?Promise.resolve(null):s}))}function pr(e){return function(t){if(e.isEnabled()){var n=function(e){var t=e.from,n=e.to,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((function(){return fr(e,[n]),!1})))}}}function hr(e,t){var n;e.isEnabled()&&(null!==t&&(n=t.name,Object(g.a)(n,Object(y.e)())||e.addUpdate((function(){return fr(e,[t]),!0}))))}function mr(e){return function(t){if(e.isEnabled()){var n=function(e){var t=e.startTimestamp,n=e.endTimestamp,r=e.xhr[R.a];if(!t||!n||!r)return null;
1var a=r.method,i=r.url,o=r.status_code;return void 0===i?null:{type:"resource.xhr",name:i,start:t/1e3,end:n/1e3,data:{method:a,statusCode:o}}}(t);hr(e,n)}}}function vr(e,t){if(e)try{if("string"===typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){var n=Ir(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(r){}}function yr(e){if(e){var t=parseInt(e,10);return isNaN(t)?void 0:t}}function gr(e){try{if("string"===typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Ir(e)];if(!e)return[void 0]}catch(t){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function kr(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};var n=W({},e._meta),r=n.warnings||[];return n.warnings=[].concat(Object(u.a)(r),[t]),e._meta=n,e}function br(e,t){if(!t)return null;var n=t.startTimestamp,r=t.endTimestamp,a=t.url,i=t.method,o=t.statusCode,s=t.request,c=t.response;return{type:e,start:n/1e3,end:r/1e3,name:a,data:Object(C.c)({method:i,statusCode:o,request:s,response:c})}}function Sr(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function wr(e,t,n){if(t||0!==Object.keys(e).length){if(!t)return{headers:e};if(!n)return{headers:e,size:t};var r={headers:e,size:t},a=function(e){if(!e||"string"!==typeof e)return{body:e};var t=e.length>$,n=function(e){var t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){var r=e.slice(0,$);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:"".concat(r,"\u2026"),warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(a){}return{body:e}}(n),i=a.body,o=a.warnings;return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}}function _r(e,t){return Object.keys(e).reduce((function(n,r){var a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=e[r]),n}),{})}function Ir(e){return new URLSearchParams(e).toString()}function xr(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.document.baseURI;if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(V.location.origin))return e;var n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;var r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return Object(A.c)(n,t)}function Cr(){return(Cr=Object(r.a)(h.a.mark((function e(t,n,r){var a,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Er(t,n,r);case 3:a=e.sent,i=br("resource.fetch",a),hr(r.replay,i),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function Er(e,t,n){return Tr.apply(this,arguments)}function Tr(){return(Tr=Object(r.a)(h.a.mark((function e(t,n,r){var a,i,o,s,c,u,l,d,f,p,m,v,y,g,k;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Date.now(),i=n.startTimestamp,o=void 0===i?a:i,s=n.endTimestamp,c=void 0===s?a:s,u=t.data,l=u.url,d=u.method,f=u.status_code,p=void 0===f?0:f,m=u.request_body_size,v=u.response_body_size,y=xr(l,r.networkDetailAllowUrls)&&!xr(l,r.networkDetailDenyUrls),g=y?Or(r,n.input,m):Sr(m),e.next=7,Mr(y,r,n.response,v);case 7:return k=e.sent,e.abrupt("return",{startTimestamp:o,endTimestamp:c,url:l,method:d,statusCode:p,request:g,response:k});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Or(e,t,n){var r=e.networkCaptureBodies,a=e.networkRequestHeaders,i=t?function(e,t){if(1===e.length&&"string"!==typeof e[0])return Fr(e[0],t);if(2===e.length)return Fr(e[1],t);return{}}(t,a):{};if(!r)return wr(i,n,void 0);var o=gr(jr(t)),s=Object(c.a)(o,2),u=s[0],l=s[1],d=wr(i,n,u);return l?kr(d,l):d}function Mr(e,t,n,r){return Rr.apply(this,arguments)}function Rr(){return(Rr=Object(r.a)(h.a.mark((function e(t,n,r,a){var i,o,s,u,l,d,f,p,m;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.networkCaptureBodies,o=n.textEncoder,s=n.networkResponseHeaders,t||void 0===a){e.next=3;break}return e.abrupt("return",Sr(a));case 3:if(u=r?Nr(r.headers,s):{},r&&(i||void 0===a)){e.next=6;break}return e.abrupt("return",wr(u,a,void 0));case 6:return e.next=8,Dr(r);case 8:if(l=e.sent,d=Object(c.a)(l,2),f=d[0],p=d[1],m=Ar(f,{networkCaptureBodies:i,textEncoder:
1o,responseBodySize:a,captureDetails:t,headers:u}),!p){e.next=15;break}return e.abrupt("return",kr(m,p));case 15:return e.abrupt("return",m);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ar(e,t){var n=t.networkCaptureBodies,r=t.textEncoder,a=t.responseBodySize,i=t.captureDetails,o=t.headers;try{var s=e&&e.length&&void 0===a?vr(e,r):a;return i?wr(o,s,n?e:void 0):Sr(s)}catch(c){return wr(o,a,void 0)}}function Dr(e){return Lr.apply(this,arguments)}function Lr(){return(Lr=Object(r.a)(h.a.mark((function e(t){var n,r;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Pr(t)){e.next=3;break}return e.abrupt("return",[void 0,"BODY_PARSE_ERROR"]);case 3:return e.prev=3,e.next=6,Br(n);case 6:return r=e.sent,e.abrupt("return",[r]);case 10:return e.prev=10,e.t0=e.catch(3),e.abrupt("return",[void 0,"BODY_PARSE_ERROR"]);case 14:case"end":return e.stop()}}),e,null,[[3,10]])})))).apply(this,arguments)}function jr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(2===e.length&&"object"===typeof e[1])return e[1].body}function Nr(e,t){var n={};return t.forEach((function(t){e.get(t)&&(n[t]=e.get(t))})),n}function Fr(e,t){if(!e)return{};var n=e.headers;return n?n instanceof Headers?Nr(n,t):Array.isArray(n)?{}:_r(n,t):{}}function Pr(e){try{return e.clone()}catch(t){}}function Br(e){return new Promise((function(t,n){var r=setTimeout((function(){return n(new Error("Timeout while trying to read response body"))}),500);(function(e){return Ur.apply(this,arguments)})(e).then((function(e){return t(e)}),(function(e){return n(e)})).finally((function(){return clearTimeout(r)}))}))}function Ur(){return(Ur=Object(r.a)(h.a.mark((function e(t){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.text();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zr(){return(zr=Object(r.a)(h.a.mark((function e(t,n,r){var a,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{a=Hr(t,n,r),i=br("resource.xhr",a),hr(r.replay,i)}catch(o){}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wr(e,t,n){var r=t.xhr,a=t.input;if(r){var i=vr(a,n.textEncoder),o=r.getResponseHeader("content-length")?yr(r.getResponseHeader("content-length")):function(e,t,n){try{return vr("json"===t&&e&&"object"===typeof e?JSON.stringify(e):e,n)}catch(r){return}}(r.response,r.responseType,n.textEncoder);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}}function Hr(e,t,n){var r=Date.now(),a=t.startTimestamp,i=void 0===a?r:a,o=t.endTimestamp,s=void 0===o?r:o,u=t.input,l=t.xhr,d=e.data,f=d.url,p=d.method,h=d.status_code,m=void 0===h?0:h,v=d.request_body_size,y=d.response_body_size;if(!f)return null;if(!l||!xr(f,n.networkDetailAllowUrls)||xr(f,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:s,url:f,method:p,statusCode:m,request:Sr(v),response:Sr(y)};var g=l[R.a],k=g?_r(g.request_headers,n.networkRequestHeaders):{},b=_r(function(e){var t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce((function(e,t){var n=t.split(": "),r=Object(c.a)(n,2),a=r[0],i=r[1];return e[a.toLowerCase()]=i,e}),{})}(l),n.networkResponseHeaders),S=n.networkCaptureBodies?gr(u):[void 0],w=Object(c.a)(S,2),_=w[0],I=w[1],x=n.networkCaptureBodies?function(e){var t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return function(e,t){try{if("string"===typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"===typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(n){t.push(n)}return[void 0]}(l):[void 0],C=Object(c.a)(x,2),E=C[0],T=C[1],O=wr(k,v,_),M=wr(b,y,E);return{startTimestamp:i,endTimestamp:s,url:f,method:p,statusCode:m,request:I?kr(O,I):O,response:T?kr(M,T):M}}function qr(e){var t=Object(y.e)();try{var n=new TextEncoder,r=e.getOptions(),a={replay:e,textEncoder:n,networkDetailAllowUrls:r.networkDetailAllowUrls,networkDetailDenyUrls:r.networkDetailDenyUrls,networkCaptureBodies:r.networkCaptureBodies,networkRequestHeaders:r.networkRequestHeaders,networkResponseHeaders:r.networkResponseHeaders};t&&t.on?t.on("beforeAddBreadcrumb",(function(e,t){return function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(Wr(t,n,e),function(e,t,n){zr.apply(this,arguments)}
1(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(function(e,t,n){var r=t.input,a=t.response,i=vr(r?jr(r):void 0,n.textEncoder),o=a?yr(a.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n,e),function(e,t,n){Cr.apply(this,arguments)}(t,n,e))}catch(r){}}(a,e,t)})):(Object(D.a)(function(e){return function(t){if(e.isEnabled()){var n=function(e){var t=e.startTimestamp,n=e.endTimestamp,r=e.fetchData,a=e.response;if(!n)return null;var i=r.method;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:r.url,data:{method:i,statusCode:a?a.status:void 0}}}(t);hr(e,n)}}}(e)),Object(R.b)(mr(e)))}catch(i){}}var Kr=null;var Vr=function(e){return function(t){if(e.isEnabled()){var n=function(e){var t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(Kr===t||!t)return null;if(Kr=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){var t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return In(e);var n=!1,r=t.map((function(e){if(!e)return e;if("string"===typeof e)return e.length>Q?(n=!0,"".concat(e.slice(0,Q),"\u2026")):e;if("object"===typeof e)try{var t=Object(x.a)(e,7);return JSON.stringify(t).length>Q?(n=!0,"".concat(JSON.stringify(t,null,2).slice(0,Q),"\u2026")):t}catch(r){}return e}));return In(W(W({},e),{},{data:W(W({},e.data),{},{arguments:r},n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{})}))}(t);return In(t)}(t);n&&pn(e,n)}}};function Jr(e){var t=Object(y.f)(),n=Object(y.e)();t.addScopeListener(Vr(e)),Object(L.a)(En(e)),Object(j.a)(pr(e)),qr(e);var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?sr(e):void 0;return Object.assign((function(n,r){return e.isEnabled()?ir(n)?(delete n.breadcrumbs,n):(rr(n)||ar(n)||or(n))&&e.checkAndHandleExpiredSession()?or(n)?(e.flush(),n.contexts.feedback.replay_id=e.getSessionId(),lr(e,n),n):ur(n,r)&&!e.getOptions()._experiments.captureExceptions?null:((dr(e,n)||"session"===e.recordingMode)&&(n.tags=W(W({},n.tags),{},{replayId:e.getSessionId()})),t&&t(n,{statusCode:200}),n):n:n}),{id:"Replay"})}(e,!Xr(n));n&&n.addEventProcessor?n.addEventProcessor(r):Object(k.b)(r),Xr(n)&&(n.on("beforeSendEvent",cr(e)),n.on("afterSendEvent",sr(e)),n.on("createDsc",(function(t){var n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&(e.checkAndHandleExpiredSession()&&(t.replay_id=n))})),n.on("startTransaction",(function(t){e.lastTransaction=t})),n.on("finishTransaction",(function(t){e.lastTransaction=t})),n.on("beforeSendFeedback",(function(t,n){var r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}function Xr(e){return!(!e||!e.on)}function Yr(e){return Gr.apply(this,arguments)}function Gr(){return(Gr=Object(r.a)(h.a.mark((function e(t){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",Promise.all(fr(t,[$r(V.performance.memory)])));case 4:return e.prev=4,e.t0=e.catch(0),e.abrupt("return",[]);case 7:case"end":return e.stop()}}),e,null,[[0,4]])})))).apply(this,arguments)}function $r(e){var t=e.jsHeapSizeLimit,n=e.totalJSHeapSize,r=e.usedJSHeapSize,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Qr(e){var t=!1;return function(n,r){if(e.checkAndHandleExpiredSession()){var a=r||!t;t=!0,e.clickDetector&&_n(e.clickDetector,n),e.addUpdate((function(){if("buffer"===e.recordingMode&&a&&e.setInitialState(),!Qn(e,n,a))return!0;if(!a)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Qn(e,function(e){var t=e.getOptions();return{type:ut.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,a),e.session&&e.session.previousSessionId)return!0;
1if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){var t=e.eventBuffer.getEarliestTimestamp();t&&("[Replay] Updating session start time to earliest event in buffer to ".concat(new Date(t)),e.getOptions()._experiments.traceInternals,e.session.started=t,e.getOptions().stickySession&&Kn(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}}function Zr(e,t,n,r){return Object(N.c)(Object(N.d)(e,Object(N.g)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"===typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function ea(e){var t,n=e.recordingData,r=e.headers,a="".concat(JSON.stringify(r),"\n");if("string"===typeof n)t="".concat(a).concat(n);else{var i=(new TextEncoder).encode(a);(t=new Uint8Array(i.length+n.length)).set(i),t.set(n,i.length)}return t}function ta(e){return na.apply(this,arguments)}function na(){return(na=Object(r.a)(h.a.mark((function e(t){var n,r,a,i,o,s,c,u,l,d,f;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.client,r=t.scope,a=t.replayId,i=t.event,o="object"!==typeof n._integrations||null===n._integrations||Array.isArray(n._integrations)?void 0:Object.keys(n._integrations),s={event_id:a,integrations:o},n.emit&&n.emit("preprocessEvent",i,s),e.next=6,Object(b.b)(n.getOptions(),i,s,r,n,Object(S.b)());case 6:if(c=e.sent){e.next=9;break}return e.abrupt("return",null);case 9:return c.platform=c.platform||"javascript",u=n.getSdkMetadata&&n.getSdkMetadata(),l=u&&u.sdk||{},d=l.name,f=l.version,c.sdk=W(W({},c.sdk),{},{name:d||"sentry.javascript.unknown",version:f||"0.0.0"}),e.abrupt("return",c);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ra(e){return aa.apply(this,arguments)}function aa(){return(aa=Object(r.a)(h.a.mark((function e(t){var n,r,a,i,o,s,c,u,l,d,f,p,m,v,g,k,b,S,w,_,I;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.recordingData,r=t.replayId,a=t.segmentId,i=t.eventContext,o=t.timestamp,s=t.session,c=ea({recordingData:n,headers:{segment_id:a}}),u=i.urls,l=i.errorIds,d=i.traceIds,f=i.initialTimestamp,p=Object(y.e)(),m=Object(y.f)(),v=p&&p.getTransport(),g=p&&p.getDsn(),p&&v&&g&&s.sampled){e.next=9;break}return e.abrupt("return");case 9:return k={type:X,replay_start_timestamp:f/1e3,timestamp:o/1e3,error_ids:l,trace_ids:d,urls:u,replay_id:r,segment_id:a,replay_type:s.sampled},e.next=12,ta({scope:m,client:p,replayId:r,event:k});case 12:if(b=e.sent){e.next=17;break}return p.recordDroppedEvent("event_processor","replay",k),e.abrupt("return");case 17:return delete b.sdkProcessingMetadata,S=Zr(b,c,g,p.getOptions().tunnel),e.prev=19,e.next=22,v.send(S);case 22:w=e.sent,e.next=30;break;case 25:e.prev=25,e.t0=e.catch(19),_=new Error(Y);try{_.cause=e.t0}catch(h){}throw _;case 30:if(w){e.next=32;break}return e.abrupt("return",w);case 32:if("number"!==typeof w.statusCode||!(w.statusCode<200||w.statusCode>=300)){e.next=34;break}throw new ia(w.statusCode);case 34:if(I=Object(F.b)({},w),!Object(F.a)(I,"replay")){e.next=37;break}throw new oa(I);case 37:return e.abrupt("return",w);case 38:case"end":return e.stop()}}),e,null,[[19,25]])})))).apply(this,arguments)}var ia=function(e){Object(a.a)(n,e);var t=U(n);function n(e){return Object(d.a)(this,n),t.call(this,"Transport returned status code ".concat(e))}return n}(Object(s.a)(Error)),oa=function(e){Object(a.a)(n,e);var t=U(n);function n(e){var r;return Object(d.a)(this,n),(r=t.call(this,"Rate limit hit")).rateLimits=e,r}return n}(Object(s.a)(Error));function sa(e){return ca.apply(this,arguments)}function ca(){return(ca=Object(r.a)(h.a.mark((function e(t){var n,a,i,o=arguments;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=o.length>1&&void 0!==o[1]?o[1]:{count:0,interval:G},a=t.recordingData,t.options,a.length){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,ra(t);case 7:return e.abrupt("return",!0);case 10:if(e.prev=10,e.t0=e.catch(4),!(e.t0 instanceof ia||e.t0 instanceof oa)){e.next=14;break}throw e.t0;case 14:if(Object(y.g)("Replays",{_retryCount:n.count}),!(n.count>=3)){e.next=20;break}i=new Error("".concat(Y," - max retries exceeded"));
1try{i.cause=e.t0}catch(s){}throw i;case 20:return n.interval*=++n.count,e.abrupt("return",new Promise((function(e,a){setTimeout(Object(r.a)(h.a.mark((function r(){return h.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,sa(t,n);case 3:e(!0),r.next=9;break;case 6:r.prev=6,r.t0=r.catch(0),a(r.t0);case 9:case"end":return r.stop()}}),r,null,[[0,6]])}))),n.interval)})));case 22:case"end":return e.stop()}}),e,null,[[4,10]])})))).apply(this,arguments)}var ua="__THROTTLED",la="__SKIPPED";var da=function(){function e(t){var n=this,r=t.options,a=t.recordingOptions;Object(d.a)(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=a,this._options=r,this._debouncedFlush=function(e,t,n){var r,a,i,o=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e()}function c(){void 0!==a&&clearTimeout(a),void 0!==i&&clearTimeout(i),a=i=void 0}function u(){return a&&clearTimeout(a),a=setTimeout(s,t),o&&void 0===i&&(i=setTimeout(s,o)),r}return u.cancel=c,u.flush=function(){return void 0!==a||void 0!==i?s():r},u}((function(){return n._flush()}),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){var r=new Map,a=function(e){var t=e-n;
1r.forEach((function(e,n){n<t&&r.delete(n)}))},i=function(){return Object(u.a)(r.values()).reduce((function(e,t){return e+t}),0)},o=!1;return function(){var n=Math.floor(Date.now()/1e3);if(a(n),i()>=t){var s=o;return o=!0,s?la:ua}o=!1;var c=r.get(n)||0;return r.set(n,c+1),e.apply(void 0,arguments)}}((function(e,t){return function(e,t,n){return tr(e,t)?Zn(e,t,n):Promise.resolve(null)}(n,e,t)}),300,5);var i=this.getOptions(),o=i.slowClickTimeout,s=i.slowClickIgnoreSelectors,c=o?{threshold:Math.min(3e3,o),timeout:o,scrollTimeout:300,ignoreSelector:s?s.join(","):""}:void 0;c&&(this.clickDetector=new bn(this,c))}return Object(f.a)(e,[{key:"getContext",value:function(){return this._context}},{key:"isEnabled",value:function(){return this._isEnabled}},{key:"isPaused",value:function(){return this._isPaused}},{key:"isRecordingCanvas",value:function(){return Boolean(this._canvas)}},{key:"getOptions",value:function(){return this._options}},{key:"initializeSampling",value:function(e){var t=this._options,n=t.errorSampleRate,r=t.sessionSampleRate;n<=0&&r<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session","[Replay] Starting replay in ".concat(this.recordingMode," mode"),this._options._experiments.traceInternals,this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}},{key:"start",value:function(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");this._options._experiments.traceInternals;var e=$n({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}},{key:"startBuffering",value:function(){if(this._isEnabled)throw new Error("Replay recording is already in progress");this._options._experiments.traceInternals;var e=$n({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}},{key:"startRecording",value:function(){try{var e=this._canvas;this._stopRecording=un(W(W(W({},this._recordingOptions),"buffer"===this.recordingMode&&{checkoutEveryNms:6e4}),{},{emit:Qr(this),onMutation:this._onMutationHandler},e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}))}catch(t){this._handleException(t)}}},{key:"stopRecording",value:function(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}},{key:"stop",value:function(){var e=Object(r.a)(h.a.mark((function e(){var t,n,r,a,i=arguments;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.forceFlush,r=void 0!==n&&n,a=t.reason,this._isEnabled){e.next=3;break}return e.abrupt("return");case 3:if(this._isEnabled=!1,e.prev=4,"[Replay] Stopping Replay".concat(a?" triggered by ".concat(a):""),this._options._experiments.traceInternals,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),!r){e.next=12;break}return e.next=12,this._flush({force:!0});case 12:this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Wn(this),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(4),this._handleException(e.t0);case 20:case"end":return e.stop()}}),e,this,[[4,17]])})));return function(){return e.apply(this,arguments)}}()},{key:"pause",value:function(){this._isPaused||(this._isPaused=!0,this.stopRecording(),this._options._experiments.traceInternals)}},{key:"resume",value:function(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),this._options._experiments.traceInternals)}},{key:"sendBufferedReplayOrFlush",value:function(){var e=Object(r.a)(h.a.mark((function e(){var t,n,r,a,i,o=arguments;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:{},n=t.continueRecording,r=void 0===n||n,"session"!==this.recordingMode){e.next=3;break}return e.abrupt("return",this.flushImmediate());case 3:return a=Date.now(),this._options._experiments.traceInternals,e.next=7,this.flushImmediate();case 7:if(i=this.stopRecording(),r&&i){e.next=10;break}return e.abrupt("return");case 10:if("session"!==this.recordingMode){e.next=12;break}return e.abrupt("return");case 12:this.recordingMode="session",this.session&&(this._updateUserActivity(a),this._updateSessionActivity(a),this._maybeSaveSession()),this.startRecording();case 15:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"addUpdate",value:function(e){var t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}},{key:"triggerUserActivity",value:function(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}},{key:"updateUserActivity",value:function(){this._updateUserActivity(),this._updateSessionActivity()}},{key:"conditionalFlush",value:function(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}},{key:"flush",value:function(){return this._debouncedFlush()}},{key:"flushImmediate",value:function(){return this._debouncedFlush(),this._debouncedFlush.flush()}},{key:"cancelFlush",value:function(){this._debouncedFlush.cancel()}},{key:"getSessionId",value:function(){return this.session&&this.session.id}},{key:"checkAndHandleExpiredSession",value:function(){if(!(this._lastActivity&&Xn(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}},{key:"setInitialState",value:function(){var e="".concat(V.location.pathname).concat(V.location.hash).concat(V.location.search),t="".concat(V.location.origin).concat(e);this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.
1initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}},{key:"throttledAddEvent",value:function(e,t){var n=this,r=this._throttledAddEvent(e,t);if(r===ua){var a=In({category:"replay.throttled"});this.addUpdate((function(){return!Qn(n,{type:5,timestamp:a.timestamp||0,data:{tag:"breadcrumb",payload:a,metric:!0}})}))}return r}},{key:"getCurrentRoute",value:function(){var e=this.lastTransaction||Object(y.f)().getTransaction(),t=(e&&Object(w.e)(e).data||{})[_.e];if(e&&t&&["route","custom"].includes(t))return Object(w.e)(e).description}},{key:"_initializeRecording",value:function(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Un({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}},{key:"_handleException",value:function(e){Ln}},{key:"_initializeSessionForSampling",value:function(e){var t=this._options.errorSampleRate>0,n=$n({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}},{key:"_checkSession",value:function(){if(!this.session)return!1;var e=this.session;return!Gn(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}},{key:"_refreshSession",value:function(){var e=Object(r.a)(h.a.mark((function e(t){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._isEnabled){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.stop({reason:"refresh session"});case 4:this.initializeSampling(t.id);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_addListeners",value:function(){try{V.document.addEventListener("visibilitychange",this._handleVisibilityChange),V.addEventListener("blur",this._handleWindowBlur),V.addEventListener("focus",this._handleWindowFocus),V.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Jr(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=Dn(this)}},{key:"_removeListeners",value:function(){try{V.document.removeEventListener("visibilitychange",this._handleVisibilityChange),V.removeEventListener("blur",this._handleWindowBlur),V.removeEventListener("focus",this._handleWindowFocus),V.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}},{key:"__init",value:function(){var e=this;this._handleVisibilityChange=function(){"visible"===V.document.visibilityState?e._doChangeToForegroundTasks():e._doChangeToBackgroundTasks()}}},{key:"__init2",value:function(){var e=this;this._handleWindowBlur=function(){var t=In({category:"ui.blur"});e._doChangeToBackgroundTasks(t)}}},{key:"__init3",value:function(){var e=this;this._handleWindowFocus=function(){var t=In({category:"ui.focus"});e._doChangeToForegroundTasks(t)}}},{key:"__init4",value:function(){var e=this;this._handleKeyboardEvent=function(t){On(e,t)}}},{key:"_doChangeToBackgroundTasks",value:function(e){this.session&&(Yn(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}},{key:"_doChangeToForegroundTasks",value:function(e){this.session&&(this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e))}},{key:"_updateUserActivity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=e}},{key:"_updateSessionActivity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}},{key:"_createCustomBreadcrumb",value:function(e){var t=this;this.addUpdate((function(){t.throttledAddEvent({type:ut.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}},{key:"_addPerformanceEntries",value:function(){var e,t=(e=this.performanceEntries,e.map(Rn).filter(
1Boolean)).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(fr(this,t))}},{key:"_clearContext",value:function(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}},{key:"_updateInitialTimestampFromEventBuffer",value:function(){var e=this.session,t=this.eventBuffer;if(e&&t&&!e.segmentId){var n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}}},{key:"_popEventContext",value:function(){var e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}},{key:"_runFlush",value:function(){var e=Object(r.a)(h.a.mark((function e(){var t,n,r,a,i,o;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getSessionId(),this.session&&this.eventBuffer&&t){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,this._addPerformanceEntries();case 6:if(this.eventBuffer&&this.eventBuffer.hasEvents){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,Yr(this);case 10:if(this.eventBuffer){e.next=12;break}return e.abrupt("return");case 12:if(t===this.getSessionId()){e.next=14;break}return e.abrupt("return");case 14:if(e.prev=14,this._updateInitialTimestampFromEventBuffer(),!((n=Date.now())-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)){e.next=19;break}throw new Error("Session is too long, not sending replay");case 19:return r=this._popEventContext(),a=this.session.segmentId++,this._maybeSaveSession(),e.next=24,this.eventBuffer.finish();case 24:return i=e.sent,e.next=27,sa({replayId:t,recordingData:i,segmentId:a,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n});case 27:e.next=35;break;case 29:e.prev=29,e.t0=e.catch(14),this._handleException(e.t0),this.stop({reason:"sendReplay"}),(o=Object(y.e)())&&o.recordDroppedEvent("send_error","replay");case 35:case"end":return e.stop()}}),e,this,[[14,29]])})));return function(){return e.apply(this,arguments)}}()},{key:"__init5",value:function(){var e=this;this._flush=Object(r.a)(h.a.mark((function t(){var n,r,a,i,o,s,c,u,l,d=arguments;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=d.length>0&&void 0!==d[0]?d[0]:{},r=n.force,a=void 0!==r&&r,e._isEnabled||a){t.next=3;break}return t.abrupt("return");case 3:if(e.checkAndHandleExpiredSession()){t.next=6;break}return t.abrupt("return");case 6:if(e.session){t.next=8;break}return t.abrupt("return");case 8:if(i=e.session.started,o=Date.now(),s=o-i,e._debouncedFlush.cancel(),c=s<e._options.minReplayDuration,u=s>e._options.maxReplayDuration+5e3,!c&&!u){t.next=18;break}return"[Replay] Session duration (".concat(Math.floor(s/1e3),"s) is too ").concat(c?"short":"long",", not sending replay."),e._options._experiments.traceInternals,c&&e._debouncedFlush(),t.abrupt("return");case 18:if((l=e.eventBuffer)&&0===e.session.segmentId&&!l.hasCheckout&&e._options._experiments.traceInternals,e._flushLock){t.next=26;break}return e._flushLock=e._runFlush(),t.next=24,e._flushLock;case 24:return e._flushLock=void 0,t.abrupt("return");case 26:return t.prev=26,t.next=29,e._flushLock;case 29:t.next=34;break;case 31:t.prev=31,t.t0=t.catch(26);case 34:return t.prev=34,e._debouncedFlush(),t.finish(34);case 37:case"end":return t.stop()}}),t,null,[[26,31,34,37]])})))}},{key:"_maybeSaveSession",value:function(){this.session&&this._options.stickySession&&Kn(this.session)}},{key:"__init6",value:function(){var e=this;this._onMutationHandler=function(t){var n=t.length,r=e._options.mutationLimit,a=r&&n>r;if(n>e._options.mutationBreadcrumbLimit||a){var i=In({category:"replay.mutations",data:{count:n,limit:a}});e._createCustomBreadcrumb(i)}return!a||(e.stop({reason:"mutationLimit",forceFlush:"session"===e.recordingMode}),!1)}}}]),e}();function fa(e,t,n,r){var a="string"===typeof r?r.split(","):[],i=[].concat(Object(u.a)(e),Object(u.a)(a),Object(u.a)(t));return"undefined"!==typeof n&&("string"===typeof n&&i.push(".".concat(n)),Object(O.b)((function(){console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")}))),i.join(",")}function pa(e){var t=e.mask,n=e.unmask,r=e.block,a=e.unblock,i=e.ignore,o=e.blockClass,s=e.blockSelector,c=e.maskTextClass,u=e.maskTextSelector,l=e.ignoreClass,d={maskTextSelector:fa(t,[".sentry-mask","[data-sentry-mask]"],c,u),unmaskTextSelector:fa(n,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:fa(r,[".sentry-block","[data-sentry-block]"].concat(['base[href="/"]']),o,s),unblockSelector:fa(a,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:fa(i,[".sentry-ignore","[data-sentry-ignore]",'
1input[type="file"]'],l)};return o instanceof RegExp&&(d.blockClass=o),c instanceof RegExp&&(d.maskTextClass=c),d}function ha(e){var t=e.el,n=e.key,r=e.maskAttributes,a=e.maskAllText,i=e.privacyOptions,o=e.value;return a?i.unmaskTextSelector&&t.matches(i.unmaskTextSelector)?o:r.includes(n)||"value"===n&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}var ma='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',va=["content-length","content-type","accept"],ya=!1,ga=function(e){return new ka(e)},ka=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.flushMinDelay,r=void 0===n?5e3:n,a=t.flushMaxDelay,i=void 0===a?5500:a,o=t.minReplayDuration,s=void 0===o?4999:o,c=t.maxReplayDuration,u=void 0===c?ee:c,l=t.stickySession,f=void 0===l||l,p=t.useCompression,h=void 0===p||p,m=t.workerUrl,v=t._experiments,y=void 0===v?{}:v,g=t.sessionSampleRate,k=t.errorSampleRate,b=t.maskAllText,S=void 0===b||b,w=t.maskAllInputs,_=void 0===w||w,I=t.blockAllMedia,x=void 0===I||I,C=t.mutationBreadcrumbLimit,E=void 0===C?750:C,T=t.mutationLimit,O=void 0===T?1e4:T,M=t.slowClickTimeout,R=void 0===M?7e3:M,A=t.slowClickIgnoreSelectors,D=void 0===A?[]:A,L=t.networkDetailAllowUrls,j=void 0===L?[]:L,N=t.networkDetailDenyUrls,F=void 0===N?[]:N,B=t.networkCaptureBodies,U=void 0===B||B,z=t.networkRequestHeaders,H=void 0===z?[]:z,q=t.networkResponseHeaders,K=void 0===q?[]:q,V=t.mask,J=void 0===V?[]:V,X=t.maskAttributes,Y=void 0===X?["title","placeholder"]:X,G=t.unmask,$=void 0===G?[]:G,Q=t.block,Z=void 0===Q?[]:Q,te=t.unblock,ne=void 0===te?[]:te,re=t.ignore,ae=void 0===re?[]:re,ie=t.maskFn,oe=t.beforeAddRecordingEvent,se=t.beforeErrorSampling,ce=t.blockClass,ue=t.blockSelector,le=t.maskInputOptions,de=t.maskTextClass,fe=t.maskTextSelector,pe=t.ignoreClass;Object(d.a)(this,e),this.name=e.id;var he=pa({mask:J,unmask:$,block:Z,unblock:ne,ignore:ae,blockClass:ce,blockSelector:ue,maskTextClass:de,maskTextSelector:fe,ignoreClass:pe});if(this._recordingOptions=W(W({maskAllInputs:_,maskAllText:S,maskInputOptions:W(W({},le||{}),{},{password:!0}),maskTextFn:ie,maskInputFn:ie,maskAttributeFn:function(e,t,n){return ha({maskAttributes:Y,maskAllText:S,privacyOptions:he,key:e,value:t,el:n})}},he),{},{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:function(e){try{e.__rrweb__=!0}catch(t){}}}),this._initialOptions={flushMinDelay:r,flushMaxDelay:i,minReplayDuration:Math.min(s,15e3),maxReplayDuration:Math.min(u,ee),stickySession:f,sessionSampleRate:g,errorSampleRate:k,useCompression:h,workerUrl:m,blockAllMedia:x,maskAllInputs:_,maskAllText:S,mutationBreadcrumbLimit:E,mutationLimit:O,slowClickTimeout:R,slowClickIgnoreSelectors:D,networkDetailAllowUrls:j,networkDetailDenyUrls:F,networkCaptureBodies:U,networkRequestHeaders:ba(H),networkResponseHeaders:ba(K),beforeAddRecordingEvent:oe,beforeErrorSampling:se,_experiments:y},"number"===typeof g&&(console.warn("[Replay] You are passing `sessionSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysSessionSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ".concat(g," })")),this._initialOptions.sessionSampleRate=g),"number"===typeof k&&(console.warn("[Replay] You are passing `errorSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysOnErrorSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ".concat(k," })")),this._initialOptions.errorSampleRate=k),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(ma):ma),this._isInitialized&&Object(P.a)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}return Object(f.a)(e,[{key:"_isInitialized",get:function(){return ya},set:function(e){ya=e}},{key:"setupOnce",value:function(){var e=this;Object(P.a)()&&(this._setup(),setTimeout((function(){return e._initialize()})))}},{key:"start",value:function(){this._replay&&this._replay.start()}}
1,{key:"startBuffering",value:function(){this._replay&&this._replay.startBuffering()}},{key:"stop",value:function(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}},{key:"flush",value:function(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}},{key:"getReplayId",value:function(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}},{key:"_initialize",value:function(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}},{key:"_setup",value:function(){var e=function(e){var t=Object(y.e)(),n=t&&t.getOptions(),r=W({sessionSampleRate:0,errorSampleRate:0},Object(C.c)(e));if(!n)return Object(O.b)((function(){console.warn("SDK client is not available.")})),r;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&Object(O.b)((function(){console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));"number"===typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate);"number"===typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate);return r}(this._initialOptions);this._replay=new da({options:e,recordingOptions:this._recordingOptions})}},{key:"_maybeLoadFromReplayCanvasIntegration",value:function(){try{var e=Object(y.e)().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(t){}}}],[{key:"__initStatic",value:function(){this.id="Replay"}}]),e}();function ba(e){return[].concat(va,Object(u.a)(e.map((function(e){return e.toLowerCase()}))))}ka.__initStatic()}}]);

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.