PageSourceSearch

https://www.avantgarde-prague.cz/static/assets/index-BaT93GXc.js

js avantgarde-prague.cz collected 2026-10-01 02:42:12 UTC 325,916 bytes, 1 lines download raw bytes

1const Qo=Object.prototype.toString;function Te(t){switch(Qo.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return $t(t,Error)}}function xe(t,e){return Qo.call(t)==="[object ".concat(e,"]")}function Zr(t){return xe(t,"ErrorEvent")}function Zo(t){return xe(t,"DOMError")}function jd(t){return xe(t,"DOMException")}function xt(t){return xe(t,"String")}function ts(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function es(t){return t===null||ts(t)||typeof t!="object"&&typeof t!="function"}function ie(t){return xe(t,"Object")}function Un(t){return typeof Event<"u"&&$t(t,Event)}function Hd(t){return typeof Element<"u"&&$t(t,Element)}function zd(t){return xe(t,"RegExp")}function rn(t){return!!(t&&t.then&&typeof t.then=="function")}function qd(t){return ie(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function ti(t){return typeof t=="number"&&t!==t}function $t(t,e){try{return t instanceof e}catch(n){return!1}}function ei(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function Ce(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:"".concat(t.slice(0,e),"...")}function ns(t,e){let n=t;const r=n.length;if(r<=150)return n;e>r&&(e=r);let s=Math.max(e-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n="'{snip} ".concat(n)),o<r&&(n+=" {snip}"),n}function jn(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const s=t[r];try{ei(s)?n.push("[VueViewModel]"):n.push(String(s))}catch(o){n.push("[value cannot be serialized]")}}return n.join(e)}function Wd(t,e,n=!1){return xt(t)?zd(e)?e.test(t):xt(e)?n?t===e:t.includes(e):!1:!1}function Ie(t,e=[],n=!1){return e.some(r=>Wd(t,r,n))}function ni(t,e,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!$t(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Vd(rs(t,e,s,i.originalException,r,o.exception.values,a,0),n))}function rs(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if($t(r[s],Error)){ri(i,a);const u=t(e,r[s]),l=c.length;si(u,s,l,a),c=rs(t,e,n,r[s],s,[u,...c],u,l)}return Array.isArray(r.errors)&&r.errors.forEach((u,l)=>{if($t(u,Error)){ri(i,a);const d=t(e,u),p=c.length;si(d,"errors[".concat(l,"]"),p,a),c=rs(t,e,n,u,s,[d,...c],d,p)}}),c}function ri(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function si(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function Vd(t,e){return t.map(n=>(n.value&&(n.value=Ce(n.value,e)),n))}function Hn(t){return t&&t.Math==Math?t:void 0}const M=typeof globalThis=="object"&&Hn(globalThis)||typeof window=="object"&&Hn(window)||typeof self=="object"&&Hn(self)||typeof global=="object"&&Hn(global)||function(){return this}()||{};function ss(){return M}function oi(t,e,n){const r=n||M,s=r.__SENTRY__=r.__SENTRY__||{};return s[t]||(s[t]=e())}const Re=ss(),Gd=80;function Wt(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||Gd;for(;n&&o++<r&&(u=Yd(n,l),!(u==="html"||o>1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch(n){return"<unknown>"}}function Yd(t,e){const n=t,r=[];let s,o,i,a,c;if(!n||!n.tagName)return"";if(Re.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=e&&e.length?e.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(u&&u.length)u.forEach(d=>{r.push("[".concat(d[0],'="').concat(d[1],'"]'))});else if(n.id&&r.push("#".concat(n.id)),s=n.className,s&&xt(s))for(o=s.split(/\s+/),c=0;c<o.length;c++)r.push(".".concat(o[c]));const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)i=l[c],a=n.getAttribute(i),a&&r.push("[".concat(i,'="').concat(a,'"]'));return r.join("")}function ii(){try{return Re.document.location.href}catch(t){return""}}function ai(t){return Re.document&&Re.document.querySelector?Re.document.querySelector(t):null}function ci(t){if(!Re.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}const Me=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Kd="Sentry Logger ",zn=["debug","info","warn","error","log","assert","trace"],qn={};function St(t){if(!("console"in M))return t();const e=M.console,n={},r=Object.keys(qn);r.forEach(s=>{const o=qn[s];n[s]=e[s],e[s]=o});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function Jd(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};
1return Me?zn.forEach(n=>{e[n]=(...r)=>{t&&St(()=>{M.console[n]("".concat(Kd,"[").concat(n,"]:"),...r)})}}):zn.forEach(n=>{e[n]=()=>{}}),e}const m=Jd(),Xd=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Qd(t){return t==="http"||t==="https"}function ae(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return"".concat(a,"://").concat(c).concat(e&&s?":".concat(s):"","@").concat(n).concat(o?":".concat(o):"","/").concat(r&&"".concat(r,"/")).concat(i)}function ui(t){const e=Xd.exec(t);if(!e){St(()=>{console.error("Invalid Sentry Dsn: ".concat(t))});return}const[n,r,s="",o,i="",a]=e.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const d=u.match(/^\d+/);d&&(u=d[0])}return li({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function li(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Zd(t){if(!Me)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(m.error("Invalid Sentry Dsn: ".concat(s," missing")),!0))?!1:n.match(/^\d+$/)?Qd(r)?e&&isNaN(parseInt(e,10))?(m.error("Invalid Sentry Dsn: Invalid port ".concat(e)),!1):!0:(m.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):(m.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1)}function di(t){const e=typeof t=="string"?ui(t):li(t);if(!(!e||!Zd(e)))return e}class Ct extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function it(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);typeof s=="function"&&pi(s,r),t[e]=s}function Vt(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(r){Me&&m.log('Failed to add non-enumerable property "'.concat(e,'" to object'),t)}}function pi(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,Vt(t,"__sentry_original__",e)}catch(n){}}function os(t){return t.__sentry_original__}function tp(t){return Object.keys(t).map(e=>"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))).join("&")}function hi(t){if(Te(t))return{message:t.message,name:t.name,stack:t.stack,...fi(t)};if(Un(t)){const e={type:t.type,target:mi(t.target),currentTarget:mi(t.currentTarget),...fi(t)};return typeof CustomEvent<"u"&&$t(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function mi(t){try{return Hd(t)?Wt(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function fi(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function ep(t,e=40){const n=Object.keys(hi(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Ce(n[0],e);for(let r=n.length;r>0;r--){const s=n.slice(0,r).join(", ");if(!(s.length>e))return r===n.length?s:Ce(s,e)}return""}function at(t){return is(t,new Map)}function is(t,e){if(np(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const s of Object.keys(t))typeof t[s]<"u"&&(r[s]=is(t[s],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach(s=>{r.push(is(s,e))}),r}return t}function np(t){if(!ie(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch(e){return!0}}const gi=50,yi=/\(error: (.*)\)/,_i=/captureMessage|captureException/;function vi(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const s=[],o=n.split("\n");for(let i=r;i<o.length;i++){const a=o[i];if(a.length>1024)continue;const c=yi.test(a)?a.replace(yi,"$1"):a;if(!c.match(/\S*Error: /)){for(const u of e){const l=u(c);if(l){s.push(l);break}}if(s.length>=gi)break}}return sp(s)}}function rp(t){return Array.isArray(t)?vi(...t):t}function sp(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),_i.test(e[e.length-1].function||"")&&(e.pop(),_i.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,gi).map(n=>({...n,filename:n.filename||e[e.length-1].filename,function:n.function||"?"}))}const as="<anonymous>";function Pt(t){try{return!t||typeof t!="function"?as:t.name||as}catch(e){return as}}const Wn={},bi={};function ce(t,e){Wn[t]=Wn[t]||[],Wn[t].push(e)}function ue(t,e){bi[t]||(e(),bi[t]=!0)}function kt(t,e){const n=t&&Wn[t];if(n)for(const r of n)try{r(e)}catch(s){Me&&m.error("Error while triggering instrumentation handler.\nType: ".concat(t,"\nName: ").concat(Pt(r),"\nError:"),s)}}function Si(t){const e="console";ce(e,t),ue(e,op)}
1function op(){"console"in M&&zn.forEach(function(t){t in M.console&&it(M.console,t,function(e){return qn[t]=e,function(...n){kt("console",{args:n,level:t});const r=qn[t];r&&r.apply(M.console,n)}})})}function U(){const t=M,e=t.crypto||t.msCrypto;let n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch(r){}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function ki(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Gt(t){const{message:e,event_id:n}=t;if(e)return e;const r=ki(t);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function cs(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type="Error")}function le(t,e){const n=ki(t);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...e},e&&"data"in e){const o={...s&&s.data,...e.data};n.mechanism.data=o}}function ip(t,e,n=5){if(e.lineno===void 0)return;const r=t.length,s=Math.max(Math.min(r-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,s-n),s).map(o=>ns(o,0)),e.context_line=ns(t[Math.min(r-1,s)],e.colno||0),e.post_context=t.slice(Math.min(s+1,r),s+1+n).map(o=>ns(o,0))}function wi(t){if(t&&t.__sentry_captured__)return!0;try{Vt(t,"__sentry_captured__",!0)}catch(e){}return!1}function us(t){return Array.isArray(t)?t:[t]}const Oe=M,ap=1e3;let Ei,ls,ds;function Ti(t){const e="dom";ce(e,t),ue(e,cp)}function cp(){if(!Oe.document)return;const t=kt.bind(null,"dom"),e=xi(t,!0);Oe.document.addEventListener("click",e,!1),Oe.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const r=Oe[n]&&Oe[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(it(r,"addEventListener",function(s){return function(o,i,a){if(o==="click"||o=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},l=u[o]=u[o]||{refCount:0};if(!l.handler){const d=xi(t);l.handler=d,s.call(this,o,d,a)}l.refCount++}catch(c){}return s.call(this,o,i,a)}}),it(r,"removeEventListener",function(s){return function(o,i,a){if(o==="click"||o=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},l=u[o];l&&(l.refCount--,l.refCount<=0&&(s.call(this,o,l.handler,a),l.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch(c){}return s.call(this,o,i,a)}}))})}function up(t){if(t.type!==ls)return!1;try{if(!t.target||t.target._sentryId!==ds)return!1}catch(e){}return!0}function lp(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function xi(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=dp(n);if(lp(n.type,r))return;Vt(n,"_sentryCaptured",!0),r&&!r._sentryId&&Vt(r,"_sentryId",U());
1const s=n.type==="keypress"?"input":n.type;up(n)||(t({event:n,name:s,global:e}),ls=n.type,ds=r?r._sentryId:void 0),clearTimeout(Ei),Ei=Oe.setTimeout(()=>{ds=void 0,ls=void 0},ap)}}function dp(t){try{return t.target}catch(e){return null}}const Vn=ss();function Ci(){if(!("fetch"in Vn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function ps(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Ii(){if(typeof EdgeRuntime=="string")return!0;if(!Ci())return!1;if(ps(Vn.fetch))return!0;let t=!1;const e=Vn.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=ps(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Me&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function pp(){return"ReportingObserver"in Vn}function Gn(t){const e="fetch";ce(e,t),ue(e,hp)}function hp(){Ii()&&it(M,"fetch",function(t){return function(...e){const{method:n,url:r}=mp(e),s={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return kt("fetch",{...s}),t.apply(M,e).then(o=>{const i={...s,endTimestamp:Date.now(),response:o};return kt("fetch",i),o},o=>{const i={...s,endTimestamp:Date.now(),error:o};throw kt("fetch",i),o})}})}function hs(t,e){return!!t&&typeof t=="object"&&!!t[e]}function Ri(t){return typeof t=="string"?t:t?hs(t,"url")?t.url:t.toString?t.toString():"":""}function mp(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:Ri(n),method:hs(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:Ri(e),method:hs(e,"method")?String(e.method).toUpperCase():"GET"}}let Yn=null;function Mi(t){const e="error";ce(e,t),ue(e,fp)}function fp(){Yn=M.onerror,M.onerror=function(t,e,n,r,s){return kt("error",{column:r,error:s,line:n,msg:t,url:e}),Yn&&!Yn.__SENTRY_LOADER__?Yn.apply(this,arguments):!1},M.onerror.__SENTRY_INSTRUMENTED__=!0}let Kn=null;function Oi(t){const e="unhandledrejection";ce(e,t),ue(e,gp)}function gp(){Kn=M.onunhandledrejection,M.onunhandledrejection=function(t){return kt("unhandledrejection",t),Kn&&!Kn.__SENTRY_LOADER__?Kn.apply(this,arguments):!0},M.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Jn=ss();function yp(){const t=Jn.chrome,e=t&&t.app&&t.app.runtime,n="history"in Jn&&!!Jn.history.pushState&&!!Jn.history.replaceState;return!e&&n}const sn=M;let Xn;function on(t){const e="history";ce(e,t),ue(e,_p)}function _p(){if(!yp())return;const t=sn.onpopstate;sn.onpopstate=function(...n){const r=sn.location.href,s=Xn;if(Xn=r,kt("history",{from:s,to:r}),t)try{return t.apply(this,n)}catch(o){}};function e(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=Xn,i=String(s);Xn=i,kt("history",{from:o,to:i})}return n.apply(this,r)}}it(sn.history,"pushState",e),it(sn.history,"replaceState",e)}const vp=M,Ft="__sentry_xhr_v3__";function Qn(t){const e="xhr";ce(e,t),ue(e,bp)}function bp(){if(!vp.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;it(t,"open",function(e){return function(...n){const r=Date.now(),s=xt(n[0])?n[0].toUpperCase():void 0,o=Sp(n[1]);if(!s||!o)return e.apply(this,n);this[Ft]={method:s,url:o,request_headers:{}},s==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const a=this[Ft];if(a&&this.readyState===4){try{a.status_code=this.status}catch(u){}const c={args:[s,o],endTimestamp:Date.now(),startTimestamp:r,xhr:this};kt("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?it(this,"onreadystatechange",function(a){return function(...c){return i(),a.apply(this,c)}}):this.addEventListener("readystatechange",i),it(this,"setRequestHeader",function(a){return function(...c){const[u,l]=c,d=this[Ft];return d&&xt(u)&&xt(l)&&(d.request_headers[u.toLowerCase()]=l),a.apply(this,c)}}),e.apply(this,n)}}),it(t,"send",function(e){return function(...n){const r=this[Ft];if(!r)return e.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const s={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return kt("xhr",s),e.apply(this,n)}})}function Sp(t){if(xt(t))return t;try{return t.toString()}catch(e){}}function kp(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function wp(){return"npm"}function Ep(){return!kp()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function ms(){return typeof window<"u"&&(!Ep()||Tp())}function Tp(){return M.process!==void 0&&M.process.type==="renderer"}function xp(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(s){if(t)return e.has(s)?!0:(e.add(s),!1);for(let o=0;o<e.length;o++)if(e[o]===s)return!0;return e.push(s),!1}function r(s){if(t)e.delete(s);else for(let o=0;o<e.length;o++)if(e[o]===s){e.splice(o,1);break}}return[n,r]}function wt(t,e=100,n=1/0){try{return fs("",t,e,n)}catch(r){return{ERROR:"**non-serializable** (".concat(r,")")}}}function Ai(t,e=3,n=100*1024){const r=wt(t,e);return Mp(r)>n?Ai(t,e-1,n):r}function fs(t,e,n=1/0,r=1/0,s=xp()){const[o,i]=s;
1if(e==null||["number","boolean","string"].includes(typeof e)&&!ti(e))return e;const a=Cp(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const h=u.toJSON();return fs("",h,c-1,r,s)}catch(h){}const l=Array.isArray(e)?[]:{};let d=0;const p=hi(e);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(d>=r){l[h]="[MaxProperties ~]";break}const f=p[h];l[h]=fs(h,f,c-1,r,s),d++}return i(e),l}function Cp(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(ei(e))return"[VueViewModel]";if(qd(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return"[Function: ".concat(Pt(e),"]");if(typeof e=="symbol")return"[".concat(String(e),"]");if(typeof e=="bigint")return"[BigInt: ".concat(String(e),"]");const n=Ip(e);return/^HTML(\w*)Element$/.test(n)?"[HTMLElement: ".concat(n,"]"):"[object ".concat(n,"]")}catch(n){return"**non-serializable** (".concat(n,")")}}function Ip(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function Rp(t){return~-encodeURI(t).split(/%..|./).length}function Mp(t){return Rp(JSON.stringify(t))}function Op(t,e){let n=0;for(let r=t.length-1;r>=0;r--){const s=t[r];s==="."?t.splice(r,1):s===".."?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}const Ap=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Dp(t){const e=t.length>1024?"<truncated>".concat(t.slice(-1024)):t,n=Ap.exec(e);return n?n.slice(1):[]}function Di(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const s=r>=0?t[r]:"/";s&&(e="".concat(s,"/").concat(e),n=s.charAt(0)==="/")}return e=Op(e.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+e||"."}function Ni(t){let e=0;for(;e<t.length&&t[e]==="";e++);let n=t.length-1;for(;n>=0&&t[n]==="";n--);return e>n?[]:t.slice(e,n-e+1)}function Np(t,e){t=Di(t).slice(1),e=Di(e).slice(1);const n=Ni(t.split("/")),r=Ni(e.split("/")),s=Math.min(n.length,r.length);let o=s;for(let a=0;a<s;a++)if(n[a]!==r[a]){o=a;break}let i=[];for(let a=o;a<n.length;a++)i.push("..");return i=i.concat(r.slice(o)),i.join("/")}function Lp(t,e){return Dp(t)[2]}var Bt;(function(t){t[t.PENDING=0]="PENDING";const e=1;t[t.RESOLVED=e]="RESOLVED";const n=2;t[t.REJECTED=n]="REJECTED"})(Bt||(Bt={}));function Ae(t){return new yt(e=>{e(t)})}function gs(t){return new yt((e,n)=>{n(t)})}class yt{constructor(e){yt.prototype.__init.call(this),yt.prototype.__init2.call(this),yt.prototype.__init3.call(this),yt.prototype.__init4.call(this),this._state=Bt.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new yt((r,s)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new yt((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,e&&e()},i=>{o=!0,s=i,e&&e()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=e=>{this._setResult(Bt.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Bt.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===Bt.PENDING){if(rn(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Bt.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Bt.RESOLVED&&n[1](this._value),this._state===Bt.REJECTED&&n[2](this._value),n[0]=!0)})}}}function $p(t){const e=[];function n(){return t===void 0||e.length<t}function r(i){return e.splice(e.indexOf(i),1)[0]}function s(i){if(!n())return gs(new Ct("Not adding Promise because buffer limit was reached."));const a=i();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new yt((a,c)=>{let u=e.length;if(!u)return a(!0);const l=setTimeout(()=>{i&&i>0&&a(!1)},i);e.forEach(d=>{Ae(d).then(()=>{--u||(clearTimeout(l),a(!0))},c)})})}return{$:e,add:s,drain:o}}function de(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}
1function Pp(t){return t.split(/[\?#]/,1)[0]}const Fp=["fatal","error","warning","log","info","debug"];function Li(t){return t==="warn"?"warning":Fp.includes(t)?t:"log"}const $i=1e3;function an(){return Date.now()/$i}function Bp(){const{performance:t}=M;if(!t||!t.now)return an;const e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/$i}const Yt=Bp(),ct=(()=>{const{performance:t}=M;if(!t||!t.now)return;const e=3600*1e3,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=s<e,i=t.timing&&t.timing.navigationStart,a=typeof i=="number"?Math.abs(i+n-r):e,c=a<e;return o||c?s<=a?t.timeOrigin:i:r})(),ys="baggage",Pi="sentry-",Up=/^sentry-/,jp=8192;function Fi(t){if(!xt(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((r,s)=>{const o=Ui(s);for(const i of Object.keys(o))r[i]=o[i];return r},{});else{if(!t)return;e=Ui(t)}const n=Object.entries(e).reduce((r,[s,o])=>{if(s.match(Up)){const i=s.slice(Pi.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function Bi(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,s])=>(s&&(n["".concat(Pi).concat(r)]=s),n),{});return Hp(e)}function Ui(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(e[n]=r,e),{})}function Hp(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],s)=>{const o="".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r)),i=s===0?o:"".concat(e,",").concat(o);return i.length>jp?(Me&&m.warn("Not adding key: ".concat(n," with val: ").concat(r," to baggage header due to exceeding baggage size limits.")),e):i},"")}const zp=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function _s(t){if(!t)return;const e=t.match(zp);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function qp(t,e){const n=_s(t),r=Fi(e),{traceId:s,parentSpanId:o,parentSampled:i}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:s||U(),parentSpanId:o||U().substring(16),spanId:U().substring(16),sampled:i,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:s||U(),spanId:U().substring(16)}}}function ji(t,e){const n=_s(t),r=Fi(e),{traceId:s,parentSpanId:o,parentSampled:i}=n||{};return n?{traceId:s||U(),parentSpanId:o||U().substring(16),spanId:U().substring(16),sampled:i,dsc:r||{}}:{traceId:s||U(),spanId:U().substring(16)}}function vs(t=U(),e=U().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),"".concat(t,"-").concat(e).concat(r)}function Ut(t,e=[]){return[t,e]}function Wp(t,e){const[n,r]=t;return[n,[...r,e]]}function De(t,e){const n=t[1];for(const r of n){const s=r[0].type;if(e(r,s))return!0}return!1}function Vp(t,e){return De(t,(n,r)=>e.includes(r))}function bs(t,e){return(e||new TextEncoder).encode(t)}function Hi(t,e){const[n,r]=t;let s=JSON.stringify(n);function o(i){typeof s=="string"?s=typeof i=="string"?s+i:[bs(s,e),i]:s.push(typeof i=="string"?bs(i,e):i)}for(const i of r){const[a,c]=i;if(o("\n".concat(JSON.stringify(a),"\n")),typeof c=="string"||c instanceof Uint8Array)o(c);else{let u;try{u=JSON.stringify(c)}catch(l){u=JSON.stringify(wt(c))}o(u)}}return typeof s=="string"?s:Gp(s)}function Gp(t){const e=t.reduce((s,o)=>s+o.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}function Yp(t,e,n){let r=typeof t=="string"?e.encode(t):t;function s(c){const u=r.subarray(0,c);return r=r.subarray(c+1),u}function o(){let c=r.indexOf(10);return c<0&&(c=r.length),JSON.parse(n.decode(s(c)))}const i=o(),a=[];for(;r.length;){const c=o(),u=typeof c.length=="number"?c.length:void 0;a.push([c,u?s(u):o()])}return[i,a]}function Kp(t,e){const n=typeof t.data=="string"?bs(t.data,e):t.data;return[at({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const Jp={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function zi(t){return Jp[t]}function Ss(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function qi(t,e,n,r){const s=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:ae(r)},...s&&{trace:at({...s})}}}function Xp(t,e,n){const r=[{type:"client_report"},{timestamp:an(),discarded_events:t}];return Ut(e?{dsn:e}:{},[r])}const Qp=60*1e3;function Wi(t,e=Date.now()){const n=parseInt("".concat(t),10);if(!isNaN(n))return n*1e3;const r=Date.parse("".concat(t));return isNaN(r)?Qp:r-e}function Zp(t,e){return t[e]||t.all||0}function Vi(t,e,n=Date.now()){return Zp(t,e)>n}function Gi(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,l]=a.split(":",5),d=parseInt(c,10),p=(isNaN(d)?60:d)*1e3;if(!u)s.all=r+p;else for(const h of u.split(";"))h==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(s[h]=r+p):s[h]=r+p}else i?s.all=r+Wi(i,r):e===429&&(s.all=r+60*1e3);return s}function th(t,e){return t(e.stack||"",1)}function eh(t,e){const n={type:e.name||e.constructor.name,value:e.message},r=th(t,e);return r.length&&(n.stacktrace={frames:r}),n}function nh(t,e){return t!=null?t:e()}function Zn(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(e,...i)),e=void 0)}return n}const w=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,cn="production";function ks(){return oi("globalEventProcessors",()=>[])}function Yi(t){ks().push(t)}function tr(t,e,n,r=0){return new yt((s,o)=>{const i=t[r];
1if(e===null||typeof i!="function")s(e);else{const a=i({...e},n);w&&i.id&&a===null&&m.log('Event processor "'.concat(i.id,'" dropped event')),rn(a)?a.then(c=>tr(t,c,n,r+1).then(s)).then(null,o):tr(t,a,n,r+1).then(s).then(null,o)}})}function Ki(t){const e=Yt(),n={sid:U(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>rh(n)};return t&&pe(n,t),n}function pe(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Yt(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:U()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did="".concat(e.did)),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Ji(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),pe(t,n)}function rh(t){return at({sid:"".concat(t.sid),init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?"".concat(t.did):void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}const sh=0,Xi=1;function ws(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:o,status:i,tags:a,origin:c}=j(t);return at({data:r,op:s,parent_span_id:o,span_id:e,status:i,tags:a,trace_id:n,origin:c})}function er(t){const{traceId:e,spanId:n}=t.spanContext(),r=Es(t);return vs(e,n,r)}function nr(t){return typeof t=="number"?Qi(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Qi(t.getTime()):Yt()}function Qi(t){return t>9999999999?t/1e3:t}function j(t){return oh(t)?t.getSpanJSON():typeof t.toJSON=="function"?t.toJSON():{}}function oh(t){return typeof t.getSpanJSON=="function"}function Es(t){const{traceFlags:e}=t.spanContext();return!!(e&Xi)}function Ts(t,e,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||U(),timestamp:e.timestamp||an()},u=n.integrations||t.integrations.map(y=>y.name);ih(c,t),uh(c,u),e.type===void 0&&ah(c,t.stackParser);const l=dh(r,n.captureContext);n.mechanism&&le(c,n.mechanism);const d=s&&s.getEventProcessors?s.getEventProcessors():[],p=Lh().getScopeData();if(o){const y=o.getScopeData();ra(p,y)}if(l){const y=l.getScopeData();ra(p,y)}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),na(c,p);const f=[...d,...ks(),...p.eventProcessors];return tr(f,c,n).then(y=>(y&&ch(y),typeof i=="number"&&i>0?lh(y,i,a):y))}function ih(t,e){const{environment:n,release:r,dist:s,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:cn),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&s!==void 0&&(t.dist=s),t.message&&(t.message=Ce(t.message,o));const i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=Ce(i.value,o));const a=t.request;a&&a.url&&(a.url=Ce(a.url,o))}const Zi=new WeakMap;function ah(t,e){const n=M._sentryDebugIds;if(!n)return;let r;const s=Zi.get(e);s?r=s:(r=new Map,Zi.set(e,r));const o=Object.keys(n).reduce((i,a)=>{let c;const u=r.get(a);u?c=u:(c=e(a),r.set(a,c));for(let l=c.length-1;l>=0;l--){const d=c[l];if(d.filename){i[d.filename]=n[a];break}}return i},{});try{t.exception.values.forEach(i=>{i.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch(i){}}function ch(t){const e={};try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?e[s.abs_path]=s.debug_id:s.filename&&(e[s.filename]=s.debug_id),delete s.debug_id)})})}catch(r){}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:e[r]})})}function uh(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function lh(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(s=>({...s,...s.data&&{data:wt(s.data,e,n)}}))},...t.user&&{user:wt(t.user,e,n)},...t.contexts&&{contexts:wt(t.contexts,e,n)},...t.extra&&{extra:wt(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=wt(t.contexts.trace.data,e,
1n))),t.spans&&(r.spans=t.spans.map(s=>{const o=j(s).data;return o&&(s.data=wt(o,e,n)),s})),r}function dh(t,e){if(!e)return t;const n=t?t.clone():new Lt;return n.update(e),n}function ph(t){if(t)return hh(t)?{captureContext:t}:fh(t)?{captureContext:t}:t}function hh(t){return t instanceof Lt||typeof t=="function"}const mh=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function fh(t){return Object.keys(t).some(e=>mh.includes(e))}function he(t,e){return H().captureException(t,ph(e))}function rr(t,e){const n=typeof e=="string"?e:void 0,r=typeof e!="string"?{captureContext:e}:void 0;return H().captureMessage(t,n,r)}function un(t,e){return H().captureEvent(t,e)}function gh(t){H().configureScope(t)}function jt(t,e){H().addBreadcrumb(t,e)}function ta(t,e){H().setContext(t,e)}function yh(t){H().setExtras(t)}function _h(t,e){H().setExtra(t,e)}function vh(t){H().setTags(t)}function bh(t,e){H().setTag(t,e)}function Sh(t){H().setUser(t)}function Kt(...t){const e=H();if(t.length===2){const[n,r]=t;return n?e.withScope(()=>(e.getStackTop().scope=n,r(n))):e.withScope(r)}return e.withScope(t[0])}function kh(t){return ir(()=>t(It()))}function wh(t,e){return Kt(n=>(n.setSpan(t),e(n)))}function Eh(t,e){return H().startTransaction({...t},e)}async function Th(t){const e=R();return e?e.flush(t):(w&&m.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function xh(t){const e=R();return e?e.close(t):(w&&m.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function Ch(){return H().lastEventId()}function R(){return H().getClient()}function Ih(){return!!R()}function nt(){return H().getScope()}function xs(t){const e=R(),n=It(),r=nt(),{release:s,environment:o=cn}=e&&e.getOptions()||{},{userAgent:i}=M.navigator||{},a=Ki({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...t}),c=n.getSession();return c&&c.status==="ok"&&pe(c,{status:"exited"}),Cs(),n.setSession(a),r.setSession(a),a}function Cs(){const t=It(),e=nt(),n=e.getSession()||t.getSession();n&&Ji(n),ea(),t.setSession(),e.setSession()}function ea(){const t=It(),e=nt(),n=R(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Is(t=!1){if(t){Cs();return}ea()}function sr(t){return t.transaction}function or(t,e,n){const r=e.getOptions(),{publicKey:s}=e.getDsn()||{},{segment:o}=n&&n.getUser()||{},i=at({environment:r.environment||cn,release:r.release,user_segment:o,public_key:s,trace_id:t});return e.emit&&e.emit("createDsc",i),i}function Ne(t){const e=R();if(!e)return{};const n=or(j(t).trace_id||"",e,nt()),r=sr(t);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:o,source:i}=r.metadata;o!=null&&(n.sample_rate="".concat(o));const a=j(r);return i&&i!=="url"&&(n.transaction=a.description),n.sampled=String(Es(r)),e.emit&&e.emit("createDsc",n),n}function na(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=e;Rh(t,e),r&&Ah(t,r),Dh(t,n),Mh(t,s),Oh(t,o)}function ra(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:h,span:f}=e;ln(t,"extra",n),ln(t,"tags",r),ln(t,"user",s),ln(t,"contexts",o),ln(t,"sdkProcessingMetadata",a),i&&(t.level=i),h&&(t.transactionName=h),f&&(t.span=f),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...p}}function ln(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function Rh(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e,c=at(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=at(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const l=at(s);l&&Object.keys(l).length&&(t.user={...l,...t.user});const d=at(o);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts}),i&&(t.level=i),a&&(t.transaction=a)}function Mh(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function Oh(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Ah(t,e){t.contexts={trace:ws(e),...t.contexts};const n=sr(e);
1if(n){t.sdkProcessingMetadata={dynamicSamplingContext:Ne(e),...t.sdkProcessingMetadata};const r=j(n).description;r&&(t.tags={transaction:r,...t.tags})}}function Dh(t,e){t.fingerprint=t.fingerprint?us(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}const Nh=100;let Rs;class Lt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=sa()}static clone(e){return e?e.clone():new Lt}clone(){const e=new Lt;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&pe(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e;if(n instanceof Lt){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(ie(n)){const r=e;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=sa(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:Nh;if(r<=0)return this;const s={timestamp:an(),...e},o=this._breadcrumbs;return o.push(s),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}
1getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:n,_contexts:r,_tags:s,_extra:o,_user:i,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:p,_span:h}=this;return{breadcrumbs:e,attachments:n,contexts:r,tags:s,extra:o,user:i,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:d,transactionName:p,span:h}}applyToEvent(e,n={},r=[]){na(e,this.getScopeData());const s=[...r,...ks(),...this._eventProcessors];return tr(s,e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n&&n.event_id?n.event_id:U();if(!this._client)return m.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){const s=r&&r.event_id?r.event_id:U();if(!this._client)return m.warn("No client configured on scope - will not capture message!"),s;const o=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:s},this),s}captureEvent(e,n){const r=n&&n.event_id?n.event_id:U();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(m.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function Lh(){return Rs||(Rs=new Lt),Rs}function sa(){return{traceId:U(),spanId:U().substring(16)}}const Le="7.118.0",oa=parseFloat(Le),$h=100;class Ms{constructor(e,n,r,s=oa){this._version=s;let o;n?o=n:(o=new Lt,o.setClient(e));let i;r?i=r:(i=new Lt,i.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=i}isOlderThan(e){return this._version<e}bindClient(e){const n=this.getStackTop();n.client=e,n.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){const n=this.pushScope();let r;try{r=e(n)}catch(s){throw this.popScope(),s}return rn(r)?r.then(s=>(this.popScope(),s),s=>{throw this.popScope(),s}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:U(),s=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:s,...n,event_id:r}),r}captureMessage(e,n,r){const s=this._lastEventId=r&&r.event_id?r.event_id:U(),o=new Error(e);return this.getScope().captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:s}),s}captureEvent(e,n){const r=n&&n.event_id?n.event_id:U();return e.type||(this._lastEventId=r),this.getScope().captureEvent(e,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){const{scope:r,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=$h}=s.getOptions&&s.getOptions()||{};if(i<=0)return;const a={timestamp:an(),...e},c=o?St(()=>o(a,n)):a;c!==null&&(s.emit&&s.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,i))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,n){this.getScope().setTag(e,n),this.getIsolationScope().setTag(e,n)}setExtra(e,n){this.getScope().setExtra(e,n),this.getIsolationScope().setExtra(e,n)}
1setContext(e,n){this.getScope().setContext(e,n),this.getIsolationScope().setContext(e,n)}configureScope(e){const{scope:n,client:r}=this.getStackTop();r&&e(n)}run(e){const n=Os(this);try{e(this)}finally{Os(n)}}getIntegration(e){const n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch(r){return w&&m.warn("Cannot retrieve integration ".concat(e.id," from the current Hub")),null}}startTransaction(e,n){const r=this._callExtensionMethod("startTransaction",e,n);return w&&!r&&(this.getClient()?m.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):m.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,n=e.getSession();n&&Ji(n),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:n,client:r}=this.getStackTop(),{release:s,environment:o=cn}=r&&r.getOptions()||{},{userAgent:i}=M.navigator||{},a=Ki({release:s,environment:o,user:n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&pe(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),n=e&&e.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:n}=this.getStackTop(),r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(e,...n){const r=$e().__SENTRY__;if(r&&r.extensions&&typeof r.extensions[e]=="function")return r.extensions[e].apply(this,n);w&&m.warn("Extension method ".concat(e," couldn't be found, doing nothing."))}}function $e(){return M.__SENTRY__=M.__SENTRY__||{extensions:{},hub:void 0},M}function Os(t){const e=$e(),n=ar(e);return ia(e,t),n}
1function H(){const t=$e();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return Ph(t)}function It(){return H().getIsolationScope()}function Ph(t=$e()){return(!Fh(t)||ar(t).isOlderThan(oa))&&ia(t,new Ms),ar(t)}function ir(t,e={}){const n=$e();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(t,e):t()}function Fh(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function ar(t){return oi("hub",()=>new Ms,t)}function ia(t,e){if(!t)return!1;const n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}function Rt(t){return(t||H()).getScope().getTransaction()}const Bh=_s;let aa=!1;function Uh(){aa||(aa=!0,Mi(As),Oi(As))}function As(){const t=Rt();if(t){const e="internal_error";w&&m.log("[Tracing] Transaction: ".concat(e," -> Global error occured")),t.setStatus(e)}}As.tag="sentry_tracingErrorCallback";var ca;(function(t){const e="ok";t.Ok=e;const n="deadline_exceeded";t.DeadlineExceeded=n;const r="unauthenticated";t.Unauthenticated=r;const s="permission_denied";t.PermissionDenied=s;const o="not_found";t.NotFound=o;const i="resource_exhausted";t.ResourceExhausted=i;const a="invalid_argument";t.InvalidArgument=a;const c="unimplemented";t.Unimplemented=c;const u="unavailable";t.Unavailable=u;const l="internal_error";t.InternalError=l;const d="unknown_error";t.UnknownError=d;const p="cancelled";t.Cancelled=p;const h="already_exists";t.AlreadyExists=h;const f="failed_precondition";t.FailedPrecondition=f;const y="aborted";t.Aborted=y;const v="out_of_range";t.OutOfRange=v;const g="data_loss";t.DataLoss=g})(ca||(ca={}));function Ds(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}const jh=Ds;function cr(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);const n=Ds(e);n!=="unknown_error"&&t.setStatus(n)}function Ns(t,e,n=()=>{}){let r;try{r=t()}catch(s){throw e(s),n(),s}return Hh(r,e,n)}function Hh(t,e,n){return rn(t)?t.then(r=>(n(),r),r=>{throw e(r),n(),r}):(n(),t)}function me(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=R(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function zh(t,e,n=()=>{},r=()=>{}){const s=H(),o=nt(),i=o.getSpan(),a=lr(t),c=ur(s,{parentSpan:i,spanContext:a,forceTransaction:!1,scope:o});return o.setSpan(c),Ns(()=>e(c),u=>{c&&c.setStatus("internal_error"),n(u,c)},()=>{c&&c.end(),o.setSpan(i),r()})}function qh(t,e){const n=lr(t);return ir(()=>Kt(t.scope,r=>{const s=H(),o=r.getSpan(),i=t.onlyIfParent&&!o?void 0:ur(s,{parentSpan:o,spanContext:n,forceTransaction:t.forceTransaction,scope:r});return Ns(()=>e(i),()=>{if(i){const{status:a}=j(i);(!a||a==="ok")&&i.setStatus("internal_error")}},()=>i&&i.end())}))}function Wh(t,e){const n=lr(t);return ir(()=>Kt(t.scope,r=>{const s=H(),o=r.getSpan(),i=t.onlyIfParent&&!o?void 0:ur(s,{parentSpan:o,spanContext:n,forceTransaction:t.forceTransaction,scope:r});function a(){i&&i.end()}return Ns(()=>e(i,a),()=>{if(i&&i.isRecording()){const{status:c}=j(i);(!c||c==="ok")&&i.setStatus("internal_error")}})}))}function dn(t){if(!me())return;const e=lr(t),n=H(),r=t.scope?t.scope.getSpan():fe();if(t.onlyIfParent&&!r)return;const s=(t.scope||nt()).clone();return ur(n,{parentSpan:r,spanContext:e,forceTransaction:t.forceTransaction,scope:s})}function fe(){return nt().getSpan()}const Vh=({sentryTrace:t,baggage:e},n)=>{const r=nt(),{traceparentData:s,dynamicSamplingContext:o,propagationContext:i}=qp(t,e);r.setPropagationContext(i),w&&s&&m.log("[Tracing] Continuing trace ".concat(s.traceId,"."));const a={...s,metadata:at({dynamicSamplingContext:o})};return n?ir(()=>n(a)):a};function ur(t,{parentSpan:e,spanContext:n,forceTransaction:r,scope:s}){if(!me())return;const o=It();let i;if(e&&!r)i=e.startChild(n);else if(e){const a=Ne(e),{traceId:c,spanId:u}=e.spanContext(),l=Es(e);i=t.startTransaction({traceId:c,parentSpanId:u,parentSampled:l,...n,metadata:{dynamicSamplingContext:a,...n.metadata}})}else{const{traceId:a,dsc:c,parentSpanId:u,sampled:l}={...o.getPropagationContext(),...s.getPropagationContext()};i=t.startTransaction({traceId:a,parentSpanId:u,parentSampled:l,...n,metadata:{dynamicSamplingContext:c,...n.metadata}})}return s.setSpan(i),Gh(i,s,o),i}function lr(t){if(t.startTime){const e={...t};return e.startTimestamp=nr(t.startTime),delete e.startTime,e}return t}const ua="_sentryScope",la="_sentryIsolationScope";function Gh(t,e,n){t&&(Vt(t,la,n),Vt(t,ua,e))}function Yh(t){return{scope:t[ua],isolationScope:t[la]}}let pn;function da(t){return pn?pn.get(t):void 0}function pa(t){const e=da(t);if(!e)return;const n={};for(const[,[r,s]]of e)n[r]||(n[r]=[]),n[r].push(at(s));return n}function Kh(t,e,n,r,s,o){const i=fe();if(i){const a=da(i)||new Map,c="".concat(t,":").concat(e,"@").concat(r),u=a.get(o);if(u){const[,l]=u;
1a.set(o,[c,{min:Math.min(l.min,n),max:Math.max(l.max,n),count:l.count+=1,sum:l.sum+=n,tags:l.tags}])}else a.set(o,[c,{min:n,max:n,count:1,sum:n,tags:s}]);pn||(pn=new WeakMap),pn.set(i,a)}}const ut="sentry.source",ge="sentry.sample_rate",hn="sentry.op",Mt="sentry.origin",Jh="profile_id";class ha{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Gr{constructor(e={}){this._traceId=e.traceId||U(),this._spanId=e.spanId||U().substring(16),this._startTime=e.startTimestamp||Yt(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[Mt]:e.origin||"manual",[hn]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),e.exclusiveTime!==void 0&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[hn]}set op(e){this.setAttribute(hn,e)}get origin(){return this._attributes[Mt]}set origin(e){this.setAttribute(Mt,e)}spanContext(){const{_spanId:e,_traceId:n,_sampled:r}=this;return{spanId:e,traceId:n,traceFlags:r?Xi:sh}}startChild(e){const n=new Gr({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=sr(this);if(n.transaction=r,w&&r){const s=e&&e.op||"< unknown op >",o=j(n).description||"< unknown name >",i=r.spanContext().spanId,a="[Tracing] Starting '".concat(s,"' span on transaction '").concat(o,"' (").concat(i,").");m.log(a),this._logMessage=a}return n}setTag(e,n){return this.tags={...this.tags,[e]:n},this}setData(e,n){return this.data={...this.data,[e]:n},this}setAttribute(e,n){n===void 0?delete this._attributes[e]:this._attributes[e]=n}setAttributes(e){Object.keys(e).forEach(n=>this.setAttribute(n,e[n]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return cr(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return this._status==="ok"}finish(e){return this.end(e)}end(e){if(this._endTime)return;const n=sr(this);if(w&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&m.log(r.replace("Starting","Finishing"))}this._endTime=nr(e)}toTraceparent(){return er(this)}toContext(){return at({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return ws(this)}getSpanJSON(){return at({data:this._getData(),description:this._name,op:this._attributes[hn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Mt],_metrics_summary:pa(this),profile_id:this._attributes[Jh],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
1toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:n}=this,r=Object.keys(e).length>0,s=Object.keys(n).length>0;if(!(!r&&!s))return r&&s?{...e,...n}:r?e:n}}class ma extends Gr{constructor(e,n){super(e),this._contexts={},this._hub=n||H(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[ut]&&{source:this._attributes[ut]},...this._attributes[ge]&&{sampleRate:this._attributes[ge]}}}set metadata(e){this._metadata=e}setName(e,n="custom"){this._name=e,this.setAttribute(ut,n)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new ha(e)),this.spanRecorder.add(this)}setContext(e,n){n===null?delete this._contexts[e]:this._contexts[e]=n}setMeasurement(e,n,r=""){this._measurements[e]={value:n,unit:r}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const n=nr(e),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const e=super.toContext();return at({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return Ne(this)}setHub(e){this._hub=e}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(e){if(this._endTime!==void 0)return;this._name||(w&&m.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){w&&m.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(u=>u!==this&&j(u).timestamp):[];if(this._trimEnd&&r.length>0){const u=r.map(l=>j(l).timestamp).filter(Boolean);this._endTime=u.reduce((l,d)=>l>d?l:d)}const{scope:s,isolationScope:o}=Yh(this),{metadata:i}=this,{source:a}=i,c={contexts:{...this._contexts,trace:ws(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,capturedSpanScope:s,capturedSpanIsolationScope:o,...at({dynamicSamplingContext:Ne(this)})},_metrics_summary:pa(this),...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(w&&m.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),w&&m.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this._name,".")),c}}const mn={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Xh="finishReason",Pe=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Qh extends ha{constructor(e,n,r,s){super(s),this._pushActivity=e,this._popActivity=n,this.transactionSpanId=r}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const n=e.end;e.end=(...r)=>(this._popActivity(e.spanContext().spanId),n.apply(e,r)),j(e).timestamp===void 0&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Zh extends ma{constructor(e,n,r=mn.idleTimeout,s=mn.finalTimeout,o=mn.heartbeatInterval,i=!1,a=!1){super(e,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=s,this._heartbeatInterval=o,this._onScope=i,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Pe[4],this._autoFinishAllowed=!a,i&&(w&&m.log("Setting idle transaction on scope. Span ID: ".concat(this.spanContext().spanId)),n.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Pe[3],this.end())},this._finalTimeout)}end(e){const n=nr(e);
1if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(Xh,this._finishReason),this.spanRecorder){w&&m.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;j(r).timestamp||(r.setStatus("cancelled"),r.end(n),w&&m.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:s,timestamp:o}=j(r),i=s&&s<n,a=(this._finalTimeout+this._idleTimeout)/1e3,c=o&&s&&o-s<a;if(w){const u=JSON.stringify(r,void 0,2);i?c||m.log("[Tracing] discarding Span since it finished after Transaction final timeout",u):m.log("[Tracing] discarding Span since it happened after Transaction was finished",u)}return i&&c}),w&&m.log("[Tracing] flushing IdleTransaction")}else w&&m.log("[Tracing] No active IdleTransaction");if(this._onScope){const r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const n=s=>{this._finished||this._pushActivity(s)},r=s=>{this._finished||this._popActivity(s)};this.spanRecorder=new Qh(n,r,this.spanContext().spanId,e),w&&m.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Pe[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(w&&m.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Pe[1],this.end(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),w&&m.log("[Tracing] pushActivity: ".concat(e)),this.activities[e]=!0,w&&m.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(w&&m.log("[Tracing] popActivity ".concat(e)),delete this.activities[e],w&&m.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=Yt();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Pe[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(w&&m.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Pe[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){w&&m.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function fa(t,e,n){if(!me(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setAttribute(ge,Number(t.sampled)),t;let r;return typeof e.tracesSampler=="function"?(r=e.tracesSampler(n),t.setAttribute(ge,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof e.tracesSampleRate<"u"?(r=e.tracesSampleRate,t.setAttribute(ge,Number(r))):(r=1,t.setAttribute(ge,r)),ga(r)?r?(t.sampled=Math.random()<r,t.sampled?(w&&m.log("[Tracing] starting ".concat(t.op," transaction - ").concat(j(t).description)),t):(w&&m.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(r),")")),t)):(w&&m.log("[Tracing] Discarding transaction because ".concat(typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(w&&m.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function ga(t){return ti(t)||!(typeof t=="number"||typeof t=="boolean")?(w&&m.warn("[Tracing] Given sample rate is invali
1d. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(t)," of type ").concat(JSON.stringify(typeof t),".")),!1):t<0||t>1?(w&&m.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(t,".")),!1):!0}function tm(){const t=this.getScope().getSpan();return t?{"sentry-trace":er(t)}:{}}function em(t,e){const n=this.getClient(),r=n&&n.getOptions()||{},s=r.instrumenter||"sentry",o=t.instrumenter||"sentry";s!==o&&(w&&m.error("A transaction was started with instrumenter=`".concat(o,"`, but the SDK is configured with the `").concat(s,"` instrumenter.\nThe transaction will not be sampled. Please use the ").concat(s," instrumentation to start transactions.")),t.sampled=!1);let i=new ma(t,this);return i=fa(i,r,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e}),i.isRecording()&&i.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",i),i}function dr(t,e,n,r,s,o,i,a=!1){const c=t.getClient(),u=c&&c.getOptions()||{};let l=new Zh(e,t,n,r,i,s,a);return l=fa(l,u,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...o}),l.isRecording()&&l.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",l),l}
1function Ls(){const t=$e();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=em),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=tm),Uh())}function ya(t,e,n){const r=Rt();r&&r.setMeasurement(t,e,n)}function nm(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function rm(t,e,n,r){const s=Ss(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:ae(e)}},i="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Ut(o,[i])}function _a(t,e,n,r){const s=Ss(n),o=t.type&&t.type!=="replay_event"?t.type:"event";nm(t,n&&n.sdk);const i=qi(t,s,r,e);return delete t.sdkProcessingMetadata,Ut(i,[[{type:o},t]])}const sm="7";function va(t){const e=t.protocol?"".concat(t.protocol,":"):"",n=t.port?":".concat(t.port):"";return"".concat(e,"//").concat(t.host).concat(n).concat(t.path?"/".concat(t.path):"","/api/")}function om(t){return"".concat(va(t)).concat(t.projectId,"/envelope/")}function im(t,e){return tp({sentry_key:t.publicKey,sentry_version:sm,...e&&{sentry_client:"".concat(e.name,"/").concat(e.version)}})}function ba(t,e={}){const n=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return n||"".concat(om(t),"?").concat(im(t,r))}function am(t,e){const n=di(t);if(!n)return"";const r="".concat(va(n),"embed/error-page/");let s="dsn=".concat(ae(n));for(const o in e)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const i=e.user;if(!i)continue;i.name&&(s+="&name=".concat(encodeURIComponent(i.name))),i.email&&(s+="&email=".concat(encodeURIComponent(i.email)))}else s+="&".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(e[o]));return"".concat(r,"?").concat(s)}const Sa=[];function cm(t){const e={};return t.forEach(n=>{const{name:r}=n,s=e[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.keys(e).map(n=>e[n])}function um(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=us(n(e)):r=e;const s=cm(r),o=pm(s,i=>i.name==="Debug");if(o!==-1){const[i]=s.splice(o,1);s.push(i)}return s}function lm(t,e){const n={};return e.forEach(r=>{r&&wa(t,r,n)}),n}function ka(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function wa(t,e,n){if(n[e.name]){w&&m.log("Integration skipped because it was already installed: ".concat(e.name));return}if(n[e.name]=e,Sa.indexOf(e.name)===-1&&(e.setupOnce(Yi,H),Sa.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),t.on&&typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(s,o)=>r(s,o,t))}if(t.addEventProcessor&&typeof e.processEvent=="function"){const r=e.processEvent.bind(e),s=Object.assign((o,i)=>r(o,i,t),{id:e.name});t.addEventProcessor(s)}w&&m.log("Integration installed: ".concat(e.name))}function dm(t){const e=R();if(!e||!e.addIntegration){w&&m.warn('Cannot add integration "'.concat(t.name,'" because no SDK Client is available.'));return}e.addIntegration(t)}function pm(t,e){for(let n=0;n<t.length;n++)if(e(t[n])===!0)return n;return-1}function Z(t,e){return Object.assign(function(...n){return e(...n)},{id:t})}function hm(t,e,n,r){const s=Object.entries(at(r)).sort((o,i)=>o[0].localeCompare(i[0]));return"".concat(t).concat(e).concat(n).concat(s)}function mm(t){let e=0;for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e=(e<<5)-e+r,e&=e}return e>>>0}function fm(t){let e="";for(const n of t){const r=Object.entries(n.tags),s=r.length>0?"|#".concat(r.map(([o,i])=>"".concat(o,":").concat(i)).join(",")):"";e+="".concat(n.name,"@").concat(n.unit,":").concat(n.metric,"|").concat(n.metricType).concat(s,"|T").concat(n.timestamp,"\n")}return e}function gm(t){return t.replace(/[^\w]+/gi,"_")}function ym(t){return t.replace(/[^\w\-.]+/gi,"_")}function _m(t){return t.replace(/[^\w\-./]+/gi,"")}const vm=[["\n","\\n"],["\r","\\r"],["	","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function bm(t){for(const[e,n]of vm)if(t===e)return n;return t}function Sm(t){return[...t].reduce((e,n)=>e+bm(n),"")}function km(t){const e={};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=_m(n);e[r]=Sm(String(t[n]))}return e}function wm(t,e,n,r){const s={sent_at:new Date().toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(s.dsn=ae(e));const o=Em(t);return Ut(s,[o])}function Em(t){const e=fm(t);return[{type:"statsd",length:e.length},e]}const Ea="Not capturing exception because it's already been captured.";class Tm{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=di(e.dsn):w&&m.warn("No DSN provided, client will not send events."),this._dsn){const n=ba(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){if(wi(e)){w&&m.log(Ea);return}let s=n&&n.event_id;return this._process(this.eventFromException(e,n).then(o=>this._captureEvent(o,n,r)).then(o=>{s=o})),s}captureMessage(e,n,r,s){let o=r&&r.event_id;const i=ts(e)?e:String(e),a=es(e)?this.eventFromMessage(i,n,r):this.eventFromException(e,r);return this._process(a.then(c=>this._captureEvent(c,r,s)).then(c=>{o=c})),o}captureEvent(e,n,r){if(n&&n.originalException&&wi(n.originalException)){w&&m.log(Ea);return}let s=n&&n.event_id;const o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,n,o||r).then(i=>{s=i}
1)),s}captureSession(e){typeof e.release!="string"?w&&m.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),pe(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(r=>n.flush(e).then(s=>r&&s))):Ae(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(n){return w&&m.warn("Cannot retrieve integration ".concat(e.id," from the current Client")),null}}addIntegration(e){const n=this._integrations[e.name];wa(this,e,this._integrations),n||ka(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=_a(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Wp(r,Kp(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const s=this._sendEnvelope(r);s&&s.then(o=>
1this.emit("afterSendEvent",e,o),null)}sendSession(e){const n=rm(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){const s="".concat(e,":").concat(n);w&&m.log('Adding outcome: "'.concat(s,'"')),this._outcomes[s]=this._outcomes[s]+1||1}}captureAggregateMetrics(e){w&&m.log("Flushing aggregated metrics, number of metrics: ".concat(e.length));const n=wm(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(e,n){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(n)}emit(e,...n){this._hooks[e]&&this._hooks[e].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=lm(this,e),ka(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,n){let r=!1,s=!1;const o=n.exception&&n.exception.values;if(o){s=!0;for(const a of o){const c=a.mechanism;if(c&&c.handled===!1){r=!0;break}}}const i=e.status==="ok";(i&&e.errors===0||i&&r)&&(pe(e,{...r&&{status:"crashed"},errors:e.errors||Number(s||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new yt(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,e&&r>=e&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,s=It()){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",e,n),Ts(o,e,n,r,this,s).then(a=>{if(a===null)return a;const c={...s.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&c){const{traceId:u,spanId:l,parentSpanId:d,dsc:p}=c;a.contexts={trace:{trace_id:u,span_id:l,parent_span_id:d},...a.contexts};const h=p||or(u,this,r);a.sdkProcessingMetadata={dynamicSamplingContext:h,...a.sdkProcessingMetadata}}return a})}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(s=>s.event_id,s=>{if(w){const o=s;o.logLevel==="log"?m.log(o.message):m.warn(o)}})}_processEvent(e,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=xa(e),a=Ta(e),c=e.type||"error",u="before send for type `".concat(c,"`");if(a&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),gs(new Ct("Discarding event because it's not included in the random sample (sampling rate = ".concat(o,")"),"log"));const l=c==="replay_event"?"replay":c,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,n,r,d).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",l,e),new Ct("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return p;const h=Cm(s,p,n);return xm(h,u)}).then(p=>{if(p===null)throw this.recordDroppedEvent("before_send",l,e),new Ct("".concat(u," returned `null`, will not send event."),"log");const h=r&&r.getSession();!i&&h&&this._updateSessionFromEvent(h,p);const f=p.transaction_info;if(i&&f&&p.transaction!==e.transaction){const y="custom";p.transaction_info={...f,source:y}}return this.sendEvent(p,n),p}).then(null,p=>{throw p instanceof Ct?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new Ct("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(p)))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,n=>{w&&m.error("Error while sending event:",n)});w&&m.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(n=>{const[r,s]=n.split(":");return{reason:r,category:s,quantity:e[n]}})}}function xm(t,e){const n="".concat(e," must return `null` or a valid event.");if(rn(t))return t.then(r=>{if(!ie(r)&&r!==null)throw new Ct(n);return r},r=>{throw new Ct("".concat(e," rejected with ").concat(r))});if(!ie(t)&&t!==null)throw new Ct(n);return t}function Cm(t,e,n){const{beforeSend:r,beforeSendTransaction:s}=t;return Ta(e)&&r?r(e,n):xa(e)&&s?s(e,n):e}function Ta(t){return t.type===void 0}function xa(t){return t.type==="transaction"}function Ca(t){const e=R();!e||!e.addEventProcessor||e.addEventProcessor(t)}const Ia="c",Ra="g",$s="s",Ma="d",Im=5e3;class Rm{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return"".concat(this._value)}}class Mm{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return"".concat(this._last,":").concat(this._min,":").concat(this._max,":").concat(this._sum,":").concat(this._count)}
1}class Om{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}}class Am{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>typeof e=="string"?mm(e):e).join(":")}}const Dm={[Ia]:Rm,[Ra]:Mm,[Ma]:Om,[$s]:Am};function Nm(t,e){e.debug===!0&&(w?m.enable():St(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),nt().update(e.initialScope);const n=new t(e);Oa(n),Lm(n)}function Oa(t){const e=H().getStackTop();e.client=t,e.scope.setClient(t)}function Lm(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}const $m=30;function Ps(t,e,n=$p(t.bufferSize||$m)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(De(i,(d,p)=>{const h=zi(p);if(Vi(r,h)){const f=Aa(d,p);t.recordDroppedEvent("ratelimit_backoff",h,f)}else a.push(d)}),a.length===0)return Ae();const c=Ut(i[0],a),u=d=>{De(c,(p,h)=>{const f=Aa(p,h);t.recordDroppedEvent(d,zi(h),f)})},l=()=>e({body:Hi(c,t.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&w&&m.warn("Sentry responded with status code ".concat(d.statusCode," to sent event.")),r=Gi(r,d),d),d=>{throw u("network_error"),d});return n.add(l).then(d=>d,d=>{if(d instanceof Ct)return w&&m.error("Skipped sending event because buffer is full."),u("queue_overflow"),Ae();throw d})}return o.__sentry__baseTransport__=!0,{send:o,flush:s}}function Aa(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}const Pm=100,Da=5e3,Fm=36e5;function Fs(t,e){w&&m.info("[Offline]: ".concat(t),e)}function Bm(t){return e=>{const n=t(e),r=e.createStore?e.createStore(e):void 0;let s=Da,o;function i(l,d,p){return Vp(l,["replay_event","replay_recording","client_report"])?!1:e.shouldStore?e.shouldStore(l,d,p):!0}function a(l){r&&(o&&clearTimeout(o),o=setTimeout(async()=>{o=void 0;const d=await r.pop();d&&(Fs("Attempting to send previously queued event"),u(d).catch(p=>{Fs("Failed to retry sending",p)}))},l),typeof o!="number"&&o.unref&&o.unref())}function c(){o||(a(s),s=Math.min(s*2,Fm))}async function u(l){try{const d=await n.send(l);let p=Pm;if(d){if(d.headers&&d.headers["retry-after"])p=Wi(d.headers["retry-after"]);else if((d.statusCode||0)>=400)return d}return a(p),s=Da,d}catch(d){if(r&&await i(l,d,s))return await r.insert(l),c(),Fs("Error sending. Event queued",d),{};throw d}}return e.flushAtStartup&&c(),{send:u,flush:l=>n.flush(l)}}}function Na(t,e){let n;return De(t,(r,s)=>(e.includes(s)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function Um(t,e){return n=>{const r=t(n);return{...r,send:async s=>{const o=Na(s,["event","transaction","profile","replay_event"]);return o&&(o.release=e),r.send(s)}}}}function jm(t,e){return Ut(e?{...t[0],dsn:e}:t[0],t[1])}function Hm(t,e){return n=>{const r=t(n),s=new Map;function o(c,u){const l=u?"".concat(c,":").concat(u):c;let d=s.get(l);if(!d){const p=ui(c);if(!p)return;const h=ba(p,n.tunnel);d=u?Um(t,u)({...n,url:h}):t({...n,url:h}),s.set(l,d)}return[c,d]}async function i(c){function u(d){const p=d&&d.length?d:["event"];return Na(c,p)}const l=e({envelope:c,getEvent:u}).map(d=>typeof d=="string"?o(d,void 0):o(d.dsn,d.release)).filter(d=>!!d);return l.length===0&&l.push(["",r]),(await Promise.all(l.map(([d,p])=>p.send(jm(c,d)))))[0]}async function a(c){const u=[await r.flush(c)];for(const[,l]of s)u.push(await l.flush(c));return u.every(l=>l)}return{send:i,flush:a}}}function zm(t,e){const n={sent_at:new Date().toISOString()};e&&(n.dsn=ae(e));const r=t.map(qm);return Ut(n,r)}function qm(t){return[{type:"span"},t]}function La(t,e){const n=e&&Gm(e)?e.getClient():e,r=n&&n.getDsn(),s=n&&n.getOptions().tunnel;return Vm(t,r)||Wm(t,s)}function Wm(t,e){return e?$a(t)===$a(e):!1}function Vm(t,e){return e?t.includes(e.host):!1}function $a(t){return t[t.length-1]==="/"?t.slice(0,-1):t}function Gm(t){return t.getClient!==void 0}function Ym(t,...e){const n=new String(String.raw(t,...e));
1return n.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=e,n}function Km(t,e,n=[e],r="npm"){const s=t._metadata||{};s.sdk||(s.sdk={name:"sentry.javascript.".concat(e),packages:n.map(o=>({name:"".concat(r,":@sentry/").concat(o),version:Le})),version:Le}),t._metadata=s}const Pa=new Map,Fa=new Set;function Jm(t){if(M._sentryModuleMetadata)for(const e of Object.keys(M._sentryModuleMetadata)){const n=M._sentryModuleMetadata[e];if(Fa.has(e))continue;Fa.add(e);const r=t(e);for(const s of r.reverse())if(s.filename){Pa.set(s.filename,n);break}}}function Xm(t,e){return Jm(t),Pa.get(e)}function Qm(t,e){try{e.exception.values.forEach(n=>{if(n.stacktrace)for(const r of n.stacktrace.frames||[]){if(!r.filename)continue;const s=Xm(t,r.filename);s&&(r.module_metadata=s)}})}catch(n){}}function Zm(t){try{t.exception.values.forEach(e=>{if(e.stacktrace)for(const n of e.stacktrace.frames||[])delete n.module_metadata})}catch(e){}}const Ba="ModuleMetadata",tf=()=>({name:Ba,setupOnce(){},setup(t){typeof t.on=="function"&&t.on("beforeEnvelope",e=>{De(e,(n,r)=>{if(r==="event"){const s=Array.isArray(n)?n[1]:void 0;s&&(Zm(s),n[1]=s)}})})},processEvent(t,e,n){const r=n.getOptions().stackParser;return Qm(r,t),t}}),Ua=tf,ef=Z(Ba,Ua),nf=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],rf=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],ja="InboundFilters",sf=(t={})=>({name:ja,setupOnce(){},processEvent(e,n,r){const s=r.getOptions(),o=of(t,s);return af(e,o)?null:e}}),Bs=sf,Ha=Z(ja,Bs);function of(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:nf],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:rf],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function af(t,e){return e.ignoreInternal&&hf(t)?(w&&m.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat(Gt(t))),!0):cf(t,e.ignoreErrors)?(w&&m.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(Gt(t))),!0):uf(t,e.ignoreTransactions)?(w&&m.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(Gt(t))),!0):lf(t,e.denyUrls)?(w&&m.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(Gt(t),".\nUrl: ").concat(pr(t))),!0):df(t,e.allowUrls)?!1:(w&&m.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(Gt(t),".\nUrl: ").concat(pr(t))),!0)}function cf(t,e){return t.type||!e||!e.length?!1:pf(t).some(n=>Ie(n,e))}function uf(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const n=t.transaction;return n?Ie(n,e):!1}function lf(t,e){if(!e||!e.length)return!1;const n=pr(t);return n?Ie(n,e):!1}function df(t,e){if(!e||!e.length)return!0;const n=pr(t);return n?Ie(n,e):!0}function pf(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch(r){}return n&&n.value&&(e.push(n.value),n.type&&e.push("".concat(n.type,": ").concat(n.value))),w&&e.length===0&&m.error("Could not extract message for event ".concat(Gt(t))),e}function hf(t){try{return t.exception.values[0].type==="SentryError"}catch(e){}return!1}function mf(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function pr(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(n){}return e?mf(e):null}catch(e){return w&&m.error("Cannot extract url for event ".concat(Gt(t))),null}}let za;const qa="FunctionToString",Wa=new WeakMap,ff=()=>({name:qa,setupOnce(){za=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=os(this),n=Wa.has(R())&&e!==void 0?e:this;return za.apply(n,t)}}catch(t){}},setup(t){Wa.set(t,!0)}}),Us=ff,Va=Z(qa,Us),gf="cause",yf=5,Ga="LinkedErrors",_f=(t={})=>{const e=t.limit||yf,n=t.key||gf;return{name:Ga,setupOnce(){},preprocessEvent(r,s,o){const i=o.getOptions();ni(eh,i.stackParser,i.maxValueLength,n,e,r,s)}}},vf=_f,bf=Z(Ga,vf),Sf=Object.freeze(Object.defineProperty({__proto__:null,FunctionToString:Va,InboundFilters:Ha,LinkedErrors:bf},Symbol.toStringTag,{value:"Module"}));class kf{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),Im)}add(e,n,r,s="none",o={},i=Yt()){const a=Math.floor(i),c=ym(n),u=km(o),l=gm(s),d=hm(e,c,l,u);let p=this._buckets.get(d);const h=p&&e===$s?p.metric.weight:0;p?(p.metric.add(r),p.timestamp<a&&(p.timestamp=a)):(p={metric:new Dm[e](r),timestamp:a,metricType:e,name:c,unit:l,tags:u},this._buckets.set(d,p));const f=typeof r=="string"?p.metric.weight-h:r;Kh(e,c,f,l,o,d)}flush(){if(this._buckets.size!==0){if(this._client.captureAggregateMetrics){const e=Array.from(this._buckets).map(([,n])=>n);this._client.captureAggregateMetrics(e)}this._buckets.clear()}}close(){clearInterval(this._interval),this.flush()}}const Ya="MetricsAggregator",wf=()=>({name:Ya,setupOnce(){},setup(t){t.metricsAggregator=new kf(t)}}),Ka=wf,Ef=Z(Ya,Ka);function hr(t,e,n,r={}){const s=R(),o=nt();if(s){if(!s.metricsAggregator){w&&m.warn("No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs");return}const{unit:i,tags:a,timestamp:c}=r,{release:u,environment:l}=s.getOptions(),d=o.getTransaction(),p={};u&&(p.release=u),l&&(p.environment=l),d&&(p.transaction=j(d).description||""),w&&m.log("Adding value of ".concat(n," to ").concat(t," metric ").concat(e)),s.metricsAggregator.add(t,e,n,i,{...p,...a},c)}}function Tf(t,e=1,n){hr(Ia,t,e,n)}function xf(t,e,n){hr(Ma,t,e,n)}function Cf(t,e,n){hr($s,t,e,n)}function If(t,e,n){hr(Ra,t,e,n)}const Rf={increment:Tf,distribution:xf,set:Cf,gauge:If,MetricsAggregator:Ef,metricsAggregatorIntegration:Ka},Mf=Sf,N=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,T=M;function Ja(){T.document?T.document.addEventListener("visibilitychange",()=>{const t=Rt();if(T.document.hidden&&t){const e="cancelled",{op:n,status:r}=j(t);N&&m.log("[Tracing] Transaction: ".concat(e," -> since tab moved to the background, op: ").concat(n)),r||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}}):N&&m.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const fn=(t,e,n)=>{let r,s;return o=>{e.value>=0&&(o||n)&&(s=e.value-(r||0),(s||r===void 0)&&(r=e.value,e.delta=s,t(e)))}},Of=()=>"v3-".concat(Date.now(),"-").concat(Math.floor(Math.random()*(9e12-1))+1e12),Af=()=>{const t=T.performance.timing,e=T.performance.navigation.type,n={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(const r in t)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(t[r]-t.navigationStart,0));return n},mr=()=>T.__WEB_VITALS_POLYFILL__?T.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Af()):T.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],js=()=>{const t=mr();return t&&t.activationStart||0},gn=(t,e)=>{const n=mr();let r="navigate";return n&&(T.document&&T.document.prerendering||js()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:Of(),navigationType:r}},Fe=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(s=>{e(s.getEntries())});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(r){}},yn=(t,e)=>{const n=r=>{(r.type==="pagehide"||T.document.visibilityState==="hidden")&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};T.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},Df=(t,e={})=>{const n=gn("CLS",0);let r,s=0,o=[];const i=c=>
1{c.forEach(u=>{if(!u.hadRecentInput){const l=o[0],d=o[o.length-1];s&&o.length!==0&&u.startTime-d.startTime<1e3&&u.startTime-l.startTime<5e3?(s+=u.value,o.push(u)):(s=u.value,o=[u]),s>n.value&&(n.value=s,n.entries=o,r&&r())}})},a=Fe("layout-shift",i);if(a){r=fn(t,n,e.reportAllChanges);const c=()=>{i(a.takeRecords()),r(!0)};return yn(c),c}};let fr=-1;const Nf=()=>{T.document&&T.document.visibilityState&&(fr=T.document.visibilityState==="hidden"&&!T.document.prerendering?0:1/0)},Lf=()=>{yn(({timeStamp:t})=>{fr=t},!0)},Hs=()=>(fr<0&&(Nf(),Lf()),{get firstHiddenTime(){return fr}}),$f=t=>{const e=Hs(),n=gn("FID");let r;const s=a=>{a.startTime<e.firstHiddenTime&&(n.value=a.processingStart-a.startTime,n.entries.push(a),r(!0))},o=a=>{a.forEach(s)},i=Fe("first-input",o);r=fn(t,n),i&&yn(()=>{o(i.takeRecords()),i.disconnect()},!0)};let Xa=0,zs=1/0,gr=0;const Pf=t=>{t.forEach(e=>{e.interactionId&&(zs=Math.min(zs,e.interactionId),gr=Math.max(gr,e.interactionId),Xa=gr?(gr-zs)/7+1:0)})};let qs;const Ff=()=>qs?Xa:performance.interactionCount||0,Bf=()=>{"interactionCount"in performance||qs||(qs=Fe("event",Pf,{type:"event",buffered:!0,durationThreshold:0}))},Qa=()=>Ff(),Za=10,Ht=[],Ws={},tc=t=>{const e=Ht[Ht.length-1],n=Ws[t.interactionId];if(n||Ht.length<Za||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const r={id:t.interactionId,latency:t.duration,entries:[t]};Ws[r.id]=r,Ht.push(r)}Ht.sort((r,s)=>s.latency-r.latency),Ht.splice(Za).forEach(r=>{delete Ws[r.id]})}},Uf=()=>{const t=Math.min(Ht.length-1,Math.floor(Qa()/50));return Ht[t]},jf=(t,e)=>{e=e||{},Bf();const n=gn("INP");let r;const s=i=>{i.forEach(c=>{c.interactionId&&tc(c),c.entryType==="first-input"&&!Ht.some(u=>u.entries.some(l=>c.duration===l.duration&&c.startTime===l.startTime))&&tc(c)});const a=Uf();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())},o=Fe("event",s,{durationThreshold:e.durationThreshold||40});r=fn(t,n,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),yn(()=>{s(o.takeRecords()),n.value<0&&Qa()>0&&(n.value=0,n.entries=[]),r(!0)}))},ec={},Hf=t=>{const e=Hs(),n=gn("LCP");let r;const s=i=>{const a=i[i.length-1];if(a){const c=Math.max(a.startTime-js(),0);c<e.firstHiddenTime&&(n.value=c,n.entries=[a],r())}},o=Fe("largest-contentful-paint",s);if(o){r=fn(t,n);const i=()=>{ec[n.id]||(s(o.takeRecords()),o.disconnect(),ec[n.id]=!0,r(!0))};return["keydown","click"].forEach(a=>{T.document&&addEventListener(a,i,{once:!0,capture:!0})}),yn(i,!0),i}},Vs=t=>{T.document&&(T.document.prerendering?addEventListener("prerenderingchange",()=>Vs(t),!0):T.document.readyState!=="complete"?addEventListener("load",()=>Vs(t),!0):setTimeout(t,0))},zf=(t,e)=>{e=e||{};const n=gn("TTFB"),r=fn(t,n,e.reportAllChanges);Vs(()=>{const s=mr();if(s){if(n.value=Math.max(s.responseStart-js(),0),n.value<0||n.value>performance.now())return;n.entries=[s],r(!0)}})},_n={},yr={};let nc,rc,sc,oc,ic;function qf(t,e=!1){return vn("cls",t,Yf,nc,e)}function ac(t,e=!1){return vn("lcp",t,Jf,sc,e)}function Wf(t){return vn("ttfb",t,Xf,oc)}function Vf(t){return vn("fid",t,Kf,rc)}function Gf(t){return vn("inp",t,Qf,ic)}function Jt(t,e){return cc(t,e),yr[t]||(Zf(t),yr[t]=!0),uc(t,e)}function Be(t,e){const n=_n[t];if(!(!n||!n.length))for(const r of n)try{r(e)}catch(s){N&&m.error("Error while triggering instrumentation handler.\nType: ".concat(t,"\nName: ").concat(Pt(r),"\nError:"),s)}}function Yf(){return Df(t=>{Be("cls",{metric:t}),nc=t},{reportAllChanges:!0})}function Kf(){return $f(t=>{Be("fid",{metric:t}),rc=t})}function Jf(){return Hf(t=>{Be("lcp",{metric:t}),sc=t})}function Xf(){return zf(t=>{Be("ttfb",{metric:t}),oc=t})}function Qf(){return jf(t=>{Be("inp",{metric:t}),ic=t})}function vn(t,e,n,r,s=!1){cc(t,e);let o;return yr[t]||(o=n(),yr[t]=!0),r&&e({metric:r}),uc(t,e,s?o:void 0)}function Zf(t){const e={};t==="event"&&(e.durationThreshold=0),Fe(t,n=>{Be(t,{entries:n})},e)}function cc(t,e){_n[t]=_n[t]||[],_n[t].push(e)}function uc(t,e,n){return()=>{n&&n();const r=_n[t];if(!r)return;const s=r.indexOf(e);s!==-1&&r.splice(s,1)}}function Gs(t){return typeof t=="number"&&isFinite(t)}
1function Ue(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}const tg=2147483647;function st(t){return t/1e3}function Ys(){return T&&T.addEventListener&&T.performance}let lc=0,tt={},Ot,bn;function dc(){const t=Ys();if(t&&ct){t.mark&&T.performance.mark("sentry-tracing-init");const e=rg(),n=eg(),r=ng(),s=sg();return()=>{e(),n(),r(),s()}}return()=>{}}function pc(){Jt("longtask",({entries:t})=>{for(const e of t){const n=Rt();if(!n)return;const r=st(ct+e.startTime),s=st(e.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s})}})}function hc(){Jt("event",({entries:t})=>{for(const e of t){const n=Rt();if(!n)return;if(e.name==="click"){const r=st(ct+e.startTime),s=st(e.duration),o={description:Wt(e.target),op:"ui.interaction.".concat(e.name),origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s},i=ci(e.target);i&&(o.attributes={"ui.component_name":i}
1),n.startChild(o)}}})}function mc(t,e){if(Ys()&&ct){const n=og(t,e);return()=>{n()}}return()=>{}}function eg(){return qf(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(N&&m.log("[Measurements] Adding CLS"),tt.cls={value:t.value,unit:""},bn=e)},!0)}function ng(){return ac(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(N&&m.log("[Measurements] Adding LCP"),tt.lcp={value:t.value,unit:"millisecond"},Ot=e)},!0)}function rg(){return Vf(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=st(ct),r=st(e.startTime);N&&m.log("[Measurements] Adding FID"),tt.fid={value:t.value,unit:"millisecond"},tt["mark.fid"]={value:n+r,unit:"second"}})}function sg(){return Wf(({metric:t})=>{t.entries[t.entries.length-1]&&(N&&m.log("[Measurements] Adding TTFB"),tt.ttfb={value:t.value,unit:"millisecond"})})}const fc={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function og(t,e){return Gf(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(b=>b.duration===n.value&&fc[b.name]!==void 0),s=R();if(!r||!s)return;const o=fc[r.name],i=s.getOptions(),a=st(ct+r.startTime),c=st(n.value),u=r.interactionId!==void 0?t[r.interactionId]:void 0;if(u===void 0)return;const{routeName:l,parentContext:d,activeTransaction:p,user:h,replayId:f}=u,y=h!==void 0?h.email||h.id||h.ip_address:void 0,v=p!==void 0?p.getProfileId():void 0,g=new Gr({startTimestamp:a,endTimestamp:a+c,op:"ui.interaction.".concat(o),name:Wt(r.target),attributes:{release:i.release,environment:i.environment,transaction:l,...y!==void 0&&y!==""?{user:y}:{},...v!==void 0?{profile_id:v}:{},...f!==void 0?{replay_id:f}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),_=hg(d,i,e);if(_&&Math.random()<_){const b=g?zm([g],s.getDsn()):void 0,I=s&&s.getTransport();I&&b&&I.send(b).then(null,O=>{N&&m.error("Error while sending interaction:",O)});return}})}function gc(t){const e=Ys();if(!e||!T.performance.getEntries||!ct)return;N&&m.log("[Tracing] Adding & adjusting spans using Performance API");const n=st(ct),r=e.getEntries(),{op:s,start_timestamp:o}=j(t);if(r.slice(lc).forEach(i=>{const a=st(i.startTime),c=st(i.duration);if(!(t.op==="navigation"&&o&&n+a<o))switch(i.entryType){case"navigation":{ag(t,i,n);break}case"mark":case"paint":case"measure":{ig(t,i,a,c,n);const u=Hs(),l=i.startTime<u.firstHiddenTime;i.name==="first-paint"&&l&&(N&&m.log("[Measurements] Adding FP"),tt.fp={value:i.startTime,unit:"millisecond"}),i.name==="first-contentful-paint"&&l&&(N&&m.log("[Measurements] Adding FCP"),tt.fcp={value:i.startTime,unit:"millisecond"});break}case"resource":{ug(t,i,i.name,a,c,n);break}}}),lc=Math.max(r.length-1,0),lg(t),s==="pageload"){pg(tt),["fcp","fp","lcp"].forEach(a=>{if(!tt[a]||!o||n>=o)return;const c=tt[a].value,u=n+st(c),l=Math.abs((u-o)*1e3),d=l-c;N&&m.log("[Measurements] Normalized ".concat(a," from ").concat(c," to ").concat(l," (").concat(d,")")),tt[a].value=l});const i=tt["mark.fid"];i&&tt.fid&&(Ue(t,{description:"first input delay",endTimestamp:i.value+st(tt.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:i.value}),delete tt["mark.fid"]),"fcp"in tt||delete tt.cls,Object.keys(tt).forEach(a=>{ya(a,tt[a].value,tt[a].unit)}),dg(t)}Ot=void 0,bn=void 0,tt={}}function ig(t,e,n,r,s){const o=s+n,i=o+r;return Ue(t,{description:e.name,endTimestamp:i,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o}),o}function ag(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{_r(t,e,r,n)}),_r(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),_r(t,e,"fetch",n,"cache","domainLookupStart"),_r(t,e,"domainLookup",n,"DNS"),cg(t,e,n)}function _r(t,e,n,r,s,o){const i=o?e[o]:e["".concat(n,"End")],a=e["".concat(n,"Start")];!a||!i||Ue(t,{op:"browser",origin:"auto.browser.browser.metrics",description:s||n,startTimestamp:r+st(a),endTimestamp:r+st(i)})}function cg(t,e,n){e.responseEnd&&(Ue(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+st(e.requestStart),endTimestamp:n+st(e.responseEnd)}),Ue(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+st(e.responseStart),endTimestamp:n+st(e.responseEnd)}))}function ug(t,e,n,r,s,o){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const i=de(n),a={};Ks(a,e,"transferSize","http.response_transfer_size"),Ks(a,e,"encodedBodySize","http.response_content_length"),Ks(a,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus),i.protocol&&(a["url.scheme"]=i.protocol.split(":").pop()),i.host&&(a["server.address"]=i.host),a["url.same_origin"]=n.includes(T.location.origin);const c=o+r,u=c+s;Ue(t,{description:n.replace(T.location.origin,""),endTimestamp:u,op:e.initiatorType?"resource.".concat(e.initiatorType):"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:a})}function lg(t){const e=T.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),Gs(n.rtt)&&(tt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Gs(e.deviceMemory)&&t.setTag("deviceMemory","".concat(e.deviceMemory," GB")),Gs(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function dg(t){Ot&&(N&&m.log("[Measurements] Adding LCP Data"),Ot.element&&t.setTag("lcp.element",Wt(Ot.element)),Ot.id&&t.setTag("lcp.id",Ot.id),Ot.url&&t.setTag("lcp.url",Ot.url.trim().slice(0,200)),t.setTag("lcp.size",Ot.size)),bn&&bn.sources&&(N&&m.log("[Measurements] Adding CLS Data"),bn.sources.forEac
1h((e,n)=>t.setTag("cls.source.".concat(n+1),Wt(e.node))))}function Ks(t,e,n,r){const s=e[n];s!=null&&s<tg&&(t[r]=s)}function pg(t){const e=mr();if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(N&&m.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function hg(t,e,n){if(!me(e))return!1;let r;return t!==void 0&&typeof e.tracesSampler=="function"?r=e.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:{...t.data,...t.attributes},location:T.location}):t!==void 0&&t.sampled!==void 0?r=t.sampled:typeof e.tracesSampleRate<"u"?r=e.tracesSampleRate:r=1,ga(r)?r===!0?n:r===!1?0:r*n:(N&&m.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function mg(t,e,n,r,s="auto.http.browser"){if(!me()||!t.fetchData)return;const o=e(t.fetchData.url);if(t.endTimestamp&&o){const h=t.fetchData.__span;if(!h)return;const f=r[h];f&&(yg(f,t),delete r[h]);return}const i=nt(),a=R(),{method:c,url:u}=t.fetchData,l=gg(u),d=l?de(l).host:void 0,p=o?dn({name:"".concat(c," ").concat(u),onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,"http.url":l,"server.address":d,[Mt]:s},op:"http.client"}):void 0;if(p&&(t.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p),n(t.fetchData.url)&&a){const h=t.args[0];t.args[1]=t.args[1]||{};const f=t.args[1];f.headers=fg(h,a,i,f,p)}return p}function fg(t,e,n,r,s){const o=s||n.getSpan(),i=It(),{traceId:a,spanId:c,sampled:u,dsc:l}={...i.getPropagationContext(),...n.getPropagationContext()},d=o?er(o):vs(a,c,u),p=Bi(l||(o?Ne(o):or(a,e,n))),h=r.headers||(typeof Request<"u"&&$t(t,Request)?t.headers:void 0);if(h)if(typeof Headers<"u"&&$t(h,Headers)){const f=new Headers(h);return f.append("sentry-trace",d),p&&f.append(ys,p),f}else if(Array.isArray(h)){const f=[...h,["sentry-trace",d]];return p&&f.push([ys,p]),f}else{const f="baggage"in h?h.baggage:void 0,y=[];return Array.isArray(f)?y.push(...f):f&&y.push(f),p&&y.push(p),{...h,"sentry-trace":d,baggage:y.length>0?y.join(","):void 0}}else return{"sentry-trace":d,baggage:p}}function gg(t){try{return new URL(t).href}catch(e){return}}function yg(t,e){if(e.response){cr(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&t.setAttribute("http.response_content_length",r)}}else e.error&&t.setStatus("internal_error");t.end()}const Js=["localhost",/^\/(?!\/)/],Sn={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Js,tracePropagationTargets:Js};function Xs(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:s,shouldCreateSpanForRequest:o,enableHTTPTimings:i}={traceFetch:Sn.traceFetch,traceXHR:Sn.traceXHR,...t},a=typeof o=="function"?o:l=>!0,c=l=>Sg(l,r||s),u={};e&&Gn(l=>{const d=mg(l,a,c,u);if(d){const p=_c(l.fetchData.url),h=p?de(p).host:void 0;d.setAttributes({"http.url":p,"server.address":h})}i&&d&&yc(d)}),n&&Qn(l=>{const d=kg(l,a,c,u);i&&d&&yc(d)})}function _g(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function yc(t){const{url:e}=j(t).data||{};if(!e||typeof e!="string")return;const n=Jt("resource",({entries:r})=>{r.forEach(s=>{_g(s)&&s.name.endsWith(e)&&(bg(s).forEach(o=>t.setAttribute(...o)),setTimeout(n))})})}function vg(t){let e="unknown",n="unknown",r="";for(const s of t){if(s==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(s))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=s}return r===t&&(e=r),{name:e,version:n}}function At(t=0){return((ct||performance.timeOrigin)+t)/1e3}function bg(t){const{name:e,version:n}=vg(t.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",e]),ct?[...r,["http.request.redirect_start",At(t.redirectStart)],["http.request.fetch_start",At(t.fetchStart)],["http.request.domain_lookup_start",At(t.domainLookupStart)],["http.request.domain_lookup_end",At(t.domainLookupEnd)],["http.request.connect_start",At(t.connectStart)],["http.request.secure_connection_start",At(t.
1secureConnectionStart)],["http.request.connection_end",At(t.connectEnd)],["http.request.request_start",At(t.requestStart)],["http.request.response_start",At(t.responseStart)],["http.request.response_end",At(t.responseEnd)]]:r}function Sg(t,e){return Ie(t,e||Js)}function kg(t,e,n,r){const s=t.xhr,o=s&&s[Ft];if(!me()||!s||s.__sentry_own_request__||!o)return;const i=e(o.url);if(t.endTimestamp&&i){const h=s.__sentry_xhr_span_id__;if(!h)return;const f=r[h];f&&o.status_code!==void 0&&(cr(f,o.status_code),f.end(),delete r[h]);return}const a=nt(),c=It(),u=_c(o.url),l=u?de(u).host:void 0,d=i?dn({name:"".concat(o.method," ").concat(o.url),onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,"http.url":u,url:o.url,"server.address":l,[Mt]:"auto.http.browser"},op:"http.client"}):void 0;d&&(s.__sentry_xhr_span_id__=d.spanContext().spanId,r[s.__sentry_xhr_span_id__]=d);const p=R();if(s.setRequestHeader&&n(o.url)&&p){const{traceId:h,spanId:f,sampled:y,dsc:v}={...c.getPropagationContext(),...a.getPropagationContext()},g=d?er(d):vs(h,f,y),_=Bi(v||(d?Ne(d):or(h,p,a)));wg(s,g,_)}return d}function wg(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(ys,n)}catch(r){}}function _c(t){try{return new URL(t,T.location.origin).href}catch(e){return}}function Eg(t,e=!0,n=!0){if(!T||!T.location){N&&m.warn("Could not initialize routing instrumentation due to invalid location");return}let r=T.location.href,s;e&&(s=t({name:T.location.pathname,startTimestamp:ct?ct/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&on(({to:o,from:i})=>{if(i===void 0&&r&&r.indexOf(o)!==-1){r=void 0;return}i!==o&&(r=void 0,s&&(N&&m.log("[Tracing] Finishing current transaction with op: ".concat(s.op)),s.end()),s=t({name:T.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const Tg="BrowserTracing",xg={...mn,markBackgroundTransactions:!0,routingInstrumentation:Eg,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Sn},vc=10;class Cg{constructor(e){this.name=Tg,this._hasSetTracePropagationTargets=!1,Ls(),N&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...xg,...e},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=dc(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&mc(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&pc(),this.options._experiments.enableInteractions&&hc(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,n){this._getCurrentHub=n;const r=n().getClient(),s=r&&r.getOptions(),{routingInstrumentation:o,startTransactionOnLocationChange:i,startTransactionOnPageLoad:a,markBackgroundTransactions:c,traceFetch:u,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:p,_experiments:h}=this.options,f=s&&s.tracePropagationTargets,y=f||this.options.tracePropagationTargets;N&&this._hasSetTracePropagationTargets&&f&&m.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),o(v=>{const g=this._createRouteTransaction(v);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(g,v,n),g},a,i),c&&Ja(),h.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),Xs({traceFetch:u,traceXHR:l,tracePropagationTargets:y,shouldCreateSpanForRequest:d,enableHTTPTimings:p})}_createRouteTransaction(e){if(!this._getCurrentHub){N&&m.warn("[Tracing] Did not create ".concat(e.op," transaction because _getCurrentHub is invalid."));return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:s,finalTimeout:o,heartbeatInterval:i}=this.options,a=e.op==="pageload";let c;if(a){const h=a?bc("sentry-trace"):"",f=a?bc("baggage"):void 0,{traceId:y,dsc:v,parentSpanId:g,sampled:_}=ji(h,f);c={traceId:y,parentSpanId:g,parentSampled:_,...e,metadata:{...e.metadata,dynamicSamplingContext:v},trimEnd:!0}}else c={trimEnd:!0,...e};const u=typeof r=="function"?r(c):c,l=u===void 0?{...c,sampled:!1}:u;l.metadata=l.name!==c.name?{...l.metadata,source:"custom"}:l.metadata,this._latestRoute.name=l.name,this._latestRoute.context=l,l.sampled===!1&&N&&m.log("[Tracing] Will not send ".concat(l.op," transaction because of beforeNavigate.")),N&&m.log("[Tracing] Starting ".concat(l.op," transaction on scope"));const{location:d}=T,p=dr(n,l,s,o,!0,{location:d},i,a);return a&&T.document&&(T.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(T.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(T.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(h=>{this._collectWebVitals(),gc(h)}),p}_registerInteractionListener(){let e;const n=()=>{const{idleTimeout:r,finalTimeout:s,heartbeatInterval:o}
1=this.options,i="ui.action.click",a=Rt();if(a&&a.op&&["navigation","pageload"].includes(a.op)){N&&m.warn("[Tracing] Did not create ".concat(i," transaction because a pageload or navigation transaction is in progress."));return}if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub){N&&m.warn("[Tracing] Did not create ".concat(i," transaction because _getCurrentHub is invalid."));return}if(!this._latestRoute.name){N&&m.warn("[Tracing] Did not create ".concat(i," transaction because _latestRouteName is missing."));return}const c=this._getCurrentHub(),{location:u}=T,l={name:this._latestRoute.name,op:i,trimEnd:!0,data:{[ut]:this._latestRoute.context?Ig(this._latestRoute.context):"url"}};e=dr(c,l,r,s,!0,{location:u},o)};["click"].forEach(r=>{T.document&&addEventListener(r,n,{once:!1,capture:!0})})}_registerInpInteractionListener(){const e=({entries:n})=>{const r=R(),s=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName("Replay"):void 0,o=s!==void 0?s.getReplayId():void 0,i=Rt(),a=nt(),c=a!==void 0?a.getUser():void 0;n.forEach(u=>{if(Rg(u)){const l=u.interactionId;if(l===void 0)return;const d=this._interactionIdToRouteNameMapping[l],p=u.duration,h=u.startTime,f=Object.keys(this._interactionIdToRouteNameMapping),y=f.length>0?f.reduce((v,g)=>this._interactionIdToRouteNameMapping[v].duration<this._interactionIdToRouteNameMapping[g].duration?v:g):void 0;if(u.entryType==="first-input"&&f.map(v=>this._interactionIdToRouteNameMapping[v]).some(v=>v.duration===p&&v.startTime===h)||!l)return;if(d)d.duration=Math.max(d.duration,p);else if(f.length<vc||y===void 0||p>this._interactionIdToRouteNameMapping[y].duration){const v=this._latestRoute.name,g=this._latestRoute.context;v&&g&&(y&&Object.keys(this._interactionIdToRouteNameMapping).length>=vc&&delete this._interactionIdToRouteNameMapping[y],this._interactionIdToRouteNameMapping[l]={routeName:v,duration:p,parentContext:g,user:c,activeTransaction:i,replayId:o,startTime:h})}}})};Jt("event",e),Jt("first-input",e)}}function bc(t){const e=ai("meta[name=".concat(t,"]"));return e?e.getAttribute("content"):void 0}function Ig(t){const e=t.attributes&&t.attributes[ut],n=t.data&&t.data[ut],r=t.metadata&&t.metadata.source;return e||n||r}function Rg(t){return"duration"in t}const Mg="BrowserTracing",Og={...mn,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Sn},Sc=(t={})=>{const e=N?!!(t.tracePropagationTargets||t.tracingOrigins):!1;Ls(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);const n={...Og,...t},r=dc(),s={};n.enableInp&&mc(s,n.interactionsSampleRate),n.enableLongTask&&pc(),n._experiments.enableInteractions&&hc();const o={name:void 0,context:void 0};function i(a){const c=H(),{beforeStartSpan:u,idleTimeout:l,finalTimeout:d,heartbeatInterval:p}=n,h=a.op==="pageload";let f;if(h){const _=h?wc("sentry-trace"):"",b=h?wc("baggage"):void 0,{traceId:I,dsc:O,parentSpanId:k,sampled:S}=ji(_,b);f={traceId:I,parentSpanId:k,parentSampled:S,...a,metadata:{...a.metadata,dynamicSamplingContext:O},trimEnd:!0}}else f={trimEnd:!0,...a};const y=u?u(f):f;y.metadata=y.name!==f.name?{...y.metadata,source:"custom"}:y.metadata,o.name=y.name,o.context=y,y.sampled===!1&&N&&m.log("[Tracing] Will not send ".concat(y.op," transaction because of beforeNavigate.")),N&&m.log("[Tracing] Starting ".concat(y.op," transaction on scope"));const{location:v}=T,g=dr(c,y,l,d,!0,{location:v},p,h);return h&&T.document&&(T.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(T.document.readyState)&&g.sendAutoFinishSignal()}),["interactive","complete"].includes(T.document.readyState)&&g.sendAutoFinishSignal()),g.registerBeforeFinishCallback(_=>{r(),gc(_)}),g}return{name:Mg,setupOnce:()=>{},afterAllSetup(a){const c=a.getOptions(),{markBackgroundSpan:u,traceFetch:l,traceXHR:d,shouldCreateSpanForRequest:p,enableHTTPTimings:h,_experiments:f}=n,y=c&&c.tracePropagationTargets,v=y||n.tracePropagationTargets;N&&e&&y&&m.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let g,_=T.location&&T.location.href;if(a.on&&(a.on("startNavigationSpan",b=>{g&&(N&&m.log("[Tracing] Finishing current transaction with op: ".concat(j(g).op
1)),g.end()),g=i({op:"navigation",...b})}),a.on("startPageLoadSpan",b=>{g&&(N&&m.log("[Tracing] Finishing current transaction with op: ".concat(j(g).op)),g.end()),g=i({op:"pageload",...b})})),n.instrumentPageLoad&&a.emit&&T.location){const b={name:T.location.pathname,startTimestamp:ct?ct/1e3:void 0,origin:"auto.pageload.browser",attributes:{[ut]:"url"}};kc(a,b)}n.instrumentNavigation&&a.emit&&T.location&&on(({to:b,from:I})=>{if(I===void 0&&_&&_.indexOf(b)!==-1){_=void 0;return}if(I!==b){_=void 0;const O={name:T.location.pathname,origin:"auto.navigation.browser",attributes:{[ut]:"url"}};Qs(a,O)}}),u&&Ja(),f.enableInteractions&&Ag(n,o),n.enableInp&&Ng(s,o),Xs({traceFetch:l,traceXHR:d,tracePropagationTargets:v,shouldCreateSpanForRequest:p,enableHTTPTimings:h})},options:n}};function kc(t,e){if(!t.emit)return;t.emit("startPageLoadSpan",e);const n=fe();return(n&&j(n).op)==="pageload"?n:void 0}function Qs(t,e){if(!t.emit)return;t.emit("startNavigationSpan",e);const n=fe();return(n&&j(n).op)==="navigation"?n:void 0}function wc(t){const e=ai("meta[name=".concat(t,"]"));return e?e.getAttribute("content"):void 0}function Ag(t,e){let n;const r=()=>{const{idleTimeout:s,finalTimeout:o,heartbeatInterval:i}=t,a="ui.action.click",c=Rt();if(c&&c.op&&["navigation","pageload"].includes(c.op)){N&&m.warn("[Tracing] Did not create ".concat(a," transaction because a pageload or navigation transaction is in progress."));return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!e.name){N&&m.warn("[Tracing] Did not create ".concat(a," transaction because _latestRouteName is missing."));return}const{location:u}=T,l={name:e.name,op:a,trimEnd:!0,data:{[ut]:e.context?Lg(e.context):"url"}};n=dr(H(),l,s,o,!0,{location:u},i)};["click"].forEach(s=>{T.document&&addEventListener(s,r,{once:!1,capture:!0})})}function Dg(t){return"duration"in t}const Ec=10;function Ng(t,e){const n=({entries:r})=>{const s=R(),o=s!==void 0&&s.getIntegrationByName!==void 0?s.getIntegrationByName("Replay"):void 0,i=o!==void 0?o.getReplayId():void 0,a=Rt(),c=nt(),u=c!==void 0?c.getUser():void 0;r.forEach(l=>{if(Dg(l)){const d=l.interactionId;if(d===void 0)return;const p=t[d],h=l.duration,f=l.startTime,y=Object.keys(t),v=y.length>0?y.reduce((g,_)=>t[g].duration<t[_].duration?g:_):void 0;if(l.entryType==="first-input"&&y.map(g=>t[g]).some(g=>g.duration===h&&g.startTime===f)||!d)return;if(p)p.duration=Math.max(p.duration,h);else if(y.length<Ec||v===void 0||h>t[v].duration){const g=e.name,_=e.context;g&&_&&(v&&Object.keys(t).length>=Ec&&delete t[v],t[d]={routeName:g,duration:h,parentContext:_,user:u,activeTransaction:a,replayId:i,startTime:f})}}})};Jt("event",n),Jt("first-input",n)}function Lg(t){const e=t.attributes&&t.attributes[ut],n=t.data&&t.data[ut],r=t.metadata&&t.metadata.source;return e||n||r}const x=M;let Zs=0;function Tc(){return Zs>0}function $g(){Zs++,setTimeout(()=>{Zs--})}function ye(t,e={},n){if(typeof t!="function")return t;try{const s=t.__sentry_wrapped__;if(s)return s;if(os(t))return t}catch(s){return t}const r=function(){const s=Array.prototype.slice.call(arguments);try{const o=s.map(i=>ye(i,e));return t.apply(this,o)}catch(o){throw $g(),Kt(i=>{i.addEventProcessor(a=>(e.mechanism&&(cs(a,void 0),le(a,e.mechanism)),a.extra={...a.extra,arguments:s},a)),he(o)}),o}};try{for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}catch(s){}pi(r,t),Vt(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch(s){}return r}const L=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function to(t,e){const n=no(t,e),r={type:e&&e.name,value:Ug(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Pg(t,e,n,r){const s=R(),o=s&&s.getOptions().normalizeDepth,i={exception:{values:[{type:Un(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:jg(e,{isUnhandledRejection:r})}]},extra:{__serialized__:Ai(e,o)}};
1if(n){const a=no(t,n);a.length&&(i.exception.values[0].stacktrace={frames:a})}return i}function eo(t,e){return{exception:{values:[to(t,e)]}}}function no(t,e){const n=e.stacktrace||e.stack||"",r=Bg(e);try{return t(n,r)}catch(s){}return[]}const Fg=/Minified React error #\d+;/i;function Bg(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(Fg.test(t.message))return 1}return 0}function Ug(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function xc(t,e,n,r){const s=n&&n.syntheticException||void 0,o=ro(t,e,s,r);return le(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Ae(o)}function Cc(t,e,n="info",r,s){const o=r&&r.syntheticException||void 0,i=so(t,e,o,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),Ae(i)}function ro(t,e,n,r,s){let o;if(Zr(e)&&e.error)return eo(t,e.error);if(Zo(e)||jd(e)){const i=e;if("stack"in e)o=eo(t,e);else{const a=i.name||(Zo(i)?"DOMError":"DOMException"),c=i.message?"".concat(a,": ").concat(i.message):a;o=so(t,c,n,r),cs(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":"".concat(i.code)}),o}return Te(e)?eo(t,e):ie(e)||Un(e)?(o=Pg(t,e,n,s),le(o,{synthetic:!0}),o):(o=so(t,e,n,r),cs(o,"".concat(e)),le(o,{synthetic:!0}),o)}function so(t,e,n,r){const s={};if(r&&n){const o=no(t,n);o.length&&(s.exception={values:[{value:e,stacktrace:{frames:o}}]})}if(ts(e)){const{__sentry_template_string__:o,__sentry_template_values__:i}=e;return s.logentry={message:o,params:i},s}return s.message=e,s}function jg(t,{isUnhandledRejection:e}){const n=ep(t),r=e?"promise rejection":"exception";return Zr(t)?"Event `ErrorEvent` captured as ".concat(r," with message `").concat(t.message,"`"):Un(t)?"Event `".concat(Hg(t),"` (type=").concat(t.type,") captured as ").concat(r):"Object captured as ".concat(r," with keys: ").concat(n)}function Hg(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(e){}}function Ic(t,{metadata:e,tunnel:n,dsn:r}){const s={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:ae(r)}},o=zg(t);return Ut(s,[o])}function zg(t){return[{type:"user_report"},t]}class Rc extends Tm{constructor(e){const n=x.SENTRY_SDK_SOURCE||wp();Km(e,"browser",["browser"],n),super(e),e.sendClientReports&&x.document&&x.document.addEventListener("visibilitychange",()=>{x.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return xc(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Cc(this._options.stackParser,e,n,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){L&&m.warn("SDK not enabled, will not capture user feedback.");return}const n=Ic(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}_flushOutcomes(){const e=this._clearOutcomes();if(e.length===0){L&&m.log("No outcomes to send");return}if(!this._dsn){L&&m.log("No dsn provided, will not send outcomes");return}L&&m.log("Sending outcomes:",e);const n=Xp(e,this._options.tunnel&&ae(this._dsn));this._sendEnvelope(n)}}let kn;function qg(){if(kn)return kn;if(ps(x.fetch))return kn=x.fetch.bind(x);const t=x.document;let e=x.fetch;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(n){L&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return kn=e.bind(x)}function Wg(){kn=void 0}function Mc(t,e=qg()){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Wg(),n-=i,r--,gs(c)}}return Ps(t,s)}const Vg=4;function Oc(t){function e(n){return new yt((r,s)=>{const o=new XMLHttpRequest;o.onerror=s,o.onreadystatechange=()=>{o.readyState===Vg&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",t.url);for(const i in t.headers)Object.prototype.hasOwnProperty.call(t.headers,i)&&o.setRequestHeader(i,t.headers[i]);o.send(n.body)})}return Ps(t,e)}const je="?",Gg=10,Yg=20,Kg=30,Jg=40,Xg=50;function wn(t,e,n,r){const s={filename:t,function:e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Qg=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Zg=/\((\S*)(?::(\d+))(?::(\d+))\)/,ty=t=>{const e=Qg.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){const s=Zg.exec(e[2]);s&&(e[2]=s[1],e[3]=s[2],e[4]=s[3])}const[n,r]=Pc(e[1]||je,e[2]);return wn(r,n,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},Ac=[Kg,ty],ey=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ny=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ry=t=>{const e=ey.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const s=ny.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let n=e[3],r=e[1]||je;return[r,n]=Pc(r,n),wn(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Dc=[Xg,ry],sy=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,oy=t=>{const e=sy.exec(t);return e?wn(e[2],e[1]||je,+e[3],e[4]?+e[4]:void 0):void 0},Nc=[Jg,oy],iy=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,ay=t=>{const e=iy.exec(t);return e?wn(e[2],e[3]||je,+e[1]):void 0},cy=[Gg,ay],uy=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ly=t=>{const e=uy.exec(t);return e?wn(e[5],e[3]||e[4]||je,+e[1],+e[2]):void 0},dy=[Yg,ly],Lc=[Ac,Dc,Nc],$c=vi(...Lc),Pc=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:je,n?"safari-extension:".concat(e):"safari-web-extension:".concat(e)
1]:[t,e]},vr=1024,Fc="Breadcrumbs",py=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Fc,setupOnce(){},setup(n){e.console&&Si(fy(n)),e.dom&&Ti(my(n,e.dom)),e.xhr&&Qn(gy(n)),e.fetch&&Gn(yy(n)),e.history&&on(_y(n)),e.sentry&&n.on&&n.on("beforeSendEvent",hy(n))}}},oo=py,Bc=Z(Fc,oo);function hy(t){return function(e){R()===t&&jt({category:"sentry.".concat(e.type==="transaction"?"transaction":"event"),event_id:e.event_id,level:e.level,message:Gt(e)},{event:e})}}function my(t,e){return function(n){if(R()!==t)return;let r,s,o=typeof e=="object"?e.serializeAttribute:void 0,i=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;i&&i>vr&&(L&&m.warn("`dom.maxStringLength` cannot exceed ".concat(vr,", but a value of ").concat(i," was configured. Sentry will use ").concat(vr," instead.")),i=vr),typeof o=="string"&&(o=[o]);try{const c=n.event,u=vy(c)?c.target:c;r=Wt(u,{keyAttrs:o,maxStringLength:i}),s=ci(u)}catch(c){r="<unknown>"}if(r.length===0)return;const a={category:"ui.".concat(n.name),message:r};s&&(a.data={"ui.component_name":s}),jt(a,{event:n.event,name:n.name,global:n.global})}}function fy(t){return function(e){if(R()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:Li(e.level),message:jn(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)n.message="Assertion failed: ".concat(jn(e.args.slice(1)," ")||"console.assert"),n.data.arguments=e.args.slice(1);else return;jt(n,{input:e.args,level:e.level})}}function gy(t){return function(e){if(R()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[Ft];if(!n||!r||!s)return;const{method:o,url:i,status_code:a,body:c}=s,u={method:o,url:i,status_code:a},l={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r};jt({category:"xhr",data:u,type:"http"},l)}}function yy(t){return function(e){if(R()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&!(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"))if(e.error){const s=e.fetchData,o={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r};jt({category:"fetch",data:s,level:"error",type:"http"},o)}else{const s=e.response,o={...e.fetchData,status_code:s&&s.status},i={input:e.args,response:s,startTimestamp:n,endTimestamp:r};jt({category:"fetch",data:o,type:"http"},i)}}}function _y(t){return function(e){if(R()!==t)return;let n=e.from,r=e.to;const s=de(x.location.href);let o=n?de(n):void 0;const i=de(r);(!o||!o.path)&&(o=s),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),jt({category:"navigation",data:{from:n,to:r}})}}function vy(t){return!!t&&!!t.target}const Uc="Dedupe",by=()=>{let t;return{name:Uc,setupOnce(){},processEvent(e){if(e.type)return e;try{if(Sy(e,t))return L&&m.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return t=e}}},jc=by,Hc=Z(Uc,jc);function Sy(t,e){return e?!!(ky(t,e)||wy(t,e)):!1}function ky(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!qc(t,e)||!zc(t,e))}function wy(t,e){const n=Wc(e),r=Wc(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!qc(t,e)||!zc(t,e))}function zc(t,e){let n=Vc(t),r=Vc(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function qc(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch(s){return!1}}function Wc(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Vc(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}}const Gc="GlobalHandlers",Ey=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Gc,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(Ty(n),Jc("onerror")),e.onunhandledrejection&&(xy(n),Jc("onunhandledrejection"))}}},io=Ey,Yc=Z(Gc,io);function Ty(t){Mi(e=>{const{stackParser:n,attachStacktrace:r}=Xc();if(R()!==t||Tc())return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=c===void 0&&xt(s)?Ry(s,o,i,a):Kc(ro(n,c||s,void 0,r,!1),o,i,a);u.level="error",un(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function xy(t){Oi(e=>{const{stackParser:n,attachStacktrace:r}=Xc();if(R()!==t||Tc())return;const s=Cy(e),o=es(s)?Iy(s):ro(n,s,void 0,r,!0);o.level="error",un(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Cy(t){if(es(t))return t;const e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(n){}return t}function Iy(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(t))}]}}}function Ry(t,e,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=Zr(t)?t.message:t,i="Error";const a=o.match(s);return a&&(i=a[1],o=a[2]),Kc({exception:{values:[{type:i,value:o}]}},e,n,r)}function Kc(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=xt(e)&&e.length>0?e:ii();
1return c.length===0&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),t}function Jc(t){L&&m.log("Global Handler attached: ".concat(t))}function Xc(){const t=R();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Qc="HttpContext",My=()=>({name:Qc,setupOnce(){},preprocessEvent(t){if(!x.navigator&&!x.location&&!x.document)return;const e=t.request&&t.request.url||x.location&&x.location.href,{referrer:n}=x.document||{},{userAgent:r}=x.navigator||{},s={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:s};t.request=o}}),ao=My,Zc=Z(Qc,ao),Oy="cause",Ay=5,tu="LinkedErrors",Dy=(t={})=>{const e=t.limit||Ay,n=t.key||Oy;return{name:tu,setupOnce(){},preprocessEvent(r,s,o){const i=o.getOptions();ni(to,i.stackParser,i.maxValueLength,n,e,r,s)}}},co=Dy,eu=Z(tu,co),Ny=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],nu="TryCatch",Ly=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:nu,setupOnce(){e.setTimeout&&it(x,"setTimeout",su),e.setInterval&&it(x,"setInterval",su),e.requestAnimationFrame&&it
1(x,"requestAnimationFrame",$y),e.XMLHttpRequest&&"XMLHttpRequest"in x&&it(XMLHttpRequest.prototype,"send",Py);const n=e.eventTarget;n&&(Array.isArray(n)?n:Ny).forEach(Fy)}}},uo=Ly,ru=Z(nu,uo);function su(t){return function(...e){const n=e[0];return e[0]=ye(n,{mechanism:{data:{function:Pt(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function $y(t){return function(e){return t.apply(this,[ye(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Pt(t)},handled:!1,type:"instrument"}})])}}function Py(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&it(n,r,function(s){const o={mechanism:{data:{function:r,handler:Pt(s)},handled:!1,type:"instrument"}},i=os(s);return i&&(o.mechanism.data.handler=Pt(i)),ye(s,o)})}),t.apply(this,e)}}function Fy(t){const e=x,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(it(n,"addEventListener",function(r){return function(s,o,i){try{typeof o.handleEvent=="function"&&(o.handleEvent=ye(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Pt(o),target:t},handled:!1,type:"instrument"}}))}catch(a){}return r.apply(this,[s,ye(o,{mechanism:{data:{function:"addEventListener",handler:Pt(o),target:t},handled:!1,type:"instrument"}}),i])}}),it(n,"removeEventListener",function(r){return function(s,o,i){const a=o;try{const c=a&&a.__sentry_wrapped__;c&&r.call(this,s,c,i)}catch(c){}return r.call(this,s,a,i)}}))}const ou=[Bs(),Us(),uo(),oo(),io(),co(),jc(),ao()];function lo(t){return[...ou]}function By(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=lo()),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),x.SENTRY_RELEASE&&x.SENTRY_RELEASE.id&&(t.release=x.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);const e={...t,stackParser:rp(t.stackParser||$c),integrations:um(t),transport:t.transport||(Ci()?Mc:Oc)};Nm(Rc,e),t.autoSessionTracking&&qy()}const Uy=(t={},e=H())=>{if(!x.document){L&&m.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=e.getStackTop(),s=t.dsn||n&&n.getDsn();if(!s){L&&m.error("DSN not configured for showReportDialog call");return}r&&(t.user={...r.getUser(),...t.user}),t.eventId||(t.eventId=e.lastEventId());const o=x.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=am(s,t),t.onLoad&&(o.onload=t.onLoad);const{onClose:i}=t;if(i){const c=u=>{if(u.data==="__sentry_reportdialog_closed__")try{i()}finally{x.removeEventListener("message",c)}};x.addEventListener("message",c)}const a=x.document.head||x.document.body;a?a.appendChild(o):L&&m.error("Not injecting report dialog. No injection point found in HTML")};function jy(){}function Hy(t){t()}function zy(t){return ye(t)()}function qy(){if(typeof x.document>"u"){L&&m.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}xs({ignoreDuration:!0}),Is(),on(({from:t,to:e})=>{t!==void 0&&t!==e&&(xs({ignoreDuration:!0}),Is())})}function Wy(t){const e=R();e&&e.captureUserFeedback(t)}const Vy=Object.freeze(Object.defineProperty({__proto__:null,Breadcrumbs:Bc,Dedupe:Hc,GlobalHandlers:Yc,HttpContext:Zc,LinkedErrors:eu,TryCatch:ru},Symbol.toStringTag,{value:"Module"})),G=M,po="sentryReplaySession",Gy="replay_event",ho="Unable to send Replay",Yy=3e5,Ky=9e5,Jy=5e3,Xy=5500,Qy=6e4,Zy=5e3,t_=3,iu=15e4,br=5e3,e_=3e3,n_=300,mo=2e7,r_=4999,s_=15e3,au=36e5;function o_(t,e){return t!=null?t:e()}function Sr(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(e,...i)),e=void 0)}return n}var ot;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(ot||(ot={}));function i_(t){return t.nodeType===t.ELEMENT_NODE}function En(t){const e=Sr([t,"optionalAccess",n=>n.host]);return Sr([e,"optionalAccess",n=>n.shadowRoot])===t}function Tn(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function a_(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t}function c_(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import","url(".concat(JSON.stringify(t.href),")")];return t.layerName===""?n.push("layer"):t.layerName&&n.push("layer(".concat(t.layerName,")")),t.supportsText&&n.push("supports(".concat(t.supp
1ortsText,")")),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}function kr(t){try{const e=t.rules||t.cssRules;return e?a_(Array.from(e,cu).join("")):null}catch(e){return null}}function cu(t){let e;if(l_(t))try{e=kr(t.styleSheet)||c_(t)}catch(n){}else if(d_(t)&&t.selectorText.includes(":"))return u_(t.cssText);return e||t.cssText}function u_(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function l_(t){return"styleSheet"in t}function d_(t){return"selectorText"in t}class uu{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const n=Sr([this,"access",r=>r.getMeta,"call",r=>r(e),"optionalAccess",r=>r.id]);return o_(n,()=>-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 n=this.getId(e);this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,n){const r=n.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,n)}replace(e,n){const r=this.getNode(e);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(e,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function p_(){return new uu}function wr({maskInputOptions:t,tagName:e,type:n}){return e==="OPTION"&&(e="SELECT"),!!(t[e.toLowerCase()]||n&&t[n]||n==="password"||e==="INPUT"&&!n&&t.text)}function xn({isMasked:t,element:e,value:n,maskInputFn:r}){let s=n||"";return t?(r&&(s=r(s,e)),"*".repeat(s.length)):s}function He(t){return t.toLowerCase()}function fo(t){return t.toUpperCase()}const lu="__rrweb_original__";function h_(t){const e=t.getContext("2d");if(!e)return!0;const n=50;for(let r=0;r<t.width;r+=n)for(let s=0;s<t.height;s+=n){const o=e.getImageData,i=lu in o?o[lu]:o;if(new Uint32Array(i.call(e,r,s,Math.min(n,t.width-r),Math.min(n,t.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function go(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?He(e):null}function Er(t,e,n){return e==="INPUT"&&(n==="radio"||n==="checkbox")?t.getAttribute("value")||"":t.value}let m_=1;const f_=new RegExp("[^a-z0-9-_:]"),Cn=-2;function yo(){return m_++}function g_(t){if(t instanceof HTMLFormElement)return"form";const e=He(t.tagName);return f_.test(e)?"div":e}function y_(t){let e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}let ze,du;const __=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,v_=/^(?:[a-z+]+:)?\/\//i,b_=/^www\..*/i,S_=/^(data:)([^,]*),(.*)/i;function Tr(t,e){return(t||"").replace(__,(n,r,s,o,i,a)=>{const c=s||i||a,u=r||o||"";if(!c)return n;if(v_.test(c)||b_.test(c)||S_.test(c))return"url(".concat(u).concat(c).concat(u,")");
1if(c[0]==="/")return"url(".concat(u).concat(y_(e)+c).concat(u,")");const l=e.split("/"),d=c.split("/");l.pop();for(const p of d)p!=="."&&(p===".."?l.pop():l.push(p));return"url(".concat(u).concat(l.join("/")).concat(u,")")})}const k_=/^[^ \t\n\r\u000c]+/,w_=/^[, \t\n\r\u000c]+/;function E_(t,e){if(e.trim()==="")return e;let n=0;function r(o){let i;const a=o.exec(e.substring(n));return a?(i=a[0],n+=i.length,i):""}const s=[];for(;r(w_),!(n>=e.length);){let o=r(k_);if(o.slice(-1)===",")o=xr(t,o.substring(0,o.length-1)),s.push(o);else{let i="";o=xr(t,o);let a=!1;for(;;){const c=e.charAt(n);if(c===""){s.push((o+i).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((o+i).trim());break}else c==="("&&(a=!0);i+=c,n+=1}}}return s.join(", ")}function xr(t,e){if(!e||e.trim()==="")return e;const n=t.createElement("a");return n.href=e,n.href}function T_(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function _o(){const t=document.createElement("a");return t.href="",t.href}function pu(t,e,n,r,s,o){return r&&(n==="src"||n==="href"&&!(e==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(e==="table"||e==="td"||e==="th")?xr(t,r):n==="srcset"?E_(t,r):n==="style"?Tr(r,_o()):e==="object"&&n==="data"?xr(t,r):typeof o=="function"?o(n,r,s):r)}function hu(t,e,n){return(t==="video"||t==="audio")&&e==="autoplay"}function x_(t,e,n,r){try{if(r&&t.matches(r))return!1;if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(let s=t.classList.length;s--;){const o=t.classList[s];if(e.test(o))return!0}if(n)return t.matches(n)}catch(s){}return!1}function C_(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function _e(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:_e(t.parentNode,e,n,r+1)}function qe(t,e){return n=>{const r=n;if(r===null)return!1;try{if(t){if(typeof t=="string"){if(r.matches(".".concat(t)))return!0}else if(C_(r,t))return!0}return!!(e&&r.matches(e))}catch(s){return!1}}}function We(t,e,n,r,s,o){try{const i=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){const u=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let a=-1,c=-1;if(o){if(c=_e(i,qe(r,s)),c<0)return!0;a=_e(i,qe(e,n),c>=0?c:1/0)}else{if(a=_e(i,qe(e,n)),a<0)return!1;c=_e(i,qe(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!o}catch(i){}return!!o}function I_(t,e,n){const r=t.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch(a){return}if(o!=="complete"){const a=setTimeout(()=>{s||(e(),s=!0)},n);t.addEventListener("load",()=>{clearTimeout(a),s=!0,e()});return}const i="about:blank";if(r.location.href!==i||t.src===i||t.src==="")return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function R_(t,e,n){let r=!1,s;try{s=t.sheet}catch(i){return}if(s)return;const o=setTimeout(()=>{r||(e(),r=!0)},n);t.addEventListener("load",()=>{clearTimeout(o),r=!0,e()})}function M_(t,e){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:y,maskInputFn:v,dataURLOptions:g={},inlineImages:_,recordCanvas:b,keepIframeSrcFn:I,newlyAddedElement:O=!1}=e,k=O_(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:ot.Document,childNodes:[],compatMode:t.compatMode}:{type:ot.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:ot.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:k};case t.ELEMENT_NODE:return D_(t,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:v,dataURLOptions:g,inlineImages:_,recordCanvas:b,keepIframeSrcFn:I,newlyAddedElement:O,rootId:k,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case t.TEXT_NODE:return A_(t,{maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:y,maskInputOptions:f,maskInputFn:v,rootId:k});case t.CDATA_SECTION_NODE:return{type:ot.CDATA,textContent:"",rootId:k};case t.COMMENT_NODE:return{type:ot.Comment,textContent:t.textContent||"",rootId:k};default:return!1}}function O_(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return n===1?void 0:n}function A_(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=e,d=t.parentNode&&t.parentNode.tagName;let p=t.textContent;const h=d==="STYLE"?!0:void 0,f=d==="SCRIPT"?!0:void 0,y=d==="TEXTAREA"?!0:void 0;if(h&&p){try{t.nextSibling||t.previousSibling||Sr([t,"access",g=>g.parentNode,"access",g=>g.sheet,"optionalAccess",g=>g.cssRules])&&(p=kr(t.parentNode.sheet))}catch(g){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(g),t)}p=Tr(p,_o())}f&&(p="SCRIPT_PLACEHOLDER");const v=We(t,r,o,s,i,n);if(!h&&!f&&!y&&p&&v&&(p=a?a(p,t.parentElement):p.replace(/[\S]/g,"*")),y&&p&&(c.textarea||v)&&(p=u?u(p,t.parentNode):p.replace(/[\S]/g,"*")),d==="OPTION"&&p){const g=wr({type:null,tagName:d,maskInputOptions:c});p=xn({isMasked:We(t,r,o,s,i,g),element:t,value:p,maskInputFn:u})}return{type:ot.Text,textContent:p||"",isStyle:h,rootId:l}}function D_(t,e){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:y,maskAllText:v,maskTextClass:g,unmaskTextClass:_,maskTextSelector:b,unmaskTextSelector:I}=e,O=x_(t,r,s,o),k=g_(t);let S={};const K=t.attributes.length;for(let E=0;E<K;E++){const C=t.attributes[E];C.name&&!hu(k,C.name,C.value)&&(S[C.name]=pu(n,k,He(C.name),C.value,t,c))}if(k==="link"&&i){const E=Array.from(n.styleSheets).find(q=>q.href===t.href);let C=null;E&&(C=kr(E)),C&&(delete S.rel,delete S.href,S._cssText=Tr(C,E.href))}if(k==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const E=kr(t.sheet);E&&(S._cssText=Tr(E,_o()))}if(k==="input"||k==="textarea"||k==="select"||k==="option"){const E=t,C=go(E),q=Er(E,fo(k),C),J=E.checked;if(C!=="submit"&&C!=="button"&&q){const ht=We(E,g,b,_,I,wr({type:C,tagName:fo(k),maskInputOptions:a}));S.value=xn({isMasked:ht,element:E,value:q,maskInputFn:u})}J&&(S.checked=J)}if(k==="option"&&(t.selected&&!a.select?S.selected=!0:delete S.selected),k==="canvas"&&p){if(t.__context==="2d")h_(t)||(S.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const E=t.toDataURL(l.type,l.quality),C=document.createElement("canvas");C.width=t.width,C.height=t.height;const q=C.toDataURL(l.type,l.quality);E!==q&&(S.rr_dataURL=E)}}if(k==="img"&&d){ze||(ze=n.createElement("canvas"),du=ze.getContext("2d"));const E=t,C=E.crossOrigin;E.crossOrigin="anonymous";const q=()=>{E.removeEventListener("load",q);
1try{ze.width=E.naturalWidth,ze.height=E.naturalHeight,du.drawImage(E,0,0),S.rr_dataURL=ze.toDataURL(l.type,l.quality)}catch(J){console.warn("Cannot inline img src=".concat(E.currentSrc,"! Error: ").concat(J))}C?S.crossOrigin=C:E.removeAttribute("crossorigin")};E.complete&&E.naturalWidth!==0?q():E.addEventListener("load",q)}if((k==="audio"||k==="video")&&(S.rr_mediaState=t.paused?"paused":"played",S.rr_mediaCurrentTime=t.currentTime),f||(t.scrollLeft&&(S.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(S.rr_scrollTop=t.scrollTop)),O){const{width:E,height:C}=t.getBoundingClientRect();S={class:S.class,rr_width:"".concat(E,"px"),rr_height:"".concat(C,"px")}}k==="iframe"&&!h(S.src)&&(t.contentDocument||(S.rr_src=S.src),delete S.src);let z;try{customElements.get(k)&&(z=!0)}catch(E){}return{type:ot.Element,tagName:k,attributes:S,childNodes:[],isSVG:T_(t)||void 0,needBlock:O,rootId:y,isCustom:z}}function Y(t){return t==null?"":t.toLowerCase()}function N_(t,e){return!!(e.comment&&t.type===ot.Comment||t.type===ot.Element&&(e.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"||t.attributes.rel==="modulepreload")&&t.attributes.as==="script"||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&t.attributes.href.endsWith(".js"))||e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(Y(t.attributes.name).match(/^msapplication-tile(image|color)$/)||Y(t.attributes.name)==="application-name"||Y(t.attributes.rel)==="icon"||Y(t.attributes.rel)==="apple-touch-icon"||Y(t.attributes.rel)==="shortcut icon"))||t.tagName==="meta"&&(e.headMetaDescKeywords&&Y(t.attributes.name).match(/^description|keywords$/)||e.headMetaSocial&&(Y(t.attributes.property).match(/^(og|twitter|fb):/)||Y(t.attributes.name).match(/^(og|twitter):/)||Y(t.attributes.name)==="pinterest")||e.headMetaRobots&&(Y(t.attributes.name)==="robots"||Y(t.attributes.name)==="googlebot"||Y(t.attributes.name)==="bingbot")||e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0||e.headMetaAuthorship&&(Y(t.attributes.name)==="author"||Y(t.attributes.name)==="generator"||Y(t.attributes.name)==="framework"||Y(t.attributes.name)==="publisher"||Y(t.attributes.name)==="progid"||Y(t.attributes.property).match(/^article:/)||Y(t.attributes.property).match(/^product:/))||e.headMetaVerification&&(Y(t.attributes.name)==="google-site-verification"||Y(t.attributes.name)==="yandex-verification"||Y(t.attributes.name)==="csrf-token"||Y(t.attributes.name)==="p:domain_verify"||Y(t.attributes.name)==="verify-v1"||Y(t.attributes.name)==="verification"||Y(t.attributes.name)==="shopify-checkout-api-token"))))}function Ve(t,e){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:y,maskTextFn:v,maskInputFn:g,slimDOMOptions:_,dataURLOptions:b={},inlineImages:I=!1,recordCanvas:O=!1,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:K=5e3,onStylesheetLoad:z,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:q=!1}=e;let{preserveWhiteSpace:J=!0}=e;const ht=M_(t,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:y,maskTextFn:v,maskInputFn:g,dataURLOptions:b,inlineImages:I,recordCanvas:O,keepIframeSrcFn:C,newlyAddedElement:q});if(!ht)return console.warn(t,"not serialized"),null;let mt;r.hasNode(t)?mt=r.getId(t):N_(ht,_)||!J&&ht.type===ot.Text&&!ht.isStyle&&!ht.textContent.replace(/^\s+|\s+$/gm,"").length?mt=Cn:mt=yo();const W=Object.assign(ht,{id:mt});if(r.add(t,W),mt===Cn)return null;k&&k(t);let ft=!p;if(W.type===ot.Element){ft=ft&&!W.needBlock,delete W.needBlock;const rt=t.shadowRoot;rt&&Tn(rt)&&(W.isShadowHost=!0)}if((W.type===ot.Document||W.type===ot.Element)&&ft){_.headWhitespace&&W.type===ot.Element&&W.tagName==="head"&&(J=!1);const rt={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:y,maskTextFn:v,maskInputFn:g,slimDOMOptions:_,dataURLOptions:b,inlineImages:I,recordCanvas:O,preserveWhiteSpace:J,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:K,onStylesheetLoad:z,stylesheetLoadTimeout:E,keepIframeSrcFn:C};for(const _t of Array.from(t.childNodes)){const vt=Ve(_t,rt);vt&&W.childNodes.push(vt)}if(i_(t)&&t.shadowRoot)for(const _t of Array.from(t.shadowRoot.childNodes)){const vt=Ve(_t,rt);vt&&(Tn(t.shadowRoot)&&(vt.isShadow=!0),W.childNodes.push(vt))}}return t.parentNode&&En(t.parentNode)&&Tn(t.parentNode)&&(W.isShadow=!0),W.type===ot.Element&&W.tagName==="iframe"&&I_(t,()=>{const rt=t.contentDocument;if(rt&&S){const _t=Ve(rt,{doc:rt,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:y,maskTextFn:v,maskInputFn:g,slimDOMOptions:_,dataURLOptions:b,inlineImages:I,recordCanvas:O,preserveWhiteSpace:J,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:K,onStylesheetLoad:z,stylesheetLoadTimeout:E,keepIframeSrcFn:C});_t&&S(t,_t)}},K),W.type===ot.Element&&W.tagName==="link"&&W.attributes.rel==="stylesheet"&&R_(t,()=>{if(z){const rt=Ve(t,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:y,maskTextFn:v,maskInputFn:g,slimDOMOptions:_,dataURLOptions:b,inlineImages:I,recordCanvas:O,preserveWhiteSpace:J,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:K,onStylesheetLoad:z,stylesheetLoadTimeout:E,keepIframeSrcFn:C});rt&&z(t,rt)}},E),W}function L_(t,e){const{mirror:n=new uu,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inl
1ineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:y,maskTextFn:v,maskInputFn:g,slimDOM:_=!1,dataURLOptions:b,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:K,stylesheetLoadTimeout:z,keepIframeSrcFn:E=()=>!1}=e||{};return Ve(t,{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:f===!0?{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}:f===!1?{}:f,maskAttributeFn:y,maskTextFn:v,maskInputFn:g,slimDOMOptions:_===!0||_==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:_==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:_===!1?{}:_,dataURLOptions:b,inlineImages:p,recordCanvas:h,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:K,stylesheetLoadTimeout:z,keepIframeSrcFn:E,newlyAddedElement:!1})}function Xt(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(e,...i)),e=void 0)}return n}function lt(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const Ge="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 mu={map:{},getId(){return console.error(Ge),-1},getNode(){return console.error(Ge),null},removeNodeFromMap(){console.error(Ge)},has(){return console.error(Ge),!1},reset(){console.error(Ge)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(mu=new Proxy(mu,{get(t,e,n){return e==="map"&&console.error(Ge),Reflect.get(t,e,n)}}));function In(t,e,n={}){let r=null,s=0;return function(...o){const i=Date.now();!s&&n.leading===!1&&(s=i);const a=e-(i-s),c=this;a<=0||a>e?(r&&(H_(r),r=null),s=i,t.apply(c,o)):!r&&n.trailing!==!1&&(r=Ir(()=>{s=n.leading===!1?0:Date.now(),r=null,t.apply(c,o)},a))}}function fu(t,e,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(t,e);return s.Object.defineProperty(t,e,r?n:{set(i){Ir(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>fu(t,e,o||{},!0)}function vo(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=s,()=>{t[e]=r}}catch(r){return()=>{}}}let Cr=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Cr=()=>new Date().getTime());function gu(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:Xt([e,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Xt([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Xt([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:Xt([e,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Xt([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Xt([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function yu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function _u(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function vu(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function Et(t,e,n,r,s){if(!t)return!1;const o=vu(t);if(!o)return!1;const i=qe(e,n);if(!s){const u=r&&o.matches(r);return i(o)&&!u}const a=_e(o,i);let c=-1;return a<0?!1:(r&&(c=_e(o,qe(null,r))),a>-1&&c<0?!0:a<c)}function $_(t,e){return e.getId(t)!==-1}function bo(t,e){return e.getId(t)===Cn}function bu(t,e){if(En(t))return!1;const n=e.getId(t);return e.has(n)?t.parentNode&&t.parentNode.nodeType===t.DOCUMENT_NODE?!1:t.parentNode?bu(t.parentNode,e):!0:!0}function So(t){return!!t.changedTouches}function P_(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.N
1odeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let n=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Su(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function ku(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function ko(t){return!!Xt([t,"optionalAccess",e=>e.shadowRoot])}class F_{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return nh(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,n){if(this.has(e))return this.getId(e);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function wu(t){let e=null;return Xt([t,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function B_(t){let e=t,n;for(;n=wu(e);)e=n;return e}function U_(t){const e=t.ownerDocument;if(!e)return!1;const n=B_(t);return e.contains(n)}function Eu(t){const e=t.ownerDocument;return e?e.contains(t)||U_(t):!1}const Tu={};function wo(t){const e=Tu[t];if(e)return e;const n=window.document;let r=window[t];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(s)}catch(s){}return Tu[t]=r.bind(window)}function j_(...t){return wo("requestAnimationFrame")(...t)}function Ir(...t){return wo("setTimeout")(...t)}function H_(...t){return wo("clearTimeout")(...t)}var A=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(A||{}),D=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(D||{}),dt=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(dt||{}),zt=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(zt||{});function z_(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(e,...i)),e=void 0)}return n}function xu(t){return"__ln"in t}class q_{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 n=this.head;for(let r=0;r<e;r++)n=z_([n,"optionalAccess",s=>s.next])||null;return n}addNode(e){const n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&xu(e.previousSibling)){const r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(e.nextSibling&&xu(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;n.previous=r,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(e){const n=e.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Cu=(t,e)=>"".concat(t,"@").concat(e);class W_{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=>
vendor: 5,117 bytes, line 1
1{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],n=new Set,r=new q_,s=c=>{let u=c,l=Cn;for(;l===Cn;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},o=c=>{if(!c.parentNode||!Eu(c))return;const u=En(c.parentNode)?this.mirror.getId(wu(c)):this.mirror.getId(c.parentNode),l=s(c);if(u===-1||l===-1)return r.addNode(c);const d=Ve(c,{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:p=>{Su(p,this.mirror)&&this.iframeManager.addIframe(p),ku(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),ko(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,h)=>{this.iframeManager.attachIframe(p,h),this.shadowDomManager.observeAttachShadow(p)},onStylesheetLoad:(p,h)=>{this.stylesheetManager.attachLinkElement(p,h)}});d&&(e.push({parentId:u,nextId:l,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Iu(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of this.addedSet)!Mu(this.droppedSet,c)&&!Iu(this.removes,c,this.mirror)||Mu(this.movedSet,c)?o(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const u=this.mirror.getId(i.value.parentNode),l=s(i.value);u!==-1&&l!==-1&&(c=i)}if(!c){let u=r.tail;for(;u;){const l=u;if(u=u.previous,l){const d=this.mirror.getId(l.value.parentNode);if(s(l.value)===-1)continue;if(d!==-1){c=l;break}else{const p=l.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=p.parentNode.host;if(this.mirror.getId(h)!==-1){c=l;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),o(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const l=JSON.stringify(c.styleDiff),d=JSON.stringify(c._unchangedStyles);l.length<u.style.length&&(l+d).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:e};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.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(a))},this.processMutation=e=>{if(!bo(e.target,this.mirror))switch(e.type){case"characterData":{const n=e.target.textContent;!Et(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:We(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,vu(e.target)):n.replace(/[\S]/g,"*"):n,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,s=e.target.getAttribute(r);if(r==="value"){const i=go(n),a=n.tagName;s=Er(n,a,i);const c=wr({maskInputOptions:this.maskInputOptions,tagName:a,type:i}),u=We(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=xn({isMasked:u,element:n,value:s,maskInputFn:this.maskInputFn})}if(Et(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===e.oldValue)return;let o=this.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!n.contentDocument)r="rr_src";else return;if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),r==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!hu(n.tagName,r)&&(o.attributes[r]=pu(this.doc,He(n.tagName),He(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(a){this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==i.style.getPropertyValue(a)||u!==i.style.getPropertyPriority(a)?u===""?o.styleDiff[a]=c:o.styleDiff[a]=[c,u]:o._unchangedStyles[a]=[c,u]}for(const a of Array.from(i.style))n.style.getPropertyValue(a)===""&&(o.styleDiff[a]=!1)}break}
1case"childList":{if(Et(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(n=>this.genAdds(n,e.target)),e.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=En(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Et(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||bo(n,this.mirror)||!$_(n,this.mirror)||(this.addedSet.has(n)?(Eo(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&r===-1||bu(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Cu(r,s)]?Eo(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:En(e.target)&&Tn(e.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(e,n)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(bo(e,this.mirror))return;this.movedSet.add(e);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Cu(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Et(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(r=>this.genAdds(r)),ko(e)&&e.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,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(n=>{this[n]=e[n]})}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 Eo(t,e){t.delete(e),e.childNodes.forEach(n=>Eo(t,n))}function Iu(t,e,n){return t.length===0?!1:Ru(t,e,n)}function Ru(t,e,n){const{parentNode:r}=e;if(!r)return!1;const s=n.getId(r);return t.some(o=>o.id===s)?!0:Ru(t,r,n)}function Mu(t,e){return t.size===0?!1:Ou(t,e)}function Ou(t,e){const{parentNode:n}=e;return n?t.has(n)?!0:Ou(t,n):!1}let Rn;function V_(t){Rn=t}function G_(){Rn=void 0}const $=t=>Rn?(...e)=>{try{return t(...e)}catch(n){if(Rn&&Rn(n)===!0)return()=>{};throw n}}:t;function Dt(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(e,...i)),e=void 0)}return n}const Ye=[];function Mn(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(e){}return t&&t.target}function Au(t,e){const n=new W_;Ye.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const s=Dt([window,"optionalAccess",i=>i.Zone,"optionalAccess",i=>i.__symbol__,"optionalCall",i=>i("MutationObserver")]);s&&window[s]&&(r=window[s]);const o=new r($(i=>{t.onMutation&&t.onMutation(i)===!1||n.processMutations.bind(n)(i)}));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Y_({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(e.mousemove===!1)return()=>{};const s=typeof e.mousemove=="number"?e.mousemove:50,o=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let i=[],a;const c=In($(d=>{const p=Date.now()-a;t(i.map(h=>(h.timeOffset-=p,h)),d),i=[],a=null}),o),u=$(In($(d=>{const p=Mn(d),{clientX:h,clientY:f}=So(d)?d.changedTouches[0]:d;a||(a=Cr()),i.push({x:h,y:f,id:r.getId(p),timeOffset:Cr()-a}),c(typeof DragEvent<"u"&&d instanceof DragEvent?D.Drag:d instanceof MouseEvent?D.MouseMove:D.TouchMove)}),s,{trailing:!1})),l=[lt("mousemove",u,n),lt("touchmove",u,n),lt("drag",u,n)];return $(()=>{l.forEach(d=>d())})}function K_({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const a=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,c=[];let u=null;const l=d=>p=>{const h=Mn(p);if(Et(h,r,s,o,!0))return;let f=null,y=d;if("pointerType"in p){switch(p.pointerType){case"mouse":f=zt.Mouse;break;case"touch":f=zt.Touch;break;case"pen":f=zt.Pen;break}f===zt.Touch?dt[d]===dt.MouseDown?y="TouchStart":dt[d]===dt.MouseUp&&(y="TouchEnd"):zt.Pen}else So(p)&&(f=zt.Touch);f!==null?(u=f,(y.startsWith("Touch")&&f===zt.Touch||y.startsWith("Mouse")&&f===zt.Mouse)&&(f=null)):dt[d]===dt.Click&&(f=u,u=null);const v=So(p)?p.changedTouches[0]:p;if(!v)return;const g=n.getId(h),{clientX:_,clientY:b}=v;$(t)({type:dt[y],id:g,x:_,y:b,...f!==null&&{pointerType:f}})};return Object.keys(dt).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&a[d]!==!1).forEac
1h(d=>{let p=He(d);const h=l(d);if(window.PointerEvent)switch(dt[d]){case dt.MouseDown:case dt.MouseUp:p=p.replace("mouse","pointer");break;case dt.TouchStart:case dt.TouchEnd:return}c.push(lt(p,h,e))}),$(()=>{c.forEach(d=>d())})}function Du({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){const a=$(In($(c=>{const u=Mn(c);if(!u||Et(u,r,s,o,!0))return;const l=n.getId(u);if(u===e&&e.defaultView){const d=gu(e.defaultView);t({id:l,x:d.left,y:d.top})}else t({id:l,x:u.scrollLeft,y:u.scrollTop})}),i.scroll||100));return lt("scroll",a,e)}function J_({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const s=$(In($(()=>{const o=yu(),i=_u();(n!==o||r!==i)&&(t({width:Number(i),height:Number(o)}),n=o,r=i)}),200));return lt("resize",s,e)}const X_=["INPUT","TEXTAREA","SELECT"],Nu=new WeakMap;function Q_({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:y}){function v(k){let S=Mn(k);const K=k.isTrusted,z=S&&fo(S.tagName);if(z==="OPTION"&&(S=S.parentElement),!S||!z||X_.indexOf(z)<0||Et(S,r,s,o,!0))return;const E=S;if(E.classList.contains(i)||a&&E.matches(a))return;const C=go(S);let q=Er(E,z,C),J=!1;const ht=wr({maskInputOptions:c,tagName:z,type:C}),mt=We(S,p,f,h,y,ht);(C==="radio"||C==="checkbox")&&(J=S.checked),q=xn({isMasked:mt,element:S,value:q,maskInputFn:u}),g(S,d?{text:q,isChecked:J,userTriggered:K}:{text:q,isChecked:J});const W=S.name;C==="radio"&&W&&J&&e.querySelectorAll('input[type="radio"][name="'.concat(W,'"]')).forEach(ft=>{if(ft!==S){const rt=xn({isMasked:mt,element:ft,value:Er(ft,z,C),maskInputFn:u});g(ft,d?{text:rt,isChecked:!J,userTriggered:!1}:{text:rt,isChecked:!J})}})}function g(k,S){const K=Nu.get(k);if(!K||K.text!==S.text||K.isChecked!==S.isChecked){Nu.set(k,S);const z=n.getId(k);$(t)({...S,id:z})}}const _=(l.input==="last"?["change"]:["input","change"]).map(k=>lt(k,$(v),e)),b=e.defaultView;if(!b)return()=>{_.forEach(k=>k())};const I=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),O=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return I&&I.set&&_.push(...O.map(k=>fu(k[0],k[1],{set(){$(v)({target:this,isTrusted:!1})}},!1,b))),$(()=>{_.forEach(k=>k())})}function Rr(t){const e=[];function n(r,s){if(Mr("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Mr("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Mr("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Mr("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(o)}return s}return n(t,e)}function Qt(t,e,n){let r,s;return t?(t.ownerNode?r=e.getId(t.ownerNode):s=n.getId(t),{styleId:s,id:r}):{}}function Z_({styleSheetRuleCb:t,mirror:e,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:$((l,d,p)=>{const[h,f]=p,{id:y,styleId:v}=Qt(d,e,n.styleMirror);return(y&&y!==-1||v&&v!==-1)&&t({id:y,styleId:v,adds:[{rule:h,index:f}]}),l.apply(d,p)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:$((l,d,p)=>{const[h]=p,{id:f,styleId:y}=Qt(d,e,n.styleMirror);return(f&&f!==-1||y&&y!==-1)&&t({id:f,styleId:y,removes:[{index:h}]}),l.apply(d,p)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:$((l,d,p)=>{const[h]=p,{id:f,styleId:y}=Qt(d,e,n.styleMirror);return(f&&f!==-1||y&&y!==-1)&&t({id:f,styleId:y,replace:h}),l.apply(d,p)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:$((l,d,p)=>{const[h]=p,{id:f,styleId:y}=Qt(d,e,n.styleMirror);return(f&&f!==-1||y&&y!==-1)&&t({id:f,styleId:y,replaceSync:h}),l.apply(d,p)})}));const c={};Or("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Or("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Or("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Or("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};
1return Object.entries(c).forEach(([l,d])=>{u[l]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[l].insertRule,{apply:$((p,h,f)=>{const[y,v]=f,{id:g,styleId:_}=Qt(h.parentStyleSheet,e,n.styleMirror);return(g&&g!==-1||_&&_!==-1)&&t({id:g,styleId:_,adds:[{rule:y,index:[...Rr(h),v||0]}]}),p.apply(h,f)})}),d.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:$((p,h,f)=>{const[y]=f,{id:v,styleId:g}=Qt(h.parentStyleSheet,e,n.styleMirror);return(v&&v!==-1||g&&g!==-1)&&t({id:v,styleId:g,removes:[{index:[...Rr(h),y]}]}),p.apply(h,f)})})}),$(()=>{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).forEach(([l,d])=>{d.prototype.insertRule=u[l].insertRule,d.prototype.deleteRule=u[l].deleteRule})})}function Lu({mirror:t,stylesheetManager:e},n){let r=null;n.nodeName==="#document"?r=t.getId(n):r=t.getId(n.host);const s=n.nodeName==="#document"?Dt([n,"access",i=>i.defaultView,"optionalAccess",i=>i.Document]):Dt([n,"access",i=>i.ownerDocument,"optionalAccess",i=>i.defaultView,"optionalAccess",i=>i.ShadowRoot]),o=Dt([s,"optionalAccess",i=>i.prototype])?Object.getOwnPropertyDescriptor(Dt([s,"optionalAccess",i=>i.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return Dt([o,"access",i=>i.get,"optionalAccess",i=>i.call,"call",i=>i(this)])},set(i){const a=Dt([o,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,i)]);if(r!==null&&r!==-1)try{e.adoptStyleSheets(i,r)}catch(c){}return a}}),$(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function tv({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:$((a,c,u)=>{const[l,d,p]=u;if(n.has(l))return o.apply(c,[l,d,p]);const{id:h,styleId:f}=Qt(Dt([c,"access",y=>y.parentRule,"optionalAccess",y=>y.parentStyleSheet]),e,r.styleMirror);return(h&&h!==-1||f&&f!==-1)&&t({id:h,styleId:f,set:{property:l,value:d,priority:p},index:Rr(c.parentRule)}),a.apply(c,u)})});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:$((a,c,u)=>{const[l]=u;if(n.has(l))return i.apply(c,[l]);const{id:d,styleId:p}=Qt(Dt([c,"access",h=>h.parentRule,"optionalAccess",h=>h.parentStyleSheet]),e,r.styleMirror);return(d&&d!==-1||p&&p!==-1)&&t({id:d,styleId:p,remove:{property:l},index:Rr(c.parentRule)}),a.apply(c,u)})}),$(()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i})}function ev({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=$(u=>In($(l=>{const d=Mn(l);if(!d||Et(d,e,n,r,!0))return;const{currentTime:p,volume:h,muted:f,playbackRate:y}=d;t({type:u,id:s.getId(d),currentTime:p,volume:h,muted:f,playbackRate:y})}),o.media||500)),c=[lt("play",a(0),i),lt("pause",a(1),i),lt("seeked",a(2),i),lt("volumechange",a(3),i),lt("ratechange",a(4),i)];return $(()=>{c.forEach(u=>u())})}function nv({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(a,c,u){const l=new o(a,c,u);return s.set(l,{family:a,buffer:typeof c!="string",descriptors:u,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),l};const i=vo(e.fonts,"add",function(a){return function(c){return Ir($(()=>{const u=s.get(c);u&&(t(u),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=o}),r.push(i),$(()=>{r.forEach(a=>a())})}function rv(t){const{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=t;let a=!0;const c=$(()=>{const u=e.getSelection();if(!u||a&&Dt([u,"optionalAccess",p=>p.isCollapsed]))return;a=u.isCollapsed||!1;const l=[],d=u.rangeCount||0;for(let p=0;p<d;p++){const h=u.getRangeAt(p),{startContainer:f,startOffset:y,endContainer:v,endOffset:g}=h;Et(f,r,s,o,!0)||Et(v,r,s,o,!0)||l.push({start:n.getId(f),startOffset:y,end:n.getId(v),endOffset:g})}i({ranges:l})});return c(),lt("selectionchange",c)}function sv({doc:t,customElementCb:e}){const n=t.defaultView;return!n||!n.customElements?()=>{}:vo(n.customElements,"define",function(r){return function(s,o,i){try{e({define:{name:s}})}catch(a){}return r.apply(this,[s,o,i])}})}function ov(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};const r=Au(t,t.doc),s=Y_(t),o=K_(t),i=Du(t),a=J_(t,{win:n}),c=Q_(t),u=ev(t),l=Z_(t,{win:n}),d=Lu(t,t.doc),p=tv(t,{win:n}),h=t.collectFonts?nv(t):()=>{},f=rv(t),y=sv(t),v=[];for(const g of t.plugins)v.push(g.observer(g.callback,n,g.options));return $(()=>{Ye.forEach(g=>g.reset()),r.disconnect(),s(),o(),i(),a(),c(),u(),l(),d(),p(),h(),f(),y(),v.forEach(g=>g())})}function Mr(t){return typeof window[t]<"u"}function Or(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class To{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}
1getId(e,n,r,s){const o=r||this.getIdToRemoteIdMap(e),i=s||this.getRemoteIdToIdMap(e);let a=o.get(n);return a||(a=this.generateIdFn(),o.set(n,a),i.set(a,n)),a}getIds(e,n){const r=this.getIdToRemoteIdMap(e),s=this.getRemoteIdToIdMap(e);return n.map(o=>this.getId(e,o,r,s))}getRemoteId(e,n,r){const s=r||this.getRemoteIdToIdMap(e);return typeof n!="number"?n:s.get(n)||-1}getRemoteIds(e,n){const r=this.getRemoteIdToIdMap(e);return n.map(s=>this.getRemoteId(e,s,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n}getRemoteIdToIdMap(e){let n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n}}function $u(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(e,...i)),e=void 0)}return n}class iv{constructor(){this.crossOriginIframeMirror=new To(yo),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class av{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new To(yo),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new To(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,n){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),$u([this,"access",r=>r.loadListener,"optionalCall",r=>r(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const n=e;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const s=this.transformCrossOriginEvent(r,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(e,n){switch(n.type){case A.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:A.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case A.Meta:case A.Load:case A.DomContentLoaded:return!1;case A.Plugin:return n;case A.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case A.IncrementalSnapshot:switch(n.data.source){case D.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,e);const s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,e,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,e,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,e,["id"])}),n;case D.Drag:case D.TouchMove:case D.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,e,["id"])}),n;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(n.data,e,["id"]),n;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case D.Font:return n;
1case D.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,e,["start","end"])}),n;case D.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),$u([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(s=>{this.replaceStyleIds(s,e,["styleId"])})]),n}}return!1}replace(e,n,r,s){for(const o of s)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=e.getIds(r,n[o]):n[o]=e.getId(r,n[o]));return n}replaceIds(e,n,r){return this.replace(this.crossOriginIframeMirror,e,n,r)}replaceStyleIds(e,n,r){return this.replace(this.crossOriginIframeStyleMirror,e,n,r)}replaceIdOnNode(e,n){this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(e,n){e.type!==ot.Document&&!e.rootId&&(e.rootId=n),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class cv{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class uv{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,n){if(!Tn(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=Au({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Du({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Ir(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Lu({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,n){const r=this;this.restoreHandlers.push(vo(e.prototype,"attachShadow",function(s){return function(o){const i=s.call(this,o);return this.shadowRoot&&Eu(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(n){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class Pu{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class lv{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new F_,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,n){if(e.length===0)return;const r={id:n,styleIds:[]},s=[];for(const o of e){let i;this.styleMirror.has(o)?i=this.styleMirror.getId(o):(i=this.styleMirror.add(o),s.push({styleId:i,rules:Array.from(o.rules||CSSRule,(a,c)=>({rule:cu(a),index:c}))})),r.styleIds.push(i)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class dv{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){j_(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,n){const r=this.nodeMap.get(e);return r&&Array.from(r).some(s=>s!==n)}add(e,n){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let et,Ar;const Tt=p_();function Zt(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:y,maskInputOptions:v,slimDOMOptions:g,maskAttributeFn:_,maskInputFn:b,maskTextFn:I,maxCanvasSize:O=null,packFn:k,sampling:S={},dataURLOptions:K={},mousemoveWait:z,recordCanvas:E=!1,recordCrossOriginIframes:C=!1,recordAfter:q=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:J=!1,collectFonts:ht=!1,inlineImages:mt=!1,plugins:W,keepIframeSrcFn:ft=()=>!1,ignoreCSSAttributes:rt=new Set([]),errorHandler:_t,onMutation:vt,getCanvasManager:Yr}=t;V_(_t);const we=C?window.parent===window:!0;let qt=!1;if(!we)try{window.parent.document&&(qt=!1)}catch(F){qt=!0}if(we&&!e)throw new Error("emit function is required");z!==void 0&&S.mousemove===void 0&&(S.mousemove=z),Tt.reset();const Ee=y===!0?{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}:v!==void 0?v:{},nn=g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:g==="all",headMetaDescKeywords:g==="all"}:g||{};P_();let Kr,Jr=0;const Ko=F=>{for(const bt of W||[])bt.eventProcessor&&(F=bt.eventProcessor(F));return k&&!qt&&(F=k(F)),F};et=(F,bt)=>{const P=F;if(P.timestamp=Cr(),Zn([Ye,"access",Q=>Q[0],"optionalAccess",Q=>Q.isFrozen,"call",Q=>Q()])&&P.type!==A.FullSnapshot&&!(P.type===A.IncrementalSnapshot&&P.data.source===D.Mutation)&&Ye.forEach(Q=>Q.unfreeze()),we)Zn([e,"optionalCall",Q=>Q(Ko(P),bt)]);else if(qt){const Q={type:"rrweb",event:Ko(P),origin:window.location.origin,isCheckout:bt};window.parent.postMessage(Q,"*")}if(P.type===A.FullSnapshot)Kr=P,Jr=0;else if(P.type===A.IncrementalSnapshot){if(P.data.source===D.Mutation&&P.data.isAttachIframe)return;Jr++;const Q=r&&Jr>=r,B=n&&Kr&&P.timestamp-Kr.timestamp>n;(Q||B)&&Qr(!0)}};const Fn=F=>{et({type:A.IncrementalSnapshot,data:{source:D.Mutation,...F}})},Jo=F=>et({type:A.IncrementalSnapshot,data:{source:D.Scroll,...F}}),Fd=F=>et({type:A.IncrementalSnapshot,data:{source:D.CanvasMutation,...F}}),Bd=F=>et({type:A.IncrementalSnapshot,data:{source:D.AdoptedStyleSheet,...F}}),re=new lv({mutationCb:Fn,adoptedStyleSheetCb:Bd}),se=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new iv:new av({mirror:Tt,mutationCb:Fn,stylesheetManager:re,re
1cordCrossOriginIframes:C,wrappedEmit:et});for(const F of W||[])F.getMirror&&F.getMirror({nodeMirror:Tt,crossOriginIframeMirror:se.crossOriginIframeMirror,crossOriginIframeStyleMirror:se.crossOriginIframeStyleMirror});const Xr=new dv,Xo=hv(Yr,{mirror:Tt,win:window,mutationCb:F=>et({type:A.IncrementalSnapshot,data:{source:D.CanvasMutation,...F}}),recordCanvas:E,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:O,sampling:S.canvas,dataURLOptions:K,errorHandler:_t}),Bn=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new cv:new uv({mutationCb:Fn,scrollCb:Jo,bypassOptions:{onMutation:vt,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:Ee,dataURLOptions:K,maskAttributeFn:_,maskTextFn:I,maskInputFn:b,recordCanvas:E,inlineImages:mt,sampling:S,slimDOMOptions:nn,iframeManager:se,stylesheetManager:re,canvasManager:Xo,keepIframeSrcFn:ft,processedNodeManager:Xr},mirror:Tt}),Qr=(F=!1)=>{et({type:A.Meta,data:{href:window.location.href,width:_u(),height:yu()}},F),re.reset(),Bn.init(),Ye.forEach(P=>P.lock());const bt=L_(document,{mirror:Tt,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:Ee,maskAttributeFn:_,maskInputFn:b,maskTextFn:I,slimDOM:nn,dataURLOptions:K,recordCanvas:E,inlineImages:mt,onSerialize:P=>{Su(P,Tt)&&se.addIframe(P),ku(P,Tt)&&re.trackLinkElement(P),ko(P)&&Bn.addShadowRoot(P.shadowRoot,document)},onIframeLoad:(P,Q)=>{se.attachIframe(P,Q),Bn.observeAttachShadow(P)},onStylesheetLoad:(P,Q)=>{re.attachLinkElement(P,Q)},keepIframeSrcFn:ft});if(!bt)return console.warn("Failed to snapshot the document");et({type:A.FullSnapshot,data:{node:bt,initialOffset:gu(window)}}),Ye.forEach(P=>P.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&re.adoptStyleSheets(document.adoptedStyleSheets,Tt.getId(document))};Ar=Qr;try{const F=[],bt=Q=>$(ov)({onMutation:vt,mutationCb:Fn,mousemoveCb:(B,oe)=>et({type:A.IncrementalSnapshot,data:{source:oe,positions:B}}),mouseInteractionCb:B=>et({type:A.IncrementalSnapshot,data:{source:D.MouseInteraction,...B}}),scrollCb:Jo,viewportResizeCb:B=>et({type:A.IncrementalSnapshot,data:{source:D.ViewportResize,...B}}),inputCb:B=>et({type:A.IncrementalSnapshot,data:{source:D.Input,...B}}),mediaInteractionCb:B=>et({type:A.IncrementalSnapshot,data:{source:D.MediaInteraction,...B}}),styleSheetRuleCb:B=>et({type:A.IncrementalSnapshot,data:{source:D.StyleSheetRule,...B}}),styleDeclarationCb:B=>et({type:A.IncrementalSnapshot,data:{source:D.StyleDeclaration,...B}}),canvasMutationCb:Fd,fontCb:B=>et({type:A.IncrementalSnapshot,data:{source:D.Font,...B}}),selectionCb:B=>{et({type:A.IncrementalSnapshot,data:{source:D.Selection,...B}})},customElementCb:B=>{et({type:A.IncrementalSnapshot,data:{source:D.CustomElement,...B}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:Ee,inlineStylesheet:f,sampling:S,recordCanvas:E,inlineImages:mt,userTriggeredOnInput:J,collectFonts:ht,doc:Q,maskAttributeFn:_,maskInputFn:b,maskTextFn:I,keepIframeSrcFn:ft,blockSelector:o,unblockSelector:i,slimDOMOptions:nn,dataURLOptions:K,mirror:Tt,iframeManager:se,stylesheetManager:re,shadowDomManager:Bn,processedNodeManager:Xr,canvasManager:Xo,ignoreCSSAttributes:rt,plugins:Zn([W,"optionalAccess",B=>B.filter,"call",B=>B(oe=>oe.observer),"optionalAccess",B=>B.map,"call",B=>B(oe=>({observer:oe.observer,options:oe.options,callback:Ud=>et({type:A.Plugin,data:{plugin:oe.name,payload:Ud}})}))])||[]},{});se.addLoadListener(Q=>{try{F.push(bt(Q.contentDocument))}catch(B){console.warn(B)}});const P=()=>{Qr(),F.push(bt(document))};return document.readyState==="interactive"||document.readyState==="complete"?P():(F.push(lt("DOMContentLoaded",()=>{et({type:A.DomContentLoaded,data:{}}),q==="DOMContentLoaded"&&P()})),F.push(lt("load",()=>{et({type:A.Load,data:{}}),q==="load"&&P()}
1,window))),()=>{F.forEach(Q=>Q()),Xr.destroy(),Ar=void 0,G_()}}catch(F){console.warn(F)}}function pv(t){if(!Ar)throw new Error("please take full snapshot after start recording");Ar(t)}Zt.mirror=Tt,Zt.takeFullSnapshot=pv;function hv(t,e){try{return t?t(e):new Pu}catch(n){return console.warn("Unable to initialize CanvasManager"),new Pu}}const mv=3,fv=5;function xo(t){return t>9999999999?t:t*1e3}function Co(t){return t>9999999999?t/1e3:t}function On(t,e){e.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:A.Custom,timestamp:(e.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:wt(e,10,1e3)}}),e.category==="console")))}const gv="button,a";function Fu(t){return t.closest(gv)||t}function Bu(t){const e=Uu(t);return!e||!(e instanceof Element)?e:Fu(e)}function Uu(t){return yv(t)?t.target:t}function yv(t){return typeof t=="object"&&!!t&&"target"in t}let te;function _v(t){return te||(te=[],vv()),te.push(t),()=>{const e=te?te.indexOf(t):-1;e>-1&&te.splice(e,1)}}function vv(){it(G,"open",function(t){return function(...e){if(te)try{te.forEach(n=>n())}catch(n){}return t.apply(G,e)}})}function bv(t,e,n){t.handleClick(e,n)}class Sv{constructor(e,n,r=On){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=_v(()=>{this._lastMutation=ju()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,n){if(wv(n,this._ignoreSelector)||!Ev(e))return;const r={timestamp:Co(e.timestamp),clickBreadcrumb:e,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Co(e)}registerScroll(e=Date.now()){this._lastScroll=Co(e)}registerClick(e){const n=Fu(e);this._handleMultiClick(n)}_handleMultiClick(e){this._getClicks(e).forEach(n=>{n.clickCount++})}_getClicks(e){return this._clicks.filter(n=>n.node===e)}_checkClicks(){const e=[],n=ju();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&e.push(r)});for(const r of e){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const n=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,s=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!r&&!s,{clickCount:i,clickBreadcrumb:a}=e;if(o){const c=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",l={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:G.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:i||1}};this._addBreadcrumbEvent(n,l);return}if(i>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:G.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const kv=["A","BUTTON","INPUT"];function wv(t,e){return!!(!kv.includes(t.tagName)||t.tagName==="INPUT"&&!["submit","button"].includes(t.getAttribute("type")||"")||t.tagName==="A"&&(t.hasAttribute("download")||t.hasAttribute("target")&&t.getAttribute("target")!=="_self")||e&&t.matches(e))}function Ev(t){return!!(t.data&&typeof t.data.nodeId=="number"&&t.timestamp)}function ju(){return Date.now()/1e3}function Tv(t,e){try{if(!xv(e))return;const{source:n}=e.data;if(n===D.Mutation&&t.registerMutation(e.timestamp),n===D.Scroll&&t.registerScroll(e.timestamp),Cv(e)){const{type:r,id:s}=e.data,o=Zt.mirror.getNode(s);o instanceof HTMLElement&&r===dt.Click&&t.registerClick(o)}}catch(n){}}function xv(t){return t.type===mv}function Cv(t){return t.data.source===D.MouseInteraction}function Nt(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Dr;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(Dr||(Dr={}));const Iv=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Rv(t){const e={};for(const n in t)if(Iv.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),e[r]=t[n]}return e}const Mv=t=>e=>{if(!t.isEnabled())return;const n=Ov(e);if(!n)return;
1const r=e.name==="click",s=r?e.event:void 0;r&&t.clickDetector&&s&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&bv(t.clickDetector,n,Bu(e.event)),On(t,n)};function Hu(t,e){const n=Zt.mirror.getId(t),r=n&&Zt.mirror.getNode(n),s=r&&Zt.mirror.getMeta(r),o=s&&Dv(s)?s:null;return{message:e,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(i=>i.type===Dr.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:Rv(o.attributes)}}:{}}}function Ov(t){const{target:e,message:n}=Av(t);return Nt({category:"ui.".concat(t.name),...Hu(e,n)})}function Av(t){const e=t.name==="click";let n,r=null;try{r=e?Bu(t.event):Uu(t.event),n=Wt(r,{maxStringLength:200})||"<unknown>"}catch(s){n="<unknown>"}return{target:r,message:n}}function Dv(t){return t.type===Dr.Element}function Nv(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=Lv(e);n&&On(t,n)}function Lv(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=t;if(!i||$v(i)||!o)return null;const a=e||r||s,c=o.length===1;if(!a&&c)return null;const u=Wt(i,{maxStringLength:200})||"<unknown>",l=Hu(i,u);return Nt({category:"ui.keyDown",message:u,data:{...l.data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}function $v(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable}const zu={resource:jv,paint:Bv,navigation:Uv};
1function Pv(t){return t.map(Fv).filter(Boolean)}function Fv(t){return zu[t.entryType]?zu[t.entryType](t):null}function Ke(t){return((ct||G.performance.timeOrigin)+t)/1e3}function Bv(t){const{duration:e,entryType:n,name:r,startTime:s}=t,o=Ke(s);return{type:n,name:r,start:o,end:o+e,data:void 0}}function Uv(t){const{entryType:e,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:y}=t;return s===0?null:{type:"".concat(e,".").concat(y),start:Ke(h),end:Ke(o),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:o,redirectCount:p}}}function jv(t){const{entryType:e,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:"".concat(e,".").concat(n),start:Ke(o),end:Ke(s),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}}function Hv(t){const e=t.entries,n=e[e.length-1],r=n?n.element:void 0,s=t.value,o=Ke(s);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:o,end:o,data:{value:s,size:s,nodeId:r?Zt.mirror.getId(r):void 0}}}function zv(t){function e(s){t.performanceEntries.includes(s)||t.performanceEntries.push(s)}function n({entries:s}){s.forEach(e)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(Jt(s,n))}),r.push(ac(({metric:s})=>{t.replayPerformanceEntries.push(Hv(s))})),()=>{r.forEach(s=>s())}}const V=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qv='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,465 bytes, line 1
1,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
1++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function Wv(){const t=new Blob([qv]);return URL.createObjectURL(t)}function pt(t,e){V&&(m.info(t),e&&qu(t))}function Je(t,e){V&&(m.info(t),e&&setTimeout(()=>{qu(t)},0))}function qu(t){jt({category:"console",data:{logger:"replay"},level:"info",message:t},{level:"info"})}
1class Io extends Error{constructor(){super("Event buffer exceeded maximum size of ".concat(mo,"."))}}class Wu{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const n=JSON.stringify(e).length;if(this._totalSize+=n,this._totalSize>mo)throw new Io;this.events.push(e)}finish(){return new Promise(e=>{const n=this.events;this.clear(),e(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map(n=>n.timestamp).sort()[0];return e?xo(e):null}}class Vv{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((e,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){pt("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,n){const r=this._getAndIncrementId();return new Promise((s,o)=>{const i=({data:a})=>{const c=a;if(c.method===e&&c.id===r){if(this._worker.removeEventListener("message",i),!c.success){V&&m.error("[Replay]",c.response),o(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:e,arg:n})})}_getAndIncrementId(){return this._id++}}class Gv{constructor(e){this._worker=new Vv(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const n=xo(e.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>mo?Promise.reject(new Io):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{V&&m.warn('[Replay] 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 Yv{constructor(e){this._fallback=new Wu,this._compression=new Gv(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}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}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){pt("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:n}=this._fallback,r=[];for(const s of e)r.push(this._compression.addEvent(s));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(s){V&&m.warn("[Replay] Failed to add events when switching buffers.",s)}}}function Kv({useCompression:t,workerUrl:e}){if(t&&window.Worker){const n=Jv(e);if(n)return n}return pt("[Replay] Using simple buffer"),new Wu}function Jv(t){try{const e=t||Xv();if(!e)return;pt("[Replay] Using compression worker".concat(t?" from ".concat(t):""));const n=new Worker(e);return new Yv(n)}catch(e){pt("[Replay] Failed to create compression worker")}}function Xv(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Wv():""}function Ro(){try{return"sessionStorage"in G&&!!G.sessionStorage}catch(t){return!1}}function Qv(t){Zv(),t.session=void 0}function Zv(){if(Ro())try{G.sessionStorage.removeItem(po)}catch(t){}}function Vu(t){return t===void 0?!1:Math.random()<t}function Gu(t){const e=Date.now(),n=t.id||U(),r=t.started||e,s=t.lastActivity||e,o=t.segmentId||0,i=t.sampled,a=t.previousSessionId;return{id:n,started:r,lastActivity:s,segmentId:o,sampled:i,previousSessionId:a}}function Mo(t){if(Ro())try{G.sessionStorage.setItem(po,JSON.stringify(t))}catch(e){}}function tb(t,e){return Vu(t)?"session":e?"buffer":!1}function Yu({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const s=tb(t,e),o=Gu({sampled:s,previousSessionId:r});return n&&Mo(o),o}function eb(t){if(!Ro())return null;try{const e=G.sessionStorage.getItem(po);if(!e)return null;const n=JSON.parse(e);return Je("[Replay] Loading existing session",t),Gu(n)}catch(e){return null}}function Oo(t,e,n=+new Date){return t===null||e===void 0||e<0?!0:e===0?!1:t+e<=n}function Ku(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return Oo(t.started,e,r)||Oo(t.lastActivity,n,r)}function Ju(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!(!Ku(t,{sessionIdleExpire:e,maxReplayDuration:n})||t.sampled==="buffer"&&t.segmentId===0)}function Ao({traceInternals:t,sessionIdleExpire:e,maxReplayDuration:n,previousSessionId:r},s){const o=s.stickySession&&eb(t);return o?Ju(o,{sessionIdleExpire:e,maxReplayDuration:n})?(Je("[Replay] Session in sessionStorage is expired, creating new one..."),Yu(s,{previousSessionId:o.id})):o:(Je("[Replay] Creating new session",t),Yu(s,{previousSessionId:r}))}function nb(t){return t.type===A.Custom}function Do(t,e,n){return Qu(t,e)?(Xu(t,e,n),!0):!1}function rb(t,e,n){return Qu(t,e)?Xu(t,e,n):Promise.resolve(null)}async function Xu(t,e,n){if(!t.eventBuffer)return null;try{n&&t.recordingMode==="buffer"&&t.eventBuffer.clear(),n&&(t.eventBuffer.hasCheckout=!0);const r=t.getOptions(),s=sb(e,r.beforeAddRecordingEvent);return s?await t.eventBuffer.addEvent(s):void 0}catch(r){const s=r&&r instanceof Io?"addEventSizeExceeded":"addEvent";V&&m.error(r),await t.stop({reason:s});const o=R();o&&o.recordDroppedEvent("internal_sdk_error","replay")}}function Qu(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=xo(e.timestamp);return n+t.timeouts.sessionIdlePause<Date.now()?!1:n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration?(pt("[Replay] Skipping event with timestamp ".concat(n," because it is after maxReplayDuration"),t.getOptions()._experiments.traceInternals),!1):!0}
1function sb(t,e){try{if(typeof e=="function"&&nb(t))return e(t)}catch(n){return V&&m.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return t}function No(t){return!t.type}function Lo(t){return t.type==="transaction"}function ob(t){return t.type==="replay_event"}function Zu(t){return t.type==="feedback"}function tl(t){const e=cb();return(n,r)=>{if(!t.isEnabled()||!No(n)&&!Lo(n))return;const s=r&&r.statusCode;if(!(e&&(!s||s<200||s>=300))){if(Lo(n)){ib(t,n);return}ab(t,n)}}}function ib(t,e){const n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}function ab(t,e){const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),t.recordingMode!=="buffer"||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();typeof r=="function"&&!r(e)||setTimeout(()=>{t.sendBufferedReplayOrFlush()})}function cb(){const t=R();if(!t)return!1;const e=t.getTransport();return e&&e.send.__sentry__baseTransport__||!1}function ub(t){return e=>{!t.isEnabled()||!No(e)||lb(t,e)}}function lb(t,e){const n=e.exception&&e.exception.values&&e.exception.values[0].value;if(typeof n=="string"&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Nt({category:"replay.hydrate-error"});On(t,r)}}function db(t,e){return t.type||!t.exception||!t.exception.values||!t.exception.values.length?!1:!!(e.originalException&&e.originalException.__rrweb__)}function pb(t,e){t.triggerUserActivity(),t.addUpdate(()=>e.timestamp?(t.throttledAddEvent({type:A.Custom,timestamp:e.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1):!0)}function hb(t,e){return t.recordingMode!=="buffer"||e.message===ho||!e.exception||e.type?!1:Vu(t.getOptions().errorSampleRate)}function mb(t,e=!1){const n=e?tl(t):void 0;return Object.assign((r,s)=>t.isEnabled()?ob(r)?(delete r.breadcrumbs,r):!No(r)&&!Lo(r)&&!Zu(r)||!t.checkAndHandleExpiredSession()?r:Zu(r)?(t.flush(),r.contexts.feedback.replay_id=t.getSessionId(),pb(t,r),r):db(r,s)&&!t.getOptions()._experiments.captureExceptions?(V&&m.log("[Replay] Ignoring error from rrweb internals",r),null):((hb(t,r)||t.recordingMode==="session")&&(r.tags={...r.tags,replayId:t.getSessionId()}),n&&n(r,{statusCode:200}),r):r,{id:"Replay"})}function Nr(t,e){return e.map(({type:n,start:r,end:s,name:o,data:i})=>{const a=t.throttledAddEvent({type:A.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:s,data:i}}});return typeof a=="string"?Promise.resolve(null):a})}function fb(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}function gb(t){return e=>{if(!t.isEnabled())return;const n=fb(e);n!==null&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(Nr(t,[n]),!1)))}}function yb(t,e){return V&&t.getOptions()._experiments.traceInternals?!1:La(e,R())}function Lr(t,e){t.isEnabled()&&e!==null&&(yb(t,e.name)||t.addUpdate(()=>(Nr(t,[e]),!0)))}function _b(t){const{startTimestamp:e,endTimestamp:n,fetchData:r,response:s}=t;if(!n)return null;const{method:o,url:i}=r;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:i,data:{method:o,statusCode:s?s.status:void 0}}}function vb(t){return e=>{if(!t.isEnabled())return;const n=_b(e);Lr(t,n)}}function bb(t){const{startTimestamp:e,endTimestamp:n,xhr:r}=t,s=r[Ft];if(!e||!n||!s)return null;const{method:o,url:i,status_code:a}=s;return i===void 0?null:{type:"resource.xhr",name:i,start:e/1e3,end:n/1e3,data:{method:o,statusCode:a}}}function Sb(t){return e=>{if(!t.isEnabled())return;const n=bb(e);Lr(t,n)}}function $r(t,e){if(t)try{if(typeof t=="string")return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=sl(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(n){}}function el(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function nl(t){try{if(typeof t=="string")return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[sl(t)];if(!t)return[void 0]}
1catch(e){return V&&m.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return V&&m.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Pr(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function rl(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:c}=e;return{type:t,start:n/1e3,end:r/1e3,name:s,data:at({method:o,statusCode:i,request:a,response:c})}}function An(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function ee(t,e,n){if(!e&&Object.keys(t).length===0)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:s,warnings:o}=kb(n);return r.body=s,o&&o.length>0&&(r._meta={warnings:o}),r}function $o(t,e){return Object.keys(t).reduce((n,r)=>{const s=r.toLowerCase();return e.includes(s)&&t[r]&&(n[s]=t[r]),n},{})}function sl(t){return new URLSearchParams(t).toString()}function kb(t){if(!t||typeof t!="string")return{body:t};const e=t.length>iu,n=wb(t);if(e){const r=t.slice(0,iu);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:"".concat(r,"\u2026"),warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch(r){}return{body:t}}function wb(t){const e=t[0],n=t[t.length-1];return e==="["&&n==="]"||e==="{"&&n==="}"}function Fr(t,e){const n=Eb(t);return Ie(n,e)}function Eb(t,e=G.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(G.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function Tb(t,e,n){try{const r=await Cb(t,e,n),s=rl("resource.fetch",r);Lr(n.replay,s)}catch(r){V&&m.error("[Replay] Failed to capture fetch breadcrumb",r)}}function xb(t,e,n){const{input:r,response:s}=e,o=r?ol(r):void 0,i=$r(o,n.textEncoder),a=s?el(s.headers.get("content-length")):void 0;i!==void 0&&(t.data.request_body_size=i),a!==void 0&&(t.data.response_body_size=a)}async function Cb(t,e,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=e,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=t.data,d=Fr(i,n.networkDetailAllowUrls)&&!Fr(i,n.networkDetailDenyUrls),p=d?Ib(n,e.input,u):An(u),h=await Rb(d,n,e.response,l);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:p,response:h}}function Ib({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const s=n?Ab(n,e):{};if(!t)return ee(s,r,void 0);const o=ol(n),[i,a]=nl(o),c=ee(s,r,i);return a?Pr(c,a):c}async function Rb(t,{networkCaptureBodies:e,textEncoder:n,networkResponseHeaders:r},s,o){if(!t&&o!==void 0)return An(o);const i=s?il(s.headers,r):{};if(!s||!e&&o!==void 0)return ee(i,o,void 0);const[a,c]=await Ob(s),u=Mb(a,{networkCaptureBodies:e,textEncoder:n,responseBodySize:o,captureDetails:t,headers:i});return c?Pr(u,c):u}function Mb(t,{networkCaptureBodies:e,textEncoder:n,responseBodySize:r,captureDetails:s,headers:o}){try{const i=t&&t.length&&r===void 0?$r(t,n):r;return s?e?ee(o,i,t):ee(o,i,void 0):An(i)}catch(i){return V&&m.warn("[Replay] Failed to serialize response body",i),ee(o,r,void 0)}}async function Ob(t){const e=Db(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await Nb(e)]}catch(n){return V&&m.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function ol(t=[]){if(!(t.length!==2||typeof t[1]!="object"))return t[1].body}function il(t,e){const n={};return e.forEach(r=>{t.get(r)&&(n[r]=t.get(r))}),n}function Ab(t,e){return t.length===1&&typeof t[0]!="string"?al(t[0],e):t.length===2?al(t[1],e):{}}function al(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?il(n,e):Array.isArray(n)?{}:$o(n,e):{}}function Db(t){try{return t.clone()}catch(e){V&&m.warn("[Replay] Failed to clone response body",e)}}function Nb(t){return new Promise((e,n)=>{const r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);Lb(t).then(s=>e(s),s=>n(s)).finally(()=>clearTimeout(r))})}
1async function Lb(t){return await t.text()}async function $b(t,e,n){try{const r=Fb(t,e,n),s=rl("resource.xhr",r);Lr(n.replay,s)}catch(r){V&&m.error("[Replay] Failed to capture xhr breadcrumb",r)}}function Pb(t,e,n){const{xhr:r,input:s}=e;if(!r)return;const o=$r(s,n.textEncoder),i=r.getResponseHeader("content-length")?el(r.getResponseHeader("content-length")):Hb(r.response,r.responseType,n.textEncoder);o!==void 0&&(t.data.request_body_size=o),i!==void 0&&(t.data.response_body_size=i)}function Fb(t,e,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=e,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:p}=t.data;if(!c)return null;if(!a||!Fr(c,n.networkDetailAllowUrls)||Fr(c,n.networkDetailDenyUrls)){const k=An(d),S=An(p);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:l,request:k,response:S}}const h=a[Ft],f=h?$o(h.request_headers,n.networkRequestHeaders):{},y=$o(Bb(a),n.networkResponseHeaders),[v,g]=n.networkCaptureBodies?nl(i):[void 0],[_,b]=n.networkCaptureBodies?Ub(a):[void 0],I=ee(f,d,v),O=ee(y,p,_);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:l,request:g?Pr(I,g):I,response:b?Pr(O,b):O}}function Bb(t){const e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce((n,r)=>{const[s,o]=r.split(": ");return n[s.toLowerCase()]=o,n},{}):{}}function Ub(t){const e=[];try{return[t.responseText]}catch(n){e.push(n)}try{return jb(t.response,t.responseType)}catch(n){e.push(n)}return V&&m.warn("[Replay] Failed to get xhr response body",...e),[void 0]}function jb(t,e){try{if(typeof t=="string")return[t];if(t instanceof Document)return[t.body.outerHTML];if(e==="json"&&t&&typeof t=="object")return[JSON.stringify(t)];if(!t)return[void 0]}catch(n){return V&&m.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return V&&m.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Hb(t,e,n){try{const r=e==="json"&&t&&typeof t=="object"?JSON.stringify(t):t;return $r(r,n)}catch(r){return}}function zb(t){const e=R();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:s,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a}=t.getOptions(),c={replay:t,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:s,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a};e&&e.on?e.on("beforeAddBreadcrumb",(u,l)=>qb(c,u,l)):(Gn(vb(t)),Qn(Sb(t)))}catch(n){}}function qb(t,e,n){if(e.data)try{Wb(e)&&Gb(n)&&(Pb(e,n,t),$b(e,n,t)),Vb(e)&&Yb(n)&&(xb(e,n,t),Tb(e,n,t))}catch(r){V&&m.warn("Error when enriching network breadcrumb")}}function Wb(t){return t.category==="xhr"}function Vb(t){return t.category==="fetch"}function Gb(t){return t&&t.xhr}function Yb(t){return t&&t.response}let cl=null;function Kb(t){return!!t.category}const Jb=t=>e=>{if(!t.isEnabled())return;const n=Xb(e);n&&On(t,n)};function Xb(t){const e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return cl===e||!e||(cl=e,!Kb(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))?null:e.category==="console"?Qb(e):Nt(e)}function Qb(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||e.length===0)return Nt(t);let n=!1;const r=e.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>br?(n=!0,"".concat(s.slice(0,br),"\u2026")):s;if(typeof s=="object")try{const o=wt(s,7);return JSON.stringify(o).length>br?(n=!0,"".concat(JSON.stringify(o,null,2).slice(0,br),"\u2026")):o}catch(o){}return s});return Nt({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Zb(t){const e=nt(),n=R();e.addScopeListener(Jb(t)),Ti(Mv(t)),on(gb(t)),zb(t);const r=mb(t,!ul(n));n&&n.addEventProcessor?n.addEventProcessor(r):Ca(r),ul(n)&&(n.on("beforeSendEvent",ub(t)),n.on("afterSendEvent",tl(t)),n.on("createDsc",s=>{const o=t.getSessionId();o&&t.isEnabled()&&t.recordingMode==="session"&&t.checkAndHandleExpiredSession()&&(s.replay_id=o)}),n.on("startTransaction",s=>{t.lastTransaction=s}),n.on("finishTransaction",s=>{t.lastTransaction=s}),n.on("beforeSendFeedback",(s,o)=>{const i=t.getSessionId();o&&o.includeReplay&&t.isEnabled()&&i&&s.contexts&&s.contexts.feedback&&(s.contexts.feedback.replay_id=i)}))}function ul(t){return!!(t&&t.on)}async function t0(t){try{return Promise.all(Nr(t,[e0(G.performance.memory)]))}catch(e){return[]}}function e0(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function n0(t,e,n){let r,s,o;const i=n&&n.maxWait?Math.max(n.maxWait,e):0;function a(){return c(),r=t(),r}function c(){s!==void 0&&clearTimeout(s),o!==void 0&&clearTimeout(o),s=o=void 0}function u(){return s!==void 0||o!==void 0?a():r}function l(){return s&&clearTimeout(s),s=setTimeout(a,e),i&&o===void 0&&(o=setTimeout(a,i)),r}return l.cancel=c,l.flush=u,l}function r0(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession()){V&&m.warn("[Replay] Received replay event after session expired.");return}const s=r||!e;e=!0,t.clickDetector&&Tv(t.clickDetector,n),t.addUpdate(()=>{if(t.recordingMode==="buffer"&&s&&t.setInitialState(),!Do(t,n,s))return!0;
1if(!s)return!1;if(o0(t,s),t.session&&t.session.previousSessionId)return!0;if(t.recordingMode==="buffer"&&t.session&&t.eventBuffer){const o=t.eventBuffer.getEarliestTimestamp();o&&(pt("[Replay] Updating session start time to earliest event in buffer to ".concat(new Date(o)),t.getOptions()._experiments.traceInternals),t.session.started=o,t.getOptions().stickySession&&Mo(t.session))}return t.recordingMode==="session"&&t.flush(),!0})}}function s0(t){const e=t.getOptions();return{type:A.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:t.eventBuffer?t.eventBuffer.type==="worker":!1,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function o0(t,e){!e||!t.session||t.session.segmentId!==0||Do(t,s0(t),!1)}function i0(t,e,n,r){return Ut(qi(t,Ss(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:typeof e=="string"?new TextEncoder().encode(e).length:e.length},e]])}function a0({recordingData:t,headers:e}){let n;const r="".concat(JSON.stringify(e),"\n");if(typeof t=="string")n="".concat(r).concat(t);else{const s=new TextEncoder().encode(r);n=new Uint8Array(s.length+t.length),n.set(s),n.set(t,s.length)}return n}async function c0({client:t,scope:e,replayId:n,event:r}){const s=typeof t._integrations=="object"&&t._integrations!==null&&!Array.isArray(t._integrations)?Object.keys(t._integrations):void 0,o={event_id:n,integrations:s};t.emit&&t.emit("preprocessEvent",r,o);const i=await Ts(t.getOptions(),r,o,e,t,It());if(!i)return null;i.platform=i.platform||"javascript";const a=t.getSdkMetadata&&t.getSdkMetadata(),{name:c,version:u}=a&&a.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},i}async function u0({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=a0({recordingData:t,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=R(),p=nt(),h=d&&d.getTransport(),f=d&&d.getDsn();if(!d||!h||!f||!o.sampled)return;const y={type:Gy,replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:e,segment_id:n,replay_type:o.sampled},v=await c0({scope:p,client:d,replayId:e,event:y});if(!v){d.recordDroppedEvent("event_processor","replay",y),pt("An event processor returned `null`, will not send event.");return}delete v.sdkProcessingMetadata;const g=i0(v,i,f,d.getOptions().tunnel);let _;try{_=await h.send(g)}catch(I){const O=new Error(ho);try{O.cause=I}catch(k){}throw O}if(!_)return _;if(typeof _.statusCode=="number"&&(_.statusCode<200||_.statusCode>=300))throw new ll(_.statusCode);const b=Gi({},_);if(Vi(b,"replay"))throw new dl(b);return _}class ll extends Error{constructor(e){super("Transport returned status code ".concat(e))}}class dl extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function pl(t,e={count:0,interval:Zy}){const{recordingData:n,options:r}=t;if(n.length)try{return await u0(t),!0}catch(s){if(s instanceof ll||s instanceof dl)throw s;if(ta("Replays",{_retryCount:e.count}),V&&r._experiments&&r._experiments.captureExceptions&&he(s),e.count>=t_){const o=new Error("".concat(ho," - max retries exceeded"));try{o.cause=s}catch(i){}throw o}return e.interval*=++e.count,new Promise((o,i)=>{setTimeout(async()=>{try{await pl(t,e),o(!0)}catch(a){i(a)}},e.interval)})}}const hl="__THROTTLED",l0="__SKIPPED";function d0(t,e,n){const r=new Map,s=a=>{const c=a-n;r.forEach((u,l)=>{l<c&&r.delete(l)})},o=()=>[...r.values()].reduce((a,c)=>a+c,0);let i=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),o()>=e){const l=i;return i=!0,l?l0:hl}i=!1;const u=r.get(c)||0;return r.set(c,u+1),t(...a)}}class ne{constructor({options:e,recordingOptions:n}){ne.prototype.__init.call(this),ne.prototype.__init2.call(this),ne.prototype.__init3.call(this),ne.prototype.__init4.call(this),ne.prototype.__init5.call(this),ne.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Yy,sessionIdleExpire:Ky},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=e,this._debouncedFlush=n0(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=d0((i,a)=>rb(this,i,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),o=r?{threshold:Math.min(e_,r),timeout:r,scrollTimeout:n_,ignoreSelector:s?s.join(","):""}:void 0;o&&(this.clickDetector=new Sv(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:n,sessionSampleRate:r}=this._options;
1if(!(n<=0&&r<=0)){if(this._initializeSessionForSampling(e),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Je("[Replay] Starting replay in ".concat(this.recordingMode," mode"),this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");Je("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=Ao({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");Je("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Ao({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Zt({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:Qy},emit:r0(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{pt("[Replay] Stopping Replay".concat(n?" triggered by ".concat(n):""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Qv(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),pt("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),pt("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();pt("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const r=this.stopRecording();!e||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const n=e();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?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&&Oo(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const e="".concat(G.location.pathname).concat(G.location.hash).concat(G.location.search),n="".concat(G.location.origin).concat(e);this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.
1initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(e,n){const r=this._throttledAddEvent(e,n);if(r===hl){const s=Nt({category:"replay.throttled"});this.addUpdate(()=>!Do(this,{type:fv,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const e=this.lastTransaction||nt().getTransaction(),n=(e&&j(e).data||{})[ut];if(!(!e||!n||!["route","custom"].includes(n)))return j(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Kv({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){V&&m.error("[Replay]",e),V&&this._options._experiments&&this._options._experiments.captureExceptions&&he(e)}_initializeSessionForSampling(e){const n=this._options.errorSampleRate>0,r=Ao({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return Ju(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{G.document.addEventListener("visibilitychange",this._handleVisibilityChange),G.addEventListener("blur",this._handleWindowBlur),G.addEventListener("focus",this._handleWindowFocus),G.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Zb(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=zv(this)}_removeListeners(){try{G.document.removeEventListener("visibilitychange",this._handleVisibilityChange),G.removeEventListener("blur",this._handleWindowBlur),G.removeEventListener("focus",this._handleWindowFocus),G.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{G.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Nt({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Nt({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Nv(this,e)}}_doChangeToBackgroundTasks(e){!this.session||Ku(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){pt("[Replay] Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_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:A.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){const e=Pv(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Nr(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:n}=this;if(!e||!n||e.segmentId)return;const r=n.getEarliestTimestamp();
1r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_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){V&&m.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await t0(this),!!this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await pl({replayId:e,recordingData:o,segmentId:s,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});const r=R();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){V&&m.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,r=Date.now()-n;this._debouncedFlush.cancel();const s=r<this._options.minReplayDuration,o=r>this._options.maxReplayDuration+5e3;if(s||o){pt("[Replay] Session duration (".concat(Math.floor(r/1e3),"s) is too ").concat(s?"short":"long",", not sending replay."),this._options._experiments.traceInternals),s&&this._debouncedFlush();return}const i=this.eventBuffer;if(i&&this.session.segmentId===0&&!i.hasCheckout&&pt("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(a){V&&m.error(a)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Mo(this.session)}__init6(){this._onMutationHandler=e=>{const n=e.length,r=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,o=r&&n>r;if(n>s||o){const i=Nt({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(i)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Dn(t,e,n,r){const s=typeof r=="string"?r.split(","):[],o=[...t,...s,...e];return typeof n<"u"&&(typeof n=="string"&&o.push(".".concat(n)),St(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),o.join(",")}function p0({mask:t,unmask:e,block:n,unblock:r,ignore:s,blockClass:o,blockSelector:i,maskTextClass:a,maskTextSelector:c,ignoreClass:u}){const l=['base[href="/"]'],d=Dn(t,[".sentry-mask","[data-sentry-mask]"],a,c),p=Dn(e,[".sentry-unmask","[data-sentry-unmask]"]),h={maskTextSelector:d,unmaskTextSelector:p,blockSelector:Dn(n,[".sentry-block","[data-sentry-block]",...l],o,i),unblockSelector:Dn(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Dn(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return o instanceof RegExp&&(h.blockClass=o),a instanceof RegExp&&(h.maskTextClass=a),h}function h0({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return!r||s.unmaskTextSelector&&t.matches(s.unmaskTextSelector)?o:n.includes(e)||e==="value"&&t.tagName==="INPUT"&&["submit","button"].includes(t.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const ml='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',m0=["content-length","content-type","accept"];let fl=!1;const f0=t=>new $n(t);class $n{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=Jy,flushMaxDelay:n=Xy,minReplayDuration:r=r_,maxReplayDuration:s=au,stickySession:o=!0,useCompression:i=!0,workerUrl:a,_experiments:c={},sessionSampleRate:u,errorSampleRate:l,maskAllText:d=!0,maskAllInputs:p=!0,blockAllMedia:h=!0,mutationBreadcrumbLimit:f=750,mutationLimit:y=1e4,slowClickTimeout:v=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:b=[],networkCaptureBodies:I=!0,networkRequestHeaders:O=[],networkResponseHeaders:k=[],mask:S=[],maskAttributes:K=["title","placeholder"],unmask:z=[],block:E=[],unblock:C=[],ignore:q=[],maskFn:J,beforeAddRecordingEvent:ht,beforeErrorSampling:mt,blockClass:W,blockSelector:ft,maskInputOptions:rt,maskTextClass:_t,maskTextSelector:vt,ignoreClass:Yr}={}){this.name=$n.id;const we=p0({mask:S,unmask:z,block:E,unblock:C,ignore:q,blockClass:W,blockSelector:ft,maskTextClass:_t,maskTextSelector:vt,ignoreClass:Yr});if(this._recordingOptions={maskAllInputs:p,maskAllText:d,maskInputOptions:{...rt||{},password:!0},maskTextFn:J,maskInputFn:J,maskAttributeFn:(qt,Ee,nn)=>h0({maskAttributes:K,maskAllText:d,privacyOptions:we,key:qt,value:Ee,el:nn}),...we,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:qt=>{try{qt.__rrweb__=!0}catch(Ee){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:n,minReplayDuration:Math.min(r,s_),maxReplayDuration:Math.min(s,au),stickySession:o,sessionSampleRate:u,errorSampleRate:l,useCompression:i,workerUrl:a,blockAllMedia:h,maskAllInputs:p,maskAllText:d,mutationBreadcrumbLimit:f,mutationLimit:y,slowClickTimeout:v,slowClickIgnoreSelectors:g,networkDetailAllowUrls:_,networkDetailDenyUrls:b,networkCaptureBodies:I,networkRequestHeaders:gl(O),networkResponseHeaders:gl(k),beforeAddRecordingEvent:ht,beforeErrorSampling:mt,_experiments:c},typeof u=="number"&&(console.warn("[Replay] You are passing `sessionSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysSessionSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ".concat(u," })")),this._initialOptions.sessionSampleRate=u),typeof l=="number"&&(console.warn("[Replay] You are passing `errorSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysOnErrorSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ".concat(l," })")),this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(ml):ml),this._isInitialized&&ms())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return fl}set _isInitialized(e){fl=e}setupOnce(){ms()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}
1startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(e){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(e)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=g0(this._initialOptions);this._replay=new ne({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=R().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}$n.__initStatic();function g0(t){const e=R(),n=e&&e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...at(t)};return n?(t.sessionSampleRate==null&&t.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&St(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate=="number"&&(r.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate=="number"&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(St(()=>{console.warn("SDK client is not available.")}),r)}function gl(t){return[...m0,...t.map(e=>e.toLowerCase())]}function y0(){const t=R();return t&&t.getIntegrationByName&&t.getIntegrationByName("Replay")}var yl;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(yl||(yl={}));function _0(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function Po(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Po(t.parentNode,e,n,r+1)}function _l(t,e){return n=>{const r=n;if(r===null)return!1;try{if(t){if(typeof t=="string"){if(r.matches(".".concat(t)))return!0}else if(_0(r,t))return!0}return!!(e&&r.matches(e))}catch(s){return!1}}}const Xe="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 vl={map:{},getId(){return console.error(Xe),-1},getNode(){return console.error(Xe),null},removeNodeFromMap(){console.error(Xe)},has(){return console.error(Xe),!1},reset(){console.error(Xe)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(vl=new Proxy(vl,{get(t,e,n){return e==="map"&&console.error(Xe),Reflect.get(t,e,n)}}));function Fo(t,e,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(t,e);return s.Object.defineProperty(t,e,r?n:{set(i){kl(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>Fo(t,e,o||{},!0)}function Bo(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=s,()=>{t[e]=r}}catch(r){return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString());function v0(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function Br(t,e,n,r,s){if(!t)return!1;const o=v0(t);if(!o)return!1;const i=_l(e,n),a=Po(o,i);let c=-1;return a<0?!1:(r&&(c=Po(o,_l(null,r))),a>-1&&c<0?!0:a<c)}const bl={};function Sl(t){const e=bl[t];if(e)return e;const n=window.document;let r=window[t];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(s)}catch(s){}return bl[t]=r.bind(window)}function ve(...t){return Sl("requestAnimationFrame")(...t)}function kl(...t){return Sl("setTimeout")(...t)}var Qe=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(Qe||{});let Ur;function b0(t){Ur=t}const wl=t=>Ur?(...e)=>{try{return t(...e)}catch(n){if(Ur&&Ur(n)===!0)return()=>{};throw n}}:t;for(var Ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",S0=typeof Uint8Array>"u"?[]:new Uint8Array(256),jr=0;jr<Ze.length;jr++)S0[Ze.charCodeAt(jr)]=jr;var k0=function(t){var e=new Uint8Array(t),n,r=e.length,s="";for(n=0;n<r;n+=3)s+=Ze[e[n]>>2],s+=Ze[(e[n]&3)<<4|e[n+1]>>4],s+=Ze[(e[n+1]&15)<<2|e[n+2]>>6],s+=Ze[e[n+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const El=new Map;function w0(t,e){let n=El.get(t);return n||(n=new Map,El.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}const Tl=(t,e,n)=>{if(!t||!(Cl(t,e)||typeof t=="object"))return;const r=t.constructor.name,s=w0(n,r);let o=s.indexOf(t);return o===-1&&(o=s.length,s.push(t)),o};function Hr(t,e,n){if(t instanceof Array)return t.map(r=>Hr(r,e,n));if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){const r=t.constructor.name,s=k0(t);return{rr_type:r,base64:s}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[Hr(t.buffer,e,n),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const r=t.constructor.name,{src:s}=t;return{rr_type:r,src:s}}else if(t instanceof HTMLCanvasElement){const r="HTMLImageElement",s=t.toDataURL();return{rr_type:r,src:s}}else{if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[Hr(t.data,e,
1n),t.width,t.height]};if(Cl(t,e)||typeof t=="object"){const r=t.constructor.name,s=Tl(t,e,n);return{rr_type:r,index:s}}}}return t}const xl=(t,e,n)=>t.map(r=>Hr(r,e,n)),Cl=(t,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof e[n]=="function").find(n=>t instanceof e[n]);function E0(t,e,n,r,s){const o=[],i=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const a of i)try{if(typeof e.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=Bo(e.CanvasRenderingContext2D.prototype,a,function(u){return function(...l){return Br(this.canvas,n,r,s,!0)||kl(()=>{const d=xl(l,e,this);t(this.canvas,{type:Qe["2D"],property:a,args:d})},0),u.apply(this,l)}});o.push(c)}catch(c){const u=Fo(e.CanvasRenderingContext2D.prototype,a,{set(l){t(this.canvas,{type:Qe["2D"],property:a,args:[l],setter:!0})}});o.push(u)}return()=>{o.forEach(a=>a())}}function T0(t){return t==="experimental-webgl"?"webgl":t}function Il(t,e,n,r,s){const o=[];try{const i=Bo(t.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!Br(this,e,n,r,!0)){const l=T0(c);if("__context"in this||(this.__context=l),s&&["webgl","webgl2"].includes(l))if(u[0]&&typeof u[0]=="object"){const d=u[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});o.push(i)}catch(i){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(i=>i())}}function Rl(t,e,n,r,s,o,i,a){const c=[],u=Object.getOwnPropertyNames(t);for(const l of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof t[l]!="function")continue;const d=Bo(t,l,function(p){return function(...h){const f=p.apply(this,h);if(Tl(f,a,this),"tagName"in this.canvas&&!Br(this.canvas,r,s,o,!0)){const y=xl(h,a,this),v={type:e,property:l,args:y};n(this.canvas,v)}return f}});c.push(d)}catch(d){const p=Fo(t,l,{set(h){n(this.canvas,{type:e,property:l,args:[h],setter:!0})}});c.push(p)}return c}function x0(t,e,n,r,s,o){const i=[];return i.push(...Rl(e.WebGLRenderingContext.prototype,Qe.WebGL,t,n,r,s,o,e)),typeof e.WebGL2RenderingContext<"u"&&i.push(...Rl(e.WebGL2RenderingContext.prototype,Qe.WebGL2,t,n,r,s,o,e)),()=>{i.forEach(a=>a())}}var C0='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function I0(){const t=new Blob([C0]);return URL.createObjectURL(t)}class R0{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(d,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(d)||this.pendingCanvasMutations.set(d,[]),this.pendingCanvasMutations.get(d).push(p)};const{sampling:n="all",win:r,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:a,recordCanvas:c,dataURLOptions:u,errorHandler:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,l&&b0(l),!e.enableManualSnapshot&&wl(()=>{c&&n==="all"&&this.initCanvasMutationObserver(r,s,o,i),c&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,s,o,i,a,{dataURLOptions:u})})()}initCanvasFPSObserver(e,n,r,s,o,i,a){const c=Il(n,r,s,o,!0),u=this.takeSnapshot(!1,e,n,r,s,o,i,a.dataURLOptions);this.resetObservers=()=>{c(),cancelAnimationFrame(u)}}initCanvasMutationObserver(e,n,r,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const o=Il(e,n,r,s,!1),i=E0(this.processMutation.bind(this),e,n,r,s),a=x0(this.processMutation.bind(this),e,n,r,s,this.mirror);this.resetObservers=()=>{o(),i(),a()}}
1snapshot(e){const{options:n}=this,r=this.takeSnapshot(!0,n.sampling==="all"?2:n.sampling||2,n.win,n.blockClass,n.blockSelector,n.unblockSelector,n.maxCanvasSize,n.dataURLOptions,e);this.resetObservers=()=>{cancelAnimationFrame(r)}}takeSnapshot(e,n,r,s,o,i,a,c,u){const l=new Map,d=new Worker(I0());d.onmessage=g=>{const _=g.data,{id:b}=_;if(l.set(b,!1),!("base64"in _))return;const{base64:I,type:O,width:k,height:S}=_;this.mutationCb({id:b,type:Qe["2D"],commands:[{property:"clearRect",args:[0,0,k,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:I}],type:O}]},0,0,k,S]}]})};const p=1e3/n;let h=0,f;const y=g=>{if(g)return[g];const _=[];return r.document.querySelectorAll("canvas").forEach(b=>{Br(b,s,o,i)||_.push(b)}),_},v=g=>{if(h&&g-h<p){f=ve(v);return}h=g,y(u).forEach(_=>{const b=this.mirror.getId(_);if(!l.get(b)&&!(!_.width||!_.height)){if(l.set(b,!0),!e&&["webgl","webgl2"].includes(_.__context)){const I=_.getContext(_.__context);Zn([I,"optionalAccess",O=>O.getContextAttributes,"call",O=>O(),"optionalAccess",O=>O.preserveDrawingBuffer])===!1&&I.clear(I.COLOR_BUFFER_BIT)}createImageBitmap(_).then(I=>{d.postMessage({id:b,bitmap:I,width:_.width,height:_.height,dataURLOptions:c,maxCanvasSize:a},[I])}).catch(I=>{wl(()=>{throw I})()})}}),f=ve(v)};return f=ve(v),f}startPendingCanvasMutationFlusher(){ve(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=n=>{this.rafStamps.latestId=n,ve(e)};ve(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),ve(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||n===-1)return;const s=r.map(i=>{const{type:a,...c}=i;return c}),{type:o}=r[0];this.mutationCb({id:n,type:o,commands:s}),this.pendingCanvasMutations.delete(e)}}const Ml={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},Ol="ReplayCanvas",zr=1280,M0=(t={})=>{const[e,n]=t.maxCanvasSize||[],r={quality:t.quality||"medium",enableManualSnapshot:t.enableManualSnapshot,maxCanvasSize:[e?Math.min(e,zr):zr,n?Math.min(n,zr):zr]};let s;const o=new Promise(i=>s=i);return{name:Ol,setupOnce(){},getOptions(){const{quality:i,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const l=new R0({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:d=>{try{typeof d=="object"&&(d.__rrweb__=!0)}catch(p){}}});return s(l),l},...Ml[i||"medium"]||Ml.medium}},async snapshot(i){(await o).snapshot(i)}}},Al=M0,O0=Z(Ol,Al),be=M,Uo="#ffffff",Dl="inherit",jo="rgba(108, 95, 199, 1)",Nl={fontFamily:"system-ui, 'Helvetica Neue', Arial, sans-serif",fontSize:"14px",background:Uo,backgroundHover:"#f6f6f7",foreground:"#2b2233",border:"1.5px solid rgba(41, 35, 47, 0.13)",borderRadius:"25px",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",success:"#268d75",error:"#df3338",submitBackground:"rgba(88, 74, 192, 1)",submitBackgroundHover:jo,submitBorder:jo,submitOutlineFocus:"#29232f",submitForeground:Uo,submitForegroundHover:Uo,cancelBackground:"transparent",cancelBackgroundHover:"var(--background-hover)",cancelBorder:"var(--border)",cancelOutlineFocus:"var(--input-outline-focus)",cancelForeground:"var(--foreground)",cancelForegroundHover:"var(--foreground)",inputBackground:Dl,inputForeground:Dl,inputBorder:"var(--border)",inputOutlineFocus:jo,formBorderRadius:"20px",formContentBorderRadius:"6px"},Ll={light:Nl,dark:{...Nl,background:"#29232f",backgroundHover:"#352f3b",foreground:"#ebe6ef",border:"1.5px solid rgba(235, 230, 239, 0.15)",success:"#2da98c",error:"#f55459"}},A0="Report a Bug",D0="Cancel",N0="Send Bug Report",L0="Report a Bug",$0="[email protected]",P0="Email",F0="What's the bug? What did you expect?",B0="Description",U0="Your Name",j0="Name",H0="(required)",z0="Thank y
1ou for your report!",$l="widget",Pl="api";async function q0({client:t,scope:e,event:n}){const r={};t.emit&&t.emit("preprocessEvent",n,r);const s=await Ts(t.getOptions(),n,r,e,t,It());return s===null?(t.recordDroppedEvent("event_processor","feedback",n),null):(s.platform=s.platform||"javascript",s)}async function W0({feedback:{message:t,email:e,name:n,source:r,url:s}},{includeReplay:o=!0}={}){const i=R(),a=i&&i.getTransport(),c=i&&i.getDsn();if(!i||!a||!c)return;const u={contexts:{feedback:{contact_email:e,name:n,message:t,url:s,source:r}},type:"feedback"};return Kt(async l=>{l.clearBreadcrumbs(),[Pl,$l].includes(String(r))&&l.setLevel("info");const d=await q0({scope:l,client:i,event:u});if(!d)return;i.emit&&i.emit("beforeSendFeedback",d,{includeReplay:!!o});const p=_a(d,c,i.getOptions()._metadata,i.getOptions().tunnel);let h;try{h=await a.send(p)}catch(f){const y=new Error("Unable to send Feedback");try{y.cause=f}catch(v){}throw y}if(h){if(typeof h.statusCode=="number"&&(h.statusCode<200||h.statusCode>=300))throw new Error("Unable to send Feedback");return h}})}function Fl({name:t,email:e,message:n,source:r=Pl,url:s=ii()},o={}){if(!n)throw new Error("Unable to submit feedback with empty message");return W0({feedback:{name:t,email:e,message:n,url:s,source:r}},o)}const Se=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Bl(t,e){return{...t,...e,themeDark:{...t.themeDark,...e.themeDark},themeLight:{...t.themeLight,...e.themeLight}}}function V0(t){const e=t.createElement("style");return e.textContent="\n.widget__actor {\n  position: fixed;\n  left: var(--left);\n  right: var(--right);\n  bottom: var(--bottom);\n  top: var(--top);\n  z-index: var(--z-index);\n\n  line-height: 16px;\n\n  display: flex;\n  align-items: center;\n  gap: 8px;\n\n  border-radius: var(--border-radius);\n  cursor: pointer;\n  font-family: inherit;\n  font-size: var(--font-size);\n  font-weight: 600;\n  padding: 16px;\n  text-decoration: none;\n  z-index: 9000;\n\n  color: var(--foreground);\n  background-color: var(--background);\n  border: var(--border);
1\n  box-shadow: var(--box-shadow);\n  opacity: 1;\n  transition: opacity 0.1s ease-in-out;\n}\n\n.widget__actor:hover {\n  background-color: var(--background-hover);\n}\n\n.widget__actor svg {\n  width: 16px;\n  height: 16px;\n}\n\n.widget__actor--hidden {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n}\n\n.widget__actor__text {\n}\n\n@media (max-width: 600px) {\n  .widget__actor__text {\n    display: none;\n  }\n}\n\n.feedback-icon path {\n  fill: var(--foreground);\n}\n",e}function G0(t){const e=t.createElement("style");return e.textContent="\n.dialog {\n  line-height: 25px;\n  background-color: rgba(0, 0, 0, 0.05);\n  border: none;\n  position: fixed;\n  inset: 0;\n  z-index: 10000;\n  width: 100vw;\n  height: 100vh;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  opacity: 1;\n  transition: opacity 0.2s ease-in-out;\n}\n\n.dialog:not([open]) {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n  transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n  position: fixed;\n  left: var(--left);\n  right: var(--right);\n  bottom: var(--bottom);\n  top: var(--top);\n\n  border: var(--border);\n  border-radius: var(--form-border-radius);\n  background-color: var(--background);\n  color: var(--foreground);\n\n  width: 320px;\n  max-width: 100%;\n  max-height: calc(100% - 2rem);\n  display: flex;\n  flex-direction: column;
1\n  box-shadow: var(--box-shadow);\n  transition: transform 0.2s ease-in-out;\n  transform: translate(0, 0) scale(1);\n}\n\n.dialog__header {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  font-size: 20px;\n  font-weight: 600;\n  padding: 24px 24px 0 24px;\n  margin: 0;\n  margin-bottom: 16px;\n}\n\n.brand-link {\n  display: inline-flex;\n}\n\n.error {\n  color: var(--error);\n  margin-bottom: 16px;\n}\n\n.form {\n  display: grid;\n  overflow: auto;\n  flex-direction: column;\n  gap: 16px;\n  padding: 0 24px 24px;\n}\n\n.form__error-container {\n  color: var(--error);\n}\n\n.form__error-container--hidden {\n  display: none;\n}\n\n.form__label {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0px;\n}\n\n.form__label__text {\n  display: grid;\n  gap: 4px;\n  align-items: center;\n  grid-auto-flow: column;\n  grid-auto-columns: max-content;\n}\n\n.form__label__text--required {\n  font-size: 0.85em;\n}\n\n.form__input {\n  line-height: inherit;\n  background-color: var(--input-background);\n  box-sizing: border-box;\n  border: var(--input-border);\n  border-radius: var(--form-content-border-radius);\n  color: var(--input-foreground);\n  font-family: inherit;\n  font-size: var(--font-size);\n  font-weight: 500;\n  padding: 6px 12px;\n}\n\n.form__input::placeholder {\n  color: var(--input-foreground);\n  opacity: 0.65;\n}\n\n.form__input:focus-visible {\n  outline: 1px auto var(--input-outline-focus);\n}\n\n.form__input--textarea {\n  font-family: inherit;\n  resize: vertical;\n}\n\n.btn-group {\n  display: grid;\n  gap: 8px;\n  margin-top: 8px;\n}\n\n.btn {\n  line-height: inherit;\n  border: var(--cancel-border);\n  border-radius: var(--form-content-border-radius);\n  cursor: pointer;\n  font-family: inherit;\n  font-size: var(--font-size);\n  font-weight: 600;\n  padding: 6px 16px;\n}\n.btn[disabled] {\n  opacity: 0.6;\n  pointer-events: none;\n}\n\n.btn--primary {\n  background-color: var(--submit-background);\n  border-color: var(--submit-border);\n  color: var(--submit-foreground);\n}\n.btn--primary:hover {\n  background-color: var(--submit-background-hover);\n  color: var(--submit-foreground-hover);\n}\n.btn--primary:focus-visible {\n  outline: 1px auto var(--submit-outline-focus);\n}\n\n.btn--default {\n  background-color: var(--cancel-background);\n  color: var(--cancel-foreground);\n  font-weight: 500;\n}\n.btn--default:hover {\n  background-color: var(--cancel-background-hover);\n  color: var(--cancel-foreground-hover);\n}\n.btn--default:focus-visible {\n  outline: 1px auto var(--cancel-outline-focus);\n}\n\n.success-message {\n  background-color: var(--background);\n  border: var(--border);\n  border-radius: var(--border-radius);
1\n  box-shadow: var(--box-shadow);\n  font-weight: 600;\n  color: var(--success);\n  padding: 12px 24px;\n  line-height: 25px;\n  display: grid;\n  align-items: center;\n  grid-auto-flow: column;\n  gap: 6px;\n  cursor: default;\n}\n\n.success-icon path {\n  fill: var(--success);\n}\n",e}function Ul(t){return"\n  --background: ".concat(t.background,";\n  --background-hover: ").concat(t.backgroundHover,";\n  --foreground: ").concat(t.foreground,";\n  --error: ").concat(t.error,";\n  --success: ").concat(t.success,";\n  --border: ").concat(t.border,";\n  --border-radius: ").concat(t.borderRadius,";\n  --box-shadow: ").concat(t.boxShadow,";\n\n  --submit-background: ").concat(t.submitBackground,";\n  --submit-background-hover: ").concat(t.submitBackgroundHover,";\n  --submit-border: ").concat(t.submitBorder,";\n  --submit-outline-focus: ").concat(t.submitOutlineFocus,";\n  --submit-foreground: ").concat(t.submitForeground,";\n  --submit-foreground-hover: ").concat(t.submitForegroundHover,";\n\n  --cancel-background: ").concat(t.cancelBackground,";\n  --cancel-background-hover: ").concat(t.cancelBackgroundHover,";\n  --cancel-border: ").concat(t.cancelBorder,";\n  --cancel-outline-focus: ").concat(t.cancelOutlineFocus,";\n  --cancel-foreground: ").concat(t.cancelForeground,";\n  --cancel-foreground-hover: ").concat(t.cancelForegroundHover,";\n\n  --input-background: ").concat(t.inputBackground,";\n  --input-foreground: ").concat(t.inputForeground,";\n  --input-border: ").concat(t.inputBorder,";\n  --input-outline-focus: ").concat(t.inputOutlineFocus,";\n\n  --form-border-radius: ").concat(t.formBorderRadius,";\n  --form-content-border-radius: ").concat(t.formContentBorderRadius,";\n  ")}function Y0(t,e,n){const r=t.createElement("style");return r.textContent="\n:host {\n  --bottom: 1rem;\n  --right: 1rem;\n  --top: auto;\n  --left: auto;\n  --z-index: 100000;\n  --font-family: ".concat(n.light.fontFamily,";\n  --font-size: ").concat(n.light.fontSize,";\n\n  position: fixed;\n  left: var(--left);\n  right: var(--right);\n  bottom: var(--bottom);\n  top: var(--top);\n  z-index: var(--z-index);\n\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n\n  ").concat(Ul(e==="dark"?n.dark:n.light),"\n}\n\n").concat(e==="system"?"\n@media (prefers-color-scheme: dark) {\n  :host {\n    ".concat(Ul(n.dark),"\n  }\n}"):"","\n}"),r}function K0({id:t,colorScheme:e,themeDark:n,themeLight:r}){try{const s=be.document,o=s.createElement("div");o.id=t;const i=o.attachShadow({mode:"open"});return i.appendChild(Y0(s,e,{dark:n,light:r})),i.appendChild(G0(s)),{shadow:i,host:o}}catch(s){throw m.warn("[Feedback] Browser does not support shadow DOM API"),new Error("Browser does not support shadow DOM API.")}}async function J0(t,e,n){if(!t)return;const r=()=>{t&&t.showError("There was a problem submitting feedback, please wait and try again.")};t.hideError();try{return await Fl({...e,source:$l},n)}catch(s){Se&&m.error(s),r()}}function gt(t,e){return Object.entries(e).forEach(([n,r])=>{t.setAttributeNS(null,n,r)}),t}const tn=20,X0="http://www.w3.org/2000/svg";function Q0(){const t=a=>be.document.createElementNS(X0,a),e=gt(t("svg"),{class:"feedback-icon",width:"".concat(tn),height:"".concat(tn),viewBox:"0 0 ".concat(tn," ").concat(tn),fill:"none"}),n=gt(t("g"),{clipPath:"url(#clip0_57_80)"}),r=gt(t("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.45
156 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});e.appendChild(n).appendChild(r);const s=t("defs"),o=gt(t("clipPath"),{id:"clip0_57_80"}),i=gt(t("rect"),{width:"".concat(tn),height:"".concat(tn),fill:"white"});return o.appendChild(i),s.appendChild(o),e.appendChild(s).appendChild(o).appendChild(i),{get el(){return e}}}function X(t,e,...n){const r=be.document.createElement(t);e&&Object.entries(e).forEach(([s,o])=>{s==="className"&&typeof o=="string"?r.setAttribute("class",o):typeof o=="boolean"&&o?r.setAttribute(s,""):typeof o=="string"?r.setAttribute(s,o):s.startsWith("on")&&typeof o=="function"&&r.addEventListener(s.substring(2).toLowerCase(),o)});for(const s of n)jl(r,s);return r}function jl(t,e){const n=be.document;if(!(typeof e>"u"||e===null))if(Array.isArray(e))for(const r of e)jl(t,r);else e===!1||(typeof e=="string"?t.appendChild(n.createTextNode(e)):e instanceof Node?t.appendChild(e):t.appendChild(n.createTextNode(String(e))))}function Z0({buttonLabel:t,onClick:e}){function n(s){e&&e(s)}const r=X("button",{type:"button",className:"widget__actor","aria-label":t,"aria-hidden":"false"},Q0().el,t?X("span",{className:"widget__actor__text"},t):null);return r.addEventListener("click",n),{get el(){return r},show:()=>{r.classList.remove("widget__actor--hidden"),r.setAttribute("aria-hidden","false")},hide:()=>{r.classList.add("widget__actor--hidden"),r.setAttribute("aria-hidden","true")}}}function tS({label:t}){return{el:X("button",{type:"submit",className:"btn btn--primary","aria-label":t},t)}}function Ho(t,e){const n=t.get(e);return typeof n=="string"?n.trim():""}function eS({nameLabel:t,namePlaceholder:e,emailLabel:n,emailPlaceholder:r,messageLabel:s,messagePlaceholder:o,isRequiredLabel:i,cancelButtonLabel:a,submitButtonLabel:c,showName:u,showEmail:l,isNameRequired:d,isEmailRequired:p,defaultName:h,defaultEmail:f,onCancel:y,onSubmit:v}){const{el:g}=tS({label:c});function _(C){if(C.preventDefault(),C.target instanceof HTMLFormElement)try{if(v){const q=new FormData(C.target),J={name:Ho(q,"name"),email:Ho(q,"email"),message:Ho(q,"message")};v(J)}}catch(q){}}const b=X("div",{className:"form__error-container form__error-container--hidden","aria-hidden":"true"});function I(C){b.textContent=C,b.classList.remove("form__error-container--hidden"),b.setAttribute("aria-hidden","false")}function O(){b.textContent="",b.classList.add("form__error-container--hidden"),b.setAttribute("aria-hidden","true")}const k=X("input",{id:"name",type:u?"text":"hidden","aria-hidden":u?"false":"true",name:"name",required:d,className:"form__input",placeholder:e,value:h}),S=X("input",{id:"email",type:l?"text":"hidden","aria-hidden":l?"false":"true",name:"email",required:p,className:"form__input",placeholder:r,value:f}),K=X("textarea",{id:"message",autoFocus:"true",rows:"5",name:"message",required:!0,className:"form__input form__input--textarea",placeholder:o}),z=X("button",{type:"button",className:"btn btn--default","aria-label":a,onClick:C=>{y&&y(C)}},a),E=X("form",{className:"form",onSubmit:_},[b,u&&X("label",{htmlFor:"name",className:"form__label"},[X("span",{className:"form__label__text"},t,d&&X("span",{className:"form__label__text--required"}," ".concat(i))),k]),!u&&k,l&&X("label",{htmlFor:"email",className:"form__label"},[X("span",{className:"form__label__text"},n,p&&X("span",{className:"form__label__text--required"}," ".concat(i))),S]),!l&&S,X("label",{htmlFor:"message",className:"form__label"},[X("span",{className:"form__label__text"},s,X("span",{className:"form__label__text--required"}," ".concat(i))),K]),X("div",{className:"btn-group"},[g,z])]);return{get el(){return E},showError:I,hideError:O}}const nS="http://www.w3.org/2000/svg";function rS({colorScheme:t}){const e=i=>be.document.createElementNS(nS,i),n=gt(e("svg"),{class:"sentry-logo",width:"32",height:"30",viewBox:"0 0 72 66",fill:"none"}),r=gt(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});n.append(r);const s=e("defs"),o=e("style");return o.textContent="\n    path {\n      fill: ".concat(t==="dark"?"#fff":"#362d59",";\n    }"),t==="system"&&(o.textContent+="\n    @media (prefers-color-scheme: dark) {\n      path: {\n        fill: '#fff';\n      }\n    }\n    "),s.append(o),n.append(s),{get el(){return n}}}
1function sS({formTitle:t,showBranding:e,showName:n,showEmail:r,isNameRequired:s,isEmailRequired:o,colorScheme:i,defaultName:a,defaultEmail:c,onClosed:u,onCancel:l,onSubmit:d,...p}){let h=null;function f(){y(),u&&u()}function y(){h&&(h.open=!1)}function v(){h&&(h.open=!0)}function g(){return h&&h.open===!0||!1}const{el:_,showError:b,hideError:I}=eS({showEmail:r,showName:n,isEmailRequired:o,isNameRequired:s,defaultName:a,defaultEmail:c,onSubmit:d,onCancel:l,...p});return h=X("dialog",{className:"dialog",open:!0,onClick:f},X("div",{className:"dialog__content",onClick:O=>{O.stopPropagation()}},X("h2",{className:"dialog__header"},t,e&&X("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},rS({colorScheme:i}).el)),_)),{get el(){return h},showError:b,hideError:I,open:v,close:y,checkIsOpen:g}}const qr=16,Hl=17,oS="http://www.w3.org/2000/svg";function iS(){const t=c=>be.document.createElementNS(oS,c),e=gt(t("svg"),{class:"success-icon",width:"".concat(qr),height:"".concat(Hl),viewBox:"0 0 ".concat(qr," ").concat(Hl),fill:"none"}),n=gt(t("g"),{clipPath:"url(#clip0_57_156)"}),r=gt(t("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),s=gt(t("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});e.appendChild(n).append(s,r);const o=t("defs"),i=gt(t("clipPath"),{id:"clip0_57_156"}),a=gt(t("rect"),{width:"".concat(qr),height:"".concat(qr),fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),o.appendChild(i),e.appendChild(o).appendChild(i).appendChild(a),{get el(){return e}}}function aS({message:t,onRemove:e}){function n(){r&&(r.remove(),e&&e())}const r=X("div",{className:"success-message",onClick:n},iS().el,t);return{el:r,remove:n}}function zl({shadow:t,options:{shouldCreateActor:e=!0,...n},attachTo:r}){let s,o,i=!1;function a(){if(t)try{const g=aS({message:n.successMessageText,onRemove:()=>{_&&clearTimeout(_),l()}});if(!g.el)throw new Error("Unable to show success message");t.appendChild(g.el);const _=setTimeout(()=>{g&&g.remove()},5e3)}catch(g){m.error(g)}}async function c(g){if(!o)return;const _=[];if(n.isNameRequired&&!g.name&&_.push(n.nameLabel),n.isEmailRequired&&!g.email&&_.push(n.emailLabel),g.message||_.push(n.messageLabel),_.length>0){o.showError("Please enter in the following required fields: ".concat(_.join(", ")));return}if(!await J0(o,g)){n.onSubmitError&&n.onSubmitError();return}y(),a(),n.onSubmitSuccess&&n.onSubmitSuccess()}function u(){const g=R(),_=g&&g.getIntegrationByName&&g.getIntegrationByName("Replay");_&&_.flush().catch(b=>{Se&&m.error(b)})}function l(){s&&s.show()}function d(){s&&s.hide()}function p(){s&&s.el&&s.el.remove()}function h(){try{if(o){o.open(),i=!0,n.onFormOpen&&n.onFormOpen(),u();return}const g=n.useSentryUser,_=nt(),b=_&&_.getUser();if(o=sS({colorScheme:n.colorScheme,showBranding:n.showBranding,showName:n.showName||n.isNameRequired,showEmail
1:n.showEmail||n.isEmailRequired,isNameRequired:n.isNameRequired,isEmailRequired:n.isEmailRequired,formTitle:n.formTitle,cancelButtonLabel:n.cancelButtonLabel,submitButtonLabel:n.submitButtonLabel,emailLabel:n.emailLabel,emailPlaceholder:n.emailPlaceholder,messageLabel:n.messageLabel,messagePlaceholder:n.messagePlaceholder,nameLabel:n.nameLabel,namePlaceholder:n.namePlaceholder,isRequiredLabel:n.isRequiredLabel,defaultName:g&&b&&b[g.name]||"",defaultEmail:g&&b&&b[g.email]||"",onClosed:()=>{l(),i=!1,n.onFormClose&&n.onFormClose()},onCancel:()=>{f(),l()},onSubmit:c}),!o.el)throw new Error("Unable to open Feedback dialog");t.appendChild(o.el),d(),n.onFormOpen&&n.onFormOpen(),u()}catch(g){m.error(g)}}function f(){o&&(o.close(),i=!1,n.onFormClose&&n.onFormClose())}function y(){if(o){f();const g=o.el;g&&g.remove(),o=void 0}}function v(){i||h(),d()}return r?r.addEventListener("click",v):e&&(s=Z0({buttonLabel:n.buttonLabel,onClick:v}),s.el&&t.appendChild(s.el)),{get actor(){return s},get dialog(){return o},showActor:l,hideActor:d,removeActor:p,openDialog:h,closeDialog:f,removeDialog:y}}const Wr=be.document,cS=t=>new Pn(t);class Pn{static __initStatic(){this.id="Feedback"}constructor({autoInject:e=!0,id:n="sentry-feedback",isEmailRequired:r=!1,isNameRequired:s=!1,showBranding:o=!0,showEmail:i=!0,showName:a=!0,useSentryUser:c={email:"email",name:"username"},themeDark:u,themeLight:l,colorScheme:d="system",buttonLabel:p=A0,cancelButtonLabel:h=D0,submitButtonLabel:f=N0,formTitle:y=L0,emailPlaceholder:v=$0,emailLabel:g=P0,messagePlaceholder:_=F0,messageLabel:b=B0,namePlaceholder:I=U0,nameLabel:O=j0,isRequiredLabel:k=H0,successMessageText:S=z0,onFormClose:K,onFormOpen:z,onSubmitError:E,onSubmitSuccess:C}={}){this.name=Pn.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={autoInject:e,showBranding:o,id:n,isEmailRequired:r,isNameRequired:s,showEmail:i,showName:a,useSentryUser:c,colorScheme:d,themeDark:{...Ll.dark,...u},themeLight:{...Ll.light,...l},buttonLabel:p,cancelButtonLabel:h,submitButtonLabel:f,formTitle:y,emailLabel:g,emailPlaceholder:v,messageLabel:b,messagePlaceholder:_,nameLabel:O,namePlaceholder:I,isRequiredLabel:k,successMessageText:S,onFormClose:K,onFormOpen:z,onSubmitError:E,onSubmitSuccess:C}}setupOnce(){if(ms())try{this._cleanupWidgetIfExists();const{autoInject:e}=this.options;if(!e)return;this._createWidget(this.options)}catch(e){Se&&m.error(e)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(e,n){try{const r=Bl(this.options,n||{});return this._ensureShadowHost(r,({shadow:s})=>{const o=typeof e=="string"?Wr.querySelector(e):typeof e.addEventListener=="function"?e:null;if(!o)return Se&&m.error("[Feedback] Unable to attach to target element"),null;const i=zl({shadow:s,options:r,attachTo:o});return this._widgets.add(i),this._widget||(this._widget=i),i})}catch(r){return Se&&m.error(r),null}}createWidget(e){try{return this._createWidget(Bl(this.options,e||{}))}catch(n){return Se&&m.error(n),null}}removeWidget(e){if(!e)return!1;try{if(this._widgets.has(e))return e.removeActor(),e.removeDialog(),this._widgets.delete(e),this._widget===e&&(this._widget=null),!0}catch(n){Se&&m.error(n)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();const e=Wr.querySelector("#".concat(this.options.id));e&&e.remove()}_createWidget(e){return this._ensureShadowHost(e,({shadow:n})=>{const r=zl({shadow:n,options:e});return!this._hasInsertedActorStyles&&r.actor&&(n.appendChild(V0(Wr)),this._hasInsertedActorStyles=!0),this._widgets.add(r),this._widget||(this._widget=r),r})}_ensureShadowHost(e,n){let r=!1;if(!this._shadow||!this._host){const{id:o,colorScheme:i,themeLight:a,themeDark:c}=e,{shadow:u,host:l}=K0({id:o,colorScheme:i,themeLight:a,themeDark:c});this._shadow=u,this._host=l,r=!0}this._host.dataset.sentryFeedbackColorscheme=e.colorScheme;const s=n({shadow:this._shadow,host:this._host});return r&&Wr.body.appendChild(this._host),s}}Pn.__initStatic();const ql="CaptureConsole",uS=(t={})=>{const e=t.levels||zn;return{name:ql,setupOnce(){},setup(n){"console"in M&&Si(({args:r,level:s})=>{R()!==n||!e.includes(s)||lS(r,s)})}}},Wl=uS;Z(ql,Wl);function lS(t,e){const n={level:Li(e),extra:{arguments:t}};Kt(r=>{if(r.addEventProcessor(i=>(i.logger="console",le(i,{handled:!1,type:"console"}),i)),e==="assert"&&t[0]===!1){const i="Assertion failed: ".concat(jn(t.slice(1)," ")||"console.assert");r.setExtra("arguments",t.slice(1)),rr(i,n);return}const s=t.find(i=>i instanceof Error);if(e==="error"&&s){he(s,n);return}const o=jn(t," ");rr(o,n)})}const Vl="Debug",dS=(t={})=>{const e={debugger:!1,stringify:!1,...t};return{name:Vl,setupOnce(){},setup(n){n.on&&n.on("beforeSendEvent",(r,s)=>{if(e.debugger)debugger;St(()=>{e.stringify?(console.log(JSON.stringify(r,null,2)),s&&Object.keys(s).length&&console.log(JSON.stringify(s,null,2))):(console.log(r),s&&Object.keys(s).length&&console.log(s))})})}}},Gl=dS;Z(Vl,Gl);const en=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Yl="Dedupe",pS=()=>{let t;return{name:Yl,setupOnce(){},processEvent(e){if(e.type)return e;try{if(hS(e,t))return en&&m.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return t=e}}},Kl=pS;Z(Yl,Kl);function hS(t,e){return e?!!(mS(t,e)||fS(t,e)):!1}function mS(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Xl(t,e)||!Jl(t,e))}function fS(t,e){const n=Ql(e),r=Ql(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Xl(t,e)||!Jl(t,e))}function Jl(t,e){let n=Zl(t),r=Zl(e);if(!n&&!r)return!0;
1if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function Xl(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch(s){return!1}}function Ql(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Zl(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}}const td="ExtraErrorData",gS=(t={})=>{const e=t.depth||3,n=t.captureErrorCause||!1;return{name:td,setupOnce(){},processEvent(r,s){return yS(r,s,e,n)}}},ed=gS;Z(td,ed);function yS(t,e={},n,r){if(!e.originalException||!Te(e.originalException))return t;const s=e.originalException.name||e.originalException.constructor.name,o=_S(e.originalException,r);if(o){const i={...t.contexts},a=wt(o,n);return ie(a)&&(Vt(a,"__sentry_skip_normalization__",!0),i[s]=a),{...t,contexts:i}}return t}function _S(t,e){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],r={};for(const s of Object.keys(t)){if(n.indexOf(s)!==-1)continue;const o=t[s];r[s]=Te(o)?o.toString():o}if(e&&t.cause!==void 0&&(r.cause=Te(t.cause)?t.cause.toString():t.cause),typeof t.toJSON=="function"){const s=t.toJSON();for(const o of Object.keys(s)){const i=s[o];r[o]=Te(i)?i.toString():i}}return r}catch(n){en&&m.error("Unable to extract extra data from the Error object:",n)}return null}const vS=M,nd="ReportingObserver",rd=new WeakMap,bS=(t={})=>{const e=t.types||["crash","deprecation","intervention"];function n(r){if(rd.has(R()))for(const s of r)Kt(o=>{o.setExtra("url",s.url);const i="ReportingObserver [".concat(s.type,"]");let a="No details available";if(s.body){const c={};for(const u in s.body)c[u]=s.body[u];if(o.setExtra("body",c),s.type==="crash"){const u=s.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=s.body.message||a}rr("".concat(i,": ").concat(a))})}return{name:nd,setupOnce(){pp()&&new vS.ReportingObserver(n,{buffered:!0,types:e}).observe()},setup(r){rd.set(r,!0)}}},sd=bS;Z(nd,sd);const od="RewriteFrames",SS=(t={})=>{const e=t.root,n=t.prefix||"app:///",r=t.iteratee||(i=>{if(!i.filename)return i;const a=/^[a-zA-Z]:\\/.test(i.filename)||i.filename.includes("\\")&&!i.filename.includes("/"),c=/^\//.test(i.filename);if(a||c){const u=a?i.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):i.filename,l=e?Np(e,u):Lp(u);i.filename="".concat(n).concat(l)}return i});function s(i){try{return{...i,exception:{...i.exception,values:i.exception.values.map(a=>({...a,...a.stacktrace&&{stacktrace:o(a.stacktrace)}}))}}}catch(a){return i}}function o(i){return{...i,frames:i&&i.frames&&i.frames.map(a=>r(a))}}return{name:od,setupOnce(){},processEvent(i){let a=i;return i.exception&&Array.isArray(i.exception.values)&&(a=s(a)),a}}},id=SS;Z(od,id);const ad="SessionTiming",kS=()=>{const t=Date.now();return{name:ad,setupOnce(){},processEvent(e){const n=Date.now();return{...e,extra:{...e.extra,"session:start":t,"session:duration":n-t,"session:end":n}}}}},cd=kS;Z(ad,cd);const ud="HttpClient",wS=(t={})=>{const e={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...t};return{name:ud,setupOnce(){},setup(n){OS(n,e),AS(n,e)}}},ld=wS;Z(ud,ld);function ES(t,e,n,r){if(pd(t,n.status,n.url)){const s=DS(e,r);let o,i,a,c;md()&&([{headers:o,cookies:a},{headers:i,cookies:c}]=[{cookieHeader:"Cookie",obj:s},{cookieHeader:"Set-Cookie",obj:n}].map(({cookieHeader:l,obj:d})=>{const p=CS(d.headers);let h;try{const f=p[l]||p[l.toLowerCase()]||void 0;f&&(h=dd(f))}catch(f){en&&m.log("Could not extract cookies from header ".concat(l))}return{headers:p,cookies:h}}));const u=hd({url:s.url,method:s.method,status:n.status,requestHeaders:o,responseHeaders:i,requestCookies:a,responseCookies:c});un(u)}}function TS(t,e,n,r){if(pd(t,e.status,e.responseURL)){let s,o,i;if(md()){try{const c=e.getResponseHeader("Set-Cookie")||e.getResponseHeader("set-cookie")||void 0;c&&(o=dd(c))}catch(c){en&&m.log("Could not extract cookies from response headers")}try{i=IS(e)}catch(c){en&&m.log("Could not extract headers from response")}s=r}const a=hd({url:e.responseURL,method:n,status:e.status,requestHeaders:s,responseHeaders:i,responseCookies:o});un(a)}}function xS(t){if(t){const e=t["Content-Length"]||t["content-length"];if(e)return parseInt(e,10)}}function dd(t){return t.split("; ").reduce((e,n)=>{const[r,s]=n.split("=");return e[r]=s,e},{})}function CS(t){const e={};return t.forEach((n,r)=>{e[r]=n}),e}function IS(t){const e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce((n,r)=>{const[s,o]=r.split(": ");return n[s]=o,n},{}):{}}function RS(t,e){return t.some(n=>typeof n=="string"?e.includes(n):n.test(e))}function MS(t,e){return t.some(n=>typeof n=="number"?n===e:e>=n[0]&&e<=n[1])}function OS(t,e){Ii()&&Gn(n=>{if(R()!==t)return;const{response:r,args:s}=n,[o,i]=s;r&&ES(e,o,r,i)})}function AS(t,e){"XMLHttpRequest"in M&&Qn(n=>{if(R()!==t)return;const r=n.xhr,s=r[Ft];if(!s)return;const{method:o,request_headers:i}=s;try{TS(e,r,o,i)}
1catch(a){en&&m.warn("Error while extracting response event form XHR response",a)}})}function pd(t,e,n){return MS(t.failedRequestStatusCodes,e)&&RS(t.failedRequestTargets,n)&&!La(n,R())}function hd(t){const e="HTTP Client Error with status code: ".concat(t.status),n={message:e,exception:{values:[{type:"Error",value:e}]},request:{url:t.url,method:t.method,headers:t.requestHeaders,cookies:t.requestCookies},contexts:{response:{status_code:t.status,headers:t.responseHeaders,cookies:t.responseCookies,body_size:xS(t.responseHeaders)}}};return le(n,{type:"http.client",handled:!1}),n}function DS(t,e){return!e&&t instanceof Request||t instanceof Request&&t.bodyUsed?t:new Request(t,e)}function md(){const t=R();return t?!!t.getOptions().sendDefaultPii:!1}const zo=M,NS=7,fd="ContextLines",LS=(t={})=>{const e=t.frameContextLines!=null?t.frameContextLines:NS;return{name:fd,setupOnce(){},processEvent(n){return $S(n,e)}}},gd=LS;Z(fd,gd);function $S(t,e){const n=zo.document,r=zo.location&&Pp(zo.location.href);if(!n||!r)return t;const s=t.exception&&t.exception.values;if(!s||!s.length)return t;const o=n.documentElement.innerHTML;if(!o)return t;const i=["<!DOCTYPE html>","<html>",...o.split("\n"),"</html>"];return s.forEach(a=>{const c=a.stacktrace;c&&c.frames&&(c.frames=c.frames.map(u=>PS(u,i,r,e)))}),t}function PS(t,e,n,r){return t.filename!==n||!t.lineno||!e.length||ip(e,t,r),t}function Nn(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function FS(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const r=Nn(n);return s=>r.then(o=>s(o.transaction(e,"readwrite").objectStore(e)))}function yd(t){return Nn(t.getAllKeys())}function BS(t,e,n){return t(r=>yd(r).then(s=>{if(!(s.length>=n))return r.put(e,Math.max(...s,0)+1),Nn(r.transaction)}))}function US(t){return t(e=>yd(e).then(n=>{if(n.length!==0)return Nn(e.get(n[0])).then(r=>(e.delete(n[0]),Nn(e.transaction).then(()=>r)))}))}function jS(t){let e;function n(){return e==null&&(e=FS(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{insert:async r=>{try{const s=await Hi(r,t.textEncoder);await BS(n(),s,t.maxQueueSize||30)}catch(s){}},pop:async()=>{try{const r=await US(n());if(r)return Yp(r,t.textEncoder||new TextEncoder,t.textDecoder||new TextDecoder)}catch(r){}}}}function HS(t){return e=>t({...e,createStore:jS})}function zS(t){return HS(Bm(t))}const _d=1e6,Vr=String(0),qS="main";let vd="",bd="",Sd="",qo=x.navigator&&x.navigator.userAgent||"",kd="";const WS=x.navigator&&x.navigator.language||x.navigator&&x.navigator.languages&&x.navigator.languages[0]||"";function VS(t){return typeof t=="object"&&t!==null&&"getHighEntropyValues"in t}const wd=x.navigator&&x.navigator.userAgentData;VS(wd)&&wd.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(t=>{if(vd=t.platform||"",Sd=t.architecture||"",kd=t.model||"",bd=t.platformVersion||"",t.fullVersionList&&t.fullVersionList.length>0){const e=t.fullVersionList[t.fullVersionList.length-1];qo="".concat(e.brand," ").concat(e.version)}}).catch(t=>{});function GS(t){return!("thread_metadata"in t)}function YS(t){return GS(t)?XS(t):t}function KS(t){const e=t&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id;return typeof e=="string"&&e.length!==32&&L&&m.log("[Profiling] Invalid traceId: ".concat(e," on profiled event")),typeof e!="string"?"":e}function JS(t,e,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError("Cannot construct profiling event envelope without a valid profile. Got ".concat(n," instead."));const s=KS(r),o=YS(n),i=e||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Date.now()),a=typeof r.timestamp=="number"?r.timestamp*1e3:Date.now();return{event_id:t,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||cn,runtime:{name:"javascript",version:x.navigator.userAgent},os:{name:vd,version:bd,build_number:qo},device:{locale:WS,model:kd,manufacturer:qo,architecture:Sd,is_emulator:!1},debug_meta:{images:t1(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||U(),trace_id:s,active_thread_id:Vr,relative_start_ns:"0",relative_end_ns:((a-i)*1e6).toFixed(0)}]}}function Ed(t){return t.op==="pageload"}function XS(t){let e,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Vr]:{name:qS}}};if(!t.samples.length)return r;const s=t.samples[0].timestamp,o=typeof performance.timeOrigin=="number"?performance.timeOrigin:ct||0,i=o-(ct||o);for(let a=0;a<t.samples.length;a++){const c=t.samples[a];if(c.stackId===void 0){e===void 0&&(e=n,r.stacks[e]=[],n++),r.samples[a]={elapsed_since_start_ns:((c.timestamp+i-s)*_d).toFixed(0),stack_id:e,thread_id:Vr};continue}let u=t.stacks[c.stackId];const l=[];for(;u;){l.push(u.frameId);const p=t.frames[u.frameId];r.frames[u.frameId]===void 0&&(r.frames[u.frameId]={function:p.name,abs_path:typeof p.resourceId=="number"?t.resources[p.resourceId]:void 0,lineno:p.line,colno:p.column}),u=u.parentId===void 0?void 0:t.stacks[u.parentId]}const d={elapsed_since_start_ns:((c.timestamp+i-s)*_d).toFixed(0),stack_id:n,thread_id:Vr};r.stacks[n]=l,r.samples[a]=d,n++}return r}function QS(t,e){if(!e.length)return t;for(const n of e)t[1].push([{type:"profile"},n]);return t}function ZS(t){const e=[];return De(t,(n,r)=>{if(r==="transaction")for(let s=1;s<n.length;s++){const o=n[s];o&&o.contexts&&o.contexts.profile&&o.contexts.profile.profile_id&&e.push(n[s])}}),e}const Td=new WeakMap;function t1(t){const e=M._sentryDebugIds;if(!e)return[];const n=R(),r=n&&n.getOptions(),s=r&&r.stackParser;if(!s)return[];let o;const i=Td.get(s);i?o=i:(o=new Map,Td.set(s,o));const a=Object.keys(e).reduce((u,l)=>{let d;const p=o.get(l);p?d=p:(d=s(l),o.set(l,d));for(let h=d.length-1;h>=0;h--){const f=d[h],y=f&&f.filename;if(f&&y){u[y]=e[l];break}}return u},{}),c=[];for(const u of t)u&&a[u]&&c.push({type:"sourcemap",code_file:u,debug_id:a[u]});return c}function e1(t){return typeof t!="number"&&typeof t!="boolean"||typeof t=="number"&&isNaN(t)?(L&&m.warn("[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(t)," of type ").concat(JSON.stringify(typeof t),".")),!1):t===!0||t===!1?!0:t<0||t>1?(L&&m.warn("[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ".concat(t,".")),!1):!0}function n1(t){return t.samples.length<2?(L&&m.log("[Profiling] Discarding profile because it c
1ontains less than 2 samples"),!1):t.frames.length?!0:(L&&m.log("[Profiling] Discarding profile because it contains no frames"),!1)}let xd=!1;const Cd=3e4;function r1(t){return typeof t=="function"}function s1(){const t=x.Profiler;if(!r1(t)){L&&m.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const e=10,n=Math.floor(Cd/e);try{return new t({sampleInterval:e,maxBufferSize:n})}catch(r){L&&(m.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),m.log("[Profiling] Disabling profiling for current user session.")),xd=!0}}function Wo(t){if(xd)return L&&m.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!t.isRecording())return L&&m.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const e=R(),n=e&&e.getOptions();if(!n)return L&&m.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return e1(r)?r?r===!0||Math.random()<r?!0:(L&&m.log("[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ".concat(Number(r),")")),!1):(L&&m.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(L&&m.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function o1(t,e,n,r){return n1(n)?JS(t,e,n,r):null}const ke=new Map;function i1(){return ke.size}function a1(t){const e=ke.get(t);return e&&ke.delete(t),e}function c1(t,e){if(ke.set(t,e),ke.size>30){const n=ke.keys().next().value;ke.delete(n)}}function u1(t){return t?Wo(t)?Vo(t):t:(L&&m.log("[Profiling] Transaction is undefined, skipping profiling"),t)}function Vo(t){let e;Ed(t)&&(e=Yt()*1e3);const n=s1();if(!n)return t;L&&m.log("[Profiling] started profiling transaction: ".concat(j(t).description));const r=U();async function s(){return!t||!n?null:n.stop().then(c=>(o&&(x.clearTimeout(o),o=void 0),L&&m.log("[Profiling] stopped profiling of transaction: ".concat(j(t).description)),c?(c1(r,c),null):(L&&m.log("[Profiling] profiler returned null profile for: ".concat(j(t).description),"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null))).catch(c=>(L&&m.log("[Profiling] error while stopping profiler:",c),null))}let o=x.setTimeout(()=>{L&&m.log("[Profiling] max profile duration elapsed, stopping profiling for:",j(t).description),s()},Cd);const i=t.end.bind(t);function a(){return t?(s().then(()=>{t.setContext("profile",{profile_id:r,start_timestamp:e}),i()},()=>{i()}),t):i()}return t.end=a,t}const Id="BrowserProfiling",l1=()=>({name:Id,setupOnce(){},setup(t){const e=nt().getTransaction();if(e&&Ed(e)&&Wo(e)&&Vo(e),typeof t.on!="function"){m.warn("[Profiling] Client does not support hooks, profiling will be disabled");return}t.on("startTransaction",n=>{Wo(n)&&Vo(n)}),t.on("beforeEnvelope",n=>{if(!i1())return;const r=ZS(n);if(!r.length)return;const s=[];for(const o of r){const i=o&&o.contexts,a=i&&i.profile&&i.profile.profile_id,c=i&&i.profile&&i.profile.start_timestamp;if(typeof a!="string"){L&&m.log("[Profiling] cannot find profile for a transaction without a profile context");continue}if(!a){L&&m.log("[Profiling] cannot find profile for a transaction without a profile context");continue}i&&i.profile&&delete i.profile;const u=a1(a);if(!u){L&&m.log("[Profiling] Could not retrieve profile for transaction: ".concat(a));continue}const l=o1(a,c,u,o);l&&s.push(l)}QS(n,s)})}}),Rd=l1,d1=Z(Id,Rd);let Md={};x.Sentry&&x.Sentry.Integrations&&(Md=x.Sentry.Integrations);const p1={...Md,...Mf,...Vy},Od=["activate","mount","update"],h1=/(?:^|[-_])(\w)/g,m1=t=>t.replace(h1,e=>e.toUpperCase()).replace(/[-_]/g,""),f1="<Root>",Go="<Anonymous>",g1=(t,e)=>t.repeat?t.repeat(e):t,Ln=(t,e)=>{if(!t)return Go;if(t.$root===t)return f1;if(!t.$options)return Go;const n=t.$options;let r=n.name||n._componentTag;const s=n.__file;if(!r&&s){const o=s.match(/([^/\\]+)\.vue$/);
1o&&(r=o[1])}return(r?"<".concat(m1(r),">"):Go)+(s&&e!==!1?" at ".concat(s):"")},y1=t=>{if(t&&(t._isVue||t.__isVue)&&t.$parent){const e=[];let n=0;for(;t;){if(e.length>0){const r=e[e.length-1];if(r.constructor===t.constructor){n++,t=t.$parent;continue}else n>0&&(e[e.length-1]=[r,n],n=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n".concat(e.map((r,s)=>"".concat((s===0?"---> ":g1(" ",5+s*2))+(Array.isArray(r)?"".concat(Ln(r[0]),"... (").concat(r[1]," recursive calls)"):Ln(r)))).join("\n"))}return"\n\n(found in ".concat(Ln(t),")")},Ad=(t,e)=>{const{errorHandler:n,warnHandler:r,silent:s}=t.config;t.config.errorHandler=(o,i,a)=>{const c=Ln(i,!1),u=i?y1(i):"",l={componentName:c,lifecycleHook:a,trace:u};if(e.attachProps&&i&&(i.$options&&i.$options.propsData?l.propsData=i.$options.propsData:i.$props&&(l.propsData=i.$props)),setTimeout(()=>{he(o,{captureContext:{contexts:{vue:l}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(t,o,i,a),e.logErrors){const d=typeof console<"u",p="Error in ".concat(a,': "').concat(o&&o.toString(),'"');r?r.call(null,p,i,u):d&&!s&&St(()=>{console.error("[Vue warn]: ".concat(p).concat(u))})}}},_1=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Dd="ui.vue",v1={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function b1(){return nt().getTransaction()}function S1(t,e,n){t.$_sentryRootSpanTimer&&clearTimeout(t.$_sentryRootSpanTimer),t.$_sentryRootSpanTimer=setTimeout(()=>{t.$root&&t.$root.$_sentryRootSpan&&(t.$root.$_sentryRootSpan.end(e),t.$root.$_sentryRootSpan=void 0)},n)}const Nd=t=>{const e=(t.hooks||[]).concat(Od).filter((r,s,o)=>o.indexOf(r)===s),n={};for(const r of e){const s=v1[r];if(!s){_1&&m.warn("Unknown hook: ".concat(r));continue}for(const o of s)n[o]=function(){const i=this.$root===this;
1i&&fe()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||dn({name:"Application Render",op:"".concat(Dd,".render"),origin:"auto.ui.vue"}));const a=Ln(this,!1),c=Array.isArray(t.trackComponents)?t.trackComponents.indexOf(a)>-1:t.trackComponents;if(!(!i&&!c))if(this.$_sentrySpans=this.$_sentrySpans||{},o==s[0]){if(this.$root&&this.$root.$_sentryRootSpan||fe()){const u=this.$_sentrySpans[r];u&&u.end(),this.$_sentrySpans[r]=dn({name:"Vue <".concat(a,">"),op:"".concat(Dd,".").concat(r),origin:"auto.ui.vue"})}}else{const u=this.$_sentrySpans[r];if(!u)return;u.end(),S1(this,Yt(),t.timeout)}}}return n},k1=M,w1={Vue:k1.Vue,attachProps:!0,logErrors:!0,hooks:Od,timeout:2e3,trackComponents:!1},Ld="Vue",E1=(t={})=>({name:Ld,setupOnce(){},setup(e){x1(e,t)}}),Yo=E1,T1=Z(Ld,Yo);function x1(t,e){const n={...w1,...t.getOptions(),...e};if(!n.Vue&&!n.app){St(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?us(n.app).forEach(r=>$d(r,n)):n.Vue&&$d(n.Vue,n)}const $d=(t,e)=>{const n=t;(n._instance&&n._instance.isMounted)===!0&&St(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),Ad(t,e),me(e)&&t.mixin(Nd({...e,...e.tracingOptions}))};function C1(t={}){const e={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:Le}],version:Le}},defaultIntegrations:[...lo(),Yo()],...t};By(e)}function I1(t,e={}){return(n,r=!0,s=!0)=>{r&&x&&x.location&&n({name:x.location.pathname,op:"pageload",attributes:{[Mt]:"auto.pageload.vue",[ut]:"url"}}),Pd(t,{routeLabel:e.routeLabel||"name",instrumentNavigation:s,instrumentPageLoad:r},n)}}function Pd(t,e,n){t.onError(r=>he(r,{mechanism:{handled:!1}})),t.beforeEach((r,s,o)=>{const i=s.name==null&&s.matched.length===0,a={[Mt]:"auto.navigation.vue"};for(const l of Object.keys(r.params))a["params.".concat(l)]=r.params[l];for(const l of Object.keys(r.query)){const d=r.query[l];d&&(a["query.".concat(l)]=d)}let c=r.path,u="url";if(r.name&&e.routeLabel!=="path"?(c=r.name.toString(),u="custom"):r.matched[0]&&r.matched[0].path&&(c=r.matched[0].path,u="route"),e.instrumentPageLoad&&i){const l=b1();l&&((j(l).data||{})[ut]!=="custom"&&(l.updateName(c),l.setAttribute(ut,u)),l.setAttributes({...a,[Mt]:"auto.pageload.vue"}))}e.instrumentNavigation&&!i&&(a[ut]=u,n({name:c,op:"navigation",attributes:a})),o&&o()})}function R1(t={}){if(!t.router)return Sc(t);const e=Sc({...t,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:s=!0,routeLabel:o="name"}=t;return{...e,afterAllSetup(i){e.afterAllSetup(i),Pd(n,{routeLabel:o,instrumentNavigation:r,instrumentPageLoad:s},a=>{Qs(i,a)})}}}export{Bc as Breadcrumbs,Rc as BrowserClient,d1 as BrowserProfilingIntegration,Cg as BrowserTracing,Hc as Dedupe,Pn as Feedback,Va as FunctionToString,Yc as GlobalHandlers,Zc as HttpContext,Ms as Hub,Ha as InboundFilters,p1 as Integrations,eu as LinkedErrors,ef as ModuleMetadata,$n as Replay,O0 as ReplayCanvas,Le as SDK_VERSION,hn as SEMANTIC_ATTRIBUTE_SENTRY_OP,Mt as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,ge as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,ut as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Lt as Scope,ru as TryCatch,T1 as VueIntegration,x as WINDOW,jt as addBreadcrumb,Ca as addEventProcessor,Yi as addGlobalEventProcessor,dm as addIntegration,Ls as addTracingExtensions,Ad as attachErrorHandler,oo as breadcrumbsIntegration,uo as browserApiErrorsIntegration,Rd as browserProfilingIntegration,R1 as browserTracingIntegration,Wl as captureConsoleIntegration,un as captureEvent,he as captureException,rr as captureMessage,Is as captureSession,Wy as captureUserFeedback,Ac as chromeStackLineParser,xh as close,gh as configureScope,gd as contextLinesIntegration,Vh as continueTrace,Nd as createTracingMixins,Ps as createTransport,Ic as createUserFeedbackEnvelope,Gl as debugIntegration,Kl as dedupeIntegration,ou as defaultIntegrations,Sn as defaultRequestInstrumentationOptions,Lc as defaultStackLineParsers,$c as defaultStackParser,Cs as endSession,xc as eventFromException,Cc as eventFromMessage,to as exceptionFromError,ed as extraErrorDataIntegration,Bh as extractTraceparentData,cS as feedbackIntegration,Th as flush,jy as forceLoad,Us as functionToStringIntegration,Dc as geckoStackLineParser,fe as getActiveSpan,Rt as getActiveTransaction,R as getClient,H as getCurrentHub,nt as getCurrentScope,lo as getDefaultIntegrations,ar as getHubFromCarrier,y0 as getReplay,Ds as getSpanStatusFromHttpCode,io as globalHandlersIntegration,ld as httpClientIntegration,ao as httpContextIntegration,Bs as inbou
1ndFiltersIntegration,C1 as init,Xs as instrumentOutgoingRequests,Ih as isInitialized,Ch as lastEventId,co as linkedErrorsIntegration,zS as makeBrowserOfflineTransport,Mc as makeFetchTransport,Os as makeMain,Hm as makeMultiplexedTransport,Oc as makeXHRTransport,Rf as metrics,Ua as moduleMetadataIntegration,Hy as onLoad,u1 as onProfilingStartRouteTransaction,cy as opera10StackLineParser,dy as opera11StackLineParser,Ym as parameterize,Al as replayCanvasIntegration,f0 as replayIntegration,sd as reportingObserverIntegration,id as rewriteFramesIntegration,Fl as sendFeedback,cd as sessionTimingIntegration,ta as setContext,Oa as setCurrentClient,_h as setExtra,yh as setExtras,cr as setHttpStatus,ya as setMeasurement,bh as setTag,vh as setTags,Sh as setUser,Uy as showReportDialog,jh as spanStatusfromHttpCode,Qs as startBrowserTracingNavigationSpan,kc as startBrowserTracingPageLoadSpan,dn as startInactiveSpan,xs as startSession,qh as startSpan,Wh as startSpanManual,Eh as startTransaction,zh as trace,Yo as vueIntegration,I1 as vueRouterInstrumentation,Nc as winjsStackLineParser,wh as withActiveSpan,kh as withIsolationScope,Kt as withScope,zy as wrap};

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.