1"use strict";(self.webpackChunkartprice=self.webpackChunkartprice||[]).push([[445],{20900:(e,t,n)=>{n.d(t,{T:()=>a});var r=n(64251),s=n(73810),o=n(8251),i=n(96540);function a(e){const t={...e};return(0,o.K)(t,"react"),(0,r.o)("react",{version:i.version}),(0,s.Ts)(t)}},69828:(e,t,n)=>{n.d(t,{X:()=>u});var r=n(68826),s=n(26674),o=n(30690),i=n(5602),a=n(52879),c=n(40873),l=n(2323);const u=(0,r._C)(((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,u){const{maxValueLength:d=250}=u.getOptions();return function(e,t={},n,r,u){if(!t.originalException||!(0,o.bJ)(t.originalException))return e;const d=t.originalException.name||t.originalException.constructor.name,h=function(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],s={};for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue;const i=e[t];s[t]=(0,o.bJ)(i)||"string"===typeof i?(0,l.xv)(`${i}`,n):i}if(t&&void 0!==e.cause&&(s.cause=(0,o.bJ)(e.cause)?e.cause.toString():e.cause),"function"===typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];s[e]=(0,o.bJ)(n)?n.toString():n}}return s}catch(r){s.T&&i.vF.error("Unable to extract extra data from the Error object:",r)}return null}(t.originalException,r,u);if(h){const t={...e.contexts},r=(0,a.S8)(h,n);return(0,o.Qd)(r)&&((0,c.my)(r,"__sentry_skip_normalization__",!0),t[d]=r),{...e,contexts:t}}return e}(e,r,t,n,d)}}}))},94141:(e,t,n)=>{function r(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}n.d(t,{w:()=>Us});var s=n(92575),o=n(52879),i=n(40873),a=n(87320),c=n(90519),l=n(6810),u=n(5602),d=n(22209),h=n(64251),p=n(44910),m=n(57968),f=n(54248),y=n(46932);function g(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return S(e)===S(t)}(e,r)}function S(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var k=n(2323),v=n(87202),b=n(45333),_=n(20572),w=n(31857),E=n(74611),C=n(91591);function I(){return"undefined"!==typeof window&&(!(!(0,C.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0))||function(){const e=s.O.process;return!!e&&"renderer"===e.type}())}var T=n(91773),x=n(3594),M=n(20527),R=n(4693);const A=(e,t,n,r)=>{let s,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(s||0),(o||void 0===s)&&(s=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}};var O=n(14910);const D=(e=!0)=>{const t=O.j.performance&&O.j.performance.getEntriesByType&&O.j.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},N=()=>{const e=D();return e&&e.activationStart||0},L=(e,t)=>{const n=D();let r="navigate";n&&(O.j.document&&O.j.document.prerendering||N()>0?r="prerender":O.j.document&&O.j.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:e,value:"undefined"===typeof t?-1:t,rating:"good",delta:0,entries:[],id:`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},F=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(r){}},P=e=>{const t=t=>{("pagehide"===t.type||O.j.document&&"hidden"===O.j.document.visibilityState)&&e(t)};O.j.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},U=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let B=-1;const z=e=>{"hidden"===O.j.document.visibilityState&&B>-1&&(B="visibilitychange"===e.type?e.timeStamp:0,j())},j=()=>{removeEventListener("visibilitychange",z,!0),removeEventListener("prerenderingchange",z,!0)},W=()=>(O.j.document&&B<0&&(B="hidden"!==O.j.document.visibilityState||O.j.document.prerendering?1/0:0,addEventListener("visibilitychange",z,!0),addEventListener("prerenderingchange",z,!0)),{get firstHiddenTime(){return B}}
1),H=e=>{O.j.document&&O.j.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},$=[1800,3e3],q=[.1,.25],K=(e,t={})=>{((e,t={})=>{H((()=>{const n=W(),r=L("FCP");let s;const o=F("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-N(),0),r.entries.push(e),s(!0)))}))}));o&&(s=A(e,r,$,t.reportAllChanges))}))})(U((()=>{const n=L("CLS",0);let r,s=0,o=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],n=o[o.length-1];s&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(s+=e.value,o.push(e)):(s=e.value,o=[e])}})),s>n.value&&(n.value=s,n.entries=o,r())},a=F("layout-shift",i);a&&(r=A(e,n,q,t.reportAllChanges),P((()=>{i(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},J=[100,300];let V=0,Y=1/0,G=0;const X=e=>{e.forEach((e=>{e.interactionId&&(Y=Math.min(Y,e.interactionId),G=Math.max(G,e.interactionId),V=G?(G-Y)/7+1:0)}))};let Q;const Z=()=>{"interactionCount"in performance||Q||(Q=F("event",X,{type:"event",buffered:!0,durationThreshold:0}))},ee=[],te=new Map;const ne=()=>(Q?V:performance.interactionCount||0)-0,re=[],se=e=>{if(re.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=ee[ee.length-1],n=te.get(e.interactionId);if(n||ee.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};te.set(t.id,t),ee.push(t)}ee.sort(((e,t)=>t.latency-e.latency)),ee.length>10&&ee.splice(10).forEach((e=>te.delete(e.id)))}},oe=e=>{const t=O.j.requestIdleCallback||O.j.setTimeout;let n=-1;return e=U(e),O.j.document&&"hidden"===O.j.document.visibilityState?e():(n=t(e),P(e)),n},ie=[200,500],ae=(e,t={})=>{"PerformanceEventTiming"in O.j&&"interactionId"in PerformanceEventTiming.prototype&&H((()=>{Z();const n=L("INP");let r;const s=e=>{oe((()=>{e.forEach(se);const t=(()=>{const e=Math.min(ee.length-1,Math.floor(ne()/50));return ee[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},o=F("event",s,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=A(e,n,ie,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),P((()=>{s(o.takeRecords()),r(!0)})))}))},ce=[2500,4e3],le={},ue={},de={};let he,pe,me,fe;function ye(e,t){return we(e,t),de[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);F(e,(t=>{ge(e,{entries:t})}),t)}(e),de[e]=!0),Ee(e,t)}function ge(e,t){const n=ue[e];if(n&&n.length)for(const s of n)try{s(t)}catch(r){R.T&&u.vF.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,M.qQ)(s)}\nError:`,r)}}function Se(){return K((e=>{ge("cls",{metric:e}),he=e}),{reportAllChanges:!0})}function ke(){return((e,t={})=>{H((()=>{const n=W(),r=L("FID");let s;const o=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),s(!0))},i=e=>{e.forEach(o)},a=F("first-input",i);s=A(e,r,J,t.reportAllChanges),a&&P(U((()=>{i(a.takeRecords()),a.disconnect()})))}))})((e=>{ge("fid",{metric:e}),pe=e}))}function ve(){return((e,t={})=>{H((()=>{const n=W(),r=L("LCP");let s;const o=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-N(),0),r.entries=[e],s())}))},i=F("largest-contentful-paint",o);if(i){s=A(e,r,ce,t.reportAllChanges);const n=U((()=>{le[r.id]||(o(i.takeRecords()),i.disconnect(),le[r.id]=!0,s(!0))}));["keydown","click"].forEach((e=>{O.j.document&&addEventListener(e,(()=>oe(n)),{once:!0,capture:!0})})),P(n)}}))})((e=>{ge("lcp",{metric:e}),me=e}),{reportAllChanges:!0})}function be(){return ae((e=>{ge("inp",{metric:e}),fe=e}))}function _e(e,t,n,r,s=!1){let o;return we(e,t),de[e]||(o=n(),de[e]=!0),r&&t({metric:r}),Ee(e,t,s?o:void 0)}function we(e,t){ue[e]=ue[e]||[],ue[e].push(t)}function Ee(e,t,n){return()=>{n&&n();const r=ue[e];if(!r)return;const s=r.indexOf(t);-1!==s&&r.splice(s,1)}}var Ce=n(35947),Ie=n(61221),Te=n(5295);const xe=s.O,Me="sentryReplaySession",Re="Unable to send Replay",Ae=15e4,Oe=5e3,De=2e7,Ne=36e5;function Le(e,t){return null!=e?e:t()}function Fe(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}var Pe;function Ue(e){const t=Fe([e,"optionalAccess",e=>e.host]);return Boolean(Fe([t,"optionalAccess",e=>e.shadowRoot])===e)}function Be(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function ze(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,je).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(n){return null}var t}function je(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=ze(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(n){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"===typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(t)),n||r)return t}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"}(Pe||(Pe={}));class We{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return Le(Fe([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1))}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);
1this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function He({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function $e({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function qe(e){return e.toLowerCase()}function Ke(e){return e.toUpperCase()}const Je="__rrweb_original__";function Ve(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?qe(t):null}function Ye(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function Ge(e,t){let n;try{n=new URL(e,Le(t,(()=>window.location.href)))}catch(r){return null}return Le(Fe([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const Xe={};function Qe(e){const t=Xe[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"===typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(s){}return Xe[e]=r.bind(window)}function Ze(...e){return Qe("setTimeout")(...e)}function et(...e){return Qe("clearTimeout")(...e)}function tt(e){try{return e.contentDocument}catch(t){}}let nt=1;const rt=new RegExp("[^a-z0-9-_:]");function st(){return nt++}let ot,it;const at=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ct=/^(?:[a-z+]+:)?\/\//i,lt=/^www\..*/i,ut=/^(data:)([^,]*),(.*)/i;function dt(e,t){return(e||"").replace(at,((e,n,r,s,o,i)=>{const a=r||o||i,c=n||s||"";if(!a)return e;if(ct.test(a)||lt.test(a))return`url(${c}${a}${c})`;if(ut.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const l=t.split("/"),u=a.split("/");l.pop();for(const t of u)"."!==t&&(".."===t?l.pop():l.push(t));return`url(${c}${l.join("/")}${c})`}))}const ht=/^[^ \t\n\r\u000c]+/,pt=/^[, \t\n\r\u000c]+/;const mt=new WeakMap;function ft(e,t){return t&&""!==t.trim()?gt(e,t):t}function yt(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function gt(e,t){let n=mt.get(e);if(n||(n=e.createElement("a"),mt.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function St(e,t,n,r,s,o){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?ft(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const s=e.exec(t.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(pt),!(n>=t.length);){let o=r(ht);if(","===o.slice(-1))o=ft(e,o.substring(0,o.length-1)),s.push(o);else{let r="";o=ft(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,s.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return s.join(", ")}(e,r):"style"===n?dt(r,gt(e)):"object"===t&&"data"===n?ft(e,r):"function"===typeof o?o(n,r,s):r:ft(e,r):r}function kt(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function vt(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:vt(e.parentNode,t,n,r+1):-1}function bt(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"===typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(s){return!1}}}function _t(e,t,n,r,s,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(o){if(c=vt(i,bt(r,s)),c<0)return!0;a=vt(i,bt(t,n),c>=0?c:1/0)}else{if(a=vt(i,bt(t,n)),a<0)return!1;c=vt(i,bt(r,s),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!o}catch(i){}return!!o}function wt(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:f,maskInputFn:y,dataURLOptions:g={},inlineImages:S,recordCanvas:k,keepIframeSrcFn:v,newlyAddedElement:b=!1}=t,_=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Pe.Document,childNodes:[],compatMode:e.compatMode}:{type:Pe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Pe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:h,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:f,maskAllText:y,maskTextClass:g,unmaskTextClass:S,maskTextSelector:k,unmaskTextSelector:v}=t,b=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(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(s){}return!1}(e,r,s,o),_=function(e){if(e instanceof HTMLFormElement)return"form";const t=qe(e.tagName);return rt.test(t)?"div":t}(e);let w={};const E=e.attributes.length;for(let T=0;T<E;T++){const t=e.attributes[T];t.name&&!kt(_,t.name,t.value)&&(w[t.name]=St(n,_,qe(t.name),t.value,e,c))}if("link"===_&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=ze(t)),r&&(w.rel=null,w.href=null,w.crossorigin=null,w._cssText=dt(r,t.href))}if("style"===_&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=ze(e.sheet);t&&(w._cssText=dt(t,gt(n)))}if("input"===_||"textarea"===_||"select"===_||"option"===_){const t=e,n=Ve(t),r=Ye(t,Ke(_),n),s=t.checked;if("submit"!==n&&"button"!==n&&r){const e=_t(t,g,k,S,v,He({type:n,tagName:Ke(_),maskInputOptions:a}));w.value=$e({isMasked:e,element:t,value:r,maskInputFn:l})}s&&(w.checked=s)}"option"===_&&(e.selected&&!a.select?w.selected=!0:delete w.selected);if("canvas"===_&&h)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const s=t.getImageData,o=Je in s?s[Je]:s;
1if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(w.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(u.type,u.quality)&&(w.rr_dataURL=t)}if("img"===_&&d){ot||(ot=n.createElement("canvas"),it=ot.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",s=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{ot.width=t.naturalWidth,ot.height=t.naturalHeight,it.drawImage(t,0,0),w.rr_dataURL=ot.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(s?w.crossOrigin=s:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}"audio"!==_&&"video"!==_||(w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime);m||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop));if(b){const{width:t,height:n}=e.getBoundingClientRect();w={class:w.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==_||p(w.src)||(b||tt(e)||(w.rr_src=w.src),delete w.src);let C;try{customElements.get(_)&&(C=!0)}catch(I){}return{type:Pe.Element,tagName:_,attributes:w,childNodes:[],isSVG:yt(e)||void 0,needBlock:b,rootId:f,isCustom:C}}(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:y,dataURLOptions:g,inlineImages:S,recordCanvas:k,keepIframeSrcFn:v,newlyAddedElement:b,rootId:_,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let h=e.textContent;const p="STYLE"===d||void 0,m="SCRIPT"===d||void 0,f="TEXTAREA"===d||void 0;if(p&&h){try{e.nextSibling||e.previousSibling||Fe([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(h=ze(e.parentNode.sheet))}catch(g){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${g}`,e)}h=dt(h,gt(t.doc))}m&&(h="SCRIPT_PLACEHOLDER");const y=_t(e,r,o,s,i,n);p||m||f||!h||!y||(h=a?a(h,e.parentElement):h.replace(/[\S]/g,"*"));f&&h&&(c.textarea||y)&&(h=l?l(h,e.parentNode):h.replace(/[\S]/g,"*"));if("OPTION"===d&&h){h=$e({isMasked:_t(e,r,o,s,i,He({type:null,tagName:d,maskInputOptions:c})),element:e,value:h,maskInputFn:l})}return{type:Pe.Text,textContent:h||"",isStyle:p,rootId:u}}(e,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:f,maskInputOptions:m,maskInputFn:y,rootId:_});case e.CDATA_SECTION_NODE:return{type:Pe.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:Pe.Comment,textContent:e.textContent||"",rootId:_};default:return!1}}function Et(e){return void 0===e||null===e?"":e.toLowerCase()}function Ct(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:k={},inlineImages:v=!1,recordCanvas:b=!1,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:E=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:x=!1}=t;let{preserveWhiteSpace:M=!0}=t;const R=wt(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,dataURLOptions:k,inlineImages:v,recordCanvas:b,keepIframeSrcFn:T,newlyAddedElement:x});if(!R)return console.warn(e,"not serialized"),null;let A;A=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===Pe.Comment)return!0;
1if(e.type===Pe.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"===typeof e.attributes.href&&"js"===Ge(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Et(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Et(e.attributes.name)||"icon"===Et(e.attributes.rel)||"apple-touch-icon"===Et(e.attributes.rel)||"shortcut icon"===Et(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Et(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Et(e.attributes.property).match(/^(og|twitter|fb):/)||Et(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Et(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Et(e.attributes.name)||"googlebot"===Et(e.attributes.name)||"bingbot"===Et(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Et(e.attributes.name)||"generator"===Et(e.attributes.name)||"framework"===Et(e.attributes.name)||"publisher"===Et(e.attributes.name)||"progid"===Et(e.attributes.name)||Et(e.attributes.property).match(/^article:/)||Et(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Et(e.attributes.name)||"yandex-verification"===Et(e.attributes.name)||"csrf-token"===Et(e.attributes.name)||"p:domain_verify"===Et(e.attributes.name)||"verify-v1"===Et(e.attributes.name)||"verification"===Et(e.attributes.name)||"shopify-checkout-api-token"===Et(e.attributes.name)))return!0}}return!1}(R,S)&&(M||R.type!==Pe.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?st():-2;const O=Object.assign(R,{id:A});if(r.add(e,O),-2===A)return null;_&&_(e);let D=!h;if(O.type===Pe.Element){D=D&&!O.needBlock,delete O.needBlock;const t=e.shadowRoot;t&&Be(t)&&(O.isShadowHost=!0)}if((O.type===Pe.Document||O.type===Pe.Element)&&D){S.headWhitespace&&O.type===Pe.Element&&"head"===O.tagName&&(M=!1);const t={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:k,inlineImages:v,recordCanvas:b,preserveWhiteSpace:M,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:C,stylesheetLoadTimeout:I,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=Ct(n,t);e&&O.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Ct(n,t);r&&(Be(e.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}return e.parentNode&&Ue(e.parentNode)&&Be(e.parentNode)&&(O.isShadow=!0),O.type===Pe.Element&&"iframe"===O.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let s,o=!1;try{s=r.document.readyState}catch(a){return}if("complete"!==s){const r=Ze((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{et(r),o=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return Ze(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=tt(e);if(t&&w){const n=Ct(t,{doc:t,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:k,inlineImages:v,recordCanvas:b,preserveWhiteSpace:M,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:C,stylesheetLoadTimeout:I,keepIframeSrcFn:T});n&&w(e,n)}}),E),O.type===Pe.Element&&"link"===O.tagName&&"string"===typeof O.attributes.rel&&("stylesheet"===O.attributes.rel||"preload"===O.attributes.rel&&"string"===typeof O.attributes.href&&"css"===Ge(O.attributes.href))&&function(e,t,n){let r,s=!1;try{r=e.sheet}catch(i){return}if(r)return;const o=Ze((()=>{s||(t(),s=!0)}),n);e.addEventListener("load",(()=>{et(o),s=!0,t()}))}(e,(()=>{if(C){const t=Ct(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:k,inlineImages:v,recordCanvas:b,preserveWhiteSpace:M,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:C,stylesheetLoadTimeout:I,keepIframeSrcFn:T});t&&C(e,t)}}),I),O}function It(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function Tt(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const xt="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.";let Mt={map:{},getId:()=>(console.error(xt),-1),getNode:()=>(console.error(xt),null),removeNodeFromMap(){console.error(xt)},has:()=>(console.error(xt),!1),reset(){console.error(xt)}};function Rt(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();s||!1!==n.leading||(s=i);const a=t-(i-s),c=this;a<=0||a>t?(r&&(!function(...e){Gt("clearTimeout")(...e)}
1(r),r=null),s=i,e.apply(c,o)):r||!1===n.trailing||(r=Xt((()=>{s=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)}),a))}}function At(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(e){Xt((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>At(e,t,o||{},!0)}function Ot(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return"function"===typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch(r){return()=>{}}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(Mt=new Proxy(Mt,{get:(e,t,n)=>("map"===t&&console.error(xt),Reflect.get(e,t,n))}));let Dt=Date.now;function Nt(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:It([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||It([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||It([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:It([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||It([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||It([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Lt(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ft(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Pt(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function Ut(e,t,n,r,s){if(!e)return!1;const o=Pt(e);if(!o)return!1;const i=bt(t,n);if(!s){const e=r&&o.matches(r);return i(o)&&!e}const a=vt(o,i);let c=-1;return!(a<0)&&(r&&(c=vt(o,bt(null,r))),a>-1&&c<0||a<c)}function Bt(e,t){return-2===t.getId(e)}function zt(e,t){if(Ue(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||zt(e.parentNode,t))}function jt(e){return Boolean(e.changedTouches)}function Wt(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Ht(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function $t(e){return Boolean(It([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Dt=()=>(new Date).getTime());class qt{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),n=()=>-1,null!=t?t:n();var t,n}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Kt(e){let t=null;return It([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Jt(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Kt(n);)n=t;return n}(e);return t.contains(n)}function Vt(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Jt(e))}const Yt={};function Gt(e){const t=Yt[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"===typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(s){}return Yt[e]=r.bind(window)}function Xt(...e){return Gt("setTimeout")(...e)}var Qt,Zt,en=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(en||{}),tn=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(tn||{}),nn=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(nn||{}),rn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(rn||{});function sn(e){try{return e.contentDocument}catch(t){}}function on(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function an(e){return"__ln"in 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"}(Qt||(Qt={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(Zt||(Zt={}));class cn{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=on([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&an(e.previousSibling)){const 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&&an(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const 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--)}}const ln=(e,t)=>`${e}@${t}`;class un{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new cn,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},s=s=>{if(!s.parentNode||!Vt(s))return;const o=Ue(s.parentNode)?this.mirror.getId(Kt(s)):this.mirror.getId(s.parentNode),i=r(s);if(-1===o||-1===i)return n.addNode(s);const a=Ct(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Wt(e,this.mirror)&&!Ut(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Ht(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),$t(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{Ut(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:o,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)hn(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||s(a);for(const a of this.addedSet)pn(this.droppedSet,a)||hn(this.removes,a,this.mirror)?pn(this.movedSet,a)?s(a):this.droppedSet.add(a):s(a);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),s(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"===typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!Bt(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Ut(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:_t(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Pt(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,s=e.target.getAttribute(r);if("value"===r){const t=Ve(n),r=n.tagName;s=Ye(n,r,t);const o=He({maskInputOptions:this.maskInputOptions,tagName:r,type:t});s=$e({isMasked:_t(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:n,value:s,maskInputFn:this.maskInputFn})}if(Ut(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===e.oldValue)return;let o=this.attributeMap.get(e.target);
1if("IFRAME"===n.tagName&&"src"===r&&!this.keepIframeSrcFn(s)){if(sn(n))return;r="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===r&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!kt(n.tagName,r)&&(o.attributes[r]=St(this.doc,qe(n.tagName),qe(r),s,n,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(n.style)){const t=n.style.getPropertyValue(e),s=n.style.getPropertyPriority(e);t!==r.style.getPropertyValue(e)||s!==r.style.getPropertyPriority(e)?o.styleDiff[e]=""===s?t:[t,s]:o._unchangedStyles[e]=[t,s]}for(const e of Array.from(r.style))""===n.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(Ut(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=Ue(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Ut(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Bt(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(dn(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||zt(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ln(n,r)]?dn(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Ue(e.target)||!Be(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Bt(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[ln(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Ut(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),$t(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["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((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function dn(e,t){e.delete(t),t.childNodes.forEach((t=>dn(e,t)))}function hn(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}(e,t,n)}function pn(e,t){return 0!==e.size&&mn(e,t)}function mn(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||mn(e,n))}let fn;function yn(e){fn=e}function gn(){fn=void 0}const Sn=e=>{if(!fn)return e;return(...t)=>{try{return e(...t)}catch(n){if(fn&&!0===fn(n))return()=>{};throw n}}};function kn(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const vn=[];function bn(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(t){}return e&&e.target}function _n(e,t){const n=new un;vn.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=kn([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);s&&window[s]&&(r=window[s]);const o=new r(Sn((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function wn({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(nn).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEac
1h((i=>{let a=qe(i);const u=(t=>i=>{const a=bn(i);if(Ut(a,r,s,o,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=rn.Mouse;break;case"touch":c=rn.Touch;break;case"pen":c=rn.Pen}c===rn.Touch?nn[t]===nn.MouseDown?u="TouchStart":nn[t]===nn.MouseUp&&(u="TouchEnd"):rn.Pen}else jt(i)&&(c=rn.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===rn.Touch||u.startsWith("Mouse")&&c===rn.Mouse)&&(c=null)):nn[t]===nn.Click&&(c=l,l=null);const d=jt(i)?i.changedTouches[0]:i;if(!d)return;const h=n.getId(a),{clientX:p,clientY:m}=d;Sn(e)({type:nn[u],id:h,x:p,y:m,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(nn[i]){case nn.MouseDown:case nn.MouseUp:a=a.replace("mouse","pointer");break;case nn.TouchStart:case nn.TouchEnd:return}c.push(Tt(a,u,t))})),Sn((()=>{c.forEach((e=>e()))}))}function En({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){return Tt("scroll",Sn(Rt(Sn((i=>{const a=bn(i);if(!a||Ut(a,r,s,o,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=Nt(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),t)}const Cn=["INPUT","TEXTAREA","SELECT"],In=new WeakMap;function Tn({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:f}){function y(e){let n=bn(e);const u=e.isTrusted,y=n&&Ke(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||Cn.indexOf(y)<0||Ut(n,r,s,o,!0))return;const S=n;if(S.classList.contains(i)||a&&S.matches(a))return;const k=Ve(n);let v=Ye(S,y,k),b=!1;const _=He({maskInputOptions:c,tagName:y,type:k}),w=_t(n,h,m,p,f,_);"radio"!==k&&"checkbox"!==k||(b=n.checked),v=$e({isMasked:w,element:n,value:v,maskInputFn:l}),g(n,d?{text:v,isChecked:b,userTriggered:u}:{text:v,isChecked:b});const E=n.name;"radio"===k&&E&&b&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach((e=>{if(e!==n){const t=$e({isMasked:w,element:e,value:Ye(e,y,k),maskInputFn:l});g(e,d?{text:t,isChecked:!b,userTriggered:!1}:{text:t,isChecked:!b})}}))}function g(t,r){const s=In.get(t);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){In.set(t,r);const s=n.getId(t);Sn(e)({...r,id:s})}}const S=("last"===u.input?["change"]:["input","change"]).map((e=>Tt(e,Sn(y),t))),k=t.defaultView;if(!k)return()=>{S.forEach((e=>e()))};const v=k.Object.getOwnPropertyDescriptor(k.HTMLInputElement.prototype,"value"),b=[[k.HTMLInputElement.prototype,"value"],[k.HTMLInputElement.prototype,"checked"],[k.HTMLSelectElement.prototype,"value"],[k.HTMLTextAreaElement.prototype,"value"],[k.HTMLSelectElement.prototype,"selectedIndex"],[k.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&S.push(...b.map((e=>At(e[0],e[1],{set(){Sn(y)({target:this,isTrusted:!1})}},!1,k)))),Sn((()=>{S.forEach((e=>e()))}))}function xn(e){return function(e,t){if(On("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||On("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||On("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||On("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Mn(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function Rn({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const s="#document"===n.nodeName?kn([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):kn([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=kn([s,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(kn([s,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&s&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return kn([o,"access",e=>
1e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=kn([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(s){}return n}}),Sn((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function An(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=_n(e,e.doc));const s=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const s="number"===typeof t.mousemove?t.mousemove:50,o="number"===typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const c=Rt(Sn((t=>{const n=Date.now()-i;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null})),o),l=Sn(Rt(Sn((e=>{const t=bn(e),{clientX:n,clientY:s}=jt(e)?e.changedTouches[0]:e;i||(i=Dt()),a.push({x:n,y:s,id:r.getId(t),timeOffset:Dt()-i}),c("undefined"!==typeof DragEvent&&e instanceof DragEvent?tn.Drag:e instanceof MouseEvent?tn.MouseMove:tn.TouchMove)})),s,{trailing:!1})),u=[Tt("mousemove",l,n),Tt("touchmove",l,n),Tt("drag",l,n)];return Sn((()=>{u.forEach((e=>e()))}))}(e),o=wn(e),i=En(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Tt("resize",Sn(Rt(Sn((()=>{const t=Lt(),s=Ft();n===t&&r===s||(e({width:Number(s),height:Number(t)}),n=t,r=s)})),200)),t)}(e,{win:n}),c=Tn(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=Sn((i=>Rt(Sn((o=>{const a=bn(o);if(!a||Ut(a,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:d}=a;e({type:i,id:s.getId(a),currentTime:c,volume:l,muted:u,playbackRate:d})})),o.media||500))),c=[Tt("play",a(0),i),Tt("pause",a(1),i),Tt("seeked",a(2),i),Tt("volumechange",a(3),i),Tt("ratechange",a(4),i)];return Sn((()=>{c.forEach((e=>e()))}))}(e);let u=()=>{},d=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Sn(((r,s,o)=>{const[i,a]=o,{id:c,styleId:l}=Mn(s,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:a}]}),r.apply(s,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:Sn(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Mn(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:i}]}),r.apply(s,o)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Sn(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Mn(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:i}),r.apply(s,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Sn(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Mn(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),r.apply(s,o)}))}));const c={};Dn("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Dn("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Dn("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Dn("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach((([r,s])=>{l[r]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(l[r].insertRule,{apply:Sn(((r,s,o)=>{const[i,a]=o,{id:c,styleId:l}=Mn(s.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...xn(s),a||0]}]}),r.apply(s,o)}))}),s.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:Sn(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Mn(s.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...xn(s),i]}]}),r.apply(s,o)}))})})),Sn((()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEac
1h((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:n}),d=Rn(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:Sn(((s,i,a)=>{const[c,l,u]=a;if(n.has(c))return o.apply(i,[c,l,u]);const{id:d,styleId:h}=Mn(kn([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:c,value:l,priority:u},index:xn(i.parentRule)}),s.apply(i,a)}))});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Sn(((s,o,a)=>{const[c]=a;if(n.has(c))return i.apply(o,[c]);const{id:l,styleId:u}=Mn(kn([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:xn(o.parentRule)}),s.apply(o,a)}))}),Sn((()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i}))}(e,{win:n}),e.collectFonts&&(p=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return s.set(r,{family:e,buffer:"string"!==typeof t,descriptors:n,fontSource:"string"===typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=Ot(t.fonts,"add",(function(t){return function(n){return Xt(Sn((()=>{const t=s.get(n);t&&(e(t),s.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),Sn((()=>{r.forEach((e=>e()))}))}(e)));const m=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const c=Sn((()=>{const e=t.getSelection();if(!e||a&&kn([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:l,endContainer:u,endOffset:d}=i;Ut(a,r,s,o,!0)||Ut(u,r,s,o,!0)||c.push({start:n.getId(a),startOffset:l,end:n.getId(u),endOffset:d})}i({ranges:c})}));return c(),Tt("selectionchange",c)}(e),f=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Ot(n.customElements,"define",(function(e){return function(n,r,s){try{t({define:{name:n}})}catch(o){}return e.apply(this,[n,r,s])}})):()=>{}}(e),y=[];for(const g of e.plugins)y.push(g.observer(g.callback,n,g.options));return Sn((()=>{vn.forEach((e=>e.reset())),kn([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),s(),o(),i(),a(),c(),l(),u(),d(),h(),p(),m(),f(),y.forEach((e=>e()))}))}function On(e){return"undefined"!==typeof window[e]}function Dn(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Nn{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const s=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=s.get(t);return i||(i=this.generateIdFn(),s.set(t,i),o.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}
1getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!==typeof t)return t;const s=r.get(t);return s||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function Ln(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}class Fn{constructor(){this.crossOriginIframeMirror=new Nn(st),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Pn{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Nn(st),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Nn(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Ln([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=sn(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case en.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:en.IncrementalSnapshot,data:{source:tn.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case en.Meta:case en.Load:case en.DomContentLoaded:return!1;case en.Plugin:return t;case en.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case en.IncrementalSnapshot:switch(t.data.source){case tn.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case tn.Drag:case tn.TouchMove:case tn.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case tn.ViewportResize:return!1;case tn.MediaInteraction:case tn.MouseInteraction:case tn.Scroll:case tn.CanvasMutation:case tn.Input:return this.replaceIds(t.data,e,["id"]),t;case tn.StyleSheetRule:case tn.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case tn.Font:return t;case tn.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case tn.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Ln([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const s of r)(Array.isArray(t[s])||"number"===typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
1h((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===Pe.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Un{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Bn{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Be(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=_n({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(En({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Xt((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Rn({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=sn(e),n=function(e){try{return e.contentWindow}catch(t){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Ot(e.prototype,"attachShadow",(function(e){return function(r){const s=e.call(this,r);return this.shadowRoot&&Vt(this)&&n.addShadowRoot(this.shadowRoot,t),s}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class zn{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class jn{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new qt,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const s of e){let e;this.styleMirror.has(s)?e=this.styleMirror.getId(s):(e=this.styleMirror.add(s),r.push({styleId:e,rules:Array.from(s.rules||CSSRule,((e,t)=>({rule:je(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Wn{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,function(...e){Gt("requestAnimationFrame")(...e)}((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Hn,$n;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=r([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(js){console.debug("Unable to override Array.from",js)}const qn=new We;function Kn(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:s,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:a=null,ignoreClass:c="rr-ignore",ignoreSelector:l=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:h=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:f=!0,maskAllInputs:y,maskInputOptions:g,slimDOMOptions:S,maskAttributeFn:k,maskInputFn:v,maskTextFn:b,maxCanvasSize:_=null,packFn:w,sampling:E={},dataURLOptions:C={},mousemoveWait:I,recordDOM:T=!0,recordCanvas:x=!1,recordCrossOriginIframes:M=!1,recordAfter:R=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:A=!1,collectFonts:O=!1,inlineImages:D=!1,plugins:N,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:P,onMutation:U,getCanvasManager:B}=e;yn(P);const z=!M||window.parent===window;let j=!1;if(!z)try{window.parent.document&&(j=!1)}catch(ne){j=!0}if(z&&!t)throw new Error("emit function is required");if(!z&&!j)return()=>{};void 0!==I&&void 0===E.mousemove&&(E.mousemove=I),qn.reset();const W=!0===y?{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!==g?g:{},H=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};let $;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let q=0;const K=e=>{for(const t of N||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!j&&(e=w(e)),e};Hn=(e,o)=>{const i=e;if(i.timestamp=Dt(),!r([vn,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||i.type===en.FullSnapshot||i.type===en.IncrementalSnapshot&&i.data.source===tn.Mutation||vn.forEac
1h((e=>e.unfreeze())),z)r([t,"optionalCall",e=>e(K(i),o)]);else if(j){const e={type:"rrweb",event:K(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===en.FullSnapshot)$=i,q=0;else if(i.type===en.IncrementalSnapshot){if(i.data.source===tn.Mutation&&i.data.isAttachIframe)return;q++;const e=s&&q>=s,t=n&&$&&i.timestamp-$.timestamp>n;(e||t)&&te(!0)}};const J=e=>{Hn({type:en.IncrementalSnapshot,data:{source:tn.Mutation,...e}})},V=e=>Hn({type:en.IncrementalSnapshot,data:{source:tn.Scroll,...e}}),Y=e=>Hn({type:en.IncrementalSnapshot,data:{source:tn.CanvasMutation,...e}}),G=new jn({mutationCb:J,adoptedStyleSheetCb:e=>Hn({type:en.IncrementalSnapshot,data:{source:tn.AdoptedStyleSheet,...e}})}),X="boolean"===typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Fn:new Pn({mirror:qn,mutationCb:J,stylesheetManager:G,recordCrossOriginIframes:M,wrappedEmit:Hn});for(const r of N||[])r.getMirror&&r.getMirror({nodeMirror:qn,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const Q=new Wn,Z=function(e,t){try{return e?e(t):new zn}catch(n){return console.warn("Unable to initialize CanvasManager"),new zn}}(B,{mirror:qn,win:window,mutationCb:e=>Hn({type:en.IncrementalSnapshot,data:{source:tn.CanvasMutation,...e}}),recordCanvas:x,blockClass:o,blockSelector:i,unblockSelector:a,maxCanvasSize:_,sampling:E.canvas,dataURLOptions:C,errorHandler:P}),ee="boolean"===typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Un:new Bn({mutationCb:J,scrollCb:V,bypassOptions:{onMutation:U,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:f,maskInputOptions:W,dataURLOptions:C,maskAttributeFn:k,maskTextFn:b,maskInputFn:v,recordCanvas:x,inlineImages:D,sampling:E,slimDOMOptions:H,iframeManager:X,stylesheetManager:G,canvasManager:Z,keepIframeSrcFn:L,processedNodeManager:Q},mirror:qn}),te=(e=!1)=>{if(!T)return;Hn({type:en.Meta,data:{href:window.location.href,width:Ft(),height:Lt()}}
1,e),G.reset(),ee.init(),vn.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new We,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOM:S=!1,dataURLOptions:k,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:_,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:I=()=>!1}=t||{};return Ct(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===m?{}:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===S,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===S?{}:S,dataURLOptions:k,inlineImages:h,recordCanvas:p,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:_,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:I,newlyAddedElement:!1})}(document,{mirror:qn,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:f,maskAllInputs:W,maskAttributeFn:k,maskInputFn:v,maskTextFn:b,slimDOM:H,dataURLOptions:C,recordCanvas:x,inlineImages:D,onSerialize:e=>{Wt(e,qn)&&X.addIframe(e),Ht(e,qn)&&G.trackLinkElement(e),$t(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),e.contentWindow&&Z.addWindow(e.contentWindow),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{G.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return console.warn("Failed to snapshot the document");Hn({type:en.FullSnapshot,data:{node:t,initialOffset:Nt(window)}}
1),vn.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,qn.getId(document))};$n=te;try{const e=[],t=e=>Sn(An)({onMutation:U,mutationCb:J,mousemoveCb:(e,t)=>Hn({type:en.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Hn({type:en.IncrementalSnapshot,data:{source:tn.MouseInteraction,...e}}),scrollCb:V,viewportResizeCb:e=>Hn({type:en.IncrementalSnapshot,data:{source:tn.ViewportResize,...e}}),inputCb:e=>Hn({type:en.IncrementalSnapshot,data:{source:tn.Input,...e}}),mediaInteractionCb:e=>Hn({type:en.IncrementalSnapshot,data:{source:tn.MediaInteraction,...e}}),styleSheetRuleCb:e=>Hn({type:en.IncrementalSnapshot,data:{source:tn.StyleSheetRule,...e}}),styleDeclarationCb:e=>Hn({type:en.IncrementalSnapshot,data:{source:tn.StyleDeclaration,...e}}),canvasMutationCb:Y,fontCb:e=>Hn({type:en.IncrementalSnapshot,data:{source:tn.Font,...e}}),selectionCb:e=>{Hn({type:en.IncrementalSnapshot,data:{source:tn.Selection,...e}})},customElementCb:e=>{Hn({type:en.IncrementalSnapshot,data:{source:tn.CustomElement,...e}})},blockClass:o,ignoreClass:c,ignoreSelector:l,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:W,inlineStylesheet:f,sampling:E,recordDOM:T,recordCanvas:x,inlineImages:D,userTriggeredOnInput:A,collectFonts:O,doc:e,maskAttributeFn:k,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:L,blockSelector:i,unblockSelector:a,slimDOMOptions:H,dataURLOptions:C,mirror:qn,iframeManager:X,stylesheetManager:G,shadowDomManager:ee,processedNodeManager:Q,canvasManager:Z,ignoreCSSAttributes:F,plugins:r([N,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>Hn({type:en.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});X.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(r){console.warn(r)}}));const n=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Tt("DOMContentLoaded",(()=>{Hn({type:en.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&n()}))),e.push(Tt("load",(()=>{Hn({type:en.Load,data:{}}),"load"===R&&n()}),window))),()=>{e.forEach((e=>e())),Q.destroy(),$n=void 0,gn()}}catch(re){console.warn(re)}}Kn.mirror=qn,Kn.takeFullSnapshot=function(e){if(!$n)throw new Error("please take full snapshot after start recording");$n(e)};function Jn(e){return e>9999999999?e:1e3*e}function Vn(e){return e>9999999999?e/1e3:e}function Yn(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:en.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,o.S8)(t,10,1e3)}}),"console"===t.category))))}function Gn(e){return e.closest("button,a")||e}function Xn(e){const t=Qn(e);return t&&t instanceof Element?Gn(t):t}function Qn(e){return function(e){return"object"===typeof e&&!!e&&"target"in e}(e)?e.target:e}let Zn;function er(e){return Zn||(Zn=[],(0,i.GS)(xe,"open",(function(e){return function(...t){if(Zn)try{Zn.forEach((e=>e()))}catch(n){}return e.apply(xe,t)}}))),Zn.push(e),()=>{const t=Zn?Zn.indexOf(e):-1;t>-1&&Zn.splice(t,1)}}const tr=new Set([tn.Mutation,tn.StyleSheetRule,tn.StyleDeclaration,tn.AdoptedStyleSheet,tn.CanvasMutation,tn.Selection,tn.MediaInteraction]);class nr{constructor(e,t,n=Yn){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=er((()=>{this._lastMutation=sr()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!rr.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;
1if("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))return;const n={timestamp:Vn(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Vn(e)}registerScroll(e=Date.now()){this._lastScroll=Vn(e)}registerClick(e){const t=Gn(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=sr();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const n of e){const e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:xe.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,s)}else if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:xe.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,x.wg)((()=>this._checkClicks()),1e3)}}const rr=["A","BUTTON","INPUT"];function sr(){return Date.now()/1e3}function or(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(tr.has(n)&&e.registerMutation(t.timestamp),n===tn.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===tn.MouseInteraction}(t)){const{type:n,id:r}=t.data,s=Kn.mirror.getNode(r);s instanceof HTMLElement&&n===nn.Click&&e.registerClick(s)}}catch(n){}}function ir(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var ar;!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"}(ar||(ar={}));const cr=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function lr(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(cr.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const ur=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?Xn(e.event):Qn(e.event),n=(0,a.Hd)(r,{maxStringLength:200})||"<unknown>"}catch(s){n="<unknown>"}return{target:r,message:n}}(e);return ir({category:`ui.${e.name}`,...dr(t,n)})}(t);if(!n)return;const r="click"===t.name,s=r?t.event:void 0;var o,i,c;!(r&&e.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(o=e.clickDetector,i=n,c=Xn(t.event),o.handleClick(i,c)),Yn(e,n)};function dr(e,t){const n=Kn.mirror.getId(e),r=n&&Kn.mirror.getNode(n),s=r&&Kn.mirror.getMeta(r),o=s&&function(e){return e.type===ar.Element}(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>
1e.type===ar.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:lr(o.attributes)}}:{}}}function hr(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=e;if(!i||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(i)||!o)return null;const c=t||r||s,l=1===o.length;if(!c&&l)return null;const u=(0,a.Hd)(i,{maxStringLength:200})||"<unknown>",d=dr(i,u);return ir({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}(t);n&&Yn(e,n)}const pr={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:yr(o),end:yr(s),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=yr(s);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:m,type:f}=e;if(0===s)return null;return{type:`${t}.${f}`,start:yr(p),end:yr(o),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:h}}}};function mr(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function fr(e){const t=pr[e.entryType];return t?t(e):null}function yr(e){return((c.k3||xe.performance.timeOrigin)+e)/1e3}function gr(e){const t=e.entries[e.entries.length-1];return _r(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function Sr(e){return void 0!==e.sources}function kr(e){const t=[],n=[];for(const r of e.entries)if(Sr(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=Kn.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return _r(e,"cumulative-layout-shift",n,t)}function vr(e){const t=e.entries[e.entries.length-1];return _r(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function br(e){const t=e.entries[e.entries.length-1];return _r(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function _r(e,t,n,r){const s=e.value,o=e.rating,i=yr(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map((e=>Kn.mirror.getId(e))):void 0,attributions:r}}}function wr(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(ye(e,n))})),r.push(function(e,t=!1){return _e("lcp",e,ve,me,t)}(mr(gr,e)),function(e,t=!1){return _e("cls",e,Se,he,t)}(mr(kr,e)),_e("fid",mr(vr,e),ke,pe),function(e){return _e("inp",e,be,fe)}(mr(br,e))),()=>{r.forEach((e=>e()))}}const Er="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const Cr=["info","warn","error","log"],Ir="[Replay] ";function Tr(e,t="info"){(0,l.Z)({category:"console",data:{logger:"replay"},level:t,message:`${Ir}${e}`},{level:t})}const xr=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return Er?(Cr.forEach((e=>{n[e]=(...n)=>{u.vF[e](Ir,...n),t&&Tr(n.join(""),(0,d.t)(e))}})),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),u.vF.error(Ir,r),e?(0,h.Cp)(r):t&&Tr(r,"error")},n.infoTick=(...e)=>{u.vF.info(Ir,...e),t&&setTimeout((()=>Tr(e[0])),0)}):Cr.forEach((e=>{n[e]=()=>{}})),n}();class Mr extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Rr{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>De)throw new Mr;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?Jn(e):null}}class Ar{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Er&&xr.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,s)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return Er&&xr.error("Error in compression worker: ",i.response),void s(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Or{constructor(e){this._worker=new Ar(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}
1addEvent(e){const t=Jn(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>De?Promise.reject(new Mr):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Er&&xr.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Dr{constructor(e){this._fallback=new Rr,this._compression=new Or(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Er&&xr.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const o of e)r.push(this._compression.addEvent(o));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(s){Er&&xr.exception(s,"Failed to add events when switching buffers.")}}}function Nr({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"===typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const 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==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,591 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},_=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},x=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=A(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}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(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)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),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=x(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,U)+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(U,C,0),R=U;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){_(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;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=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;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}}},L=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}}},O=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=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^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=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(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-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[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=U(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=x,c.p=_,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)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=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&&j(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)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=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(O(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}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(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=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=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(const r of t)n+=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 H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[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;Er&&xr.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Dr(n)}catch(t){Er&&xr.exception(t,"Failed to create compression worker")}}(t);if(e)return e}return Er&&xr.info("Using simple buffer"),new Rr}function Lr(){try{return"sessionStorage"in xe&&!!xe.sessionStorage}catch(e){return!1}}function Fr(e){!function(){if(!Lr())return;try{xe.sessionStorage.removeItem(Me)}catch(e){}}(),e.session=void 0}function Pr(e){return void 0!==e&&Math.random()<e}function Ur(e){const t=Date.now();return{id:e.id||(0,p.eJ)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Br(e){if(Lr())try{xe.sessionStorage.setItem(Me,JSON.stringify(e))}catch(t){}}function zr({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=function(e,t){return Pr(e)?"session":!!t&&"buffer"}(e,t),o=Ur({sampled:s,previousSessionId:r});return n&&Br(o),o}function jr(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Wr(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return jr(e.started,t,r)||jr(e.lastActivity,n,r)}function Hr(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!Wr(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function $r({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&function(){if(!Lr())return null;try{const e=xe.sessionStorage.getItem(Me);if(!e)return null;const t=JSON.parse(e);return Er&&xr.infoTick("Loading existing session"),Ur(t)}
1catch(e){return null}}();return s?Hr(s,{sessionIdleExpire:e,maxReplayDuration:t})?(Er&&xr.infoTick("Session in sessionStorage is expired, creating new one..."),zr(r,{previousSessionId:s.id})):s:(Er&&xr.infoTick("Creating new session"),zr(r,{previousSessionId:n}))}function qr(e,t,n){return!!Jr(e,t)&&(Kr(e,t,n),!0)}async function Kr(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s="buffer"===e.recordingMode;try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=function(e,t){try{if("function"===typeof t&&function(e){return e.type===en.Custom}(e))return t(e)}catch(n){return Er&&xr.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!o)return;return await r.addEvent(o)}catch(o){const t=o&&o instanceof Mr,n=t?"addEventSizeExceeded":"addEvent";if(t&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:n});const i=(0,m.KU)();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function Jr(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Jn(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Er&&xr.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function Vr(e){return!e.type}function Yr(e){return"transaction"===e.type}function Gr(e){return"feedback"===e.type}function Xr(e){return(t,n)=>{if(!e.isEnabled()||!Vr(t)&&!Yr(t))return;const r=n&&n.statusCode;!r||r<200||r>=300||(Yr(t)?function(e,t){const 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,t):function(e,t){const 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;const{beforeErrorSampling:r}=e.getOptions();if("function"===typeof r&&!r(t))return;(0,x.wg)((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(js){e.handleException(js)}}))}(e,t))}}function Qr(e){return t=>{e.isEnabled()&&Vr(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"!==typeof n)return;if(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){Yn(e,ir({category:"replay.hydrate-error",data:{url:(0,a.$N)()}}))}}(e,t)}}function Zr(e){const t=(0,m.KU)();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!es(t))return;const n=function(e){if(!es(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return ir(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"===typeof e)return e.length>Oe?(n=!0,`${e.slice(0,Oe)}\u2026`):e;if("object"===typeof e)try{const t=(0,o.S8)(e,7);return JSON.stringify(t).length>Oe?(n=!0,`${JSON.stringify(t,null,2).slice(0,Oe)}\u2026`):t}catch(t){}return e}));return ir({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return ir(e)}(t);n&&Yn(e,n)}(e,t)))}function es(e){return!!e.category}function ts(){const e=(0,m.o5)().getPropagationContext().dsc;e&&delete e.replay_id;const t=(0,f.Bk)();if(t){delete(0,y.k1)(t).replay_id}}function ns(e){return Object.assign(((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Vr(t)&&!Yr(t)&&!Gr(t))return t;if(!e.checkAndHandleExpiredSession())return ts(),t;if(Gr(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:en.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return Er&&xr.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==Re&&!(!t.exception||t.type)&&Pr(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}function rs(e,t){return t.map((({type:t,start:n,end:r,name:s,data:o})=>{const i=e.throttledAddEvent({type:en.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:r,data:o}}});return"string"===typeof i?Promise.resolve(null):i}))}function ss(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,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((()=>
1(rs(e,[n]),!1))))}}function os(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Er||!e.getOptions()._experiments.traceInternals)&&g(t,(0,m.KU)())}(e,t.name)||e.addUpdate((()=>(rs(e,[t]),!0))))}function is(e){if(!e)return;const t=new TextEncoder;try{if("string"===typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=ms(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(n){}}function as(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function cs(e){try{if("string"===typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[ms(e)];if(!e)return[void 0]}catch(t){return Er&&xr.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Er&&xr.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ls(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function us(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:a,request:c,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:(0,i.Ce)({method:o,statusCode:a,request:c,response:l})}}function ds(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function hs(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:o}=function(e){if(!e||"string"!==typeof e)return{body:e};const t=e.length>Ae,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,Ae);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(r){}return{body:e}}(n);return r.body=s,o&&o.length>0&&(r._meta={warnings:o}),r}function ps(e,t){return Object.entries(e).reduce(((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n}),{})}function ms(e){return new URLSearchParams(e).toString()}function fs(e,t){const n=function(e,t=xe.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(xe.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return(0,k.Xr)(n,t)}async function ys(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=fs(i,n.networkDetailAllowUrls)&&!fs(i,n.networkDetailDenyUrls),h=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?function(e,t){if(1===e.length&&"string"!==typeof e[0])return ks(e[0],t);if(2===e.length)return ks(e[1],t);return{}}(n,t):{};if(!e)return hs(s,r,void 0);const o=gs(n),[i,a]=cs(o),c=hs(s,r,i);if(a)return ls(c,a);return c}(n,t.input,l):ds(l),p=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&void 0!==s)return ds(s);const o=r?Ss(r.headers,n):{};if(!r||!t&&void 0!==s)return hs(o,s,void 0);const[i,a]=await async function(e){const t=function(e){try{return e.clone()}catch(t){Er&&xr.exception(t,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=(0,x.wg)((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(Er&&xr.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Er&&xr.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),c=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e&&e.length&&void 0===n?is(e):n;return r?hs(s,o,t?e:void 0):ds(o)}catch(o){return Er&&xr.exception(o,"Failed to serialize response body"),hs(s,n,void 0)}}(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});if(a)return ls(c,a);return c}(d,n,t.response,u);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:h,response:p}}
1(e,t,n),s=us("resource.fetch",r);os(n.replay,s)}catch(r){Er&&xr.exception(r,"Failed to capture fetch breadcrumb")}}function gs(e=[]){if(2===e.length&&"object"===typeof e[1])return e[1].body}function Ss(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function ks(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Ss(n,t):Array.isArray(n)?{}:ps(n,t):{}}async function vs(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:h}=e.data;if(!c)return null;if(!a||!fs(c,n.networkDetailAllowUrls)||fs(c,n.networkDetailDenyUrls)){return{startTimestamp:s,endTimestamp:o,url:c,method:l,statusCode:u,request:ds(d),response:ds(h)}}const p=a[Ce.Er],m=p?ps(p.request_headers,n.networkRequestHeaders):{},f=ps(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{})}(a),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?cs(i):[void 0],[S,k]=n.networkCaptureBodies?function(e){const 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 Er&&xr.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Er&&xr.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(n){t.push(n)}return Er&&xr.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],v=hs(m,d,y),b=hs(f,h,S);return{startTimestamp:s,endTimestamp:o,url:c,method:l,statusCode:u,request:g?ls(v,g):v,response:k?ls(b,k):b}}(e,t,n),s=us("resource.xhr",r);os(n.replay,s)}catch(r){Er&&xr.exception(r,"Failed to capture xhr breadcrumb")}}function bs(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=is(r),o=n.getResponseHeader("content-length")?as(n.getResponseHeader("content-length")):function(e,t){try{return is("json"===t&&e&&"object"===typeof e?JSON.stringify(e):e)}catch(n){return}}(n.response,n.responseType);void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}function _s(e){const t=(0,m.KU)();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(bs(t,n),vs(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t){const{input:n,response:r}=t,s=is(n?gs(n):void 0),o=r?as(r.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}(t,n),ys(t,n,e))}catch(r){Er&&xr.exception(r,"Error when enriching network breadcrumb")}}(a,e,t)))}catch(n){}}function ws(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const Es=s.O.navigator;function Cs(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Er&&xr.warn("Received replay event after session expired."));const s=r||!t;t=!0,e.clickDetector&&or(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!qr(e,n,s))return!0;if(!s)return!1;const t=e.session;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;qr(e,function(e){const t=e.getOptions();return{type:en.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,s),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(Er&&xr.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&Br(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}function Is(e,t,n,r){return(0,v.h4)((0,v.n2)(e,(0,v.Cj)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"===typeof t?(new TextEncoder).encode(t).length:t.length},t]])}async function Ts({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"===typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=(0,m.KU)(),h=(0,m.o5)(),p=d&&d.getTransport(),f=d&&d.getDsn();if(!d||!p||!f||!o.sampled)return(0,_.XW)({});
1const y={type:"replay_event",replay_start_timestamp:u/1e3,timestamp:s/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const s={event_id:n,integrations:"object"!==typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,s);const o=await(0,b.mG)(e.getOptions(),r,s,t,e,(0,m.rm)());if(!o)return null;o.platform=o.platform||"javascript";const i=e.getSdkMetadata(),{name:a,version:c}=i&&i.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},o}({scope:h,client:d,replayId:t,event:y});if(!g)return d.recordDroppedEvent("event_processor","replay",y),Er&&xr.info("An event processor returned `null`, will not send event."),(0,_.XW)({});delete g.sdkProcessingMetadata;const S=Is(g,i,f,d.getOptions().tunnel);let k;try{k=await p.send(S)}catch(js){const t=new Error(Re);try{t.cause=js}catch(E){}throw t}if("number"===typeof k.statusCode&&(k.statusCode<200||k.statusCode>=300))throw new xs(k.statusCode);const v=(0,w.wq)({},k);if((0,w.Jz)(v,"replay"))throw new Ms(v);return k}class xs extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Ms extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Rs(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;if(n.length)try{return await Ts(e),!0}catch(js){if(js instanceof xs||js instanceof Ms)throw js;if((0,h.o)("Replays",{_retryCount:t.count}),r&&r(js),t.count>=3){const e=new Error(`${Re} - max retries exceeded`);try{e.cause=js}catch(s){}throw e}return t.interval*=++t.count,new Promise(((r,s)=>{(0,x.wg)((async()=>{try{await Rs(e,t),r(!0)}catch(n){s(n)}}),t.interval)}))}}const As="__THROTTLED";function Os(e,t,n){const r=new Map;let s=!1;return(...o)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=s;return s=!0,e?"__SKIPPED":As}s=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...o)}}class Ds{constructor({options:e,recordingOptions:t}){Ds.prototype.__init.call(this),Ds.prototype.__init2.call(this),Ds.prototype.__init3.call(this),Ds.prototype.__init4.call(this),Ds.prototype.__init5.call(this),Ds.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._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,s,o;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){void 0!==s&&clearTimeout(s),void 0!==o&&clearTimeout(o),s=o=void 0}function l(){return s&&clearTimeout(s),s=(0,x.wg)(a,t),i&&void 0===o&&(o=(0,x.wg)(a,i)),r}return l.cancel=c,l.flush=function(){return void 0!==s||void 0!==o?a():r},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Os(((e,t)=>function(e,t,n){return Jr(e,t)?Kr(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(s&&(this.clickDetector=new nr(this,s)),Er){const t=e._experiments;xr.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){Er&&xr.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Er&&xr.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Er&&xr.exception(new Error("Unable to initialize and create session")))}
1start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Er&&xr.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Er&&xr.info("Buffering is in progress, call `flush()` to save the replay"));Er&&xr.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=$r({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Er&&xr.info("Buffering is in progress, call `flush()` to save the replay"));Er&&xr.infoTick("Starting replay in buffer mode");const e=$r({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Kn({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Cs(this),.../iPhone|iPad|iPod/i.test(Es&&Es.userAgent||"")||/Macintosh/i.test(Es&&Es.userAgent||"")&&Es&&Es.maxTouchPoints&&Es.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(js){this.handleException(js)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(js){return this.handleException(js),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Er&&xr.info("Stopping Replay"+(t?` triggered by ${t}`:"")),ts(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Fr(this)}catch(js){this.handleException(js)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Er&&xr.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Er&&xr.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Er&&xr.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&jr(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${xe.location.pathname}${xe.location.hash}${xe.location.search}`,t=`${xe.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===As){const e=ir({category:"replay.throttled"});this.addUpdate((()=>!qr(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||(0,f.Bk)(),t=e&&(0,f.zU)(e),n=(t&&(0,f.et)(t).data||{})[E.i_];if(t&&n&&["route","custom"].includes(n))return(0,f.et)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Nr({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=$r({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Hr(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{xe.document.addEventListener("visibilitychange",this._handleVisibilityChange),xe.addEventListener("blur",this._handleWindowBlur),xe.addEventListener("focus",this._handleWindowFocus),xe.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=(0,m.KU)();(0,Ie.i)(ur(e)),(0,Te._)(ss(e)),Zr(e),_s(e);const n=ns(e);(0,h.SA)(n),t&&(t.on("beforeSendEvent",Qr(e)),t.on("afterSendEvent",Xr(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}(this),this._hasInitializedCoreListeners=!0)}catch(js){this.handleException(js)}this._performanceCleanupCallback=wr(this)}_removeListeners(){try{xe.document.removeEventListener("visibilitychange",this._handleVisibilityChange),xe.removeEventListener("blur",this._handleWindowBlur),xe.removeEventListener("focus",this._handleWindowFocus),xe.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(js){this.handleException(js)}}__init(){this._handleVisibilityChange=()=>{"visible"===xe.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroun
1dTasks()}}__init2(){this._handleWindowBlur=()=>{const e=ir({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=ir({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{hr(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Wr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Er&&xr.info("Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:en.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(fr).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(rs(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const 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}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(rs(e,[ws(xe.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await Rs({replayId:e,recordingData:s,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(js){this.handleException(js),this.stop({reason:"sendReplay"});const t=(0,m.KU)();if(t){const n=js instanceof Ms?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else Er&&xr.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Er&&xr.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(r||s)return Er&&xr.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&Er&&xr.info("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(js){this.handleException(js)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Br(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=ir({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Ns(e,t){return[...e,...t].join(",")}const Ls='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Fs=["content-length","content-type","accept"];let Ps=!1;const Us=e=>new Bs(e);class Bs{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:s=!0,useCompression:o=!0,workerUrl:i,_experiments:a={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:f=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:S=[],networkResponseHeaders:k=[],mask:v=[],maskAttributes:b=["title","placeholder"],unmask:_=[],block:w=[],unblock:E=[],ignore:C=[],maskFn:T,beforeAddRecordingEvent:x,beforeErrorSampling:M,onError:R}={}){this.name=Bs.id;const A=function({mask:e,unmask:t,block:n,unblock:r,ignore:s}){return{maskTextSelector:Ns(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Ns(t,[]),blockSelector:Ns(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
1([src])"]),unblockSelector:Ns(r,[]),ignoreSelector:Ns(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:v,unmask:_,block:w,unblock:E,ignore:C});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:T,maskInputFn:T,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return r?s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}({maskAttributes:b,maskAllText:c,privacyOptions:A,key:e,value:t,el:n}),...A,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(t){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,Ne),stickySession:s,useCompression:o,workerUrl:i,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:f,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:zs(S),networkResponseHeaders:zs(k),beforeAddRecordingEvent:x,beforeErrorSampling:M,onError:R,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Ls}`:Ls),this._isInitialized&&I())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Ps}set _isInitialized(e){Ps=e}afterAllSetup(e){I()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,i.Ce)(e)},s=(0,T.i)(n.replaysSessionSampleRate),o=(0,T.i)(n.replaysOnErrorSampleRate);null==s&&null==o&&(0,u.pq)((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=s&&(r.sessionSampleRate=s);null!=o&&(r.errorSampleRate=o);return r}(this._initialOptions,e);this._replay=new Ds({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(t){}}}function zs(e){return[...Fs,...e.map((e=>e.toLowerCase()))]}Bs.__initStatic()}}]); 2//# sourceMappingURL=445-e1dff27d496e9bb60bb9.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.