1var _l=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var DE=_l((ME,hl)=>{var ni=!1,ri=!1,re=[];function ml(t){gl(t)}function gl(t){re.includes(t)||re.push(t),yl()}function po(t){let e=re.indexOf(t);e!==-1&&re.splice(e,1)}function yl(){!ri&&!ni&&(ni=!0,queueMicrotask(bl))}function bl(){ni=!1,ri=!0;for(let t=0;t<re.length;t++)re[t]();re.length=0,ri=!1}var Oe,un,sr,_o,ii=!0;function El(t){ii=!1,t(),ii=!0}function Sl(t){Oe=t.reactive,sr=t.release,un=e=>t.effect(e,{scheduler:n=>{ii?ml(n):n()}}),_o=t.raw}function Ws(t){un=t}function vl(t){let e=()=>{};return[r=>{let i=un(r);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach(s=>s())}),t._x_effects.add(i),e=()=>{i!==void 0&&(t._x_effects.delete(i),sr(i))},i},()=>{e()}]}var mo=[],go=[],yo=[];function wl(t){yo.push(t)}function bo(t,e){typeof e=="function"?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(e)):(e=t,go.push(e))}function Il(t){mo.push(t)}function Tl(t,e,n){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(n)}function Eo(t,e){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach(([n,r])=>{(e===void 0||e.includes(n))&&(r.forEach(i=>i()),delete t._x_attributeCleanups[n])})}var ji=new MutationObserver(qi),Vi=!1;function So(){ji.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Vi=!0}function Cl(){Rl(),ji.disconnect(),Vi=!1}var Ze=[],Yr=!1;function Rl(){Ze=Ze.concat(ji.takeRecords()),Ze.length&&!Yr&&(Yr=!0,queueMicrotask(()=>{kl(),Yr=!1}))}function kl(){qi(Ze),Ze.length=0}function et(t){if(!Vi)return t();Cl();let e=t();return So(),e}var Zi=!1,Hn=[];function Al(){Zi=!0}function xl(){Zi=!1,qi(Hn),Hn=[]}function qi(t){if(Zi){Hn=Hn.concat(t);return}let e=[],n=[],r=new Map,i=new Map;for(let s=0;s<t.length;s++)if(!t[s].target._x_ignoreMutationObserver&&(t[s].type==="childList"&&(t[s].addedNodes.forEach(a=>a.nodeType===1&&e.push(a)),t[s].removedNodes.forEach(a=>a.nodeType===1&&n.push(a))),t[s].type==="attributes")){let a=t[s].target,o=t[s].attributeName,c=t[s].oldValue,u=()=>{r.has(a)||r.set(a,[]),r.get(a).push({name:o,value:a.getAttribute(o)})},l=()=>{i.has(a)||i.set(a,[]),i.get(a).push(o)};a.hasAttribute(o)&&c===null?u():a.hasAttribute(o)?(l(),u()):l()}i.forEach((s,a)=>{Eo(a,s)}),r.forEach((s,a)=>{mo.forEach(o=>o(a,s))});for(let s of n)if(!e.includes(s)&&(go.forEach(a=>a(s)),s._x_cleanups))for(;s._x_cleanups.length;)s._x_cleanups.pop()();e.forEach(s=>{s._x_ignoreSelf=!0,s._x_ignore=!0});for(let s of e)n.includes(s)||s.isConnected&&(delete s._x_ignoreSelf,delete s._x_ignore,yo.forEach(a=>a(s)),s._x_ignore=!0,s._x_ignoreSelf=!0);e.forEach(s=>{delete s._x_ignoreSelf,delete s._x_ignore}),e=null,n=null,r=null,i=null}function vo(t){return dn(Ee(t))}
vendor: 12,831 bytes, lines 1-5
1function ln(t,e,n){return t._x_dataStack=[e,...Ee(n||t)],()=>{t._x_dataStack=t._x_dataStack.filter(r=>r!==e)}}function js(t,e){let n=t._x_dataStack[0];Object.entries(e).forEach(([r,i])=>{n[r]=i})}function Ee(t){return t._x_dataStack?t._x_dataStack:typeof ShadowRoot=="function"&&t instanceof ShadowRoot?Ee(t.host):t.parentNode?Ee(t.parentNode):[]}function dn(t){let e=new Proxy({},{ownKeys:()=>Array.from(new Set(t.flatMap(n=>Object.keys(n)))),has:(n,r)=>t.some(i=>i.hasOwnProperty(r)),get:(n,r)=>(t.find(i=>{if(i.hasOwnProperty(r)){let s=Object.getOwnPropertyDescriptor(i,r);if(s.get&&s.get._x_alreadyBound||s.set&&s.set._x_alreadyBound)return!0;if((s.get||s.set)&&s.enumerable){let a=s.get,o=s.set,c=s;a=a&&a.bind(e),o=o&&o.bind(e),a&&(a._x_alreadyBound=!0),o&&(o._x_alreadyBound=!0),Object.defineProperty(i,r,{...c,get:a,set:o})}return!0}return!1})||{})[r],set:(n,r,i)=>{let s=t.find(a=>a.hasOwnProperty(r));return s?s[r]=i:t[t.length-1][r]=i,!0}});return e}function wo(t){let e=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([s,{value:a,enumerable:o}])=>{if(o===!1||a===void 0)return;let c=i===""?s:`${i}.${s}`;typeof a=="object"&&a!==null&&a._x_interceptor?r[s]=a.initialize(t,c,s):e(a)&&a!==r&&!(a instanceof Element)&&n(a,c)})};return n(t)}function Io(t,e=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,s){return t(this.initialValue,()=>Nl(r,i),a=>si(r,i,a),i,s)}};return e(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(s,a,o)=>{let c=r.initialize(s,a,o);return n.initialValue=c,i(s,a,o)}}else n.initialValue=r;return n}}function Nl(t,e){return e.split(".").reduce((n,r)=>n[r],t)}function si(t,e,n){if(typeof e=="string"&&(e=e.split(".")),e.length===1)t[e[0]]=n;else{if(e.length===0)throw error;return t[e[0]]||(t[e[0]]={}),si(t[e[0]],e.slice(1),n)}}var To={};function vt(t,e){To[t]=e}function ai(t,e){return Object.entries(To).forEach(([n,r])=>{Object.defineProperty(t,`$${n}`,{get(){let[i,s]=No(e);return i={interceptor:Io,...i},bo(e,s),r(e,i)},enumerable:!1})}),t}function Dl(t,e,n,...r){try{return n(...r)}catch(i){nn(i,t,e)}}function nn(t,e,n=void 0){Object.assign(t,{el:e,expression:n}),console.warn(`Alpine Expression Error: ${t.message} 2 3${n?'Expression: "'+n+`" 4 5`:""}`,e),setTimeout(()=>{throw t},0)}var Ln=!0;function Ol(t){let e=Ln;Ln=!1,t(),Ln=e}function ge(t,e,n={}){let r;return ct(t,e)(i=>r=i,n),r}function ct(...t){return Co(...t)}var Co=Ro;function Ml(t){Co=t}function Ro(t,e){let n={};ai(n,t);let r=[n,...Ee(t)];if(typeof e=="function")return Bl(r,e);let i=Ll(r,e,t);return Dl.bind(null,t,e,i)}function Bl(t,e){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let s=e.apply(dn([r,...t]),i);$n(n,s)}}var Hr={};function Ul(t,e){if(Hr[t])return Hr[t];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(t)||/^(let|const)\s/.test(t)?`(() => { ${t} })()`:t,s=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(a){return nn(a,e,t),Promise.resolve()}})();return Hr[t]=s,s}function Ll(t,e,n){let r=Ul(e,n);return(i=()=>{},{scope:s={},params:a=[]}={})=>{r.result=void 0,r.finished=!1;let o=dn([s,...t]);if(typeof r=="function"){let c=r(r,o).catch(u=>nn(u,n,e));r.finished?($n(i,r.result,o,a,n),r.result=void 0):c.then(u=>{$n(i,u,o,a,n)}).catch(u=>nn(u,n,e)).finally(()=>r.result=void 0)}}}function $n(t,e,n,r,i){if(Ln&&typeof e=="function"){let s=e.apply(n,r);s instanceof Promise?s.then(a=>$n(t,a,n,r)).catch(a=>nn(a,i,e)):t(s)}else t(e)}var Ki="x-";function Me(t=""){return Ki+t}function Fl(t){Ki=t}var ko={};function q(t,e){ko[t]=e}function Ji(t,e,n){if(e=Array.from(e),t._x_virtualDirectives){let s=Object.entries(t._x_virtualDirectives).map(([o,c])=>({name:o,value:c})),a=Ao(s);s=s.map(o=>a.find(c=>c.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),e=e.concat(s)}let r={};return e.map(Mo((s,a)=>r[s]=a)).filter(Uo).map(zl(r,n)).sort(Yl).map(s=>Pl(t,s))}function Ao(t){return Array.from(t).map(Mo()).filter(e=>!Uo(e))}var oi=!1,je=new Map,xo=Symbol();function Gl(t){oi=!0;let e=Symbol();xo=e,je.set(e,[]);let n=()=>{for(;je.get(e).length;)je.get(e).shift()();je.delete(e)},r=()=>{oi=!1,n()};t(n),r()}function No(t){let e=[],n=o=>e.push(o),[r,i]=vl(t);return e.push(i),[{Alpine:fn,effect:r,cleanup:n,evaluateLater:ct.bind(ct,t),evaluate:ge.bind(ge,t)},()=>e.forEach(o=>o())]}function Pl(t,e){let n=()=>{},r=ko[e.type]||n,[i,s]=No(t);Tl(t,e.original,s);let a=()=>{t._x_ignore||t._x_ignoreSelf||(r.inline&&r.inline(t,e,i),r=r.bind(r,t,e,i),oi?je.get(xo).push(r):r())};return a.runCleanups=s,a}var Do=(t,e)=>({name:n,value:r})=>(n.startsWith(t)&&(n=n.replace(t,e)),{name:n,value:r}),Oo=t=>t;function Mo(t=()=>{}){return({name:e,value:n})=>{let{name:r,value:i}=Bo.reduce((s,a)=>a(s),{name:e,value:n});return r!==e&&t(r,e),{name:r,value:i}}}var Bo=[];function Xi(t){Bo.push(t)}function Uo({name:t}){return Lo().test(t)}var Lo=()=>new RegExp(`^${Ki}([^:^.]+)\\b`);function zl(t,e){return({name:n,value:r})=>{let i=n.match(Lo()),s=n.match(/:([a-zA-Z0-9\-:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],o=e||t[n]||n;return{type:i?i[1]:null,value:s?s[1]:null,modifiers:a.map(c=>c.replace(".","")),expression:r,original:o}}}var ci="DEFAULT",En=["ignore","ref","data","id","radio","tabs","switch","disclosure","menu","listbox","list","item","combobox","bind","init","for","mask","model","modelable","transition","show","if",ci,"teleport"];function Yl(t,e){let n=En.indexOf(t.type)===-1?ci:t.type,r=En.indexOf(e.type)===-1?ci:e.type;return En.indexOf(n)-En.indexOf(r)}function qe(t,e,n={}){t.dispatchEvent(new CustomEvent(e,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var ui=[],Qi=!1;function Fo(t=()=>{}){return queueMicrotask(()=>{Qi||setTimeout(()=>{li()})}),new Promise(e=>{ui.push(()=>{t(),e()})})}function li(){for(Qi=!1;ui.length;)ui.shift()()}function Hl(){Qi=!0}function oe(t,e){if(typeof ShadowRoot=="function"&&t instanceof ShadowRoot){Array.from(t.children).forEach(i=>oe(i,e));return}let n=!1;if(e(t,()=>n=!0),n)return;let r=t.firstElementChild;for(;r;)oe(r,e),r=r.nextElementSibling}function Se(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}function $l(){document.body||Se("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),qe(document,"alpine:init"),qe(document,"alpine:initializing"),So(),wl(e=>$t(e,oe)),bo(e=>jl(e)),Il((e,n)=>{Ji(e,n).forEach(r=>r())});let t=e=>!ar(e.parentElement,!0);Array.from(document.querySelectorAll(zo())).filter(t).forEach(e=>{$t(e)}),qe(document,"alpine:initialized")}var ts=[],Go=[];function Po(){return ts.map(t=>t())}function zo(){return ts.concat(Go).map(t=>t())}function Yo(t){ts.push(t)}function Ho(t){Go.push(t)}function ar(t,e=!1){return or(t,n=>{if((e?zo():Po()).some(i=>n.matches(i)))return!0})}function or(t,e){if(t){if(e(t))return t;if(t._x_teleportBack&&(t=t._x_teleportBack),!!t.parentElement)return or(t.parentElement,e)}}function Wl(t){return Po().some(e=>t.matches(e))}function $t(t,e=oe){Gl(()=>{e(t,(n,r)=>{Ji(n,n.attributes).forEach(i=>i()),n._x_ignore&&r()})})}function jl(t){oe(t,e=>Eo(e))}function es(t,e){return Array.isArray(e)?Vs(t,e.join(" ")):typeof e=="object"&&e!==null?Vl(t,e):typeof e=="function"?es(t,e()):Vs(t,e)}function Vs(t,e){let n=i=>i.split(" ").filter(s=>!t.classList.contains(s)).filter(Boolean),r=i=>(t.classList.add(...i),()=>{t.classList.remove(...i)});return e=e===!0?e="":e||"",r(n(e))}function Vl(t,e){let n=o=>o.split(" ").filter(Boolean),r=Object.entries(e).flatMap(([o,c])=>c?n(o):!1).filter(Boolean),i=Object.entries(e).flatMap(([o,c])=>c?!1:n(o)).filter(Boolean),s=[],a=[];return i.forEach(o=>{t.classList.contains(o)&&(t.classList.remove(o),a.push(o))}),r.forEach(o=>{t.classList.contains(o)||(t.classList.add(o),s.push(o))}),()=>{a.forEach(o=>t.classList.add(o)),s.forEach(o=>t.classList.remove(o))}}function cr(t,e){return typeof e=="object"&&e!==null?Zl(t,e):ql(t,e)}function Zl(t,e){let n={};return Object.entries(e).forEach(([r,i])=>{n[r]=t.style[r],r.startsWith("--")||(r=Kl(r)),t.style.setProperty(r,i)}),setTimeout(()=>{t.style.length===0&&t.removeAttribute("style")}),()=>{cr(t,n)}}function ql(t,e){let n=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",n||"")}}function Kl(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function di(t,e=()=>{}){let n=!1;return function(){n?e.apply(this,arguments):(n=!0,t.apply(this,arguments))}}q("transition",(t,{value:e,modifiers:n,expression:r},{evaluate:i})=>{typeof r=="function"&&(r=i(r)),r?Jl(t,r,e):Xl(t,n,e)});function Jl(t,e,n){$o(t,es,""),{enter:i=>{t._x_transition.enter.during=i},"enter-start":i=>{t._x_transition.enter.start=i},"enter-end":i=>{t._x_transition.enter.end=i},leave:i=>{t._x_transition.leave.during=i},"leave-start":i=>{t._x_transition.leave.start=i},"leave-end":i=>{t._x_transition.leave.end=i}}[n](e)}function Xl(t,e,n){$o(t,cr);let r=!e.includes("in")&&!e.includes("out")&&!n,i=r||e.includes("in")||["enter"].includes(n),s=r||e.includes("out")||["leave"].includes(n);e.includes("in")&&!r&&(e=e.filter((E,S)=>S<e.indexOf("out"))),e.includes("out")&&!r&&(e=e.filter((E,S)=>S>e.indexOf("out")));let a=!e.includes("opacity")&&!e.includes("scale"),o=a||e.includes("opacity"),c=a||e.includes("scale"),u=o?0:1,l=c?ze(e,"scale",95)/100:1,d=ze(e,"delay",0),f=ze(e,"origin","center"),h="opacity, transform",_=ze(e,"duration",150)/1e3,p=ze(e,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(t._x_transition.enter.during={transformOrigin:f,transitionDelay:d,transitionProperty:h,transitionDuration:`${_}s`,transitionTimingFunction:g},t._x_transition.enter.start={opacity:u,transform:`scale(${l})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"}),s&&(t._x_transition.leave.during={transformOrigin:f,transitionDelay:d,transitionProperty:h,transitionDuration:`${p}s`,transitionTimingFunction:g},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:u,transform:`scale(${l})`})}function $o(t,e,n={}){t._x_transition||(t._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(r=()=>{},i=()=>{}){fi(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,i)},out(r=()=>{},i=()=>{}){fi(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},r,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,n,r){const i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let s=()=>i(n);if(e){t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(n):s():t._x_transition?t._x_transition.in(n):s();return}t._x_hidePromise=t._x_transition?new Promise((a,o)=>{t._x_transition.out(()=>{},()=>a(r)),t._x_transitioning.beforeCancel(()=>o({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let a=Wo(t);a?(a._x_hideChildren||(a._x_hideChildren=[]),a._x_hideChildren.push(t)):i(()=>{let o=c=>{let u=Promise.all([c._x_hidePromise,...(c._x_hideChildren||[]).map(o)]).then(([l])=>l());return delete c._x_hidePromise,delete c._x_hideChildren,u};o(t).catch(c=>{if(!c.isFromCancelledTransition)throw c})})})};function Wo(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:Wo(e)}function fi(t,e,{during:n,start:r,end:i}={},s=()=>{},a=()=>{}){if(t._x_transitioning&&t._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(i).length===0){s(),a();return}let o,c,u;Ql(t,{start(){o=e(t,r)},during(){c=e(t,n)},before:s,end(){o(),u=e(t,i)},after:a,cleanup(){c(),u()}})}function Ql(t,e){let n,r,i,s=di(()=>{et(()=>{n=!0,r||e.before(),i||(e.end(),li()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning})});t._x_transitioning={beforeCancels:[],beforeCancel(a){this.beforeCancels.push(a)},cancel:di(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();s()}),finish:s},et(()=>{e.start(),e.during()}),Hl(),requestAnimationFrame(()=>{if(n)return;let a=Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,o=Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;a===0&&(a=Number(getComputedStyle(t).animationDuration.replace("s",""))*1e3),et(()=>{e.before()}),r=!0,requestAnimationFrame(()=>{n||(et(()=>{e.end()}),li(),setTimeout(t._x_transitioning.finish,a+o),i=!0)})})}function ze(t,e,n){if(t.indexOf(e)===-1)return n;const r=t[t.indexOf(e)+1];if(!r||e==="scale"&&isNaN(r))return n;if(e==="duration"){let i=r.match(/([0-9]+)ms/);if(i)return i[1]}
5return e==="origin"&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[r,t[t.indexOf(e)+2]].join(" "):r}var hi=!1;function ur(t,e=()=>{}){return(...n)=>hi?e(...n):t(...n)}function td(t,e){e._x_dataStack||(e._x_dataStack=t._x_dataStack),hi=!0,nd(()=>{ed(e)}),hi=!1}function ed(t){let e=!1;$t(t,(r,i)=>{oe(r,(s,a)=>{if(e&&Wl(s))return a();e=!0,i(s,a)})})}function nd(t){let e=un;Ws((n,r)=>{let i=e(n);return sr(i),()=>{}}),t(),Ws(e)}function jo(t,e,n,r=[]){switch(t._x_bindings||(t._x_bindings=Oe({})),t._x_bindings[e]=n,e=r.includes("camel")?ud(e):e,e){case"value":rd(t,n);break;case"style":sd(t,n);break;case"class":id(t,n);break;default:ad(t,e,n);break}}function rd(t,e){if(t.type==="radio")t.attributes.value===void 0&&(t.value=e),window.fromModel&&(t.checked=Zs(t.value,e));else if(t.type==="checkbox")Number.isInteger(e)?t.value=e:!Number.isInteger(e)&&!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?t.value=String(e):Array.isArray(e)?t.checked=e.some(n=>Zs(n,t.value)):t.checked=!!e;else if(t.tagName==="SELECT")cd(t,e);else{if(t.value===e)return;t.value=e}}function id(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedClasses=es(t,e)}function sd(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles(),t._x_undoAddedStyles=cr(t,e)}function ad(t,e,n){[null,void 0,!1].includes(n)&&ld(e)?t.removeAttribute(e):(Vo(e)&&(n=e),od(t,e,n))}function od(t,e,n){t.getAttribute(e)!=n&&t.setAttribute(e,n)}function cd(t,e){const n=[].concat(e).map(r=>r+"");Array.from(t.options).forEach(r=>{r.selected=n.includes(r.value)})}function ud(t){return t.toLowerCase().replace(/-(\w)/g,(e,n)=>n.toUpperCase())}function Zs(t,e){return t==e}function Vo(t){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(t)}function ld(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}function dd(t,e,n){if(t._x_bindings&&t._x_bindings[e]!==void 0)return t._x_bindings[e];let r=t.getAttribute(e);return r===null?typeof n=="function"?n():n:r===""?!0:Vo(e)?!![e,"true"].includes(r):r}function Zo(t,e){var n;return function(){var r=this,i=arguments,s=function(){n=null,t.apply(r,i)};clearTimeout(n),n=setTimeout(s,e)}}function qo(t,e){let n;return function(){let r=this,i=arguments;n||(t.apply(r,i),n=!0,setTimeout(()=>n=!1,e))}}function fd(t){t(fn)}var te={},qs=!1;function hd(t,e){if(qs||(te=Oe(te),qs=!0),e===void 0)return te[t];te[t]=e,typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&te[t].init(),wo(te[t])}function pd(){return te}var Ko={};function _d(t,e){let n=typeof e!="function"?()=>e:e;t instanceof Element?Jo(t,n()):Ko[t]=n}function md(t){return Object.entries(Ko).forEach(([e,n])=>{Object.defineProperty(t,e,{get(){return(...r)=>n(...r)}})}),t}function Jo(t,e,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(e).map(([a,o])=>({name:a,value:o})),s=Ao(i);i=i.map(a=>s.find(o=>o.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),Ji(t,i,n).map(a=>{r.push(a.runCleanups),a()})}var Xo={};function gd(t,e){Xo[t]=e}function yd(t,e){return Object.entries(Xo).forEach(([n,r])=>{Object.defineProperty(t,n,{get(){return(...i)=>r.bind(e)(...i)},enumerable:!1})}),t}var bd={get reactive(){return Oe},get release(){return sr},get effect(){return un},get raw(){return _o},version:"3.10.5",flushAndStopDeferringMutations:xl,dontAutoEvaluateFunctions:Ol,disableEffectScheduling:El,setReactivityEngine:Sl,closestDataStack:Ee,skipDuringClone:ur,addRootSelector:Yo,addInitSelector:Ho,addScopeToNode:ln,deferMutations:Al,mapAttributes:Xi,evaluateLater:ct,setEvaluator:Ml,mergeProxies:dn,findClosest:or,closestRoot:ar,interceptor:Io,transition:fi,setStyles:cr,mutateDom:et,directive:q,throttle:qo,debounce:Zo,evaluate:ge,initTree:$t,nextTick:Fo,prefixed:Me,prefix:Fl,plugin:fd,magic:vt,store:hd,start:$l,clone:td,bound:dd,$data:vo,data:gd,bind:_d},fn=bd;function Ed(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return e?i=>!!n[i.toLowerCase()]:i=>!!n[i]}var Sd=Object.freeze({}),Qo=Object.assign,vd=Object.prototype.hasOwnProperty,lr=(t,e)=>vd.call(t,e),ie=Array.isArray,Ke=t=>tc(t)==="[object Map]",wd=t=>typeof t=="string",ns=t=>typeof t=="symbol",dr=t=>t!==null&&typeof t=="object",Id=Object.prototype.toString,tc=t=>Id.call(t),ec=t=>tc(t).slice(8,-1),rs=t=>wd(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Td=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Cd=Td(t=>t.charAt(0).toUpperCase()+t.slice(1)),nc=(t,e)=>t!==e&&(t===t||e===e),pi=new WeakMap,Ye=[],Tt,se=Symbol("iterate"),_i=Symbol("Map key iterate");function Rd(t){return t&&t._isEffect===!0}function kd(t,e=Sd){Rd(t)&&(t=t.raw);const n=Nd(t,e);return e.lazy||n(),n}function Ad(t){t.active&&(rc(t),t.options.onStop&&t.options.onStop(),t.active=!1)}var xd=0;function Nd(t,e){const n=function(){if(!n.active)return t();if(!Ye.includes(n)){rc(n);try{return Od(),Ye.push(n),Tt=n,t()}finally{Ye.pop(),ic(),Tt=Ye[Ye.length-1]}}};return n.id=xd++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}function rc(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}var ve=!0,is=[];function Dd(){is.push(ve),ve=!1}function Od(){is.push(ve),ve=!0}function ic(){const t=is.pop();ve=t===void 0?!0:t}function Et(t,e,n){if(!ve||Tt===void 0)return;let r=pi.get(t);r||pi.set(t,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(Tt)||(i.add(Tt),Tt.deps.push(i),Tt.options.onTrack&&Tt.options.onTrack({effect:Tt,target:t,type:e,key:n}))}function Wt(t,e,n,r,i,s){const a=pi.get(t);if(!a)return;const o=new Set,c=l=>{l&&l.forEach(d=>{(d!==Tt||d.allowRecurse)&&o.add(d)})};
5if(e==="clear")a.forEach(c);else if(n==="length"&&ie(t))a.forEach((l,d)=>{(d==="length"||d>=r)&&c(l)});else switch(n!==void 0&&c(a.get(n)),e){case"add":ie(t)?rs(n)&&c(a.get("length")):(c(a.get(se)),Ke(t)&&c(a.get(_i)));break;case"delete":ie(t)||(c(a.get(se)),Ke(t)&&c(a.get(_i)));break;case"set":Ke(t)&&c(a.get(se));break}const u=l=>{l.options.onTrigger&&l.options.onTrigger({effect:l,target:t,key:n,type:e,newValue:r,oldValue:i,oldTarget:s}),l.options.scheduler?l.options.scheduler(l):l()};o.forEach(u)}var Md=Ed("__proto__,__v_isRef,__isVue"),sc=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(ns)),Bd=fr(),Ud=fr(!1,!0),Ld=fr(!0),Fd=fr(!0,!0),Wn={};["includes","indexOf","lastIndexOf"].forEach(t=>{const e=Array.prototype[t];Wn[t]=function(...n){const r=z(this);for(let s=0,a=this.length;s<a;s++)Et(r,"get",s+"");const i=e.apply(r,n);return i===-1||i===!1?e.apply(r,n.map(z)):i}});["push","pop","shift","unshift","splice"].forEach(t=>{const e=Array.prototype[t];Wn[t]=function(...n){Dd();const r=e.apply(this,n);return ic(),r}});function fr(t=!1,e=!1){return function(r,i,s){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_raw"&&s===(t?e?Zd:Ec:e?Vd:bc).get(r))return r;const a=ie(r);if(!t&&a&&lr(Wn,i))return Reflect.get(Wn,i,s);const o=Reflect.get(r,i,s);return(ns(i)?sc.has(i):Md(i))||(t||Et(r,"get",i),e)?o:mi(o)?!a||!rs(i)?o.value:o:dr(o)?t?Sc(o):cs(o):o}}var Gd=ac(),Pd=ac(!0);function ac(t=!1){return function(n,r,i,s){let a=n[r];if(!t&&(i=z(i),a=z(a),!ie(n)&&mi(a)&&!mi(i)))return a.value=i,!0;const o=ie(n)&&rs(r)?Number(r)<n.length:lr(n,r),c=Reflect.set(n,r,i,s);return n===z(s)&&(o?nc(i,a)&&Wt(n,"set",r,i,a):Wt(n,"add",r,i)),c}}function zd(t,e){const n=lr(t,e),r=t[e],i=Reflect.deleteProperty(t,e);return i&&n&&Wt(t,"delete",e,void 0,r),i}function Yd(t,e){const n=Reflect.has(t,e);return(!ns(e)||!sc.has(e))&&Et(t,"has",e),n}function Hd(t){return Et(t,"iterate",ie(t)?"length":se),Reflect.ownKeys(t)}var oc={get:Bd,set:Gd,deleteProperty:zd,has:Yd,ownKeys:Hd},cc={get:Ld,set(t,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0},deleteProperty(t,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}};Qo({},oc,{get:Ud,set:Pd});Qo({},cc,{get:Fd});var ss=t=>dr(t)?cs(t):t,as=t=>dr(t)?Sc(t):t,os=t=>t,hr=t=>Reflect.getPrototypeOf(t);function pr(t,e,n=!1,r=!1){t=t.__v_raw;const i=z(t),s=z(e);e!==s&&!n&&Et(i,"get",e),!n&&Et(i,"get",s);const{has:a}=hr(i),o=r?os:n?as:ss;if(a.call(i,e))return o(t.get(e));if(a.call(i,s))return o(t.get(s));t!==i&&t.get(e)}function _r(t,e=!1){const n=this.__v_raw,r=z(n),i=z(t);return t!==i&&!e&&Et(r,"has",t),!e&&Et(r,"has",i),t===i?n.has(t):n.has(t)||n.has(i)}function mr(t,e=!1){return t=t.__v_raw,!e&&Et(z(t),"iterate",se),Reflect.get(t,"size",t)}function uc(t){t=z(t);const e=z(this);return hr(e).has.call(e,t)||(e.add(t),Wt(e,"add",t,t)),this}function lc(t,e){e=z(e);const n=z(this),{has:r,get:i}=hr(n);let s=r.call(n,t);s?yc(n,r,t):(t=z(t),s=r.call(n,t));const a=i.call(n,t);return n.set(t,e),s?nc(e,a)&&Wt(n,"set",t,e,a):Wt(n,"add",t,e),this}function dc(t){const e=z(this),{has:n,get:r}=hr(e);let i=n.call(e,t);i?yc(e,n,t):(t=z(t),i=n.call(e,t));const s=r?r.call(e,t):void 0,a=e.delete(t);return i&&Wt(e,"delete",t,void 0,s),a}function fc(){const t=z(this),e=t.size!==0,n=Ke(t)?new Map(t):new Set(t),r=t.clear();return e&&Wt(t,"clear",void 0,void 0,n),r}function gr(t,e){return function(r,i){const s=this,a=s.__v_raw,o=z(a),c=e?os:t?as:ss;return!t&&Et(o,"iterate",se),a.forEach((u,l)=>r.call(i,c(u),c(l),s))}}function Sn(t,e,n){return function(...r){const i=this.__v_raw,s=z(i),a=Ke(s),o=t==="entries"||t===Symbol.iterator&&a,c=t==="keys"&&a,u=i[t](...r),l=n?os:e?as:ss;return!e&&Et(s,"iterate",c?_i:se),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:o?[l(d[0]),l(d[1])]:l(d),done:f}},[Symbol.iterator](){return this}}}}function Pt(t){return function(...e){{const n=e[0]?`on key "${e[0]}" `:"";console.warn(`${Cd(t)} operation ${n}failed: target is readonly.`,z(this))}return t==="delete"?!1:this}}var hc={get(t){return pr(this,t)},get size(){return mr(this)}
5,has:_r,add:uc,set:lc,delete:dc,clear:fc,forEach:gr(!1,!1)},pc={get(t){return pr(this,t,!1,!0)},get size(){return mr(this)},has:_r,add:uc,set:lc,delete:dc,clear:fc,forEach:gr(!1,!0)},_c={get(t){return pr(this,t,!0)},get size(){return mr(this,!0)},has(t){return _r.call(this,t,!0)},add:Pt("add"),set:Pt("set"),delete:Pt("delete"),clear:Pt("clear"),forEach:gr(!0,!1)},mc={get(t){return pr(this,t,!0,!0)},get size(){return mr(this,!0)},has(t){return _r.call(this,t,!0)},add:Pt("add"),set:Pt("set"),delete:Pt("delete"),clear:Pt("clear"),forEach:gr(!0,!0)},$d=["keys","values","entries",Symbol.iterator];$d.forEach(t=>{hc[t]=Sn(t,!1,!1),_c[t]=Sn(t,!0,!1),pc[t]=Sn(t,!1,!0),mc[t]=Sn(t,!0,!0)});function gc(t,e){const n=e?t?mc:pc:t?_c:hc;return(r,i,s)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(lr(n,i)&&i in r?n:r,i,s)}var Wd={get:gc(!1,!1)},jd={get:gc(!0,!1)};function yc(t,e,n){const r=z(n);if(r!==n&&e.call(t,r)){const i=ec(t);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var bc=new WeakMap,Vd=new WeakMap,Ec=new WeakMap,Zd=new WeakMap;function qd(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kd(t){return t.__v_skip||!Object.isExtensible(t)?0:qd(ec(t))}function cs(t){return t&&t.__v_isReadonly?t:vc(t,!1,oc,Wd,bc)}function Sc(t){return vc(t,!0,cc,jd,Ec)}function vc(t,e,n,r,i){if(!dr(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=i.get(t);if(s)return s;const a=Kd(t);if(a===0)return t;const o=new Proxy(t,a===2?r:n);return i.set(t,o),o}function z(t){return t&&z(t.__v_raw)||t}function mi(t){return!!(t&&t.__v_isRef===!0)}vt("nextTick",()=>Fo);vt("dispatch",t=>qe.bind(qe,t));vt("watch",(t,{evaluateLater:e,effect:n})=>(r,i)=>{let s=e(r),a=!0,o,c=n(()=>s(u=>{JSON.stringify(u),a?o=u:queueMicrotask(()=>{i(u,o),o=u}),a=!1}));t._x_effects.delete(c)});vt("store",pd);vt("data",t=>vo(t));vt("root",t=>ar(t));vt("refs",t=>(t._x_refs_proxy||(t._x_refs_proxy=dn(Jd(t))),t._x_refs_proxy));function Jd(t){let e=[],n=t;for(;n;)n._x_refs&&e.push(n._x_refs),n=n.parentNode;return e}var $r={};function wc(t){return $r[t]||($r[t]=0),++$r[t]}function Xd(t,e){return or(t,n=>{if(n._x_ids&&n._x_ids[e])return!0})}
5function Qd(t,e){t._x_ids||(t._x_ids={}),t._x_ids[e]||(t._x_ids[e]=wc(e))}vt("id",t=>(e,n=null)=>{let r=Xd(t,e),i=r?r._x_ids[e]:wc(e);return n?`${e}-${i}-${n}`:`${e}-${i}`});vt("el",t=>t);Ic("Focus","focus","focus");Ic("Persist","persist","persist");function Ic(t,e,n){vt(e,r=>Se(`You can't use [$${directiveName}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}q("modelable",(t,{expression:e},{effect:n,evaluateLater:r})=>{let i=r(e),s=()=>{let u;return i(l=>u=l),u},a=r(`${e} = __placeholder`),o=u=>a(()=>{},{scope:{__placeholder:u}}),c=s();o(c),queueMicrotask(()=>{if(!t._x_model)return;t._x_removeModelListeners.default();let u=t._x_model.get,l=t._x_model.set;n(()=>o(u())),n(()=>l(s()))})});q("teleport",(t,{expression:e},{cleanup:n})=>{t.tagName.toLowerCase()!=="template"&&Se("x-teleport can only be used on a <template> tag",t);let r=document.querySelector(e);r||Se(`Cannot find x-teleport element for selector: "${e}"`);let i=t.content.cloneNode(!0).firstElementChild;t._x_teleport=i,i._x_teleportBack=t,t._x_forwardEvents&&t._x_forwardEvents.forEach(s=>{i.addEventListener(s,a=>{a.stopPropagation(),t.dispatchEvent(new a.constructor(a.type,a))})}),ln(i,{},t),et(()=>{r.appendChild(i),$t(i),i._x_ignore=!0}),n(()=>i.remove())});var Tc=()=>{};Tc.inline=(t,{modifiers:e},{cleanup:n})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,n(()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore})};q("ignore",Tc);q("effect",(t,{expression:e},{effect:n})=>n(ct(t,e)));function Cc(t,e,n,r){let i=t,s=c=>r(c),a={},o=(c,u)=>l=>u(c,l);if(n.includes("dot")&&(e=tf(e)),n.includes("camel")&&(e=ef(e)),n.includes("passive")&&(a.passive=!0),n.includes("capture")&&(a.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("prevent")&&(s=o(s,(c,u)=>{u.preventDefault(),c(u)})),n.includes("stop")&&(s=o(s,(c,u)=>{u.stopPropagation(),c(u)})),n.includes("self")&&(s=o(s,(c,u)=>{u.target===t&&c(u)})),(n.includes("away")||n.includes("outside"))&&(i=document,s=o(s,(c,u)=>{t.contains(u.target)||u.target.isConnected!==!1&&(t.offsetWidth<1&&t.offsetHeight<1||t._x_isShown!==!1&&c(u))})),n.includes("once")&&(s=o(s,(c,u)=>{c(u),i.removeEventListener(e,s,a)})),s=o(s,(c,u)=>{rf(e)&&sf(u,n)||c(u)}),n.includes("debounce")){let c=n[n.indexOf("debounce")+1]||"invalid-wait",u=gi(c.split("ms")[0])?Number(c.split("ms")[0]):250;s=Zo(s,u)}if(n.includes("throttle")){let c=n[n.indexOf("throttle")+1]||"invalid-wait",u=gi(c.split("ms")[0])?Number(c.split("ms")[0]):250;s=qo(s,u)}return i.addEventListener(e,s,a),()=>{i.removeEventListener(e,s,a)}}function tf(t){return t.replace(/-/g,".")}function ef(t){return t.toLowerCase().replace(/-(\w)/g,(e,n)=>n.toUpperCase())}function gi(t){return!Array.isArray(t)&&!isNaN(t)}function nf(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function rf(t){return["keydown","keyup"].includes(t)}function sf(t,e){let n=e.filter(s=>!["window","document","prevent","stop","once"].includes(s));if(n.includes("debounce")){let s=n.indexOf("debounce");n.splice(s,gi((n[s+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&Ks(t.key).includes(n[0]))return!1;const i=["ctrl","shift","alt","meta","cmd","super"].filter(s=>n.includes(s));return n=n.filter(s=>!i.includes(s)),!(i.length>0&&i.filter(a=>((a==="cmd"||a==="super")&&(a="meta"),t[`${a}Key`])).length===i.length&&Ks(t.key).includes(n[0]))}function Ks(t){if(!t)return[];t=nf(t);let e={ctrl:"control",slash:"/",space:"-",spacebar:"-",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"="};return e[t]=t,Object.keys(e).map(n=>{if(e[n]===t)return n}).filter(n=>n)}q("model",(t,{modifiers:e,expression:n},{effect:r,cleanup:i})=>{let s=ct(t,n),a=`${n} = rightSideOfExpression($event, ${n})`,o=ct(t,a);var c=t.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(t.type)||e.includes("lazy")?"change":"input";let u=af(t,e,n),l=Cc(t,c,e,f=>{o(()=>{},{scope:{$event:f,rightSideOfExpression:u}})});t._x_removeModelListeners||(t._x_removeModelListeners={}),t._x_removeModelListeners.default=l,i(()=>t._x_removeModelListeners.default());let d=ct(t,`${n} = __placeholder`);t._x_model={get(){let f;return s(h=>f=h),f},set(f){d(()=>{},{scope:{__placeholder:f}})}},t._x_forceModelUpdate=()=>{s(f=>{f===void 0&&n.match(/\./)&&(f=""),window.fromModel=!0,et(()=>jo(t,"value",f)),delete window.fromModel})},r(()=>{e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate()})});function af(t,e,n){return t.type==="radio"&&et(()=>{t.hasAttribute("name")||t.setAttribute("name",n)}),(r,i)=>et(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail||r.target.value;if(t.type==="checkbox")if(Array.isArray(i)){let s=e.includes("number")?Wr(r.target.value):r.target.value;return r.target.checked?i.concat([s]):i.filter(a=>!of(a,s))}else return r.target.checked;else{if(t.tagName.toLowerCase()==="select"&&t.multiple)return e.includes("number")?Array.from(r.target.selectedOptions).map(s=>{let a=s.value||s.text;return Wr(a)}):Array.from(r.target.selectedOptions).map(s=>s.value||s.text);{let s=r.target.value;
5return e.includes("number")?Wr(s):e.includes("trim")?s.trim():s}}})}function Wr(t){let e=t?parseFloat(t):null;return cf(e)?e:t}function of(t,e){return t==e}function cf(t){return!Array.isArray(t)&&!isNaN(t)}q("cloak",t=>queueMicrotask(()=>et(()=>t.removeAttribute(Me("cloak")))));Ho(()=>`[${Me("init")}]`);q("init",ur((t,{expression:e},{evaluate:n})=>typeof e=="string"?!!e.trim()&&n(e,{},!1):n(e,{},!1)));q("text",(t,{expression:e},{effect:n,evaluateLater:r})=>{let i=r(e);n(()=>{i(s=>{et(()=>{t.textContent=s})})})});q("html",(t,{expression:e},{effect:n,evaluateLater:r})=>{let i=r(e);n(()=>{i(s=>{et(()=>{t.innerHTML=s,t._x_ignoreSelf=!0,$t(t),delete t._x_ignoreSelf})})})});Xi(Do(":",Oo(Me("bind:"))));q("bind",(t,{value:e,modifiers:n,expression:r,original:i},{effect:s})=>{if(!e){let o={};md(o),ct(t,r)(u=>{Jo(t,u,i)},{scope:o});return}if(e==="key")return uf(t,r);let a=ct(t,r);s(()=>a(o=>{o===void 0&&typeof r=="string"&&r.match(/\./)&&(o=""),et(()=>jo(t,e,o,n))}))});function uf(t,e){t._x_keyExpression=e}Yo(()=>`[${Me("data")}]`);q("data",ur((t,{expression:e},{cleanup:n})=>{e=e===""?"{}":e;let r={};ai(r,t);let i={};yd(i,r);let s=ge(t,e,{scope:i});s===void 0&&(s={}),ai(s,t);let a=Oe(s);wo(a);let o=ln(t,a);a.init&&ge(t,a.init),n(()=>{a.destroy&&ge(t,a.destroy),o()})}));q("show",(t,{modifiers:e,expression:n},{effect:r})=>{let i=ct(t,n);t._x_doHide||(t._x_doHide=()=>{et(()=>{t.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),t._x_doShow||(t._x_doShow=()=>{et(()=>{t.style.length===1&&t.style.display==="none"?t.removeAttribute("style"):t.style.removeProperty("display")})});let s=()=>{t._x_doHide(),t._x_isShown=!1},a=()=>{t._x_doShow(),t._x_isShown=!0},o=()=>setTimeout(a),c=di(d=>d?a():s(),d=>{typeof t._x_toggleAndCascadeWithTransitions=="function"?t._x_toggleAndCascadeWithTransitions(t,d,a,s):d?o():s()}),u,l=!0;r(()=>i(d=>{!l&&d===u||(e.includes("immediate")&&(d?o():s()),c(d),u=d,l=!1)}))});q("for",(t,{expression:e},{effect:n,cleanup:r})=>{let i=df(e),s=ct(t,i.items),a=ct(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},n(()=>lf(t,i,s,a)),r(()=>{Object.values(t._x_lookup).forEach(o=>o.remove()),delete t._x_prevKeys,delete t._x_lookup})});function lf(t,e,n,r){let i=a=>typeof a=="object"&&!Array.isArray(a),s=t;n(a=>{ff(a)&&a>=0&&(a=Array.from(Array(a).keys(),g=>g+1)),a===void 0&&(a=[]);let o=t._x_lookup,c=t._x_prevKeys,u=[],l=[];if(i(a))a=Object.entries(a).map(([g,E])=>{let S=Js(e,E,g,a);r(I=>l.push(I),{scope:{index:g,...S}}),u.push(S)});else for(let g=0;g<a.length;g++){let E=Js(e,a[g],g,a);r(S=>l.push(S),{scope:{index:g,...E}}),u.push(E)}let d=[],f=[],h=[],_=[];for(let g=0;g<c.length;g++){let E=c[g];l.indexOf(E)===-1&&h.push(E)}c=c.filter(g=>!h.includes(g));let p="template";for(let g=0;g<l.length;g++){let E=l[g],S=c.indexOf(E);if(S===-1)c.splice(g,0,E),d.push([p,g]);else if(S!==g){let I=c.splice(g,1)[0],T=c.splice(S-1,1)[0];c.splice(g,0,T),c.splice(S,0,I),f.push([I,T])}else _.push(E);p=E}for(let g=0;g<h.length;g++){let E=h[g];o[E]._x_effects&&o[E]._x_effects.forEach(po),o[E].remove(),o[E]=null,delete o[E]}for(let g=0;g<f.length;g++){let[E,S]=f[g],I=o[E],T=o[S],C=document.createElement("div");et(()=>{T.after(C),I.after(T),T._x_currentIfEl&&T.after(T._x_currentIfEl),C.before(I),I._x_currentIfEl&&I.after(I._x_currentIfEl),C.remove()}),js(T,u[l.indexOf(S)])}for(let g=0;g<d.length;g++){let[E,S]=d[g],I=E==="template"?s:o[E];I._x_currentIfEl&&(I=I._x_currentIfEl);let T=u[S],C=l[S],m=document.importNode(s.content,!0).firstElementChild;ln(m,Oe(T),s),et(()=>{I.after(m),$t(m)}),typeof C=="object"&&Se("x-for key cannot be an object, it must be a string or an integer",s),o[C]=m}for(let g=0;g<_.length;g++)js(o[_[g]],u[l.indexOf(_[g])]);s._x_prevKeys=l})}function df(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=t.match(r);if(!i)return;let s={};s.items=i[2].trim();let a=i[1].replace(n,"").trim(),o=a.match(e);return o?(s.item=a.replace(e,"").trim(),s.index=o[1].trim(),o[2]&&(s.collection=o[2].trim())):s.item=a,s}function Js(t,e,n,r){let i={};return/^\[.*\]$/.test(t.item)&&Array.isArray(e)?t.item.replace("[","").replace("]","").split(",").map(a=>
5a.trim()).forEach((a,o)=>{i[a]=e[o]}):/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&typeof e=="object"?t.item.replace("{","").replace("}","").split(",").map(a=>a.trim()).forEach(a=>{i[a]=e[a]}):i[t.item]=e,t.index&&(i[t.index]=n),t.collection&&(i[t.collection]=r),i}function ff(t){return!Array.isArray(t)&&!isNaN(t)}function Rc(){}Rc.inline=(t,{expression:e},{cleanup:n})=>{let r=ar(t);r._x_refs||(r._x_refs={}),r._x_refs[e]=t,n(()=>delete r._x_refs[e])};q("ref",Rc);q("if",(t,{expression:e},{effect:n,cleanup:r})=>{let i=ct(t,e),s=()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let o=t.content.cloneNode(!0).firstElementChild;return ln(o,{},t),et(()=>{t.after(o),$t(o)}),t._x_currentIfEl=o,t._x_undoIf=()=>{oe(o,c=>{c._x_effects&&c._x_effects.forEach(po)}),o.remove(),delete t._x_currentIfEl},o},a=()=>{t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)};n(()=>i(o=>{o?s():a()})),r(()=>t._x_undoIf&&t._x_undoIf())});q("id",(t,{expression:e},{evaluate:n})=>{n(e).forEach(i=>Qd(t,i))});Xi(Do("@",Oo(Me("on:"))));q("on",ur((t,{value:e,modifiers:n,expression:r},{cleanup:i})=>{let s=r?ct(t,r):()=>{};t.tagName.toLowerCase()==="template"&&(t._x_forwardEvents||(t._x_forwardEvents=[]),t._x_forwardEvents.includes(e)||t._x_forwardEvents.push(e));let a=Cc(t,e,n,o=>{s(()=>{},{scope:{$event:o},params:[o]})});i(()=>a())}));yr("Collapse","collapse","collapse");yr("Intersect","intersect","intersect");yr("Focus","trap","focus");yr("Mask","mask","mask");function yr(t,e,n){q(e,r=>Se(`You can't use [x-${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}fn.setEvaluator(Ro);fn.setReactivityEngine({reactive:cs,effect:kd,release:Ad,raw:z});var hf=fn,mt=hf;/*! 6* tabbable 5.2.1 7* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 8*/var kc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Xs=kc.join(","),jn=typeof Element>"u"?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ac=function(e,n,r){var i=Array.prototype.slice.apply(e.querySelectorAll(Xs));return n&&jn.call(e,Xs)&&i.unshift(e),i=i.filter(r),i},pf=function(e){return e.contentEditable==="true"},xc=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return isNaN(n)?pf(e)||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:n},_f=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},us=function(e){return e.tagName==="INPUT"},mf=function(e){return us(e)&&e.type==="hidden"},gf=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},yf=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},bf=function(e){if(!e.name)return!0;var n=e.form||e.ownerDocument,r=function(o){return n.querySelectorAll('input[type="radio"][name="'+o+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var s=yf(i,e.form);return!s||s===e},Ef=function(e){return us(e)&&e.type==="radio"},Sf=function(e){return Ef(e)&&!bf(e)},vf=function(e,n){if(getComputedStyle(e).visibility==="hidden")return!0;var r=jn.call(e,"details>summary:first-of-type"),i=r?e.parentElement:e;if(jn.call(i,"details:not([open]) *"))return!0;if(!n||n==="full")for(;e;){if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}else if(n==="non-zero-area"){var s=e.getBoundingClientRect(),a=s.width,o=s.height;return a===0&&o===0}return!1},wf=function(e){if(us(e)||e.tagName==="SELECT"||e.tagName==="TEXTAREA"||e.tagName==="BUTTON")for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return!i.contains(e)}return!0}n=n.parentElement}return!1},ls=function(e,n){return!(n.disabled||mf(n)||vf(n,e.displayCheck)||gf(n)||wf(n))},If=function(e,n){return!(!ls(e,n)||Sf(n)||xc(n)<0)}
8,Tf=function(e,n){n=n||{};var r=[],i=[],s=Ac(e,n.includeContainer,If.bind(null,n));s.forEach(function(o,c){var u=xc(o);u===0?r.push(o):i.push({documentOrder:c,tabIndex:u,node:o})});var a=i.sort(_f).map(function(o){return o.node}).concat(r);return a},Cf=function(e,n){n=n||{};var r=Ac(e,n.includeContainer,ls.bind(null,n));return r},Rf=kc.concat("iframe").join(","),Nc=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return jn.call(e,Rf)===!1?!1:ls(n,e)};/*! 9* focus-trap 6.6.1 10* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 11*/function Qs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function kf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qs(Object(n),!0).forEach(function(r){Af(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Af(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ta=function(){var t=[];return{activateTrap:function(n){if(t.length>0){var r=t[t.length-1];r!==n&&r.pause()}var i=t.indexOf(n);i===-1||t.splice(i,1),t.push(n)},deactivateTrap:function(n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}}}(),xf=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Nf=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},Df=function(e){return e.key==="Tab"||e.keyCode===9},ea=function(e){return setTimeout(e,0)},jr=function(e,n){var r=-1;return e.every(function(i,s){return n(i)?(r=s,!1):!0}),r},He=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,r):e},Of=function(e,n){var r=document,i=kf({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},n),s={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a,o=function(m,b,w){return m&&m[b]!==void 0?m[b]:i[w||b]},c=function(m){return s.containers.some(function(b){return b.contains(m)})},u=function(m){var b=i[m];if(!b)return null;var w=b;if(typeof b=="string"&&(w=r.querySelector(b),!w))throw new Error("`".concat(m,"` refers to no known node"));if(typeof b=="function"&&(w=b(),!w))throw new Error("`".concat(m,"` did not return a node"));return w},l=function(){var m;if(o({},"initialFocus")===!1)return!1;if(u("initialFocus")!==null)m=u("initialFocus");else if(c(r.activeElement))m=r.activeElement;else{var b=s.tabbableGroups[0],w=b&&b.firstTabbableNode;m=w||u("fallbackFocus")}if(!m)throw new Error("Your focus-trap needs to have at least one focusable element");return m},d=function(){if(s.tabbableGroups=s.containers.map(function(m){var b=Tf(m);if(b.length>0)return{container:m,firstTabbableNode:b[0],lastTabbableNode:b[b.length-1]}}).filter(function(m){return!!m}),s.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},f=function C(m){if(m!==!1&&m!==r.activeElement){if(!m||!m.focus){C(l());return}m.focus({preventScroll:!!i.preventScroll}),s.mostRecentlyFocusedNode=m,xf(m)&&m.select()}},h=function(m){var b=u("setReturnFocus");return b||m},_=function(m){if(!c(m.target)){if(He(i.clickOutsideDeactivates,m)){a.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Nc(m.target)});return}He(i.allowOutsideClick,m)||m.preventDefault()}},p=function(m){var b=c(m.target);b||m.target instanceof Document?b&&(s.mostRecentlyFocusedNode=m.target):(m.stopImmediatePropagation(),f(s.mostRecentlyFocusedNode||l()))},g=function(m){d();var b=null;if(s.tabbableGroups.length>0){var w=jr(s.tabbableGroups,function(J){var D=J.container;return D.contains(m.target)});if(w<0)m.shiftKey?b=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:b=s.tabbableGroups[0].firstTabbableNode;else if(m.shiftKey){var N=jr(s.tabbableGroups,function(J){var D=J.f
11irstTabbableNode;return m.target===D});if(N<0&&s.tabbableGroups[w].container===m.target&&(N=w),N>=0){var v=N===0?s.tabbableGroups.length-1:N-1,R=s.tabbableGroups[v];b=R.lastTabbableNode}}else{var U=jr(s.tabbableGroups,function(J){var D=J.lastTabbableNode;return m.target===D});if(U<0&&s.tabbableGroups[w].container===m.target&&(U=w),U>=0){var j=U===s.tabbableGroups.length-1?0:U+1,K=s.tabbableGroups[j];b=K.firstTabbableNode}}}else b=u("fallbackFocus");b&&(m.preventDefault(),f(b))},E=function(m){if(Nf(m)&&He(i.escapeDeactivates)!==!1){m.preventDefault(),a.deactivate();return}if(Df(m)){g(m);return}},S=function(m){He(i.clickOutsideDeactivates,m)||c(m.target)||He(i.allowOutsideClick,m)||(m.preventDefault(),m.stopImmediatePropagation())},I=function(){if(s.active)return ta.activateTrap(a),s.delayInitialFocusTimer=i.delayInitialFocus?ea(function(){f(l())}):f(l()),r.addEventListener("focusin",p,!0),r.addEventListener("mousedown",_,{capture:!0,passive:!1}),r.addEventListener("touchstart",_,{capture:!0,passive:!1}),r.addEventListener("click",S,{capture:!0,passive:!1}),r.addEventListener("keydown",E,{capture:!0,passive:!1}),a},T=function(){if(s.active)return r.removeEventListener("focusin",p,!0),r.removeEventListener("mousedown",_,!0),r.removeEventListener("touchstart",_,!0),r.removeEventListener("click",S,!0),r.removeEventListener("keydown",E,!0),a};return a={activate:function(m){if(s.active)return this;var b=o(m,"onActivate"),w=o(m,"onPostActivate"),N=o(m,"checkCanFocusTrap");N||d(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=r.activeElement,b&&b();var v=function(){N&&d(),I(),w&&w()};return N?(N(s.containers.concat()).then(v,v),this):(v(),this)},deactivate:function(m){if(!s.active)return this;clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,T(),s.active=!1,s.paused=!1,ta.deactivateTrap(a);var b=o(m,"onDeactivate"),w=o(m,"onPostDeactivate"),N=o(m,"checkCanReturnFocus");b&&b();var v=o(m,"returnFocus","returnFocusOnDeactivate"),R=function(){ea(function(){v&&f(h(s.nodeFocusedBeforeActivation)),w&&w()})};return v&&N?(N(h(s.nodeFocusedBeforeActivation)).then(R,R),this):(R(),this)},pause:function(){return s.paused||!s.active?this:(s.paused=!0,T(),this)},unpause:function(){return!s.paused||!s.active?this:(s.paused=!1,d(),I(),this)},updateContainerElements:function(m){var b=[].concat(m).filter(Boolean);return s.containers=b.map(function(w){return typeof w=="string"?r.querySelector(w):w}),s.active&&d(),this}},a.updateContainerElements(e),a};function Mf(t){let e,n;window.addEventListener("focusin",()=>{e=n,n=document.activeElement}),t.magic("focus",r=>{let i=r;return{__noscroll:!1,__wrapAround:!1,within(s){return i=s,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(s){return Nc(s)},previouslyFocused(){return e},lastFocused(){return e},focused(){return n},focusables(){return Array.isArray(i)?i:Cf(i,{displayCheck:"none"})},all(){return this.focusables()},isFirst(s){let a=this.all();return a[0]&&a[0].isSameNode(s)},isLast(s){let a=this.all();return a.length&&a.slice(-1)[0].isSameNode(s)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let s=this.all(),a=document.activeElement;if(s.indexOf(a)!==-1)return this.__wrapAround&&s.indexOf(a)===s.length-1?s[0]:s[s.indexOf(a)+1]},getPrevious(){let s=this.all(),a=document.activeElement;if(s.indexOf(a)!==-1)return this.__wrapAround&&s.indexOf(a)===0?s.slice(-1)[0]:s[s.indexOf(a)-1]},first(){this.focus(this.getFirst())},last(){this.focus(this.getLast())},next(){this.focus(this.getNext())},previous(){this.focus(this.getPrevious())},prev(){return this.previous()},focus(s){s&&setTimeout(()=>{s.hasAttribute("tabindex")||s.setAttribute("tabindex","0"),s.focus({preventScroll:this._noscroll})})}}}),t.directive("trap",t.skipDuringClone((r,{expression:i,modifiers:s},{effect:a,evaluateLater:o,cleanup:c})=>{let u=o(i),l=!1,d=Of(r,{escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>r,initialFocus:r.querySelector("[autofocus]")}),f=()=>{},h=()=>{};const _=()=>{f(),f=()=>{},h(),h=()=>{},d.deactivate({returnFocus:!s.includes("noreturn")})};a(()=>u(p=>{l!==p&&(p&&!l&&setTimeout(()=>{s.includes("inert")&&(f=na(r)),s.includes("noscroll")&&(h=Bf()),d.activate()}),!p&&l&&_(),l=!!p)})),c(_)},(r,{expression:i,modifiers:s},{evaluate:a})=>{s.includes("inert")&&a(i)&&na(r)}))}function na(t){let e=[];return Dc(t,n=>{let r=n.hasAttribute("aria-hidden");n.setAttribute("aria-hidden","true"),e.push(()=>r||n.removeAttribute("aria-hidden"))}),()=>{for(;e.length;)e.pop()()}}function Dc(t,e){t.isSameNode(document.body)||!t.parentNode||Array.from(t.parentNode.children).forEac
11h(n=>{n.isSameNode(t)||e(n),Dc(t.parentNode,e)})}function Bf(){let t=document.documentElement.style.overflow,e=document.documentElement.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${n}px`,()=>{document.documentElement.style.overflow=t,document.documentElement.style.paddingRight=e}}var Uf=Mf;function Lf(t){t.directive("intersect",(e,{value:n,expression:r,modifiers:i},{evaluateLater:s,cleanup:a})=>{let o=s(r),c={rootMargin:Pf(i),threshold:Ff(i)},u=new IntersectionObserver(l=>{l.forEach(d=>{d.isIntersecting!==(n==="leave")&&(o(),i.includes("once")&&u.disconnect())})},c);u.observe(e),a(()=>{u.disconnect()})})}function Ff(t){if(t.includes("full"))return .99;if(t.includes("half"))return .5;if(!t.includes("threshold"))return 0;let e=t[t.indexOf("threshold")+1];return e==="100"?1:e==="0"?0:+`.${e}`}function Gf(t){let e=t.match(/^(-?[0-9]+)(px|%)?$/);return e?e[1]+(e[2]||"px"):void 0}function Pf(t){const e="margin",n="0px 0px 0px 0px",r=t.indexOf(e);if(r===-1)return n;let i=[];for(let s=1;s<5;s++)i.push(Gf(t[r+s]||""));return i=i.filter(s=>s!==void 0),i.length?i.join(" ").trim():n}var zf=Lf;function Yf(t){t.directive("collapse",e),e.inline=(n,{modifiers:r})=>{r.includes("min")&&(n._x_doShow=()=>{},n._x_doHide=()=>{})};function e(n,{modifiers:r}){let i=ra(r,"duration",250)/1e3,s=ra(r,"min",0),a=!r.includes("min");n._x_isShown||(n.style.height=`${s}px`),!n._x_isShown&&a&&(n.hidden=!0),n._x_isShown||(n.style.overflow="hidden");let o=(u,l)=>{let d=t.setStyles(u,l);return l.height?()=>{}:d},c={transitionProperty:"height",transitionDuration:`${i}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};n._x_transition={in(u=()=>{},l=()=>{}){a&&(n.hidden=!1),a&&(n.style.display=null);let d=n.getBoundingClientRect().height;n.style.height="auto";let f=n.getBoundingClientRect().height;d===f&&(d=s),t.transition(n,t.setStyles,{during:c,start:{height:d+"px"},end:{height:f+"px"}},()=>n._x_isShown=!0,()=>{n.getBoundingClientRect().height==f&&(n.style.overflow=null)})},out(u=()=>{},l=()=>{}){let d=n.getBoundingClientRect().height;t.transition(n,o,{during:c,start:{height:d+"px"},end:{height:s+"px"}},()=>n.style.overflow="hidden",()=>{n._x_isShown=!1,n.style.height==`${s}px`&&a&&(n.style.display="none",n.hidden=!0)})}}}}function ra(t,e,n){if(t.indexOf(e)===-1)return n;const r=t[t.indexOf(e)+1];if(!r)return n;if(e==="duration"){let i=r.match(/([0-9]+)ms/);if(i)return i[1]}if(e==="min"){let i=r.match(/([0-9]+)px/);if(i)return i[1]}return r}var Hf=Yf;function $f(t){let e=()=>{let n,r=localStorage;return t.interceptor((i,s,a,o,c)=>{let u=n||`_x_${o}`,l=ia(u,r)?sa(u,r):i;return a(l),t.effect(()=>{let d=s();aa(u,d,r),a(d)}),l},i=>{i.as=s=>(n=s,i),i.using=s=>(r=s,i)})};Object.defineProperty(t,"$persist",{get:()=>e()}),t.magic("persist",e),t.persist=(n,{get:r,set:i},s=localStorage)=>{let a=ia(n,s)?sa(n,s):r();i(a),t.effect(()=>{let o=r();aa(n,o,s),i(o)})}}function ia(t,e){return e.getItem(t)!==null}function sa(t,e){return JSON.parse(e.getItem(t,e))}function aa(t,e,n){n.setItem(t,JSON.stringify(e))}var Wf=$f;const Oc=Object.prototype.toString;function Mc(t){switch(Oc.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Mt(t,Error)}}function Be(t,e){return Oc.call(t)===`[object ${e}]`}function ds(t){return Be(t,"ErrorEvent")}function oa(t){return Be(t,"DOMError")}function jf(t){return Be(t,"DOMException")}function jt(t){return Be(t,"String")}function Bc(t){return t===null||typeof t!="object"&&typeof t!="function"}function we(t){return Be(t,"Object")}function br(t){return typeof Event<"u"&&Mt(t,Event)}function Vf(t){return typeof Element<"u"&&Mt(t,Element)}function Zf(t){return Be(t,"RegExp")}function fs(t){return!!(t&&t.then&&typeof t.then=="function")}function qf(t){return we(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Uc(t){return typeof t=="number"&&t!==t}function Mt(t,e){try{return t instanceof e}catch{return!1}}function Lc(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function ye(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function ca(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const i=t[r];try{Lc(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function Kf(t,e,n=!1){return jt(t)?Zf(e)?e.test(t):jt(e)?n?t===e:t.includes(e):!1:!1}function Ue(t,e=[],n=!1){return e.some(r=>Kf(t,r,n))}function Jf(t,e,n=250,r,i,s,a){if(!s.exception||!s.exception.values||!a||!Mt(a.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Xf(yi(t,e,i,a.originalException,r,s.exception.values,o,0),n))}function yi(t,e,n,r,i,s,a,o){if(s.length>=n+1)return s;let c=[...s];if(Mt(r[i],Error)){ua(a,o);const u=t(e,r[i]),l=c.length;la(u,i,l,o),c=yi(t,e,n,r[i],i,[u,...c],u,l)}
11return Array.isArray(r.errors)&&r.errors.forEach((u,l)=>{if(Mt(u,Error)){ua(a,o);const d=t(e,u),f=c.length;la(d,`errors[${l}]`,f,o),c=yi(t,e,n,u,i,[d,...c],d,f)}}),c}function ua(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:e}}function la(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 Xf(t,e){return t.map(n=>(n.value&&(n.value=ye(n.value,e)),n))}function vn(t){return t&&t.Math==Math?t:void 0}const Z=typeof globalThis=="object"&&vn(globalThis)||typeof window=="object"&&vn(window)||typeof self=="object"&&vn(self)||typeof global=="object"&&vn(global)||function(){return this}()||{};function hn(){return Z}function Fc(t,e,n){const r=n||Z,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=e())}const Fn=hn(),Qf=80;function Vt(t,e={}){try{let n=t;const r=5,i=[];let s=0,a=0;const o=" > ",c=o.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||Qf;for(;n&&s++<r&&(u=th(n,l),!(u==="html"||s>1&&a+i.length*c+u.length>=d));)i.push(u),a+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return"<unknown>"}}function th(t,e){const n=t,r=[];let i,s,a,o,c;if(!n||!n.tagName)return"";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(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&jt(i))for(s=i.split(/\s+/),c=0;c<s.length;c++)r.push(`.${s[c]}`);const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)a=l[c],o=n.getAttribute(a),o&&r.push(`[${a}="${o}"]`);return r.join("")}function eh(){try{return Fn.document.location.href}catch{return""}}function nh(t){return Fn.document&&Fn.document.querySelector?Fn.document.querySelector(t):null}const rh="Sentry Logger ",bi=["debug","info","warn","error","log","assert","trace"],Vn={};function Gc(t){if(!("console"in Z))return t();const e=Z.console,n={},r=Object.keys(Vn);r.forEach(i=>{const s=Vn[i];n[i]=e[i],e[i]=s});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function ih(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?bi.forEach(n=>{e[n]=(...r)=>{t&&Gc(()=>{Z.console[n](`${rh}[${n}]:`,...r)})}}
11):bi.forEach(n=>{e[n]=()=>{}}),e}const y=ih(),sh=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ah(t){return t==="http"||t==="https"}function Er(t,e=!1){const{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:c}=t;return`${o}://${c}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function oh(t){const e=sh.exec(t);if(!e){console.error(`Invalid Sentry Dsn: ${t}`);return}const[n,r,i="",s,a="",o]=e.slice(1);let c="",u=o;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 Pc({host:s,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function Pc(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ch(t){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(a=>t[a]?!1:(y.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:n.match(/^\d+$/)?ah(r)?e&&isNaN(parseInt(e,10))?(y.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(y.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(y.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function uh(t){const e=typeof t=="string"?oh(t):Pc(t);if(!(!e||!ch(e)))return e}class Rt 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 nt(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);typeof i=="function"&&zc(i,r),t[e]=i}function hs(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function zc(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,hs(t,"__sentry_original__",e)}catch{}}function ps(t){return t.__sentry_original__}function lh(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function Yc(t){if(Mc(t))return{message:t.message,name:t.name,stack:t.stack,...fa(t)};if(br(t)){const e={type:t.type,target:da(t.target),currentTarget:da(t.currentTarget),...fa(t)};return typeof CustomEvent<"u"&&Mt(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function da(t){try{return Vf(t)?Vt(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function fa(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 dh(t,e=40){const n=Object.keys(Yc(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return ye(n[0],e);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length?i:ye(i,e)}return""}function kt(t){return Ei(t,new Map)}function Ei(t,e){if(we(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const i of Object.keys(t))typeof t[i]<"u"&&(r[i]=Ei(t[i],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(i=>{r.push(Ei(i,e))}),r}return t}const Hc=50,ha=/\(error: (.*)\)/,pa=/captureMessage|captureException/;function $c(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],s=n.split(` 12`);for(let a=r;a<s.length;a++){const o=s[a];if(o.length>1024)continue;const c=ha.test(o)?o.replace(ha,"$1"):o;if(!c.match(/\S*Error: /)){for(const u of e){const l=u(c);if(l){i.push(l);break}}if(i.length>=Hc)break}}return hh(i)}}function fh(t){return Array.isArray(t)?$c(...t):t}function hh(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),pa.test(e[e.length-1].function||"")&&(e.pop(),pa.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,Hc).map(n=>({...n,filename:n.filename||e[e.length-1].filename,function:n.function||"?"}))}const Vr="<anonymous>";function Zt(t){try{return!t||typeof t!="function"?Vr:t.name||Vr}catch{return Vr}}const Si=hn();function Wc(){if(!("fetch"in Si))return!1;
12try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function vi(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function ph(){if(!Wc())return!1;if(vi(Si.fetch))return!0;let t=!1;const e=Si.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=vi(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}const wn=hn();function _h(){const t=wn.chrome,e=t&&t.app&&t.app.runtime,n="history"in wn&&!!wn.history.pushState&&!!wn.history.replaceState;return!e&&n}const tt=hn(),zt="__sentry_xhr_v2__",Je={},_a={};function mh(t){if(!_a[t])switch(_a[t]=!0,t){case"console":gh();break;case"dom":Th();break;case"xhr":Eh();break;case"fetch":yh();break;case"history":Sh();break;case"error":Ch();break;case"unhandledrejection":Rh();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("unknown instrumentation type:",t);return}}function rt(t,e){Je[t]=Je[t]||[],Je[t].push(e),mh(t)}function bt(t,e){if(!(!t||!Je[t]))for(const n of Je[t]||[])try{n(e)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error(`Error while triggering instrumentation handler. 13Type: ${t} 14Name: ${Zt(n)} 15Error:`,r)}}function gh(){"console"in Z&&bi.forEach(function(t){t in Z.console&&nt(Z.console,t,function(e){return Vn[t]=e,function(...n){bt("console",{args:n,level:t});const r=Vn[t];r&&r.apply(Z.console,n)}})})}function yh(){ph()&&nt(Z,"fetch",function(t){return function(...e){const{method:n,url:r}=bh(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return bt("fetch",{...i}),t.apply(Z,e).then(s=>(bt("fetch",{...i,endTimestamp:Date.now(),response:s}),s),s=>{throw bt("fetch",{...i,endTimestamp:Date.now(),error:s}),s})}})}function wi(t,e){return!!t&&typeof t=="object"&&!!t[e]}function ma(t){return typeof t=="string"?t:t?wi(t,"url")?t.url:t.toString?t.toString():"":""}function bh(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:ma(n),method:wi(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:ma(e),method:wi(e,"method")?String(e.method).toUpperCase():"GET"}}function Eh(){if(!tt.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;nt(t,"open",function(e){return function(...n){const r=n[1],i=this[zt]={method:jt(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};jt(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const a=this[zt];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}bt("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?nt(this,"onreadystatechange",function(a){return function(...o){return s(),a.apply(this,o)}}):this.addEventListener("readystatechange",s),nt(this,"setRequestHeader",function(a){return function(...o){const[c,u]=o,l=this[zt];return l&&(l.request_headers[c.toLowerCase()]=u),a.apply(this,o)}}),e.apply(this,n)}}),nt(t,"send",function(e){return function(...n){const r=this[zt];return r&&n[0]!==void 0&&(r.body=n[0]),bt("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),e.apply(this,n)}})}let In;function Sh(){if(!_h())return;const t=tt.onpopstate;tt.onpopstate=function(...n){const r=tt.location.href,i=In;if(In=r,bt("history",{from:i,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const s=In,a=String(i);In=a,bt("history",{from:s,to:a})}return n.apply(this,r)}}nt(tt.history,"pushState",e),nt(tt.history,"replaceState",e)}const vh=1e3;let Tn,Cn;function wh(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch{}return!1}function Ih(t){if(t.type!=="keypress")return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)return!1}catch{}return!0}function ga(t,e=!1){return n=>{if(!n||Cn===n||Ih(n))return;
15const r=n.type==="keypress"?"input":n.type;Tn===void 0?(t({event:n,name:r,global:e}),Cn=n):wh(Cn,n)&&(t({event:n,name:r,global:e}),Cn=n),clearTimeout(Tn),Tn=tt.setTimeout(()=>{Tn=void 0},vh)}}function Th(){if(!tt.document)return;const t=bt.bind(null,"dom"),e=ga(t,!0);tt.document.addEventListener("click",e,!1),tt.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const r=tt[n]&&tt[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(nt(r,"addEventListener",function(i){return function(s,a,o){if(s==="click"||s=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},l=u[s]=u[s]||{refCount:0};if(!l.handler){const d=ga(t);l.handler=d,i.call(this,s,d,o)}l.refCount++}catch{}return i.call(this,s,a,o)}}),nt(r,"removeEventListener",function(i){return function(s,a,o){if(s==="click"||s=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},l=u[s];l&&(l.refCount--,l.refCount<=0&&(i.call(this,s,l.handler,o),l.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,a,o)}}))})}let Rn=null;function Ch(){Rn=tt.onerror,tt.onerror=function(t,e,n,r,i){return bt("error",{column:r,error:i,line:n,msg:t,url:e}),Rn&&!Rn.__SENTRY_LOADER__?Rn.apply(this,arguments):!1},tt.onerror.__SENTRY_INSTRUMENTED__=!0}let kn=null;function Rh(){kn=tt.onunhandledrejection,tt.onunhandledrejection=function(t){return bt("unhandledrejection",t),kn&&!kn.__SENTRY_LOADER__?kn.apply(this,arguments):!0},tt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function kh(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(i){if(t)return e.has(i)?!0:(e.add(i),!1);for(let s=0;s<e.length;s++)if(e[s]===i)return!0;return e.push(i),!1}function r(i){if(t)e.delete(i);else for(let s=0;s<e.length;s++)if(e[s]===i){e.splice(s,1);break}}return[n,r]}function ut(){const t=Z,e=t.crypto||t.msCrypto;let n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>e.getRandomValues(new Uint8Array(1))[0])}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function jc(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=jc(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ii(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function rn(t,e){const n=jc(t);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...e},e&&"data"in e){const s={...i&&i.data,...e.data};n.mechanism.data=s}}function ya(t){if(t&&t.__sentry_captured__)return!0;try{hs(t,"__sentry_captured__",!0)}catch{}return!1}function Vc(t){return Array.isArray(t)?t:[t]}function Ah(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function xh(){return"npm"}function Zc(){return!Ah()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Nh(t,e){return t.require(e)}function Ct(t,e=100,n=1/0){try{return Ti("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function qc(t,e=3,n=100*1024){const r=Ct(t,e);return Bh(r)>n?qc(t,e-1,n):r}function Ti(t,e,n=1/0,r=1/0,i=kh()){const[s,a]=i;
15if(e==null||["number","boolean","string"].includes(typeof e)&&!Uc(e))return e;const o=Dh(t,e);if(!o.startsWith("[object "))return o;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 o.replace("object ","");if(s(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const h=u.toJSON();return Ti("",h,c-1,r,i)}catch{}const l=Array.isArray(e)?[]:{};let d=0;const f=Yc(e);for(const h in f){if(!Object.prototype.hasOwnProperty.call(f,h))continue;if(d>=r){l[h]="[MaxProperties ~]";break}const _=f[h];l[h]=Ti(h,_,c-1,r,i),d++}return a(e),l}function Dh(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(Lc(e))return"[VueViewModel]";if(qf(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${Zt(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=Oh(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Oh(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function Mh(t){return~-encodeURI(t).split(/%..|./).length}function Bh(t){return Mh(JSON.stringify(t))}var Nt;(function(t){t[t.PENDING=0]="PENDING";const n=1;t[t.RESOLVED=n]="RESOLVED";const r=2;t[t.REJECTED=r]="REJECTED"})(Nt||(Nt={}));function ce(t){return new dt(e=>{e(t)})}function _s(t){return new dt((e,n)=>{n(t)})}class dt{constructor(e){dt.prototype.__init.call(this),dt.prototype.__init2.call(this),dt.prototype.__init3.call(this),dt.prototype.__init4.call(this),this._state=Nt.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new dt((r,i)=>{this._handlers.push([!1,s=>{if(!e)r(s);else try{r(e(s))}catch(a){i(a)}},s=>{if(!n)i(s);else try{r(n(s))}catch(a){i(a)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new dt((n,r)=>{let i,s;return this.then(a=>{s=!1,i=a,e&&e()},a=>{s=!0,i=a,e&&e()}).then(()=>{if(s){r(i);return}n(i)})})}__init(){this._resolve=e=>{this._setResult(Nt.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Nt.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===Nt.PENDING){if(fs(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Nt.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Nt.RESOLVED&&n[1](this._value),this._state===Nt.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Uh(t){const e=[];function n(){return t===void 0||e.length<t}function r(a){return e.splice(e.indexOf(a),1)[0]}function i(a){if(!n())return _s(new Rt("Not adding Promise because buffer limit was reached."));const o=a();return e.indexOf(o)===-1&&e.push(o),o.then(()=>r(o)).then(null,()=>r(o).then(null,()=>{})),o}function s(a){return new dt((o,c)=>{let u=e.length;if(!u)return o(!0);const l=setTimeout(()=>{a&&a>0&&o(!1)},a);e.forEach(d=>{ce(d).then(()=>{--u||(clearTimeout(l),o(!0))},c)})})}return{$:e,add:i,drain:s}}function Zr(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}}const Lh=["fatal","error","warning","log","info","debug"];function Fh(t){return t==="warn"?"warning":Lh.includes(t)?t:"log"}const Kc=hn(),Ci={nowSeconds:()=>Date.now()/1e3};function Gh(){const{performance:t}=Kc;if(!t||!t.now)return;const e=Date.now()-t.now();return{now:()=>t.now(),timeOrigin:e}}function Ph(){try{return Nh(hl,"perf_hooks").performance}catch{return}}const qr=Zc()?Ph():Gh(),ba=qr===void 0?Ci:{nowSeconds:()=>(qr.timeOrigin+qr.now())/1e3},Sr=Ci.nowSeconds.bind(Ci),ue=ba.nowSeconds.bind(ba),St=(()=>{const{performance:t}=Kc;if(!t||!t.now)return;const e=3600*1e3,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,s=i<e,a=t.timing&&t.timing.navigationStart,c=typeof a=="number"?Math.abs(a+n-r):e,u=c<e;return s||u?i<=c?t.timeOrigin:a:r})(),Ri="baggage",Jc="sentry-",zh=/^sentry-/,Yh=8192;function Hh(t){if(!jt(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((r,i)=>{const s=Ea(i);return{...r,...s}},{});else{if(!t)return;e=Ea(t)}const n=Object.entries(e).reduce((r,[i,s])=>{if(i.match(zh)){const a=i.slice(Jc.length);r[a]=s}return r},{});if(Object.keys(n).length>0)return n}function ki(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,i])=>(i&&(n[`${Jc}${r}`]=i),n),{});return $h(e)}function Ea(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(e[n]=r,e),{})}function $h(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,a=i===0?s:`${e},${s}`;return a.length>Yh?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):a},"")}const Wh=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function jh(t){if(!t)return;const e=t.match(Wh);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 Vh(t,e){const n=jh(t),r=Hh(e),{traceId:i,parentSpanId:s,parentSampled:a}=n||{},o={traceId:i||ut(),spanId:ut().substring(16),sampled:a};return s&&(o.parentSpanId=s),r&&(o.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:o}}function ms(t=ut(),e=ut().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function Le(t,e=[]){return[t,e]}function Zh(t,e){const[n,r]=t;return[n,[...r,e]]}function Sa(t,e){const n=t[1];for(const r of n){const i=r[0].type;if(e(r,i))return!0}return!1}function Ai(t,e){return(e||new TextEncoder).encode(t)}function qh(t,e){const[n,r]=t;let i=JSON.stringify(n);
15function s(a){typeof i=="string"?i=typeof a=="string"?i+a:[Ai(i,e),a]:i.push(typeof a=="string"?Ai(a,e):a)}for(const a of r){const[o,c]=a;if(s(` 16${JSON.stringify(o)} 17`),typeof c=="string"||c instanceof Uint8Array)s(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(Ct(c))}s(u)}}return typeof i=="string"?i:Kh(i)}function Kh(t){const e=t.reduce((i,s)=>i+s.length,0),n=new Uint8Array(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}function Jh(t,e){const n=typeof t.data=="string"?Ai(t.data,e):t.data;return[kt({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const Xh={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"};function va(t){return Xh[t]}function gs(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Xc(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Er(r)},...i&&{trace:kt({...i})}}}function Qh(t,e,n){const r=[{type:"client_report"},{timestamp:n||Sr(),discarded_events:t}];return Le(e?{dsn:e}:{},[r])}const tp=60*1e3;function ep(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?tp:r-e}function np(t,e){return t[e]||t.all||0}function rp(t,e,n=Date.now()){return np(t,e)>n}function ip(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},s=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(s)for(const o of s.trim().split(",")){const[c,u]=o.split(":",2),l=parseInt(c,10),d=(isNaN(l)?60:l)*1e3;if(!u)i.all=r+d;else for(const f of u.split(";"))i[f]=r+d}else a?i.all=r+ep(a,r):e===429&&(i.all=r+60*1e3);return i}const ys="production";function bs(){return Fc("globalEventProcessors",()=>[])}function Qc(t){bs().push(t)}function Zn(t,e,n,r=0){return new dt((i,s)=>{const a=t[r];if(e===null||typeof a!="function")i(e);else{const o=a({...e},n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&o===null&&y.log(`Event processor "${a.id}" dropped event`),fs(o)?o.then(c=>Zn(t,c,n,r+1).then(i)).then(null,s):Zn(t,o,n,r+1).then(i).then(null,s)}})}function sp(t){const e=ue(),n={sid:ut(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>op(n)};return t&&Ie(n,t),n}function Ie(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||ue(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:ut()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${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 ap(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),Ie(t,n)}function op(t){return kt({sid:`${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"?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}const cp=100;class ae{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=wa()}static clone(e){const n=new ae;return e&&(n._breadcrumbs=[...e._breadcrumbs],n._tags={...e._tags},n._extra={...e._extra},n._contexts={...e._contexts},n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=[...e._eventProcessors],n._requestSession=e._requestSession,n._attachments=[...e._attachments],n._sdkProcessingMetadata={...e._sdkProcessingMetadata},n._propagationContext={...e._propagationContext}),n}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Ie(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.getSpan();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;if(typeof e=="function"){const n=e(this);return n instanceof ae?n:this}return e instanceof ae?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):we(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),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=wa(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:cp;if(r<=0)return this;const i={timestamp:Sr(),...e},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>r?s.slice(-r):s,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}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,n={},r){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const a=this._span.transaction;if(a){e.sdkProcessingMetadata={dynamicSamplingContext:a.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const o=a.name;o&&(e.tags={transaction:o,...e.tags})}}this._applyFingerprint(e);const i=this._getBreadcrumbs(),s=[...e.breadcrumbs||[],...i];return e.breadcrumbs=s.length>0?s:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,prop
17agationContext:this._propagationContext},Zn([...r||[],...bs(),...this._eventProcessors],e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Vc(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function wa(){return{traceId:ut(),spanId:ut().substring(16)}}const tu=4,up=100;class eu{constructor(e,n=new ae,r=tu){this._version=r,this._stack=[{scope:n}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){const n=this.getStackTop();n.client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=ae.clone(this.getScope());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();try{e(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}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:ut(),i=new Error("Sentry syntheticException");return this._withClient((s,a)=>{s.captureException(e,{originalException:e,syntheticException:i,...n,event_id:r},a)}),r}captureMessage(e,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:ut(),s=new Error(e);return this._withClient((a,o)=>{a.captureMessage(e,n,{originalException:e,syntheticException:s,...r,event_id:i},o)}),i}captureEvent(e,n){const r=n&&n.event_id?n.event_id:ut();return e.type||(this._lastEventId=r),this._withClient((i,s)=>{i.captureEvent(e,{...n,event_id:r},s)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=up}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const c={timestamp:Sr(),...e},u=s?Gc(()=>s(c,n)):c;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,a))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,n){this.getScope().setTag(e,n)}setExtra(e,n){this.getScope().setExtra(e,n)}setContext(e,n){this.getScope().setContext(e,n)}configureScope(e){const{scope:n,client:r}=this.getStackTop();r&&e(n)}run(e){const n=Ia(this);try{e(this)}finally{Ia(n)}}getIntegration(e){const n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,n){const r=this._callExtensionMethod("startTransaction",e,n);if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&!r){const i=this.getClient();console.warn(i?`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': 18Sentry.addTracingExtensions(); 19Sentry.init({...}); 20`:"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&ap(r),this._sendSessionUpdate(),n.setSession()}startSession(e){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:s=ys}=r&&r.getOptions()||{},{userAgent:a}=Z.navigator||{},o=sp({release:i,environment:s,user:n.getUser(),...a&&{userAgent:a},...e}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&Ie(c,{status:"exited"}),this.endSession(),n.setSession(o),o}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)}_withClient(e){const{scope:n,client:r}=this.getStackTop();r&&e(r,n)}_callExtensionMethod(e,...n){const i=pn().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[e]=="function")return i.extensions[e].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function pn(){return Z.__SENTRY__=Z.__SENTRY__||{extensions:{},hub:void 0},Z}function Ia(t){const e=pn(),n=xi(e);return nu(e,t),n}function B(){const t=pn();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return lp(t)}function lp(t=pn()){return(!dp(t)||xi(t).isOlderThan(tu))&&nu(t,new eu),xi(t)}function dp(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function xi(t){return Fc("hub",()=>new eu,t)}function nu(t,e){if(!t)return!1;const n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}function Es(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=B().getClient(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function _n(t){return(t||B()).getScope().getTransaction()}let Ta=!1;function fp(){Ta||(Ta=!0,rt("error",Ni),rt("unhandledrejection",Ni))}function Ni(){const t=_n();if(t){const e="internal_error";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}Ni.tag="sentry_tracingErrorCallback";class ru{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Ss{constructor(e={}){this.traceId=e.traceId||ut(),this.spanId=e.spanId||ut().substring(16),this.startTimestamp=e.startTimestamp||ue(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){const n=new Ss({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&n.transaction){const r=e&&e.op||"< unknown op >",i=n.transaction.name||"< unknown name >",s=n.transaction.spanId,a=`[Tracing] Starting '${r}' span on transaction '${i}' (${s}).`;n.transaction.metadata.spanMetadata[n.spanId]={logMessage:a},y.log(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}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);const n=hp(e);return n!=="unknown_error"&&this.setStatus(n),this}setName(e){this.description=e}isSuccess(){return this.status==="ok"}finish(e){if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:n}=this.transaction.metadata.spanMetadata[this.spanId];n&&y.log(n.replace("Starting","Finishing"))}this.endTimestamp=typeof e=="number"?e:ue()}toTraceparent(){return ms(this.traceId,this.spanId,this.sampled)}toContext(){return kt({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return kt({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return kt({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function hp(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"}function vr(t,e,n){const r=e.getOptions(),{publicKey:i}=e.getDsn()||{},{segment:s}=n&&n.getUser()||{},a=kt({environment:r.environment||ys,release:r.release,user_segment:s,public_key:i,trace_id:t});return e.emit&&e.emit("createDsc",a),a}class iu extends Ss{constructor(e,n){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=n||B(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},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)}setName(e,n="custom"){this._name=e,this.metadata.source=n}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new ru(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}}finish(e){const n=this._finishTransaction(e);if(n)return this._hub.captureEvent(n)}toContext(){const e=super.toContext();return kt({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||B(),n=e.getClient();if(!n)return{};const r=e.getScope(),i=vr(this.traceId,n,r),s=this.metadata.sampleRate;s!==void 0&&(i.sample_rate=`${s}`);const a=this.metadata.source;return a&&a!=="url"&&(i.transaction=this.name),this.sampled!==void 0&&(i.sampled=String(this.sampled)),i}setHub(e){this._hub=e}_finishTransaction(e){if(this.endTimestamp!==void 0)return;this.name||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("Transaction has no name, falling back to `<unlabeled transaction>
20`."),this.name="<unlabeled transaction>"),super.finish(e);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this.sampled!==!0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.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(o=>o!==this&&o.endTimestamp):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((o,c)=>o.endTimestamp&&c.endTimestamp?o.endTimestamp>c.endTimestamp?o:c:o).endTimestamp);const i=this.metadata,s={contexts:{...this._contexts,trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source}}};return Object.keys(this._measurements).length>0&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),s}}const Gn={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},pp="finishReason",le=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class _p extends ru{constructor(e,n,r,i){super(i),this._pushActivity=e,this._popActivity=n,this.transactionSpanId=r}add(e){e.spanId!==this.transactionSpanId&&(e.finish=n=>{e.endTimestamp=typeof n=="number"?n:ue(),this._popActivity(e.spanId)},e.endTimestamp===void 0&&this._pushActivity(e.spanId)),super.add(e)}}class mp extends iu{constructor(e,n,r=Gn.idleTimeout,i=Gn.finalTimeout,s=Gn.heartbeatInterval,a=!1){super(e,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=s,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=le[4],a&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),n.configureScope(o=>o.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=le[3],this.finish())},this._finalTimeout)}finish(e=ue()){if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setTag(pp,this._finishReason),this.spanRecorder){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Tracing] finishing IdleTransaction",new Date(e*1e3).toISOString(),this.op);for(const n of this._beforeFinishCallbacks)n(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanId===this.spanId)return!0;n.endTimestamp||(n.endTimestamp=e,n.setStatus("cancelled"),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));const r=n.startTimestamp<e,i=(this._finalTimeout+this._idleTimeout)/1e3,s=n.endTimestamp-this.startTimestamp<i;if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const a=JSON.stringify(n,void 0,2);r?s||y.log("[Tracing] discarding Span since it finished after Transaction final timeout",a):y.log("[Tracing] discarding Span since it happened after Transaction was finished",a)}return r&&s}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Tracing] flushing IdleTransaction")}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Tracing] No active IdleTransaction");if(this._onScope){const n=this._idleHub.getScope();n.getTransaction()===this&&n.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const n=i=>{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new _p(n,r,this.spanId,e),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.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=le[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=le[1],this.finish(e))},this._idleTimeout)}
20_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`[Tracing] popActivity ${e}`),delete this.activities[e],(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=ue();this._idleTimeoutCanceledPermanently?(this._finishReason=le[5],this.finish(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?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=le[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function gp(){const e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function su(t,e,n){if(!Es(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let r;return typeof e.tracesSampler=="function"?(r=e.tracesSampler(n),t.setMetadata({sampleRate:Number(r)})):n.parentSampled!==void 0?r=n.parentSampled:typeof e.tracesSampleRate<"u"?(r=e.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})):(r=1,t.setMetadata({sampleRate:r})),yp(r)?r?(t.sampled=Math.random()<r,t.sampled?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`[Tracing] Discarding transaction because ${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):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function yp(t){return Uc(t)||!(typeof t=="number"||typeof t=="boolean")?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):t<0||t>1?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function bp(t,e){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",s=t.instrumenter||"sentry";i!==s&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error(`A transaction was started with instrumenter=\`${s}\`, but the SDK is configured with the \`${i}\` instrumenter. 21The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),t.sampled=!1);let a=new iu(t,this);return a=su(a,r,{parentSampled:t.parentSampled,transactionContext:t,...e}),a.sampled&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function Ca(t,e,n,r,i,s,a){const o=t.getClient(),c=o&&o.getOptions()||{};let u=new mp(e,t,n,r,a,i);return u=su(u,c,{parentSampled:e.parentSampled,transactionContext:e,...s}),u.sampled&&u.initSpanRecorder(c._experiments&&c._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",u),u}function Ep(){const t=pn();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=bp),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=gp),fp())}function vs(t,e){return B().captureException(t,{captureContext:e})}function Sp(t,e){B().setContext(t,e)}function vp(t){B().withScope(t)}const wp="7";function Ip(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Tp(t){return`${Ip(t)}${t.projectId}/envelope/`}function Cp(t,e){return lh({sentry_key:t.publicKey,sentry_version:wp,...e&&{sentry_client:`${e.name}/${e.version}`}})}function Rp(t,e={}){const n=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return n||`${Tp(t)}?${Cp(t,r)}`}function kp(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 Ap(t,e,n,r){const i=gs(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:Er(e)}},a="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Le(s,[a])}function xp(t,e,n,r){const i=gs(n),s=t.type&&t.type!=="replay_event"?t.type:"event";kp(t,n&&n.sdk);const a=Xc(t,i,r,e);return delete t.sdkProcessingMetadata,Le(a,[[{type:s},t]])}const Ra=[];function Np(t){const e={};return t.forEach(n=>{const{name:r}=n,i=e[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.keys(e).map(n=>e[n])}function Dp(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(a=>{a.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=Vc(n(e)):r=e;const i=Np(r),s=Mp(i,a=>a.name==="Debug");if(s!==-1){const[a]=i.splice(s,1);i.push(a)}return i}function Op(t,e){const n={};return e.forEach(r=>{r&&au(t,r,n)}),n}function au(t,e,n){if(n[e.name]=e,Ra.indexOf(e.name)===-1&&(e.setupOnce(Qc,B),Ra.push(e.name)),t.on&&typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,s)=>r(i,s,t))}if(t.addEventProcessor&&typeof e.processEvent=="function"){const r=e.processEvent.bind(e),i=Object.assign((s,a)=>r(s,a,t),{id:e.name});t.addEventProcessor(i)}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`Integration installed: ${e.name}`)}function Mp(t,e){for(let n=0;n<t.length;n++)if(e(t[n])===!0)return n;return-1}function ou(t,e,n,r,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,o={...e,event_id:e.event_id||n.event_id||ut(),timestamp:e.timestamp||Sr()},c=n.integrations||t.integrations.map(f=>f.name);Bp(o,t),Fp(o,c),e.type===void 0&&Up(o,t.stackParser);let u=r;n.captureContext&&(u=ae.clone(u).update(n.captureContext));let l=ce(o);const d=i&&i.getEventProcessors?i.getEventProcessors():[];if(u){if(u.getAttachments){const f=[...n.attachments||[],...u.getAttachments()];f.length&&(n.attachments=f)}l=u.applyToEvent(o,n,d)}else l=Zn([...d,...bs()],o,n);return l.then(f=>(f&&Lp(f),typeof s=="number"&&s>0?Gp(f,s,a):f))}function Bp(t,e){const{environment:n,release:r,dist:i,maxValueLength:s=250}=e;"environment"in t||(t.environment="environment"in e?n:ys),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&i!==void 0&&(t.dist=i),t.message&&(t.message=ye(t.message,s));const a=t.exception&&t.exception.values&&t.exception.values[0];
21a&&a.value&&(a.value=ye(a.value,s));const o=t.request;o&&o.url&&(o.url=ye(o.url,s))}const ka=new WeakMap;function Up(t,e){const n=Z._sentryDebugIds;if(!n)return;let r;const i=ka.get(e);i?r=i:(r=new Map,ka.set(e,r));const s=Object.keys(n).reduce((a,o)=>{let c;const u=r.get(o);u?c=u:(c=e(o),r.set(o,c));for(let l=c.length-1;l>=0;l--){const d=c[l];if(d.filename){a[d.filename]=n[o];break}}return a},{});try{t.exception.values.forEach(a=>{a.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=s[o.filename])})})}catch{}}function Lp(t){const e={};try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?e[i.abs_path]=i.debug_id:i.filename&&(e[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}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 Fp(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Gp(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>({...i,...i.data&&{data:Ct(i.data,e,n)}}))},...t.user&&{user:Ct(t.user,e,n)},...t.contexts&&{contexts:Ct(t.contexts,e,n)},...t.extra&&{extra:Ct(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=Ct(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>(i.data&&(i.data=Ct(i.data,e,n)),i))),r}const Aa="Not capturing exception because it's already been captured.";class Pp{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=uh(e.dsn):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("No DSN provided, client will not send events."),this._dsn){const n=Rp(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){if(ya(e)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(Aa);return}let i=n&&n.event_id;return this._process(this.eventFromException(e,n).then(s=>this._captureEvent(s,n,r)).then(s=>{i=s})),i}captureMessage(e,n,r,i){let s=r&&r.event_id;const a=Bc(e)?this.eventFromMessage(String(e),n,r):this.eventFromException(e,r);return this._process(a.then(o=>this._captureEvent(o,r,i)).then(o=>{s=o})),s}captureEvent(e,n,r){if(n&&n.originalException&&ya(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(Aa);return}let i=n&&n.event_id;return this._process(this._captureEvent(e,n,r).then(s=>{i=s})),i}captureSession(e){typeof e.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Ie(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._isClientDoneProcessing(e).then(r=>n.flush(e).then(i=>r&&i)):ce(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=Op(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){au(this,e,this._integrations)}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=xp(e,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=Zh(r,Jh(s,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(s=>
21this.emit("afterSendEvent",e,s),null)}sendSession(e){const n=Ap(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){const i=`${e}:${n}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}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))}_updateSessionFromEvent(e,n){let r=!1,i=!1;const s=n.exception&&n.exception.values;if(s){i=!0;for(const c of s){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const a=e.status==="ok";(a&&e.errors===0||a&&r)&&(Ie(e,{...r&&{status:"crashed"},errors:e.errors||Number(i||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new dt(n=>{let r=0;const i=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=i,e&&r>=e&&(clearInterval(s),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",e,n),ou(i,e,n,r,this).then(a=>{if(a===null)return a;const{propagationContext:o}=a.sdkProcessingMetadata||{};if(!(a.contexts&&a.contexts.trace)&&o){const{traceId:u,spanId:l,parentSpanId:d,dsc:f}=o;a.contexts={trace:{trace_id:u,span_id:l,parent_span_id:d},...a.contexts};const h=f||vr(u,this,r);a.sdkProcessingMetadata={dynamicSamplingContext:h,...a.sdkProcessingMetadata}}return a})}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(i=>i.event_id,i=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const s=i;s.logLevel==="log"?y.log(s.message):y.warn(s)}})}_processEvent(e,n,r){const i=this.getOptions(),{sampleRate:s}=i,a=uu(e),o=cu(e),c=e.type||"error",u=`before send for type \`${c}\``;if(o&&typeof s=="number"&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",e),_s(new Rt(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const l=c==="replay_event"?"replay":c;return this._prepareEvent(e,n,r).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",l,e),new Rt("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return d;const h=Yp(i,d,n);return zp(h,u)}).then(d=>{if(d===null)throw this.recordDroppedEvent("before_send",l,e),new Rt(`${u} returned \`null\`, will not send event.`,"log");const f=r&&r.getSession();!a&&f&&this._updateSessionFromEvent(f,d);const h=d.transaction_info;if(a&&h&&d.transaction!==e.transaction){const _="custom";d.transaction_info={...h,source:_}}return this.sendEvent(d,n),d}).then(null,d=>{throw d instanceof Rt?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new Rt(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 22Reason: ${d}`))})}_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=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error("Error while sending event:",n)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:e[n]}})}}function zp(t,e){const n=`${e} must return \`null\` or a valid event.`;if(fs(t))return t.then(r=>{if(!we(r)&&r!==null)throw new Rt(n);return r},r=>{throw new Rt(`${e} rejected with ${r}`)});if(!we(t)&&t!==null)throw new Rt(n);return t}function Yp(t,e,n){const{beforeSend:r,beforeSendTransaction:i}=t;return cu(e)&&r?r(e,n):uu(e)&&i?i(e,n):e}function cu(t){return t.type===void 0}function uu(t){return t.type==="transaction"}function Hp(t,e){e.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?y.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=B();n.getScope().update(e.initialScope);const i=new t(e);n.bindClient(i)}const $p=30;function lu(t,e,n=Uh(t.bufferSize||$p)){let r={};const i=a=>n.drain(a);function s(a){const o=[];if(Sa(a,(d,f)=>{const h=va(f);if(rp(r,h)){const _=xa(d,f);t.recordDroppedEvent("ratelimit_backoff",h,_)}else o.push(d)}),o.length===0)return ce();const c=Le(a[0],o),u=d=>{Sa(c,(f,h)=>{const _=xa(f,h);t.recordDroppedEvent(d,va(h),_)})},l=()=>e({body:qh(c,t.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=ip(r,d),d),d=>{throw u("network_error"),d});return n.add(l).then(d=>d,d=>{if(d instanceof Rt)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error("Skipped sending event because buffer is full."),u("queue_overflow"),ce();throw d})}return s.__sentry__baseTransport__=!0,{send:s,flush:i}}function xa(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}const Na="7.73.0";let Da;class wr{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=wr.id}setupOnce(){Da=Function.prototype.toString;try{Function.prototype.toString=function(...e){const n=ps(this)||this;return Da.apply(n,e)}}catch{}}}wr.__initStatic();const Wp=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],jp=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class Ir{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=Ir.id,this._options=e}setupOnce(e,n){}processEvent(e,n,r){const i=r.getOptions(),s=Vp(this._options,i);return Zp(e,s)?null:e}}Ir.__initStatic();function Vp(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Wp],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:jp],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function Zp(t,e){return e.ignoreInternal&&t_(t)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`Event dropped due to being internal Sentry Error. 23Event: ${Gt(t)}`),!0):qp(t,e.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 24Event: ${Gt(t)}`),!0):Kp(t,e.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 25Event: ${Gt(t)}`),!0):Jp(t,e.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`Event dropped due to being matched by \`denyUrls\` option. 26Event: ${Gt(t)}. 27Url: ${qn(t)}`),!0):Xp(t,e.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`Event dropped due to not being matched by \`allowUrls\` option. 28Event: ${Gt(t)}. 29Url: ${qn(t)}`),!0)}function qp(t,e){return t.type||!e||!e.length?!1:Qp(t).some(n=>Ue(n,e))}function Kp(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const n=t.transaction;return n?Ue(n,e):!1}function Jp(t,e){if(!e||!e.length)return!1;const n=qn(t);return n?Ue(n,e):!1}function Xp(t,e){if(!e||!e.length)return!0;const n=qn(t);return n?Ue(n,e):!0}function Qp(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch{}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.length===0&&y.error(`Could not extract message for event ${Gt(t)}`),e}function t_(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function e_(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 qn(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?e_(e):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error(`Cannot extract url for event ${Gt(t)}`),null}}function n_(t,e){const n=e.getClient(),r=n&&n.getDsn(),i=n&&n.getOptions().tunnel;return i_(t,r)||r_(t,i)}function r_(t,e){return e?Oa(t)===Oa(e):!1}function i_(t,e){return e?t.includes(e.host):!1}function Oa(t){return t[t.length-1]==="/"?t.slice(0,-1):t}const L=Z;let Di=0;function du(){return Di>0}function s_(){Di++,setTimeout(()=>{Di--})}function Te(t,e={}
29,n){if(typeof t!="function")return t;try{const i=t.__sentry_wrapped__;if(i)return i;if(ps(t))return t}catch{return t}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const s=i.map(a=>Te(a,e));return t.apply(this,s)}catch(s){throw s_(),vp(a=>{a.addEventProcessor(o=>(e.mechanism&&(Ii(o,void 0,void 0),rn(o,e.mechanism)),o.extra={...o.extra,arguments:i},o)),vs(s)}),s}};try{for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}zc(r,t),hs(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function fu(t,e){const n=ws(t,e),r={type:e&&e.name,value:u_(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function a_(t,e,n,r){const s=B().getClient(),a=s&&s.getOptions().normalizeDepth,o={exception:{values:[{type:br(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:f_(e,{isUnhandledRejection:r})}]},extra:{__serialized__:qc(e,a)}};if(n){const c=ws(t,n);c.length&&(o.exception.values[0].stacktrace={frames:c})}return o}function Kr(t,e){return{exception:{values:[fu(t,e)]}}}function ws(t,e){const n=e.stacktrace||e.stack||"",r=c_(e);try{return t(n,r)}catch{}return[]}const o_=/Minified React error #\d+;/i;function c_(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(o_.test(t.message))return 1}return 0}function u_(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function l_(t,e,n,r){const i=n&&n.syntheticException||void 0,s=Is(t,e,i,r);return rn(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),ce(s)}function d_(t,e,n="info",r,i){const s=r&&r.syntheticException||void 0,a=Oi(t,e,s,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),ce(a)}function Is(t,e,n,r,i){let s;if(ds(e)&&e.error)return Kr(t,e.error);if(oa(e)||jf(e)){const a=e;if("stack"in e)s=Kr(t,e);else{const o=a.name||(oa(a)?"DOMError":"DOMException"),c=a.message?`${o}: ${a.message}`:o;s=Oi(t,c,n,r),Ii(s,c)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}return Mc(e)?Kr(t,e):we(e)||br(e)?(s=a_(t,e,n,i),rn(s,{synthetic:!0}),s):(s=Oi(t,e,n,r),Ii(s,`${e}`,void 0),rn(s,{synthetic:!0}),s)}function Oi(t,e,n,r){const i={message:e};if(r&&n){const s=ws(t,n);s.length&&(i.exception={values:[{value:e,stacktrace:{frames:s}}]})}return i}function f_(t,{isUnhandledRejection:e}){const n=dh(t),r=e?"promise rejection":"exception";return ds(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:br(t)?`Event \`${h_(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function h_(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function p_(t,{metadata:e,tunnel:n,dsn:r}){const i={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:Er(r)}},s=__(t);return Le(i,[s])}function __(t){return[{type:"user_report"},t]}class m_ extends Pp{constructor(e){const n=L.SENTRY_SDK_SOURCE||xh();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:Na}],version:Na},super(e),e.sendClientReports&&L.document&&L.document.addEventListener("visibilitychange",()=>{L.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return l_(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return d_(this._options.stackParser,e,n,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("SDK not enabled, will not capture user feedback.");return}const n=p_(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){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("Sending outcomes:",e);const n=Qh(e,this._options.tunnel&&Er(this._dsn));this._sendEnvelope(n)}}let Ve;function g_(){if(Ve)return Ve;if(vi(L.fetch))return Ve=L.fetch.bind(L);const t=L.document;let e=L.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){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n
29)}return Ve=e.bind(L)}function y_(){Ve=void 0}function b_(t,e=g_()){let n=0,r=0;function i(s){const a=s.body.length;n+=a,r++;const o={body:s.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,o).then(c=>(n-=a,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 y_(),n-=a,r--,_s(c)}}return lu(t,i)}const E_=4;function S_(t){function e(n){return new dt((r,i)=>{const s=new XMLHttpRequest;s.onerror=i,s.onreadystatechange=()=>{s.readyState===E_&&r({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",t.url);for(const a in t.headers)Object.prototype.hasOwnProperty.call(t.headers,a)&&s.setRequestHeader(a,t.headers[a]);s.send(n.body)})}return lu(t,e)}const Tr="?",v_=30,w_=40,I_=50;function Ts(t,e,n,r){const i={filename:t,function:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const T_=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,C_=/\((\S*)(?::(\d+))(?::(\d+))\)/,R_=t=>{const e=T_.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){const s=C_.exec(e[2]);s&&(e[2]=s[1],e[3]=s[2],e[4]=s[3])}const[r,i]=hu(e[1]||Tr,e[2]);return Ts(i,r,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},k_=[v_,R_],A_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,x_=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,N_=t=>{const e=A_.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const s=x_.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let r=e[3],i=e[1]||Tr;return[i,r]=hu(i,r),Ts(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},D_=[I_,N_],O_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,M_=t=>{const e=O_.exec(t);return e?Ts(e[2],e[1]||Tr,+e[3],e[4]?+e[4]:void 0):void 0},B_=[w_,M_],U_=[k_,D_,B_],L_=$c(...U_),hu=(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]:Tr,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};class Fe{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=Fe.id,this._options={onerror:!0,onunhandledrejection:!0,...e},this._installFunc={onerror:F_,onunhandledrejection:G_}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const r=this._installFunc[n];r&&e[n]&&(Y_(n),r(),this._installFunc[n]=void 0)}}}Fe.__initStatic();function F_(){rt("error",t=>{const[e,n,r]=mu();if(!e.getIntegration(Fe))return;const{msg:i,url:s,line:a,column:o,error:c}=t;if(du()||c&&c.__sentry_own_request__)return;const u=c===void 0&&jt(i)?z_(i,s,a,o):pu(Is(n,c||i,void 0,r,!1),s,a,o);u.level="error",_u(e,c,u,"onerror")})}function G_(){rt("unhandledrejection",t=>{const[e,n,r]=mu();if(!e.getIntegration(Fe))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch{}if(du()||i&&i.__sentry_own_request__)return!0;const s=Bc(i)?P_(i):Is(n,i,void 0,r,!0);s.level="error",_u(e,i,s,"onunhandledrejection")})}function P_(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function z_(t,e,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let s=ds(t)?t.message:t,a="Error";const o=s.match(i);return o&&(a=o[1],s=o[2]),pu({exception:{values:[{type:a,value:s}]}},e,n,r)}function pu(t,e,n,r){const i=t.exception=t.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},c=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=jt(e)&&e.length>0?e:eh();return c.length===0&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),t}function Y_(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`Global Handler attached: ${t}`)}function _u(t,e,n,r){rn(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function mu(){const t=B(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}const H_=["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"];class Cr{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=Cr.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&nt(L,"setTimeout",Ma),this._options.setInterval&&nt(L,"setInterval",Ma),this._options.requestAnimationFrame&&nt(L,"requestAnimationFrame",$_),this._options.XMLHttpRequest&&"XMLHttpRequest"in L&&nt(XMLHttpRequest.prototype,"send",W_);const e=this._options.eventTarget;e&&(Array.isArray(e)?e:H_).forEach(j_)}}Cr.__initStatic();function Ma(t){return function(...e){const n=e[0];return e[0]=Te(n,{mechanism:{data:{function:Zt(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function $_(t){return function(e){return t.apply(this,[Te(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Zt(t)},handled:!1,type:"instrument"}})])}}function W_(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>
29{i in n&&typeof n[i]=="function"&&nt(n,i,function(s){const a={mechanism:{data:{function:i,handler:Zt(s)},handled:!1,type:"instrument"}},o=ps(s);return o&&(a.mechanism.data.handler=Zt(o)),Te(s,a)})}),t.apply(this,e)}}function j_(t){const e=L,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(nt(n,"addEventListener",function(r){return function(i,s,a){try{typeof s.handleEvent=="function"&&(s.handleEvent=Te(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Zt(s),target:t},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,Te(s,{mechanism:{data:{function:"addEventListener",handler:Zt(s),target:t},handled:!1,type:"instrument"}}),a])}}),nt(n,"removeEventListener",function(r){return function(i,s,a){const o=s;try{const c=o&&o.__sentry_wrapped__;c&&r.call(this,i,c,a)}catch{}return r.call(this,i,o,a)}}))}const An=1024;class Rr{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=Rr.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){if(this.options.console&&rt("console",q_),this.options.dom&&rt("dom",Z_(this.options.dom)),this.options.xhr&&rt("xhr",K_),this.options.fetch&&rt("fetch",J_),this.options.history&&rt("history",X_),this.options.sentry){const e=B().getClient();e&&e.on&&e.on("beforeSendEvent",V_)}}}Rr.__initStatic();function V_(t){B().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:Gt(t)},{event:t})}function Z_(t){function e(n){let r,i=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>An&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`\`dom.maxStringLength\` cannot exceed ${An}, but a value of ${s} was configured. Sentry will use ${An} instead.`),s=An),typeof i=="string"&&(i=[i]);try{const a=n.event;r=Q_(a)?Vt(a.target,{keyAttrs:i,maxStringLength:s}):Vt(a,{keyAttrs:i,maxStringLength:s})}catch{r="<unknown>"}r.length!==0&&B().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return e}function q_(t){const e={category:"console",data:{arguments:t.args,logger:"console"},level:Fh(t.level),message:ca(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)e.message=`Assertion failed: ${ca(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1);else return;B().addBreadcrumb(e,{input:t.args,level:t.level})}function K_(t){const{startTimestamp:e,endTimestamp:n}=t,r=t.xhr[zt];if(!e||!n||!r)return;const{method:i,url:s,status_code:a,body:o}=r,c={method:i,url:s,status_code:a},u={xhr:t.xhr,input:o,startTimestamp:e,endTimestamp:n};B().addBreadcrumb({category:"xhr",data:c,type:"http"},u)}function J_(t){const{startTimestamp:e,endTimestamp:n}=t;if(n&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.error){const r=t.fetchData,i={data:t.error,input:t.args,startTimestamp:e,endTimestamp:n};B().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...t.fetchData,status_code:t.response&&t.response.status},i={input:t.args,response:t.response,startTimestamp:e,endTimestamp:n};B().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function X_(t){let e=t.from,n=t.to;const r=Zr(L.location.href);let i=Zr(e);const s=Zr(n);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),B().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}function Q_(t){return!!t&&!!t.target}const tm="cause",em=5;class kr{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=kr.id,this._key=e.key||tm,this._limit=e.limit||em}setupOnce(){}preprocessEvent(e,n,r){const i=r.getOptions();Jf(fu,i.stackParser,i.maxValueLength,this._key,this._limit,e,n)}}kr.__initStatic();class Ar{static __initStatic(){this.id="HttpContext"}constructor(){this.name=Ar.id}setupOnce(){}preprocessEvent(e){if(!L.navigator&&!L.location&&!L.document)return;const n=e.request&&e.request.url||L.location&&L.location.href,{referrer:r}=L.document||{},{userAgent:i}=L.navigator||{},s={...e.request&&e.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}},a={...e.request,...n&&{url:n},headers:s};e.request=a}}Ar.__initStatic();class xr{static __initStatic(){this.id="Dedupe"}constructor(){this.name=xr.id}setupOnce(e,n){}processEvent(e){if(e.type)return e;try{if(nm(e,this._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return this._previousEvent=e}}xr.__initStatic();function nm(t,e){return e?!!(rm(t,e)||im(t,e)):!1}function rm(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!yu(t,e)||!gu(t,e))}function im(t,e){const n=Ba(e),r=Ba(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!yu(t,e)||!gu(t,e))}function gu(t,e){let n=Ua(t),r=Ua(e);if(!n&&!r)return!0;
29if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],a=n[i];if(s.filename!==a.filename||s.lineno!==a.lineno||s.colno!==a.colno||s.function!==a.function)return!1}return!0}function yu(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{return!1}}function Ba(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Ua(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch{return}}const sm=[new Ir,new wr,new Cr,new Rr,new Fe,new kr,new xr,new Ar];function am(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=sm),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),L.SENTRY_RELEASE&&L.SENTRY_RELEASE.id&&(t.release=L.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);const e={...t,stackParser:fh(t.stackParser||L_),integrations:Dp(t),transport:t.transport||(Wc()?b_:S_)};Hp(m_,e),t.autoSessionTracking&&om()}function La(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function om(){if(typeof L.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const t=B();t.captureSession&&(La(t),rt("history",({from:e,to:n})=>{e===void 0||e===n||La(B())}))}const M=Z,Cs="sentryReplaySession",cm="replay_event",Rs="Unable to send Replay",um=3e5,lm=9e5,dm=5e3,fm=5500,hm=6e4,pm=5e3,_m=3,xn=15e4,Nn=5e3,mm=3e3,gm=300,ks=2e7,ym=4999,bm=15e3,Fa=36e5;var X;(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"})(X||(X={}));function Em(t){return t.nodeType===t.ELEMENT_NODE}function Xe(t){const e=t==null?void 0:t.host;return(e==null?void 0:e.shadowRoot)===t}function Qe(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function Sm(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 vm(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return t.layerName===""?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}function Kn(t){try{const e=t.rules||t.cssRules;return e?Sm(Array.from(e,bu).join("")):null}catch{return null}}function bu(t){let e;if(Im(t))try{e=Kn(t.styleSheet)||vm(t)}catch{}else if(Tm(t)&&t.selectorText.includes(":"))return wm(t.cssText);return e||t.cssText}function wm(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function Im(t){return"styleSheet"in t}function Tm(t){return"selectorText"in t}class Eu{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var n;if(!e)return-1;const r=(n=this.getMeta(e))===null||n===void 0?void 0:n.id;return r??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){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 i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(e,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Cm(){return new Eu}function Nr({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 sn({isMasked:t,element:e,value:n,maskInputFn:r}){let i=n||"";return t?(r&&(i=r(i,e)),"*".repeat(i.length)):i}function Ce(t){return t.toLowerCase()}function Mi(t){return t.toUpperCase()}const Ga="__rrweb_original__";function Rm(t){const e=t.getContext("2d");if(!e)return!0;const n=50;for(let r=0;r<t.width;r+=n)for(let i=0;i<t.height;i+=n){const s=e.getImageData,a=Ga in s?s[Ga]:s;
29if(new Uint32Array(a.call(e,r,i,Math.min(n,t.width-r),Math.min(n,t.height-i)).data.buffer).some(c=>c!==0))return!1}return!0}function As(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?Ce(e):null}function Jn(t,e,n){return e==="INPUT"&&(n==="radio"||n==="checkbox")?t.getAttribute("value")||"":t.value}let km=1;const Am=new RegExp("[^a-z0-9-_:]"),an=-2;function Su(){return km++}function xm(t){if(t instanceof HTMLFormElement)return"form";const e=Ce(t.tagName);return Am.test(e)?"div":e}function Nm(t){let e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}let de,Pa;const Dm=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Om=/^(?:[a-z+]+:)?\/\//i,Mm=/^www\..*/i,Bm=/^(data:)([^,]*),(.*)/i;function Xn(t,e){return(t||"").replace(Dm,(n,r,i,s,a,o)=>{const c=i||a||o,u=r||s||"";if(!c)return n;if(Om.test(c)||Mm.test(c))return`url(${u}${c}${u})`;if(Bm.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${Nm(e)+c}${u})`;const l=e.split("/"),d=c.split("/");l.pop();for(const f of d)f!=="."&&(f===".."?l.pop():l.push(f));return`url(${u}${l.join("/")}${u})`})}const Um=/^[^ \t\n\r\u000c]+/,Lm=/^[, \t\n\r\u000c]+/;function Fm(t,e){if(e.trim()==="")return e;let n=0;function r(s){let a;const o=s.exec(e.substring(n));return o?(a=o[0],n+=a.length,a):""}const i=[];for(;r(Lm),!(n>=e.length);){let s=r(Um);if(s.slice(-1)===",")s=he(t,s.substring(0,s.length-1)),i.push(s);else{let a="";s=he(t,s);let o=!1;for(;;){const c=e.charAt(n);if(c===""){i.push((s+a).trim());break}else if(o)c===")"&&(o=!1);else if(c===","){n+=1,i.push((s+a).trim());break}else c==="("&&(o=!0);a+=c,n+=1}}}return i.join(", ")}function he(t,e){if(!e||e.trim()==="")return e;const n=t.createElement("a");return n.href=e,n.href}function Gm(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function xs(){const t=document.createElement("a");return t.href="",t.href}function vu(t,e,n,r,i,s){return r&&(n==="src"||n==="href"&&!(e==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(e==="table"||e==="td"||e==="th")?he(t,r):n==="srcset"?Fm(t,r):n==="style"?Xn(r,xs()):e==="object"&&n==="data"?he(t,r):typeof s=="function"?s(n,r,i):r)}
29function wu(t,e,n){return(t==="video"||t==="audio")&&e==="autoplay"}function Pm(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 i=t.classList.length;i--;){const s=t.classList[i];if(e.test(s))return!0}if(n)return t.matches(n)}catch{}return!1}function zm(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function ee(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:ee(t.parentNode,e,n,r+1)}function pe(t,e){return n=>{const r=n;if(r===null)return!1;if(t){if(typeof t=="string"){if(r.matches(`.${t}`))return!0}else if(zm(r,t))return!0}return!!(e&&r.matches(e))}}function Re(t,e,n,r,i,s){try{const a=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(a===null)return!1;let o=-1,c=-1;if(s){if(c=ee(a,pe(r,i)),c<0)return!0;o=ee(a,pe(e,n),c>=0?c:1/0)}else{if(o=ee(a,pe(e,n)),o<0)return!1;c=ee(a,pe(r,i),o>=0?o:1/0)}return o>=0?c>=0?o<=c:!0:c>=0?!1:!!s}catch{}return!!s}function Ym(t,e,n){const r=t.contentWindow;if(!r)return;let i=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const o=setTimeout(()=>{i||(e(),i=!0)},n);t.addEventListener("load",()=>{clearTimeout(o),i=!0,e()});return}const a="about:blank";if(r.location.href!==a||t.src===a||t.src==="")return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function Hm(t,e,n){let r=!1,i;try{i=t.sheet}catch{return}if(i)return;const s=setTimeout(()=>{r||(e(),r=!0)},n);t.addEventListener("load",()=>{clearTimeout(s),r=!0,e()})}function $m(t,e){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:_={},maskTextFn:p,maskInputFn:g,dataURLOptions:E={},inlineImages:S,recordCanvas:I,keepIframeSrcFn:T,newlyAddedElement:C=!1}=e,m=Wm(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:X.Document,childNodes:[],compatMode:t.compatMode}:{type:X.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:X.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:m};case t.ELEMENT_NODE:return Vm(t,{doc:n,blockClass:i,blockSelector:s,unblockSelector:a,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:_,maskInputFn:g,dataURLOptions:E,inlineImages:S,recordCanvas:I,keepIframeSrcFn:T,newlyAddedElement:C,rootId:m,maskAllText:o,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f});case t.TEXT_NODE:return jm(t,{maskAllText:o,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:p,maskInputOptions:_,maskInputFn:g,rootId:m});case t.CDATA_SECTION_NODE:return{type:X.CDATA,textContent:"",rootId:m};case t.COMMENT_NODE:return{type:X.Comment,textContent:t.textContent||"",rootId:m};default:return!1}}function Wm(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return n===1?void 0:n}function jm(t,e){var n;const{maskAllText:r,maskTextClass:i,unmaskTextClass:s,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:c,maskInputOptions:u,maskInputFn:l,rootId:d}=e,f=t.parentNode&&t.parentNode.tagName;let h=t.textContent;const _=f==="STYLE"?!0:void 0,p=f==="SCRIPT"?!0:void 0,g=f==="TEXTAREA"?!0:void 0;if(_&&h){try{t.nextSibling||t.previousSibling||!((n=t.parentNode.sheet)===null||n===void 0)&&n.cssRules&&(h=Kn(t.parentNode.sheet))}catch(S){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${S}`,t)}h=Xn(h,xs())}p&&(h="SCRIPT_PLACEHOLDER");const E=Re(t,i,a,s,o,r);if(!_&&!p&&!g&&h&&E&&(h=c?c(h):h.replace(/[\S]/g,"*")),g&&h&&(u.textarea||E)&&(h=l?l(h,t.parentNode):h.replace(/[\S]/g,"*")),f==="OPTION"&&h){const S=Nr({type:null,tagName:f,maskInputOptions:u});h=sn({isMasked:Re(t,i,a,s,o,S),element:t,value:h,maskInputFn:l})}return{type:X.Text,textContent:h||"",isStyle:_,rootId:d}}function Vm(t,e){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:s,inlineStylesheet:a,maskInputOptions:o={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:_=!1,rootId:p,maskAllText:g,maskTextClass:E,unmaskTextClass:S,maskTextSelector:I,unmaskTextSelector:T}=e,C=Pm(t,r,i,s),m=xm(t);let b={};const w=t.attributes.length;for(let v=0;v<w;v++){const R=t.attributes[v];wu(m,R.name,R.value)||(b[R.name]=vu(n,m,Ce(R.name),R.value,t,c))}if(m==="link"&&a){const v=Array.from(n.styleSheets).find(U=>U.href===t.href);let R=null;v&&(R=Kn(v)),R&&(delete b.rel,delete b.href,b._cssText=Xn(R,v.href))}if(m==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const v=Kn(t.sheet);v&&(b._cssText=Xn(v,xs()))}if(m==="input"||m==="textarea"||m==="select"||m==="option"){const v=t,R=As(v),U=Jn(v,Mi(m),R),j=v.checked;if(R!=="submit"&&R!=="button"&&U){const K=Re(v,E,I,S,T,Nr({type:R,tagName:Mi(m),maskInputOptions:o}));b.value=sn({isMasked:K,element:v,value:U,maskInputFn:u})}j&&(b.checked=j)}if(m==="option"&&(t.selected&&!o.select?b.selected=!0:delete b.selected),m==="canvas"&&f){if(t.__context==="2d")Rm(t)||(b.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const v=t.toDataURL(l.type,l.quality),R=document.createElement("canvas");R.width=t.width,R.height=t.height;const U=R.toDataURL(l.type,l.quality);v!==U&&(b.rr_dataURL=v)}}if(m==="img"&&d){de||(de=n.createElement("canvas"),Pa=de.getContext("2d"));const v=t,R=v.crossOrigin;v.crossOrigin="anonymous";const U=()=>{v.removeEventListener("load",U);
29try{de.width=v.naturalWidth,de.height=v.naturalHeight,Pa.drawImage(v,0,0),b.rr_dataURL=de.toDataURL(l.type,l.quality)}catch(j){console.warn(`Cannot inline img src=${v.currentSrc}! Error: ${j}`)}R?b.crossOrigin=R:v.removeAttribute("crossorigin")};v.complete&&v.naturalWidth!==0?U():v.addEventListener("load",U)}if((m==="audio"||m==="video")&&(b.rr_mediaState=t.paused?"paused":"played",b.rr_mediaCurrentTime=t.currentTime),_||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),C){const{width:v,height:R}=t.getBoundingClientRect();b={class:b.class,rr_width:`${v}px`,rr_height:`${R}px`}}m==="iframe"&&!h(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);let N;try{customElements.get(m)&&(N=!0)}catch{}return{type:X.Element,tagName:m,attributes:b,childNodes:[],isSVG:Gm(t)||void 0,needBlock:C,rootId:p,isCustom:N}}function G(t){return t==null?"":t.toLowerCase()}function Zm(t,e){if(e.comment&&t.type===X.Comment)return!0;if(t.type===X.Element){if(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")))return!0;if(e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(G(t.attributes.name).match(/^msapplication-tile(image|color)$/)||G(t.attributes.name)==="application-name"||G(t.attributes.rel)==="icon"||G(t.attributes.rel)==="apple-touch-icon"||G(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&G(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(G(t.attributes.property).match(/^(og|twitter|fb):/)||G(t.attributes.name).match(/^(og|twitter):/)||G(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(G(t.attributes.name)==="robots"||G(t.attributes.name)==="googlebot"||G(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(G(t.attributes.name)==="author"||G(t.attributes.name)==="generator"||G(t.attributes.name)==="framework"||G(t.attributes.name)==="publisher"||G(t.attributes.name)==="progid"||G(t.attributes.property).match(/^article:/)||G(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(G(t.attributes.name)==="google-site-verification"||G(t.attributes.name)==="yandex-verification"||G(t.attributes.name)==="csrf-token"||G(t.attributes.name)==="p:domain_verify"||G(t.attributes.name)==="verify-v1"||G(t.attributes.name)==="verification"||G(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function _e(t,e){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:_={},maskAttributeFn:p,maskTextFn:g,maskInputFn:E,slimDOMOptions:S,dataURLOptions:I={},inlineImages:T=!1,recordCanvas:C=!1,onSerialize:m,onIframeLoad:b,iframeLoadTimeout:w=5e3,onStylesheetLoad:N,stylesheetLoadTimeout:v=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:U=!1}=e;let{preserveWhiteSpace:j=!0}=e;const K=$m(t,{doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:o,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:_,maskAttributeFn:p,maskTextFn:g,maskInputFn:E,dataURLOptions:I,inlineImages:T,recordCanvas:C,keepIframeSrcFn:R,newlyAddedElement:U});if(!K)return console.warn(t,"not serialized"),null;let J;r.hasNode(t)?J=r.getId(t):Zm(K,S)||!j&&K.type===X.Text&&!K.isStyle&&!K.textContent.replace(/^\s+|\s+$/gm,"").length?J=an:J=Su();const D=Object.assign(K,{id:J});if(r.add(t,D),J===an)return null;m&&m(t);let ft=!f;if(D.type===X.Element){ft=ft&&!D.needBlock,delete D.needBlock;const W=t.shadowRoot;W&&Qe(W)&&(D.isShadowHost=!0)}if((D.type===X.Document||D.type===X.Element)&&ft){S.headWhitespace&&D.type===X.Element&&D.tagName==="head"&&(j=!1);const W={doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:o,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f,inlineStylesheet:h,maskInputOptions:_,maskAttributeFn:p,maskTextFn:g,maskInputFn:E,slimDOMOptions:S,dataURLOptions:I,inlineImages:T,recordCanvas:C,preserveWhiteSpace:j,onSerialize:m,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:N,stylesheetLoadTimeout:v,keepIframeSrcFn:R};for(const ht of Array.from(t.childNodes)){const pt=_e(ht,W);pt&&D.childNodes.push(pt)}if(Em(t)&&t.shadowRoot)for(const ht of Array.from(t.shadowRoot.childNodes)){const pt=_e(ht,W);pt&&(Qe(t.shadowRoot)&&(pt.isShadow=!0),D.childNodes.push(pt))}}return t.parentNode&&Xe(t.parentNode)&&Qe(t.parentNode)&&(D.isShadow=!0),D.type===X.Element&&D.tagName==="iframe"&&Ym(t,()=>{const W=t.contentDocument;if(W&&b){const ht=_e(W,{doc:W,mirror:r,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:_,maskAttributeFn:p,maskTextFn:g,maskInputFn:E,slimDOMOptions:S,dataURLOptions:I,inlineImages:T,recordCanvas:C,preserveWhiteSpace:j,onSerialize:m,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:N,stylesheetLoadTimeout:v,keepIframeSrcFn:R});ht&&b(t,ht)}},w),D.type===X.Element&&D.tagName==="link"&&D.attributes.rel==="stylesheet"&&Hm(t,()=>{if(N){const W=_e(t,{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:_,maskAttributeFn:p,maskTextFn:g,maskInputFn:E,slimDOMOptions:S,dataURLOptions:I,inlineImages:T,recordCanvas:C,preserveWhiteSpace:j,onSerialize:m,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:N,stylesheetLoadTimeout:v,keepIframeSrcFn:R});W&&N(t,W)}},v),D}function qm(t,e){const{mirror:n=new Eu,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:a=!1,maskTextClass:o="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inl
29ineImages:f=!1,recordCanvas:h=!1,maskAllInputs:_=!1,maskAttributeFn:p,maskTextFn:g,maskInputFn:E,slimDOM:S=!1,dataURLOptions:I,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:m,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:N,keepIframeSrcFn:v=()=>!1}=e||{};return _e(t,{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:o,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:_===!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}:_===!1?{}:_,maskAttributeFn:p,maskTextFn:g,maskInputFn:E,slimDOMOptions:S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:S==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:S===!1?{}:S,dataURLOptions:I,inlineImages:f,recordCanvas:h,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:m,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:N,keepIframeSrcFn:v,newlyAddedElement:!1})}function at(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const fe=`Please stop import mirror directly. Instead of that,\r 30now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 31or you can use record.mirror to access the mirror instance during recording.`;let za={map:{},getId(){return console.error(fe),-1},getNode(){return console.error(fe),null},removeNodeFromMap(){console.error(fe)},has(){return console.error(fe),!1},reset(){console.error(fe)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(za=new Proxy(za,{get(t,e,n){return e==="map"&&console.error(fe),Reflect.get(t,e,n)}}));function on(t,e,n={}){let r=null,i=0;return function(...s){const a=Date.now();!i&&n.leading===!1&&(i=a);const o=e-(a-i),c=this;o<=0||o>e?(r&&(clearTimeout(r),r=null),i=a,t.apply(c,s)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{i=n.leading===!1?0:Date.now(),r=null,t.apply(c,s)},o))}}function Dr(t,e,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,r?n:{set(a){setTimeout(()=>{n.set.call(this,a)},0),s&&s.set&&s.set.call(this,a)}}),()=>Dr(t,e,s||{},!0)}function Ge(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,()=>{t[e]=r}}catch{return()=>{}}}let Qn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Qn=()=>new Date().getTime());function Iu(t){var e,n,r,i,s,a;const o=t.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:(o==null?void 0:o.documentElement.scrollLeft)||((n=(e=o==null?void 0:o.body)===null||e===void 0?void 0:e.parentElement)===null||n===void 0?void 0:n.scrollLeft)||((r=o==null?void 0:o.body)===null||r===void 0?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(o==null?void 0:o.documentElement.scrollTop)||((s=(i=o==null?void 0:o.body)===null||i===void 0?void 0:i.parentElement)===null||s===void 0?void 0:s.scrollTop)||((a=o==null?void 0:o.body)===null||a===void 0?void 0:a.scrollTop)||0}}function Tu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Cu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ot(t,e,n,r,i){if(!t)return!1;const s=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(!s)return!1;const a=pe(e,n);if(!i){const u=r&&s.matches(r);return a(s)&&!u}const o=ee(s,a);let c=-1;return o<0?!1:(r&&(c=ee(s,pe(null,r))),o>-1&&c<0?!0:o<c)}function Km(t,e){return e.getId(t)!==-1}function Jr(t,e){return e.getId(t)===an}function Ru(t,e){if(Xe(t))return!1;const n=e.getId(t);return e.has(n)?t.parentNode&&t.parentNode.nodeType===t.DOCUMENT_NODE?!1:t.parentNode?Ru(t.parentNode,e):!0:!0}function Bi(t){return!!t.changedTouches}function Jm(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.N
31odeList.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 ku(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function Au(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function Ui(t){return!!(t!=null&&t.shadowRoot)}class Xm{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var n;return(n=this.styleIDMap.get(e))!==null&&n!==void 0?n:-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 xu(t){var e,n;let r=null;return((n=(e=t.getRootNode)===null||e===void 0?void 0:e.call(t))===null||n===void 0?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(r=t.getRootNode().host),r}function Qm(t){let e=t,n;for(;n=xu(e);)e=n;return e}function tg(t){const e=t.ownerDocument;if(!e)return!1;const n=Qm(t);return e.contains(n)}function Nu(t){const e=t.ownerDocument;return e?e.contains(t)||tg(t):!1}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||{}),O=(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))(O||{}),lt=(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))(lt||{}),xt=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(xt||{}),ke=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(ke||{});function Ya(t){return"__ln"in t}class eg{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=(n==null?void 0:n.next)||null;return n}addNode(e){const n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&Ya(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&&Ya(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 Ha=(t,e)=>`${t}@${e}`;class ng{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>
31{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],n=new Set,r=new eg,i=c=>{let u=c,l=an;for(;l===an;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},s=c=>{if(!c.parentNode||!Nu(c))return;const u=Xe(c.parentNode)?this.mirror.getId(xu(c)):this.mirror.getId(c.parentNode),l=i(c);if(u===-1||l===-1)return r.addNode(c);const d=_e(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:f=>{ku(f,this.mirror)&&this.iframeManager.addIframe(f),Au(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),Ui(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,h)=>{this.iframeManager.attachIframe(f,h),this.shadowDomManager.observeAttachShadow(f)},onStylesheetLoad:(f,h)=>{this.stylesheetManager.attachLinkElement(f,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)$a(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||s(c);for(const c of this.addedSet)!Wa(this.droppedSet,c)&&!$a(this.removes,c,this.mirror)||Wa(this.movedSet,c)?s(c):this.droppedSet.add(c);let a=null;for(;r.length;){let c=null;if(a){const u=this.mirror.getId(a.value.parentNode),l=i(a.value);u!==-1&&l!==-1&&(c=a)}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(i(l.value)===-1)continue;if(d!==-1){c=l;break}else{const h=l.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const _=h.parentNode.host;if(this.mirror.getId(_)!==-1){c=l;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}a=c.previous,r.removeNode(c.value),s(c.value)}const o={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};!o.texts.length&&!o.attributes.length&&!o.removes.length&&!o.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(Jr(e.target,this.mirror))return;let n;try{n=document.implementation.createHTMLDocument()}catch{n=this.doc}switch(e.type){case"characterData":{const r=e.target.textContent;!ot(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&r!==e.oldValue&&this.texts.push({value:Re(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{const r=e.target;let i=e.attributeName,s=e.target.getAttribute(i);if(i==="value"){const o=As(r),c=r.tagName;s=Jn(r,c,o);const u=Nr({maskInputOptions:this.maskInputOptions,tagName:c,type:o}),l=Re(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,u);s=sn({isMasked:l,element:r,value:s,maskInputFn:this.maskInputFn})}if(ot(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===e.oldValue)return;let a=this.attributes.find(o=>o.node===e.target);if(r.tagName==="IFRAME"&&i==="src"&&!this.keepIframeSrcFn(s))if(!r.contentDocument)i="rr_src";else return;if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a)),i==="type"&&r.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!wu(r.tagName,i)&&(a.attributes[i]=vu(this.doc,Ce(r.tagName),Ce(i),s,r,this.maskAttributeFn),i==="style")){const o=n.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue);for(const c of Array.from(r.style)){const u=r.style.getPropertyValue(c),l=r.style.getPropertyPriority(c);u!==o.style.getPropertyValue(c)||l!==o.style.getPropertyPriority(c)?l===""?a.styleDiff[c]=u:a.styleDiff[c]=[u,l]:a._unchangedStyles[c]=[u,l]}for(const c of Array.from(o.style))r.style.getPropertyValue(c)===""&&(a.styleDiff[c]=!1)}break}
vendor: 4,864 bytes, line 31
31case"childList":{if(ot(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(r=>this.genAdds(r,e.target)),e.removedNodes.forEach(r=>{const i=this.mirror.getId(r),s=Xe(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ot(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Jr(r,this.mirror)||!Km(r,this.mirror)||(this.addedSet.has(r)?(Li(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(e.target)&&i===-1||Ru(e.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Ha(i,s)]?Li(this.movedSet,r):this.removes.push({parentId:s,id:i,isShadow:Xe(e.target)&&Qe(e.target)?!0:void 0})),this.mapRemoves.push(r))});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(Jr(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[Ha(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ot(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(r=>this.genAdds(r)),Ui(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 Li(t,e){t.delete(e),e.childNodes.forEach(n=>Li(t,n))}function $a(t,e,n){return t.length===0?!1:Du(t,e,n)}function Du(t,e,n){const{parentNode:r}=e;if(!r)return!1;const i=n.getId(r);return t.some(s=>s.id===i)?!0:Du(t,r,n)}function Wa(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 tn;function rg(t){tn=t}function ig(){tn=void 0}const x=t=>tn?(...n)=>{try{return t(...n)}catch(r){if(tn&&tn(r)===!0)return()=>{};throw r}}:t,ne=[];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{}return t&&t.target}function Mu(t,e){var n,r;const i=new ng;ne.push(i),i.init(t);let s=window.MutationObserver||window.__rrMutationObserver;const a=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"MutationObserver");a&&window[a]&&(s=window[a]);const o=new s(x(c=>{t.onMutation&&t.onMutation(c)===!1||i.processMutations.bind(i)(c)}));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function sg({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(e.mousemove===!1)return()=>{};const i=typeof e.mousemove=="number"?e.mousemove:50,s=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let a=[],o;const c=on(x(d=>{const f=Date.now()-o;t(a.map(h=>(h.timeOffset-=f,h)),d),a=[],o=null}),s),u=x(on(x(d=>{const f=mn(d),{clientX:h,clientY:_}=Bi(d)?d.changedTouches[0]:d;o||(o=Qn()),a.push({x:h,y:_,id:r.getId(f),timeOffset:Qn()-o}),c(typeof DragEvent<"u"&&d instanceof DragEvent?O.Drag:d instanceof MouseEvent?O.MouseMove:O.TouchMove)}),i,{trailing:!1})),l=[at("mousemove",u,n),at("touchmove",u,n),at("drag",u,n)];return x(()=>{l.forEach(d=>d())})}function ag({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:a}){if(a.mouseInteraction===!1)return()=>{};const o=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,c=[];let u=null;const l=d=>f=>{const h=mn(f);if(ot(h,r,i,s,!0))return;let _=null,p=d;if("pointerType"in f){switch(f.pointerType){case"mouse":_=xt.Mouse;break;case"touch":_=xt.Touch;break;case"pen":_=xt.Pen;break}_===xt.Touch?lt[d]===lt.MouseDown?p="TouchStart":lt[d]===lt.MouseUp&&(p="TouchEnd"):xt.Pen}else Bi(f)&&(_=xt.Touch);_!==null?(u=_,(p.startsWith("Touch")&&_===xt.Touch||p.startsWith("Mouse")&&_===xt.Mouse)&&(_=null)):lt[d]===lt.Click&&(_=u,u=null);const g=Bi(f)?f.changedTouches[0]:f;if(!g)return;const E=n.getId(h),{clientX:S,clientY:I}=g;x(t)(Object.assign({type:lt[p],id:E,x:S,y:I},_!==null&&{pointerType:_}))};return Object.keys(lt).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&o[d]!==!1).forEac
31h(d=>{let f=Ce(d);const h=l(d);if(window.PointerEvent)switch(lt[d]){case lt.MouseDown:case lt.MouseUp:f=f.replace("mouse","pointer");break;case lt.TouchStart:case lt.TouchEnd:return}c.push(at(f,h,e))}),x(()=>{c.forEach(d=>d())})}function Bu({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:a}){const o=x(on(x(c=>{const u=mn(c);if(!u||ot(u,r,i,s,!0))return;const l=n.getId(u);if(u===e&&e.defaultView){const d=Iu(e.defaultView);t({id:l,x:d.left,y:d.top})}else t({id:l,x:u.scrollLeft,y:u.scrollTop})}),a.scroll||100));return at("scroll",o,e)}function og({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const i=x(on(x(()=>{const s=Tu(),a=Cu();(n!==s||r!==a)&&(t({width:Number(a),height:Number(s)}),n=s,r=a)}),200));return at("resize",i,e)}function ja(t,e){const n=Object.assign({},t);return e||delete n.userTriggered,n}const cg=["INPUT","TEXTAREA","SELECT"],Va=new WeakMap;function ug({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,ignoreClass:a,ignoreSelector:o,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:h,maskTextSelector:_,unmaskTextSelector:p}){function g(b){let w=mn(b);const N=b.isTrusted,v=w&&Mi(w.tagName);if(v==="OPTION"&&(w=w.parentElement),!w||!v||cg.indexOf(v)<0||ot(w,r,i,s,!0))return;const R=w;if(R.classList.contains(a)||o&&R.matches(o))return;const U=As(w);let j=Jn(R,v,U),K=!1;const J=Nr({maskInputOptions:c,tagName:v,type:U}),D=Re(w,f,_,h,p,J);(U==="radio"||U==="checkbox")&&(K=w.checked),j=sn({isMasked:D,element:w,value:j,maskInputFn:u}),E(w,x(ja)({text:j,isChecked:K,userTriggered:N},d));const ft=w.name;U==="radio"&&ft&&K&&e.querySelectorAll(`input[type="radio"][name="${ft}"]`).forEach(W=>{if(W!==w){const ht=sn({isMasked:D,element:W,value:Jn(W,v,U),maskInputFn:u});E(W,x(ja)({text:ht,isChecked:!K,userTriggered:!1},d))}})}function E(b,w){const N=Va.get(b);if(!N||N.text!==w.text||N.isChecked!==w.isChecked){Va.set(b,w);const v=n.getId(b);x(t)(Object.assign(Object.assign({},w),{id:v}))}}const I=(l.input==="last"?["change"]:["input","change"]).map(b=>at(b,x(g),e)),T=e.defaultView;if(!T)return()=>{I.forEach(b=>b())};const C=T.Object.getOwnPropertyDescriptor(T.HTMLInputElement.prototype,"value"),m=[[T.HTMLInputElement.prototype,"value"],[T.HTMLInputElement.prototype,"checked"],[T.HTMLSelectElement.prototype,"value"],[T.HTMLTextAreaElement.prototype,"value"],[T.HTMLSelectElement.prototype,"selectedIndex"],[T.HTMLOptionElement.prototype,"selected"]];return C&&C.set&&I.push(...m.map(b=>Dr(b[0],b[1],{set(){x(g)({target:this,isTrusted:!1})}},!1,T))),x(()=>{I.forEach(b=>b())})}function tr(t){const e=[];function n(r,i){if(Dn("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Dn("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Dn("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Dn("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const a=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(a)}else if(r.parentStyleSheet){const a=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(a)}return i}return n(t,e)}function Ut(t,e,n){let r,i;return t?(t.ownerNode?r=e.getId(t.ownerNode):i=n.getId(t),{styleId:i,id:r}):{}}function lg({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:x((l,d,f)=>{const[h,_]=f,{id:p,styleId:g}=Ut(d,e,n.styleMirror);return(p&&p!==-1||g&&g!==-1)&&t({id:p,styleId:g,adds:[{rule:h,index:_}]}),l.apply(d,f)})});const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:x((l,d,f)=>{const[h]=f,{id:_,styleId:p}=Ut(d,e,n.styleMirror);return(_&&_!==-1||p&&p!==-1)&&t({id:_,styleId:p,removes:[{index:h}]}),l.apply(d,f)})});let a;r.CSSStyleSheet.prototype.replace&&(a=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:x((l,d,f)=>{const[h]=f,{id:_,styleId:p}=Ut(d,e,n.styleMirror);return(_&&_!==-1||p&&p!==-1)&&t({id:_,styleId:p,replace:h}),l.apply(d,f)})}));let o;r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:x((l,d,f)=>{const[h]=f,{id:_,styleId:p}=Ut(d,e,n.styleMirror);return(_&&_!==-1||p&&p!==-1)&&t({id:_,styleId:p,replaceSync:h}),l.apply(d,f)})}));const c={};On("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(On("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),On("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),On("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};
vendor: 7,377 bytes, line 31
31return 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:x((f,h,_)=>{const[p,g]=_,{id:E,styleId:S}=Ut(h.parentStyleSheet,e,n.styleMirror);return(E&&E!==-1||S&&S!==-1)&&t({id:E,styleId:S,adds:[{rule:p,index:[...tr(h),g||0]}]}),f.apply(h,_)})}),d.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:x((f,h,_)=>{const[p]=_,{id:g,styleId:E}=Ut(h.parentStyleSheet,e,n.styleMirror);return(g&&g!==-1||E&&E!==-1)&&t({id:g,styleId:E,removes:[{index:[...tr(h),p]}]}),f.apply(h,_)})})}),x(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=s,a&&(r.CSSStyleSheet.prototype.replace=a),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(c).forEach(([l,d])=>{d.prototype.insertRule=u[l].insertRule,d.prototype.deleteRule=u[l].deleteRule})})}function Uu({mirror:t,stylesheetManager:e},n){var r,i,s;let a=null;n.nodeName==="#document"?a=t.getId(n):a=t.getId(n.host);const o=n.nodeName==="#document"?(r=n.defaultView)===null||r===void 0?void 0:r.Document:(s=(i=n.ownerDocument)===null||i===void 0?void 0:i.defaultView)===null||s===void 0?void 0:s.ShadowRoot,c=Object.getOwnPropertyDescriptor(o==null?void 0:o.prototype,"adoptedStyleSheets");return a===null||a===-1||!o||!c?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var u;return(u=c.get)===null||u===void 0?void 0:u.call(this)},set(u){var l;const d=(l=c.set)===null||l===void 0?void 0:l.call(this,u);if(a!==null&&a!==-1)try{e.adoptStyleSheets(u,a)}catch{}return d}}),x(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function dg({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:x((o,c,u)=>{var l;const[d,f,h]=u;if(n.has(d))return s.apply(c,[d,f,h]);const{id:_,styleId:p}=Ut((l=c.parentRule)===null||l===void 0?void 0:l.parentStyleSheet,e,r.styleMirror);return(_&&_!==-1||p&&p!==-1)&&t({id:_,styleId:p,set:{property:d,value:f,priority:h},index:tr(c.parentRule)}),o.apply(c,u)})});const a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:x((o,c,u)=>{var l;const[d]=u;if(n.has(d))return a.apply(c,[d]);const{id:f,styleId:h}=Ut((l=c.parentRule)===null||l===void 0?void 0:l.parentStyleSheet,e,r.styleMirror);return(f&&f!==-1||h&&h!==-1)&&t({id:f,styleId:h,remove:{property:d},index:tr(c.parentRule)}),o.apply(c,u)})}),x(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=a})}function fg({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:i,sampling:s,doc:a}){const o=x(u=>on(x(l=>{const d=mn(l);if(!d||ot(d,e,n,r,!0))return;const{currentTime:f,volume:h,muted:_,playbackRate:p}=d;t({type:u,id:i.getId(d),currentTime:f,volume:h,muted:_,playbackRate:p})}),s.media||500)),c=[at("play",o(0),a),at("pause",o(1),a),at("seeked",o(2),a),at("volumechange",o(3),a),at("ratechange",o(4),a)];return x(()=>{c.forEach(u=>u())})}function hg({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(c,u,l){const d=new s(c,u,l);return i.set(d,{family:c,buffer:typeof u!="string",descriptors:l,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};const a=Ge(e.fonts,"add",function(o){return function(c){return setTimeout(x(()=>{const u=i.get(c);u&&(t(u),i.delete(c))}),0),o.apply(this,[c])}});return r.push(()=>{n.FontFace=s}),r.push(a),x(()=>{r.forEach(o=>o())})}function pg(t){const{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:a}=t;let o=!0;const c=x(()=>{const u=e.getSelection();if(!u||o&&(u!=null&&u.isCollapsed))return;o=u.isCollapsed||!1;const l=[],d=u.rangeCount||0;for(let f=0;f<d;f++){const h=u.getRangeAt(f),{startContainer:_,startOffset:p,endContainer:g,endOffset:E}=h;ot(_,r,i,s,!0)||ot(g,r,i,s,!0)||l.push({start:n.getId(_),startOffset:p,end:n.getId(g),endOffset:E})}a({ranges:l})});return c(),at("selectionchange",c)}function _g({doc:t,customElementCb:e}){const n=t.defaultView;return!n||!n.customElements?()=>{}:Ge(n.customElements,"define",function(i){return function(s,a,o){try{e({define:{name:s}})}catch{}return i.apply(this,[s,a,o])}})}function mg(t,e){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:i,scrollCb:s,viewportResizeCb:a,inputCb:o,mediaInteractionCb:c,styleSheetRuleCb:u,styleDeclarationCb:l,canvasMutationCb:d,fontCb:f,selectionCb:h,customElementCb:_}=t;t.mutationCb=(...p)=>{e.mutation&&e.mutation(...p),n(...p)},t.mousemoveCb=(...p)=>{e.mousemove&&e.mousemove(...p),r(...p)},t.mouseInteractionCb=(...p)=>{e.mouseInteraction&&e.mouseInteraction(...p),i(...p)},t.scrollCb=(...p)=>{e.scroll&&e.scroll(...p),s(...p)},t.viewportResizeCb=(...p)=>{e.viewportResize&&e.viewportResize(...p),a(...p)},t.inputCb=(...p)=>{e.input&&e.input(...p),o(...p)},t.mediaInteractionCb=(...p)=>{e.mediaInteaction&&e.mediaInteaction(...p),c(...p)},t.styleSheetRuleCb=(...p)=>{e.styleSheetRule&&e.styleSheetRule(...p),u(...p)},t.styleDeclarationCb=(...p)=>{e.styleDeclaration&&e.styleDeclaration(...p),l(...p)},t.canvasMutationCb=(...p)=>{e.canvasMutation&&e.canvasMutation(...p),d(...p)},t.fontCb=(...p)=>{e.font&&e.font(...p),f(...p)},t.selectionCb=(...p)=>{e.selection&&e.selection(...p),h(...p)},t.customElementCb=(...p)=>{e.customElement&&e.customElement(...p),_(...p)}}function gg(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};mg(t,e);const r=Mu(t,t.doc),i=sg(t),s=ag(t),a=Bu(t),o=og(t,{win:n}),c=ug(t),u=fg(t),l=lg(t,{win:n}),d=Uu(t,t.doc),f=dg(t,{win:n}),h=t.collectFonts?hg(t):()=>{},_=pg(t),p=_g(t),g=[];for(const E of t.plugins)g.push(E.observer(E.callback,n,E.options));return x(()=>{ne.forEach(E=>E.reset()),r.disconnect(),i(),s(),a(),o(),c(),u(),l(),d(),f(),h(),_(),p(),g.forEach(E=>E())})}function Dn(t){return typeof window[t]<"u"}function On(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class Za{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,n,r,i){const s=r||this.getIdToRemoteIdMap(e),a=i||this.getRemoteIdToIdMap(e);let o=s.get(n);return o||(o=this.generateIdFn(),s.set(n,o),a.set(o,n)),o}getIds(e,n){const r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return n.map(s=>this.getId(e,s,r,i))}getRemoteId(e,n,r){const i=r||this.getRemoteIdToIdMap(e);if(typeof n!="number")return n;const s=i.get(n);return s||-1}getRemoteIds(e,n){const r=this.getRemoteIdToIdMap(e);return n.map(i=>this.getRemoteId(e,i,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}}class yg{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=ne
vendor: 5,024 bytes, line 31
31w Za(Su),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Za(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){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const n=e;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!e.source)return;const i=this.crossOriginIframeMap.get(e.source);if(!i)return;const s=this.transformCrossOriginEvent(i,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(e,n){var r;switch(n.type){case A.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);const i=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(n.data.node,i),{timestamp:n.timestamp,type:A.IncrementalSnapshot,data:{source:O.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 O.Mutation:return n.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e);const s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(i.node,s)}),n.data.removes.forEach(i=>{this.replaceIds(i,e,["parentId","id"])}),n.data.attributes.forEach(i=>{this.replaceIds(i,e,["id"])}),n.data.texts.forEach(i=>{this.replaceIds(i,e,["id"])}),n;case O.Drag:case O.TouchMove:case O.MouseMove:return n.data.positions.forEach(i=>{this.replaceIds(i,e,["id"])}),n;case O.ViewportResize:return!1;case O.MediaInteraction:case O.MouseInteraction:case O.Scroll:case O.CanvasMutation:case O.Input:return this.replaceIds(n.data,e,["id"]),n;case O.StyleSheetRule:case O.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case O.Font:return n;case O.Selection:return n.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"])}),n;case O.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),(r=n.data.styles)===null||r===void 0||r.forEach(i=>{this.replaceStyleIds(i,e,["styleId"])}),n}}return!1}replace(e,n,r,i){for(const s of i)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=e.getIds(r,n[s]):n[s]=e.getId(r,n[s]));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!==X.Document&&!e.rootId&&(e.rootId=n),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class bg{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(!Qe(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=Mu(Object.assign(Object.assign({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Bu(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Uu({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(Ge(e.prototype,"attachShadow",function(i){return function(s){const a=i.call(this,s);return this.shadowRoot&&Nu(this)&&r.addShadowRoot(this.shadowRoot,n),a}}))}
31reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}/*! ***************************************************************************** 32Copyright (c) Microsoft Corporation. 33 34Permission to use, copy, modify, and/or distribute this software for any 35purpose with or without fee is hereby granted. 36 37THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 38REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 39AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 40INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 41LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 42OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 43PERFORMANCE OF THIS SOFTWARE. 44***************************************************************************** */function Eg(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Sg(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(l){try{u(r.next(l))}catch(d){a(d)}}function c(l){try{u(r.throw(l))}catch(d){a(d)}}function u(l){l.done?s(l.value):i(l.value).then(o,c)}u((r=r.apply(t,e||[])).next())})}var me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vg=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Mn=0;Mn<me.length;Mn++)vg[me.charCodeAt(Mn)]=Mn;var wg=function(t){var e=new Uint8Array(t),n,r=e.length,i="";for(n=0;n<r;n+=3)i+=me[e[n]>>2],i+=me[(e[n]&3)<<4|e[n+1]>>4],i+=me[(e[n+1]&15)<<2|e[n+2]>>6],i+=me[e[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const qa=new Map;function Ig(t,e){let n=qa.get(t);return n||(n=new Map,qa.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}const Lu=(t,e,n)=>{if(!t||!(Gu(t,e)||typeof t=="object"))return;const r=t.constructor.name,i=Ig(n,r);let s=i.indexOf(t);return s===-1&&(s=i.length,i.push(t)),s};function Pn(t,e,n){if(t instanceof Array)return t.map(r=>Pn(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,i=wg(t);return{rr_type:r,base64:i}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[Pn(t.buffer,e,n),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const r=t.constructor.name,{src:i}=t;return{rr_type:r,src:i}}else if(t instanceof HTMLCanvasElement){const r="HTMLImageElement",i=t.toDataURL();return{rr_type:r,src:i}}else{if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[Pn(t.data,e,n),t.width,t.height]};if(Gu(t,e)||typeof t=="object"){const r=t.constructor.name,i=Lu(t,e,n);return{rr_type:r,index:i}}}}return t}const Fu=(t,e,n)=>[...t].map(r=>Pn(r,e,n)),Gu=(t,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>t instanceof e[i]);function Tg(t,e,n,r,i){const s=[],a=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const o of a)try{if(typeof e.CanvasRenderingContext2D.prototype[o]!="function")continue;const c=Ge(e.CanvasRenderingContext2D.prototype,o,function(u){return function(...l){return ot(this.canvas,n,r,i,!0)||setTimeout(()=>{const d=Fu([...l],e,this);t(this.canvas,{type:ke["2D"],property:o,args:d})}
44,0),u.apply(this,l)}});s.push(c)}catch{const u=Dr(e.CanvasRenderingContext2D.prototype,o,{set(l){t(this.canvas,{type:ke["2D"],property:o,args:[l],setter:!0})}});s.push(u)}return()=>{s.forEach(o=>o())}}function Cg(t){return t==="experimental-webgl"?"webgl":t}function Ka(t,e,n,r,i){const s=[];try{const a=Ge(t.HTMLCanvasElement.prototype,"getContext",function(o){return function(c,...u){if(!ot(this,e,n,r,!0)){const l=Cg(c);if("__context"in this||(this.__context=l),i&&["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 o.apply(this,[c,...u])}});s.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(a=>a())}}function Ja(t,e,n,r,i,s,a,o){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=Ge(t,l,function(f){return function(...h){const _=f.apply(this,h);if(Lu(_,o,this),"tagName"in this.canvas&&!ot(this.canvas,r,i,s,!0)){const p=Fu([...h],o,this),g={type:e,property:l,args:p};n(this.canvas,g)}return _}});c.push(d)}catch{const f=Dr(t,l,{set(h){n(this.canvas,{type:e,property:l,args:[h],setter:!0})}});c.push(f)}return c}function Rg(t,e,n,r,i,s){const a=[];return a.push(...Ja(e.WebGLRenderingContext.prototype,ke.WebGL,t,n,r,i,s,e)),typeof e.WebGL2RenderingContext<"u"&&a.push(...Ja(e.WebGL2RenderingContext.prototype,ke.WebGL2,t,n,r,i,s,e)),()=>{a.forEach(o=>o())}}function kg(t,e){var n=atob(t);if(e){for(var r=new Uint8Array(n.length),i=0,s=n.length;i<s;++i)r[i]=n.charCodeAt(i);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}function Ag(t,e,n){var r=e===void 0?null:e,i=n===void 0?!1:n,s=kg(t,i),a=s.indexOf(` 45`,10)+1,o=s.substring(a)+(r?"//# sourceMappingURL="+r:""),c=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(c)}function xg(t,e,n){var r;return function(s){return r=r||Ag(t,e,n),new Worker(r,s)}}var Ng=xg("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICAgJ3VzZSBzdHJpY3QnOwoKICAgIC8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLg0KDQogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55DQogICAgcHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLg0KDQogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgNCiAgICBSRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFkNCiAgICBBTkQgRklUTkVTUy4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUiBCRSBMSUFCTEUgRk9SIEFOWSBTUEVDSUFMLCBESVJFQ1QsDQogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NDQogICAgTE9TUyBPRiBVU0UsIERBVEEgT1IgUFJPRklUUywgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIE5FR0xJR0VOQ0UgT1INCiAgICBPVEhFUiBUT1JUSU9VUyBBQ1RJT04sIEFSSVNJTkcgT1VUIE9GIE9SIElOIENPTk5FQ1RJT04gV0lUSCBUSEUgVVNFIE9SDQogICAgUEVSRk9STUFOQ0UgT0YgVEhJUyBTT0ZUV0FSRS4NCiAgICAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiAqLw0KDQogICAgZnVuY3Rpb24gX19hd2FpdGVyKHRoaXNBcmcsIF9hcmd1bWVudHMsIFAsIGdlbmVyYXRvcikgew0KICAgICAgICBmdW5jdGlvbiBhZG9wdCh2YWx1ZSkgeyByZXR1cm4gdmFsdWUgaW5zdGFuY2VvZiBQID8gdmFsdWUgOiBuZXcgUChmdW5jdGlvbiAocmVzb2x2ZSkgeyByZXNvbHZlKHZhbHVlKTsgfSk7IH0NCiAgICAgICAgcmV0dXJuIG5ldyAoUCB8fCAoUCA9IFByb21pc2UpKShmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7DQogICAgICAgICAgICBmdW5jdGlvbiBmdWxmaWxsZWQodmFsdWUpIHsgdHJ5IHsgc3RlcChnZW5lcmF0b3IubmV4dCh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiByZWplY3RlZCh2YWx1ZSkgeyB0cnkgeyBzdGVwKGdlbmVyYXRvclsidGhyb3ciXSh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiBzdGVwKHJlc3VsdCkgeyByZXN1bHQuZG9uZSA/IHJlc29sdmUocmVzdWx0LnZhbHVlKSA6IGFkb3B0KHJlc3VsdC52YWx1ZSkudGhlbihmdWxmaWxsZWQsIHJlamVjdGVkKTsgfQ0KICAgICAgICAgICAgc3RlcCgoZ2VuZXJhdG9yID0gZ2VuZXJhdG9yLmFwcGx5KHRoaXNBcmcsIF9hcmd1bWVudHMgfHwgW10pKS5uZXh0KCkpOw0KICAgICAgICB9KTsNCiAgICB9CgogICAgLyoKICAgICAqIGJhc2U2NC1hcnJheWJ1ZmZlciAxLjAuMSA8aHR0cHM6Ly9naXRodWIuY29tL25pa2xhc3ZoL2Jhc2U2NC1hcnJheWJ1ZmZlcj4KICAgICAqIENvcHlyaWdodCAoYykgMjAyMSBOaWtsYXMgdm9uIEhlcnR6ZW4gPGh0dHBzOi8vaGVydHplbi5jb20+CiAgICAgKiBSZWxlYXNlZCB1bmRlciBNSVQgTGljZW5zZQogICAgICovCiAgICB2Y
45XIgY2hhcnMgPSAnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyc7CiAgICAvLyBVc2UgYSBsb29rdXAgdGFibGUgdG8gZmluZCB0aGUgaW5kZXguCiAgICB2YXIgbG9va3VwID0gdHlwZW9mIFVpbnQ4QXJyYXkgPT09ICd1bmRlZmluZWQnID8gW10gOiBuZXcgVWludDhBcnJheSgyNTYpOwogICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjaGFycy5sZW5ndGg7IGkrKykgewogICAgICAgIGxvb2t1cFtjaGFycy5jaGFyQ29kZUF0KGkpXSA9IGk7CiAgICB9CiAgICB2YXIgZW5jb2RlID0gZnVuY3Rpb24gKGFycmF5YnVmZmVyKSB7CiAgICAgICAgdmFyIGJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkoYXJyYXlidWZmZXIpLCBpLCBsZW4gPSBieXRlcy5sZW5ndGgsIGJhc2U2NCA9ICcnOwogICAgICAgIGZvciAoaSA9IDA7IGkgPCBsZW47IGkgKz0gMykgewogICAgICAgICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaV0gPj4gMl07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1soKGJ5dGVzW2ldICYgMykgPDwgNCkgfCAoYnl0ZXNbaSArIDFdID4+IDQpXTsKICAgICAgICAgICAgYmFzZTY0ICs9IGNoYXJzWygoYnl0ZXNbaSArIDFdICYgMTUpIDw8IDIpIHwgKGJ5dGVzW2kgKyAyXSA+PiA2KV07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1tieXRlc1tpICsgMl0gJiA2M107CiAgICAgICAgfQogICAgICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgJz0nOwogICAgICAgIH0KICAgICAgICBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgJz09JzsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIGJhc2U2NDsKICAgIH07CgogICAgY29uc3QgbGFzdEJsb2JNYXAgPSBuZXcgTWFwKCk7DQogICAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gbmV3IE1hcCgpOw0KICAgIGZ1bmN0aW9uIGdldFRyYW5zcGFyZW50QmxvYkZvcih3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucykgew0KICAgICAgICByZXR1cm4gX19hd2FpdGVyKHRoaXMsIHZvaWQgMCwgdm9pZCAwLCBmdW5jdGlvbiogKCkgew0KICAgICAgICAgICAgY29uc3QgaWQgPSBgJHt3aWR0aH0tJHtoZWlnaHR9YDsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgaWYgKHRyYW5zcGFyZW50QmxvYk1hcC5oYXMoaWQpKQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJhbnNwYXJlbnRCbG9iTWFwLmdldChpZCk7DQogICAgICAgICAgICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsNCiAgICAgICAgICAgICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgnMmQnKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0geWllbGQgYmxvYi5hcnJheUJ1ZmZlcigpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7DQogICAgICAgICAgICAgICAgdHJhbnNwYXJlbnRCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICByZXR1cm4gYmFzZTY0Ow0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICcnOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9KTsNCiAgICB9DQogICAgY29uc3Qgd29ya2VyID0gc2VsZjsNCiAgICB3b3JrZXIub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsNCiAgICAgICAgcmV0dXJuIF9fYXdhaXRlcih0aGlzLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24qICgpIHsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgY29uc3QgeyBpZCwgYml0bWFwLCB3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucyB9ID0gZS5kYXRhOw0KICAgICAgICAgICAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zKTsNCiAgICAgICAgICAgICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCcyZCcpOw0KICAgICAgICAgICAgICAgIGN0eC5kcmF3SW1hZ2UoYml0bWFwLCAwLCAwKTsNCiAgICAgICAgICAgICAgICBiaXRtYXAuY2xvc2UoKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IHR5cGUgPSBibG9iLnR5cGU7DQogICAgICAgICAgICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSB5aWVsZCBibG9iLmFycmF5QnVmZmVyKCk7DQogICAgICAgICAgICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsNCiAgICAgICAgICAgICAgICBpZiAoIWxhc3RCbG9iTWFwLmhhcyhpZCkgJiYgKHlpZWxkIHRyYW5zcGFyZW50QmFzZTY0KSA9PT0gYmFzZTY0KSB7DQogICAgICAgICAgICAgICAgICAgIGxhc3RCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7DQogICAgICAgICAgICAgICAgd29ya2VyLnBvc3RNZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgaWQsDQogICAgICAgICAgICAgICAgICAgIHR5cGUsDQogICAgICAgICAgICAgICAgICAgIGJhc2U2NCwNCiAgICAgICAgICAgICAgICAgICAgd2lkdGgsDQogICAgICAgICAgICAgICAgICAgIGhlaWdodCwNCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsNCiAgICAgICAgICAgI
45H0NCiAgICAgICAgfSk7DQogICAgfTsKCn0pKCk7Cgo=",null,!1);class Dg{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=(u,l)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(u)||this.pendingCanvasMutations.set(u,[]),this.pendingCanvasMutations.get(u).push(l)};const{sampling:n="all",win:r,blockClass:i,blockSelector:s,unblockSelector:a,recordCanvas:o,dataURLOptions:c}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&n==="all"&&this.initCanvasMutationObserver(r,i,s,a),o&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,i,s,a,{dataURLOptions:c})}initCanvasFPSObserver(e,n,r,i,s,a){const o=Ka(n,r,i,s,!0),c=new Map,u=new Ng;u.onmessage=p=>{const{id:g}=p.data;if(c.set(g,!1),!("base64"in p.data))return;const{base64:E,type:S,width:I,height:T}=p.data;this.mutationCb({id:g,type:ke["2D"],commands:[{property:"clearRect",args:[0,0,I,T]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:E}],type:S}]},0,0]}]})};const l=1e3/e;let d=0,f;const h=()=>{const p=[];return n.document.querySelectorAll("canvas").forEach(g=>{ot(g,r,i,s,!0)||p.push(g)}),p},_=p=>{if(d&&p-d<l){f=requestAnimationFrame(_);return}d=p,h().forEach(g=>Sg(this,void 0,void 0,function*(){var E;const S=this.mirror.getId(g);if(c.get(S))return;if(c.set(S,!0),["webgl","webgl2"].includes(g.__context)){const T=g.getContext(g.__context);((E=T==null?void 0:T.getContextAttributes())===null||E===void 0?void 0:E.preserveDrawingBuffer)===!1&&T.clear(T.COLOR_BUFFER_BIT)}const I=yield createImageBitmap(g);u.postMessage({id:S,bitmap:I,width:g.width,height:g.height,dataURLOptions:a.dataURLOptions},[I])}
45)),f=requestAnimationFrame(_)};f=requestAnimationFrame(_),this.resetObservers=()=>{o(),cancelAnimationFrame(f)}}initCanvasMutationObserver(e,n,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const s=Ka(e,n,r,i,!1),a=Tg(this.processMutation.bind(this),e,n,r,i),o=Rg(this.processMutation.bind(this),e,n,r,i,this.mirror);this.resetObservers=()=>{s(),a(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=n=>{this.rafStamps.latestId=n,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||n===-1)return;const i=r.map(a=>Eg(a,["type"])),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:i}),this.pendingCanvasMutations.delete(e)}}class Og{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Xm,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:[]},i=[];for(const s of e){let a;this.styleMirror.has(s)?a=this.styleMirror.getId(s):(a=this.styleMirror.add(s),i.push({styleId:a,rules:Array.from(s.rules||CSSRule,(o,c)=>({rule:bu(o),index:c}))})),r.styleIds.push(a)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Mg{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,n){const r=this.nodeMap.get(e);return r&&Array.from(r).some(i=>i!==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}}function V(t){return Object.assign(Object.assign({},t),{timestamp:Qn()})}let H,zn,Xr,er=!1;const yt=Cm();function At(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:s=null,unblockSelector:a=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:_=!0,maskAllInputs:p,maskInputOptions:g,slimDOMOptions:E,maskAttributeFn:S,maskInputFn:I,maskTextFn:T,hooks:C,packFn:m,sampling:b={},dataURLOptions:w={},mousemoveWait:N,recordCanvas:v=!1,recordCrossOriginIframes:R=!1,recordAfter:U=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:K=!1,inlineImages:J=!1,plugins:D,keepIframeSrcFn:ft=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:ht,onMutation:pt}=t;rg(ht);const qt=R?window.parent===window:!0;let Kt=!1;if(!qt)try{window.parent.document&&(Kt=!1)}catch{Kt=!0}if(qt&&!e)throw new Error("emit function is required");N!==void 0&&b.mousemove===void 0&&(b.mousemove=N),yt.reset();const Pe=p===!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}:g!==void 0?g:{},Fr=E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:E==="all",headMetaDescKeywords:E==="all"}:E||{};Jm();let zs,Gr=0;const Ys=k=>{for(const gt of D||[])gt.eventProcessor&&(k=gt.eventProcessor(k));return m&&!Kt&&(k=m(k)),k};H=(k,gt)=>{var Y;if(!((Y=ne[0])===null||Y===void 0)&&Y.isFrozen()&&k.type!==A.FullSnapshot&&!(k.type===A.IncrementalSnapshot&&k.data.source===O.Mutation)&&ne.forEach(st=>st.unfreeze()),qt)e==null||e(Ys(k),gt);else if(Kt){const st={type:"rrweb",event:Ys(k),origin:window.location.origin,isCheckout:gt};window.parent.postMessage(st,"*")}if(k.type===A.FullSnapshot)zs=k,Gr=0;else if(k.type===A.IncrementalSnapshot){if(k.data.source===O.Mutation&&k.data.isAttachIframe)return;Gr++;const st=r&&Gr>=r,Qt=n&&k.timestamp-zs.timestamp>n;(st||Qt)&&zn(!0)}};const yn=k=>{H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.Mutation},k)}))},Hs=k=>H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.Scroll},k)})),$s=k=>H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.CanvasMutation},k)}
45)),pl=k=>H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.AdoptedStyleSheet},k)})),Jt=new Og({mutationCb:yn,adoptedStyleSheetCb:pl}),Xt=new yg({mirror:yt,mutationCb:yn,stylesheetManager:Jt,recordCrossOriginIframes:R,wrappedEmit:H});for(const k of D||[])k.getMirror&&k.getMirror({nodeMirror:yt,crossOriginIframeMirror:Xt.crossOriginIframeMirror,crossOriginIframeStyleMirror:Xt.crossOriginIframeStyleMirror});const Pr=new Mg;Xr=new Dg({recordCanvas:v,mutationCb:$s,win:window,blockClass:i,blockSelector:s,unblockSelector:a,mirror:yt,sampling:b.canvas,dataURLOptions:w});const bn=new bg({mutationCb:yn,scrollCb:Hs,bypassOptions:{onMutation:pt,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:_,maskInputOptions:Pe,dataURLOptions:w,maskAttributeFn:S,maskTextFn:T,maskInputFn:I,recordCanvas:v,inlineImages:J,sampling:b,slimDOMOptions:Fr,iframeManager:Xt,stylesheetManager:Jt,canvasManager:Xr,keepIframeSrcFn:ft,processedNodeManager:Pr},mirror:yt});zn=(k=!1)=>{H(V({type:A.Meta,data:{href:window.location.href,width:Cu(),height:Tu()}}),k),Jt.reset(),bn.init(),ne.forEach(Y=>Y.lock());const gt=qm(document,{mirror:yt,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:_,maskAllInputs:Pe,maskAttributeFn:S,maskInputFn:I,maskTextFn:T,slimDOM:Fr,dataURLOptions:w,recordCanvas:v,inlineImages:J,onSerialize:Y=>{ku(Y,yt)&&Xt.addIframe(Y),Au(Y,yt)&&Jt.trackLinkElement(Y),Ui(Y)&&bn.addShadowRoot(Y.shadowRoot,document)},onIframeLoad:(Y,st)=>{Xt.attachIframe(Y,st),bn.observeAttachShadow(Y)},onStylesheetLoad:(Y,st)=>{Jt.attachLinkElement(Y,st)},keepIframeSrcFn:ft});if(!gt)return console.warn("Failed to snapshot the document");H(V({type:A.FullSnapshot,data:{node:gt,initialOffset:Iu(window)}}),k),ne.forEach(Y=>Y.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Jt.adoptStyleSheets(document.adoptedStyleSheets,yt.getId(document))};try{const k=[],gt=st=>{var Qt;return x(gg)({onMutation:pt,mutationCb:yn,mousemoveCb:(P,zr)=>H(V({type:A.IncrementalSnapshot,data:{source:zr,positions:P}})),mouseInteractionCb:P=>H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.MouseInteraction},P)})),scrollCb:Hs,viewportResizeCb:P=>H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.ViewportResize},P)})),inputCb:P=>H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.Input},P)})),mediaInteractionCb:P=>H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.MediaInteraction},P)})),styleSheetRuleCb:P=>H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.StyleSheetRule},P)})),styleDeclarationCb:P=>H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.StyleDeclaration},P)})),canvasMutationCb:$s,fontCb:P=>H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.Font},P)})),selectionCb:P=>{H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.Selection},P)}))},customElementCb:P=>{H(V({type:A.IncrementalSnapshot,data:Object.assign({source:O.CustomElement},P)}))},blockClass:i,ignoreClass:o,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:Pe,inlineStylesheet:_,sampling:b,recordCanvas:v,inlineImages:J,userTriggeredOnInput:j,collectFonts:K,doc:st,maskAttributeFn:S,maskInputFn:I,maskTextFn:T,keepIframeSrcFn:ft,blockSelector:s,unblockSelector:a,slimDOMOptions:Fr,dataURLOptions:w,mirror:yt,iframeManager:Xt,stylesheetManager:Jt,shadowDomManager:bn,processedNodeManager:Pr,canvasManager:Xr,ignoreCSSAttributes:W,plugins:((Qt=D==null?void 0:D.filter(P=>P.observer))===null||Qt===void 0?void 0:Qt.map(P=>({observer:P.observer,options:P.options,callback:zr=>H(V({type:A.Plugin,data:{plugin:P.name,payload:zr}}))})))||[]},C)};Xt.addLoadListener(st=>{try{k.push(gt(st.contentDocument))}catch(Qt){console.warn(Qt)}});const Y=()=>{zn(),k.push(gt(document)),er=!0};return document.readyState==="interactive"||document.readyState==="complete"?Y():(k.push(at("DOMContentLoaded",()=>{H(V({type:A.DomContentLoaded,data:{}})),U==="DOMContentLoaded"&&Y()})),k.push(at("load",()=>{H(V({type:A.Load,data:{}})),U==="load"&&Y()}
45,window))),()=>{k.forEach(st=>st()),Pr.destroy(),er=!1,ig()}}catch(k){console.warn(k)}}At.addCustomEvent=(t,e)=>{if(!er)throw new Error("please add custom event after start recording");H(V({type:A.Custom,data:{tag:t,payload:e}}))};At.freezePage=()=>{ne.forEach(t=>t.freeze())};At.takeFullSnapshot=t=>{if(!er)throw new Error("please take full snapshot after start recording");zn(t)};At.mirror=yt;function Ns(t){return t>9999999999?t:t*1e3}function Bg(t){return t>9999999999?t/1e3:t}function Or(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:Ct(e,10,1e3)}}),e.category==="console")))}const Ug="button,a";function Ds(t){const e=Pu(t);return!e||!(e instanceof Element)?e:e.closest(Ug)||e}function Pu(t){return Lg(t)?t.target:t}function Lg(t){return typeof t=="object"&&!!t&&"target"in t}let Lt;function Fg(t){return Lt||(Lt=[],Gg()),Lt.push(t),()=>{const e=Lt?Lt.indexOf(t):-1;e>-1&&Lt.splice(e,1)}}function Gg(){nt(M,"open",function(t){return function(...e){if(Lt)try{Lt.forEach(n=>n())}catch{}return t.apply(M,e)}})}function Pg(t,e,n){t.handleClick(e,n)}class zg{constructor(e,n,r=Or){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=()=>{this._lastMutation=Bn()},n=()=>{this._lastScroll=Bn()},r=Fg(()=>{this._lastMutation=Bn()}),i=a=>{if(!a.target)return;const o=Ds(a);o&&this._handleMultiClick(o)},s=new MutationObserver(e);s.observe(M.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),M.addEventListener("scroll",n,{passive:!0}),M.addEventListener("click",i,{passive:!0}),this._teardown=()=>{M.removeEventListener("scroll",n),M.removeEventListener("click",i),r(),s.disconnect(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,n){if(Hg(n,this._ignoreSelector)||!$g(e))return;const r={timestamp:Bg(e.timestamp),clickBreadcrumb:e,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}_handleMultiClick(e){this._getClicks(e).forEach(n=>{n.clickCount++})}_getClicks(e){return this._clicks.filter(n=>n.node===e)}_checkClicks(){const e=[],n=Bn();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 i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const n=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,i=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!r&&!i,{clickCount:a,clickBreadcrumb:o}=e;if(s){const c=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",l={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:M.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:a||1}};this._addBreadcrumbEvent(n,l);return}if(a>1){const c={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:M.location.href,route:n.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const Yg=["A","BUTTON","INPUT"];function Hg(t,e){return!!(!Yg.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 $g(t){return!!(t.data&&typeof t.data.nodeId=="number"&&t.timestamp)}function Bn(){return Date.now()/1e3}function Ot(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var nr;(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"})(nr||(nr={}));const Wg=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function jg(t){const e={};for(const n in t)if(Wg.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),e[r]=t[n]}return e}const Vg=t=>e=>{if(!t.isEnabled())return;const n=Zg(e);
45if(!n)return;const r=e.name==="click",i=r&&e.event;r&&t.clickDetector&&i&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&Pg(t.clickDetector,n,Ds(e.event)),Or(t,n)};function zu(t,e){const n=At.mirror.getId(t),r=n&&At.mirror.getNode(n),i=r&&At.mirror.getMeta(r),s=i&&Kg(i)?i:null;return{message:e,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(a=>a.type===nr.Text&&a.textContent).filter(Boolean).map(a=>a.trim()).join(""),attributes:jg(s.attributes)}}:{}}}function Zg(t){const{target:e,message:n}=qg(t);return Ot({category:`ui.${t.name}`,...zu(e,n)})}function qg(t){const e=t.name==="click";let n,r=null;try{r=e?Ds(t.event):Pu(t.event),n=Vt(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Kg(t){return t.type===nr.Element}function Jg(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=Xg(e);n&&Or(t,n)}function Xg(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:s,target:a}=t;if(!a||Qg(a)||!s)return null;const o=e||r||i,c=s.length===1;if(!o&&c)return null;const u=Vt(a,{maxStringLength:200})||"<unknown>",l=zu(a,u);return Ot({category:"ui.keyDown",message:u,data:{...l.data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:s}})}function Qg(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable}const ty=["name","type","startTime","transferSize","duration"];function Xa(t){return function(e){return ty.every(n=>t[n]===e[n])}}function ey(t,e){const[n,r,i]=t.reduce((c,u)=>(u.entryType==="navigation"?c[0].push(u):u.entryType==="largest-contentful-paint"?c[1].push(u):c[2].push(u),c),[[],[],[]]),s=[],a=[];let o=r.length?r[r.length-1]:void 0;return e.forEach(c=>{if(c.entryType==="largest-contentful-paint"){(!o||o.startTime<c.startTime)&&(o=c);return}if(c.entryType==="navigation"){const u=c;c.duration>0&&!n.find(Xa(u))&&!a.find(Xa(u))&&a.push(u);return}s.push(c)}),[...o?[o]:[],...n,...i,...s,...a].sort((c,u)=>c.startTime-u.startTime)}function ny(t){const e=r=>{const i=ey(t.performanceEvents,r.getEntries());t.performanceEvents=i},n=new PerformanceObserver(e);return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(r=>{try{n.observe({type:r,buffered:!0})}catch{}}),n}const ry=`/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */ 46function t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pen
vendor: 4,281 bytes, line 46
46ding_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>
vendor: 1,327 bytes, line 46
46{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ER
vendor: 10,438 bytes, line 46
46ROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;
46if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>
vendor: 4,506 bytes, line 46
460&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new
vendor: 5,942 bytes, line 46
46Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>
vendor: 11,506 bytes, line 46
46{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;
46if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function iy(){const t=new Blob([ry]);return URL.createObjectURL(t)}function it(t,e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&(y.info(t),e&&Yu(t))}function be(t,e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&(y.info(t),e&&setTimeout(()=>{Yu(t)},0))}function Yu(t){B().addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:t},{level:"info"})}class Os extends Error{constructor(){super(`Event buffer exceeded maximum size of ${ks}.`)}}class Hu{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>ks)throw new Os;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?Ns(e):null}}class sy{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(){it("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,n){const r=this._getAndIncrementId();return new Promise((i,s)=>{const a=({data:o})=>{const c=o;if(c.method===e&&c.id===r){if(this._worker.removeEventListener("message",a),!c.success){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error("[Replay]",c.response),s(new Error("Error in compression worker"));return}i(c.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:r,method:e,arg:n})})}_getAndIncrementId(){return this._id++}}class ay{constructor(e){this._worker=new sy(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()}
46addEvent(e){const n=Ns(e.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>ks?Promise.reject(new Os):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}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 oy{constructor(e){this._fallback=new Hu,this._compression=new ay(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{it("[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 i of e)r.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("[Replay] Failed to add events when switching buffers.",i)}}}function cy({useCompression:t}){if(t&&window.Worker)try{const e=iy();it("[Replay] Using compression worker");const n=new Worker(e);return new oy(n)}catch{it("[Replay] Failed to create compression worker")}return it("[Replay] Using simple buffer"),new Hu}function Ms(){try{return"sessionStorage"in M&&!!M.sessionStorage}catch{return!1}}function uy(t){ly(),t.session=void 0}function ly(){if(Ms())try{M.sessionStorage.removeItem(Cs)}catch{}}function $u(t){return t===void 0?!1:Math.random()<t}function Bs(t){if(Ms())try{M.sessionStorage.setItem(Cs,JSON.stringify(t))}catch{}}function Wu(t){const e=Date.now(),n=t.id||ut(),r=t.started||e,i=t.lastActivity||e,s=t.segmentId||0,a=t.sampled,o=t.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:s,sampled:a,previousSessionId:o}}function dy(t,e){return $u(t)?"session":e?"buffer":!1}function Qa({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const i=dy(t,e),s=Wu({sampled:i,previousSessionId:r});return n&&Bs(s),s}function fy(t){if(!Ms())return null;try{const e=M.sessionStorage.getItem(Cs);if(!e)return null;const n=JSON.parse(e);return be("[Replay] Loading existing session",t),Wu(n)}catch{return null}}function Fi(t,e,n=+new Date){return t===null||e===void 0||e<0?!0:e===0?!1:t+e<=n}function ju(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return Fi(t.started,e,r)||Fi(t.lastActivity,n,r)}function Vu(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!(!ju(t,{sessionIdleExpire:e,maxReplayDuration:n})||t.sampled==="buffer"&&t.segmentId===0)}function Qr({traceInternals:t,sessionIdleExpire:e,maxReplayDuration:n,previousSessionId:r},i){const s=i.stickySession&&fy(t);return s?Vu(s,{sessionIdleExpire:e,maxReplayDuration:n})?(be("[Replay] Session in sessionStorage is expired, creating new one..."),Qa(i,{previousSessionId:s.id})):s:(be("[Replay] Creating new session",t),Qa(i,{previousSessionId:r}))}const hy=5;function py(t){return t.type===A.Custom}function Us(t,e,n){return qu(t,e)?(Zu(t,e,n),!0):!1}function _y(t,e,n){return qu(t,e)?Zu(t,e,n):Promise.resolve(null)}async function Zu(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(),i=my(e,r.beforeAddRecordingEvent);return i?await t.eventBuffer.addEvent(i):void 0}catch(r){const i=r&&r instanceof Os?"addEventSizeExceeded":"addEvent";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error(r),await t.stop({reason:i});const s=B().getClient();s&&s.recordDroppedEvent("internal_sdk_error","replay")}}function qu(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=Ns(e.timestamp);return n+t.timeouts.sessionIdlePause<Date.now()?!1:n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration?(it(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,t.getOptions()._experiments.traceInternals),!1):!0}function my(t,e){try{if(typeof e=="function"&&py(t))return e(t)}catch(n){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return t}function Ku(t){return!t.type}function Gi(t){return t.type==="transaction"}function gy(t){return t.type==="replay_event"}function Ju(t){const e=Ey();return(n,r)=>{if(!t.isEnabled()||!Ku(n)&&!Gi(n))return;const i=r&&r.statusCode;if(!(e&&(!i||i<200||i>=300))){if(Gi(n)){yy(t,n);return}by(t,n)}}}function yy(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 by(t,e){const n=t.getContext();e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),t.recordingMode==="buffer"&&e.tags&&e.tags.replayId&&setTimeout(()=>{t.sendBufferedReplayOrFlush()})}function Ey(){const t=B().getClient();if(!t)return!1;const e=t.getTransport();return e&&e.send.__sentry__baseTransport__||!1}function Sy(t,e){return t.type||!t.exception||!t.exception.values||!t.exception.values.length?!1:e.originalException&&e.originalException.__rrweb__?!0:t.exception.values.some(n=>!n.stacktrace||!n.stacktrace.frames||!n.stacktrace.frames.length?!1:n.stacktrace.frames.some(r=>r.filename&&r.filename.includes("/rrweb/src/")))}function vy(t,e){return t.recordingMode!=="buffer"||e.message===Rs||!e.exception||e.type?!1:$u(t.getOptions().errorSampleRate)}function wy(t,e=!1){const n=e?Ju(t):void 0;return Object.assign((r,i)=>t.isEnabled()?gy(r)?(delete r.breadcrumbs,r):!Ku(r)&&!Gi(r)||!t.checkAndHandleExpiredSession()?r:Sy(r,i)&&!t.getOptions()._experiments.captureExceptions?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Replay] Ignoring error from rrweb internals",r),null):((vy(t,r)||t.recordingMode==="session")&&(r.tags={...r.tags,replayId:t.getSessionId()}),n&&n(r,{statusCode:200}),r):r,{id:"Replay"})}function Mr(t,e){return e.map(({type:n,start:r,end:i,name:s,data:a})=>{const o=t.throttledAddEvent({type:A.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:s,startTimestamp:r,endTimestamp:i,data:a}}});
46return typeof o=="string"?Promise.resolve(null):o})}function Iy(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 Ty(t){return e=>{if(!t.isEnabled())return;const n=Iy(e);n!==null&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(Mr(t,[n]),!1)))}}function Cy(t,e){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&t.getOptions()._experiments.traceInternals?!1:n_(e,B())}function Br(t,e){t.isEnabled()&&e!==null&&(Cy(t,e.name)||t.addUpdate(()=>(Mr(t,[e]),!0)))}function Ry(t){const{startTimestamp:e,endTimestamp:n,fetchData:r,response:i}=t;if(!n)return null;const{method:s,url:a}=r;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:a,data:{method:s,statusCode:i?i.status:void 0}}}function ky(t){return e=>{if(!t.isEnabled())return;const n=Ry(e);Br(t,n)}}function Ay(t){const{startTimestamp:e,endTimestamp:n,xhr:r}=t,i=r[zt];if(!e||!n||!i)return null;const{method:s,url:a,status_code:o}=i;return a===void 0?null:{type:"resource.xhr",name:a,start:e/1e3,end:n/1e3,data:{method:s,statusCode:o}}}function xy(t){return e=>{if(!t.isEnabled())return;const n=Ay(e);Br(t,n)}}const Yt=10,Ls=11,Pi=12,Bt=13,zi=14,Ae=15,Dt=20,_t=21,Yi=22,xe=23,Xu=["true","false","null"];function Ny(t,e){if(!e.length)return t;let n=t;const r=e.length-1,i=e[r];n=Dy(n,i);for(let s=r;s>=0;s--)switch(e[s]){case Yt:n=`${n}}`;break;case Dt:n=`${n}]`;break}return n}function Dy(t,e){switch(e){case Yt:return`${t}"~~":"~~"`;case Ls:return`${t}:"~~"`;case Pi:return`${t}~~":"~~"`;case Bt:return By(t);case zi:return`${t}~~"`;case Ae:return`${t},"~~":"~~"`;case Dt:return`${t}"~~"`;case _t:return Oy(t);case Yi:return`${t}~~"`;case xe:return`${t},"~~"`}return t}function Oy(t){const e=My(t);if(e>-1){const n=t.slice(e+1);return Xu.includes(n.trim())?`${t},"~~"`:`${t.slice(0,e+1)}"~~"`}return t}function My(t){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n===","||n==="[")return e}return-1}function By(t){const e=t.lastIndexOf(":"),n=t.slice(e+1);return Xu.includes(n.trim())?`${t},"~~":"~~"`:`${t.slice(0,e+1)}"~~"`}function Uy(t){const e=[];for(let n=0;n<t.length;n++)Ly(e,t,n);return e}function Ly(t,e,n){const r=t[t.length-1],i=e[n];if(!/\s/.test(i)){if(i==='"'&&!Qu(e,n)){Fy(t,r);return}switch(i){case"{":Gy(t,r);break;case"[":Py(t,r);break;case":":zy(t,r);break;case",":Yy(t,r);break;case"}":Hy(t,r);break;case"]":$y(t,r);break}}}function Fy(t,e){if(e===zi){t.pop(),t.push(Ae);return}if(e===Yi){t.pop(),t.push(xe);return}if(e===Bt){t.push(zi);return}if(e===_t){t.push(Yi);return}if(e===Yt){t.push(Pi);return}if(e===Pi){t.pop(),t.push(Ls);return}}function Gy(t,e){if(!e){t.push(Yt);return}if(e===Bt){t.push(Yt);return}if(e===_t&&t.push(Yt),e===Dt){t.push(Yt);return}}function Py(t,e){if(!e){t.push(Dt),t.push(_t);return}if(e===Bt){t.push(Dt),t.push(_t);return}if(e===_t&&(t.push(Dt),t.push(_t)),e===Dt){t.push(Dt),t.push(_t);return}}function zy(t,e){e===Ls&&(t.pop(),t.push(Bt))}function Yy(t,e){if(e===Bt){t.pop();return}if(e===Ae){t.pop(),t.pop();return}if(e!==_t&&e===xe){t.pop();return}}function Hy(t,e){e===Yt&&t.pop(),e===Bt&&(t.pop(),t.pop()),e===Ae&&(t.pop(),t.pop(),t.pop()),t[t.length-1]===Bt&&t.push(Ae),t[t.length-1]===_t&&t.push(xe)}function $y(t,e){e===Dt&&t.pop(),e===_t&&(t.pop(),t.pop()),e===xe&&(t.pop(),t.pop(),t.pop()),t[t.length-1]===Bt&&t.push(Ae),t[t.length-1]===_t&&t.push(xe)}function Qu(t,e){return t[e-1]==="\\"&&!Qu(t,e-1)}function tl(t){const e=Uy(t);return Ny(t,e)}function rr(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=il(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function el(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function nl(t){if(typeof t=="string")return t;if(t instanceof URLSearchParams)return t.toString();if(t instanceof FormData)return il(t)}function rl(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:a,request:o,response:c}=e;return{type:t,start:n/1e3,end:r/1e3,name:i,data:kt({method:s,statusCode:a,request:o,response:c})}}function cn(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function Ht(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:i,warnings:s}=Wy(n);return r.body=i,s.length>0&&(r._meta={warnings:s}),r}function Hi(t,e){return Object.keys(t).reduce((n,r)=>{const i=r.toLowerCase();return e.includes(i)&&t[r]&&(n[i]=t[r]),n},{})}function il(t){return new URLSearchParams(t).toString()}function Wy(t){if(!t||typeof t!="string")return{body:t,warnings:[]};const e=t.length>xn;if(jy(t))try{const n=e?tl(t.slice(0,xn)):t;return{body:JSON.parse(n),warnings:e?["JSON_TRUNCATED"]:[]}}catch{return{body:e?`${t.slice(0,xn)}â¦`:t,warnings:e?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:e?`${t.slice(0,xn)}â¦`:t,warnings:e?["TEXT_TRUNCATED"]:[]}}function jy(t){const e=t[0],n=t[t.length-1];return e==="["&&n==="]"||e==="{"&&n==="}"}function ir(t,e){const n=Vy(t);return Ue(n,e)}function Vy(t,e=M.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(M.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 Zy(t,e,n){try{const r=await Ky(t,e,n),i=rl("resource.fetch",r);
46Br(n.replay,i)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error("[Replay] Failed to capture fetch breadcrumb",r)}}function qy(t,e,n){const{input:r,response:i}=e,s=sl(r),a=rr(s,n.textEncoder),o=i?el(i.headers.get("content-length")):void 0;a!==void 0&&(t.data.request_body_size=a),o!==void 0&&(t.data.response_body_size=o)}async function Ky(t,e,n){const{startTimestamp:r,endTimestamp:i}=e,{url:s,method:a,status_code:o=0,request_body_size:c,response_body_size:u}=t.data,l=ir(s,n.networkDetailAllowUrls)&&!ir(s,n.networkDetailDenyUrls),d=l?Jy(n,e.input,c):cn(c),f=await Xy(l,n,e.response,u);return{startTimestamp:r,endTimestamp:i,url:s,method:a,statusCode:o,request:d,response:f}}function Jy({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const i=tb(n,e);if(!t)return Ht(i,r,void 0);const s=sl(n),a=nl(s);return Ht(i,r,a)}async function Xy(t,{networkCaptureBodies:e,textEncoder:n,networkResponseHeaders:r},i,s){if(!t&&s!==void 0)return cn(s);const a=al(i.headers,r);if(!e&&s!==void 0)return Ht(a,s,void 0);try{const o=i.clone(),c=await Qy(o),u=c&&c.length&&s===void 0?rr(c,n):s;return t?e?Ht(a,u,c):Ht(a,u,void 0):cn(u)}catch{return Ht(a,s,void 0)}}async function Qy(t){try{return await t.text()}catch{return}}function sl(t=[]){if(!(t.length!==2||typeof t[1]!="object"))return t[1].body}function al(t,e){const n={};return e.forEach(r=>{t.get(r)&&(n[r]=t.get(r))}),n}function tb(t,e){return t.length===1&&typeof t[0]!="string"?to(t[0],e):t.length===2?to(t[1],e):{}}function to(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?al(n,e):Array.isArray(n)?{}:Hi(n,e):{}}async function eb(t,e,n){try{const r=rb(t,e,n),i=rl("resource.xhr",r);Br(n.replay,i)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error("[Replay] Failed to capture fetch breadcrumb",r)}}function nb(t,e,n){const{xhr:r,input:i}=e,s=rr(i,n.textEncoder),a=r.getResponseHeader("content-length")?el(r.getResponseHeader("content-length")):rr(r.response,n.textEncoder);s!==void 0&&(t.data.request_body_size=s),a!==void 0&&(t.data.response_body_size=a)}function rb(t,e,n){const{startTimestamp:r,endTimestamp:i,input:s,xhr:a}=e,{url:o,method:c,status_code:u=0,request_body_size:l,response_body_size:d}=t.data;if(!o)return null;if(!ir(o,n.networkDetailAllowUrls)||ir(o,n.networkDetailDenyUrls)){const E=cn(l),S=cn(d);return{startTimestamp:r,endTimestamp:i,url:o,method:c,statusCode:u,request:E,response:S}}const f=a[zt],h=f?Hi(f.request_headers,n.networkRequestHeaders):{},_=Hi(ib(a),n.networkResponseHeaders),p=Ht(h,l,n.networkCaptureBodies?nl(s):void 0),g=Ht(_,d,n.networkCaptureBodies?e.xhr.responseText:void 0);return{startTimestamp:r,endTimestamp:i,url:o,method:c,statusCode:u,request:p,response:g}}function ib(t){const e=t.getAllResponseHeaders();return e?e.split(`\r 47`).reduce((n,r)=>{const[i,s]=r.split(": ");return n[i.toLowerCase()]=s,n},{}):{}}function sb(t){const e=B().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:s,networkRequestHeaders:a,networkResponseHeaders:o}=t.getOptions(),c={replay:t,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:s,networkRequestHeaders:a,networkResponseHeaders:o};e&&e.on?e.on("beforeAddBreadcrumb",(u,l)=>ab(c,u,l)):(rt("fetch",ky(t)),rt("xhr",xy(t)))}catch{}}function ab(t,e,n){if(e.data)try{ob(e)&&ub(n)&&(nb(e,n,t),eb(e,n,t)),cb(e)&&lb(n)&&(qy(e,n,t),Zy(e,n,t))}catch{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("Error when enriching network breadcrumb")}}function ob(t){return t.category==="xhr"}function cb(t){return t.category==="fetch"}function ub(t){return t&&t.xhr}function lb(t){return t&&t.response}let eo=null;function db(t){return!!t.category}const fb=t=>e=>{if(!t.isEnabled())return;const n=hb(e);n&&Or(t,n)};function hb(t){const e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return eo===e||!e||(eo=e,!db(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))?null:e.category==="console"?pb(e):Ot(e)}function pb(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||e.length===0)return Ot(t);let n=!1;const r=e.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>Nn?(n=!0,`${i.slice(0,Nn)}â¦`):i;if(typeof i=="object")try{const s=Ct(i,7),a=JSON.stringify(s);if(a.length>Nn){const o=tl(a.slice(0,Nn)),c=JSON.parse(o);return n=!0,c}return s}catch{}return i});return Ot({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function _b(t){const e=B().getScope(),n=B().getClient();e.addScopeListener(fb(t)),rt("dom",Vg(t)),rt("history",Ty(t)),sb(t);const r=wy(t,!no(n));n&&n.addEventProcessor?n.addEventProcessor(r):Qc(r),no(n)&&(n.on("afterSendEvent",Ju(t)),n.on("createDsc",i=>{const s=t.getSessionId();s&&t.isEnabled()&&t.recordingMode==="session"&&(i.replay_id=s)}),n.on("startTransaction",i=>{t.lastTransaction=i}),n.on("finishTransaction",i=>{t.lastTransaction=i}))}function no(t){return!!(t&&t.on)}async function mb(t){try{return Promise.all(Mr(t,[gb(M.performance.memory)]))}catch{return[]}}function gb(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}
47const ro={resource:vb,paint:Eb,navigation:Sb,["largest-contentful-paint"]:wb};function yb(t){return t.map(bb).filter(Boolean)}function bb(t){return ro[t.entryType]===void 0?null:ro[t.entryType](t)}function Ne(t){return((St||M.performance.timeOrigin)+t)/1e3}function Eb(t){const{duration:e,entryType:n,name:r,startTime:i}=t,s=Ne(i);return{type:n,name:r,start:s,end:s+e,data:void 0}}function Sb(t){const{entryType:e,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:a,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:f,startTime:h,transferSize:_,type:p}=t;return i===0?null:{type:`${e}.${p}`,start:Ne(h),end:Ne(s),name:n,data:{size:_,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:u,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:s,redirectCount:f}}}function vb(t){const{entryType:e,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:a,encodedBodySize:o,responseStatus:c,transferSize:u}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:Ne(s),end:Ne(i),name:r,data:{size:u,statusCode:c,decodedBodySize:a,encodedBodySize:o}}}function wb(t){const{entryType:e,startTime:n,size:r}=t;let i=0;if(M.performance){const o=M.performance.getEntriesByType("navigation")[0];i=o&&o.activationStart||0}const s=Math.max(n-i,0),a=Ne(i)+s/1e3;return{type:e,name:e,start:a,end:a,data:{value:s,size:r,nodeId:At.mirror.getId(t.element)}}}function Ib(t,e,n){let r,i,s;const a=n&&n.maxWait?Math.max(n.maxWait,e):0;function o(){return c(),r=t(),r}function c(){i!==void 0&&clearTimeout(i),s!==void 0&&clearTimeout(s),i=s=void 0}function u(){return i!==void 0||s!==void 0?o():r}function l(){return i&&clearTimeout(i),i=setTimeout(o,e),a&&s===void 0&&(s=setTimeout(o,a)),r}return l.cancel=c,l.flush=u,l}function Tb(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("[Replay] Received replay event after session expired.");return}const i=r||!e;e=!0,t.addUpdate(()=>{if(t.recordingMode==="buffer"&&i&&t.setInitialState(),!Us(t,n,i))return!0;if(!i)return!1;if(Rb(t,i),t.session&&t.session.previousSessionId)return!0;if(t.recordingMode==="buffer"&&t.session&&t.eventBuffer){const s=t.eventBuffer.getEarliestTimestamp();s&&(it(`[Replay] Updating session start time to earliest event in buffer to ${new Date(s)}`,t.getOptions()._experiments.traceInternals),t.session.started=s,t.getOptions().stickySession&&Bs(t.session))}return t.recordingMode==="session"&&t.flush(),!0})}}function Cb(t){const e=t.getOptions();return{type:A.Custom,timestamp:Date.now(),data:{tag:"options",payload:{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 Rb(t,e){!e||!t.session||t.session.segmentId!==0||Us(t,Cb(t),!1)}function kb(t,e,n,r){return Le(Xc(t,gs(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:typeof e=="string"?new TextEncoder().encode(e).length:e.length},e]])}function Ab({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)} 48`;if(typeof t=="string")n=`${r}${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 xb({client:t,scope:e,replayId:n,event:r}){const i=typeof t._integrations=="object"&&t._integrations!==null&&!Array.isArray(t._integrations)?Object.keys(t._integrations):void 0,s={event_id:n,integrations:i};t.emit&&t.emit("preprocessEvent",r,s);const a=await ou(t.getOptions(),r,s,e,t);if(!a)return null;a.platform=a.platform||"javascript";const o=t.getSdkMetadata&&t.getSdkMetadata(),{name:c,version:u}=o&&o.sdk||{};return a.sdk={...a.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},a}async function Nb({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:i,session:s}){const a=Ab({recordingData:t,headers:{segment_id:n}}),{urls:o,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=B(),f=d.getClient(),h=d.getScope(),_=f&&f.getTransport(),p=f&&f.getDsn();if(!f||!_||!p||!s.sampled)return;
48const g={type:cm,replay_start_timestamp:l/1e3,timestamp:i/1e3,error_ids:c,trace_ids:u,urls:o,replay_id:e,segment_id:n,replay_type:s.sampled},E=await xb({scope:h,client:f,replayId:e,event:g});if(!E){f.recordDroppedEvent("event_processor","replay",g),it("An event processor returned `null`, will not send event.");return}delete E.sdkProcessingMetadata;const S=kb(E,a,p,f.getOptions().tunnel);let I;try{I=await _.send(S)}catch(T){const C=new Error(Rs);try{C.cause=T}catch{}throw C}if(!I)return I;if(typeof I.statusCode=="number"&&(I.statusCode<200||I.statusCode>=300))throw new ol(I.statusCode);return I}class ol extends Error{constructor(e){super(`Transport returned status code ${e}`)}}async function cl(t,e={count:0,interval:pm}){const{recordingData:n,options:r}=t;if(n.length)try{return await Nb(t),!0}catch(i){if(i instanceof ol)throw i;if(Sp("Replays",{_retryCount:e.count}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&r._experiments&&r._experiments.captureExceptions&&vs(i),e.count>=_m){const s=new Error(`${Rs} - max retries exceeded`);try{s.cause=i}catch{}throw s}return e.interval*=++e.count,new Promise((s,a)=>{setTimeout(async()=>{try{await cl(t,e),s(!0)}catch(o){a(o)}},e.interval)})}}const ul="__THROTTLED",Db="__SKIPPED";function Ob(t,e,n){const r=new Map,i=o=>{const c=o-n;r.forEach((u,l)=>{l<c&&r.delete(l)})},s=()=>[...r.values()].reduce((o,c)=>o+c,0);let a=!1;return(...o)=>{const c=Math.floor(Date.now()/1e3);if(i(c),s()>=e){const l=a;return a=!0,l?Db:ul}a=!1;const u=r.get(c)||0;return r.set(c,u+1),t(...o)}}class Ft{constructor({options:e,recordingOptions:n}){Ft.prototype.__init.call(this),Ft.prototype.__init2.call(this),Ft.prototype.__init3.call(this),Ft.prototype.__init4.call(this),Ft.prototype.__init5.call(this),Ft.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEvents=[],this.recordingMode="session",this.timeouts={sessionIdlePause:um,sessionIdleExpire:lm},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=Ib(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Ob((a,o)=>_y(this,a,o),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),s=r?{threshold:Math.min(mm,r),timeout:r,scrollTimeout:gm,ignoreSelector:i?i.join(","):""}:void 0;s&&(this.clickDetector=new zg(this,s))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:n,sessionSampleRate:r}=this._options;if(!(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",be(`[Replay] Starting replay in ${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");be("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const e=Qr({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");be("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Qr({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{this._stopRecording=At({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:hm},emit:Tb(this),onMutation:this._onMutationHandler})}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{it(`[Replay] Stopping Replay${n?` triggered by ${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,uy(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),it("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),it("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();
48it("[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&&Fi(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const e=`${M.location.pathname}${M.location.hash}${M.location.search}`,n=`${M.location.origin}${e}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(e,n){const r=this._throttledAddEvent(e,n);if(r===ul){const i=Ot({category:"replay.throttled"});this.addUpdate(()=>!Us(this,{type:hy,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const e=this.lastTransaction||B().getScope().getTransaction();if(!(!e||!["route","custom"].includes(e.metadata.source)))return e.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=cy({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error("[Replay]",e),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&vs(e)}_initializeSessionForSampling(e){const n=this._options.errorSampleRate>0,r=Qr({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 Vu(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{M.document.addEventListener("visibilitychange",this._handleVisibilityChange),M.addEventListener("blur",this._handleWindowBlur),M.addEventListener("focus",this._handleWindowFocus),M.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(_b(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}"PerformanceObserver"in M&&(this._performanceObserver=ny(this))}_removeListeners(){try{M.document.removeEventListener("visibilitychange",this._handleVisibilityChange),M.removeEventListener("blur",this._handleWindowBlur),M.removeEventListener("focus",this._handleWindowFocus),M.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=void 0)}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{M.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
48dTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Ot({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Ot({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Jg(this,e)}}_doChangeToBackgroundTasks(e){!this.session||ju(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){it("[Replay] Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}_triggerFullSnapshot(e=!0){try{it("[Replay] Taking full rrweb snapshot"),At.takeFullSnapshot(e)}catch(n){this._handleException(n)}}_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=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(Mr(this,yb(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();r&&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){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await mb(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(),i=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await cl({replayId:e,recordingData:s,segmentId:i,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});const r=B().getClient();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error("[Replay] No session found to flush.");return}const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const s=i<this._options.minReplayDuration,a=i>this._options.maxReplayDuration+5e3;if(s||a){it(`[Replay] Session duration (${Math.floor(i/1e3)}s) is too ${s?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),s&&this._debouncedFlush();return}const o=this.eventBuffer;if(o&&this.session.segmentId===0&&!o.hasCheckout&&it("[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(c){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.error(c)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Bs(this.session)}__init6(){this._onMutationHandler=e=>{const n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=r&&n>r;if(n>i||s){const a=Ot({category:"replay.mutations",data:{count:n,limit:s}});this._createCustomBreadcrumb(a)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function $e(t,e,n,r){const i=typeof r=="string"?r.split(","):[],s=[...t,...i,...e];return typeof n<"u"&&(typeof n=="string"&&s.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),s.join(",")}function Mb({mask:t,unmask:e,block:n,unblock:r,ignore:i,blockClass:s,blockSelector:a,maskTextClass:o,maskTextSelector:c,ignoreClass:u}){const l=['base[href="/"]'],d=$e(t,[".sentry-mask","[data-sentry-mask]"],o,c),f=$e(e,[".sentry-unmask","[data-sentry-unmask]"]),h={maskTextSelector:d,unmaskTextSelector:f,blockSelector:$e(n,[".sentry-block","[data-sentry-block]",...l],s,a),unblockSelector:$e(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:$e(i,[".sentry-ignore","[data-sentry-ignore]",'
48input[type="file"]'],u)};return s instanceof RegExp&&(h.blockClass=s),o instanceof RegExp&&(h.maskTextClass=o),h}function io(){return typeof window<"u"&&(!Zc()||Bb())}function Bb(){return typeof process<"u"&&process.type==="renderer"}function Ub({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){return!r||i.unmaskTextSelector&&t.matches(i.unmaskTextSelector)?s:n.includes(e)||e==="value"&&t.tagName==="INPUT"&&["submit","button"].includes(t.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s}const so='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Lb=["content-length","content-type","accept"];let ao=!1;class Ur{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=dm,flushMaxDelay:n=fm,minReplayDuration:r=ym,maxReplayDuration:i=Fa,stickySession:s=!0,useCompression:a=!0,_experiments:o={},sessionSampleRate:c,errorSampleRate:u,maskAllText:l=!0,maskAllInputs:d=!0,blockAllMedia:f=!0,mutationBreadcrumbLimit:h=750,mutationLimit:_=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:E=[],networkDetailDenyUrls:S=[],networkCaptureBodies:I=!0,networkRequestHeaders:T=[],networkResponseHeaders:C=[],mask:m=[],maskAttributes:b=["title","placeholder"],unmask:w=[],block:N=[],unblock:v=[],ignore:R=[],maskFn:U,beforeAddRecordingEvent:j,blockClass:K,blockSelector:J,maskInputOptions:D,maskTextClass:ft,maskTextSelector:W,ignoreClass:ht}={}){this.name=Ur.id;const pt=Mb({mask:m,unmask:w,block:N,unblock:v,ignore:R,blockClass:K,blockSelector:J,maskTextClass:ft,maskTextSelector:W,ignoreClass:ht});if(this._recordingOptions={maskAllInputs:d,maskAllText:l,maskInputOptions:{...D||{},password:!0},maskTextFn:U,maskInputFn:U,maskAttributeFn:(qt,Kt,Pe)=>Ub({maskAttributes:b,maskAllText:l,privacyOptions:pt,key:qt,value:Kt,el:Pe}),...pt,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:qt=>{try{qt.__rrweb__=!0}catch{}return!0}},this._initialOptions={flushMinDelay:e,flushMaxDelay:n,minReplayDuration:Math.min(r,bm),maxReplayDuration:Math.min(i,Fa),stickySession:s,sessionSampleRate:c,errorSampleRate:u,useCompression:a,blockAllMedia:f,maskAllInputs:d,maskAllText:l,mutationBreadcrumbLimit:h,mutationLimit:_,slowClickTimeout:p,slowClickIgnoreSelectors:g,networkDetailAllowUrls:E,networkDetailDenyUrls:S,networkCaptureBodies:I,networkRequestHeaders:oo(T),networkResponseHeaders:oo(C),beforeAddRecordingEvent:j,_experiments:o},typeof c=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. 49This option is deprecated and will be removed soon. 50Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.: 51Sentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),typeof u=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration. 52This option is deprecated and will be removed soon. 53Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.: 54Sentry.init({ replaysOnErrorSampleRate: ${u} })`),this._initialOptions.errorSampleRate=u),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${so}`:so),this._isInitialized&&io())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ao}set _isInitialized(e){ao=e}setupOnce(){io()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){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._replay.initializeSampling()}_setup(){const e=Fb(this._initialOptions);this._replay=new Ft({options:e,recordingOptions:this._recordingOptions})}}Ur.__initStatic();function Fb(t){const e=B().getClient(),n=e&&e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...kt(t)};return n?(t.sessionSampleRate==null&&t.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&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):(console.warn("SDK client is not available."),r)}function oo(t){return[...Lb,...t.map(e=>e.toLowerCase())]}const F=Z;function Gb(){F&&F.document?F.document.addEventListener("visibilitychange",()=>{const t=_n();if(F.document.hidden&&t){const e="cancelled";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Fs=(t,e,n)=>{let r,i;return s=>{e.value>=0&&(s||n)&&(i=e.value-(r||0),(i||r===void 0)&&(r=e.value,e.delta=i,t(e)))}},Pb=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,zb=()=>{const t=F.performance.timing,e=F.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},ll=()=>F.__WEB_VITALS_POLYFILL__?F.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||zb()):F.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],dl=()=>{const t=ll();return t&&t.activationStart||0},Gs=(t,e)=>{const n=ll();let r="navigate";return n&&(F.document.prerendering||dl()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:Pb(),navigationType:r}},gn=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(i=>{e(i.getEntries())});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},Lr=(t,e)=>{const n=r=>{(r.type==="pagehide"||F.document.visibilityState==="hidden")&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Yb=t=>{const e=Gs("CLS",0);let n,r=0,i=[];const s=o=>{o.forEach(c=>{if(!c.hadRecentInput){const u=i[0],l=i[i.length-1];r&&i.length!==0&&c.startTime-l.startTime<1e3&&c.startTime-u.startTime<5e3?(r+=c.value,i.push(c)):(r=c.value,i=[c]),r>e.value&&(e.value=r,e.entries=i,n&&n())}})},a=gn("layout-shift",s);if(a){n=Fs(t,e);const o=()=>{s(a.takeRecords()),n(!0)};return Lr(o),o}};let Yn=-1;const Hb=()=>F.document.visibilityState==="hidden"&&!F.document.prerendering?0:1/0,$b=()=>{Lr(({timeStamp:t})=>{Yn=t},!0)},Ps=()=>(Yn<0&&(Yn=Hb(),$b()),{get firstHiddenTime(){return Yn}}),Wb=t=>{const e=Ps(),n=Gs("FID");let r;const i=o=>{o.startTime<e.firstHiddenTime&&(n.value=o.processingStart-o.startTime,n.entr
54ies.push(o),r(!0))},s=o=>{o.forEach(i)},a=gn("first-input",s);r=Fs(t,n),a&&Lr(()=>{s(a.takeRecords()),a.disconnect()},!0)},co={},jb=t=>{const e=Ps(),n=Gs("LCP");let r;const i=a=>{const o=a[a.length-1];if(o){const c=Math.max(o.startTime-dl(),0);c<e.firstHiddenTime&&(n.value=c,n.entries=[o],r())}},s=gn("largest-contentful-paint",i);if(s){r=Fs(t,n);const a=()=>{co[n.id]||(i(s.takeRecords()),s.disconnect(),co[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{addEventListener(o,a,{once:!0,capture:!0})}),Lr(a,!0),a}};function ti(t){return typeof t=="number"&&isFinite(t)}function De(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function Q(t){return t/1e3}function fl(){return F&&F.addEventListener&&F.performance}let uo=0,$={},It,en;function Vb(){const t=fl();if(t&&St){t.mark&&F.performance.mark("sentry-tracing-init"),Xb();const e=Kb(),n=Jb();return()=>{e&&e(),n&&n()}}return()=>{}}function Zb(){gn("longtask",e=>{for(const n of e){const r=_n();if(!r)return;const i=Q(St+n.startTime),s=Q(n.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:i,endTimestamp:i+s})}})}function qb(){gn("event",e=>{for(const n of e){const r=_n();if(!r)return;if(n.name==="click"){const i=Q(St+n.startTime),s=Q(n.duration);r.startChild({description:Vt(n.target),op:`ui.interaction.${n.name}`,origin:"auto.ui.browser.metrics",startTimestamp:i,endTimestamp:i+s})}}},{durationThreshold:0})}function Kb(){return Yb(t=>{const e=t.entries.pop();e&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Measurements] Adding CLS"),$.cls={value:t.value,unit:""},en=e)})}function Jb(){return jb(t=>{const e=t.entries.pop();e&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Measurements] Adding LCP"),$.lcp={value:t.value,unit:"millisecond"},It=e)})}function Xb(){Wb(t=>{const e=t.entries.pop();if(!e)return;const n=Q(St),r=Q(e.startTime);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Measurements] Adding FID"),$.fid={value:t.value,unit:"millisecond"},$["mark.fid"]={value:n+r,unit:"second"}})}function Qb(t){const e=fl();if(!e||!F.performance.getEntries||!St)return;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Tracing] Adding & adjusting spans using Performance API");const n=Q(St),r=e.getEntries();let i,s;
54if(r.slice(uo).forEach(a=>{const o=Q(a.startTime),c=Q(a.duration);if(!(t.op==="navigation"&&n+o<t.startTimestamp))switch(a.entryType){case"navigation":{eE(t,a,n),i=n+Q(a.responseStart),s=n+Q(a.requestStart);break}case"mark":case"paint":case"measure":{tE(t,a,o,c,n);const u=Ps(),l=a.startTime<u.firstHiddenTime;a.name==="first-paint"&&l&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Measurements] Adding FP"),$.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&l&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Measurements] Adding FCP"),$.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{const u=a.name.replace(F.location.origin,"");rE(t,a,u,o,c,n);break}}}),uo=Math.max(r.length-1,0),iE(t),t.op==="pageload"){typeof i=="number"&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Measurements] Adding TTFB"),$.ttfb={value:(i-t.startTimestamp)*1e3,unit:"millisecond"},typeof s=="number"&&s<=i&&($["ttfb.requestTime"]={value:(i-s)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(o=>{if(!$[o]||n>=t.startTimestamp)return;const c=$[o].value,u=n+Q(c),l=Math.abs((u-t.startTimestamp)*1e3),d=l-c;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`[Measurements] Normalized ${o} from ${c} to ${l} (${d})`),$[o].value=l});const a=$["mark.fid"];a&&$.fid&&(De(t,{description:"first input delay",endTimestamp:a.value+Q($.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:a.value}),delete $["mark.fid"]),"fcp"in $||delete $.cls,Object.keys($).forEach(o=>{t.setMeasurement(o,$[o].value,$[o].unit)}),sE(t)}It=void 0,en=void 0,$={}}function tE(t,e,n,r,i){const s=i+n,a=s+r;return De(t,{description:e.name,endTimestamp:a,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s}),s}function eE(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Un(t,e,r,n)}),Un(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Un(t,e,"fetch",n,"cache","domainLookupStart"),Un(t,e,"domainLookup",n,"DNS"),nE(t,e,n)}function Un(t,e,n,r,i,s){const a=s?e[s]:e[`${n}End`],o=e[`${n}Start`];!o||!a||De(t,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+Q(o),endTimestamp:r+Q(a)})}function nE(t,e,n){De(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Q(e.requestStart),endTimestamp:n+Q(e.responseEnd)}),De(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Q(e.responseStart),endTimestamp:n+Q(e.responseEnd)})}function rE(t,e,n,r,i,s){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const a={};"transferSize"in e&&(a["http.response_transfer_size"]=e.transferSize),"encodedBodySize"in e&&(a["http.response_content_length"]=e.encodedBodySize),"decodedBodySize"in e&&(a["http.decoded_response_content_length"]=e.decodedBodySize),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus);const o=s+r,c=o+i;De(t,{description:n,endTimestamp:c,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:o,data:a})}function iE(t){const e=F.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),ti(n.rtt)&&($["connection.rtt"]={value:n.rtt,unit:"millisecond"})),ti(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),ti(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function sE(t){It&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Measurements] Adding LCP Data"),It.element&&t.setTag("lcp.element",Vt(It.element)),It.id&&t.setTag("lcp.id",It.id),It.url&&t.setTag("lcp.url",It.url.trim().slice(0,200)),t.setTag("lcp.size",It.size)),en&&en.sources&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log("[Measurements] Adding CLS Data"),en.sources.forEach((e,n)=>t.setTag(`cls.source.${n+1}`,Vt(e.node))))}const $i=["localhost",/^\/(?!\/)/],Wi={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:$i,tracePropagationTargets:$i};function aE(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:a}={traceFetch:Wi.traceFetch,traceXHR:Wi.traceXHR,...t},o=typeof s=="function"?s:l=>
54!0,c=l=>lE(l,r||i),u={};e&&rt("fetch",l=>{const d=dE(l,o,c,u);a&&d&&lo(d)}),n&&rt("xhr",l=>{const d=hE(l,o,c,u);a&&d&&lo(d)})}function oE(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function lo(t){const e=t.data.url,n=new PerformanceObserver(r=>{r.getEntries().forEach(s=>{oE(s)&&s.name.endsWith(e)&&(uE(s).forEach(o=>t.setData(...o)),n.disconnect())})});n.observe({entryTypes:["resource"]})}function cE(t){let e="unknown",n="unknown",r="";for(const i of t){if(i==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=i}return r===t&&(e=r),{name:e,version:n}}function wt(t=0){return((St||performance.timeOrigin)+t)/1e3}function uE(t){const{name:e,version:n}=cE(t.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",e]),St?[...r,["http.request.redirect_start",wt(t.redirectStart)],["http.request.fetch_start",wt(t.fetchStart)],["http.request.domain_lookup_start",wt(t.domainLookupStart)],["http.request.domain_lookup_end",wt(t.domainLookupEnd)],["http.request.connect_start",wt(t.connectStart)],["http.request.secure_connection_start",wt(t.secureConnectionStart)],["http.request.connection_end",
54wt(t.connectEnd)],["http.request.request_start",wt(t.requestStart)],["http.request.response_start",wt(t.responseStart)],["http.request.response_end",wt(t.responseEnd)]]:r}function lE(t,e){return Ue(t,e||$i)}function dE(t,e,n,r){if(!Es()||!t.fetchData)return;const i=e(t.fetchData.url);if(t.endTimestamp&&i){const f=t.fetchData.__span;if(!f)return;const h=r[f];if(h){if(t.response){h.setHttpStatus(t.response.status);const _=t.response&&t.response.headers&&t.response.headers.get("content-length"),p=parseInt(_);p>0&&h.setData("http.response_content_length",p)}else t.error&&h.setStatus("internal_error");h.finish(),delete r[f]}return}const s=B(),a=s.getScope(),o=s.getClient(),c=a.getSpan(),{method:u,url:l}=t.fetchData,d=i&&c?c.startChild({data:{url:l,type:"fetch","http.method":u},description:`${u} ${l}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(d&&(t.fetchData.__span=d.spanId,r[d.spanId]=d),n(t.fetchData.url)&&o){const f=t.args[0];t.args[1]=t.args[1]||{};const h=t.args[1];h.headers=fE(f,o,a,h,d)}return d}function fE(t,e,n,r,i){const s=i||n.getSpan(),a=s&&s.transaction,{traceId:o,sampled:c,dsc:u}=n.getPropagationContext(),l=s?s.toTraceparent():ms(o,void 0,c),d=a?a.getDynamicSamplingContext():u||vr(o,e,n),f=ki(d),h=typeof Request<"u"&&Mt(t,Request)?t.headers:r.headers;if(h)if(typeof Headers<"u"&&Mt(h,Headers)){const _=new Headers(h);return _.append("sentry-trace",l),f&&_.append(Ri,f),_}else if(Array.isArray(h)){const _=[...h,["sentry-trace",l]];return f&&_.push([Ri,f]),_}else{const _="baggage"in h?h.baggage:void 0,p=[];return Array.isArray(_)?p.push(..._):_&&p.push(_),f&&p.push(f),{...h,"sentry-trace":l,baggage:p.length>0?p.join(","):void 0}}else return{"sentry-trace":l,baggage:f}}function hE(t,e,n,r){const i=t.xhr,s=i&&i[zt];if(!Es()||i&&i.__sentry_own_request__||!i||!s)return;const a=e(s.url);if(t.endTimestamp&&a){const d=i.__sentry_xhr_span_id__;if(!d)return;const f=r[d];f&&(f.setHttpStatus(s.status_code),f.finish(),delete r[d]);return}const o=B(),c=o.getScope(),u=c.getSpan(),l=a&&u?u.startChild({data:{...s.data,type:"xhr","http.method":s.method,url:s.url},description:`${s.method} ${s.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(l&&(i.__sentry_xhr_span_id__=l.spanId,r[i.__sentry_xhr_span_id__]=l),i.setRequestHeader&&n(s.url))if(l){const d=l&&l.transaction,f=d&&d.getDynamicSamplingContext(),h=ki(f);fo(i,l.toTraceparent(),h)}else{const d=o.getClient(),{traceId:f,sampled:h,dsc:_}=c.getPropagationContext(),p=ms(f,void 0,h),g=_||(d?vr(f,d,c):void 0),E=ki(g);fo(i,p,E)}return l}function fo(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(Ri,n)}catch{}}function pE(t,e=!0,n=!0){if(!F||!F.location){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn("Could not initialize routing instrumentation due to invalid location");return}let r=F.location.href,i;e&&(i=t({name:F.location.pathname,startTimestamp:St?St/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&rt("history",({to:s,from:a})=>{if(a===void 0&&r&&r.indexOf(s)!==-1){r=void 0;return}a!==s&&(r=void 0,i&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=t({name:F.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const _E="BrowserTracing",mE={...Gn,markBackgroundTransactions:!0,routingInstrumentation:pE,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...Wi};class gE{constructor(e){this.name=_E,this._hasSetTracePropagationTargets=!1,Ep(),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...mE,...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=Vb(),this.options.enableLongTask&&Zb(),this.options._experiments.enableInteractions&&qb()}setupOnce(e,n){this._getCurrentHub=n;const i=n().getClient(),s=i&&i.getOptions(),{routingInstrumentation:a,startTransactionOnLocationChange:o,startTransactionOnPageLoad:c,markBackgroun
54dTransactions:u,traceFetch:l,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:h,_experiments:_}=this.options,p=s&&s.tracePropagationTargets,g=p||this.options.tracePropagationTargets;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&p&&y.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."),a(E=>{const S=this._createRouteTransaction(E);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(S,E,n),S},c,o),u&&Gb(),_.enableInteractions&&this._registerInteractionListener(),aE({traceFetch:l,traceXHR:d,tracePropagationTargets:g,shouldCreateSpanForRequest:f,enableHTTPTimings:h})}_createRouteTransaction(e){if(!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:s,heartbeatInterval:a}=this.options,o=e.op==="pageload",c=o?ho("sentry-trace"):"",u=o?ho("baggage"):"",{traceparentData:l,dynamicSamplingContext:d,propagationContext:f}=Vh(c,u),h={...e,...l,metadata:{...e.metadata,dynamicSamplingContext:l&&!d?{}:d},trimEnd:!0},_=typeof r=="function"?r(h):h,p=_===void 0?{...h,sampled:!1}:_;p.metadata=p.name!==h.name?{...p.metadata,source:"custom"}:p.metadata,this._latestRouteName=p.name,this._latestRouteSource=p.metadata&&p.metadata.source,p.sampled===!1&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`[Tracing] Will not send ${p.op} transaction because of beforeNavigate.`),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.log(`[Tracing] Starting ${p.op} transaction on scope`);const{location:g}=F,E=Ca(n,p,i,s,!0,{location:g},a),S=n.getScope();return o&&l?S.setPropagationContext(f):S.setPropagationContext({traceId:E.traceId,spanId:E.spanId,parentSpanId:E.parentSpanId,sampled:E.sampled}),E.registerBeforeFinishCallback(I=>{this._collectWebVitals(),Qb(I)}),E}_registerInteractionListener(){let e;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=this.options,a="ui.action.click",o=_n();if(o&&o.op&&["navigation","pageload"].includes(o.op)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`[Tracing] Did not create ${a} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}const c=this._getCurrentHub(),{location:u}=F,l={name:this._latestRouteName,op:a,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=Ca(c,l,r,i,!0,{location:u},s)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function ho(t){const e=nh(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}am({dsn:"https://[email protected]/4505985312751616",integrations:[new gE({tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/]}),new Ur],tracesSampleRate:.1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1});const yE=()=>({isOpen:!1,toggle(){if(this.isOpen)return this.close();this.$refs.button.focus(),this.isOpen=!0},open(){this.isOpen||(this.isOpen=!0)},close(t){this.isOpen&&(this.isOpen=!1,t&&t.blur())},container:{["@keydown.escape.prevent.stop"](){this.close(this.$refs.button)},["@focusin.window"](t){!this.$refs.panel.contains(t.target)&&this.close()},["x-id"](){return["dropdown-button"]},[":class"](){return this.isOpen&&"bg-offwhite"},["@mouseleave"](){this.close(this.$refs.button)}},trigger:{["x-ref"]:"button",["@click"](){this.toggle()},["@mouseover.throttle"](){this.open()},[":aria-expand"](){return this.isOpen},[":aria-controls"](){return this.$id("dropdown-button")}},menu:{["x-ref"]:"panel",["x-show"](){return this.isOpen},["x-transition.origin.top.left"](){},["x-transition:leave.duration.150ms"](){},["@click.outside"](){this.close(this.$refs.button)},[":id"](){return this.$id("dropdown-button")},["x-cloak"]:!0}}),bE=()=>({init(){this.$nextTick(()=>{const t=gsap.utils.toArray(".panel",this.$root);this.panelTrigger=gsap.to(t,{xPercent:-100*(t.length-1),ease:"none",scrollTrigger:{trigger:this.$root,pin:!0,start:"top top",scrub:1,snap:{snapTo:1/(t.length-1),inertia:!1,duration:{min:.1,max:3}},end:()=>"+="+this.$root.offsetWidth}}),this.backgroundScroll=gsap.to(this.$refs.svg,{scrollTrigger:{trigger:this.$root,scrub:.5,start:"top top",end:()=>"+="+this.$root.offsetWidth,ease:"power2"},y:"-30%"})})},svg:{["x-ref"]:"svg"}}),EE=t=>
54({startValue:0,currentValue:0,endValue:t,isVisible:!1,init(){this.$watch("isVisible",e=>{e&&this.startValue===this.currentValue&&requestAnimationFrame(()=>this.increment())})},increment(){this.endValue<200?setTimeout(()=>{this.currentValue+=4,this.$nextTick(()=>{if(this.currentValue>this.endValue){this.currentValue=this.endValue;return}this.currentValue!==this.endValue&&requestAnimationFrame(()=>this.increment())})},30):this.endValue>=200&&this.endValue<1500?setTimeout(()=>{this.currentValue+=12,this.$nextTick(()=>{if(this.currentValue>this.endValue){this.currentValue=this.endValue;return}this.currentValue!==this.endValue&&requestAnimationFrame(()=>this.increment())})},10):setTimeout(()=>{this.currentValue+=56,this.$nextTick(()=>{if(this.currentValue>this.endValue){this.currentValue=this.endValue;return}this.currentValue!==this.endValue&&requestAnimationFrame(()=>this.increment())})},5)}}),SE=()=>({userId:"",userIdInput:{type:"hidden",name:"zoho_sales_iq_id",["x-model"]:"userId",async["x-bind:zohosalesiq:ready.document"](){var t,e,n,r;for(;!((e=(t=$zoho==null?void 0:$zoho.salesiq)==null?void 0:t.visitor)!=null&&e.uniqueuserid());)await new Promise(i=>setTimeout(i,500));this.userId=(r=(n=$zoho==null?void 0:$zoho.salesiq)==null?void 0:n.visitor)==null?void 0:r.uniqueuserid()}}}),vE=()=>({init(){this.$nextTick(()=>{var t,e;this.filled=!!((e=(t=this.$refs)==null?void 0:t.field)!=null&&e.value)})},filled:!1,label:{[":class"](){return this.filled?this.$el.dataset.filled:this.$el.dataset.emptied}},field:{["x-ref"]:"field",["@focus"](){this.filled=!0},["@blur"](){const t=this.$event.target.value;this.filled=!!t}}}),We=(...t)=>fetch(...t).then(e=>e.json()),wE="/api/taxonomies/services/terms",IE="/api/collections/case_studies/entries",TE="/api/taxonomies/clients/terms",ei=t=>`${IE}?limit=${t}&sort=order`;function CE(){return{services:this.$persist([]).using(sessionStorage),results:this.$persist([]).using(sessionStorage),clients:this.$persist([]).using(sessionStorage),activeService:null,limit:this.$persist(4).using(sessionStorage),loading:!0,async init(){[this.services,this.results,this.clients]=await Promise.all([We(wE),We(ei(this.limit)),We(TE)]),this.loading=!1,this.$watch("activeService",async t=>{let e=ei(this.limit);t&&(e+=`&filter[taxonomy:services]=${t}`),this.loading=!0,this.results=await We(e),this.loading=!1}),this.$watch("limit",async t=>{let e=ei(t);this.activeService&&(e+=`&filter[taxonomy:services]=${this.activeService}`),this.loading=!0,this.results=await We(e),this.loading=!1})},get moreResultsAvailable(){var t,e,n,r;return(((e=(t=this.results)==null?void 0:t.meta)==null?void 0:e.current_page)??0)<(((r=(n=this.results)==null?void 0:n.meta)==null?void 0:r.last_page)??1/0)},getClientLogoUrl(t){const e=t.client.id;return this.clients.data.filter(n=>n.id===e).map(n=>{var r;return(r=n.client_logo)==null?void 0:r.url})[0]}}}function RE(t){const e=t.target.name,n=t.target.value;if(n)switch(e){case"email":{self.$zoho.salesiq.visitor.email(n);break}default:self.$zoho.salesiq.visitor.info({[t.target.name]:t.target.value})}}function kE(){self.dispatchEvent(new CustomEvent("zohosalesiq:ready")),document.addEventListener("zohosalesiq:addData",RE)}function AE(t=t,e=()=>{}){window.$zoho=window.$zoho||{},window.$zoho.salesiq=window.$zoho.salesiq||{widgetcode:"b4198912a69050a31c6e7821837f26f6bedd2c4dd3cc8e73122ea31cfb128c681a2010ab7b6727677d37b27582c0e9c4",values:{},ready:t,afterReady:e};const n=document,r=n.createElement("script");r.type="text/javascript",r.id="zsiqscript",r.defer=!0,r.src="https://salesiq.zoho.com/widget";const i=n.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)}function xE(){AE(kE)}const NE={start:xE};NE.start();mt.plugin(Uf);mt.plugin(zf);mt.plugin(Hf);mt.plugin(Wf);window.Alpine=mt;mt.data("dropdown",yE);mt.data("scrolly",bE);mt.data("counter",EE);mt.data("crmForm",SE);mt.data("formField",vE);mt.data("resultsArchive",CE);mt.start()});export default DE();
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.