1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`58f08ee70a13815357d6966834bf9d10186a7cfa`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`97ad8376-151b-4c93-9df7-03ac9fd02f92`,e._sentryDebugIdIdentifier=`sentry-dbid-97ad8376-151b-4c93-9df7-03ac9fd02f92`)}catch{}})();import{$ as e,E as t,Et as n,H as r,L as i,M as a,N as o,O as s,P as c,Q as l,V as u,W as d,_t as f,a as p,at as m,bt as h,ct as g,dt as _,ft as v,gt as y,h as b,ht as x,it as S,j as C,k as w,lt as T,mt as E,n as ee,nt as D,ot as te,pt as ne,rt as re,st as ie,t as ae,ut as O,v as oe,vt as se,y as k,yt as A}from"./vue.esm-bundler-B-CST7Wf.js";import{t as ce}from"./configuration-DDF9biG5.js";import{a as le,i as ue,n as de,t as fe}from"./esm-C1oTQR5U.js";import{A as pe,C as me,E as he,M as ge,N as _e,S as ve,T as ye,_ as be,a as xe,b as Se,c as Ce,d as we,f as Te,g as Ee,h as De,i as Oe,k as ke,l as j,m as Ae,n as je,o as Me,p as Ne,s as Pe,t as M,v as Fe,w as Ie,x as Le}from"./utils-BYxEaTHr.js";import"./lib-CdlFSc6I.js";ae();var Re=function(e){return e.CMS=`cms`,e.Yapla=`yapla`,e}({}),ze=v(`yapla`),Be=()=>({theme:ze,cms:e=>ze.value===`cms`?e:``,yapla:e=>ze.value===`yapla`?e:``,setTheme:e=>{ze.value=e}}),Ve=`modulepreload`,He=function(e){return`/js/vue/dist/`+e},Ue={},We=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=He(t,n),t in Ue)return;Ue[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Ve,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Ge(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}var Ke=typeof window<`u`,qe=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Je=(e,t,n)=>Ye({l:e,k:t,s:n}),Ye=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),Xe=e=>typeof e==`number`&&isFinite(e),Ze=e=>yt(e)===`[object Date]`,Qe=e=>yt(e)===`[object RegExp]`,$e=e=>I(e)&&Object.keys(e).length===0,et=Object.assign,tt=Object.create,nt=(e=null)=>tt(e),rt,it=()=>rt||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:nt();function at(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function ot(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}var st=/^\s*javascript\s*(?::|�*58;?|�*3a;?|:?)/i,ct=/^(?:href|src|action|formaction)$/i;function lt(e){return st.test(e)}function ut(e){let t=/url\s*\(/gi,n=``,r=0,i;for(;(i=t.exec(e))!==null;){let a=i.index,o=t.lastIndex-1,s=o+1,c=1,l=null;for(;s<e.length;s++){let t=e[s];if(l){t===l&&(l=null);continue}if(t===`"`||t===`'`)l=t;else if(t===`(`)c++;else if(t===`)`&&(c--,c===0))break}if(c!==0)break;let u=e.slice(o+1,s).trim(),d=u.startsWith(`"`)&&u.endsWith(`"`)||u.startsWith(`'`)&&u.endsWith(`'`)?u.slice(1,-1).trim():u;n+=e.slice(r,a),n+=lt(d)?`url(about:blank)`:e.slice(a,s+1),r=s+1}return n+e.slice(r)}function dt(e,t){return ct.test(e)&<(t)?`about:blank`:ot(e.toLowerCase()===`style`?ut(t):t)}function ft(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${dt(t,n)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${dt(t,n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,`$1on$3`)),e=e.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi,(e,t,n)=>lt(n)?`${t}about:blank`:e),e}var pt=Object.prototype.hasOwnProperty;function mt(e,t){return pt.call(e,t)}var ht=Array.isArray,gt=e=>typeof e==`function`,N=e=>typeof e==`string`,P=e=>typeof e==`boolean`,F=e=>typeof e==`object`&&!!e,_t=e=>F(e)&>(e.then)&>(e.catch),vt=Object.prototype.toString,yt=e=>vt.call(e),I=e=>yt(e)===`[object Object]`,bt=e=>e==null?``:ht(e)||I(e)&&e.toString===vt?JSON.stringify(e,null,2):String(e);function xt(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}var St=e=>!F(e)||ht(e);function Ct(e,t){if(St(e)||St(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(F(e[r])&&!F(t[r])&&(t[r]=Array.isArray(e[r])?[]:nt()),St(t[r])||St(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function wt(e,t,n){return{line:e,column:t,offset:n}}function Tt(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var L={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTE
vendor: 14,563 bytes, lines 1-2
1RMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};L.EXPECTED_TOKEN,L.INVALID_TOKEN_IN_PLACEHOLDER,L.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,L.UNKNOWN_ESCAPE_SEQUENCE,L.INVALID_UNICODE_ESCAPE_SEQUENCE,L.UNBALANCED_CLOSING_BRACE,L.UNTERMINATED_CLOSING_BRACE,L.EMPTY_PLACEHOLDER,L.NOT_ALLOW_NEST_PLACEHOLDER,L.INVALID_LINKED_FORMAT,L.MUST_HAVE_MESSAGES_IN_PLURAL,L.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.UNEXPECTED_EMPTY_LINKED_KEY,L.UNEXPECTED_LEXICAL_ANALYSIS,L.UNHANDLED_CODEGEN_NODE_TYPE,L.UNHANDLED_MINIFIER_NODE_TYPE;function Et(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function Dt(e){throw e}var Ot=` `,kt=`\r`,At=` 2`,jt=`\u2028`,Mt=`\u2029`;function Nt(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===kt&&t[e+1]===At,s=e=>t[e]===At,c=e=>t[e]===Mt,l=e=>t[e]===jt,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?At:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var Pt=void 0,Ft=`'`,It=`tokenizer`;function Lt(e,t={}){let n=t.location!==!1,r=Nt(e),i=()=>r.index(),a=()=>wt(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();t.column+=r,t.offset+=r,u&&u(Et(e,n?Tt(a.startLoc,t):null,{domain:It,args:i}))}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=Tt(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(L.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===Ot||e.currentPeek()===At;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===Pt)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===Pt)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===Ft;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(!(n===7||n===11))return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===Ot||!t?!1:t===At?(e.peek(),r()):ee(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function ee(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?!(r===Ot||r===At):i===Ot?(e.peek(),n(!0,Ot)):i===At?(e.peek(),n(!0,At)):!0},r=n();return t&&e.resetPeek(),r}function D(e,t){let n=e.currentChar();if(n!==Pt)return t(n)?(e.next(),n):null}function te(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function ne(e){return D(e,te)}function re(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function ie(e){return D(e,re)}function ae(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function O(e){return D(e,ae)}function oe(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function se(e){return D(e,oe)}function k(e){let t=``,n=``;for(;t=O(e);)n+=t;return n}function A(e){let t=``;for(;;){let n=e.currentChar();if(n===`\\`){let r=e.peek();r===`{`||r===`}`||r===`@`||r===`|`||r===`\\`?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;else if(n===Ot||n===At)if(ee(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next();else t+=n,e.next()}return t}function ce(e){g(e);let t=``,n=``;for(;t=ie(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==Pt&&r!==Ot&&r!==At&&r!==`ã`){let t=he(e);return d(L.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===Pt&&d(L.UNTERMINATED_CLOSING_BRACE,a(),0),n}function le(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${k(e)}`):t+=k(e),e.currentChar()===Pt&&d(L.UNTERMINATED_CLOSING_BRACE,a(),0),t}function ue(e){return e!==Ft&&e!==At}function de(e){g(e),m(e,`'`);let t=``,n=``;for(;t=D(e,ue);)t===`\\`?n+=fe(e):n+=t;let r=e.currentChar();return r===At||r===Pt?(d(L.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===At&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function fe(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return pe(e,t,4);case`U`:return pe(e,t,6);default:return d(L.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function pe(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=se(e);if(!n){d(L.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function me(e){return e!==`{`&&e!==`}`&&e!==Ot&&e!==At}function he(e){g(e);let t=``,n=``;for(;t=D(e,me);)n+=t;return n}function ge(e){let t=``,n=``;for(;t=ne(e);)n+=t;return n}function _e(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===Ot?n:(n+=r,e.next(),t(n))};return t(``)}function ve(e){g(e);let t=m(e,`|`);return g(e),t}function ye(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(L.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(L.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(L.UNTERMINATED_CLOSING_BRACE,a(),0),n=be(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(L.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,ve(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(L.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,xe(e,t);if(r=y(e,t))return n=f(t,4,ce(e)),g(e),n;if(i=b(e,t))return n=f(t,5,le(e)),g(e),n;if(o=x(e,t))return n=f(t,6,de(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,he(e)),d(L.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function be(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===At||i===Ot)&&d(L.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,ve(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),be(e,t)):C(e,t)?(g(e),f(t,11,ge(e))):T(e,t)?(g(e),i===`{`?ye(e,t)||r:f(t,10,_e(e))):(n===7&&d(L.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,xe(e,t))}}function xe(e,t){let n={type:13};if(t.braceNest>0)return ye(e,t)||p(t);if(t.inLinked)return be(e,t)||p(t);switch(e.currentChar()){case`{`:return ye(e,t)||p(t);case`}`:return d(L.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return be(e,t)||p(t);default:if(E(e))return n=f(t,1,ve(e)),t.braceNest=0,t.inLinked=!1,n;if(ee(e))return f(t,0,A(e));break}return n}function Se(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===Pt?f(c,13):xe(r,c)}return{nextToken:Se,currentOffset:i,currentPosition:a,context:l}}var Rt=`parser`,zt=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,Bt=/\\([\\@{}|])/g;function Vt(e,t){return t}function Ht(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function Ut(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();s.offset+=a,s.column+=a,n&&n(Et(r,t?Tt(i,s):null,{domain:Rt,args:o}))}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t.replace(Bt,Vt),a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(zt,Ht),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,L.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,Wt(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,L.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,L.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Wt(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,L.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Wt(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,L.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Wt(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,L.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Wt(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,L.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Wt(o)),n.key=l(e,o.value||``);break;default:{r(e,L.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,L.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Wt(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,L.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Wt(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,L.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Wt(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,L.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Wt(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,L.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=Lt(n,et({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,L.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function Wt(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`â¦`:t}function Gt(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function Kt(e,t){for(let n=0;n<e.length;n++)qt(e[n],t)}function qt(e,t){switch(e.type){case 1:Kt(e.cases,t),t.helper(`plural`);break;case 2:Kt(e.items,t);break;case 6:qt(e.key,t),t.helper(`linked`),t.helper(`type`);break;case 5:t.helper(`interpolate`),t.helper(`list`);break;case 4:t.helper(`interpolate`),t.helper(`named`);break}}function Jt(e,t={}){let n=Gt(e);n.helper(`normalize`),e.body&&qt(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function Yt(e){let t=e.body;return t.type===2?Xt(t):t.cases.forEach(e=>Xt(e)),e}function Xt(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=xt(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}function Zt(e){switch(e.t=e.type,e.type){case 0:{let t=e;Zt(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)Zt(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)Zt(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;Zt(t.key),t.k=t.key,delete t.key,t.modifier&&(Zt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}default:}delete e.type}function Qt(e,t){let{filename:n,breakLineCode:r,needIndent:i}=t,a=t.location!==!1,o={filename:n,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);let s=()=>o;function c(e,t){o.code+=e}function l(e,t=!0){let n=t?r:``;c(i?n+` `.repeat(e):n)}function u(e=!0){let t=++o.indentLevel;e&&l(t)}
vendor: 35,231 bytes, lines 2-3
2function d(e=!0){let t=--o.indentLevel;e&&l(t)}function f(){l(o.indentLevel)}return{context:s,push:c,indent:u,deindent:d,newline:f,helper:e=>`_${e}`,needIndent:()=>o.needIndent}}function $t(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),rn(e,t.key),t.modifier?(e.push(`, `),rn(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function en(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&(rn(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function tn(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&(rn(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function nn(e,t){t.body?rn(e,t.body):e.push(`null`)}function rn(e,t){let{helper:n}=e;switch(t.type){case 0:nn(e,t);break;case 1:tn(e,t);break;case 2:en(e,t);break;case 6:$t(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n(`interpolate`)}(${n(`list`)}(${t.index}))`,t);break;case 4:e.push(`${n(`interpolate`)}(${n(`named`)}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:}}var an=(e,t={})=>{let n=N(t.mode)?t.mode:`normal`,r=N(t.filename)?t.filename:`message.intl`;t.sourceMap;let i=t.breakLineCode==null?n===`arrow`?`;`:` 3`:t.breakLineCode,a=t.needIndent?t.needIndent:n!==`arrow`,o=e.helpers||[],s=Qt(e,{filename:r,breakLineCode:i,needIndent:a});s.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),s.indent(a),o.length>0&&(s.push(`const { ${xt(o.map(e=>`${e}: _${e}`),`, `)} } = ctx`),s.newline()),s.push(`return `),rn(s,e),s.deindent(a),s.push(`}`),delete e.helpers;let{code:c,map:l}=s.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function on(e,t={}){let n=et({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=Ut(n).parse(e);return r?(a&&Yt(o),i&&Zt(o),{ast:o,code:``}):(Jt(o,n),an(o,n))}function sn(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(it().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(it().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function cn(e){return F(e)&&vn(e)===0&&(mt(e,`b`)||mt(e,`body`))}var ln=[`b`,`body`];function un(e){return Tn(e,ln)}var dn=[`c`,`cases`];function fn(e){return Tn(e,dn,[])}var pn=[`s`,`static`];function mn(e){return Tn(e,pn)}var hn=[`i`,`items`];function gn(e){return Tn(e,hn,[])}var _n=[`t`,`type`];function vn(e){return Tn(e,_n)}var yn=[`v`,`value`];function bn(e,t){let n=Tn(e,yn);if(n!=null)return n;throw Dn(t)}var xn=[`m`,`modifier`];function Sn(e){return Tn(e,xn)}var Cn=[`k`,`key`];function wn(e){let t=Tn(e,Cn);if(t)return t;throw Dn(6)}function Tn(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(mt(e,r)&&e[r]!=null)return e[r]}return n}var En=[...ln,...dn,...pn,...hn,...Cn,...xn,...yn,..._n];function Dn(e){return Error(`unhandled node type: ${e}`)}function On(e){return t=>kn(t,e)}function kn(e,t){let n=un(t);if(n==null)throw Dn(0);if(vn(n)===1){let t=fn(n);return e.plural(t.reduce((t,n)=>[...t,An(e,n)],[]))}else return An(e,n)}function An(e,t){let n=mn(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=gn(t).reduce((t,n)=>[...t,jn(e,n)],[]);return e.normalize(n)}}function jn(e,t){let n=vn(t);switch(n){case 3:return bn(t,n);case 9:return bn(t,n);case 4:{let r=t;if(mt(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(mt(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw Dn(n)}case 5:{let r=t;if(mt(r,`i`)&&Xe(r.i))return e.interpolate(e.list(r.i));if(mt(r,`index`)&&Xe(r.index))return e.interpolate(e.list(r.index));throw Dn(n)}case 6:{let n=t,r=Sn(n),i=wn(n);return e.linked(jn(e,i),r?jn(e,r):void 0,e.type)}case 7:return bn(t,n);case 8:return bn(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var Mn=e=>e,Nn=nt();function Pn(e,t={}){let n=!1,r=t.onError||Dt;return t.onError=e=>{n=!0,r(e)},{...on(e,t),detectError:n}}function Fn(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&N(e)){P(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=(t.onCacheKey||Mn)(e),r=Nn[n];if(r)return r;let{ast:i,detectError:a}=Pn(e,{...t,location:!1,jit:!0}),o=On(i);return a?o:Nn[n]=o}else{let t=e.cacheKey;return t?Nn[t]||(Nn[t]=On(e)):On(e)}}var In=null;function Ln(e){In=e}function Rn(e,t,n){In&&In.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var zn=Bn(`function:translate`);function Bn(e){return t=>In&&In.emit(e,t)}var Vn={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Hn(e){return Et(e,null,void 0)}Vn.INVALID_ARGUMENT,Vn.INVALID_DATE_ARGUMENT,Vn.INVALID_ISO_DATE_ARGUMENT,Vn.NOT_SUPPORT_NON_STRING_MESSAGE,Vn.NOT_SUPPORT_LOCALE_PROMISE_VALUE,Vn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,Vn.NOT_SUPPORT_LOCALE_TYPE;function Un(e,t){return t.locale==null?Gn(e.locale):Gn(t.locale)}var Wn;function Gn(e){if(N(e))return e;if(gt(e)){if(e.resolvedOnce&&Wn!=null)return Wn;if(e.constructor.name===`Function`){let t=e();if(_t(t))throw Hn(Vn.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Wn=t}else throw Hn(Vn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Hn(Vn.NOT_SUPPORT_LOCALE_TYPE)}function Kn(e,t,n){return[...new Set([n,...ht(t)?t:F(t)?Object.keys(t):N(t)?[t]:[n]])]}function qn(e,t,n){let r=N(n)?n:lr,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;ht(e);)e=Jn(a,e,t);let o=ht(t)||!I(t)?t:t.default?t.default:null;e=N(o)?[o]:o,ht(e)&&Jn(a,e,!1),i.__localeChainCache.set(r,a)}return a}function Jn(e,t,n){let r=!0;for(let i=0;i<t.length&&P(r);i++){let a=t[i];N(a)&&(r=Yn(e,t[i],n))}return r}function Yn(e,t,n){let r,i=t.split(`-`);do r=Xn(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function Xn(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(ht(n)||I(n))&&n[i]&&(r=n[i])}return r}var Zn=[];Zn[0]={w:[0],i:[3,0],"[":[4],o:[7]},Zn[1]={w:[1],".":[2],"[":[4],o:[7]},Zn[2]={w:[2],i:[3,0],0:[3,0]},Zn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Zn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Zn[5]={"'":[4,0],o:8,l:[5,0]},Zn[6]={'"':[4,0],o:8,l:[6,0]};var Qn=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function $n(e){return Qn.test(e)}function er(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function tr(e){if(e==null)return`o`;switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return`i`;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function nr(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:$n(t)?er(t):`*`+t}function rr(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=nr(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=tr(a),d=Zn[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var ir=new Map;function ar(e,t){return F(e)?e[t]:null}function or(e,t){if(!F(e))return null;let n=ir.get(t);if(n||(n=rr(t),n&&ir.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(En.includes(e)&&cn(i)||!F(i)||!mt(i,e))return null;let t=i[e];if(t===void 0||gt(i))return null;i=t,a++}return i}var sr={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9};sr.NOT_FOUND_KEY,sr.FALLBACK_TO_TRANSLATE,sr.CANNOT_FORMAT_NUMBER,sr.FALLBACK_TO_NUMBER_FORMAT,sr.CANNOT_FORMAT_DATE,sr.FALLBACK_TO_DATE_FORMAT,sr.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER,sr.INVALID_NUMBER_ARGUMENT,sr.INVALID_DATE_ARGUMENT;var cr=`11.4.5`,lr=`en-US`,ur=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function dr(){return{upper:(e,t)=>t===`text`&&N(e)?e.toUpperCase():t===`vnode`&&F(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&N(e)?e.toLowerCase():t===`vnode`&&F(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&N(e)?ur(e):t===`vnode`&&F(e)&&`__v_isVNode`in e?ur(e.children):e}}var fr;function pr(e){fr=e}var mr;function hr(e){mr=e}var gr;function _r(e){gr=e}var vr=null,yr=()=>vr,br=null,xr=e=>{br=e},Sr=()=>br,Cr=0;function wr(e={}){let t=gt(e.onWarn)?e.onWarn:Ge,n=N(e.version)?e.version:cr,r=N(e.locale)||gt(e.locale)?e.locale:lr,i=gt(r)?lr:r,a=ht(e.fallbackLocale)||I(e.fallbackLocale)||N(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=I(e.messages)?e.messages:Tr(i),s=I(e.datetimeFormats)?e.datetimeFormats:Tr(i),c=I(e.numberFormats)?e.numberFormats:Tr(i),l=et(nt(),e.modifiers,dr()),u=e.pluralRules||nt(),d=gt(e.missing)?e.missing:null,f=P(e.missingWarn)||Qe(e.missingWarn)?e.missingWarn:!0,p=P(e.fallbackWarn)||Qe(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=gt(e.postTranslation)?e.postTranslation:null,_=I(e.processor)?e.processor:null,v=P(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=gt(e.messageCompiler)?e.messageCompiler:fr,x=gt(e.messageResolver)?e.messageResolver:mr||ar,S=gt(e.localeFallbacker)?e.localeFallbacker:gr||Kn,C=F(e.fallbackContext)?e.fallbackContext:void 0,w=e,T=F(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,E=F(w.__numberFormatters)?w.__numberFormatters:new Map,ee=F(w.__meta)?w.__meta:{};Cr++;let D={version:n,cid:Cr,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:ee};return D.datetimeFormats=s,D.numberFormats=c,D.__datetimeFormatters=T,D.__numberFormatters=E,__INTLIFY_PROD_DEVTOOLS__&&Rn(D,n,ee),D}var Tr=e=>({[e]:nt()});function Er(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return N(r)?r:t}else return t}function Dr(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Or(e,t){return e===t?!1:e.split(`-`)[0]===t.split(`-`)[0]}function kr(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Or(e,t[r]))return!0;return!1}var Ar=typeof Intl<`u`;Ar&&Intl.DateTimeFormat,Ar&&Intl.NumberFormat;function jr(e,...t){let{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:s}=e;if(!N(t[0])&&!Ze(t[0])&&!Xe(t[0]))return``;let[c,l,u,d]=Nr(...t),f=P(u.missingWarn)?u.missingWarn:e.missingWarn;P(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let p=!!u.part,m=Un(e,u),h=o(e,i,m);if(!N(c)||c===``){let e=new Intl.DateTimeFormat(m.replace(/!/g,``),d);return p?e.formatToParts(l):e.format(l)}let g={},_,v=null;for(let t=0;t<h.length&&(_=h[t],g=n[_]||{},v=g[c],!I(v));t++)Er(e,c,_,f,`datetime format`);if(!I(v)||!N(_))return r?-1:c;let y=`${_}__${c}`;$e(d)||(y=`${y}__${JSON.stringify(d)}`);let b=s.get(y);return b||(b=new Intl.DateTimeFormat(_,et({},v,d)),s.set(y,b)),p?b.formatToParts(l):b.format(l)}var Mr=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function Nr(...e){let[t,n,r,i]=e,a=nt(),o=nt(),s;if(N(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Hn(Vn.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch{throw Hn(Vn.INVALID_ISO_DATE_ARGUMENT)}}else if(Ze(t)){if(isNaN(t.getTime()))throw Hn(Vn.INVALID_DATE_ARGUMENT);s=t}else if(Xe(t))s=t;else throw Hn(Vn.INVALID_ARGUMENT);return N(n)?a.key=n:I(n)&&Object.keys(n).forEach(e=>{Mr.includes(e)?o[e]=n[e]:a[e]=n[e]}),N(r)?a.locale=r:I(r)&&(o=r),I(i)&&(o=i),[a.key||``,s,a,o]}function Pr(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Fr(e,...t){let{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e;if(!Xe(t[0]))return``;let[c,l,u,d]=Lr(...t),f=P(u.missingWarn)?u.missingWarn:e.missingWarn;P(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;let p=!!u.part,m=Un(e,u),h=o(e,i,m);if(!N(c)||c===``){let e=new Intl.NumberFormat(m.replace(/!/g,``),d);return p?e.formatToParts(l):e.format(l)}let g={},_,v=null;for(let t=0;t<h.length&&(_=h[t],g=n[_]||{},v=g[c],!I(v));t++)Er(e,c,_,f,`number format`);if(!I(v)||!N(_))return r?-1:c;let y=`${_}__${c}`;$e(d)||(y=`${y}__${JSON.stringify(d)}`);let b=s.get(y);return b||(b=new Intl.NumberFormat(_,et({},v,d)),s.set(y,b)),p?b.formatToParts(l):b.format(l)}var Ir=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function Lr(...e){let[t,n,r,i]=e,a=nt(),o=nt();if(!Xe(t))throw Hn(Vn.INVALID_ARGUMENT);let s=t;return N(n)?a.key=n:I(n)&&Object.keys(n).forEach(e=>{Ir.includes(e)?o[e]=n[e]:a[e]=n[e]}),N(r)?a.locale=r:I(r)&&(o=r),I(i)&&(o=i),[a.key||``,s,a,o]}function Rr(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}var zr=e=>e,Br=e=>``,Vr=`text`,Hr=e=>e.length===0?``:xt(e),Ur=bt;function Wr(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function Gr(e){let t=Xe(e.pluralIndex)?e.pluralIndex:-1;return Xe(e.named?.count)?e.named.count:Xe(e.named?.n)?e.named.n:t}function Kr(e={}){let t=e.locale,n=Gr(e),r=N(t)&>(e.pluralRules?.[t])?e.pluralRules[t]:Wr,i=r===Wr?void 0:Wr,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||nt();Xe(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);let l=e=>c[e];function u(t,n){return(gt(e.messages)?e.messages(t,!!n):F(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):Br)}let d=t=>e.modifiers?e.modifiers[t]:zr,f=gt(e.processor?.normalize)?e.processor.normalize:Hr,p=gt(e.processor?.interpolate)?e.processor.interpolate:Ur,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?F(n)?(a=n.modifier||a,i=n.type||i):N(n)&&(a=n||a):t.length===2&&(N(n)&&(a=n||a),N(r)&&(i=r||i));let o=u(e,!0)(m),s=o===``||o===void 0?e:o,c=i===`vnode`&&ht(s)&&a?s[0]:s;return a?d(a)(c,i):c},message:u,type:N(e.processor?.type)?e.processor.type:Vr,interpolate:p,normalize:f,values:et(nt(),o,c)};return m}var qr=()=>``,Jr=e=>gt(e);function Yr(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=ei(...t),u=P(l.missingWarn)?l.missingWarn:e.missingWarn,d=P(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=P(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=N(l.default)||P(l.default)?P(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(N(m)||gt(m)),g=Un(e,l);f&&Xr(l);let[_,v,y]=p?[c,g,s[g]||nt()]:Zr(e,c,g,o,d,u),b=_,x=c;if(!p&&!(N(b)||cn(b)||Jr(b))&&h&&(b=m,x=b),!p&&(!(N(b)||cn(b)||Jr(b))||!N(v)))return i?-1:c;let S=!1,C=Jr(b)?b:Qr(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=$r(e,C,Kr(ni(e,v,y,l))),T=r?r(w,c):w;if(f&&N(T)&&(T=ft(T)),__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:N(c)?c:Jr(b)?b.key:``,locale:v||(Jr(b)?b.locale:``),format:N(b)?b:Jr(b)?b.source:``,message:T};t.meta=et({},e.__meta,yr()||{}),zn(t)}return T}function Xr(e){ht(e.list)?e.list=e.list.map(e=>N(e)?at(e):e):F(e.named)&&Object.keys(e.named).forEach(t=>{N(e.named[t])&&(e.named[t]=at(e.named[t]))})}function Zr(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=nt(),f,p=null;for(let n=0;n<u.length&&(f=u[n],d=o[f]||nt(),(p=c(d,t))===null&&(p=d[t]),!(N(p)||cn(p)||Jr(p)));n++)if(!kr(f,u)){let n=Er(e,t,f,a,`translate`);n!==t&&(p=n)}return[p,f,d]}function Qr(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(Jr(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=o(r,ti(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function $r(e,t,n){return t(n)}function ei(...e){let[t,n,r]=e,i=nt();if(!N(t)&&!Xe(t)&&!Jr(t)&&!cn(t))throw Hn(Vn.INVALID_ARGUMENT);let a=Xe(t)?String(t):(Jr(t),t);return Xe(n)?i.plural=n:N(n)?i.default=n:I(n)&&!$e(n)?i.named=n:ht(n)&&(i.list=n),Xe(r)?i.plural=r:N(r)?i.default=r:I(r)&&et(i,r),[a,i]}function ti(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>Je(t,n,e)}}function ni(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[n,,i]=Zr(u||e,r,t,s,c,l);a=n??o(i,r)}if(N(a)||cn(a)){let n=!1,i=Qr(e,r,t,a,r,()=>{n=!0});return n?qr:i}else if(Jr(a))return a;else return qr}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Xe(r.plural)&&(d.pluralIndex=r.plural),d}sn(),ae();var ri=`11.4.5`;function ii(){typeof __VUE_I18N_FULL_INSTALL__!=`boolean`&&(it().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!=`boolean`&&(it().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(it().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(it().__INTLIFY_PROD_DEVTOOLS__=!1)}var ai={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function oi(e,...t){return Et(e,null,void 0)}ai.UNEXPECTED_RETURN_TYPE,ai.INVALID_ARGUMENT,ai.MUST_BE_CALL_SETUP_TOP,ai.NOT_INSTALLED,ai.UNEXPECTED_ERROR,ai.REQUIRED_VALUE,ai.INVALID_VALUE,ai.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,ai.NOT_INSTALLED_WITH_PROVIDE,ai.NOT_COMPATIBLE_LEGACY_VUE_I18N,ai.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;var si=qe(`__translateVNode`),ci=qe(`__datetimeParts`),li=qe(`__numberParts`),ui=qe(`__setPluralRules`);qe(`__intlifyMeta`);var di=qe(`__injectWithOption`),fi=qe(`__dispose`),pi={FALLBACK_TO_ROOT:10,NOT_FOUND_PARENT_SCOPE:11,IGNORE_OBJ_FLATTEN:12,DEPRECATE_LEGACY_MODE:13,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:14,DUPLICATE_USE_I18N_CALLING:15};pi.FALLBACK_TO_ROOT,pi.NOT_FOUND_PARENT_SCOPE,pi.IGNORE_OBJ_FLATTEN,pi.DEPRECATE_LEGACY_MODE,pi.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE,pi.DUPLICATE_USE_I18N_CALLING;function mi(e){if(!F(e)||cn(e))return e;for(let t in e)if(mt(e,t))if(!t.includes(`.`))F(e[t])&&mi(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e<r;e++){if(n[e]===`__proto__`)throw Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=nt()),!F(i[n[e]])){a=!0;break}i=i[n[e]]}if(a||(cn(i)?En.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!cn(i)){let e=i[n[r]];F(e)&&mi(e)}}return e}function hi(e,t){let{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=I(n)?n:ht(r)?nt():{[e]:nt()};if(ht(r)&&r.forEach(e=>{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||nt(),Ct(n,o[t])):Ct(n,o)}else N(e)&&Ct(JSON.parse(e),o)}),i==null&&a)for(let e in o)mt(o,e)&&mi(o[e]);return o}function gi(e){return e.type}function _i(e,t,n){let r=F(t.messages)?t.messages:nt();`__i18nGlobal`in n&&(r=hi(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),F(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(F(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function vi(e){return t(oe,null,e,0)}function yi(){let e=`currentInstance`;return e in ee?ee[e]:w()}var bi=()=>[],xi=()=>!1,Si=0;function Ci(e){return((t,n,r,i)=>e(n,r,yi()||void 0,i))}function wi(e={}){let{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=Ke?v:x,o=P(e.inheritLocale)?e.inheritLocale:!0,s=a(t&&o?t.locale.value:N(e.locale)?e.locale:lr),c=a(t&&o?t.fallbackLocale.value:N(e.fallbackLocale)||ht(e.fallbackLocale)||I(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=a(hi(s.value,e)),d=a(I(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=a(I(e.numberFormats)?e.numberFormats:{[s.value]:{}}),p=t?t.missingWarn:P(e.missingWarn)||Qe(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:P(e.fallbackWarn)||Qe(e.fallbackWarn)?e.fallbackWarn:!0,h=t?t.fallbackRoot:P(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,_=gt(e.missing)?e.missing:null,y=gt(e.missing)?Ci(e.missing):null,b=gt(e.postTranslation)?e.postTranslation:null,S=t?t.warnHtmlMessage:P(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter,w=t?t.modifiers:I(e.modifiers)?e.modifiers:{},T=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&xr(null);let t={version:ri,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:w,pluralRules:T,missing:y===null?void 0:y,missingWarn:p,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:C,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:`vue`}};t.datetimeFormats=d.value,t.numberFormats=f.value,t.__datetimeFormatters=I(E)?E.__datetimeFormatters:void 0,t.__numberFormatters=I(E)?E.__numberFormatters:void 0;let n=wr(t);return r&&xr(n),n})(),Dr(E,s.value,c.value);function ee(){return[s.value,c.value,u.value,d.value,f.value]}let D=k({get:()=>s.value,set:e=>{E.locale=e,s.value=e}}),te=k({get:()=>c.value,set:e=>{E.fallbackLocale=e,c.value=e,Dr(E,s.value,e)}}),ne=k(()=>u.value),re=k(()=>d.value),ie=k(()=>f.value);function ae(){return gt(b)?b:null}function O(e){b=e,E.postTranslation=e}function oe(){return _}function se(e){e!==null&&(y=Ci(e)),_=e,E.missing=y}let A=(e,n,i,a,o,s)=>{ee();let c;try{__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=t?Sr():void 0),c=e(E)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=void 0)}if(i!==`translate exists`&&Xe(c)&&c===-1||i===`translate exists`&&!c){let[e,r]=n();return t&&h?a(t):o(e)}else if(s(c))return c;else throw oi(ai.UNEXPECTED_RETURN_TYPE)};function ce(...e){return A(t=>Reflect.apply(Yr,null,[t,...e]),()=>ei(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>N(e))}function le(...e){let[t,n,r]=e;if(r&&!F(r))throw oi(ai.INVALID_ARGUMENT);return ce(t,n,et({resolvedMessage:!0},r||{}))}function ue(...e){return A(t=>Reflect.apply(jr,null,[t,...e]),()=>Nr(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>N(e)||ht(e))}function de(...e){return A(t=>Reflect.apply(Fr,null,[t,...e]),()=>Lr(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>N(e)||ht(e))}function fe(e){return e.map(e=>N(e)||Xe(e)||P(e)?vi(String(e)):e)}let pe={normalize:fe,interpolate:e=>e,type:`vnode`};function me(...e){return A(t=>{let n,r=t;try{r.processor=pe,n=Reflect.apply(Yr,null,[r,...e])}finally{r.processor=null}return n},()=>ei(...e),`translate`,t=>t[si](...e),e=>[vi(e)],e=>ht(e))}function he(...e){return A(t=>Reflect.apply(Fr,null,[t,...e]),()=>Lr(...e),`number format`,t=>t[li](...e),bi,e=>N(e)||ht(e))}function ge(...e){return A(t=>Reflect.apply(jr,null,[t,...e]),()=>Nr(...e),`datetime format`,t=>t[ci](...e),bi,e=>N(e)||ht(e))}function _e(e){T=e,E.pluralRules=T}function ve(e,t){return A(()=>{if(!e)return!1;let n=N(t)?t:s.value,r=N(t)?[n]:qn(E,c.value,n);for(let t=0;t<r.length;t++){let n=xe(r[t]),i=E.messageResolver(n,e);if(i===null&&(i=n[e]),cn(i)||Jr(i)||N(i))return!0}return!1},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),xi,e=>P(e))}function ye(e){let t=null,n=qn(E,c.value,s.value);for(let r=0;r<n.length;r++){let i=u.value[n[r]]||{},a=E.messageResolver(i,e);if(a!=null){t=a;break}}return t}function be(e){return ye(e)??(t&&t.tm(e)||{})}function xe(e){return u.value[e]||{}}function Se(e,t){if(i){let n={[e]:t};for(let e in n)mt(n,e)&&mi(n[e]);t=n[e]}u.value[e]=t,E.messages=u.value}function Ce(e,t){u.value[e]=u.value[e]||{};let n={[e]:t};if(i)for(let e in n)mt(n,e)&&mi(n[e]);t=n[e],Ct(t,u.value[e]),E.messages=u.value}function we(e){return d.value[e]||{}}function Te(e,t){d.value[e]=t,E.datetimeFormats=d.value,Pr(E,e,t)}function Ee(e,t){d.value[e]=et(d.value[e]||{},t),E.datetimeFormats=d.value,Pr(E,e,t)}function De(e){return f.value[e]||{}}function Oe(e,t){f.value[e]=t,E.numberFormats=f.value,Rr(E,e,t)}function ke(e,t){f.value[e]=et(f.value[e]||{},t),E.numberFormats=f.value,Rr(E,e,t)}Si++,t&&Ke&&(l(t.locale,e=>{o&&(s.value=e,E.locale=e,Dr(E,s.value,c.value))}),l(t.fallbackLocale,e=>{o&&(c.value=e,E.fallbackLocale=e,Dr(E,s.value,c.value))}));let j={id:Si,locale:D,fallbackLocale:te,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,Dr(E,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:ne,get modifiers(){return w},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(e){p=e,E.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(e){m=e,E.fallbackWarn=m},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return g},set fallbackFormat(e){g=e,E.fallbackFormat=g},get warnHtmlMessage(){return S},set warnHtmlMessage(e){S=e,E.warnHtmlMessage=e},get escapeParameter(){return C},set escapeParameter(e){C=e,E.escapeParameter=e},t:ce,getLocaleMessage:xe,setLocaleMessage:Se,mergeLocaleMessage:Ce,getPostTranslationHandler:ae,setPostTranslationHandler:O,getMissingHandler:oe,setMissingHandler:se,[ui]:_e};return j.datetimeFormats=re,j.numberFormats=ie,j.rt=le,j.te=ve,j.tm=be,j.d=ue,j.n=de,j.getDateTimeFormat=we,j.setDateTimeFormat=Te,j.mergeDateTimeFormat=Ee,j.getNumberFormat=De,j.setNumberFormat=Oe,j.mergeNumberFormat=ke,j[di]=n,j[si]=me,j[ci]=ge,j[li]=he,j}function Ti(e){let t=N(e.locale)?e.locale:lr,n=N(e.fallbackLocale)||ht(e.fallbackLocale)||I(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=gt(e.missing)?e.missing:void 0,i=P(e.silentTranslationWarn)||Qe(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=P(e.silentFallbackWarn)||Qe(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=P(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=I(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=gt(e.postTranslation)?e.postTranslation:void 0,d=N(e.warnHtmlInMessage)?e.warnHtmlInMessage!==`off`:!0,f=!!e.escapeParameterHtml,p=P(e.sync)?e.sync:!0,m=e.messages;if(I(e.sharedMessages)){let t=e.sharedMessages;m=Object.keys(t).reduce((e,n)=>(et(e[n]||(e[n]={}),t[n]),e),m||{})}let{__i18n:h,__root:g,__injectWithOption:_}=e,v=e.datetimeFormats,y=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:b,datetimeFormats:v,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:h,__root:g,__injectWithOption:_}}function Ei(e={}){let t=wi(Ti(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return P(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=P(e)?!e:e},get silentFallbackWarn(){return P(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=P(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?`warn`:`off`},set warnHtmlInMessage(e){t.warnHtmlMessage=e!==`off`},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){return Reflect.apply(t.t,t,[...e])},rt(...e){return Reflect.apply(t.rt,t,[...e])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,r}function Di(e,t,n){return{beforeCreate(){let r=yi();if(!r)throw oi(ai.UNEXPECTED_ERROR);let i=this.$options;if(i.i18n){let r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=Oi(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Ei(r);let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=Oi(e,i);else{this.$i18n=Ei({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&_i(t,i,i),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){let e=yi();if(!e)throw oi(ai.UNEXPECTED_ERROR);let t=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function Oi(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[ui](t.pluralizationRules||e.pluralizationRules);let n=hi(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}var ki={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function Ai({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===b?t.children:[t]],[]):t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},nt())}function ji(){return b}var Mi=s({name:`i18n-t`,props:et({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Xe(e)||!isNaN(e)}},ki),setup(e,t){let{slots:n,attrs:r}=t,i=e.i18n||Ui({useScope:e.scope,__useComponent:!0});return()=>{let a=()=>{let r=Object.keys(n).filter(e=>e[0]!==`_`),a=nt();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=N(e.plural)?+e.plural:e.plural);let o=Ai(t,r);return i[si](e.keypath,o,a)},o=et(nt(),r),s=N(e.tag)||F(e.tag)?e.tag:ji();return F(s)?C(s,o,{default:a}):C(s,o,a())}}});function Ni(e){return ht(e)&&!N(e[0])}function Pi(e,t,n,r){let{slots:i,attrs:a}=t;return()=>{let t=()=>{let t={part:!0},a=nt();e.locale&&(t.locale=e.locale),N(e.format)?t.key=e.format:F(e.format)&&(N(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce((t,r)=>n.includes(r)?et(nt(),t,{[r]:e.format[r]}):t,nt()));let o=r(e.value,t,a),s=[t.key];return ht(o)?s=o.map((e,t)=>{let n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:o}):[e.value];return Ni(r)&&(r[0].key=`${e.type}-${t}`),r}):N(o)&&(s=[o]),s},o=et(nt(),a),s=N(e.tag)||F(e.tag)?e.tag:ji();return F(s)?C(s,o,{default:t}):C(s,o,t())}}var Fi=s({name:`i18n-n`,props:et({value:{type:Number,required:!0},format:{type:[String,Object]}},ki),setup(e,t){let n=e.i18n||Ui({useScope:e.scope,__useComponent:!0});return Pi(e,t,Ir,(...e)=>n[li](...e))}});function Ii(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function Li(e){let t=t=>{let{instance:n,value:r}=t;if(!n||!n.$)throw oi(ai.UNEXPECTED_ERROR);let i=Ii(e,n.$),a=Ri(r);return[Reflect.apply(i.t,i,[...zi(a)]),i]};return{created:(e,n)=>{let[r,i]=t(n);Ke&&(e.__i18nWatcher=l(i.locale,()=>{n.instance&&n.instance.$forceUpdate()})),e.__composer=i,e.textContent=r},unmounted:e=>{Ke&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=Ri(t);e.textContent=Reflect.apply(n.t,n,[...zi(r)])}},getSSRProps:e=>{let[n]=t(e);return{textContent:n}}}}function Ri(e){if(N(e))return{path:e};if(I(e)){if(!(`path`in e))throw oi(ai.REQUIRED_VALUE,`path`);return e}else throw oi(ai.INVALID_VALUE)}function zi(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return N(n)&&(o.locale=n),Xe(i)&&(o.plural=i),Xe(a)&&(o.plural=a),[t,s,o]}function Bi(e,t,...n){let r=I(n[0])?n[0]:{};(!P(r.globalInstall)||r.globalInstall)&&([Mi.name,`I18nT`].forEach(t=>e.component(t,Mi)),[Fi.name,`I18nN`].forEach(t=>e.component(t,Fi)),[ea.name,`I18nD`].forEach(t=>e.component(t,ea))),e.directive(`t`,Li(t))}var Vi=qe(`global-vue-i18n`);function Hi(e={}){let t=__VUE_I18N_LEGACY_API__&&P(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=P(e.globalInjection)?e.globalInjection:!0,r=new Map,[i,a]=Wi(e,t),o=qe(``);function s(e){return r.get(e)||null}function c(e,t){r.set(e,t)}function l(e){r.delete(e)}let u={get mode(){return __VUE_I18N_LEGACY_API__&&t?`legacy`:`composition`}
3,async install(e,...r){if(e.__VUE_I18N_SYMBOL__=o,e.provide(e.__VUE_I18N_SYMBOL__,u),I(r[0])){let e=r[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let i=null;!t&&n&&(i=$i(e,u.global)),__VUE_I18N_FULL_INSTALL__&&Bi(e,u,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(Di(a,a.__composer,u));let s=e.unmount;e.unmount=()=>{i&&i(),u.dispose(),s()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:s,__setInstance:c,__deleteInstance:l};return u}function Ui(e={}){let t=yi();if(t==null)throw oi(ai.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw oi(ai.NOT_INSTALLED);let n=Gi(t),r=qi(n),i=gi(t),a=Ki(e,i);if(a===`global`)return _i(r,e,i),r;if(a===`parent`){let i=Ji(n,t,e.__useComponent);return i??=r,i}if(a===`isolated`){if(n.mode!==`composition`)throw oi(ai.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);let i=n,a=et({},e);a.__root=Ji(n,t)||r;let o=wi(a);return i.__composerExtend&&(o[fi]=i.__composerExtend(o)),S()&&T(()=>{let e=o[fi];e&&(e(),delete o[fi])}),o}let o=n,s=o.__getInstance(t);if(s==null){let n=et({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=wi(n),o.__composerExtend&&(s[fi]=o.__composerExtend(s)),Xi(o,t,s),o.__setInstance(t,s)}return s}function Wi(e,t){let n=re(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Ei(e)):n.run(()=>wi(e));if(r==null)throw oi(ai.UNEXPECTED_ERROR);return[n,r]}function Gi(e){let t=c(e.isCE?Vi:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw oi(e.isCE?ai.NOT_INSTALLED_WITH_PROVIDE:ai.UNEXPECTED_ERROR);return t}function Ki(e,t){return $e(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function qi(e){return e.mode===`composition`?e.global:e.global.__composer}function Ji(e,t,n=!1){let r=null,i=t.root,a=Yi(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){let e=t.__getInstance(a);e!=null&&(r=e.__composer,n&&r&&!r[di]&&(r=null))}if(r!=null||i===a)break;a=a.parent}return r}function Yi(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Xi(e,t,n){u(()=>{},t),r(()=>{let r=n;e.__deleteInstance(t);let i=r[fi];i&&(i(),delete r[fi])},t)}var Zi=[`locale`,`fallbackLocale`,`availableLocales`],Qi=[`t`,`rt`,`d`,`n`,`tm`,`te`];function $i(e,t){let n=Object.create(null);return Zi.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw oi(ai.UNEXPECTED_ERROR);let i=ie(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,Qi.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw oi(ai.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}),()=>{delete e.config.globalProperties.$i18n,Qi.forEach(t=>{delete e.config.globalProperties[`$${t}`]})}}var ea=s({name:`i18n-d`,props:et({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ki),setup(e,t){let n=e.i18n||Ui({useScope:e.scope,__useComponent:!0});return Pi(e,t,Mr,(...e)=>n[ci](...e))}});if(ii(),pr(Fn),hr(or),_r(qn),__INTLIFY_PROD_DEVTOOLS__){let e=it();e.__INTLIFY__=!0,Ln(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}ae();var ta=typeof document<`u`;function na(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function ra(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&na(e.default)}var R=Object.assign;function ia(e,t){let n={};for(let r in t){let i=t[r];n[r]=oa(i)?i.map(e):e(i)}return n}var aa=()=>{},oa=Array.isArray;function sa(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var ca=Symbol(``);function la(e,t){return R(Error(),{type:e,[ca]:!0},t)}function ua(e,t){return e instanceof Error&&ca in e&&(t==null||!!(e.type&t))}var da=Symbol(``),fa=Symbol(``),pa=Symbol(``),ma=Symbol(``),ha=Symbol(``);function ga(){return c(pa)}ae();var _a=/#/g,va=/&/g,ya=/\//g,ba=/=/g,xa=/\?/g,Sa=/\+/g,Ca=/%5B/g,wa=/%5D/g,Ta=/%5E/g,Ea=/%60/g,Da=/%7B/g,Oa=/%7C/g,ka=/%7D/g,Aa=/%20/g;function ja(e){return e==null?``:encodeURI(``+e).replace(Oa,`|`).replace(Ca,`[`).replace(wa,`]`)}function Ma(e){return ja(e).replace(Da,`{`).replace(ka,`}`).replace(Ta,`^`)}function Na(e){return ja(e).replace(Sa,`%2B`).replace(Aa,`+`).replace(_a,`%23`).replace(va,`%26`).replace(Ea,"`").replace(Da,`{`).replace(ka,`}`).replace(Ta,`^`)}function Pa(e){return Na(e).replace(ba,`%3D`)}function Fa(e){return ja(e).replace(_a,`%23`).replace(xa,`%3F`)}function Ia(e){return Fa(e).replace(ya,`%2F`)}function La(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Ra=/\/$/,za=e=>e.replace(Ra,``);function Ba(e,t,n=`/`){let r,i={}
3,a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Ja(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:La(o)}}function Va(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Ha(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Ua(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Wa(t.matched[r],n.matched[i])&&Ga(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Wa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ga(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ka(e[n],t[n]))return!1;return!0}function Ka(e,t){return oa(e)?qa(e,t):oa(t)?qa(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function qa(e,t){return oa(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Ja(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Ya={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function Xa(e){if(!e)if(ta){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),za(e)}var Za=/^[^#]+#/;function Qa(e,t){return e.replace(Za,`#`)+t}function $a(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var eo=()=>({left:window.scrollX,top:window.scrollY});function to(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=$a(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function no(e,t){return(history.state?history.state.position-t:-1)+e}var ro=new Map;function io(e,t){ro.set(e,t)}function ao(e){let t=ro.get(e);return ro.delete(e),t}function oo(e){return typeof e==`string`||e&&typeof e==`object`}function so(e){return typeof e==`string`||typeof e==`symbol`}function co(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Sa,` `),i=r.indexOf(`=`),a=La(i<0?r:r.slice(0,i)),o=i<0?null:La(r.slice(i+1));if(a in t){let e=t[a];oa(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function lo(e){let t=``;for(let n in e){let r=e[n];if(n=Pa(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(oa(r)?r.map(e=>e&&Na(e)):[r&&Na(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function uo(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=oa(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function fo(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function po(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(la(4,{from:n,to:t})):e instanceof Error?c(e):oo(e)?c(la(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function mo(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(na(s)){let c=(s.__vccOpts||s)[t];c&&a.push(po(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=ra(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&po(c,n,r,o,e,i)()}))}}return a}function ho(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>Wa(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Wa(e,s))||i.push(s))}return[n,r,i]}ae();var go=()=>location.protocol+`//`+location.host;function _o(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Ha(n,``)}return Ha(n,e)+r+i}function vo(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=_o(e,location),c=n.value,l=t.value,u=0;
vendor: 4,450 bytes, line 3
3if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(R({},e.state,{scroll:eo()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function yo(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?eo():null}}function bo(e){let{history:t,location:n}=window,r={value:_o(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:go()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,R({},t.state,yo(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=R({},i.value,t.state,{forward:e,scroll:eo()});a(o.current,o,!0),a(e,R({},yo(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function xo(e){e=Xa(e);let t=bo(e),n=vo(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=R({location:``,base:e,go:r,createHref:Qa.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function So(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),xo(e)}function Co(e=``){let t=[],n=[[``,{}]],r=0;e=Xa(e);function i(e,t={}){r++,r!==n.length&&n.splice(r),n.push([e,t])}function a(e,n,{direction:r,delta:i}){let a={direction:r,delta:i,type:`pop`};for(let r of t)r(e,n,a)}let o={location:``,state:{},base:e,createHref:Qa.bind(null,e),replace(e,t){n.splice(r--,1),i(e,t)},push(e,t){i(e,t)},listen(e){return t.push(e),()=>{let n=t.indexOf(e);n>-1&&t.splice(n,1)}},destroy(){t=[],n=[[``,{}]],r=0},go(e,t=!0){let i=this.location,o=e<0?`back`:`forward`;r=Math.max(0,Math.min(r+e,n.length-1)),t&&a(this.location,i,{direction:o,delta:e})}};return Object.defineProperty(o,"location",{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>n[r][1]}),o}var wo={type:0,value:``},To=/[a-zA-Z0-9_]/;function Eo(e){if(!e)return[[]];if(e===`/`)return[[wo]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:To.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Do=`[^/]+?`,Oo={sensitive:!1,strict:!1,start:!0,end:!0},ko=/[.+*?^${}()[\]/\\]/g;function Ao(e,t){let n=R({},Oo,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(ko,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Do;if(u!==Do){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u}
3)(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(oa(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=oa(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function jo(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Mo(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=jo(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(No(r))return 1;if(No(i))return-1}return i.length-r.length}function No(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Po={strict:!1,end:!0,sensitive:!1};
vendor: 4,167 bytes, line 3
3function Fo(e,t,n){let r=R(Ao(Eo(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Io(e,t){let n=[],r=new Map;t=sa(Po,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Ro(e);s.aliasOf=r&&r.record;let l=sa(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Ro(R({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Fo(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Bo(d)&&o(e.name)),Wo(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:aa}function o(e){if(so(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Ho(e,n);n.splice(t,0,e),e.record.name&&!Bo(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw la(1,{location:e});s=i.record.name,a=R(Lo(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Lo(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw la(1,{location:e,currentLocation:t});s=i.record.name,a=R({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Vo(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Lo(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Ro(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:zo(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function zo(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Bo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Vo(e){return e.reduce((e,t)=>R(e,t.meta),{})}function Ho(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Mo(e,t[i])<0?r=i:n=i+1}let i=Uo(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Uo(e){let t=e;for(;t=t.parent;)if(Wo(t)&&Mo(e,t)===0)return t}function Wo({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Go(e){let t=c(pa),n=c(ma),r=k(()=>{let n=h(e.to);return t.resolve(n)}),i=k(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Wa.bind(null,i));if(o>-1)return o;let s=Xo(e[t-2]);return t>1&&Xo(i)===s&&a[a.length-1].path!==s?a.findIndex(Wa.bind(null,e[t-2])):o}),a=k(()=>i.value>-1&&Yo(n.params,r.value.params)),o=k(()=>i.value>-1&&i.value===n.matched.length-1&&Ga(n.params,r.value.params));function s(n={}){if(Jo(n)){let n=t[h(e.replace)?`replace`:`push`](h(e.to)).catch(aa);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:k(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Ko(e){return e.length===1?e[0]:e}var qo=s({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Go,setup(e,{slots:t}){let n=O(Go(e)),{options:r}
3=c(pa),i=k(()=>({[Zo(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Zo(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Ko(t.default(n));return e.custom?r:C(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Jo(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Yo(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!oa(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Xo(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Zo=(e,t,n)=>e??t??n,Qo=s({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=c(ha),i=k(()=>e.route||r.value),a=c(fa,0),o=k(()=>{let e=h(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=k(()=>i.value.matched[o.value]);d(fa,k(()=>o.value+1)),d(da,s),d(ha,i);let u=v();return l(()=>[u.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Wa(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,c=o&&o.components[a];if(!c)return $o(n.default,{Component:c,route:r});let l=o.props[a],d=C(c,R({},l?l===!0?r.params:typeof l==`function`?l(r):l:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:u}));return $o(n.default,{Component:d,route:r})||d}}});function $o(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var es=Qo;function ts(e){let t=Io(e.routes,e),n=e.parseQuery||co,r=e.stringifyQuery||lo,a=e.history,o=fo(),s=fo(),c=fo(),l=x(Ya),u=Ya;ta&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=ia.bind(null,e=>``+e),f=ia.bind(null,Ia),p=ia.bind(null,La);function m(e,n){let r,i;return so(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function g(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function _(){return t.getRoutes().map(e=>e.record)}function v(e){return!!t.getRecordMatcher(e)}function y(e,i){if(i=R({},i||l.value),typeof e==`string`){let r=Ba(n,e,i.path),o=t.resolve({path:r.path},i),s=a.createHref(r.fullPath);return R(r,o,{params:p(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=R({},e,{path:Ba(n,e.path,i.path).path});else{let t=R({},e.params);for(let e in t)t[e]??delete t[e];o=R({},e,{params:f(t)}),i.params=f(i.params)}let s=t.resolve(o,i),c=e.hash||``;s.params=d(p(s.params));let u=Va(r,R({},e,{hash:Ma(c),path:s.path})),m=a.createHref(u);return R({fullPath:u,hash:c,query:r===lo?uo(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function b(e){return typeof e==`string`?Ba(n,e,l.value.path):R({},e)}function S(e,t){if(u!==e)return la(8,{from:t,to:e})}function C(e){return E(e)}function w(e){return C(R(b(e),{replace:!0}))}function T(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=b(i):{path:i},i.params={}),R({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=u=y(e),i=l.value,a=e.state,o=e.force,s=e.replace===!0,c=T(n,i);if(c)return E(R(b(c),{state:typeof c==`object`?R({},a,c.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Ua(r,i,n)&&(f=la(16,{to:d,from:i}),ue(i,i,!0,!1)),(f?Promise.resolve(f):te(d,i)).catch(e=>ua(e)?ua(e,2)?e:le(e):A(e,d,i)).then(e=>{if(e){if(ua(e,2))return E(R({replace:s},b(e.to),{state:typeof e.to==`object`?R({},a,e.to.state):a,force:o}),t||d)}else e=ie(d,i,!0,s,a);return re(d,i,e),e})}function ee(e,t){let n=S(e,t);return n?Promise.reject(n):Promise.resolve()}function D(e){let t=pe.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function te(e,t){let n,[r,i,a]=ho(e,t);n=mo(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(po(r,e,t))});let c=ee.bind(null,e,t);return n.push(c),he(n).then(()=>{n=[];for(let r of o.list())n.push(po(r,e,t));return n.push(c),he(n)}).then(()=>{n=mo(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(po(r,e,t))});return n.push(c),he(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(oa(r.beforeEnter))for(let i of r.beforeEnter)n.push(po(i,e,t));else n.push(po(r.beforeEnter,e,t));return n.push(c),he(n)}).then(()=>
3(e.matched.forEach(e=>e.enterCallbacks={}),n=mo(a,`beforeRouteEnter`,e,t,D),n.push(c),he(n))).then(()=>{n=[];for(let r of s.list())n.push(po(r,e,t));return n.push(c),he(n)}).catch(e=>ua(e,8)?e:Promise.reject(e))}function re(e,t,n){c.list().forEach(r=>D(()=>r(e,t,n)))}function ie(e,t,n,r,i){let o=S(e,t);if(o)return o;let s=t===Ya,c=ta?history.state:{};n&&(r||s?a.replace(e.fullPath,R({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),l.value=e,ue(e,t,n,s),le()}let ae;function O(){ae||=a.listen((e,t,n)=>{if(!me.listening)return;let r=y(e),i=T(r,me.currentRoute.value);if(i){E(R(i,{replace:!0,force:!0}),r).catch(aa);return}u=r;let o=l.value;ta&&io(no(o.fullPath,n.delta),eo()),te(r,o).catch(e=>ua(e,12)?e:ua(e,2)?(E(R(b(e.to),{force:!0}),r).then(e=>{ua(e,20)&&!n.delta&&n.type===`pop`&&a.go(-1,!1)}).catch(aa),Promise.reject()):(n.delta&&a.go(-n.delta,!1),A(e,r,o))).then(e=>{e||=ie(r,o,!1),e&&(n.delta&&!ua(e,8)?a.go(-n.delta,!1):n.type===`pop`&&ua(e,20)&&a.go(-1,!1)),re(r,o,e)}).catch(aa)})}let oe=fo(),se=fo(),k;function A(e,t,n){le(e);let r=se.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ce(){return k&&l.value!==Ya?Promise.resolve():new Promise((e,t)=>{oe.add([e,t])})}function le(e){return k||(k=!e,O(),oe.list().forEach(([t,n])=>e?n(e):t()),oe.reset()),e}function ue(t,n,r,a){let{scrollBehavior:o}=e;if(!ta||!o)return Promise.resolve();let s=!r&&ao(no(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return i().then(()=>o(t,n,s)).then(e=>e&&to(e)).catch(e=>A(e,t,n))}let de=e=>a.go(e),fe,pe=new Set,me={currentRoute:l,listening:!0,addRoute:m,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:_,resolve:y,options:e,push:C,replace:w,go:de,back:()=>de(-1),forward:()=>de(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:se.add,isReady:ce,install(e){e.component(`RouterLink`,qo),e.component(`RouterView`,es),e.config.globalProperties.$router=me,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>h(l)}),ta&&!fe&&l.value===Ya&&(fe=!0,C(a.location).catch(e=>{}));let t={};for(let e in Ya)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(pa,me),e.provide(ma,ne(t)),e.provide(ha,l);let n=e.unmount;pe.add(e),e.unmount=function(){pe.delete(e),pe.size<1&&(u=Ya,ae&&ae(),ae=null,l.value=Ya,fe=!1,k=!1),n()}}};function he(e){return e.reduce((e,t)=>e.then(()=>D(t)),Promise.resolve())}return me}var ns=(e,t,n)=>{let r=t.lastIndexOf(`?`),i=e[r===-1||r<t.lastIndexOf(`/`)?t:t.slice(0,r)];return i?typeof i==`function`?i():Promise.resolve(i):new Promise((e,r)=>{(typeof queueMicrotask==`function`?queueMicrotask:setTimeout)(r.bind(null,Error(`Unknown variable dynamic import: `+t+(t.split(`/`).length===n?``:`. Note that variables only represent file names one level deep.`))))})};ae();var rs=[{locale:`en-CA`,name:`Canada - English`},{locale:`fr-CA`,name:`Canada - Français`},{locale:`fr-FR`,name:`France & International - Français`},{locale:`en-US`,name:`US & International - English`},{locale:`it-IT`,name:`Italiano`},{locale:`nl-BE`,name:`Vlaams`},{locale:`fr-BE`,name:`Belgique - Français`}].map(e=>e.locale),is=`en-US`,as=Hi({globalInjection:!0,legacy:!1,allowComposition:!0,locale:`fr-FR`,fallbackLocale:is,warnHtmlMessage:!1,warnHtmlInMessage:`off`}),os=async(e,{syncHtmlLang:t=!0}={})=>{e=e.replace(`_`,`-`),rs.includes(e)||(e=is),as.global.locale.value=e,t&&document.querySelector(`html`)?.setAttribute(`lang`,e),await ss(e)},ss=async e=>{let t=await ns(Object.assign({
3"./locales/en-CA.json":()=>We(()=>import(`./en-CA-Qus6H-1m.js`),[]),
3"./locales/en-US.json":()=>We(()=>import(`./en-US-BgLUuyMr.js`),[]),
3"./locales/fr-BE.json":()=>We(()=>import(`./fr-BE-DZlI-7BT.js`),[]),
3"./locales/fr-CA.json":()=>We(()=>import(`./fr-CA-BMaOtUwZ.js`),[]),
3"./locales/fr-FR.json":()=>We(()=>import(`./fr-FR-Dw6ORY5J.js`),[]),
3"./locales/it-IT.json":()=>We(()=>import(`./it-IT-BNMNBiRy.js`),[]),
3"./locales/nl-BE.json":()=>We(()=>import(`./nl-BE-wOwMtIdL.js`),[])
3}),`./locales/${e}.json`,3);return as.global.setLocaleMessage(e,t.default),i()};ae();var cs=typeof window<`u`,ls,us=e=>ls=e,ds=()=>a()&&c(fs)||ls,fs=Symbol();function ps(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var ms;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(ms||={});var hs=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function gs(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function _s(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Ss(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function vs(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ys(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var bs=typeof navigator==`object`?navigator:{userAgent:``},xs=/Macintosh/.test(bs.userAgent)&&/AppleWebKit/.test(bs.userAgent)&&!/Safari/.test(bs.userAgent),Ss=cs?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!xs?Cs:`msSaveOrOpenBlob`in bs?ws:Ts:()=>{};function Cs(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?ys(r):vs(r.href)?_s(e,t,n):(r.target=`_blank`,ys(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){ys(r)},0))}function ws(e,t=`download`,n){if(typeof e==`string`)if(vs(e))_s(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){ys(t)})}else navigator.msSaveOrOpenBlob(gs(e,n),t)}function Ts(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return _s(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(hs.HTMLElement))||`safari`in hs,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||xs)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:Es}=Object;function Ds(){let e=re(!0),t=e.run(()=>v({})),n=[],r=[],i=g({install(e){us(i),i._a=e,e.provide(fs,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var Os=()=>{};function ks(e,t,n,r=Os){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&S()&&T(i),i}function As(e,...t){e.forEach(e=>{e(...t)})}var js=e=>e(),Ms=Symbol(),Ns=Symbol();function Ps(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];ps(i)&&ps(r)&&e.hasOwnProperty(n)&&!ie(r)&&!te(r)?e[n]=Ps(i,r):e[n]=r}return e}var Fs=Symbol();function Is(e){return!ps(e)||!Object.prototype.hasOwnProperty.call(e,Fs)}var{assign:Ls}=Object;function Rs(e){return!!(ie(e)&&e.effect)}function zs(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),Ls(se(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=g(k(()=>{us(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=Bs(e,l,t,n,r,!0),c}function Bs(e,t,n={},r,a,o){let s,c=Ls({actions:{}},n),u={deep:!0},d,f,p=new Set,m=new Set,h=r.state.value[e];!o&&!h&&(r.state.value[e]={}),v({});let g;function _(t){let n;d=f=!1,typeof t==`function`?(t(r.state.value[e]),n={type:ms.patchFunction,storeId:e,events:void 0}):(Ps(r.state.value[e],t),n={type:ms.patchObject,payload:t,storeId:e,events:void 0});let a=g=Symbol();i().then(()=>{g===a&&(d=!0)}),f=!0,As(p,n,r.state.value[e])}let b=o?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{Ls(e,t)})}:Os;function x(){s.stop(),p.clear(),m.clear(),r._s.delete(e)}let S=(t,n=``)=>{if(Ms in t)return t[Ns]=n,t;let i=function(){us(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}As(m,{args:n,name:i[Ns],store:C,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:C,n)}catch(e){throw As(o,e),e}return l instanceof Promise?l.then(e=>(As(a,e),e)).catch(e=>(As(o,e),Promise.reject(e))):(As(a,l),l)};return i[Ms]=!0,i[Ns]=n,i},C=O({_p:r,$id:e,$onAction:ks.bind(null,m),$patch:_,$reset:b,$subscribe(t,n={}){let i=ks(p,t,n.detached,()=>a()),a=s.run(()=>l(()=>r.state.value[e],r=>{(n.flush===`sync`?f:d)&&t({storeId:e,type:ms.direct,events:void 0},r)},Ls({},u,n)));return i},$dispose:x});r._s.set(e,C);let w=(r._a&&r._a.runWithContext||js)(()=>r._e.run(()=>(s=re()).run(()=>t({action:S}
3))));for(let t in w){let n=w[t];ie(n)&&!Rs(n)||te(n)?o||(h&&Is(n)&&(ie(n)?n.value=h[t]:Ps(n,h[t])),r.state.value[e][t]=n):typeof n==`function`&&(w[t]=S(n,t),c.actions[t]=n)}return Ls(C,w),Ls(y(C),w),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:e=>{_(t=>{Ls(t,e)})}}),r._p.forEach(e=>{Ls(C,s.run(()=>e({store:C,app:r._a,pinia:r,options:c})))}),h&&o&&n.hydrate&&n.hydrate(C.$state,h),d=!0,f=!0,C}function Vs(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function o(n,o){let s=a();return n||=s?c(fs,null):null,n&&us(n),n=ls,n._s.has(e)||(i?Bs(e,t,r,n):zs(e,r,n)),n._s.get(e)}return o.$id=e,o}function Hs(e,t){return Array.isArray(t)?t.reduce((t,n)=>(t[n]=function(){return e(this.$pinia)[n]},t),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){let n=e(this.$pinia),i=t[r];return typeof i==`function`?i.call(this,n):n[i]},n),{})}function Us(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Te(e,()=>t.signal,()=>n=!0)},u=De(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Ae:Ne;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Gs:Ws,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Ws(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Ws(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gs(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function Ks(e,t){return t?Ws(e,t)!=null:!1}function qs(e,t){return!t||!e.getPreviousPageParam?!1:Gs(e,t)!=null}var Js=class extends Oe{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Zs(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Zs(this.options);e.data!==void 0&&(this.setState(Xs(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Ie(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(ve).catch(ve):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>ye(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ke||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>he(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!pe(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pen
3ding`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=De(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Us(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Pe({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof xe&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof xe){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Ys(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Xs(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),j.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Ys(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Me(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Xs(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Zs(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Qs=class extends Oe{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||$s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}
3optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Pe({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),j.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function $s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ec=class extends _e{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Qs({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=tc(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=tc(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=tc(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=tc(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>
vendor: 6,309 bytes, line 3
3t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){j.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Se(t,e))}findAll(e={}){return this.getAll().filter(t=>Se(e,t))}notify(e){j.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return j.batch(()=>Promise.all(e.map(e=>e.continue().catch(ve))))}};function tc(e){return e.options.scope?.id}var nc=class extends _e{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Fe(r,t),a=this.get(i);return a||(a=new Js({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){j.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Le(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Le(e,t)):t}notify(e){j.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){j.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){j.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},rc=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new nc,this.#t=e.mutationCache||new ec,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=ge.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ce.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(he(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Ee(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return j.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;j.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return j.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=j.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(ve).catch(ve)}invalidateQueries(e,t={}){return j.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=j.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(ve)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(ve)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(he(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ve).catch(ve)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ve).catch(ve)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Ce.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(be(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{me(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(be(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{me(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Fe(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ke&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},ic=class extends nc{find(e){return super.find(M(e))}findAll(e={}){return super.findAll(M(e))}},ac=class extends ec{find(e){return super.find(M(e))}findAll(e={}){return super.findAll(M(e))}};o(),m();var oc=class extends rc{constructor(e={}){let t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new ic,mutationCache:e.mutationCache||new ac};super(t),this.isRestoring=v(!1)}isFetching(e={}){return super.isFetching(M(e))}isMutating(e={}){return super.isMutating(M(e))}getQueryData(e){return super.getQueryData(M(e))}ensureQueryData(e){return super.ensureQueryData(M(e))}getQueriesData(e){return super.getQueriesData(M(e))}setQueryData(e,t,n={}){return super.setQueryData(M(e),t,M(n))}
3setQueriesData(e,t,n={}){return super.setQueriesData(M(e),t,M(n))}getQueryState(e){return super.getQueryState(M(e))}removeQueries(e={}){return super.removeQueries(M(e))}resetQueries(e={},t={}){return super.resetQueries(M(e),M(t))}cancelQueries(e={},t={}){return super.cancelQueries(M(e),M(t))}invalidateQueries(e={},t={}){let n=M(e),r=M(t);if(super.invalidateQueries({...n,refetchType:`none`},r),n.refetchType===`none`)return Promise.resolve();let a={...n,type:n.refetchType??n.type??`active`};return i().then(()=>super.refetchQueries(a,r))}refetchQueries(e={},t={}){return super.refetchQueries(M(e),M(t))}fetchQuery(e){return super.fetchQuery(M(e))}prefetchQuery(e){return super.prefetchQuery(M(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(M(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(M(e))}setDefaultOptions(e){super.setDefaultOptions(M(e))}setQueryDefaults(e,t){super.setQueryDefaults(M(e),M(t))}getQueryDefaults(e){return super.getQueryDefaults(M(e))}setMutationDefaults(e,t){super.setMutationDefaults(M(e),M(t))}getMutationDefaults(e){return super.getMutationDefaults(M(e))}},sc={install:(e,t={})=>{let n=je(t.queryClientKey),r;r=`queryClient`in t&&t.queryClient?t.queryClient:new oc(`queryClientConfig`in t?t.queryClientConfig:void 0),we.isServer()||r.mount();let i=()=>{};if(t.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);let[e,n]=t.clientPersister(r);i=e,n.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),t.clientPersisterOnSuccess?.(r)})}let a=()=>{r.unmount(),i()};if(e.onUnmount)e.onUnmount(a);else{let t=e.unmount;e.unmount=function(){a(),t()}}e.provide(n,r)}},z=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,B=globalThis,cc=`10.57.0`;function lc(){return uc(B),B}function uc(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.57.0`,t[cc]=t[`10.57.0`]||{}}function dc(e,t,n=B){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[cc]=r[`10.57.0`]||{};return i[e]||(i[e]=t())}var fc=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],pc=`Sentry Logger `,mc={};function hc(e){if(!(`console`in B))return e();let t=B.console,n={},r=Object.keys(mc);r.forEach(e=>{let r=mc[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function gc(){Cc().enabled=!0}function _c(){Cc().enabled=!1}function vc(){return Cc().enabled}function yc(...e){Sc(`log`,...e)}function bc(...e){Sc(`warn`,...e)}function xc(...e){Sc(`error`,...e)}function Sc(e,...t){z&&vc()&&hc(()=>{B.console[e](`${pc}[${e}]:`,...t)})}function Cc(){return z?dc(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var V={enable:gc,disable:_c,isEnabled:vc,log:yc,warn:bc,error:xc},wc=50,Tc=/\(error: (.*)\)/,Ec=/captureMessage|captureException/;function Dc(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(` 4`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=Tc.test(n)?n.replace(Tc,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=wc+r)break}}return kc(i.slice(r))}}function Oc(e){return Array.isArray(e)?Dc(...e):e}function kc(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Ac(t).function||``)&&t.pop(),t.reverse(),Ec.test(Ac(t).function||``)&&(t.pop(),Ec.test(Ac(t).function||``)&&t.pop()),t.slice(0,wc).map(e=>({...e,filename:e.filename||Ac(t).filename,function:e.function||`?`}))}function Ac(e){return e[e.length-1]||{}}var jc=`<anonymous>`;function Mc(e){try{return!e||typeof e!=`function`?jc:e.name||jc}catch{return jc}}function Nc(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var Pc={},Fc={};function Ic(e,t){return Pc[e]=Pc[e]||[],Pc[e].push(t),()=>{let n=Pc[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function Lc(e,t){if(!Fc[e]){Fc[e]=!0;try{t()}catch(t){z&&V.error(`Error while instrumenting ${e}`,t)}}}function Rc(e,t){let n=e&&Pc[e];if(n)for(let r of n)try{r(t)}catch(t){z&&V.error(`Error while triggering instrumentation handler. 5Type: ${e} 6Name: ${Mc(r)} 7Error:`,t)}}var zc=null;function Bc(e){let t=`error`;Ic(t,e),Lc(t,Vc)}function Vc(){zc=B.onerror,B.onerror=function(e,t,n,r,i){return Rc(`error`,{column:r,error:i,line:n,msg:e,url:t}),zc?zc.apply(this,arguments):!1},B.onerror.__SENTRY_INSTRUMENTED__=!0}var Hc=null;function Uc(e){let t=`unhandledrejection`;Ic(t,e),Lc(t,Wc)}function Wc(){Hc=B.onunhandledrejection,B.onunhandledrejection=function(e){return Rc(`unhandledrejection`,e),Hc?Hc.apply(this,arguments):!0},B.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Gc=Object.prototype.toString;function Kc(e){switch(Gc.call(e)){case`[object Error]`:case`[object E
7xception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return il(e,Error)}}function qc(e,t){return Gc.call(e)===`[object ${t}]`}function Jc(e){return qc(e,`ErrorEvent`)}function Yc(e){return qc(e,`DOMError`)}function Xc(e){return qc(e,`DOMException`)}function Zc(e){return qc(e,`String`)}function Qc(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function $c(e){return e===null||Qc(e)||typeof e!=`object`&&typeof e!=`function`}function el(e){return qc(e,`Object`)}function tl(e){return typeof Event<`u`&&il(e,Event)}function nl(e){return qc(e,`RegExp`)}function rl(e){return!!(e?.then&&typeof e.then==`function`)}function il(e,t){try{return e instanceof t}catch{return!1}}function al(e){return typeof Request<`u`&&il(e,Request)}function ol(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&cl(i,r);try{e[t]=i}catch{z&&V.log(`Failed to replace method "${t}" in object`,e)}}function sl(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{z&&V.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function cl(e,t){try{e.prototype=t.prototype=t.prototype||{},sl(e,`__sentry_original__`,t)}catch{}}function ll(e){return e.__sentry_original__}function ul(e){if(Kc(e))return{message:e.message,name:e.name,stack:e.stack,...dl(e)};if(tl(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...dl(e)}}return e}function dl(e){return typeof e==`object`&&e?Object.fromEntries(Object.entries(e)):{}}function fl(e){let t=Object.keys(ul(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var pl;function ml(e){if(pl!==void 0)return pl?pl(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=B;return t in n&&typeof n[t]==`function`?(pl=n[t],pl(e)):(pl=null,e())}function hl(){return ml(()=>Math.random())}function gl(){return ml(()=>Date.now())}var _l=Symbol.for(`sentry.skipNormalization`),vl=Symbol.for(`sentry.overrideNormalizationDepth`);function yl(e){return!!e[_l]}function bl(e){let t=e[vl];return typeof t==`number`?t:void 0}var xl;function Sl(e){xl=e}function Cl(e,t=100,n=1/0){try{return Tl(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function wl(e,t=3,n=100*1024){let r=Cl(e,t);return kl(r)>n?wl(e,t-1,n):r}function Tl(e,t,n=1/0,r=1/0,i=Al()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=El(e,t);if(!s.startsWith(`[object `))return s;if(yl(t))return t;let c=bl(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return Tl(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=ul(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=Tl(e,t,l-1,r,i),f++}return o(t),d}function El(e,t){try{if(xl){let e=xl(t);if(e)return e}return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${Mc(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${Dl(t)}]`}catch(e){return`**non-serializable** (${e})`}}function Dl(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Ol(e){return~-encodeURI(e).split(/%..|./).length}function kl(e){return Ol(JSON.stringify(e))}function Al(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function jl(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ml(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];$c(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(El(void 0,r))}return n.join(t)}function Nl(e,t,n=!1){return Zc(e)?nl(t)?t.test(e):Zc(t)?n?e===t:e.includes(t):typeof t==`function`?t(e):!1:!1}function Pl(e,t=[],n=!1){for(let r of t)if(Nl(e,r,n))return!0;return!1}function Fl(){let e=B;return e.crypto||e.msCrypto}var Il;function Ll(){return hl()*16}function Rl(e=Fl()){try{if(e?.randomUUID)return ml(()=>e.randomUUID()).replace(/-/g,``)}catch{}return Il||=`10000000100040008000100000000000`,Il.replace(/[018]/g,e=>(e^(Ll()&15)>>e/4).toString(16))}function zl(e){return e.exception?.values?.[0]}function Bl(e){let{message:t,event_id:n}=e;if(t)return t;let r=zl(e);return r?r.type&&r.value?`${r.type}: ${r.value}
7`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function Vl(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function Hl(e,t){let n=zl(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function Ul(e){if(Wl(e))return!0;try{sl(e,`__sentry_captured__`,!0)}catch{}return!1}function Wl(e){try{return e.__sentry_captured__}catch{}}var Gl=1e3;function Kl(){return gl()/Gl}function ql(){let{performance:e}=B;if(!e?.now||!e.timeOrigin)return Kl;let t=e.timeOrigin;return()=>(t+ml(()=>e.now()))/Gl}var Jl;function Yl(){return(Jl??=ql())()}var Xl=null;function Zl(){let{performance:e}=B;if(!e?.now)return;let t=3e5,n=ml(()=>e.now()),r=gl(),i=e.timeOrigin;if(typeof i==`number`&&Math.abs(i+n-r)<t)return i;let a=e.timing?.navigationStart;return typeof a==`number`&&Math.abs(a+n-r)<t?a:r-n}function Ql(){return Xl===null&&(Xl=Zl()),Xl}function $l(e){let t=Yl(),n={sid:Rl(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>nu(n)};return e&&eu(n,e),n}function eu(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Yl(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Rl()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function tu(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),eu(e,n)}function nu(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function ru(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=ru(r[e],t[e],n-1));return r}function iu(){return Rl()}function au(){return Rl().substring(16)}function ou(e){try{let t=B.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function su(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var cu=`_sentrySpan`;function lu(e,t){t?sl(e,cu,ou(t)):delete e[cu]}function uu(e){return su(e[cu])}var du=100,fu=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:iu(),sampleRand:hl()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,lu(t,uu(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&eu(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},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,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():el(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,lu(this,void 0),this._attachments=[],this.setPropagationContext({traceId:iu(),sampleRand:hl()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:du;if(n<=0)return this;let r={timestamp:Kl(),...e,message:e.message?jl(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),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}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:uu(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=ru(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||Rl();if(!this._client)return z&&V.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||Rl();if(!this._client)return z&&V.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||Rl();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(z&&V.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
7h(e=>{e(this)}),!1)}};function pu(){return dc(`defaultCurrentScope`,()=>new fu)}function mu(){return dc(`defaultIsolationScope`,()=>new fu)}var hu=e=>e instanceof Promise&&!e[gu],gu=Symbol(`chained PromiseLike`),_u=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return hu(r)&&hu(e)?r:vu(e,r)},vu=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[gu]:!0}),t},yu=class{constructor(e,t){let n;n=e||new fu;let r;r=t||new fu,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return rl(n)?_u(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function bu(){let e=uc(lc());return e.stack=e.stack||new yu(pu(),mu())}function xu(e){return bu().withScope(e)}function Su(e,t){let n=bu();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Cu(e){return bu().withScope(()=>e(bu().getIsolationScope()))}function wu(){return{withIsolationScope:Cu,withScope:xu,withSetScope:Su,withSetIsolationScope:(e,t)=>Cu(t),getCurrentScope:()=>bu().getScope(),getIsolationScope:()=>bu().getIsolationScope()}}function Tu(e){let t=uc(e);return t.acs?t.acs:wu()}function Eu(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function Du(e,t){let{value:n,unit:r}=Eu(e)?e:{value:e,unit:void 0},i=ku(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function Ou(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=Du(i,t);e&&(n[r]=e)}return n}function ku(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}var Au;function ju(){return Au?.()}function Mu(){return Au!==void 0}function H(){return Tu(lc()).getCurrentScope()}function Nu(){return Tu(lc()).getIsolationScope()}function Pu(){return dc(`globalScope`,()=>new fu)}function Fu(...e){let t=Tu(lc());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function U(){return H().getClient()}function Iu(e){let t=ju();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||au()};return r&&(a.parent_span_id=r),a}var Lu=`sentry.source`,Ru=`sentry.sample_rate`,zu=`sentry.previous_trace_sample_rate`,Bu=`sentry.op`,Vu=`sentry.origin`,Hu=`sentry.idle_span_finish_reason`,Uu=`sentry.measurement_unit`,Wu=`sentry.measurement_value`,Gu=`sentry.custom_span_name`,Ku=`sentry.profile_id`,qu=`sentry.exclusive_time`,Ju=`sentry.link.type`,Yu=`gen_ai.conversation.id`;function Xu(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`internal_error`}}function Zu(e,t){e.setAttribute(`http.response.status_code`,t);let n=Xu(t);n.message!==`unknown_error`&&e.setStatus(n)}var Qu=`_sentryScope`,$u=`_sentryIsolationScope`;function ed(e,t,n){e&&(sl(e,$u,ou(n)),sl(e,Qu,t))}function td(e){let t=e;return{scope:t[Qu],isolationScope:su(t[$u])}}var nd=`sentry-`;function rd(e){let t=ad(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function id(e){if(e)return sd(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${nd}${t}`]=n),e),{}))}function ad(e){if(!(!e||!Zc(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>
7{let n=od(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):od(e)}function od(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function sd(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=r===0?i:`${e},${i}`;return a.length>8192?(z&&V.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},``)}var cd=/^o(\d+)\./,ld=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function ud(e){return e===`http`||e===`https`}function dd(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function fd(e){let t=ld.exec(e);if(!t){hc(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return pd({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function pd(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function md(e){if(!z)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(V.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?ud(r)?t&&isNaN(parseInt(t,10))?(V.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(V.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(V.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function hd(e){return e.match(cd)?.[1]}function gd(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=hd(n)),r}function _d(e){let t=typeof e==`string`?fd(e):pd(e);if(!(!t||!md(t)))return t}function vd(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var yd=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function bd(e){if(!e)return;let t=e.match(yd);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function xd(e,t){let n=bd(e),r=rd(t);if(!n?.traceId)return{traceId:iu(),sampleRand:hl()};let i=wd(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function Sd(e=iu(),t=au(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function Cd(e=iu(),t=au(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function wd(e,t){let n=vd(t?.sample_rand);if(n!==void 0)return n;let r=vd(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?hl()*r:r+hl()*(1-r):hl()}var Td=!1;function Ed(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=W(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function Dd(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:W(e).parent_span_id,a=td(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||au():t,trace_id:n}}function Od(e){let{traceId:t,spanId:n}=e.spanContext();return Sd(t,n,zd(e))}function kd(e){let{traceId:t,spanId:n}=e.spanContext();return Cd(t,n,zd(e))}function Ad(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function jd(e){if(e?.length)return e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===1,attributes:r}))}function Md(e){return typeof e==`number`?Nd(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Nd(e.getTime()):Yl()}function Nd(e){return e>9999999999?e/1e3:e}function W(e){if(Rd(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Ld(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:Fd(e),start_timestamp:Md(i),timestamp:Md(o)||void 0,status:Bd(s),op:r[Bu],origin:r[Vu],links:Ad(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Pd(e){if(Rd(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Ld(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:Fd(e),start_timestamp:Md(i),end_timestamp:Md(o),is_segment:e===Jd(e),status:Vd(s),attributes:r,links:jd(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:``,end_timestamp:0,status:`ok`,is_segment:e===Jd(e)}}function Fd(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function Id(e){return{...e,attributes:Ou(e.attributes),links:e.links?.map(e=>({...e,attributes:Ou(e.attributes)}))}}function Ld(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Rd(e){return typeof e.getSpanJSON==`function`}function zd(e){let{traceFlags:t}=e.spanContext();return t===1}function Bd(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}function Vd(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}var Hd=`_sentryChildSpans`,Ud=`_sentryRootSpan`;function Wd(e,t){sl(t,Ud,e[Ud]||e),e[Hd]?e[Hd].add(t):sl(e,Hd,new Set([t]))}function Gd(e,t){e[Hd]&&e[Hd].delete(t)}function Kd(e){let t=new Set;function n(e){if(!t.has(e)&&zd(e)){t.add(e);let r=e[Hd]?Array.from(e[Hd]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var qd=Jd;
7function Jd(e){return e[Ud]||e}function Yd(){let e=Tu(lc());return e.getActiveSpan?e.getActiveSpan():uu(H())}function Xd(){Td||=(hc(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}var Zd=!1;function Qd(){if(Zd)return;function e(){let e=Yd(),t=e&&qd(e);if(t){let e=`internal_error`;z&&V.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}Zd=!0,Bc(e),Uc(e)}function $d(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||U()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function ef(e){V.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function tf(e,t){if(!t?.length)return!1;for(let n of t){if(af(n)){if(e.description&&Nl(e.description,n))return z&&ef(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=n.name?e.description&&Nl(e.description,n.name):!0,i=n.op?e.op&&Nl(e.op,n.op):!0,a=n.attributes?Object.entries(n.attributes).every(([t,n])=>nf(e.attributes?.[t],n)):!0;if(r&&i&&a)return z&&ef(e),!0}return!1}function nf(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?Nl(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function rf(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function af(e){return typeof e==`string`||e instanceof RegExp}var of=`production`,sf=`_frozenDsc`;function cf(e,t){sl(e,sf,t)}function lf(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:gd(t)};return t.emit(`createDsc`,i),i}function uf(e,t){let n=t.getPropagationContext();return n.dsc||lf(n.traceId,e)}function df(e){let t=U();if(!t)return{};let n=qd(e),r=W(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[sf];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&rd(l);if(u)return s(u);let d=lf(e.spanContext().traceId,t),f=i[`sentry.source`]??i[`sentry.span.source`],p=r.description;return f!==`url`&&p&&(d.transaction=p),$d()&&(d.sampled=String(zd(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??td(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}var ff=class{constructor(e={}){this._traceId=e.traceId||iu(),this._spanId=e.spanId||au(),this.dropReason=e.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function pf(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}function mf(e,t=[]){return[e,t]}function hf(e,t){let[n,r]=e;return[n,[...r,t]]}function gf(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function _f(e,t){return gf(e,(e,n)=>t.includes(n))}function vf(e){let t=uc(B);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function yf(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[vf(r),e]:r.push(typeof e==`string`?vf(e):e)}for(let e of n){let[t,n]=e;if(i(` 8${JSON.stringify(t)} 9`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Cl(n))}i(e)}}return typeof r==`string`?r:bf(r)}function bf(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function xf(e){return[{type:`span`},e]}function Sf(e){let t=typeof e.data==`string`?vf(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Cf={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,trace_metric:`metric`};function wf(e){return e in Cf}function Tf(e){return wf(e)?Cf[e]:e}function Ef(e){if(!e?.sdk)return;
9let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Df(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(gl()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:dd(r)},...i&&{trace:i}}}function Of(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function kf(e,t,n,r){let i=Ef(n);return mf({sent_at:new Date(gl()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:dd(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function Af(e,t,n,r){let i=Ef(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Of(e,n?.sdk);let o=Df(e,i,r,t);return delete e.sdkProcessingMetadata,mf(o,[[{type:a},e]])}function jf(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=df(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date(gl()).toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:dd(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>{let t=W(e);return!tf({description:t.description,op:t.op,attributes:t.data},c)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=W(e);return(pf(s)?t:s(t))||(Xd(),t)}:W,f=[];for(let e of l){let t=d(e);t&&f.push(xf(t))}return mf(o,f)}function Mf(e){if(!z)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=W(e),{spanId:i}=e.spanContext(),a=zd(e),o=qd(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){let{op:e,description:t}=W(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}V.log(`${c} 10 ${l.join(` 11 `)}`)}function Nf(e){if(!z)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=W(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${qd(e)===e?`root `:``}span "${t}" with ID ${r}`;V.log(i)}function Pf(e,t,n,r=Yd()){let i=r&&qd(r);i&&(z&&V.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Wu]:t,[Uu]:n}))}function Ff(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[Uu],i=n[Wu];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function If(e){return e.getOptions().traceLifecycle===`stream`}var Lf=1e3,Rf=class{constructor(e={}){this._traceId=e.traceId||iu(),this._spanId=e.spanId||au(),this._startTime=e.startTimestamp||Yl(),this._links=e.links,this._attributes={},this.setAttributes({[Vu]:`manual`,[Bu]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=Md(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(Lu,`custom`),this}end(e){this._endTime||(this._endTime=Md(e),Nf(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Bu],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Bd(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Vu],profile_id:this._attributes[Ku],exclusive_time:this._attributes[qu],measurements:Ff(this._events),is_segment:this._isStandaloneSpan&&qd(this)===this||void 0,segment_id:this._isStandaloneSpan?qd(this).spanContext().spanId:void 0,links:Ad(this._links)}}getStreamedSpanJSON(){return{name:this._name??``,span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===qd(this),status:Vd(this._status),attributes:this._attributes,links:jd(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){z&&V.log(`[Tracing] Adding an event to span:`,e);
11let r=zf(t)?t:n||Yl(),i=zf(t)?{}:t||{},a={name:e,time:Md(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=U();if(e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this)),!(this._isStandaloneSpan||this===qd(this)))return;if(this._isStandaloneSpan){this._sampled?Hf(jf([this],e)):(z&&V.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}else if(e&&If(e)){e.emit(`afterSegmentSpanEnd`,this);return}let t=this._convertSpanToTransaction();t&&(td(this).scope||H()).captureEvent(t)}_convertSpanToTransaction(){if(!Bf(W(this)))return;this._name||=(z&&V.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:e,isolationScope:t}=td(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let r=Kd(this).filter(e=>e!==this&&!Vf(e)).map(e=>W(e)).filter(Bf),i=this._attributes[Lu];delete this._attributes[Gu];let a=!1;r.forEach(e=>{delete e.data[Gu],e.op?.startsWith(`gen_ai.`)&&(a=!0)});let o={contexts:{trace:Ed(this)},spans:r.length>Lf?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Lf):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:df(this),hasGenAiSpans:a},request:n,...i&&{transaction_info:{source:i}}},s=Ff(this._events);return s&&Object.keys(s).length&&(z&&V.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(s,void 0,2)),o.measurements=s),o}};function zf(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Bf(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Vf(e){return e instanceof Rf&&e.isStandaloneSpan()}function Hf(e){let t=U();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function Uf(e,t,n){if(!$d(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=vd(i);if(a===void 0)return z&&V.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return z&&V.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`}`),[!1,a,r];let o=n<a;return o||z&&V.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,a,r]}var Wf=`__SENTRY_SUPPRESS_TRACING__`;function Gf(e){let t=Yf();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=Jf(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>Fu(e.scope,t):i===void 0?e=>e():e=>Kf(i,e))(()=>{let t=H(),a=Qf(t,i),o=U();return e.onlyIfParent&&!a?(o?.recordDroppedEvent(`no_parent_span`,`span`),new ff):qf({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function Kf(e,t){let n=Yf();return n.withActiveSpan?n.withActiveSpan(e,t):Fu(n=>(lu(n,e||void 0),t(n)))}function qf({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!$d()){let r=new ff;return(n||!e)&&cf(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...df(r)}),r}let i=U();if($f(i,t))return ep(r)||i?.recordDroppedEvent(`ignored`,`span`),new ff({dropReason:`ignored`,traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});let a=Nu(),o;if(e&&!n)o=Zf(e,r,t),Wd(e,o);else if(e){let n=df(e),{traceId:i,spanId:a}=e.spanContext(),s=zd(e);o=Xf({traceId:i,parentSpanId:a,...t},r,s),cf(o,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};o=Xf({traceId:e,parentSpanId:i,...t},r,s),n&&cf(o,n)}return Mf(o),ed(o,r,a),o}function Jf(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=Md(e.startTime),delete n.startTime,n}return t}function Yf(){return Tu(lc())}function Xf(e,t,n){let r=U(),i=r?.getOptions()||{},{name:a=``}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit(`beforeSampling`,o,{decision:!1});let s=o.parentSampled??n,c=o.spanAttributes,l=t.getPropagationContext(),u=ep(t),[d,f,p]=u?[!1]:Uf(i,{name:a,parentSampled:s,attributes:c,parentSampleRate:vd(l.dsc?.sample_rate)},l.sampleRand),m=new Rf({...e,attributes:{[Lu]:`custom`,[Ru]:f!==void 0&&p?f:void 0,...c},sampled:d});return!d&&r&&!u&&(z&&V.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),r.recordDroppedEvent(`sample_rate`,If(r)?`span`:`transaction`)),r&&r.emit(`spanStart`,m),m}function Zf(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=ep(t),o=a?!1:zd(e),s=o?new Rf({...n,parentSpanId:r,traceId:i,sampled:o}):new ff({traceId:i});Wd(e,s);let c=U();return c?(If(c)&&s instanceof ff&&(e instanceof ff&&e.dropReason?(s.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,`span`)):a||(s.dropReason=`sample_rate`,c.recordDroppedEvent(`sample_rate`,`span`))),c.emit(`spanStart`,s),n.endTimestamp&&(c.emit
11(`spanEnd`,s),c.emit(`afterSpanEnd`,s)),s):s}function Qf(e,t){if(t)return t;if(t===null)return;let n=uu(e);if(!n)return;let r=U();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?qd(n):n}function $f(e,t){let n=e?.getOptions().ignoreSpans;return!e||!If(e)||!n?.length?!1:tf({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function ep(e){return e.getScopeData().sdkProcessingMetadata[Wf]===!0}var tp={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},np=`heartbeatFailed`,rp=`idleTimeout`,ip=`finalTimeout`,ap=`externalFinish`;function op(e,t={}){let n=new Map,r=!1,i,a=ap,o=!t.disableAutoFinish,s=[],{idleTimeout:c=tp.idleTimeout,finalTimeout:l=tp.finalTimeout,childSpanTimeout:u=tp.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:f=!0}=t,p=U();if(!p||!$d()){let e=new ff;return cf(e,{sample_rate:`0`,sampled:`false`,...df(e)}),e}let m=H(),h=Yd(),g=sp(e);g.end=new Proxy(g.end,{apply(e,t,n){if(d&&d(g),t instanceof ff)return;let[r,...i]=n,a=Md(r||Yl()),o=Kd(g).filter(e=>e!==g),s=W(g);if(!o.length||!f)return S(a),Reflect.apply(e,t,[a,...i]);let c=p.getOptions().ignoreSpans,u=o?.reduce((e,t)=>{let n=W(t);return!n.timestamp||c&&tf({description:n.description,op:n.op,attributes:n.data},c)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),m=s.start_timestamp,h=Math.min(m?m+l/1e3:1/0,Math.max(m||-1/0,Math.min(a,u||1/0)));return S(h),Reflect.apply(e,t,[h,...i])}});function _(){i&&=(clearTimeout(i),void 0)}function v(e){_(),i=setTimeout(()=>{!r&&n.size===0&&o&&(a=rp,g.end(e))},c)}function y(e){i=setTimeout(()=>{!r&&o&&(a=np,g.end(e))},u)}function b(e){_(),n.set(e,!0),y(Yl()+u/1e3)}function x(e){n.has(e)&&n.delete(e),n.size===0&&v(Yl()+c/1e3)}function S(e){r=!0,n.clear(),s.forEach(e=>e()),lu(m,h);let t=W(g),{start_timestamp:i}=t;if(!i)return;t.data[`sentry.idle_span_finish_reason`]||g.setAttribute(Hu,a);let o=t.status;(!o||o===`unknown`)&&g.setStatus({code:1}),V.log(`[Tracing] Idle span "${t.op}" finished`);let u=Kd(g).filter(e=>e!==g),d=0;u.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),z&&V.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=W(t),i=r<=e,a=(l+c)/1e3,o=n-r<=a;if(z){let e=JSON.stringify(t,void 0,2);i?o||V.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):V.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!o||!i)&&(Gd(g,t),d++)}),d>0&&g.setAttribute(`sentry.idle_span_discarded_spans`,d)}return s.push(p.on(`spanStart`,e=>{r||e===g||W(e).timestamp||e instanceof Rf&&e.isStandaloneSpan()||Kd(g).includes(e)&&b(e.spanContext().spanId)})),s.push(p.on(`spanEnd`,e=>{r||x(e.spanContext().spanId)})),s.push(p.on(`idleSpanEnableAutoFinish`,e=>{e===g&&(o=!0,v(),n.size&&y())})),t.disableAutoFinish||v(),setTimeout(()=>{r||(g.setStatus({code:2,message:`deadline_exceeded`}),a=ip,g.end())},l),g}function sp(e){let t=Gf(e);return lu(H(),t),z&&V.log(`[Tracing] Started span is an idle span`),t}function cp(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;fp(e,t),r&&hp(e,r),gp(e,n),pp(e,i),mp(e,a)}function lp(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;up(e,`extra`,n),up(e,`tags`,r),up(e,`attributes`,i),up(e,`user`,a),up(e,`contexts`,o),e.sdkProcessingMetadata=ru(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function up(e,t,n){e[t]=ru(e[t],n,1)}function dp(e,t){let n=Pu().getScopeData();return e&&lp(n,e.getScopeData()),t&&lp(n,t.getScopeData()),n}function fp(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function pp(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function mp(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function hp(e,t){e.contexts={trace:Dd(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:df(t),...e.sdkProcessingMetadata};let n=W(qd(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function gp(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}var _p=`thismessage:/`;function vp(e){return`isRelative`in e}function yp(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?_p:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function bp(e){if(vp(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function xp(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Sp(e){return e.split(/[?#]/,1)[0]}function Cp(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function wp(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var Tp=0,Ep=1,Dp=2;function Op(e){return new Ap(t=>{t(e)})}function kp(e){return new Ap((t,n)=>{n(e)})}var Ap=class e{constructor(e){this._state=Tp,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>
11{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===Tp)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Ep&&e[1](this._value),this._state===Dp&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Tp){if(rl(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(Ep,e)},r=e=>{t(Dp,e)};try{e(n,r)}catch(e){r(e)}}};function jp(e,t,n,r=0){try{let i=Mp(t,n,e,r);return rl(i)?i:Op(i)}catch(e){return kp(e)}}function Mp(e,t,n,r){let i=n[r];if(!e||!i)return e;let a=i({...e},t);return z&&a===null&&V.log(`Event processor "${i.id||`?`}" dropped event`),rl(a)?a.then(e=>Mp(e,t,n,r+1)):Mp(a,t,n,r+1)}var Np,Pp,Fp,Ip;function Lp(e){let t=B._sentryDebugIds,n=B._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(Ip&&r.length===Pp&&i.length===Fp)return Ip;Pp=r.length,Fp=i.length,Ip={},Np||={};let a=(t,n)=>{for(let r of t){let t=n[r],i=Np?.[r];if(i&&Ip&&t)Ip[i[0]]=t,Np&&(Np[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&Ip&&Np){Ip[i]=t,Np[r]=[i,t];break}}}}};return t&&a(r,t),n&&a(i,n),Ip}function Rp(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Rl(),timestamp:t.timestamp||Kl()},l=n.integrations||e.integrations.map(e=>e.name);zp(c,e),Hp(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Bp(c,e.stackParser);let u=Wp(r,n.captureContext);n.mechanism&&Hl(c,n.mechanism);let d=i?i.getEventProcessors():[],f=dp(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),cp(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Op(c):jp(m,c,n)).then(e=>(e&&Vp(e),typeof o==`number`&&o>0?Up(e,o,s):e))}function zp(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=jl(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=jl(e.value,a)})}function Bp(e,t){let n=Lp(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Vp(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function Hp(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Up(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Cl(e.data,t,n)}}))},...e.user&&{user:Cl(e.user,t,n)},...e.contexts&&{contexts:Cl(e.contexts,t,n)},...e.extra&&{extra:Cl(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Cl(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Cl(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Cl(e.contexts.flags,3,n)),r}function Wp(e,t){if(!t)return e;let n=e?e.clone():new fu;return n.update(t),n}function Gp(e){if(e)return Kp(e)||Jp(e)?{captureContext:e}:e}function Kp(e){return e instanceof fu||typeof e==`function`}var qp=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Jp(e){return Object.keys(e).some(e=>qp.includes(e))}function Yp(e,t){return H().captureException(e,Gp(t))}function Xp(e,t){return H().captureEvent(e,t)}function Zp(e,t){Nu().setContext(e,t)}function Qp(){return!!U()}function $p(){let e=U();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function em(e){Nu().addEventProcessor(e)}function tm(e){let t=Nu(),{user:n}=dp(t,H()),{userAgent:r}=B.navigator||{},i=$l({user:n,...r&&{userAgent:r},...e}),a=t.getSession();return a?.status===`ok`&&eu(a,{status:`exited`}),nm(),t.setSession(i),i}function nm(){let e=Nu(),t=H().getSession()||e.getSession();t&&tu(t),rm(),e.setSession()}function rm(){let e=Nu(),t=U(),n=e.getSession();n&&t&&t.captureSession(n)}function im(e=!1){if(e){nm();return}rm()}function am(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function om(e){return`${am(e)}${e.projectId}/envelope/`}function sm(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function cm(e,t,n){return t||`${om(e)}?${sm(e,n)}`}var lm=[];function um(e){let t={};
11return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function dm(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return um(r)}function fm(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&mm(e,t,n)}),n}function pm(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function mm(e,t,n){if(n[t.name]){z&&V.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!lm.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),lm.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),z&&V.log(`Integration installed: ${t.name}`)}function hm(e){return e}function gm(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function _m(){return`npm`}function vm(){return!gm()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function ym(){return typeof window<`u`&&(!vm()||bm())}function bm(){return B.process?.type===`renderer`}function xm(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...ym()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Sm(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=dd(r)),mf(a,[xm(e,i)])}function Cm(e,t){let n=t??wm(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Sm(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Tm().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function wm(e){return Tm().get(e)}function Tm(){return dc(`clientToLogBufferMap`,()=>new WeakMap)}function Em(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...ym()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Dm(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=dd(r)),mf(a,[Em(e,i)])}function Om(e,t){let n=t??km(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Dm(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Am().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function km(e){return Am().get(e)}function Am(){return dc(`clientToMetricBufferMap`,()=>new WeakMap)}function jm(e){return Id({trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function Mm(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!t.getOptions().streamGenAiSpans||If(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(jm(t)):r.push(t);if(n.length===0)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:n.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,...ym()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}function Nm(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var Pm=Symbol.for(`SentryBufferFullError`);function Fm(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return kp(Pm);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return Op(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Nm(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Im=60*1e3;function Lm(e,t=gl()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Im:r-t}function Rm(e,t){return e[t]||e.all||0}function zm(e,t,n=gl()){return Rm(e,t)>n}function Bm(e,{statusCode:t,headers:n},r=gl()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Lm(o,r):t===429&&(i.all=r+60*1e3);return i}function Vm(e,t,n=Fm(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(gf(i,(t,n)=>{let i=Tf(n);zm(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=mf(i[0],a),s=t=>{if(_f(o,[`client_report`])){z&&V.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}gf(o,(n,r)=>{e.recordDroppedEvent(t,Tf(r))})};return n.add(()=>t({body:yf(o)}).then(e=>e.statusCode===413?(z&&V.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),s(`send_error`),e):(z&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&V.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Bm(r,e),e),e=>{throw s(`network_error`),z&&V.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>
11{if(e===Pm)return z&&V.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function Hm(e,t,n){let r=[{type:`client_report`},{timestamp:n||Kl(),discarded_events:e}];return mf(t?{dsn:t}:{},[r])}function Um(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Wm(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[Ku],exclusive_time:o?.[qu],measurements:e.measurements,is_segment:!0}}function Gm(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var Km=[`forwarded`,`-ip`,`remote-`,`via`,`-user`];function qm(e){return e===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:Km},httpHeaders:{request:{deny:Km},response:{deny:Km}},httpBodies:[],queryParams:{deny:Km},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7}}var Jm={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};function Ym(e){let t=e.dataCollection==null?qm(e.sendDefaultPii):Jm,n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,queryParams:n.queryParams??t.queryParams,genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}var Xm=`Not capturing exception because it's already been captured.`,Zm=`Discarded session because of missing or non-string release`,Qm=Symbol.for(`SentryInternalError`),$m=Symbol.for(`SentryDoNotSendEventError`),eh=5e3;function th(e){return{message:e,[Qm]:!0}}function nh(e){return{message:e,[$m]:!0}}function rh(e){return!!e&&typeof e==`object`&&Qm in e}function ih(e){return!!e&&typeof e==`object`&&$m in e}function ah(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??eh;t>0&&(s=!0,o=Nm(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var oh=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Fm(e.transportOptions?.bufferSize??64),this._dataCollection=Ym(e),e.dsn?this._dsn=_d(e.dsn):z&&V.warn(`No DSN provided, client will not send events.`),this._dsn){let t=cm(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&ah(this,`afterCaptureLog`,`flushLogs`,ph,Cm),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&ah(this,`afterCaptureMetric`,`flushMetrics`,fh,Om)}captureException(e,t,n){let r=Rl();if(Ul(e))return z&&V.log(Xm),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:Rl(),...n}
11,a=Qc(e)?e:String(e),o=$c(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=Rl();if(t?.originalException&&Ul(t.originalException))return z&&V.log(Xm),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=sh(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),eu(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Cm(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),mm(this,e,this._integrations),t||pm(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Mm(e,this),r=Af(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=hf(r,Sf(e));n&&(r=hf(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=of}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){z&&V.warn(Zm);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){z&&V.warn(Zm);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=kf(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;z&&V.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return z&&V.error(`Error while sending envelope:`,e),{}}return z&&V.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=fm(this,e),pm(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(eu(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Rp(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...Iu(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:uf(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=H(),r=Nu()){return z&&uh(e)&&V.log(`Captured error event \`${Um(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{z&&(ih(e)?V.log(e.message):rh(e)?V.warn(e.message):V.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=dh(e),s=uh(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:vd(a);if(s&&typeof l==`number`&&hl()>l)return this.recordDroppedEvent(`sample_rate`,`error`),kp(nh(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=sh(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),nh("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:ch(lh(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw nh(`${c} returned \`null\`, will not send event.`)}
11let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw ih(e)||rh(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),th(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 12Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Pm&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){z&&V.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){z&&V.log(`No outcomes to send`);return}if(!this._dsn){z&&V.log(`No dsn provided, will not send outcomes`);return}z&&V.log(`Sending outcomes:`,e);let t=Hm(e,this._options.tunnel&&dd(this._dsn));this.sendEnvelope(t)}};function sh(e){return e===`replay_event`?`replay`:e||`error`}function ch(e,t){let n=`${t} must return \`null\` or a valid event.`;if(rl(e))return e.then(e=>{if(!el(e)&&e!==null)throw th(n);return e},e=>{throw th(`${t} rejected with ${e}`)});if(!el(e)&&e!==null)throw th(n);return e}function lh(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!pf(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(uh(c)&&i)return i(c,r);if(dh(c)){if(s||o){let t=Wm(c);if(o?.length&&tf({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);e?c=ru(n,Gm(e)):Xd()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&tf({description:e.description,op:e.op,attributes:e.data},o)){rf(n,e);continue}if(s){let n=s(e);n?t.push(n):(Xd(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function uh(e){return e.type===void 0}function dh(e){return e.type===`transaction`}function fh(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+mh(e.attributes)}function ph(e){let t=0;return e.message&&(t+=e.message.length*2),t+mh(e.attributes)}function mh(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*hh(e[0]):$c(e)?t+=hh(e):t+=100}),t}function hh(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function gh(e,t){t.debug===!0&&(z?V.enable():hc(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),H().update(t.initialScope);let n=new e(t);return _h(n),n.init(),n}function _h(e){H().setClient(e)}function vh(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return bh(e,n)||yh(e,r)}function yh(e,t){return t?Sh(e)===Sh(t):!1}function bh(e,t){let n=yp(e);return!n||vp(n)||!t?!1:xh(n.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}function xh(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function Sh(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function Ch(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function wh(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:cc})),i.version=cc)}function Th(e={}){let t=e.client||U();if(!$p()||!t)return{};let n=Tu(lc());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||H(),i=e.span||Yd();if(!i&&Mu())return{};let a=i?Od(i):Eh(r),o=id(i?df(i):uf(t,r));if(!yd.test(a))return V.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let s={"sentry-trace":a,baggage:o};return e.propagateTraceparent&&(s.traceparent=i?kd(i):Dh(r)),s}function Eh(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Sd(t,r,n)}function Dh(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Cd(t,r,n)}function Oh(e,t,n){let r,i,a,o=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function c(){return l(),r=e(),r}function l(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function u(){return i!==void 0||a!==void 0?c():r}function d(){return i&&clearTimeout(i),i=s(c,t),o&&a===void 0&&(a=s(c,o)),r}return d.cancel=l,d.flush=u,d}var kh=100;function Ah(e,t){let n=U(),r=Nu();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=kh}=n.getOptions();if(a<=0)return;let o={timestamp:Kl(),...e},s=i?hc(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var jh,Mh=`FunctionToString`,Nh=new WeakMap,Ph=hm((()=>({name:Mh,setupOnce(){jh=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=ll(this),n=Nh.has(U())&&t!==void 0?t:this;return jh.apply(n,e)}}catch{}},setup(e){Nh.set(e,!0)}}))),Fh=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Ih=`EventFilters`,Lh=hm((e={})=>{let t;return{name:Ih,setup(n){t=zh(e,n.getOptions())},processEvent(n,r,i){return t||=zh(e,i.getOptions()),Bh(n,t)?null:n}}}),Rh=hm(((e={})=>({...Lh(e),name:`InboundFilters`})));function zh(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Fh],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Bh(e,t){if(!e.type){if(Vh(e,t.ignoreErrors))return z&&V.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 13Event: ${Bl(e)}`),!0;if(qh(e))return z&&V.warn(`Event dropped due to not having an error message, error type or stacktrace. 14Event: ${Bl(e)}`),!0;if(Uh(e,t.denyUrls))return z&&V.warn(`Event dropped due to being matched by \`denyUrls\` option. 15Event: ${Bl(e)}. 16Url: ${Kh(e)}`),!0;if(!Wh(e,t.allowUrls))return z&&V.warn(`Event dropped due to not being matched by \`allowUrls\` option. 17Event: ${Bl(e)}. 18Url: ${Kh(e)}`),!0}else if(e.type===`transaction`&&Hh(e,t.ignoreTransactions))return z&&V.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 19Event: ${Bl(e)}`),!0;return!1}function Vh(e,t){return t?.length?Um(e).some(e=>Pl(e,t)):!1}function Hh(e,t){if(!t?.length)return!1;let n=e.transaction;return n?Pl(n,t):!1}function Uh(e,t){if(!t?.length)return!1;let n=Kh(e);return n?Pl(n,t):!1}function Wh(e,t){if(!t?.length)return!0;let n=Kh(e);return n?Pl(n,t):!0}function Gh(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Kh(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Gh(t):null}catch{return z&&V.error(`Cannot extract url for event ${Bl(e)}`),null}}function qh(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Jh(e,t,n,r,i,a){if(!i.exception?.values||!a||!il(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Yh(e,t,r,a.originalException,n,i.exception.values,o,0))}
19function Yh(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(il(r[i],Error)){Zh(o,s,r);let a=e(t,r[i]),l=c.length;Qh(a,i,l,s),c=Yh(e,t,n,r[i],i,[a,...c],a,l)}return Xh(r)&&r.errors.forEach((a,l)=>{if(il(a,Error)){Zh(o,s,r);let u=e(t,a),d=c.length;Qh(u,`errors[${l}]`,d,s),c=Yh(e,t,n,a,i,[u,...c],u,d)}}),c}function Xh(e){return Array.isArray(e.errors)}function Zh(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Xh(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Qh(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function $h(e){return Kc(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function eg(e){return $h(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var tg=new Set([]);function ng(e){let t=`console`,n=Ic(t,e);return Lc(t,rg),n}function rg(){`console`in B&&fc.forEach(function(e){e in B.console&&ol(B.console,e,function(t){return mc[e]=t,function(...t){let n=t[0],r=mc[e],i=tg.size&&typeof n==`string`&&Pl(n,tg);i||Rc(`console`,{args:t,level:e}),(!i||z&&V.isEnabled())&&r?.apply(B.console,t)}})})}function ig(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var ag=`Dedupe`,og=hm((()=>{let e;return{name:ag,processEvent(t){if(t.type)return t;try{if(sg(t,e))return z&&V.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function sg(e,t){return t?!!(cg(e,t)||lg(e,t)):!1}function cg(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!dg(e,t)||!ug(e,t))}function lg(e,t){let n=fg(t),r=fg(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!dg(e,t)||!ug(e,t))}function ug(e,t){let n=Nc(e),r=Nc(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function dg(e,t){let n=e.fingerprint,r=t.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 fg(e){return e.exception?.values?.[0]}var pg=`ConversationId`,mg=hm((()=>({name:pg,setup(e){e.on(`spanStart`,e=>{let t=H().getScopeData(),n=Nu().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=W(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(Yu,r)}})}})));function hg(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=$d()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(vg(n,e),gg(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1}=typeof i==`object`?i:{spanOrigin:i},u=U(),d=!!Yd()||!!u&&If(u),f=s&&d?Gf(Sg(o,a,c)):new ff;if(s&&!d&&u?.recordDroppedEvent(`no_parent_span`,`span`),e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=_g(t,n,$d()&&d?f:void 0,l);r&&(e.args[1]=n,n.headers=r)}if(u){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};u.emit(`beforeOutgoingRequestSpan`,f,t)}return f}function gg(e,t,n){(typeof n==`object`&&n?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function _g(e,t,n,r){let i=Th({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(al(e)?e.headers:void 0);if(!c)return{...i};if(bg(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?yg(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}else if(xg(c)){let e=[...c];e.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!e.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&typeof e[1]==`string`&&yg(e[1]));return o&&!t&&e.push([`baggage`,o]),e}else{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>yg(e)):yg(n));o&&!l&&i.push(o);let u=Object.assign({},c,{"sentry-trace":e??a,baggage:i.length>0?i.join(`,`):void 0});return r&&s&&!t&&(u.traceparent=s),u}}function vg(e,t){if(t.response){Zu(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function yg(e){return typeof e==`string`?e.split(`,`).some(e=>e.trim().startsWith(nd)):!1}function bg(e){return typeof Headers<`u`&&il(e,Headers)}function xg(e){return Array.isArray(e)?e.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`):!1}function Sg(e,t,n){if(e.startsWith(`data:`))return{name:`${t} ${Cp(e)}`,attributes:Cg(e,void 0,t,n)};let r=yp(e);return{name:`${t} ${r?bp(r):e}`,attributes:Cg(e,r,t,n)}}function Cg(e,t,n,r){let i={url:Cp(e),type:`fetch`,"http.method":n,[Vu]:r,[Bu]:`http.client`};return t&&(vp(t)||(i[`http.url`]=Cp(t.href),i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function wg(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var Tg=B;function Eg(){return`history`in Tg&&!!Tg.history}function Dg(){if(!(`fetch`in Tg))return!1;
19try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function Og(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function kg(){if(typeof EdgeRuntime==`string`)return!0;if(!Dg())return!1;if(Og(Tg.fetch))return!0;let e=!1,t=Tg.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Og(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){z&&V.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function Ag(e,t){let n=`fetch`,r=Ic(n,e);return Lc(n,()=>Mg(void 0,t)),r}function jg(e){let t=`fetch-body-resolved`,n=Ic(t,e);return Lc(t,()=>Mg(Pg)),n}function Mg(e,t=!1){t&&!kg()||ol(B,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=Lg(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:Yl()*1e3,virtualError:r,headers:Rg(n)};return e||Rc(`fetch`,{...o}),t.apply(B,n).then(async t=>(e?e(t):Rc(`fetch`,{...o,endTimestamp:Yl()*1e3,response:t}),t),e=>{Rc(`fetch`,{...o,endTimestamp:Yl()*1e3,error:e}),Kc(e)&&e.stack===void 0&&(e.stack=r.stack,sl(e,`framesToPop`,1));let t=U()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:sl(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}async function Ng(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Pg(e){let t;try{t=e.clone()}catch{return}Ng(t,()=>{Rc(`fetch-body-resolved`,{endTimestamp:Yl()*1e3,response:e})})}function Fg(e,t){return!!e&&typeof e==`object`&&!!e[t]}function Ig(e){return typeof e==`string`?e:e?Fg(e,`url`)?e.url:e.toString?e.toString():``:``}function Lg(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Ig(t),method:Fg(n,`method`)?String(n.method).toUpperCase():al(t)&&Fg(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Ig(t),method:Fg(t,`method`)?String(t.method).toUpperCase():`GET`}}function Rg(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(al(t))return new Headers(t.headers)}catch{}}var zg=B;function Bg(){try{return zg.document.location.href}catch{return``}}function Vg(e,t=5){if(!zg.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}var G=B,Hg=0;function Ug(){return Hg>0}function Wg(){Hg++,setTimeout(()=>{Hg--})}function Gg(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{let t=e.__sentry_wrapped__;if(t)return typeof t==`function`?t:e;if(ll(e))return e}catch{return e}let r=function(...n){B._sentryWrappedDepth=(B._sentryWrappedDepth||0)+1;try{let r=n.map(e=>Gg(e,t));return e.apply(this,r)}catch(e){throw Wg(),Fu(r=>{r.addEventProcessor(e=>(t.mechanism&&(Vl(e,void 0,void 0),Hl(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Yp(e)}),e}finally{B._sentryWrappedDepth=(B._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}cl(r,e),sl(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Kg(){let e=Bg(),{referrer:t}=G.document||{},{userAgent:n}=G.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function qg(e,t){let n=Xg(e,t),r={type:t_(t),value:n_(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Jg(e,t,n,r){let i=U()?.getOptions().normalizeDepth,a=l_(t),o={__serialized__:wl(t,i)};if(a)return{exception:{values:[qg(e,a)]},extra:o};let s={exception:{values:[{type:tl(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:s_(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Xg(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Yg(e,t){return{exception:{values:[qg(e,t)]}}}function Xg(e,t){let n=t.stacktrace||t.stack||``,r=Qg(t),i=$g(t);try{return e(n,r,i)}catch{}return[]}var Zg=/Minified React error #\d+;/i;function Qg(e){return e&&Zg.test(e.message)?1:0}function $g(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function e_(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function t_(e){let t=e?.name;return!t&&e_(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function n_(e){let t=e?.message;return e_(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?eg(t.error):eg(e):`No error message`}function r_(e,t,n,r){let i=a_(e,t,n?.syntheticException||void 0,r);
19return Hl(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Op(i)}function i_(e,t,n=`info`,r,i){let a=o_(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Op(a)}function a_(e,t,n,r,i){let a;if(Jc(t)&&t.error)return Yg(e,t.error);if(Yc(t)||Xc(t)){let i=t;if(`stack`in t){a=Yg(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=Xg(e,n);t.length&&(i.stacktrace={frames:t},Hl(a,{synthetic:!0}))}}else{let t=i.name||(Yc(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=o_(e,o,n,r),Vl(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Kc(t)?Yg(e,t):el(t)||tl(t)?(a=Jg(e,t,n,i),Hl(a,{synthetic:!0}),a):(a=o_(e,t,n,r),Vl(a,`${t}`,void 0),Hl(a,{synthetic:!0}),a)}function o_(e,t,n,r){let i={};if(r&&n){let r=Xg(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),Hl(i,{synthetic:!0})}if(Qc(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function s_(e,{isUnhandledRejection:t}){let n=fl(e),r=t?`promise rejection`:`exception`;return Jc(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:tl(e)?`Event \`${c_(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function c_(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function l_(e){return Object.values(e).find(e=>e instanceof Error)}var u_=class extends oh{constructor(e){let t=d_(e);wh(t,`browser`,[`browser`],G.SENTRY_SDK_SOURCE||_m()),super(t);let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;G.document&&(r||i||s)&&G.document.addEventListener(`visibilitychange`,()=>{G.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&Cm(this),s&&Om(this))}),n&&this.on(`beforeSendSession`,Ch)}eventFromException(e,t){return r_(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return i_(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function d_(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:G.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var f_=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,K=B,p_=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,m_=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=p_(t.value,n),e(t)))}}
19,h_=(e=!0)=>{let t=K.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},g_=()=>h_()?.activationStart??0;function __(e,t,n){K.document&&K.addEventListener(e,t,n)}function v_(e,t,n){K.document&&K.removeEventListener(e,t,n)}var y_=-1,b_=new Set,x_=()=>K.document?.visibilityState===`hidden`&&!K.document?.prerendering?0:1/0,S_=e=>{if(w_(e)&&y_>-1){if(e.type===`visibilitychange`||e.type===`pagehide`)for(let e of b_)e();isFinite(y_)||(y_=e.type===`visibilitychange`?e.timeStamp:0,v_(`prerenderingchange`,S_,!0))}},C_=()=>{if(K.document&&y_<0){let e=g_();y_=(K.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??x_(),__(`visibilitychange`,S_,!0),__(`pagehide`,S_,!0),__(`prerenderingchange`,S_,!0)}return{get firstHiddenTime(){return y_},onHidden(e){b_.add(e)}}};function w_(e){return e.type===`pagehide`||K.document?.visibilityState===`hidden`}var T_=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+0xe8d4a51000}`,E_=(e,t=-1)=>{let n=h_(),r=`navigate`;return n&&(K.document?.prerendering||g_()>0?r=`prerender`:K.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:T_(),navigationType:r}},D_=new WeakMap;function O_(e,t){try{return D_.get(e)||D_.set(e,new t),D_.get(e)}catch{return new t}}var k_=class{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},A_=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},j_=e=>{let t=!1;return()=>{t||=(e(),!0)}},M_=e=>{K.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},N_=[1800,3e3],P_=(e,t={})=>{M_(()=>{let n=C_(),r=E_(`FCP`),i,a=A_(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-g_(),0),r.entries.push(t),i(!0)))});a&&(i=m_(e,r,N_,t.reportAllChanges))})},F_=[.1,.25],I_=(e,t={})=>{P_(j_(()=>{let n=E_(`CLS`,0),r,i=C_(),a=O_(t,k_),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=A_(`layout-shift`,o);s&&(r=m_(e,n,F_,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),K?.setTimeout?.(r))}))},L_=0,R_=1/0,z_=0,B_=e=>{e.forEach(e=>{e.interactionId&&(R_=Math.min(R_,e.interactionId),z_=Math.max(z_,e.interactionId),L_=z_?(z_-R_)/7+1:0)})},V_,H_=()=>V_?L_:performance.interactionCount||0,U_=()=>{`interactionCount`in performance||V_||(V_=A_(`event`,B_,{type:`event`,buffered:!0,durationThreshold:0}))},W_=10,G_=0,K_=()=>H_()-G_,q_=class{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){G_=H_(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(K_()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<W_||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>
19t._latency-e._latency),this._longestInteractionList.length>W_){let e=this._longestInteractionList.splice(W_);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},J_=e=>{let t=K.requestIdleCallback||K.setTimeout;K.document?.visibilityState===`hidden`?e():(e=j_(e),__(`visibilitychange`,e,{once:!0,capture:!0}),__(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),v_(`visibilitychange`,e,{capture:!0}),v_(`pagehide`,e,{capture:!0})}))},Y_=[200,500],X_=40,Z_=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=C_();M_(()=>{U_();let r=E_(`INP`),i,a=O_(t,q_),o=e=>{J_(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},s=A_(`event`,o,{durationThreshold:t.durationThreshold??X_});i=m_(e,r,Y_,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{o(s.takeRecords()),i(!0)}))})},Q_=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},$_=[2500,4e3],ev=(e,t={})=>{M_(()=>{let n=C_(),r=E_(`LCP`),i,a=O_(t,Q_),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-g_(),0),r.entries=[t],i())},s=A_(`largest-contentful-paint`,o);if(s){i=m_(e,r,$_,t.reportAllChanges);let n=j_(()=>{o(s.takeRecords()),s.disconnect(),i(!0)}),a=e=>{e.isTrusted&&(J_(n),v_(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])__(e,a,{capture:!0})}})},tv=[800,1800],nv=e=>{K.document?.prerendering?M_(()=>nv(e)):K.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>nv(e),!0)},rv=(e,t={})=>{let n=E_(`TTFB`),r=m_(e,n,tv,t.reportAllChanges);nv(()=>{let e=h_();e&&(n.value=Math.max(e.responseStart-g_(),0),n.entries=[e],r(!0))})},iv={},av={},ov,sv,cv,lv;function uv(e,t=!1){return bv(`cls`,e,gv,ov,t)}function dv(e,t=!1){return bv(`lcp`,e,_v,sv,t)}function fv(e){return bv(`ttfb`,e,vv,cv)}function pv(e){return bv(`inp`,e,yv,lv)}function mv(e,t){return Sv(e,t),av[e]||(xv(e),av[e]=!0),Cv(e,t)}function hv(e,t){let n=iv[e];if(n?.length)for(let r of n)try{r(t)}catch(t){f_&&V.error(`Error while triggering instrumentation handler. 20Type: ${e} 21Name: ${Mc(r)} 22Error:`,t)}}function gv(){return I_(e=>{hv(`cls`,{metric:e}),ov=e},{reportAllChanges:!0})}function _v(){return ev(e=>{hv(`lcp`,{metric:e}),sv=e},{reportAllChanges:!0})}function vv(){return rv(e=>{hv(`ttfb`,{metric:e}),cv=e})}function yv(){return Z_(e=>{hv(`inp`,{metric:e}),lv=e})}function bv(e,t,n,r,i=!1){Sv(e,t);let a;return av[e]||(a=n(),av[e]=!0),r&&t({metric:r}),Cv(e,t,i?a:void 0)}function xv(e){let t={};e===`event`&&(t.durationThreshold=0),A_(e,t=>{hv(e,{entries:t})},t)}function Sv(e,t){iv[e]=iv[e]||[],iv[e].push(t)}function Cv(e,t,n){return()=>{n&&n();let r=iv[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function wv(e){return`duration`in e}var Tv=80;function Ev(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Tv;for(;n&&i++<5&&(o=Dv(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function Dv(e,t){let n=e,r=[];if(!n?.tagName)return``;if(typeof HTMLElement<`u`&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&Zc(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}var Ov=e=>{let t=t=>{(t.type===`pagehide`||K.document?.visibilityState===`hidden`)&&e(t)};__(`visibilitychange`,t,{capture:!0,once:!0}),__(`pagehide`,t,{capture:!0,once:!0})};function kv(e){return typeof e==`number`&&isFinite(e)}function Av(e,t,n,{...r}){let i=W(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),Kf(e,()=>{let e=Gf({startTime:t,...r});return e&&e.end(n),e})}function jv(e){let t=U();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s}=t.getOptions(),{userInfo:c}=t.getDataCollectionOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=H(),d=u.getUser(),f=d===void 0?void 0:d.email||d.id||d.ip_address,p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}return Gf({name:n,attributes:{release:o,environment:s,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":K.navigator?.userAgent,"client.address":c?`{{auto}}`:void 0,...i},startTime:a,experimental:{standalone:!0}})}function Mv(){return K.addEventListener&&K.performance}function Nv(e){return e/1e3}function Pv(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}
22return r===e&&(t=r),{name:t,version:n}}function Fv(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Iv(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}Ov(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e,o()})}function Lv(e){let t=0,n;if(!Fv(`layout-shift`))return;let r=uv(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Iv(e,(e,i)=>{Rv(t,n,i,e),r()})}function Rv(e,t,n,r){f_&&V.log(`Sending CLS span (${e})`);let i=t?Nv((Ql()||0)+t.startTime):Yl(),a=H().getScopeData().transactionName,o=t?Ev(t.sources[0]?.node):`Layout shift`,s={[Vu]:`auto.http.browser.cls`,[Bu]:`ui.webvital.cls`,[qu]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=Ev(e.node)});let c=jv({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[Uu]:``,[Wu]:e}),c.end(i))}function zv(e){return e!=null&&e>0&&e<=6e4}function Bv(e){let t=0,n;if(!Fv(`largest-contentful-paint`))return;let r=dv(({metric:e})=>{let r=e.entries[e.entries.length-1];!r||!zv(e.value)||(t=e.value,n=r)},!0);Iv(e,(e,i)=>{Vv(t,n,i,e),r()})}function Vv(e,t,n,r){if(!zv(e))return;f_&&V.log(`Sending LCP span (${e})`);let i=Nv((Ql()||0)+(t?.startTime||0)),a=H().getScopeData().transactionName,o=t?Ev(t.element):`Largest contentful paint`,s={[Vu]:`auto.http.browser.lcp`,[Bu]:`ui.webvital.lcp`,[qu]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=Ev(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url),t.loadTime!=null&&(s[`lcp.loadTime`]=t.loadTime),t.renderTime!=null&&(s[`lcp.renderTime`]=t.renderTime),t.size!=null&&(s[`lcp.size`]=t.size));let c=jv({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[Uu]:`millisecond`,[Wu]:e}),c.end(i))}function Hv(e){return e&&((Ql()||performance.timeOrigin)+e)/1e3}function Uv(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=Pv(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return Ql()||Mv()?.timeOrigin?Wv({...t,"http.request.redirect_start":Hv(e.redirectStart),"http.request.redirect_end":Hv(e.redirectEnd),"http.request.worker_start":Hv(e.workerStart),"http.request.fetch_start":Hv(e.fetchStart),"http.request.domain_lookup_start":Hv(e.domainLookupStart),"http.request.domain_lookup_end":Hv(e.domainLookupEnd),"http.request.connect_start":Hv(e.connectStart),"http.request.secure_connection_start":Hv(e.secureConnectionStart),"http.request.connection_end":Hv(e.connectEnd),"http.request.request_start":Hv(e.requestStart),"http.request.response_start":Hv(e.responseStart),"http.request.response_end":Hv(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function Wv(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var Gv=2147483647,Kv=0,qv={},Jv,Yv;function Xv({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=Mv();if(r&&Ql()){r.mark&&K.performance.mark(`sentry-tracing-init`);let i=t?Bv(n):t===!1?ty():void 0,a=e?Lv(n):e===!1?ey():void 0,o=ny(),s=ry();return()=>{o(),s(),i?.(),a?.()}}return()=>void 0}function Zv(){mv(`longtask`,({entries:e})=>{let t=Yd();if(!t)return;let{op:n,start_timestamp:r}=W(t);for(let i of e){let e=Nv(Ql()+i.startTime),a=Nv(i.duration);n===`navigation`&&r&&e<r||Av(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[Vu]:`auto.ui.browser.metrics`}})}})}function Qv(){new PerformanceObserver(e=>{let t=Yd();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=Nv(Ql()+n.startTime),{start_timestamp:r,op:i}=W(t);if(i===`navigation`&&r&&e<r)continue;let a=Nv(n.duration),o={[Vu]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[`code.filepath`]=l),u&&(o[`code.function`]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),Av(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function $v(){mv(`event`,({entries:e})=>{let t=Yd();if(t){for(let n of e)if(n.name===`click`){let e=Nv(Ql()+n.startTime),r=Nv(n.duration),i={name:Ev(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[Vu]:`auto.ui.browser.metrics`}},a=Vg(n.target);a&&(i.attributes[`ui.component_name`]=a),Av(t,e,e+r,i)}}})}function ey(){return uv(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(qv.cls={value:e.value,unit:``},Yv=t)},!0)}function ty(){return dv(({metric:e})=>{let t=e.entries[e.entries.length-1];!t||!zv(e.value)||(qv.lcp={value:e.value,unit:`millisecond`},Jv=t)},!0)}function ny(){return fv(({metric:e})=>{e.entries[e.entries.length-1]&&(qv.ttfb={value:e.value,unit:`millisecond`})})}function ry(){return mv(`paint`,({entries:e})=>{let t=C_();for(let n of e){let e=n.startTime<t.firstHiddenTime;n.name===`first-paint`&&e&&(qv.fp={value:n.startTime,unit:`millisecond`}),n.name===`first-contentful-paint`&&e&&(qv.fcp={value:n.startTime,unit:`millisecond`})}})}function iy(e,t){let n=Mv(),r=Ql();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:a,ignoreResourceSpans:o}=t,s=Nv(r),c=n.getEntries(),{op:l,start_timestamp:u}=W(e);c.slice(Kv).forEach(t=>{let n=Nv(t.startTime),r=Nv(Math.max(0,t.duration));if(!(l===`navigation`&&u&&s+n<u))switch(t.entryType){case`navigation`:uy(e,t,s);break;case`mark`:case`paint`:case`measure`:cy(e,t,n,r,s,a);break;case`resource`:my(e,t,t.name,n,r,s,o);break}}),Kv=Math.max(c.length-1,0),hy(e,i)}function ay(e,t){let n=Ql();if(!Mv()?.getEntries||!n){oy();return}let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:a}=t,o=Nv(n);if(W(e).op===`pageload`){if(vy(qv),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),f_&&V.log(`Setting web vital attribute`,{[i]:n},`on pageload span`)};
22[`ttfb`,`fp`,`fcp`].forEach(e=>{qv[e]&&t(e,qv[e].value)}),qv[`ttfb.requestTime`]&&t(`ttfb.requestTime`,qv[`ttfb.requestTime`].value,`browser.web_vital.ttfb.request_time`)}else i||delete qv.cls,a||delete qv.lcp,Object.entries(qv).forEach(([t,n])=>{Pf(t,n.value,n.unit,e)}),gy(e,t);e.setAttribute(r?`browser.performance.time_origin`:`performance.timeOrigin`,o),e.setAttribute(r?`browser.performance.navigation.activation_start`:`performance.activationStart`,g_())}oy()}function oy(){Jv=void 0,Yv=void 0,qv={}}function sy(e){if(e?.entryType===`measure`)try{return e.detail.devtools.track===`Components â`}catch{return}}function cy(e,t,n,r,i,a){if(sy(t)||[`mark`,`measure`].includes(t.entryType)&&Pl(t.name,a))return;let o=h_(!1),s=Nv(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[Vu]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),ly(d,t),c<=u&&Av(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function ly(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&$c(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if($c(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function uy(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{dy(e,t,r,n)}),dy(e,t,`secureConnection`,n,`TLS/SSL`),dy(e,t,`fetch`,n,`cache`),dy(e,t,`domainLookup`,n,`DNS`),py(e,t,n)}function dy(e,t,n,r,i=n){let a=t[fy(n)],o=t[`${n}Start`];!o||!a||Av(e,r+Nv(o),r+Nv(a),{op:`browser.${i}`,name:t.name,attributes:{[Vu]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function fy(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function py(e,t,n){let r=n+Nv(t.requestStart),i=n+Nv(t.responseEnd),a=n+Nv(t.responseStart);t.responseEnd&&(Av(e,r,i,{op:`browser.request`,name:t.name,attributes:{[Vu]:`auto.ui.browser.metrics`}}),Av(e,a,i,{op:`browser.response`,name:t.name,attributes:{[Vu]:`auto.ui.browser.metrics`}}))}function my(e,t,n,r,i,a,o){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let s=t.initiatorType?`resource.${t.initiatorType}`:`resource.other`;if(o?.includes(s))return;let c={[Vu]:`auto.resource.browser.metrics`},l=xp(n);l.protocol&&(c[`url.scheme`]=l.protocol.split(`:`).pop()),l.host&&(c[`server.address`]=l.host),c[`url.same_origin`]=n.includes(K.location.origin),_y(t,c,[[`responseStatus`,`http.response.status_code`],[`transferSize`,`http.response_transfer_size`],[`encodedBodySize`,`http.response_content_length`],[`decodedBodySize`,`http.decoded_response_content_length`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let u={...c,...Uv(t)},d=a+r;Av(e,d,d+i,{name:n.replace(K.location.origin,``),op:s,attributes:u})}function hy(e,t){let n=K.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?`network.connection.effective_type`:`effectiveConnectionType`,r.effectiveType),r.type&&e.setAttribute(t?`network.connection.type`:`connectionType`,r.type),kv(r.rtt)&&(t?e.setAttribute(`network.connection.rtt`,r.rtt):W(e).op===`pageload`&&Pf(`connection.rtt`,r.rtt,`millisecond`))),kv(n.deviceMemory)&&(t?e.setAttribute(`device.memory.estimated_capacity`,n.deviceMemory):e.setAttribute(`deviceMemory`,`${n.deviceMemory} GB`)),kv(n.hardwareConcurrency)&&(t?e.setAttribute(`device.processor_count`,n.hardwareConcurrency):e.setAttribute(`hardwareConcurrency`,String(n.hardwareConcurrency)))}function gy(e,t){Jv&&t.recordLcpOnPageloadSpan&&(Jv.element&&e.setAttribute(`lcp.element`,Ev(Jv.element)),Jv.id&&e.setAttribute(`lcp.id`,Jv.id),Jv.url&&e.setAttribute(`lcp.url`,Jv.url.trim().slice(0,200)),Jv.loadTime!=null&&e.setAttribute(`lcp.loadTime`,Jv.loadTime),Jv.renderTime!=null&&e.setAttribute(`lcp.renderTime`,Jv.renderTime),e.setAttribute(`lcp.size`,Jv.size)),Yv?.sources&&t.recordClsOnPageloadSpan&&Yv.sources.forEac
22h((t,n)=>e.setAttribute(`cls.source.${n+1}`,Ev(t.node)))}function _y(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<Gv||typeof i==`string`)&&(t[r]=i)})}function vy(e){let t=h_(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}var yy=[],by=new Map,xy=new Map;function Sy(){if(Mv()&&Ql()){let e=wy();return()=>{e()}}return()=>void 0}var Cy={click:`click`,pointerdown:`click`,pointerup:`click`,mousedown:`click`,mouseup:`click`,touchstart:`click`,touchend:`click`,mouseover:`hover`,mouseout:`hover`,mouseenter:`hover`,mouseleave:`hover`,pointerover:`hover`,pointerout:`hover`,pointerenter:`hover`,pointerleave:`hover`,dragstart:`drag`,dragend:`drag`,drag:`drag`,dragenter:`drag`,dragleave:`drag`,dragover:`drag`,drop:`drag`,keydown:`press`,keyup:`press`,keypress:`press`,input:`press`};function wy(){return pv(Ty)}var Ty=({metric:e})=>{if(e.value==null)return;let t=Nv(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&Cy[t.name]);if(!n)return;let{interactionId:r}=n,i=Cy[n.name],a=Nv(Ql()+n.startTime),o=Yd(),s=o?qd(o):void 0,c=r==null?void 0:by.get(r),l=c?.span||s,u=l?W(l).description:H().getScopeData().transactionName,d=jv({name:c?.elementName||Ev(n.target),transaction:u,attributes:{[Vu]:`auto.http.browser.inp`,[Bu]:`ui.interaction.${i}`,[qu]:n.duration},startTime:a});d&&(d.addEvent(`inp`,{[Uu]:`millisecond`,[Wu]:e.value}),d.end(a+t))};function Ey(e){return e==null?void 0:by.get(e)}function Dy(){let e=Object.keys(Cy);ym()&&e.forEach(e=>{K.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=Ev(t),r=Math.round(e.timeStamp);if(xy.set(r,n),xy.size>50){let e=xy.keys().next().value;e!==void 0&&xy.delete(e)}}function n(e){let t=Math.round(e.startTime),n=xy.get(t);if(!n)for(let e=-5;e<=5;e++){let r=xy.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=Yd(),r=t&&qd(t);e.forEach(e=>{if(!wv(e))return;let t=e.interactionId;if(t==null||by.has(t))return;let i=e.target?Ev(e.target):n(e);if(yy.length>10){let e=yy.shift();by.delete(e)}yy.push(t),by.set(t,{span:r,elementName:i})})};mv(`event`,r),mv(`first-input`,r)}function Oy(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,reportEvent:c,startTime:l,endTime:u}=e,d=H().getScopeData().transactionName,f={[Vu]:r,[Bu]:n,[qu]:0,[`browser.web_vital.${i}.value`]:a,"sentry.transaction":d,"user_agent.original":K.navigator?.userAgent,...o};s&&Pd(s).attributes?.[`sentry.op`]===`pageload`&&(f[`sentry.pageload.span_id`]=s.spanContext().spanId),c&&(f[`browser.web_vital.${i}.report_event`]=c);let p=Gf({name:t,attributes:f,startTime:l,parentSpan:s});p&&p.end(u??l)}function ky(e){let t=0,n;if(!Fv(`largest-contentful-paint`))return;let r=dv(({metric:e})=>{let r=e.entries[e.entries.length-1];!r||!zv(e.value)||(t=e.value,n=r)},!0);Iv(e,(e,i,a)=>{Ay(t,n,a,e),r()})}function Ay(e,t,n,r){if(!zv(e))return;f_&&V.log(`Sending LCP span (${e})`);let i=Ql()||0,a=Nv(i),o=Nv(i+(t?.startTime||0)),s=t?Ev(t.element):`Largest contentful paint`,c={};t?.element&&(c[`browser.web_vital.lcp.element`]=Ev(t.element)),t?.id&&(c[`browser.web_vital.lcp.id`]=t.id),t?.url&&(c[`browser.web_vital.lcp.url`]=t.url),t?.loadTime!=null&&(c[`browser.web_vital.lcp.load_time`]=t.loadTime),t?.renderTime!=null&&(c[`browser.web_vital.lcp.render_time`]=t.renderTime),t?.size!=null&&(c[`browser.web_vital.lcp.size`]=t.size),Oy({name:s,op:`ui.webvital.lcp`,origin:`auto.http.browser.lcp`,metricName:`lcp`,value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:a,endTime:o})}function jy(e){let t=0,n;if(!Fv(`layout-shift`))return;let r=uv(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Iv(e,(e,i,a)=>{My(t,n,a,e),r()})}function My(e,t,n,r){f_&&V.log(`Sending CLS span (${e})`);let i=t?Nv((Ql()||0)+t.startTime):Yl(),a=t?Ev(t.sources[0]?.node):`Layout shift`,o={};t?.sources&&t.sources.forEach((e,t)=>{o[`browser.web_vital.cls.source.${t+1}`]=Ev(e.node)}),Oy({name:a,op:`ui.webvital.cls`,origin:`auto.http.browser.cls`,metricName:`cls`,value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:i})}function Ny(){!Mv()||!Ql()||pv(({metric:e})=>
22{if(e.value==null||Nv(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&Cy[t.name]);t&&Py(e.value,t)})}function Py(e,t){f_&&V.log(`Sending INP span (${e})`);let n=Nv(Ql()+t.startTime),r=Nv(e),i=Cy[t.name],a=Ey(t.interactionId),o=Yd(),s=o?qd(o):void 0,c=a?.span||s,l=c?Pd(c).name:H().getScopeData().transactionName;Oy({name:a?.elementName||Ev(t.target),op:`ui.interaction.${i}`,origin:`auto.http.browser.inp`,metricName:`inp`,value:e,attributes:{[qu]:t.duration,"sentry.transaction":l},startTime:n,endTime:n+r,parentSpan:c})}var Fy=1e3,Iy,Ly,Ry;function zy(e){Ic(`dom`,e),Lc(`dom`,By)}function By(){if(!K.document)return;let e=Rc.bind(null,`dom`),t=Uy(e,!0);K.document.addEventListener(`click`,t,!1),K.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=K[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(ol(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=Uy(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),ol(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function Vy(e){if(e.type!==Ly)return!1;try{if(!e.target||e.target._sentryId!==Ry)return!1}catch{}return!0}function Hy(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function Uy(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Wy(n);if(Hy(n.type,r))return;sl(n,`_sentryCaptured`,!0),r&&!r._sentryId&&sl(r,`_sentryId`,Rl());let i=n.type===`keypress`?`input`:n.type;Vy(n)||(e({event:n,name:i,global:t}),Ly=n.type,Ry=r?r._sentryId:void 0),clearTimeout(Iy),Iy=K.setTimeout(()=>{Ry=void 0,Ly=void 0},Fy)}}function Wy(e){try{return e.target}catch{return null}}var Gy;function Ky(e){let t=`history`;Ic(t,e),Lc(t,qy)}function qy(){if(K.addEventListener(`popstate`,()=>{let e=K.location.href,t=Gy;Gy=e,t!==e&&Rc(`history`,{from:t,to:e})}),!Eg())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=Gy,i=Jy(String(n));if(Gy=i,r===i)return e.apply(this,t);Rc(`history`,{from:r,to:i})}return e.apply(this,t)}}ol(K.history,`pushState`,e),ol(K.history,`replaceState`,e)}function Jy(e){try{return new URL(e,K.location.origin).toString()}catch{return e}}var Yy={};function Xy(e){let t=Yy[e];if(t)return t;let n=K[e];if(Og(n))return Yy[e]=n.bind(K);let r=K.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){f_&&V.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Yy[e]=n.bind(K))}function Zy(e){Yy[e]=void 0}function Qy(...e){return Xy(`setTimeout`)(...e)}var $y=`__sentry_xhr_v3__`;function eb(e){Ic(`xhr`,e),Lc(`xhr`,tb)}function tb(){if(!K.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=Yl()*1e3,a=Zc(n[0])?n[0].toUpperCase():void 0,o=nb(n[1]);if(!a||!o)return e.apply(t,n);t[$y]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[$y];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}Rc(`xhr`,{endTimestamp:Yl()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[$y];return a&&Zc(r)&&Zc(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[$y];return r?(n[0]!==void 0&&(r.body=n[0]),Rc(`xhr`,{startTimestamp:Yl()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function nb(e){if(Zc(e))return e;try{return e.toString()}catch{}}var rb=Symbol.for(`sentry__originalRequestBody`);function ib(e){return new URLSearchParams(e).toString()}function ab(e,t=V){try{if(typeof e==`string`)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[ib(e)];if(!e)return[void 0]}catch(n){return f_&&t.error(n,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return f_&&t.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function ob(e=[]){if(e.length>
22=2&&e[1]&&typeof e[1]==`object`&&`body`in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][rb];return t===void 0?void 0:t}}function sb(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return f_&&V.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r 23`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}function cb(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}var lb=40;function ub(e,t=Xy(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw Zy(`fetch`),e}finally{n-=a,r--}}return Vm(e,i,Fm(e.bufferSize||lb))}var db=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,fb=30,pb=50;function mb(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var hb=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,gb=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_b=/\((\S*)(?::(\d+))(?::(\d+))\)/,vb=/at (.+?) ?\(data:(.+?),/,yb=[fb,e=>{let t=e.match(vb);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=hb.exec(e);if(n){let[,e,t,r]=n;return mb(e,`?`,+t,+r)}let r=gb.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=_b.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=Cb(r[1]||`?`,r[2]);return mb(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],bb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xb=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Sb=Dc(yb,[pb,e=>{let t=bb.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=xb.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=Cb(n,e),mb(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),Cb=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},wb=1024,Tb=`Breadcrumbs`,Eb=hm(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Tb,setup(e){t.console&&ng(kb(e)),t.dom&&zy(Ob(e,t.dom)),t.xhr&&eb(Ab(e)),t.fetch&&Ag(jb(e)),t.history&&Ky(Mb(e)),t.sentry&&e.on(`beforeSendEvent`,Db(e))}}}));function Db(e){return function(t){U()===e&&Ah({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:Bl(t)},{event:t})}}function Ob(e,t){return function(n){if(U()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>wb&&(db&&V.warn(`\`dom.maxStringLength\` cannot exceed ${wb}, but a value of ${o} was configured. Sentry will use ${wb} instead.`),o=wb),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Nb(e)?e.target:e;r=Ev(t,{keyAttrs:a,maxStringLength:o}),i=Vg(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Ah(s,{event:n.event,name:n.name,global:n.global})}}function kb(e){return function(t){if(U()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:ig(t.level),message:Ml(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${Ml(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;Ah(n,{input:t.args,level:t.level})}}function Ab(e){return function(t){if(U()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[$y];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:wg(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),Ah(d,u)}}function jb(e){return function(t){if(U()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;
23if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),Ah(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:wg(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),Ah(s,o)}}}function Mb(e){return function(t){if(U()!==e)return;let n=t.from,r=t.to,i=xp(G.location.href),a=n?xp(n):void 0,o=xp(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Ah({category:`navigation`,data:{from:n,to:r}})}}function Nb(e){return!!e&&!!e.target}var Pb=`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`.split(`,`),Fb=`BrowserApiErrors`,Ib=hm(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Fb,setupOnce(){t.setTimeout&&ol(G,`setTimeout`,Lb),t.setInterval&&ol(G,`setInterval`,Lb),t.requestAnimationFrame&&ol(G,`requestAnimationFrame`,Rb),t.XMLHttpRequest&&`XMLHttpRequest`in G&&ol(XMLHttpRequest.prototype,`send`,zb);let e=t.eventTarget;e&&(Array.isArray(e)?e:Pb).forEach(e=>Bb(e,t))}}}));
23function Lb(e){return function(...t){let n=t[0];return t[0]=Gg(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Mc(e)}`}}),e.apply(this,t)}}function Rb(e){return function(t){return e.apply(this,[Gg(t,{mechanism:{data:{handler:Mc(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function zb(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&ol(n,e,function(t){let n={mechanism:{data:{handler:Mc(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=ll(t);return r&&(n.mechanism.data.handler=Mc(r)),Gg(t,n)})}),e.apply(this,t)}}function Bb(e,t){let n=G[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(ol(n,`addEventListener`,function(n){return function(r,i,a){try{Vb(i)&&(i.handleEvent=Gg(i.handleEvent,{mechanism:{data:{handler:Mc(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&Hb(this,r,i),n.apply(this,[r,Gg(i,{mechanism:{data:{handler:Mc(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),ol(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function Vb(e){return typeof e.handleEvent==`function`}function Hb(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var Ub=hm((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(G.document===void 0){db&&V.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}tm({ignoreDuration:!0}),im();let e=Nu(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();
23(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(im(),n=t)}),t===`route`&&Ky(({from:e,to:t})=>{e!==t&&(tm({ignoreDuration:!0}),im())})}}}),Wb=`CultureContext`,Gb=hm((()=>({name:Wb,preprocessEvent(e){let t=Kb();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=Kb();t&&wp(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function Kb(){try{let e=G.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var qb=`GlobalHandlers`,Jb=hm(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:qb,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(Yb(e),ex(`onerror`)),t.onunhandledrejection&&(Xb(e),ex(`onunhandledrejection`))}}}));function Yb(e){Bc(t=>{let{stackParser:n,attachStacktrace:r}=tx();if(U()!==e||Ug())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=$b(a_(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Xp(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Xb(e){Uc(t=>{let{stackParser:n,attachStacktrace:r}=tx();if(U()!==e||Ug())return;let i=Zb(t),a=$c(i)?Qb(i):a_(n,i,void 0,r,!0);a.level=`error`,Xp(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Zb(e){if($c(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function Qb(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function $b(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:nx(t)??Bg(),function:`?`,in_app:!0}),e}function ex(e){db&&V.log(`Global Handler attached: ${e}`)}function tx(){return U()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function nx(e){if(!(!Zc(e)||e.length===0))return e.startsWith(`data:`)?`<${Cp(e,!1)}>`:e}var rx=hm(()=>({name:`HttpContext`,preprocessEvent(e){if(!G.navigator&&!G.location&&!G.document)return;let t=Kg(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!G.navigator&&!G.location&&!G.document)return;let t=Kg();wp(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers[`User-Agent`],"http.request.header.referer":t.headers.Referer})}})),ix=`cause`,ax=5,ox=`LinkedErrors`,sx=hm(((e={})=>{let t=e.limit||ax,n=e.key||ix;return{name:ox,preprocessEvent(e,r,i){Jh(qg,i.getOptions().stackParser,n,t,e,r)}}})),cx=/^HTML(\w*)Element$/;function lx(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(cb(e)){let t=ux(e);if(cx.test(t))return`[HTMLElement: ${Ev(e)}]`}}function ux(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function dx(){return fx()?(db&&hc(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function fx(){if(G.window===void 0)return!1;let e=G;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Bg();return!(G===G.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function px(e){return[Rh(),Ph(),mg(),Ib(),Eb(),Jb(),sx(),og(),rx(),Gb(),Ub()]}function mx(e={}){let t=!e.skipBrowserExtensionCheck&&dx(),n=e.defaultIntegrations==null?px():e.defaultIntegrations,r={...e,enabled:t?!1:e.enabled,stackParser:Oc(e.stackParser||Sb),integrations:dm({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||ub};return Sl(lx),gh(u_,r)}var hx=B,gx=`sentryReplaySession`,_x=`replay_event`,vx=`Unable to send Replay`,yx=3e5,bx=9e5,xx=5e3,Sx=5500,Cx=6e4,wx=5e3,Tx=3,Ex=15e4,Dx=5e3,Ox=3e3,kx=300,Ax=2e7,jx=4999,Mx=5e4,Nx=36e5,Px=Object.defineProperty,Fx=(e,t,n)=>t in e?Px(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ix=(e,t,n)=>Fx(e,typeof t==`symbol`?t:t+``,n),Lx=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(Lx||{});
23function Rx(e){return e.nodeType===e.ELEMENT_NODE}function zx(e){return e?.host?.shadowRoot===e}function Bx(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function Vx(e){return e.includes(` background-clip: text;`)&&!e.includes(` -webkit-background-clip: text;`)&&(e=e.replace(/\sbackground-clip:\s*text;/g,` -webkit-background-clip: text; background-clip: text;`)),e}function Hx(e){let{cssText:t}=e;if(t.split(`"`).length<3)return t;let n=[`@import`,`url(${JSON.stringify(e.href)})`];return e.layerName===``?n.push(`layer`):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(` `)+`;`}function Ux(e){try{let t=e.rules||e.cssRules;return t?Vx(Array.from(t,Gx).join(``)):null}catch{return null}}function Wx(e){let t=``;for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?` !important`:``};`}return`${e.selectorText} { ${t} }`}function Gx(e){let t;if(qx(e))try{t=Ux(e.styleSheet)||Hx(e)}catch{}else if(Jx(e)){let t=e.cssText,n=e.selectorText.includes(`:`),r=typeof e.style.all==`string`&&e.style.all;if(r&&(t=Wx(e)),n&&(t=Kx(t)),n||r)return t}return t||e.cssText}function Kx(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function qx(e){return`styleSheet`in e}function Jx(e){return`selectorText`in e}var Yx=class{constructor(){Ix(this,`idNodeMap`,new Map),Ix(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Xx(){return new Yx}function Zx({maskInputOptions:e,tagName:t,type:n}){return t===`OPTION`&&(t=`SELECT`),!!(e[t.toLowerCase()]||n&&e[n]||n===`password`||t===`INPUT`&&!n&&e.text)}function Qx({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||``;return e?(r&&(i=r(i,t)),`*`.repeat(i.length)):i}function $x(e){return e.toLowerCase()}function eS(e){return e.toUpperCase()}var tS=`__rrweb_original__`;function nS(e){let t=e.getContext(`2d`);if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=tS in i?i[tS]:i;if(new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>e!==0))return!1}return!0}function rS(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?$x(t):null}function iS(e,t,n){return t===`INPUT`&&(n===`radio`||n===`checkbox`)?e.getAttribute(`value`)||``:e.value}function aS(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}var oS={};function sS(e){let t=oS[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return oS[e]=r.bind(window)}function cS(...e){return sS(`setTimeout`)(...e)}function lS(...e){return sS(`clearTimeout`)(...e)}function uS(e){try{return e.contentDocument}catch{}}function dS(e){try{return e.contentWindow}catch{}}var fS=1,pS=RegExp(`[^a-z0-9-_:]`),mS=-2;function hS(){return fS++}function gS(e){if(e instanceof HTMLFormElement)return`form`;let t=$x(e.tagName);return pS.test(t)?`div`:t}function _S(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var vS,yS,bS=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,xS=/^(?:[a-z+]+:)?\/\//i,SS=/^www\..*/i,CS=/^(data:)([^,]*),(.*)/i;function wS(e,t){if(!e||t.size===0)return e;try{let n=e.split(`;`),r=[];for(let e of n){if(e=e.trim(),!e)continue;let n=e.indexOf(`:`);
23if(n===-1){r.push(e);continue}let i=e.slice(0,n).trim();t.has(i)||r.push(e)}return r.join(`; `)+(r.length>0&&e.endsWith(`;`)?`;`:``)}catch(t){return console.warn(`Error filtering CSS properties:`,t),e}}function TS(e,t){return(e||``).replace(bS,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(xS.test(s)||SS.test(s)||CS.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${_S(t)+s}${c})`;let l=t.split(`/`),u=s.split(`/`);l.pop();for(let e of u)if(e===`.`)continue;else e===`..`?l.pop():l.push(e);return`url(${c}${l.join(`/`)}${c})`})}var ES=/^[^ \t\n\r\u000c]+/,DS=/^[, \t\n\r\u000c]+/;function OS(e,t){if(t.trim()===``)return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}let i=[];for(;r(DS),!(n>=t.length);){let a=r(ES);if(a.slice(-1)===`,`)a=AS(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=AS(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}else if(o)e===`)`&&(o=!1);else if(e===`,`){n+=1,i.push((a+r).trim());break}else e===`(`&&(o=!0);r+=e,n+=1}}}return i.join(`, `)}var kS=new WeakMap;function AS(e,t){return!t||t.trim()===``?t:MS(e,t)}function jS(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function MS(e,t){let n=kS.get(e);if(n||(n=e.createElement(`a`),kS.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function NS(e,t,n,r,i,a,o){if(!r)return r;if(n===`src`||n===`href`&&!(t===`use`&&r[0]===`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`))return AS(e,r);if(n===`srcset`)return OS(e,r);if(n===`style`){let t=TS(r,MS(e));return o&&o.size>0&&(t=wS(t,o)),t}else if(t===`object`&&n===`data`)return AS(e,r);return typeof a==`function`?a(n,r,i):r}function PS(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function FS(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t==`string`){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function IS(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function LS(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:LS(e.parentNode,t,n,r+1)}function RS(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(IS(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function zS(e,t,n,r,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName===`INPUT`){let e=o.getAttribute(`autocomplete`);if([`current-password`,`new-password`,`cc-number`,`cc-exp`,`cc-exp-month`,`cc-exp-year`,`cc-csc`].includes(e))return!0}let s=-1,c=-1;if(a){if(c=LS(o,RS(r,i)),c<0)return!0;s=LS(o,RS(t,n),c>=0?c:1/0)}else{if(s=LS(o,RS(t,n)),s<0)return!1;c=LS(o,RS(r,i),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function BS(e,t,n){let r=dS(e);if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=cS(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{lS(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return cS(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function VS(e,t,n){let r=!1,i;try{i=e.sheet}catch{i=null}if(i)return;let a=cS(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{lS(a),r=!0,t()})}function HS(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x=!1,ignoreCSSAttributes:S}=t,C=US(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:Lx.Document,childNodes:[]}:{type:Lx.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:Lx.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return GS(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:g,dataURLOptions:_,inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x,rootId:C,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:S});case e.TEXT_NODE:return WS(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:
23h,maskInputOptions:m,maskInputFn:g,rootId:C});case e.CDATA_SECTION_NODE:return{type:Lx.CDATA,textContent:``,rootId:C};case e.COMMENT_NODE:return{type:Lx.Comment,textContent:e.textContent||``,rootId:C};default:return!1}}function US(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function WS(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p=d===`STYLE`?!0:void 0,m=d===`SCRIPT`?!0:void 0,h=d===`TEXTAREA`?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=Ux(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=TS(f,MS(t.doc))}m&&(f=`SCRIPT_PLACEHOLDER`);let g=zS(e,r,a,i,o,n);return!p&&!m&&!h&&f&&g&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,`*`)),h&&f&&(c.textarea||g)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,`*`)),d===`OPTION`&&f&&(f=Qx({isMasked:zS(e,r,a,i,o,Zx({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:Lx.Text,textContent:f||``,isStyle:p,rootId:u}}function GS(e,t){let{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:h,maskTextClass:g,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:y,ignoreCSSAttributes:b}=t,x=FS(e,r,i,a),S=gS(e),C={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];r.name&&!PS(S,r.name,r.value)&&(C[r.name]=NS(n,S,$x(r.name),r.value,e,c,b))}if(S===`link`&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=Ux(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=TS(r,t.href))}if(S===`style`&&e.sheet&&!(e.innerText||e.textContent||``).trim().length){let t=Ux(e.sheet);t&&(C._cssText=TS(t,MS(n)))}if(S===`input`||S===`textarea`||S===`select`||S===`option`){let t=e,n=rS(t),r=iS(t,eS(S),n),i=t.checked;if(n!==`submit`&&n!==`button`&&r){let e=zS(t,g,v,_,y,Zx({type:n,tagName:eS(S),maskInputOptions:s}));C.value=Qx({isMasked:e,element:t,value:r,maskInputFn:l})}i&&(C.checked=i)}if(S===`option`&&(e.selected&&!s.select?C.selected=!0:delete C.selected),S===`canvas`&&f){if(e.__context===`2d`)nS(e)||(C.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!(`__context`in e)){let t=e.toDataURL(u.type,u.quality),r=n.createElement(`canvas`);r.width=e.width,r.height=e.height,t!==r.toDataURL(u.type,u.quality)&&(C.rr_dataURL=t)}}if(S===`img`&&d){vS||(vS=n.createElement(`canvas`),yS=vS.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{vS.width=t.naturalWidth,vS.height=t.naturalHeight,yS.drawImage(t,0,0),C.rr_dataURL=vS.toDataURL(u.type,u.quality)}catch(e){if(t.crossOrigin!==`anonymous`){t.crossOrigin=`anonymous`,t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a);return}else console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?C.crossOrigin=i:t.removeAttribute(`crossorigin`))};t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a)}if((S===`audio`||S===`video`)&&(C.rr_mediaState=e.paused?`paused`:`played`,C.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),x){let{width:t,height:n}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${n}px`}}S===`iframe`&&!p(C.src)&&(!x&&!uS(e)&&(C.rr_src=C.src),delete C.src);let T;try{customElements.get(S)&&(T=!0)}catch{}return{type:Lx.Element,tagName:S,attributes:C,childNodes:[],isSVG:jS(e)||void 0,needBlock:x,rootId:h,isCustom:T}}function KS(e){return e==null?``:e.toLowerCase()}function qS(e,t){return!!(t.comment&&e.type===Lx.Comment||e.type===Lx.Element&&(t.script&&(e.tagName===`script`||e.tagName===`link`&&(e.attributes.rel===`preload`||e.attributes.rel===`modulepreload`)||e.tagName===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&aS(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(KS(e.attributes.name).match(/^msapplication-tile(image|color)$/)||KS(e.attributes.name)===`application-name`||KS(e.attributes.rel)===`icon`||KS(e.attributes.rel)===`apple-touch-icon`||KS(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&KS(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(KS(e.attributes.property).match(/^(og|twitter|fb):/)||KS(e.attributes.name).match(/^(og|twitter):/)||KS(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(KS(e.attributes.name)===`robots`||KS(e.attributes.name)===`googlebot`||KS(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(KS(e.attributes.name)===`author`||KS(e.attributes.name)===`generator`||KS(e.attributes.name)===`framework`||KS(e.attributes.name)===`publisher`||KS(e.attributes.name)===`progid`||KS(e.attributes.property).match(/^article:/)||KS(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(KS(e.attributes.name)===`google-site-verification`||KS(e.attributes.name)===`yandex-verification`||KS(e.attributes.name)===`csrf-token`||KS(e.attributes.name)===`p:domain_verify`||KS(e.attributes.name)===`verify-v1`||KS(e.attributes.name)===`verification`||KS(e.attributes.name)===`shopify-checkout-api-token`)))
23)}function JS(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y={},inlineImages:b=!1,recordCanvas:x=!1,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w=5e3,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:ee=5e3,keepIframeSrcFn:D=()=>!1,newlyAddedElement:te=!1,ignoreCSSAttributes:ne}=t,{preserveWhiteSpace:re=!0}=t,ie=HS(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,dataURLOptions:y,inlineImages:b,recordCanvas:x,keepIframeSrcFn:D,newlyAddedElement:te,ignoreCSSAttributes:ne});if(!ie)return console.warn(e,`not serialized`),null;let ae;ae=r.hasNode(e)?r.getId(e):qS(ie,v)||!re&&ie.type===Lx.Text&&!ie.isStyle&&!ie.textContent.trim().length?mS:hS();let O=Object.assign(ie,{id:ae});if(r.add(e,O),ae===mS)return null;S&&S(e);let oe=!f;if(O.type===Lx.Element){oe&&=!O.needBlock;let t=e.shadowRoot;t&&Bx(t)&&(O.isShadowHost=!0)}if((O.type===Lx.Document||O.type===Lx.Element)&&oe){v.headWhitespace&&O.type===Lx.Element&&O.tagName===`head`&&(re=!1);let t={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:ee,keepIframeSrcFn:D,ignoreCSSAttributes:ne},te=e.childNodes?Array.from(e.childNodes):[];for(let e of te){let n=JS(e,t);n&&O.childNodes.push(n)}if(Rx(e)&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=JS(n,t);r&&(Bx(e.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}if(e.parentNode&&zx(e.parentNode)&&Bx(e.parentNode)&&(O.isShadow=!0),O.type===Lx.Element&&O.tagName===`iframe`&&!O.needBlock&&BS(e,()=>{let t=uS(e);if(t&&C){let n=JS(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:ee,keepIframeSrcFn:D,ignoreCSSAttributes:ne});n&&C(e,n)}},w),O.type===Lx.Element&&O.tagName===`img`&&!e.complete&&O.needBlock){let t=e,n=()=>{if(t.isConnected&&!t.complete&&T)try{let e=t.getBoundingClientRect();e.width>0&&e.height>0&&T(t,O,e)}catch{}t.removeEventListener(`load`,n)};t.isConnected&&t.addEventListener(`load`,n)}return O.type===Lx.Element&&O.tagName===`link`&&typeof O.attributes.rel==`string`&&(O.attributes.rel===`stylesheet`||O.attributes.rel===`preload`&&typeof O.attributes.href==`string`&&aS(O.attributes.href)===`css`)&&VS(e,()=>{if(E){let t=JS(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:ee,keepIframeSrcFn:D,ignoreCSSAttributes:ne});t&&E(e,t)}},ee),O.type===Lx.Element&&delete O.needBlock,O}function YS(e,t){let{mirror:n=new Yx,blockClass:r=`rr-block`,blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s=`rr-mask`,unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOM:v=!1,dataURLOptions:y,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:ee=()=>!1,ignoreCSSAttributes:D=new Set([])}=t||{};return JS(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!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}:m===!1?{}:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v===!0||v===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v===`all`,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
23:v===!1?{}:v,dataURLOptions:y,inlineImages:f,recordCanvas:p,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:ee,newlyAddedElement:!1,ignoreCSSAttributes:D})}function XS(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var ZS=`Please stop import mirror directly. Instead of that,\r 24now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 25or you can use record.mirror to access the mirror instance during recording.`,QS={map:{},getId(){return console.error(ZS),-1},getNode(){return console.error(ZS),null},removeNodeFromMap(){console.error(ZS)},has(){return console.error(ZS),!1},reset(){console.error(ZS)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(QS=new Proxy(QS,{get(e,t,n){return t===`map`&&console.error(ZS),Reflect.get(e,t,n)}}));function $S(e,t,n={}){let r=null,i=0;return function(...a){let o=Date.now();!i&&n.leading===!1&&(i=o);let s=t-(o-i),c=this;s<=0||s>t?(r&&=(TC(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=wC(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function eC(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){wC(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>eC(e,t,a||{},!0)}function tC(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var nC=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(nC=()=>new Date().getTime());function rC(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0:e.pageYOffset}}function iC(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function aC(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function oC(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function sC(e,t,n,r,i){if(!e)return!1;let a=oC(e);if(!a)return!1;let o=RS(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=LS(a,o),c=-1;return s<0?!1:(r&&(c=LS(a,RS(null,r))),s>-1&&c<0?!0:s<c)}function cC(e,t){return t.getId(e)!==-1}function lC(e,t){return t.getId(e)===mS}function uC(e,t){if(zx(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?uC(e.parentNode,t):!0:!0}function dC(e){return!!e.changedTouches}function fC(e=window){`NodeList`in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),`DOMTokenList`in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError(`1 argument is required`);do if(this===t)return!0;while(t&&=t.parentNode);return!1})}function pC(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function mC(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function hC(e){return!!e?.shadowRoot}var gC=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===void 0?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function _C(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function vC(e){let t=e,n;for(;n=_C(t);)t=n;return t}function yC(e){let t=e.ownerDocument;if(!t)return!1;let n=vC(e);return t.contains(n)}function bC(e){let t=e.ownerDocument;return t?t.contains(e)||yC(e):!1}
25var xC={};function SC(e){let t=xC[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return xC[e]=r.bind(window)}function CC(...e){return SC(`requestAnimationFrame`)(...e)}function wC(...e){return SC(`setTimeout`)(...e)}function TC(...e){return SC(`clearTimeout`)(...e)}var q=(e=>(e[e.DomContentLoaded=0]=`DomContentLoaded`,e[e.Load=1]=`Load`,e[e.FullSnapshot=2]=`FullSnapshot`,e[e.IncrementalSnapshot=3]=`IncrementalSnapshot`,e[e.Meta=4]=`Meta`,e[e.Custom=5]=`Custom`,e[e.Plugin=6]=`Plugin`,e))(q||{}),J=(e=>(e[e.Mutation=0]=`Mutation`,e[e.MouseMove=1]=`MouseMove`,e[e.MouseInteraction=2]=`MouseInteraction`,e[e.Scroll=3]=`Scroll`,e[e.ViewportResize=4]=`ViewportResize`,e[e.Input=5]=`Input`,e[e.TouchMove=6]=`TouchMove`,e[e.MediaInteraction=7]=`MediaInteraction`,e[e.StyleSheetRule=8]=`StyleSheetRule`,e[e.CanvasMutation=9]=`CanvasMutation`,e[e.Font=10]=`Font`,e[e.Log=11]=`Log`,e[e.Drag=12]=`Drag`,e[e.StyleDeclaration=13]=`StyleDeclaration`,e[e.Selection=14]=`Selection`,e[e.AdoptedStyleSheet=15]=`AdoptedStyleSheet`,e[e.CustomElement=16]=`CustomElement`,e))(J||{}),EC=(e=>(e[e.MouseUp=0]=`MouseUp`,e[e.MouseDown=1]=`MouseDown`,e[e.Click=2]=`Click`,e[e.ContextMenu=3]=`ContextMenu`,e[e.DblClick=4]=`DblClick`,e[e.Focus=5]=`Focus`,e[e.Blur=6]=`Blur`,e[e.TouchStart=7]=`TouchStart`,e[e.TouchMove_Departed=8]=`TouchMove_Departed`,e[e.TouchEnd=9]=`TouchEnd`,e[e.TouchCancel=10]=`TouchCancel`,e))(EC||{}),DC=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(DC||{}),OC=(e=>(e[e.Play=0]=`Play`,e[e.Pause=1]=`Pause`,e[e.Seeked=2]=`Seeked`,e[e.VolumeChange=3]=`VolumeChange`,e[e.RateChange=4]=`RateChange`,e))(OC||{}),kC;function AC(e){kC=e}function jC(){kC=void 0}for(var Y=e=>kC?((...t)=>{try{return e(...t)}catch(e){if(kC&&kC(e)===!0)return()=>{};throw e}}):e,MC=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,NC=typeof Uint8Array>`u`?[]:new Uint8Array(256),PC=0;PC<MC.length;PC++)NC[MC.charCodeAt(PC)]=PC;var FC=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}};function IC(e){try{return e.contentDocument}catch{}}function LC(e){try{return e.contentWindow}catch{}}var RC=class{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if(typeof CSSStyleSheet>`u`||typeof CSSStyleSheet.prototype.replaceSync!=`function`)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let n=t.cssRules[0];return!n||n.type!==CSSRule.STYLE_RULE?null:n.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement(`span`);return t.setAttribute(`style`,e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}};function zC(e){return`__ln`in e}var BC=class{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error(`Position outside of list range`);let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&zC(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&zC(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},VC=(e,t)=>`${e}@${t}`,HC=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>
25{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new BC,r=e=>{let t=e,n=mS;for(;n===mS;)t&&=t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!bC(i))return;let a=zx(i.parentNode)?this.mirror.getId(_C(i)):this.mirror.getId(i.parentNode),o=r(i);if(a===-1||o===-1)return n.addNode(i);let s=JS(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{pC(e,this.mirror)&&!sC(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),mC(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),hC(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(sC(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let n=LC(e);n&&this.canvasManager.addWindow(n),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)WC(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(let e of this.addedSet)!KC(this.droppedSet,e)&&!WC(this.removes,e,this.mirror)||KC(this.movedSet,e)?i(e):this.droppedSet.add(e);let a=null;for(;n.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),n=r(a.value);t!==-1&&n!==-1&&(e=a)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(r(n.value)===-1)continue;if(t!==-1){e=n;break}else{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(this.mirror.getId(r)!==-1){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if(typeof t.style==`string`){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split(`var(`).length===t.style.split(`var(`).length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};!o.texts.length&&!o.attributes.length&&!o.removes.length&&!o.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!lC(e.target,this.mirror))switch(e.type){case`characterData`:{let t=e.target.textContent;!sC(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:zS(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,oC(e.target)):t.replace(/[\S]/g,`*`):t,node:e.target});break}case`attributes`:{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if(n===`value`){let n=rS(t),i=t.tagName;r=iS(t,i,n);let a=Zx({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=Qx({isMasked:zS(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(sC(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if(t.tagName===`IFRAME`&&n===`src`&&!this.keepIframeSrcFn(r))if(!IC(t))n=`rr_src`;else return;if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
25,this.attributes.push(i),this.attributeMap.set(e.target,i)),n===`type`&&t.tagName===`INPUT`&&(e.oldValue||``).toLowerCase()===`password`&&t.setAttribute(`data-rr-is-password`,`true`),!PS(t.tagName,n)&&(i.attributes[n]=NS(this.doc,$x(t.tagName),$x(n),r,t,this.maskAttributeFn),n===`style`)){let n=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);r!==(n?.getPropertyValue(e)||``)||a!==(n?.getPropertyPriority(e)||``)?a===``?i.styleDiff[e]=r:i.styleDiff[e]=[r,a]:i._unchangedStyles[e]=[r,a]}if(n)for(let e of Array.from(n))t.style.getPropertyValue(e)===``&&(i.styleDiff[e]=!1)}break}case`childList`:if(sC(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=zx(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);sC(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||lC(t,this.mirror)||!cC(t,this.mirror)||(this.addedSet.has(t)?(UC(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||uC(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[VC(n,r)]?UC(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:zx(e.target)&&Bx(e.target)?!0:void 0})),this.mapRemoves.push(t))});break}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(lC(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[VC(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);sC(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),hC(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){`mutationCb.blockClass.blockSelector.unblockSelector.maskAllText.maskTextClass.unmaskTextClass.maskTextSelector.unmaskTextSelector.inlineStylesheet.maskInputOptions.maskAttributeFn.maskTextFn.maskInputFn.keepIframeSrcFn.recordCanvas.inlineImages.slimDOMOptions.dataURLOptions.doc.mirror.iframeManager.stylesheetManager.shadowDomManager.canvasManager.processedNodeManager.ignoreCSSAttributes`.split(`.`).forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new RC(this.doc)}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 UC(e,t){e.delete(t),t.childNodes?.forEach(t=>UC(e,t))}function WC(e,t,n){return e.length===0?!1:GC(e,t,n)}function GC(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}function KC(e,t){return e.size===0?!1:qC(e,t)}function qC(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:qC(e,n):!1}var JC=[];function YC(e){try{if(`composedPath`in e){let t=e.composedPath();if(t.length)return t[0]}else if(`path`in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function XC(e,t){let n=new HC;JC.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.(`MutationObserver`);i&&window[i]&&(r=window[i]);let a=new r(Y(t=>{e.onMutation&&e.onMutation(t)===!1||n.processMutations.bind(n)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function ZC({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let i=typeof t.mousemove==`number`?t.mousemove:50,a=typeof t.mousemoveCallback==`number`?t.mousemoveCallback:500,o=[],s,c=$S(Y(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=Y($S(Y(e=>{let t=YC(e),{clientX:n,clientY:i}=dC(e)?e.changedTouches[0]:e;s||=nC(),o.push({x:n,y:i,id:r.getId(t),timeOffset:nC()-s}),c(typeof DragEvent<`u`&&e instanceof DragEvent?J.Drag:e instanceof MouseEvent?J.MouseMove:J.TouchMove)}),i,{trailing:!1})),u=[XS(`mousemove`,l,n),XS(`touchmove`,l,n),XS(`drag`,l,n)];return Y(()=>
25{u.forEach(e=>e())})}function QC({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[],l=null,u=t=>o=>{let s=YC(o);if(sC(s,r,i,a,!0))return;let c=null,u=t;if(`pointerType`in o){switch(o.pointerType){case`mouse`:c=DC.Mouse;break;case`touch`:c=DC.Touch;break;case`pen`:c=DC.Pen;break}c===DC.Touch?EC[t]===EC.MouseDown?u=`TouchStart`:EC[t]===EC.MouseUp&&(u=`TouchEnd`):DC.Pen}else dC(o)&&(c=DC.Touch);c===null?EC[t]===EC.Click&&(c=l,l=null):(l=c,(u.startsWith(`Touch`)&&c===DC.Touch||u.startsWith(`Mouse`)&&c===DC.Mouse)&&(c=null));let d=dC(o)?o.changedTouches[0]:o;if(!d)return;let f=n.getId(s),{clientX:p,clientY:m}=d;Y(e)({type:EC[u],id:f,x:p,y:m,...c!==null&&{pointerType:c}})};return Object.keys(EC).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1).forEach(e=>{let n=$x(e),r=u(e);if(window.PointerEvent)switch(EC[e]){case EC.MouseDown:case EC.MouseUp:n=n.replace(`mouse`,`pointer`);break;case EC.TouchStart:case EC.TouchEnd:return}c.push(XS(n,r,t))}),Y(()=>{c.forEach(e=>e())})}function $C({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return XS(`scroll`,Y($S(Y(o=>{let s=YC(o);if(!s||sC(s,r,i,a,!0))return;let c=n.getId(s);if(s===t&&t.defaultView){let n=rC(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}function ew({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return XS(`resize`,Y($S(Y(()=>{let t=iC(),i=aC();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var tw=[`INPUT`,`TEXTAREA`,`SELECT`],nw=new WeakMap;function rw({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:h}){function g(e){let n=YC(e),u=e.isTrusted,g=n&&eS(n.tagName);if(g===`OPTION`&&(n=n.parentElement),!n||!g||tw.indexOf(g)<0||sC(n,r,i,a,!0))return;let v=n;if(v.classList.contains(o)||s&&v.matches(s))return;let y=rS(n),b=iS(v,g,y),x=!1,S=Zx({maskInputOptions:c,tagName:g,type:y}),C=zS(n,f,m,p,h,S);(y===`radio`||y===`checkbox`)&&(x=n.checked),b=Qx({isMasked:C,element:n,value:b,maskInputFn:l}),_(n,d?{text:b,isChecked:x,userTriggered:u}:{text:b,isChecked:x});let w=n.name;y===`radio`&&w&&x&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=Qx({isMasked:C,element:e,value:iS(e,g,y),maskInputFn:l});_(e,d?{text:t,isChecked:!x,userTriggered:!1}:{text:t,isChecked:!x})}})}function _(t,r){let i=nw.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){nw.set(t,r);let i=n.getId(t);Y(e)({...r,id:i})}}let v=(u.input===`last`?[`change`]:[`input`,`change`]).map(e=>XS(e,Y(g),t)),y=t.defaultView;if(!y)return()=>{v.forEach(e=>e())};let b=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,`value`),x=[[y.HTMLInputElement.prototype,`value`],[y.HTMLInputElement.prototype,`checked`],[y.HTMLSelectElement.prototype,`value`],[y.HTMLTextAreaElement.prototype,`value`],[y.HTMLSelectElement.prototype,`selectedIndex`],[y.HTMLOptionElement.prototype,`selected`]];return b&&b.set&&v.push(...x.map(e=>eC(e[0],e[1],{set(){Y(g)({target:this,isTrusted:!1})}},!1,y))),Y(()=>{v.forEach(e=>e())})}function iw(e){let t=[];function n(e,t){if(mw(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||mw(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||mw(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||mw(`CSSConditionRule`)&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}return n(e,t)}function aw(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function ow({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:Y((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=aw(i,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:s}]}),r.apply(i,a)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:Y((r,i,a)=>{let[o]=a,{id:s,styleId:c}=aw(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:o}]}),r.apply(i,a)})});let o;
25r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:Y((r,i,a)=>{let[o]=a,{id:s,styleId:c}=aw(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replace:o}),r.apply(i,a)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:Y((r,i,a)=>{let[o]=a,{id:s,styleId:c}=aw(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};hw(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(hw(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),hw(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),hw(`CSSSupportsRule`)&&(c.CSSSupportsRule=r.CSSSupportsRule));let l={};return Object.entries(c).forEach(([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:Y((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=aw(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...iw(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:Y((r,i,a)=>{let[o]=a,{id:s,styleId:c}=aw(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...iw(i),o]}]}),r.apply(i,a)})})}),Y(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,o&&(r.CSSStyleSheet.prototype.replace=o),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}function sw({mirror:e,stylesheetManager:t},n){let r=null;r=n.nodeName===`#document`?e.getId(n):e.getId(n.host);let i=n.nodeName===`#document`?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,`adoptedStyleSheets`):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let n=a.set?.call(this,e);if(r!==null&&r!==-1)try{t.adoptStyleSheets(e,r)}catch{}return n}}),Y(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function cw({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Y((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=aw(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,set:{property:c,value:l,priority:u},index:iw(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:Y((i,a,s)=>{let[c]=s;if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=aw(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:iw(a.parentRule)}),i.apply(a,s)})}),Y(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function lw({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=Y(o=>$S(Y(a=>{let s=YC(a);if(!s||sC(s,t,n,r,!0))return;let{currentTime:c,volume:l,muted:u,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:c,volume:l,muted:u,playbackRate:d})}),a.media||500)),c=[XS(`play`,s(OC.Play),o),XS(`pause`,s(OC.Pause),o),XS(`seeked`,s(OC.Seeked),o),XS(`volumechange`,s(OC.VolumeChange),o),XS(`ratechange`,s(OC.RateChange),o)];return Y(()=>{c.forEach(e=>e())})}function uw({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(e,t,n);return i.set(r,{family:e,buffer:typeof t!=`string`,descriptors:n,fontSource:typeof t==`string`?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=tC(t.fonts,`add`,function(t){return function(n){return wC(Y(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}
25),r.push(o),Y(()=>{r.forEach(e=>e())})}function dw(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,c=Y(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:o,startOffset:s,endContainer:l,endOffset:u}=e.getRangeAt(t);sC(o,r,i,a,!0)||sC(l,r,i,a,!0)||c.push({start:n.getId(o),startOffset:s,end:n.getId(l),endOffset:u})}o({ranges:c})});return c(),XS(`selectionchange`,c)}function fw({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:tC(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,i])}})}function pw(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=XC(e,e.doc));let i=ZC(e),a=QC(e),o=$C(e),s=ew(e,{win:n}),c=rw(e),l=lw(e),u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=ow(e,{win:n}),d=sw(e,e.doc),f=cw(e,{win:n}),e.collectFonts&&(p=uw(e)));let m=dw(e),h=fw(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Y(()=>{JC.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(e=>e())})}function mw(e){return window[e]!==void 0}function hw(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}var gw=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
25getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return typeof t==`number`?r.get(t)||-1:t}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},_w=class{constructor(){this.crossOriginIframeMirror=new gw(hS),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},vw=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new gw(hS),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new gw(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);let t=LC(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&LC(e)?.addEventListener(`message`,this.handleMessage.bind(this)),this.loadListener?.(e);let n=IC(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){let t=e;if(t.data.type!==`rrweb`||t.origin!==t.data.origin||!e.source)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case q.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:q.IncrementalSnapshot,data:{source:J.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case q.Meta:case q.Load:case q.DomContentLoaded:return!1;case q.Plugin:return t;case q.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case q.IncrementalSnapshot:switch(t.data.source){case J.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,[`parentId`,`nextId`,`previousId`]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,[`parentId`,`id`])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,[`id`])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case J.Drag:case J.TouchMove:case J.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case J.ViewportResize:return!1;case J.MediaInteraction:case J.MouseInteraction:case J.Scroll:case J.CanvasMutation:case J.Input:return this.replaceIds(t.data,e,[`id`]),t;case J.StyleSheetRule:case J.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case J.Font:return t;case J.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,[`start`,`end`])}),t;case J.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,[`styleId`])}),t}}return!1}replace(e,t,n,r){for(let i of r)!Array.isArray(t[i])&&typeof t[i]!=`number`||(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,[`id`,`rootId`]),`childNodes`in e&&e.childNodes.forEac
25h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==Lx.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},yw=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},bw=class{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Bx(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=XC({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push($C({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),wC(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(sw({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=IC(e),n=LC(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(tC(e.prototype,`attachShadow`,function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&bC(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},xw=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new gC,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:Gx(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},Sw=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,CC(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},Cw,ww;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}var Tw=Xx();function Ew(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i=`rr-block`,blockSelector:a=null,unblockSelector:o=null,ignoreClass:s=`rr-ignore`,ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u=`rr-mask`,unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:h,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,maxCanvasSize:x=null,packFn:S,sampling:C={},dataURLOptions:w={},mousemoveWait:T,recordDOM:E=!0,recordCanvas:ee=!1,recordCrossOriginIframes:D=!1,recordAfter:te=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:ne=!1,collectFonts:re=!1,inlineImages:ie=!1,plugins:ae,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:oe=new Set([]),errorHandler:se,onMutation:k,getCanvasManager:A}=e;AC(se);let ce=D?window.parent===window:!0,le=!1;if(!ce)try{window.parent.document&&(le=!1)}catch{le=!0}if(ce&&!t)throw Error(`emit function is required`);if(!ce&&!le)return()=>{};
25T!==void 0&&C.mousemove===void 0&&(C.mousemove=T),Tw.reset();let ue=h===!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,de=_===!0||_===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_===`all`,headMetaDescKeywords:_===`all`}:_||{};fC();let fe,pe=0,me=e=>{for(let t of ae||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!le&&(e=S(e)),e};Cw=(e,i)=>{let a=e;if(a.timestamp=nC(),JC[0]?.isFrozen()&&a.type!==q.FullSnapshot&&!(a.type===q.IncrementalSnapshot&&a.data.source===J.Mutation)&&JC.forEach(e=>e.unfreeze()),ce)t?.(me(a),i);else if(le){let e={type:`rrweb`,event:me(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===q.FullSnapshot)fe=a,pe=0;else if(a.type===q.IncrementalSnapshot){if(a.data.source===J.Mutation&&a.data.isAttachIframe)return;pe++;let e=r&&pe>=r,t=n&&fe&&a.timestamp-fe.timestamp>n;(e||t)&&Ce(!0)}};let he=e=>{Cw({type:q.IncrementalSnapshot,data:{source:J.Mutation,...e}})},ge=e=>Cw({type:q.IncrementalSnapshot,data:{source:J.Scroll,...e}}),_e=e=>Cw({type:q.IncrementalSnapshot,data:{source:J.CanvasMutation,...e}}),ve=new xw({mutationCb:he,adoptedStyleSheetCb:e=>Cw({type:q.IncrementalSnapshot,data:{source:J.AdoptedStyleSheet,...e}})}),ye=typeof __RRWEB_EXCLUDE_IFRAME__==`boolean`&&__RRWEB_EXCLUDE_IFRAME__?new _w:new vw({mirror:Tw,mutationCb:he,stylesheetManager:ve,recordCrossOriginIframes:D,wrappedEmit:Cw});for(let e of ae||[])e.getMirror&&e.getMirror({nodeMirror:Tw,crossOriginIframeMirror:ye.crossOriginIframeMirror,crossOriginIframeStyleMirror:ye.crossOriginIframeStyleMirror});let be=new Sw,xe=Ow(A,{mirror:Tw,win:window,mutationCb:e=>Cw({type:q.IncrementalSnapshot,data:{source:J.CanvasMutation,...e}}),recordCanvas:ee,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:w,errorHandler:se}),Se=typeof __RRWEB_EXCLUDE_SHADOW_DOM__==`boolean`&&__RRWEB_EXCLUDE_SHADOW_DOM__?new yw:new bw({mutationCb:he,scrollCb:ge,bypassOptions:{onMutation:k,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:ue,dataURLOptions:w,maskAttributeFn:v,maskTextFn:b,maskInputFn:y,recordCanvas:ee,inlineImages:ie,sampling:C,slimDOMOptions:de,iframeManager:ye,stylesheetManager:ve,canvasManager:xe,keepIframeSrcFn:O,processedNodeManager:be,ignoreCSSAttributes:oe},mirror:Tw}),Ce=(e=!1)=>{if(!E)return;Cw({type:q.Meta,data:{href:window.location.href,width:aC(),height:iC()}},e),ve.reset(),Se.init(),JC.forEach(e=>e.lock());let t=YS(document,{mirror:Tw,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:ue,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,slimDOM:de,dataURLOptions:w,recordCanvas:ee,inlineImages:ie,onSerialize:e=>{pC(e,Tw)&&ye.addIframe(e),mC(e,Tw)&&ve.trackLinkElement(e),hC(e)&&Se.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{ye.attachIframe(e,t);let n=LC(e);n&&xe.addWindow(n),Se.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{ve.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{he({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:O,ignoreCSSAttributes:oe});if(!t)return console.warn(`Failed to snapshot the document`);Cw({type:q.FullSnapshot,data:{node:t,initialOffset:rC(window)}}),JC.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ve.adoptStyleSheets(document.adoptedStyleSheets,Tw.getId(document))};ww=Ce;try{let e=[],t=e=>Y(pw)({onMutation:k,mutationCb:he,mousemoveCb:(e,t)=>Cw({type:q.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Cw({type:q.IncrementalSnapshot,data:{source:J.MouseInteraction,...e}}),scrollCb:ge,viewportResizeCb:e=>Cw({type:q.IncrementalSnapshot,data:{source:J.ViewportResize,...e}}),inputCb:e=>Cw({type:q.IncrementalSnapshot,data:{source:J.Input,...e}}),mediaInteractionCb:e=>Cw({type:q.IncrementalSnapshot,data:{source:J.MediaInteraction,...e}}),styleSheetRuleCb:e=>Cw({type:q.IncrementalSnapshot,data:{source:J.StyleSheetRule,...e}}),styleDeclarationCb:e=>Cw({type:q.IncrementalSnapshot,data:{source:J.StyleDeclaration,...e}}),canvasMutationCb:_e,fontCb:e=>Cw({type:q.IncrementalSnapshot,data:{source:J.Font,...e}}),selectionCb:e=>{Cw({type:q.IncrementalSnapshot,data:{source:J.Selection,...e}})},customElementCb:e=>{Cw({type:q.IncrementalSnapshot,data:{source:J.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:ue,inlineStylesheet:m,sampling:C,recordDOM:E,recordCanvas:ee,inlineImages:ie,userTriggeredOnInput:ne,collectFonts:re,doc:e,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,keepIframeSrcFn:O,blockSelector:a,unblockSelector:o,slimDOMOptions:de,dataURLOptions:w,mirror:Tw,iframeManager:ye,stylesheetManager:ve,shadowDomManager:Se,processedNodeManager:be,canvasManager:xe,ignoreCSSAttributes:oe,plugins:ae?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>Cw({type:q.Plugin,data:{plugin:e.name,payload:t}}
25)}))||[]},{});ye.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{Ce(),e.push(t(document))};return document.readyState===`interactive`||document.readyState===`complete`?n():(e.push(XS(`DOMContentLoaded`,()=>{Cw({type:q.DomContentLoaded,data:{}}),te===`DOMContentLoaded`&&n()})),e.push(XS(`load`,()=>{Cw({type:q.Load,data:{}}),te===`load`&&n()},window))),()=>{e.forEach(e=>e()),be.destroy(),ww=void 0,jC()}}catch(e){console.warn(e)}}function Dw(e){if(!ww)throw Error(`please take full snapshot after start recording`);ww(e)}Ew.mirror=Tw,Ew.takeFullSnapshot=Dw;function Ow(e,t){try{return e?e(t):new FC}catch{return console.warn(`Unable to initialize CanvasManager`),new FC}}var kw;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(kw||={});var Aw=3,jw=5;function Mw(e){return e>9999999999?e:e*1e3}function Nw(e){return e>9999999999?e/1e3:e}function Pw(e,t){t.category!==`sentry.transaction`&&([`ui.click`,`ui.input`].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:q.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:`breadcrumb`,payload:Cl(t,10,1e3)}}),t.category===`console`)))}var Fw=`button,a`;function Iw(e){return e.closest(Fw)||e}function Lw(e){let t=Rw(e);return!t||!(t instanceof Element)?t:Iw(t)}function Rw(e){return zw(e)?e.target:e}function zw(e){return typeof e==`object`&&!!e&&`target`in e}var Bw;function Vw(e){return Bw||(Bw=[],Hw()),Bw.push(e),()=>{let t=Bw?Bw.indexOf(e):-1;t>-1&&Bw.splice(t,1)}}function Hw(){ol(hx,`open`,function(e){return function(...t){if(Bw)try{Bw.forEach(e=>e())}catch{}return e.apply(hx,t)}})}var Uw=new Set([J.Mutation,J.StyleSheetRule,J.StyleDeclaration,J.AdoptedStyleSheet,J.CanvasMutation,J.Selection,J.MediaInteraction]);function Ww(e,t,n){e.handleClick(t,n)}var Gw=class{constructor(e,t,n=Pw){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let e=Vw(()=>{this._lastMutation=Yw()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(qw(t,this._ignoreSelector)||!Jw(e))return;let n={timestamp:Nw(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Nw(e)}registerScroll(e=Date.now()){this._lastScroll=Nw(e)}registerClick(e){let t=Iw(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=Yw();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(let t of e){let e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:a,clickBreadcrumb:o}=e;if(i){let n=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,r=n<this._timeout*1e3?`mutation`:`timeout`,i={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.slowClickDetected`,data:{...o.data,url:hx.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:a||1}};this._addBreadcrumbEvent(t,i);return}if(a>1){let e={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.multiClick`,data:{...o.data,url:hx.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Qy(()=>this._checkClicks(),1e3)}},Kw=[`A`,`BUTTON`,`INPUT`];function qw(e,t){return!!(!Kw.includes(e.tagName)||e.tagName===`INPUT`&&![`submit`,`button`].includes(e.getAttribute(`type`)||``)||e.tagName===`A`&&(e.hasAttribute(`download`)||e.hasAttribute(`target`)&&e.getAttribute(`target`)!==`_self`)||t&&e.matches(t))}
25function Jw(e){return!!(e.data&&typeof e.data.nodeId==`number`&&e.timestamp)}function Yw(){return Date.now()/1e3}function Xw(e,t){try{if(!Zw(t))return;let{source:n}=t.data;if(Uw.has(n)&&e.registerMutation(t.timestamp),n===J.Scroll&&e.registerScroll(t.timestamp),Qw(t)){let{type:n,id:r}=t.data,i=Ew.mirror.getNode(r);i instanceof HTMLElement&&n===EC.Click&&e.registerClick(i)}}catch{}}function Zw(e){return e.type===Aw}function Qw(e){return e.data.source===J.MouseInteraction}function $w(e){return{timestamp:Date.now()/1e3,type:`default`,...e}}var eT=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(eT||{}),tT=new Set([`id`,`class`,`aria-label`,`role`,`name`,`alt`,`title`,`data-test-id`,`data-testid`,`disabled`,`aria-disabled`,`data-sentry-component`]);function nT(e){let t={};!e[`data-sentry-component`]&&e[`data-sentry-element`]&&(e[`data-sentry-component`]=e[`data-sentry-element`]);for(let n in e)if(tT.has(n)){let r=n;(n===`data-testid`||n===`data-test-id`)&&(r=`testId`),t[r]=e[n]}return t}var rT=e=>t=>{if(!e.isEnabled())return;let n=aT(t);if(!n)return;let r=t.name===`click`,i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&Ww(e.clickDetector,n,Lw(t.event)),Pw(e,n)};function iT(e,t){let n=Ew.mirror.getId(e),r=n&&Ew.mirror.getNode(n),i=r&&Ew.mirror.getMeta(r),a=i&&sT(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===eT.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(``),attributes:nT(a.attributes)}}:{}}}function aT(e){let{target:t,message:n}=oT(e);return $w({category:`ui.${e.name}`,...iT(t,n)})}function oT(e){let t=e.name===`click`,n,r=null;try{r=t?Lw(e.event):Rw(e.event),n=Ev(r,{maxStringLength:200})||`<unknown>`}catch{n=`<unknown>`}return{target:r,message:n}}function sT(e){return e.type===eT.Element}function cT(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=lT(t);n&&Pw(e,n)}function lT(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||uT(o)||!a)return null;let s=t||r||i,c=a.length===1;if(!s&&c)return null;let l=Ev(o,{maxStringLength:200})||`<unknown>`;return $w({category:`ui.keyDown`,message:l,data:{...iT(o,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function uT(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.isContentEditable}var dT={resource:vT,paint:gT,navigation:_T};function fT(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function pT(e){return e.map(mT).filter(Boolean)}function mT(e){let t=dT[e.entryType];return t?t(e):null}function hT(e){return((Ql()||hx.performance.timeOrigin)+e)/1e3}function gT(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=hT(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function _T(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:m,type:h}=e;return i===0?null:{type:`${t}.${h}`,start:hT(p),end:hT(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function vT(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return[`fetch`,`xmlhttprequest`].includes(n)?null:{type:`${t}.${n}`,start:hT(a),end:hT(i),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:s}}}function yT(e){let t=e.entries[e.entries.length-1];return CT(e,`largest-contentful-paint`,t?.element?[t.element]:void 0)}function bT(e){return e.sources!==void 0}function xT(e){let t=[],n=[];for(let r of e.entries)if(bT(r)){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=Ew.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return CT(e,`cumulative-layout-shift`,n,t)}function ST(e){let t=e.entries[e.entries.length-1];return CT(e,`interaction-to-next-paint`,t?.target?[t.target]:void 0)}function CT(e,t,n,r){let i=e.value,a=e.rating,o=hT(i);return{type:`web-vital`,name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:n?n.map(e=>Ew.mirror.getId(e)):void 0,attributions:r}}}function wT(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];
25return[`navigation`,`paint`,`resource`].forEach(e=>{r.push(mv(e,n))}),r.push(dv(fT(yT,e)),uv(fT(xT,e)),pv(fT(ST,e))),()=>{r.forEach(e=>e())}}var X=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,TT=
vendor: 10,332 bytes, line 25
25`var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;
25function ET(){let e=new Blob([TT]);return URL.createObjectURL(e)}var DT=[`log`,`warn`,`error`],OT=`[Replay] `;function kT(e,t=`info`){Ah({category:`console`,data:{logger:`replay`},level:t,message:`${OT}${e}`},{level:t})}function AT(){let e=!1,t=!1,n={exception:()=>void 0,infoTick:()=>void 0,setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return X?(DT.forEach(e=>{n[e]=(...n)=>{V[e](OT,...n),t&&kT(n.join(``),ig(e))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),V.error(OT,r),e?Yp(r,{mechanism:{handled:!0,type:`auto.function.replay.debug`}}):t&&kT(r,`error`)},n.infoTick=(...e)=>{V.log(OT,...e),t&&setTimeout(()=>kT(e[0]),0)}):DT.forEach(e=>{n[e]=()=>void 0}),n}var Z=AT(),jT=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Ax}.`)}},MT=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return`sync`}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>Ax)throw new jT;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(e===null||t<e)&&(e=t);return e===null?e:Mw(e)}},NT=class{constructor(e){this._onMessage=({data:e})=>{let t=e;if(typeof t.id!=`number`)return;let n=this._pending.get(t.id);if(!(!n||n.method!==t.method)){if(this._pending.delete(t.id),!t.success){X&&Z.error(`Error in compression worker: `,t.response),n.reject(Error(`Error in compression worker`));return}n.resolve(t.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener(`message`,this._onMessage)}ensureReady(){return this._ensureReadyPromise||=new Promise((e,t)=>{this._worker.addEventListener(`message`,({data:n})=>{n.success?e():(X&&Z.warn(`Received worker message with unsuccessful status`,n),t(Error(`Received worker message with unsuccessful status`)))},{once:!0}),this._worker.addEventListener(`error`,e=>{X&&Z.warn(`Failed to load Replay compression worker`,e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:`Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load.`}`))},{once:!0})}),this._ensureReadyPromise}destroy(){X&&Z.log(`Destroying compression worker`),this._worker.removeEventListener(`message`,this._onMessage),this._pending.forEach(e=>e.reject(Error(`Worker destroyed`))),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{this._pending.set(n,{method:e,resolve:r,reject:i});try{this._worker.postMessage({id:n,method:e,arg:t})}catch(e){this._pending.delete(n),i(e)}})}_getAndIncrementId(){return this._id++}},PT=class{constructor(e){this._worker=new NT(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return`worker`}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=Mw(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Ax?Promise.reject(new jT):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage(`clear`).then(null,e=>{X&&Z.exception(e,`Sending "clear" message to worker failed`,e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage(`addEvent`,e)}async _finishRequest(){let e=await this._worker.postMessage(`finish`);return this._earliestTimestamp=null,this._totalSize=0,e}},FT=class{constructor(e){this._fallback=new MT,this._compression=new PT(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}
25async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){X&&Z.exception(e,`Failed to load the compression worker, falling back to simple buffer`);return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){X&&Z.exception(e,`Failed to add events when switching buffers.`)}}};function IT({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=LT(t);if(e)return e}return X&&Z.log(`Using simple buffer`),new MT}function LT(e){try{let t=e||RT();return t?(X&&Z.log(`Using compression worker${e?` from ${e}`:``}`),new FT(new Worker(t))):void 0}catch(e){X&&Z.exception(e,`Failed to create compression worker`)}}function RT(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>`u`||!__SENTRY_EXCLUDE_REPLAY_WORKER__?ET():``}function zT(){try{return`sessionStorage`in hx&&!!hx.sessionStorage}catch{return!1}}function BT(e){VT(),e.session=void 0}function VT(){if(zT())try{hx.sessionStorage.removeItem(gx)}catch{}}function HT(e){return e===void 0?!1:Math.random()<e}function UT(e){if(zT())try{hx.sessionStorage.setItem(gx,JSON.stringify(e))}catch{}}function WT(e){let t=Date.now();return{id:e.id||Rl(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function GT(e,t){return HT(e)?`session`:t?`buffer`:!1}function KT({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=WT({sampled:GT(e,t),previousSessionId:r});return n&&UT(i),i}function qT(){if(!zT())return null;try{let e=hx.sessionStorage.getItem(gx);if(!e)return null;let t=JSON.parse(e);return X&&Z.infoTick(`Loading existing session`),WT(t)}catch{return null}}function JT(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function YT(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return JT(e.started,t,r)||JT(e.lastActivity,n,r)}function XT(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!YT(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled===`buffer`&&e.segmentId===0)}function ZT({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&qT();return i?XT(i,{sessionIdleExpire:e,maxReplayDuration:t})?(X&&Z.infoTick(`Session in sessionStorage is expired, creating new one...`),KT(r,{previousSessionId:i.id})):i:(X&&Z.infoTick(`Creating new session`),KT(r,{previousSessionId:n}))}function QT(e){return e.type===q.Custom}function $T(e,t,n){return nE(e,t)?(tE(e,t,n),!0):!1}function eE(e,t,n){return nE(e,t)?tE(e,t,n):Promise.resolve(null)}async function tE(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i=e.recordingMode===`buffer`;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let a=rE(t,e.getOptions().beforeAddRecordingEvent);return a?await r.addEvent(a):void 0}catch(t){let n=t&&t instanceof jT,a=n?`eventBufferOverflow`:`eventBufferError`,o=U();if(o){let e=n?`buffer_overflow`:`internal_sdk_error`;o.recordDroppedEvent(e,`replay`)}if(n&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:a})}}function nE(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=Mw(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(X&&Z.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function rE(e,t){try{if(typeof t==`function`&&QT(e))return t(e)}catch(e){return X&&Z.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function iE(e){return!e.type}function aE(e){return e.type===`transaction`}function oE(e){return e.type===`replay_event`}function sE(e){return e.type===`feedback`}function cE(e){return(t,n)=>{if(!e.isEnabled()||!iE(t)&&!aE(t))return;let r=n.statusCode;if(!(!r||r<200||r>=300)){if(aE(t)){lE(e,t);return}uE(e,t)}}}function lE(e,t){let n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function uE(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!==`buffer`||!t.tags?.replayId)return;let{beforeErrorSampling:r}=e.getOptions();typeof r==`function`&&!r(t)||Qy(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function dE(e){return t=>{!e.isEnabled()||!iE(t)||fE(e,t)}}function fE(e,t){let n=t.exception?.values?.[0]?.value;typeof n==`string`&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&Pw(e,$w({category:`replay.hydrate-error`,data:{url:Bg()}}))}function pE(e){let t=U();t&&t.on(`beforeAddBreadcrumb`,t=>mE(e,t))}function mE(e,t){if(!e.isEnabled()||!_E(t))return;let n=hE(t);n&&Pw(e,n)}function hE(e){return!_E(e)||[`fetch`,`xhr`,`sentry.event`,`sentry.transaction`].includes(e.category)||e.category.startsWith(`ui.`)?null:e.category===`console`?gE(e):$w(e)}function gE(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return $w(e);let n=!1,r=t.map(e=>{if(!e)return e;if(typeof e==`string`)return e.length>Dx?(n=!0,`${e.slice(0,Dx)}\u2026`):e;if(typeof e==`object`)try{let t=Cl(e,7);return JSON.stringify(t).length>Dx?(n=!0,`${JSON.stringify(t,null,2).slice(0,Dx)}\u2026`):t}catch{}return e});return $w({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:[`CONSOLE_ARG_TRUNCATED`]}}:{}}})}function _E(e){return!!e.category}function vE(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function yE(){let e=H().getPropagationContext().dsc;e&&delete e.replay_id;let t=Yd();if(t){let e=df(t);delete e.replay_id}}function bE(e){let t=H().getPropagationContext().dsc;t&&(t.replay_id=e);let n=Yd();if(n){let t=df(n);t.replay_id=e}}function xE(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:q.Custom,timestamp:t.timestamp*1e3,data:{tag:`breadcrumb`,payload:{timestamp:t.timestamp,type:`default`,category:`sentry.feedback`,data:{feedbackId:t.event_id}}}}),!1):!0)}function SE(e,t){return e.recordingMode!==`buffer`||t.message===vx||!t.exception||t.type?!1:HT(e.getOptions().errorSampleRate)}function CE(e){return Object.assign((t,n)=>{if(e.session&&XT(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire}
25)&&yE(),!e.isEnabled()||e.isPaused())return t;if(oE(t))return delete t.breadcrumbs,t;if(!iE(t)&&!aE(t)&&!sE(t))return t;if(!e.checkAndHandleExpiredSession())return yE(),t;if(sE(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),xE(e,t),t;if(vE(t,n)&&!e.getOptions()._experiments.captureExceptions)return X&&Z.log(`Ignoring error from rrweb internals`,t),null;let r=SE(e,t);if((r||e.recordingMode===`session`)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&e.recordingMode===`buffer`&&e.session?.sampled===`buffer`){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&UT(t)}return t},{id:`Replay`})}function wE(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:q.Custom,timestamp:n,data:{tag:`performanceSpan`,payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:a}}});return typeof o==`string`?Promise.resolve(null):o})}function TE(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:`navigation.push`,start:r,end:r,name:n,data:{previous:t}}}function EE(e){return t=>{if(!e.isEnabled())return;let n=TE(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(wE(e,[n]),!1)))}}function DE(e,t){return X&&e.getOptions()._experiments.traceInternals?!1:vh(t,U())}function OE(e,t){e.isEnabled()&&t!==null&&(DE(e,t.name)||e.addUpdate(()=>(wE(e,[t]),!0)))}function kE(e){if(!e)return;let t=new TextEncoder;try{if(typeof e==`string`)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=ib(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function AE(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function jE(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta};return n.warnings=[...n.warnings||[],t],e._meta=n,e}function ME(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:o,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:a,statusCode:o,request:s,response:c}}}function NE(e){return{headers:{},size:e,_meta:{warnings:[`URL_SKIPPED`]}}}function PE(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:a}=IE(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function FE(e,t){return Object.entries(e).reduce((n,[r,i])=>{let a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function IE(e){if(!e||typeof e!=`string`)return{body:e};let t=e.length>Ex,n=LE(e);if(t){let t=e.slice(0,Ex);return n?{body:t,warnings:[`MAYBE_JSON_TRUNCATED`]}:{body:`${t}\u2026`,warnings:[`TEXT_TRUNCATED`]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function LE(e){let t=e[0],n=e[e.length-1];return t===`[`&&n===`]`||t===`{`&&n===`}`}function RE(e,t){return Pl(zE(e),t)}function zE(e,t=hx.document.baseURI){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(hx.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith(`/`)&&r.endsWith(`/`)?r.slice(0,-1):r}async function BE(e,t,n){try{let r=ME(`resource.fetch`,await HE(e,t,n));OE(n.replay,r)}catch(e){X&&Z.exception(e,`Failed to capture fetch breadcrumb`)}}function VE(e,t){let{input:n,response:r}=t,i=kE(n?ob(n):void 0),a=r?AE(r.headers.get(`content-length`)):void 0;i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}async function HE(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:o,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=RE(o,n.networkDetailAllowUrls)&&!RE(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:c,request:d?UE(n,t.input,l):NE(l),response:await WE(d,n,t.response,u)}}function UE({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?JE(n,t):{};if(!e)return PE(i,r,void 0);let[a,o]=ab(ob(n),Z),s=PE(i,r,a);return o?jE(s,o):s}async function WE(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return NE(i);let a=r?qE(r.headers,n):{};if(!r||!t&&i!==void 0)return PE(a,i,void 0);let[o,s]=await KE(r),c=GE(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?jE(c,s):c}function GE(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let a=e?.length&&n===void 0?kE(e):n;return r?t?PE(i,a,e):PE(i,a,void 0):NE(a)}catch(e){return X&&Z.exception(e,`Failed to serialize response body`),PE(i,n,void 0)}}async function KE(e){let t=XE(e);if(!t)return[void 0,`BODY_PARSE_ERROR`];try{return[await ZE(t)]}catch(e){return e instanceof Error&&e.message.indexOf(`Timeout`)>-1?(X&&Z.warn(`Parsing text body from response timed out`),[void 0,`BODY_PARSE_TIMEOUT`]):(X&&Z.exception(e,`Failed to get text body from response`),[void 0,`BODY_PARSE_ERROR`])}}function qE(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function JE(e,t){return e.length===1&&typeof e[0]!=`string`?YE(e[0],t):e.length===2?YE(e[1],t):{}}function YE(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?qE(n,t):Array.isArray(n)?{}:FE(n,t):{}}function XE(e){try{return e.clone()}catch(e){X&&Z.exception(e,`Failed to clone response body`)}}function ZE(e){return new Promise((t,n)=>{let r=Qy(()=>n(Error(`Timeout while trying to read response body`)),500);QE(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function QE(e){return await e.text()}async function $E(e,t,n){try{let r=ME(`resource.xhr`,tD(e,t,n));OE(n.replay,r)}catch(e){X&&Z.exception(e,`Failed to capture xhr breadcrumb`)}}function eD(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=kE(r),a=n.getResponseHeader(`content-length`)?AE(n.getResponseHeader(`content-length`)):iD(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a
25)}function tD(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:o,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!RE(c,n.networkDetailAllowUrls)||RE(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:NE(d),response:NE(f)};let p=s[$y],m=p?FE(p.request_headers,n.networkRequestHeaders):{},h=FE(sb(s),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?ab(o,Z):[void 0],[v,y]=n.networkCaptureBodies?nD(s):[void 0],b=PE(m,d,g),x=PE(h,f,v);return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:_?jE(b,_):b,response:y?jE(x,y):x}}function nD(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return rD(e.response,e.responseType)}catch(e){t.push(e)}return X&&Z.warn(`Failed to get xhr response body`,...t),[void 0]}function rD(e,t){try{if(typeof e==`string`)return[e];if(e instanceof Document)return[e.body.outerHTML];if(t===`json`&&e&&typeof e==`object`)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return X&&Z.exception(t,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return X&&Z.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function iD(e,t){try{return kE(t===`json`&&e&&typeof e==`object`?JSON.stringify(e):e)}catch{return}}function aD(e){let t=U();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};t&&t.on(`beforeAddBreadcrumb`,(e,t)=>oD(s,e,t))}catch{}}function oD(e,t,n){if(t.data)try{sD(t)&&lD(n)&&(eD(t,n),$E(t,n,e)),cD(t)&&uD(n)&&(VE(t,n),BE(t,n,e))}catch(e){X&&Z.exception(e,`Error when enriching network breadcrumb`)}}function sD(e){return e.category===`xhr`}function cD(e){return e.category===`fetch`}function lD(e){return e?.xhr}function uD(e){return e?.input!==void 0}function dD(e){let t=U();zy(rT(e)),Ky(EE(e)),pE(e),aD(e),em(CE(e)),t&&(t.on(`beforeSendEvent`,dE(e)),t.on(`afterSendEvent`,cE(e)),t.on(`createDsc`,t=>{let n=e.getSessionId();n&&e.isEnabled()&&e.recordingMode===`session`&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on(`spanStart`,t=>{e.lastActiveSpan=t}),t.on(`spanEnd`,t=>{e.lastActiveSpan=t}),t.on(`beforeSendFeedback`,async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&(t.contexts.feedback.source===`api`&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.on(`openFeedbackWidget`,async()=>{await e.sendBufferedReplayOrFlush()}))}async function fD(e){try{return Promise.all(wE(e,[pD(hx.performance.memory)]))}catch{return[]}}function pD(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:`memory`,name:`memory`,start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function mD(e,t,n){return Oh(e,t,{...n,setTimeoutImpl:Qy})}var hD=B.navigator;function gD(){return/iPhone|iPad|iPod/i.test(hD?.userAgent??``)||/Macintosh/i.test(hD?.userAgent??``)&&hD?.maxTouchPoints&&hD?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function _D(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){X&&Z.warn(`Received replay event after session expired.`);return}let i=r||!t;t=!0,vD(n),e.clickDetector&&Xw(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode===`buffer`&&i&&e.setInitialState(),!$T(e,n,i))return!0;if(!i)return!1;let t=e.session;if(bD(e,i),e.recordingMode===`buffer`&&t&&e.eventBuffer&&!t.dirty){let n=e.eventBuffer.getEarliestTimestamp();n&&(X&&Z.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&UT(t))}return t?.previousSessionId||e.recordingMode===`session`&&e.flush(),!0})}}function vD(e){let t=e.data;if(!(e.type!==q.IncrementalSnapshot||!t||typeof t!=`object`||!(`source`in t)||t.source!==J.Mutation||!(`attributes`in t)||!Array.isArray(t.attributes)))for(let e of t.attributes){let t=Ew.mirror.getNode(e.id),n=t&&Ew.mirror.getMeta(t);if(n?.type===eT.Element)for(let[t,r]of Object.entries(e.attributes))r===null?delete n.attributes[t]:n.attributes[t]=r}}function yD(e){let t=e.getOptions();return{type:q.Custom,timestamp:Date.now(),data:{tag:`options`,payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type===`worker`:!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function bD(e,t){!t||e.session?.segmentId!==0||$T(e,yD(e),!1)}function xD(e){if(!e)return null;
25try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function SD(e,t,n,r){return mf(Df(e,Ef(e),r,n),[[{type:`replay_event`},e],[{type:`replay_recording`,length:typeof t==`string`?new TextEncoder().encode(t).length:t.length},t]])}function CD({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)} 26`;if(typeof e==`string`)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function wD({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:typeof e._integrations==`object`&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0};e.emit(`preprocessEvent`,r,i);let a=await Rp(e.getOptions(),r,i,t,e,Nu());if(!a)return null;e.emit(`postprocessEvent`,a,i),a.platform=a.platform||`javascript`;let{name:o,version:s,settings:c}=e.getSdkMetadata()?.sdk||{};return a.sdk={...a.sdk,name:o||`sentry.javascript.unknown`,version:s||`0.0.0`,settings:c},a}async function TD({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){let o=CD({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=U(),f=H(),p=d?.getTransport(),m=d?.getDsn();if(!d||!p||!m||!a.sampled)return Promise.resolve({});let h=await wD({scope:f,client:d,replayId:t,event:{type:_x,replay_start_timestamp:u/1e3,timestamp:i/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled}});if(!h)return d.recordDroppedEvent(`event_processor`,`replay`),X&&Z.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete h.sdkProcessingMetadata;let g=SD(h,o,m,d.getOptions().tunnel),_;try{_=await p.send(g)}catch(e){let t=Error(vx);try{t.cause=e}catch{}throw t}let v=Bm({},_);if(zm(v,`replay`))throw new DD(v);if(typeof _.statusCode==`number`&&(_.statusCode<200||_.statusCode>=300))throw new ED(_.statusCode);return _}var ED=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},DD=class extends Error{constructor(e){super(`Rate limit hit`),this.rateLimits=e}},OD=class extends Error{constructor(){super(`Session is too long, not sending replay`)}};async function kD(e,t={count:0,interval:wx}){let{recordingData:n,onError:r}=e;if(n.length)try{return await TD(e),!0}catch(n){if(n instanceof ED||n instanceof DD)throw n;if(Zp(`Replays`,{_retryCount:t.count}),r&&r(n),t.count>=Tx){let e=Error(`${vx} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{Qy(async()=>{try{await kD(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}var AD=`__THROTTLED`,jD=`__SKIPPED`;function MD(e,t,n){let r=new Map,i=e=>{let t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})},a=()=>[...r.values()].reduce((e,t)=>e+t,0),o=!1;return(...n)=>{let s=Math.floor(Date.now()/1e3);if(i(s),a()>=t){let e=o;return o=!0,e?jD:AD}o=!1;let c=r.get(s)||0;return r.set(s,c+1),e(...n)}}var ND=class{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode=`session`,this.timeouts={sessionIdlePause:yx,sessionIdleExpire:bx},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:``},this._recordingOptions=t,this._options=e,this._debouncedFlush=mD(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=MD((e,t)=>eE(this,e,t),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(Ox,n),timeout:n,scrollTimeout:kx,ignoreSelector:r?r.join(`,`):``}:void 0;if(i&&(this.clickDetector=new Gw(this,i)),X){let t=e._experiments;Z.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{hx.document.visibilityState===`visible`?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=$w({category:`ui.blur`});
26this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=$w({category:`ui.focus`});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{cT(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){X&&Z.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){X&&Z.exception(Error(`Unable to initialize and create session`));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled===`buffer`&&this.session.segmentId===0?`buffer`:`session`,X&&Z.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode===`session`){X&&Z.log(`Recording is already in progress`);return}if(this._isEnabled&&this.recordingMode===`buffer`){X&&Z.log("Buffering is in progress, call `flush()` to save the replay");return}X&&Z.infoTick(`Starting replay in session mode`),this._updateUserActivity();let e=ZT({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode=`session`,this._initializeRecording()}startBuffering(){if(this._isEnabled){X&&Z.log("Buffering is in progress, call `flush()` to save the replay");return}X&&Z.infoTick(`Starting replay in buffer mode`);let e=ZT({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode=`buffer`,this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=Ew({...this._recordingOptions,...this.recordingMode===`buffer`?{checkoutEveryNms:Cx}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:_D(this),...gD(),onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&=(this._stopRecording(),void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode=`buffer`;let n=t??`manual`;U()?.emit(`replayEnd`,{sessionId:this.session?.id,reason:n});try{X&&Z.log(`Stopping Replay triggered by ${n}`),yE(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,BT(this)}catch(e){this.handleException(e)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),X&&Z.log(`Pausing replay`))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),X&&Z.log(`Resuming replay`))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode===`session`)return this.flushImmediate();let t=Date.now();X&&Z.log(`Converting buffer to session`),await this.flushImmediate();let n=this.stopRecording();!e||!n||this.recordingMode!==`session`&&(this.recordingMode=`session`,this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),bE(this.session.id)),this.startRecording())}addUpdate(e){let t=e();this.recordingMode===`buffer`||!this._isEnabled||t!==!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(e){if(!(e&&this.session?.sampled===!1))return this.session?.id}
26checkAndHandleExpiredSession(){if(this._lastActivity&&JT(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled===`session`){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${hx.location.pathname}${hx.location.hash}${hx.location.search}`,t=`${hx.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===AD){let e=$w({category:`replay.throttled`});this.addUpdate(()=>!$T(this,{type:jw,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||Yd(),t=e&&qd(e),n=(t&&W(t).data||{})[Lu];if(!(!t||!n||![`route`,`custom`].includes(n)))return W(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=IT({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&U()?.emit(`replayStart`,{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),this.recordingMode===`session`&&this.session&&bE(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=ZT({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return XT(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:`sessionExpired`}),this.initializeSampling(e.id))}_addListeners(){try{hx.document.addEventListener(`visibilitychange`,this._handleVisibilityChange),hx.addEventListener(`blur`,this._handleWindowBlur),hx.addEventListener(`focus`,this._handleWindowFocus),hx.addEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||=(dD(this),!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=wT(this)}_removeListeners(){try{hx.document.removeEventListener(`visibilitychange`,this._handleVisibilityChange),hx.removeEventListener(`blur`,this._handleWindowBlur),hx.removeEventListener(`focus`,this._handleWindowFocus),hx.removeEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(this.session){if(XT(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){yE();return}e&&this._createCustomBreadcrumb(e),this.conditionalFlush()}}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){X&&Z.log(`Document has become active, but session has expired`);return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:q.Custom,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e}})})}_addPerformanceEntries(){let e=pT(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(wE(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();
26n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let 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(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){X&&Z.error(`No session or eventBuffer found to flush.`);return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await fD(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new OD;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await kD({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:`sendError`});let t=U();if(t){let n;n=e instanceof DD?`ratelimit_backoff`:e instanceof OD?`invalid`:`send_error`,t.recordDroppedEvent(n,`replay`)}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){X&&Z.error(`Attempting to finish replay event after session expired.`);return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){X&&Z.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?`short`:`long`}, not sending replay.`),r&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&X&&Z.log(`Flushing initial segment without checkout.`);let o=!!this._flushLock;this._flushLock||=this._runFlush();try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&UT(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=xD(e.target),r=t.join(`,`);return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>i||a){let e=$w({category:`replay.mutations`,data:{count:n,limit:a}});this._createCustomBreadcrumb(e)}return a?(this.stop({reason:`mutationLimit`,forceFlush:this.recordingMode===`session`}),!1):!0}};function PD(e,t){return[...e,...t].join(`,`)}function FD({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:PD(e,[`.sentry-mask`,`[data-sentry-mask]`]),unmaskTextSelector:PD(t,[]),blockSelector:PD(n,[`.sentry-block`,`[data-sentry-block]`,`base`,`iframe[srcdoc]:not([src])`]),unblockSelector:PD(r,[]),ignoreSelector:PD(i,[`.sentry-ignore`,`[data-sentry-ignore]`,`input[type="file"]`])}}function ID({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return a;let o=n.includes(t),s=r&&t===`value`&&e.tagName===`INPUT`&&[`submit`,`button`].includes(e.getAttribute(`type`)||``);return o||s?a.replace(/[\S]/g,`*`):a}var LD=`img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]`,RD=[`content-length`,`content-type`,`accept`],zD=Symbol.for(`sentry__originalRequestBody`),BD=!1,VD=!1;function HD(){if(typeof Request>`u`||VD)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[zD]=n.body),r};t.prototype=e.prototype,B.Request=t,VD=!0}catch{}}var UD=(e=>new WD(e)),WD=class{constructor({flushMinDelay:e=xx,flushMaxDelay:t=Sx,minReplayDuration:n=jx,maxReplayDuration:r=Nx,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:v=[],networkResponseHeaders:y=[],mask:b=[],maskAttributes:x=[`title`,`placeholder`,`aria-label`],unmask:S=[],block:C=[],unblock:w=[],ignore:T=[],maskFn:E,beforeAddRecordingEvent:ee,beforeErrorSampling:D,onError:te,attachRawBodyFromRequest:ne=!1}={}){this.name=`Replay`;let re=FD({mask:b,unmask:S,block:C,unblock:w,ignore:T});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(e,t,n)=>ID({maskAttributes:x,maskAllText:c,privacyOptions:re,key:e,value:t,el:n}),...re,slimDOMOptions:`all`,inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,Mx),maxReplayDuration:Math.min(r,Nx),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:h,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:KD(v),networkResponseHeaders:KD(y),beforeAddRecordingEvent:ee,beforeErrorSampling:D,onError:te,attachRawBodyFromRequest:ne,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${LD}`:LD,this._recordingOptions.ignoreCSSAttributes=new Set([`background-image`])),this._isInitialized&&ym())throw Error(`Multiple Sentry Session Replay instances are not supported`);this._isInitialized=!0}get _isInitialized(){return BD}set _isInitialized(e){BD=e}afterAllSetup(e){!ym()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&HD(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
26startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode===`session`,reason:`manual`}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){let t=this.getReplayId(!0);t&&(wp(e,{"sentry.replay_id":t}),this.getRecordingMode()===`buffer`&&wp(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=GD(this._initialOptions,e);this._replay=new ND({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName(`ReplayCanvas`);if(!t)return;this._replay._canvas=t.getOptions()}catch{}}};function GD(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=vd(n.replaysSessionSampleRate),a=vd(n.replaysOnErrorSampleRate);return i==null&&a==null&&hc(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function KD(e){return[...RD,...e.map(e=>e.toLowerCase())]}function qD(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function JD(e){try{return new URL(e,G.location.origin).href}catch{return}}function YD(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function XD(e){try{return new Headers(e)}catch{return}}var ZD={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function QD(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:s,onRequestSpanEnd:c}
26={...ZD,...t},l=typeof i==`function`?i:e=>!0,u=e=>tO(e,o),d={},f=e.getOptions().propagateTraceparent;n&&Ag(t=>{let n=hg(t,l,u,d,{propagateTraceparent:f,onRequestSpanEnd:c});if(n){let r=JD(t.fetchData.url),i=r?xp(r).host:void 0;n.setAttributes({"http.url":r?Cp(r):void 0,"server.address":i}),a&&eO(n,e),s?.(n,{headers:t.headers})}}),r&&eb(t=>{let n=nO(t,l,u,d,f,c);n&&(a&&eO(n,e),s?.(n,{headers:XD(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}var $D=300;function eO(e,t){let{url:n}=W(e).data;if(!n||typeof n!=`string`)return;let r=()=>void setTimeout(i);if(If(t)){let t=e.end.bind(e);e.end=e=>{let n=e??Yl(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,$D)}}let i=mv(`resource`,({entries:t})=>{t.forEach(t=>{YD(t)&&t.name.endsWith(n)&&(e.setAttributes(Uv(t)),r())})})}function tO(e,t){let n=Bg();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?Pl(r.toString(),t)||a&&Pl(r.pathname,t):a}else{let n=!!e.match(/^\/(?!\/)/);return t?Pl(e,t):n}}function nO(e,t,n,r,i,a){let o=e.xhr,s=o?.[$y];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=$d()&&t(c);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&s.status_code!==void 0&&(Zu(n,s.status_code),n.end(),a?.(n,{headers:XD(sb(o)),error:e.error})),delete r[t]);return}let d=JD(c),f=xp(d||c),p=Cp(Sp(c)),m=U(),h=!!Yd()||!!m&&If(m),g=u&&h?Gf({name:`${l} ${p}`,attributes:{url:Cp(c),type:`xhr`,"http.method":l,"http.url":d?Cp(d):void 0,"server.address":f?.host,[Vu]:`auto.http.browser`,[Bu]:`http.client`,...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new ff;return u&&!h&&m?.recordDroppedEvent(`no_parent_span`,`span`),o.__sentry_xhr_span_id__=g.spanContext().spanId,r[o.__sentry_xhr_span_id__]=g,n(c)&&rO(o,$d()&&h?g:void 0,i),m&&m.emit(`beforeOutgoingRequestSpan`,g,e),g}function rO(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=Th({span:t,propagateTraceparent:n});r&&iO(e,r,i,a)}function iO(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!(i?.[`sentry-trace`]||!e.setRequestHeader))try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!qD(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}var aO=new WeakMap,oO=new WeakMap,sO=9e4,cO=[`text/event-stream`,`application/x-ndjson`,`application/stream+json`],lO=hm(()=>({name:`FetchStreamPerformance`,setup(){jg(e=>{if(e.response){let t=aO.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=oO.get(e.response);n&&clearTimeout(n)}}}),Ag(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get(`content-type`)||``;if(e.response.headers?.get(`content-length`)||!cO.some(e=>t.startsWith(e)))return;let n=e.fetchData?.url||``,r=e.fetchData?.method||`GET`,i=yp(n),a=Gf({name:`${r} ${n.startsWith(`data:`)?Cp(n):i?bp(i):n}`,startTime:e.endTimestamp,attributes:{url:Cp(n),"http.method":r,type:`fetch`,[Bu]:`http.client.stream`,[Vu]:`auto.http.browser.stream`}});aO.set(e.response,a);let o=setTimeout(()=>{a.isRecording()&&a.end()},sO);oO.set(e.response,o)}})}})),uO=`WebVitals`,dO=hm((e={})=>{let t=new Set(e.ignore??[]);return{name:uO,setup(n){let r=If(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:a}=e._experiments??{},o=r||t.has(`cls`)?void 0:i||!1,s=r||t.has(`lcp`)?void 0:a||!1,c=Xv({recordClsStandaloneSpans:o,recordLcpStandaloneSpans:s,client:n}),l=new WeakSet;n.on(`afterStartPageLoadSpan`,e=>{l.add(e)}),n.on(`spanEnd`,e=>{l.delete(e)&&(c(),ay(e,{recordClsOnPageloadSpan:o===!1,recordLcpOnPageloadSpan:s===!1,spanStreamingEnabled:r}))}),r?(t.has(`lcp`)||ky(n),t.has(`cls`)||jy(n),t.has(`inp`)||Ny()):t.has(`inp`)||Sy()},afterAllSetup(){t.has(`inp`)||Dy()}}});function fO(){G.document?G.document.addEventListener(`visibilitychange`,()=>{let e=Yd();if(!e)return;let t=qd(e);if(G.document.hidden&&t){let e=`cancelled`,{op:n,status:r}=W(t);db&&V.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):db&&V.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var pO=`sentry_previous_trace`,mO=`sentry.previous_trace`;function hO(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?vO():void 0;e.on(`spanStart`,e=>{if(qd(e)!==e)return;let t=H().getPropagationContext();i=gO(i,e,t),r&&_O(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=H(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(yO(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=yO(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[zu]:i.sampleRate}})}function gO(e,t,n){let r=W(t);function i(){try{let e=Number(r.data?.[`sentry.sample_rate`]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(db&&V.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[Ju]:`previous_trace`}}),t.setAttribute(mO,`${o.traceId}-${o.spanId}-${+!!yO(o)}`)),a)}function _O(e){try{G.sessionStorage.setItem(pO,JSON.stringify(e))}catch(e){db&&V.warn(`Could not store previous trace in sessionStorage`,e)}}function vO(){try{let e=G.sessionStorage?.getItem(pO);return JSON.parse(e)}catch{return}}function yO(e){return e.traceFlags===1}var bO=`BrowserTracing`,xO=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function SO(){let e=G.navigator;return e?.userAgent?xO.test(e.userAgent):!1}var CO={...tp,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
26dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...ZD},wO=((e={})=>{`enableElementTiming`in e&&hc(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let t={name:void 0,source:void 0},n=G.document,{enableInp:r,enableLongTask:i,enableLongAnimationFrame:a,_experiments:{enableInteractions:o,enableStandaloneClsSpans:s,enableStandaloneLcpSpans:c},beforeStartSpan:l,idleTimeout:u,finalTimeout:d,childSpanTimeout:f,markBackgroundSpan:p,traceFetch:m,traceXHR:h,trackFetchStreamPerformance:g,shouldCreateSpanForRequest:_,enableHTTPTimings:v,ignoreResourceSpans:y,ignorePerformanceApiSpans:b,instrumentPageLoad:x,instrumentNavigation:S,detectRedirects:C,linkPreviousTrace:w,consistentTraceSampling:T,enableReportPageLoaded:E,onRequestSpanStart:ee,onRequestSpanEnd:D}={...CO,...e},te=SO(),ne,re;function ie(e,r,i=!0){let a=r.op===`pageload`,o=r.name,s=l?l(r):r,c=s.attributes||{};if(o!==s.name&&(c[Lu]=`custom`,s.attributes=c),!i){let e=Kl();Gf({...s,startTime:e}).end(e);return}t.name=s.name,t.source=c[Lu];let p=op(s,{idleTimeout:u,finalTimeout:d,childSpanTimeout:f,disableAutoFinish:a,beforeSpanEnd:t=>{iy(t,{ignoreResourceSpans:y,ignorePerformanceApiSpans:b,spanStreamingEnabled:If(e)}),MO(e,void 0);let n=H(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:p.spanContext().traceId,sampled:zd(p),dsc:df(t)}),a&&(re=void 0)},trimIdleSpanEndTimestamp:!E});a&&E&&(re=p),MO(e,p);function m(){n&&[`interactive`,`complete`].includes(n.readyState)&&e.emit(`idleSpanEnableAutoFinish`,p)}a&&!E&&n&&(n.addEventListener(`readystatechange`,()=>{m()}),m())}return{name:bO,setup(e){if(te){db&&V.log(`[Tracing] Skipping browserTracingIntegration setup for bot user agent.`);return}if(Qd(),a&&B.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes(`long-animation-frame`)?Qv():i&&Zv(),o&&$v(),C&&n){let e=()=>{ne=Yl()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function t(){let t=jO(e);t&&!W(t).timestamp&&(db&&V.log(`[Tracing] Finishing current active span with op: ${W(t).op}`),t.setAttribute(Hu,`cancelled`),t.end())}e.on(`startNavigationSpan`,(n,r)=>{if(U()!==e)return;if(r?.isRedirect){db&&V.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),ie(e,{op:`navigation.redirect`,...n},!1);return}ne=void 0,t(),Nu().setPropagationContext({traceId:iu(),sampleRand:Math.random(),propagationSpanId:$d()?void 0:au()});let i=H();i.setPropagationContext({traceId:iu(),sampleRand:Math.random(),propagationSpanId:$d()?void 0:au()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),ie(e,{op:`navigation`,...n,parentSpan:null,forceTransaction:!0})}),e.on(`startPageLoadSpan`,(n,r={})=>{if(U()!==e)return;t();let i=xd(r.sentryTrace||DO(`sentry-trace`)||OO(`sentry-trace`),r.baggage||DO(`baggage`)||OO(`baggage`)),a=H();a.setPropagationContext(i),$d()||(a.getPropagationContext().propagationSpanId=au()),a.setSDKProcessingMetadata({normalizedRequest:Kg()}),ie(e,{op:`pageload`,...n})}),e.on(`endPageloadSpan`,()=>{E&&re&&(re.setAttribute(Hu,`reportPageLoaded`),re.end())})},afterAllSetup(e){if(te)return;e.addIntegration&&!e.getIntegrationByName?.(`WebVitals`)&&e.addIntegration(dO({ignore:r?[]:[`inp`],_experiments:{enableStandaloneClsSpans:s,enableStandaloneLcpSpans:c}}));let n=Bg();if(w!==`off`&&hO(e,{linkPreviousTrace:w,consistentTraceSampling:T}),G.location){if(x){let t=Ql();TO(e,{name:G.location.pathname,startTime:t?t/1e3:void 0,attributes:{[Lu]:`url`,[Vu]:`auto.pageload.browser`}})}S&&Ky(({to:t,from:r})=>{if(r===void 0&&n?.indexOf(t)!==-1){n=void 0;return}n=void 0;let i=yp(t),a=jO(e),o=a&&C&&PO(a,ne);EO(e,{name:i?.pathname||G.location.pathname,attributes:{[Lu]:`url`,[Vu]:`auto.navigation.browser`}},{url:t,isRedirect:o})})}p&&fO(),o&&kO(e,u,d,f,t),QD(e,{traceFetch:m,traceXHR:h,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:_,enableHTTPTimings:v,onRequestSpanStart:ee,onRequestSpanEnd:D}),g&&e.addIntegration(lO())}}});function TO(e,t,n){e.emit(`startPageLoadSpan`,t,n),H().setTransactionName(t.name);let r=jO(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function EO(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i}),e.emit(`startNavigationSpan`,t,{isRedirect:i});let a=H();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...Kg(),url:r}}),jO(e)}function DO(e){return(G.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function OO(e){return(G.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}function kO(e,t,n,r,i){let a=G.document,o;a&&addEventListener(`click`,()=>{let a=`ui.action.click`,s=jO(e);
26if(s){let e=W(s).op;if([`navigation`,`pageload`].includes(e)){db&&V.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&=(o.setAttribute(Hu,`interactionInterrupted`),o.end(),void 0),!i.name){db&&V.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=op({name:i.name,op:a,attributes:{[Lu]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})},{capture:!0})}var AO=`_sentry_idleSpan`;function jO(e){return e[AO]}function MO(e,t){sl(e,AO,t)}var NO=1.5;function PO(e,t){let n=W(e),r=Kl();return!(r-n.start_timestamp>NO||t&&r-t<=NO)}var FO=[`activate`,`mount`],IO=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,LO=/(?:^|[-_])(\w)/g,RO=e=>e.replace(LO,e=>e.toUpperCase()).replace(/[-_]/g,``),zO=`<Root>`,BO=`<Anonymous>`,VO=(e,t)=>e.repeat(t),HO=(e,t)=>{if(!e)return BO;if(e.$root===e)return zO;if(!e.$options)return BO;let n=e.$options,r=n.name||n._componentTag||n.__name,i=n.__file;if(!r&&i){let e=i.match(/([^/\\]+)\.vue$/);e&&(r=e[1])}return(r?`<${RO(r)}>`:BO)+(i&&t!==!1?` at ${i}`:``)},UO=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){let t=[],n=0;for(;e;){if(t.length>0){let r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return` 27 28found in 29 30${t.map((e,t)=>`${(t===0?`---> `:VO(` `,5+t*2))+(Array.isArray(e)?`${HO(e[0])}... (${e[1]} recursive calls)`:HO(e))}`).join(` 31`)}`}return` 32 33(found in ${HO(e)})`},WO=(e,t)=>{let{errorHandler:n}=e.config;e.config.errorHandler=(r,i,a)=>{let o={componentName:HO(i,!1),lifecycleHook:a,trace:i?UO(i):``};if(t?.attachProps!==!1&&i&&(i.$options?.propsData?o.propsData=i.$options.propsData:i.$props&&(o.propsData=i.$props)),setTimeout(()=>{Yp(r,{captureContext:{contexts:{vue:o}},mechanism:{handled:!!n,type:`auto.function.vue.error_handler`}})}),typeof n==`function`&&e.config.errorHandler)n.call(e,r,i,a);else throw r}},GO=`ui.vue`,KO={activate:[`activated`,`deactivated`],create:[`beforeCreate`,`created`],unmount:[`beforeUnmount`,`unmounted`],destroy:[`beforeDestroy`,`destroyed`],mount:[`beforeMount`,`mounted`],update:[`beforeUpdate`,`updated`]};function qO(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function JO(e,t){function n(e){return e.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,`$1`)}return e.some(e=>n(t)===n(e))}var YO=(e={})=>{let t=(e.hooks||[]).concat(FO).filter((e,t,n)=>n.indexOf(e)===t),n={},r=e.timeout||2e3;for(let i of t){let t=KO[i];if(!t){IO&&V.warn(`Unknown hook: ${i}`);continue}for(let a of t)n[a]=function(){let n=this.$root===this;n&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||Gf({name:`Application Render`,op:`${GO}.render`,attributes:{"sentry.origin":`auto.ui.vue`},onlyIfParent:!0}),qO(this,Yl(),r));let o=HO(this,!1);if(!(n||(Array.isArray(e.trackComponents)?JO(e.trackComponents,o):e.trackComponents))){qO(this,Yl(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};let s=a===t[0],c=this.$root?.$_sentryRootComponentSpan||Yd();if(s){if(c){let e=this.$_sentryComponentSpans[i];e&&e.end(),this.$_sentryComponentSpans[i]=Gf({name:`Vue ${o}`,op:`${GO}.${i}`,attributes:{[Vu]:`auto.ui.vue`},onlyIfParent:!0})}}else{let e=this.$_sentryComponentSpans[i];if(!e)return;e.end(),qO(this,Yl(),r)}}}return n},XO={Vue:B.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:FO,timeout:2e3,trackComponents:!1}},ZO=`Vue`,QO=hm((e={})=>({name:ZO,setup(t){let n={...XO,...t.getOptions(),...e};if(!n.Vue&&!n.app){hc(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(e=>$O(e,n)):n.Vue&&$O(n.Vue,n)}})),$O=(e,t)=>{IO&&e._instance?.isMounted===!0&&hc(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&WO(e,t),$d(t)&&e.mixin(YO(t.tracingOptions))};function ek(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue))}function tk(e){return!!(typeof e==`object`&&e?.__v_isVNode)}function nk(e){return ek(e)?`[VueViewModel]`:tk(e)?`[VueVNode]`:lx(e)}function rk(e={}){let t={defaultIntegrations:[...px(e),QO()],...e};wh(t,`vue`);let n=mx(t);return Sl(nk),n}function ik(e,t,n){let r=!1,i=`mode`in e;e.onError(e=>Yp(e,{mechanism:{handled:!1}})),e.beforeEach((e,a,...o)=>{let s=r?void 0:ak(),c={};for(let t of Object.keys(e.params))c[`url.path.parameter.${t}`]=e.params[t],c[`params.${t}`]=e.params[t];for(let t of Object.keys(e.query)){let n=e.query[t];
33n&&(c[`query.${t}`]=n)}let l=e.path,u=`url`;if(e.name&&t.routeLabel!==`path`)l=e.name.toString(),u=`custom`;else if(e.matched.length>0){let t=e.matched.length-1;l=e.matched[t].path,u=`route`}if(H().setTransactionName(l),t.instrumentPageLoad&&s&&(W(s).data[`sentry.source`]!==`custom`&&(s.updateName(l),s.setAttribute(Lu,u)),s.setAttributes({...c,[Vu]:`auto.pageload.vue`}),r=!0),t.instrumentNavigation&&!s&&n({name:l,op:`navigation`,attributes:{...c,[Vu]:`auto.navigation.vue`,[Lu]:u}}),i){let e=o[0];typeof e==`function`&&e()}})}function ak(){let e=Yd(),t=e&&qd(e);if(t)return W(t).op===`pageload`?t:void 0}function ok(e={}){if(!e.router)return wO(e);let t=wO({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:i=!0,routeLabel:a=`name`}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),ik(n,{routeLabel:a,instrumentNavigation:r,instrumentPageLoad:i},t=>{EO(e,t)})}}}var sk=[/^https:\/\/(s1|s2)\.yapla\.com/],ck=function(e){return e.Yapla=`yapla`,e.CMS=`cms`,e}({}),lk={sampleRate:.1,tracesSampleRate:.1,replaysSessionSampleRate:0,replaysOnErrorSampleRate:.25,profilesSampleRate:.05},uk={sampleRate:.5,tracesSampleRate:.5,replaysSessionSampleRate:0,replaysOnErrorSampleRate:.5,profilesSampleRate:.1},dk=e=>{let t=`v6.286.0`;t!==void 0&&(t=t.replace(/^v/,``)),rk({dsn:`https://[email protected]/5717983`,environment:`production`,release:t,integrations:[ok(),UD({blockAllMedia:!1}),Jb({onerror:!1,onunhandledrejection:!1}),Ib({eventTarget:!1,requestAnimationFrame:!1,setInterval:!1,setTimeout:!1,XMLHttpRequest:!1})],tracePropagationTargets:sk,beforeSend:t=>(t.tags=t.tags||{},t.tags[`yapla.company_id`]=ce.id,t.tags[`yapla.entry_point`]=e,t),...e===`cms`?lk:uk}),fk.forEach(e=>e())},fk=[],pk=e=>{e.mixin(YO({trackComponents:!0,hooks:[`activate`,`mount`,`update`],timeout:2e3}));let t=()=>{WO(e,{attachErrorHandler:!0,attachProps:!0})};Qp()?t():fk.push(t)};ae();function mk(e,t){return S()?(T(e,t),!0):!1}var hk=new WeakMap,gk=(...e)=>{let t=e[0],n=w()?.proxy??S();if(n==null&&!a())throw Error(`injectLocal must be called in setup`);return n&&hk.has(n)&&t in hk.get(n)?hk.get(n)[t]:c(...e)},_k=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var vk=Object.prototype.toString,yk=e=>vk.call(e)===`[object Object]`,bk=()=>{},xk=Sk();function Sk(){var e,t;return _k&&!!(!((e=window)==null||(e=e.navigator)==null)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Ck(...e){if(e.length!==1)return f(...e);let t=e[0];return typeof t==`function`?_(D(()=>({get:t,set:bk}))):v(t)}function wk(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var Tk=e=>e();function Ek(e=Tk,t={}){let{initialState:n=`active`}=t,r=Ck(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:E(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function Dk(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function Ok(e){return Array.isArray(e)?e:[e]}function kk(e){return e||w()}function Ak(e){if(!_k)return e;let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=re(!0),n=r.run(()=>e(...a))),mk(i),n))}function jk(e,t,n={}){let{eventFilter:r=Tk,...i}=n;return l(e,wk(r,t),i)}function Mk(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=Ek(r,{initialState:i});return{stop:jk(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function Nk(e,t=!0,n){kk(n)?u(e,n):t?e():i(e)}function Pk(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=x(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},A(t))}return r&&(a.value=!0,_k&&l()),mk(c),{isPending:E(a),start:l,stop:c}}function Fk(e,t,n){return l(e,t,{...n,immediate:!0})}function Ik(e,t,n){let r=l(e,(e,a,o)=>{e&&(n?.once&&i(()=>r()),t(e,a,o))},{...n,once:!1});return r}ae();var Lk=_k?window:void 0;_k&&window.document,_k&&window.navigator,_k&&window.location;function Rk(e){let t=A(e);return t?.$el??t}function zk(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=k(()=>{let t=Ok(A(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Fk(()=>[n.value?.map(e=>Rk(e))??[Lk].filter(e=>e!=null),Ok(A(n.value?e[1]:e[0])),Ok(h(n.value?e[2]:e[1])),A(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>
33{if(!e?.length||!n?.length||!r?.length)return;let s=yk(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var Bk=!1;function Vk(e,t,n={}){let{window:r=Lk,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:bk,cancel:bk,trigger:bk}:bk;if(xk&&!Bk){Bk=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,bk,e)),r.document.documentElement.addEventListener(`click`,bk,e)}let c=!0,l=e=>A(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=Rk(t);return n&&(e.target===n||e.composedPath().includes(n))}});function u(e){let t=A(e);return t&&t.$.subTree.shapeFlag===16}function d(e,t){let n=A(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let f=n=>{let r=Rk(e);if(n.target!=null&&!(!(r instanceof Element)&&u(e)&&d(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(c=!l(n)),!c){c=!0;return}t(n)}},p=!1,m=[zk(r,`click`,e=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(e))},{passive:!0,capture:a}),zk(r,`pointerdown`,t=>{let n=Rk(e);c=!l(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&zk(r,`blur`,n=>{setTimeout(()=>{let i=Rk(e),a=r.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;a?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),h=()=>m.forEach(e=>e());return s?{stop:h,cancel:()=>{c=!1},trigger:e=>{c=!0,f(e),c=!1}}:h}function Hk(){let e=x(!1),t=w();return t&&u(()=>{e.value=!0},t),e}function Uk(e){let t=Hk();return k(()=>(t.value,!!e()))}var Wk=Symbol(`vueuse-ssr-width`);function Gk(){let e=a()?gk(Wk,null):null;return typeof e==`number`?e:void 0}function Kk(t,n={}){let{window:r=Lk,ssrWidth:i=Gk()}=n,a=Uk(()=>r&&`matchMedia`in r&&typeof r.matchMedia==`function`),o=x(typeof i==`number`),s=x(),c=x(!1);return e(()=>{if(o.value){o.value=!a.value,c.value=A(t).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),r=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||r);return n&&a&&(a=i>=Dk(n[1])),r&&a&&(a=i<=Dk(r[1])),t?!a:a});return}a.value&&(s.value=r.matchMedia(A(t)),c.value=s.value.matches)}),zk(s,`change`,e=>{c.value=e.matches},{passive:!0}),k(()=>c.value)}var qk=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},Jk=`__vueuse_ssr_handlers__`,Yk=Xk();function Xk(){return Jk in qk||(qk[Jk]=qk[Jk]||{}),qk[Jk]}function Zk(e,t){return Yk[e]||t}function Qk(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var $k={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},eA=`vueuse-storage`;function tA(e,t,n,r={}){let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:d,window:f=Lk,eventFilter:p,onError:m=e=>{console.error(e)},initOnMounted:h}=r,g=(d?x:v)(typeof t==`function`?t():t),_=k(()=>A(e));if(!n)try{n=Zk(`getDefaultStorage`,()=>Lk?.localStorage)()}catch(e){m(e)}if(!n)return g;let y=A(t),b=Qk(y),S=r.serializer??$k[b],{pause:C,resume:w}=Mk(g,e=>ee(e),{flush:a,deep:o,eventFilter:p});l(_,()=>te(),{flush:a});let T=!1;f&&s&&(n instanceof Storage?zk(f,`storage`,e=>{h&&!T||te(e)},{passive:!0}):zk(f,eA,e=>{h&&!T||ne(e)})),h?Nk(()=>{T=!0,te()}):te();function E(e,t){if(f){let r={key:_.value,oldValue:e,newValue:t,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(eA,{detail:r}))}}function ee(e){try{let t=n.getItem(_.value);if(e==null)E(t,null),n.removeItem(_.value);else{let r=S.write(e);t!==r&&(n.setItem(_.value,r),E(t,r))}}catch(e){m(e)}}function D(e){let t=e?e.newValue:n.getItem(_.value);if(t==null)return c&&y!=null&&n.setItem(_.value,S.write(y)),y;if(!e&&u){let e=S.read(t);return typeof u==`function`?u(e,y):b===`object`&&!Array.isArray(e)?{...y,...e}:e}else if(typeof t!=`string`)return t;else return S.read(t)}function te(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){g.value=y;return}if(!(e&&e.key!==_.value)){C();try{let t=S.write(g.value);(e===void 0||e?.newValue!==t)&&(g.value=D(e))}catch(e){m(e)}finally{e?i(w):w()}}}}function ne(e){te(e.detail)}return g}function nA(e,t,n={}){let{window:r=Lk}=n;return tA(e,t,r?.localStorage,n)}var rA={ctrl:`control`,command:`meta`,cmd:`meta`,option:`alt`,up:`arrowup`,down:`arrowdown`,left:`arrowleft`,right:`arrowright`};function iA(e={}){let{reactive:t=!1,target:n=Lk,aliasMap:r=rA,passive:i=!0,onEventFired:a=bk}=e,o=O(new Set),s={toJSON(){return{}},current:o},c=t?O(s):s,l=new Set,u=new Map([[`Meta`,l],[`Shift`,new Set],[`Alt`,new Set]]),d=new Set;function f(e,n){e in c&&(t?c[e]=n:c[e].value=n)}function p(){o.clear();for(let e of d)f(e,!1)}function m(e,t,n){if(!(!e||typeof t.getModifierState!=`function`)){for(let[e,r]of u)if(t.getModifierState(e)){n.forEac
33h(e=>r.add(e));break}}}function h(e,t){if(e)return;let n=`${t[0].toUpperCase()}${t.slice(1)}`,r=u.get(n);if(![`shift`,`alt`].includes(t)||!r)return;let i=Array.from(r),a=i.indexOf(t);i.forEach((e,t)=>{t>=a&&(o.delete(e),f(e,!1))}),r.clear()}function g(e,t){let n=e.key?.toLowerCase(),r=[e.code?.toLowerCase(),n].filter(Boolean);if(n){n&&(t?o.add(n):o.delete(n));for(let e of r)d.add(e),f(e,t);m(t,e,[...o,...r]),h(t,n),n===`meta`&&!t&&(l.forEach(e=>{o.delete(e),f(e,!1)}),l.clear())}}zk(n,`keydown`,e=>(g(e,!0),a(e)),{passive:i}),zk(n,`keyup`,e=>(g(e,!1),a(e)),{passive:i}),zk(`blur`,p,{passive:i}),zk(`focus`,p,{passive:i});let _=new Proxy(c,{get(e,n,i){if(typeof n!=`string`)return Reflect.get(e,n,i);if(n=n.toLowerCase(),n in r&&(n=r[n]),!(n in c))if(/[+_-]/.test(n)){let e=n.split(/[+_-]/g).map(e=>e.trim());c[n]=k(()=>e.map(e=>A(_[e])).every(Boolean))}else c[n]=x(!1);let a=Reflect.get(e,n,i);return t?A(a):a}});return _}function aA(e){let t=Kk(`(prefers-reduced-motion: reduce)`,e);return k(()=>t.value?`reduce`:`no-preference`)}function oA(e,t,n={}){let{window:r=Lk}=n;return tA(e,t,r?.sessionStorage,n)}function sA(e,t={}){let{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:a,passive:o=!0}=t,s=O({x:0,y:0}),c=O({x:0,y:0}),l=k(()=>s.x-c.x),u=k(()=>s.y-c.y),{max:d,abs:f}=Math,p=k(()=>d(f(l.value),f(u.value))>=n),m=x(!1),h=k(()=>p.value?f(l.value)>f(u.value)?l.value>0?`left`:`right`:u.value>0?`up`:`down`:`none`),g=e=>[e.touches[0].clientX,e.touches[0].clientY],_=(e,t)=>{s.x=e,s.y=t},v=(e,t)=>{c.x=e,c.y=t},y={passive:o,capture:!o},b=[zk(e,`touchstart`,e=>{if(e.touches.length!==1)return;let[t,n]=g(e);_(t,n),v(t,n),a?.(e)},y),zk(e,`touchmove`,e=>{if(e.touches.length!==1)return;let[t,n]=g(e);v(t,n),y.capture&&!y.passive&&Math.abs(l.value)>Math.abs(u.value)&&e.preventDefault(),!m.value&&p.value&&(m.value=!0),m.value&&r?.(e)},y),zk(e,[`touchend`,`touchcancel`],e=>{m.value&&i?.(e,h.value),m.value=!1},y)];return{isSwiping:m,direction:h,coordsStart:s,coordsEnd:c,lengthX:l,lengthY:u,stop:()=>b.forEach(e=>e())}}function cA(e=`history`,t={}){let{initialValue:n={},removeNullishValues:r=!0,removeFalsyValues:a=!1,write:o=!0,writeMode:s=`replace`,window:c=Lk,stringify:l=e=>e.toString()}=t;if(!c)return O(n);let u=O({});function d(){if(e===`history`)return c.location.search||``;if(e===`hash`){let e=c.location.hash||``,t=e.indexOf(`?`);return t>0?e.slice(t):``}else return(c.location.hash||``).replace(/^#/,``)}function f(t){let n=l(t);if(e===`history`)return`${n?`?${n}`:``}${c.location.hash||``}`;if(e===`hash-params`)return`${c.location.search||``}${n?`#${n}`:``}`;let r=c.location.hash||`#`,i=r.indexOf(`?`);return i>0?`${c.location.search||``}${r.slice(0,i)}${n?`?${n}`:``}`:`${c.location.search||``}${r}${n?`?${n}`:``}`}function p(){return new URLSearchParams(d())}function m(e){let t=new Set(Object.keys(u));for(let n of e.keys()){let r=e.getAll(n);u[n]=r.length>1?r:e.get(n)||``,t.delete(n)}Array.from(t).forEach(e=>delete u[e])}let{pause:h,resume:g}=Mk(u,()=>{let e=new URLSearchParams(``);Object.keys(u).forEach(t=>{let n=u[t];Array.isArray(n)?n.forEach(n=>e.append(t,n)):r&&n==null||a&&!n?e.delete(t):e.set(t,n)}),_(e,!1)},{deep:!0});function _(e,t,n=!0){h(),t&&m(e),s===`replace`?c.history.replaceState(c.history.state,c.document.title,c.location.pathname+f(e)):n&&c.history.pushState(c.history.state,c.document.title,c.location.pathname+f(e)),i(()=>g())}function v(){o&&_(p(),!0,!1)}let y={passive:!0};zk(c,`popstate`,v,y),e!==`history`&&zk(c,`hashchange`,v,y);let b=p();return b.keys().next().value?m(b):Object.assign(u,n),u}var lA=function(e,t){return lA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},lA(e,t)};function uA(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);lA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var dA=function(){return dA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},dA.apply(this,arguments)};function fA(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function pA(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(
33o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function mA(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function hA(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function gA(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Q={IS:`is`,IS_NOT:`is not`,CONTAINS:`contains`,DOES_NOT_CONTAIN:`does not contain`,LESS_THAN:`less`,LESS_THAN_EQUALS:`less or equal`,GREATER_THAN:`greater`,GREATER_THAN_EQUALS:`greater or equal`,VERSION_LESS_THAN:`version less`,VERSION_LESS_THAN_EQUALS:`version less or equal`,VERSION_GREATER_THAN:`version greater`,VERSION_GREATER_THAN_EQUALS:`version greater or equal`,SET_IS:`set is`,SET_IS_NOT:`set is not`,SET_CONTAINS:`set contains`,SET_DOES_NOT_CONTAIN:`set does not contain`,SET_CONTAINS_ANY:`set contains any`,SET_DOES_NOT_CONTAIN_ANY:`set does not contain any`,REGEX_MATCH:`regex match`,REGEX_DOES_NOT_MATCH:`regex does not match`},_A=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)==55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)==56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return Uint8Array.from(t)},vA=-862048943,yA=461845907,bA=15,xA=13,SA=5,CA=-430675100,wA=function(e,t){t===void 0&&(t=0);for(var n=_A(e),r=n.length,i=r>>2,a=t,o=0;o<i;o++)a=TA(OA(n,o<<2),a);var s=i<<2,c=0;switch(r-s){case 3:c^=n[s+2]<<16,c^=n[s+1]<<8,c^=n[s],c=Math.imul(c,vA),c=DA(c,bA),c=Math.imul(c,yA),a^=c;break;case 2:c^=n[s+1]<<8,c^=n[s],c=Math.imul(c,vA),c=DA(c,bA),c=Math.imul(c,yA),a^=c;break;case 1:c^=n[s],c=Math.imul(c,vA),c=DA(c,bA),c=Math.imul(c,yA),a^=c;break}return a^=r,EA(a)>>>0},TA=function(e,t){var n=e,r=t;return n=Math.imul(n,vA),n=DA(n,bA),n=Math.imul(n,yA),r^=n,r=DA(r,xA),r=Math.imul(r,SA),r+CA|0},EA=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-2048144789),t^=t>>>13,t=Math.imul(t,-1028477387),t^=t>>>16,t},DA=function(e,t,n){n===void 0&&(n=32),t>n&&(t%=n);var r=(e&4294967295<<n-t>>>0)>>>0>>>n-t>>>0;return(e<<t|r)>>>0},OA=function(e,t){return t===void 0&&(t=0),kA(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},kA=function(e){return(e&-16777216)>>>24|(e&16711680)>>>8|(e&65280)<<8|(e&255)<<24},AA=function(e,t){var n,r;if(!(!t||t.length===0)){try{for(var i=mA(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(!o||!e||typeof e!=`object`)return;e=e[o]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}if(e!=null)return e}},jA=`^(\\d+)\\.(\\d+)(\\.(\\d+)(-(([-\\w]+\\.?)*))?)?$`,MA=function(){function e(e,t,n,r){r===void 0&&(r=void 0),this.major=e,this.minor=t,this.patch=n,this.preRelease=r}return e.parse=function(t){if(t){var n=new RegExp(jA).exec(t);if(n){var r=Number(n[1]),i=Number(n[2]);
33if(!(isNaN(r)||isNaN(i)))return new e(r,i,Number(n[4])||0,n[5]||void 0)}}},e.prototype.compareTo=function(e){return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:this.patch>e.patch?1:this.patch<e.patch||this.preRelease&&!e.preRelease?-1:!this.preRelease&&e.preRelease?1:this.preRelease&&e.preRelease?this.preRelease>e.preRelease?1:this.preRelease<e.preRelease?-1:0:0},e}(),NA=function(){function e(){}return e.prototype.evaluate=function(e,t){var n,r,i={},a={context:e,result:i};try{for(var o=mA(t),s=o.next();!s.done;s=o.next()){var c=s.value,l=this.evaluateFlag(a,c);l&&(i[c.key]=l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.evaluateWithTraces=function(e,t){var n,r,i={},a={},o={context:e,result:i};try{for(var s=mA(t),c=s.next();!c.done;c=s.next()){var l=c.value,u=this.evaluateFlagWithTrace(o,l),d=u.variant,f=u.trace;d&&(i[l.key]=d),a[l.key]=f}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return{results:i,traces:a}},e.prototype.evaluateFlag=function(e,t){var n,r,i;try{for(var a=mA(t.segments),o=a.next();!o.done;o=a.next()){var s=o.value;if(i=this.evaluateSegment(e,t,s),i){var c=dA(dA(dA({},t.metadata),s.metadata),i.metadata);i=dA(dA({},i),{metadata:c});break}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.evaluateFlagWithTrace=function(e,t){var n,r,i,a,o,s,c=[],l,u,d;try{for(var f=mA(t.segments),p=f.next();!p.done;p=f.next()){var m=p.value;if(!m.conditions){var h=this.bucket(e,m),g=h!==void 0;c.push({segmentMetadata:m.metadata,conditionsPassed:!0,bucketed:g,bucketVariant:h,conditionResult:void 0,matched:g}),!l&&h!==void 0&&(l=t.variants[h],u=m,d=m.metadata?.segmentName);continue}var _=[],v=!1;try{for(var y=(i=void 0,mA(m.conditions)),b=y.next();!b.done;b=y.next()){var x=b.value,S=!0,C=[];try{for(var w=(o=void 0,mA(x)),T=w.next();!T.done;T=w.next()){var E=T.value,ee=AA(e,E.selector),D=this.matchCondition(e,E);if(C.push({propValue:ee,condition:E,matched:D}),!D){S=!1;break}}}catch(e){o={error:e}}finally{try{T&&!T.done&&(s=w.return)&&s.call(w)}finally{if(o)throw o.error}}if(_.push(C),S){v=!0;break}}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}var te=!1,ne=void 0;v&&(ne=this.bucket(e,m),te=ne!==void 0),c.push({segmentMetadata:m.metadata,conditionsPassed:v,bucketed:te,bucketVariant:ne,conditionResult:_,matched:v&&te}),v&&ne!==void 0&&!l&&(l=t.variants[ne],u=m,d=m.metadata?.segmentName)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}if(l&&u){var re=dA(dA(dA({},t.metadata),u.metadata),l.metadata);l=dA(dA({},l),{metadata:re})}var ie={flagKey:t.key,matched:l!==void 0,matchedSegment:d,steps:c};return{variant:l,trace:ie}},e.prototype.evaluateSegment=function(e,t,n){if(!n.conditions){var r=this.bucket(e,n);return r===void 0?void 0:t.variants[r]}if(this.evaluateConditions(e,n.conditions)){var r=this.bucket(e,n);return r===void 0?void 0:t.variants[r]}},e.prototype.evaluateConditions=function(e,t){var n,r,i,a;try{for(var o=mA(t),s=o.next();!s.done;s=o.next()){var c=s.value,l=!0;try{for(var u=(i=void 0,mA(c)),d=u.next();!d.done;d=u.next()){var f=d.value;if(l=this.matchCondition(e,f),!l)break}}catch(e){i={error:e}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}if(l)return!0}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1},e.prototype.matchCondition=function(e,t){var n=AA(e,t.selector);if(n==null)return this.matchNull(t.op,t.values);var r=this.coerceStringArray(n);if(this.isSetOperator(t.op))return r?this.matchSet(r,t.op,t.values):!1;if(r)return this.matchStringsNonSet(r,t.op,t.values);var i=this.coerceString(n);return i===void 0?!1:this.matchString(i,t.op,t.values)},e.prototype.getHash=function(e){return wA(e)},e.prototype.bucket=function(e,t){var n,r,i,a;if(!t.bucket)return t.variant;var o=this.coerceString(AA(e,t.bucket.selector));if(!o||o.length===0)return t.variant;var s=`${t.bucket.salt}/${o}`,c=this.getHash(s),l=c%100,u=Math.floor(c/100);try{for(var d=mA(t.bucket.allocations),f=d.next();!f.done;f=d.next()){var p=f.value,m=p.range[0],h=p.range[1];if(l>=m&&l<h)try{for(var g=(i=void 0,mA(p.distributions)),_=g.next();!_.done;_=g.next()){var v=_.value,y=v.range[0],b=v.range[1];if(u>=y&&u<b)return v.variant}}catch(e){i={error:e}}finally{try{_&&!_.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}return t.variant},e.prototype.matchNull=function(e,t){var n=this.containsNone(t);switch(e){case Q.IS:case Q.CONTAINS:case Q.LESS_THAN:case Q.LESS_THAN_EQUALS:case Q.GREATER_THAN:case Q.GREATER_THAN_EQUALS:case Q.VERSION_LESS_THAN:case Q.VERSION_LESS_THAN_EQUALS:case Q.VERSION_GREATER_THAN:case Q.VERSION_GREATER_THAN_EQUALS:case Q.SET_IS:case Q.SET_CONTAINS:case Q.SET_CONTAINS_ANY:return n;case Q.IS_NOT:case Q.DOES_NOT_CONTAIN:case Q.SET_DOES_NOT_CONTAIN:case Q.SET_DOES_NOT_CONTAIN_ANY:return!n;default:return!1}},e.prototype.matchSet=function(e,t,n){switch(t){case Q.SET_IS:return this.setEquals(e,n);case Q.SET_IS_NOT:return!this.setEquals(e,n);case Q.SET_CONTAINS:return this.matchesSetContainsAll(e,n);case Q.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,n);case Q.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,n);case Q.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,n);default:return!1}},e.prototype.matchString=function(e,t,n){var r=this;switch(t){case Q.IS:return this.matchesIs(e,n);case Q.IS_NOT:return!this.matchesIs(e,n);case Q.CONTAINS:return this.matchesContains(e,n);case Q.DOES_NOT_CONTAIN:return!this.matchesContains(e,n);case Q.LESS_THAN:case Q.LESS_THAN_EQUALS:case Q.GREATER_THAN:case Q.GREATER_THAN_EQUALS:return this.matchesComparable(e,t,n,function(e){return r.parseNumber(e)},this.comparator);case Q.VERSION_LESS_THAN:case Q.VERSION_LESS_THAN_EQUALS:case Q.VERSION_GREATER_THAN:case Q.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,t,n,function(e){return MA.parse(e)},this.versionComparator);case Q.REGEX_MATCH:return this.matchesRegex(e,n);case Q.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,n);default:return!1}},e.prototype.matchStringsNonSet=function(e,t,n){var r=this;return e.some(function(e){return r.matchString(e,t,n)})},e.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var n=e.toLowerCase();if(n===`true`||n===`false`)return t.some(function(e){return e.toLowerCase()===n})}return t.some(function(t){return e===t})},e.prototype.matchesContains=function(e,t){var n,r;try{for(var i=mA(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(e.toLowerCase().includes(o.toLowerCase()))return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1},e.prototype.matchesComparable=function(e,t,n,r,i){var a=this,o=r(e),s=n.map(function(e){return r(e)}).filter(function(e){return e!==void 0});return o===void 0||s.length===0?n.some(function(n){return a.comparator(e,t,n)}):s.some(function(e){return i(o,t,e)})},e.prototype.comparator=function(e,t,n){switch(t){case Q.LESS_THAN:case Q.VERSION_LESS_THAN:return e<n;case Q.LESS_THAN_EQUALS:case Q.VERSION_LESS_THAN_EQUALS:return e<=n;case Q.GREATER_THAN:case Q.VERSION_GREATER_THAN:return e>n;case Q.GREATER_THAN_EQUALS:case Q.VERSION_GREATER_THAN_EQUALS:return e>=n;default:return!1}},e.prototype.versionComparator=function(e,t,n){var r=e.compareTo(n);switch(t){case Q.LESS_THAN:case Q.VERSION_LESS_THAN:return r<0;case Q.LESS_THAN_EQUALS:case Q.VERSION_LESS_THAN_EQUALS:return r<=0;case Q.GREATER_THAN:case Q.VERSION_GREATER_THAN:return r>0;case Q.GREATER_THAN_EQUALS:case Q.VERSION_GREATER_THAN_EQUALS:return r>=0;default:return!1}},e.prototype.matchesRegex=function(e,t){return t.some(function(t){return!!new RegExp(t).exec(e)})},e.prototype.containsNone=function(e){return e.some(function(e){return e===`(none)`})},e.prototype.containsBooleans=function(e){return e.some(function(e){switch(e.toLowerCase()){case`true`:case`false`:return!0;default:return!1}})},e.prototype.parseNumber=function(e){return Number(e)??void 0},e.prototype.coerceString=function(e){if(e!=null)return typeof e==`object`?JSON.stringify(e):String(e)},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e))return e.map(function(e){return t.coerceString(e)}
33).filter(Boolean);var n=String(e);if(n.startsWith(`[`))try{var r=JSON.parse(n);return Array.isArray(r)?r.map(function(e){return t.coerceString(e)}).filter(Boolean):void 0}catch{return}},e.prototype.isSetOperator=function(e){switch(e){case Q.SET_IS:case Q.SET_IS_NOT:case Q.SET_CONTAINS:case Q.SET_DOES_NOT_CONTAIN:case Q.SET_CONTAINS_ANY:case Q.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var n=new Set(e),r=new Set(t);return n.size===r.size&&gA([],hA(r),!1).every(function(e){return n.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var n,r;if(e.length<t.length)return!1;try{for(var i=mA(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(!this.matchesIs(o,e))return!1}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0},e.prototype.matchesSetContainsAny=function(e,t){var n,r;try{for(var i=mA(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(this.matchesIs(o,e))return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1},e}(),PA=function(e,t){var n,r,i=dA({},e),a=[],o=t||Object.keys(i);try{for(var s=mA(o),c=s.next();!c.done;c=s.next()){var l=c.value,u=FA(l,i);u&&a.push.apply(a,gA([],hA(u),!1))}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a},FA=function(e,t,n){var r,i;n===void 0&&(n=[]);var a=t[e];if(a){if(!a.dependencies||a.dependencies.length===0)return delete t[a.key],[a];n.push(a.key);var o=[],s=function(e){if(n.some(function(t){return t===e}))throw Error(`Detected a cycle between flags ${n}`);var r=FA(e,t,n);r&&o.push.apply(o,gA([],hA(r),!1))};try{for(var c=mA(a.dependencies),l=c.next();!l.done;l=c.next()){var u=l.value;s(u)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return o.push(a),n.pop(),delete t[a.key],o}},IA=`3.7.8`,LA=IA,RA=typeof Buffer==`function`,zA=typeof TextDecoder==`function`?new TextDecoder:void 0,BA=typeof TextEncoder==`function`?new TextEncoder:void 0,VA=Array.prototype.slice.call(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`),HA=(e=>{let t={};return e.forEach((e,n)=>t[e]=n),t})(VA),UA=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,WA=String.fromCharCode.bind(String),GA=typeof Uint8Array.from==`function`?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),KA=e=>e.replace(/=/g,``).replace(/[+\/]/g,e=>e==`+`?`-`:`_`),qA=e=>e.replace(/[^A-Za-z0-9\+\/]/g,``),JA=e=>{let t,n,r,i,a=``,o=e.length%3;for(let o=0;o<e.length;){if((n=e.charCodeAt(o++))>255||(r=e.charCodeAt(o++))>255||(i=e.charCodeAt(o++))>255)throw TypeError(`invalid character found`);t=n<<16|r<<8|i,a+=VA[t>>18&63]+VA[t>>12&63]+VA[t>>6&63]+VA[t&63]}return o?a.slice(0,o-3)+`===`.substring(o):a},YA=typeof btoa==`function`?e=>btoa(e):RA?e=>Buffer.from(e,`binary`).toString(`base64`):JA,XA=RA?e=>Buffer.from(e).toString(`base64`):e=>{let t=4096,n=[];for(let r=0,i=e.length;r<i;r+=t)n.push(WA.apply(null,e.subarray(r,r+t)));return YA(n.join(``))},ZA=(e,t=!1)=>t?KA(XA(e)):XA(e),QA=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?WA(192|t>>>6)+WA(128|t&63):WA(224|t>>>12&15)+WA(128|t>>>6&63)+WA(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return WA(240|t>>>18&7)+WA(128|t>>>12&63)+WA(128|t>>>6&63)+WA(128|t&63)}},$A=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ej=e=>e.replace($A,QA),tj=RA?e=>Buffer.from(e,`utf8`).toString(`base64`):BA?e=>XA(BA.encode(e)):e=>YA(ej(e)),nj=(e,t=!1)=>t?KA(tj(e)):tj(e),rj=e=>nj(e,!0),ij=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,aj=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return WA((t>>>10)+55296)+WA((t&1023)+56320);case 3:return WA((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return WA((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},oj=e=>e.replace(ij,aj),sj=e=>{if(e=e.replace(/\s+/g,``),!UA.test(e))throw TypeError(`malformed base64.`);e+=`==`.slice(2-(e.length&3));let t,n,r,i=[];for(let a=0;a<e.length;)t=HA[e.charAt(a++)]<<18|HA[e.charAt(a++)]<<12|(n=HA[e.charAt(a++)])<<6|(r=HA[e.charAt(a++)]),n===64?i.push(WA(t>>16&255)):r===64?i.push(WA(t>>16&255,t>>8&255)):i.push(WA(t>>16&255,t>>8&255,t&255));return i.join(``)},cj=typeof atob==`function`?e=>atob(qA(e)):RA?e=>Buffer.from(e,`base64`).toString(`binary`):sj,lj=RA?e=>GA(Buffer.from(e,`base64`)):e=>GA(cj(e).split(``).map(e=>e.charCodeAt(0))),uj=e=>lj(fj(e)),dj=RA?e=>Buffer.from(e,`base64`).toString(`utf8`):zA?e=>zA.decode(lj(e)):e=>oj(cj(e)),fj=e=>qA(e.replace(/[-_]/g,e=>e==`-`?`+`:`/`)),pj=e=>dj(fj(e)),mj=e=>{if(typeof e!=`string`)return!1;let t=e.replace(/\s+/g,``).replace(/={0,2}$/,``);return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},hj=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),gj=function(){let e=(e,t)=>
33Object.defineProperty(String.prototype,e,hj(t));e(`fromBase64`,function(){return pj(this)}),e(`toBase64`,function(e){return nj(this,e)}),e(`toBase64URI`,function(){return nj(this,!0)}),e(`toBase64URL`,function(){return nj(this,!0)}),e(`toUint8Array`,function(){return uj(this)})},_j=function(){let e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,hj(t));e(`toBase64`,function(e){return ZA(this,e)}),e(`toBase64URI`,function(){return ZA(this,!0)}),e(`toBase64URL`,function(){return ZA(this,!0)})},vj={version:IA,VERSION:LA,atob:cj,atobPolyfill:sj,btoa:YA,btoaPolyfill:JA,fromBase64:pj,toBase64:nj,encode:nj,encodeURI:rj,encodeURL:rj,utob:ej,btou:oj,decode:pj,isValid:mj,fromUint8Array:ZA,toUint8Array:uj,extendString:gj,extendUint8Array:_j,extendBuiltins:()=>{gj(),_j()}},yj=function(e){uA(t,e);function t(n,r){var i=e.call(this,r)||this;return i.statusCode=n,Object.setPrototypeOf(i,t.prototype),i}return t}(Error),bj=function(e){uA(t,e);function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return t}(Error),xj=function(){function e(e,t,n){this.deploymentKey=e,this.serverUrl=t,this.httpClient=n}return e.prototype.getVariants=function(e,t){return fA(this,void 0,void 0,function(){var n,r,i,a;return pA(this,function(o){switch(o.label){case 0:return n=vj.encodeURL(JSON.stringify(e)),r={Authorization:`Api-Key ${this.deploymentKey}`,"X-Amp-Exp-User":n},t?.flagKeys&&(r[`X-Amp-Exp-Flag-Keys`]=vj.encodeURL(JSON.stringify(t.flagKeys))),t?.trackingOption&&(r[`X-Amp-Exp-Track`]=t.trackingOption),t?.exposureTrackingOption&&(r[`X-Amp-Exp-Exposure-Track`]=t.exposureTrackingOption),i=new URL(`${this.serverUrl}/sdk/v2/vardata?v=0`),t?.evaluationMode&&i.searchParams.append(`eval_mode`,t?.evaluationMode),t?.deliveryMethod&&i.searchParams.append(`delivery_method`,t?.deliveryMethod),[4,this.httpClient.request({requestUrl:i.toString(),method:`GET`,headers:r,timeoutMillis:t?.timeoutMillis})];case 1:if(a=o.sent(),a.status!=200)throw new yj(a.status,`Fetch error response: status=${a.status}`);return[2,JSON.parse(a.body)]}})})},e}(),Sj=function(){function e(e,t,n){this.deploymentKey=e,this.serverUrl=t,this.httpClient=n}return e.prototype.getFlags=function(e){return fA(this,void 0,void 0,function(){var t,n,r;return pA(this,function(i){switch(i.label){case 0:return t={Authorization:`Api-Key ${this.deploymentKey}`},e?.libraryName&&e?.libraryVersion&&(t[`X-Amp-Exp-Library`]=`${e.libraryName}/${e.libraryVersion}`),e?.user&&(t[`X-Amp-Exp-User`]=vj.encodeURL(JSON.stringify(e.user))),[4,this.httpClient.request({requestUrl:`${this.serverUrl}/sdk/v2/flags`+(e?.deliveryMethod?`?delivery_method=${e.deliveryMethod}`:``),method:`GET`,headers:t,timeoutMillis:e?.timeoutMillis})];case 1:if(n=i.sent(),n.status!=200)throw Error(`Flags error response: status=${n.status}`);return r=JSON.parse(n.body),[2,r.reduce(function(e,t){return e[t.key]=t,e},{})]}})})},e}(),Cj=typeof globalThis<`u`?globalThis:global||self,wj=function(){if(typeof globalThis<`u`)return globalThis;if(typeof window<`u`)return window;if(typeof self<`u`)return self;if(typeof global<`u`)return global},Tj=function(){var e=wj();if(e)try{var t=`EXP_test`;return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch{return!1}return!1},Ej=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=Cj.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&=(Cj.clearInterval(this.poller),void 0)},e}(),Dj=n(((e,t)=>{(function(n,r){var i=`0.7.33`,a=``,o=`?`,s=`function`,c=`undefined`,l=`object`,u=`string`,d=`major`,f=`model`,p=`name`,m=`type`,h=`vendor`,g=`version`,_=`architecture`,v=`console`,y=`mobile`,b=`tablet`,x=`smarttv`,S=`wearable`,C=`embedded`,w=350,T=`Amazon`,E=`Apple`,ee=`ASUS`,D=`BlackBerry`,te=`Browser`,ne=`Chrome`,re=`Edge`,ie=`Firefox`,ae=`Google`,O=`Huawei`,oe=`LG`,se=`Microsoft`,k=`Motorola`,A=`Opera`,ce=`Samsung`,le=`Sharp`,ue=`Sony`,de=`Xiaomi`,fe=`Zebra`,pe=`Facebook`,me=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},he=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},ge=function(e,t){return typeof e===u?_e(t).indexOf(_e(e))!==-1:!1},_e=function(e){return e.toLowerCase()},ve=function(e){return typeof e===u?e.replace(/[^\d\.]/g,a).split(`.`)[0]:r},ye=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,a),typeof t===c?e:e.substring(0,w)},be=function(e,t){for(var n=0,i,a,o,c,u,d;n<t.length&&!u;){var f=t[n],p=t[n+1];for(i=a=0;i<f.length&&!u;)if(u=f[i++].exec(e),u)for(o=0;o<p.length;o++)d=u[++a],c=p[o],typeof c===l&&c.length>0?c.length===2?typeof c[1]==s?this[c[0]]=c[1].call(this,d):this[c[0]]=c[1]:c.length===3?typeof c[1]===s&&!(c[1].exec&&c[1].test)?this[c[0]]=d?c[1].call(this,d,c[2]):r:this[c[0]]=d?d.replace(c[1],c[2]):r:c.length===4&&(this[c[0]]=d?c[3].call(this,d.replace(c[1],c[2])):r):this[c]=d||r;n+=2}},xe=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(ge(t[n][i],e))return n===o?r:n}else if(ge(t[n],e))return n===o?r:n;return e},Se={"1.0":`/8`,1.2:`/1`,1.3:`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},Ce={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,8.1:`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},we={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[p,`Chrome`]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[p,`Edge`]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,g],[/opios[\/ ]+([\w\.]+)/i],[g,[p,A+` Mini`]],[/\bopr\/([\w\.]+)/i],[g,[p,A]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[p,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[p,`UC`+te]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[p,`WeChat(Win) Desktop`]],[/micromessenger\/([\w\.]+)/i],[g,[p,`WeChat`]],[/konqueror\/([\w\.]+)/i],[g,[p,`Konqueror`]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[p,`IE`]],[/yabrowser\/([\w\.]+)/i],[g,[p,`Yandex`]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,`$1 Secure `+te],g],[/\bfocus\/([\w\.]+)/i],[g,[p,ie+` Focus`]],[/\bopt\/([\w\.]+)/i],[g,[p,A+` Touch`]],[/coc_coc\w+\/([\w\.]+)/i],[g,[p,`Coc Coc`]],[/dolfin\/([\w\.]+)/i],[g,[p,`Dolphin`]],[/coast\/([\w\.]+)/i],[g,[p,A+` Coast`]],[/miuibrowser\/([\w\.]+)/i],[g,[p,`MIUI `+te]],[/fxios\/([-\w\.]+)/i],[g,[p,ie]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,`360 `+te]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[p,/(.+)/,`$1 `+te],g],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g,` `],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,pe],g],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[p,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[p,`GSA`]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[p,ne+` Headless`]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,ne+` WebView`],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[p,`Android `+te]],[/(chrome|omniweb|arora|[t
vendor: 4,767 bytes, line 33
33izenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[p,`Mobile Safari`]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[g,xe,Se]],[/(webkit|khtml)\/([\w\.]+)/i],[p,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,`Netscape`],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[p,ie+` Reality`]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[p,g],[/(cobalt)\/([\w\.]+)/i],[p,[g,/master.|lts./,``]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[_,`amd64`]],[/(ia32(?=;))/i],[[_,_e]],[/((?:i[346]|x)86)[;\)]/i],[[_,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[_,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[_,`armhf`]],[/windows (ce|mobile); ppc;/i],[[_,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[_,/ower/,a,_e]],[/(sun4\w)[;\)]/i],[[_,`sparc`]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[_,_e]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[h,ce],[m,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[h,ce],[m,y]],[/((ipod|iphone)\d+,\d+)/i],[f,[h,E],[m,y]],[/(ipad\d+,\d+)/i],[f,[h,E],[m,b]],[/\((ip(?:hone|od)[\w ]*);/i],[f,[h,E],[m,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[h,E],[m,b]],[/(macintosh);/i],[f,[h,E]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[h,O],[m,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[h,O],[m,y]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g,` `],[h,de],[m,y]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g,` `],[h,de],[m,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[h,`OPPO`],[m,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[h,`Vivo`],[m,y]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[h,`Realme`],[m,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[h,k],[m,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[h,k],[m,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[h,oe],[m,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[h,oe],[m,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[h,`Lenovo`],[m,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g,` `],[h,`Nokia`],[m,y]],[/(pixel c)\b/i],[f,[h,ae],[m,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[h,ae],[m,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[h,ue],[m,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,`Xperia Tablet`],[h,ue],[m,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[h,`OnePlus`],[m,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[h,T],[m,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,`Fire Phone $1`],[h,T],[m,y]],[/(playbook);[-\w\),; ]+(rim)/i],[f,h,[m,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[h,D],[m,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[h,ee],[m,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[h,ee],[m,y]],[/(nexus 9)/i],[f,[h,`HTC`],[m,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[f,/_/g,` `],[m,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[h,`Acer`],[m,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[h,`Meizu`],[m,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[h,le],[m,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 6,300 bytes, line 33
33s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,f,[m,y]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,f,[m,b]],[/(surface duo)/i],[f,[h,se],[m,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[h,`Fairphone`],[m,y]],[/(u304aa)/i],[f,[h,`AT&T`],[m,y]],[/\bsie-(\w*)/i],[f,[h,`Siemens`],[m,y]],[/\b(rct\w+) b/i],[f,[h,`RCA`],[m,b]],[/\b(venue[\d ]{2,7}) b/i],[f,[h,`Dell`],[m,b]],[/\b(q(?:mv|ta)\w+) b/i],[f,[h,`Verizon`],[m,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[h,`Barnes & Noble`],[m,b]],[/\b(tm\d{3}\w+) b/i],[f,[h,`NuVision`],[m,b]],[/\b(k88) b/i],[f,[h,`ZTE`],[m,b]],[/\b(nx\d{3}j) b/i],[f,[h,`ZTE`],[m,y]],[/\b(gen\d{3}) b.+49h/i],[f,[h,`Swiss`],[m,y]],[/\b(zur\d{3}) b/i],[f,[h,`Swiss`],[m,b]],[/\b((zeki)?tb.*\b) b/i],[f,[h,`Zeki`],[m,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,`Dragon Touch`],f,[m,b]],[/\b(ns-?\w{0,9}) b/i],[f,[h,`Insignia`],[m,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[h,`NextBook`],[m,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,`Voice`],f,[m,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,`LvTel`],f,[m,y]],[/\b(ph-1) /i],[f,[h,`Essential`],[m,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[h,`Envizen`],[m,b]],[/\b(trio[-\w\. ]+) b/i],[f,[h,`MachSpeed`],[m,b]],[/\btu_(1491) b/i],[f,[h,`Rotor`],[m,b]],[/(shield[\w ]+) b/i],[f,[h,`Nvidia`],[m,b]],[/(sprint) (\w+)/i],[h,f,[m,y]],[/(kin\.[onetw]{3})/i],[[f,/\./g,` `],[h,se],[m,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[h,fe],[m,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[h,fe],[m,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,f,[m,v]],[/droid.+; (shield) bui/i],[f,[h,`Nvidia`],[m,v]],[/(playstation [345portablevi]+)/i],[f,[h,ue],[m,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[h,se],[m,v]],[/smart-tv.+(samsung)/i],[h,[m,x]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,`SmartTV`],[h,ce],[m,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,oe],[m,x]],[/(apple) ?tv/i],[h,[f,E+` TV`],[m,x]],[/crkey/i],[[f,ne+`cast`],[h,ae],[m,x]],[/droid.+aft(\w)( bui|\))/i],[f,[h,T],[m,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[h,le],[m,x]],[/(bravia[\w ]+)( bui|\))/i],[f,[h,ue],[m,x]],[/(mitv-\w{5}) bui/i],[f,[h,de],[m,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[h,ye],[f,ye],[m,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,x]],[/((pebble))app/i],[h,f,[m,S]],[/droid.+; (glass) \d/i],[f,[h,ae],[m,S]],[/droid.+; (wt63?0{2,3})\)/i],[f,[h,fe],[m,S]],[/(quest( 2)?)/i],[f,[h,pe],[m,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[m,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[m,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[m,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,y]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[h,`Generic`]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[p,re+`HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[p,`Blink`]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[p,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[g,xe,Ce]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,`Windows`],[g,xe,Ce]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,`.`],[p,`iOS`]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,`Mac OS`],[g,/_/g,`.`]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,g],[/\(bb(10);/i],[g,[p,D]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[p,`Symbian`]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[p,ie+` OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[p,`webOS`]],[/crkey\/([\d\.]+)/i],[g,[p,ne+`cast`]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[p,`Chromium OS`],g],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,g],[/(sunos) ?([\w\.\d]*)/i],[[p,`Solaris`],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[p,g]]},Te=function(e,t){if(typeof e===l&&(t=e,e=r),!(this instanceof Te))return new Te(e,t).getResult();var i=e||(typeof n!==c&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:a),o=t?me(we,t):we;return this.getBrowser=function(){var e={};return e[p]=r,e[g]=r,be.call(e,i,o.browser),e.major=ve(e.version),e},this.getCPU=function(){var e={};return e[_]=r,be.call(e,i,o.cpu),e},this.getDevice=function(){var e={};return e[h]=r,e[f]=r,e[m]=r,be.call(e,i,o.device),e},this.getEngine=function(){var e={};return e[p]=r,e[g]=r,be.call(e,i,o.engine),e},this.getOS=function(){var e={};return e[p]=r,e[g]=r,be.call(e,i,o.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(e){return i=typeof e===u&&e.length>
33w?ye(e,w):e,this},this.setUA(i),this};Te.VERSION=i,Te.BROWSER=he([p,g,d]),Te.CPU=he([_]),Te.DEVICE=he([f,h,m,v,y,x,b,S,C]),Te.ENGINE=Te.OS=he([p,g]),typeof e===c?typeof define===s&&define.amd?define(function(){return Te}):typeof n!==c&&(n.UAParser=Te):(typeof t!==c&&t.exports&&(e=t.exports=Te),e.UAParser=Te);var Ee=typeof n!==c&&(n.jQuery||n.Zepto);if(Ee&&!Ee.ua){var De=new Te;Ee.ua=De.getResult(),Ee.ua.get=function(){return De.getUA()},Ee.ua.set=function(e){De.setUA(e);var t=De.getResult();for(var n in t)Ee.ua[n]=t[n]}}})(typeof window==`object`?window:e)}))();(function(){function e(e){this.amplitudeInstance=e}return e.prototype.getUser=function(){return{device_id:this.amplitudeInstance?.options?.deviceId,user_id:this.amplitudeInstance?.options?.userId,version:this.amplitudeInstance?.options?.versionName,language:this.amplitudeInstance?.options?.language,platform:this.amplitudeInstance?.options?.platform,os:this.getOs(),device_model:this.getDeviceModel()}},e.prototype.getOs=function(){return[this.amplitudeInstance?._ua?.browser?.name,this.amplitudeInstance?._ua?.browser?.major].filter(function(e){return e!=null}).join(` `)},e.prototype.getDeviceModel=function(){return this.amplitudeInstance?._ua?.os?.name},e})(),function(){function e(e){this.amplitudeInstance=e}return e.prototype.track=function(e){this.amplitudeInstance.logEvent(e.name,e.properties)},e.prototype.setUserProperty=function(e){var t;this.amplitudeInstance.setUserProperties((t={},t[e.userProperty]=e.variant?.value,t))},e.prototype.unsetUserProperty=function(e){var t;this.amplitudeInstance._logEvent(`$identify`,null,null,{$unset:(t={},t[e.userProperty]=`-`,t)})},e}();var $=function(){return $=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$.apply(this,arguments)};function Oj(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function kj(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Aj(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function jj(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Mj(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Nj=function(e,t){var n,r;t===void 0&&(t=!1);var i=Ij(e,t),a=void 0,o=Cj.document.cookie.split(`; `);try{for(var s=Aj(o),c=s.next();!c.done;c=s.next()){var l=c.value,u=jj(l.split(`=`,2),2),d=u[0],f=u[1];d===i&&(a=decodeURIComponent(f))}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}
33if(a)try{if(t){var p=atob(a);return JSON.parse(decodeURIComponent(p))}var m=a.split(`.`),h=void 0;return m.length>=2&&m[1]&&(h=atob(m[1])),{deviceId:m[0],userId:h}}catch{return}},Pj=function(e){var t=Ij(e,!0);try{var n=Cj.localStorage.getItem(t);if(!n)return;var r=JSON.parse(n);return typeof r==`object`?r:void 0}catch{return}},Fj=function(e){var t=Ij(e,!0);try{var n=Cj.sessionStorage.getItem(t);if(!n)return;var r=JSON.parse(n);return typeof r==`object`?r:void 0}catch{return}},Ij=function(e,t){if(t)return e?.length<10?void 0:`AMP_${e.substring(0,10)}`;if(!(e?.length<6))return`amp_${e.substring(0,6)}`},Lj=function(){function e(e,t,n){this.type=`integration`,this.apiKey=e,this.identityStore=t.identityStore,this.eventBridge=t.eventBridge,this.contextProvider=t.applicationContextProvider,this.timeoutMillis=n,this.loadPersistedState(),n<=0&&(this.setup=void 0)}return e.prototype.setup=function(e,t){return Oj(this,void 0,void 0,function(){return kj(this,function(n){return e?.automaticFetchOnAmplitudeIdentityChange&&this.identityStore.addIdentityListener(function(){t?.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},e.prototype.getUser=function(){var e=this.identityStore.getIdentity();return{user_id:e.userId,device_id:e.deviceId,user_properties:e.userProperties,version:this.contextProvider.versionName}},e.prototype.track=function(e){return this.eventBridge.receiver?(this.eventBridge.logEvent({eventType:e.eventType,eventProperties:e.eventProperties}),!0):!1},e.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith(`client-`))return!1;var e=Nj(this.apiKey,!0);return e||(e=Nj(this.apiKey,!1),e)||(e=Pj(this.apiKey),e)||(e=Fj(this.apiKey),e)?(this.commitIdentityToConnector(e),!0):!1},e.prototype.commitIdentityToConnector=function(e){var t=this.identityStore.editIdentity();t.setDeviceId(e.deviceId),e.userId&&t.setUserId(e.userId),t.commit()},e.prototype.waitForConnectorIdentity=function(e){return Oj(this,void 0,void 0,function(){var t,n=this;return kj(this,function(r){return t=this.identityStore.getIdentity(),!t.userId&&!t.deviceId?[2,Promise.race([new Promise(function(e){var t=function(){e(),n.identityStore.removeIdentityListener(t)};n.identityStore.addIdentityListener(t)}),new Promise(function(t,n){Cj.setTimeout(n,e,`Timed out waiting for Amplitude Analytics SDK to initialize.`)})])]:[2]})})},e}();function Rj(e,t){return t||={},new Promise(function(n,r){var i=new XMLHttpRequest,a=[],o=[],s={},c=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:c,headers:{keys:function(){return a},entries:function(){return o},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var l in i.open(t.method||`get`,e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){a.push(t=t.toLowerCase()),o.push([t,n]),s[t]=s[t]?s[t]+`,`+n:n}),n(c())},i.onerror=r,i.withCredentials=t.credentials==`include`,t.headers)i.setRequestHeader(l,t.headers[l]);i.send(t.body||null)})}var zj=Cj.fetch||Rj,Bj=function(e,t){return t==null||t<=0?e:new Promise(function(n,r){Cj.setTimeout(function(){r(new bj(`Request timeout after `+t+` milliseconds`))},t),e.then(n,r)})},Vj=function(e,t,n,r,i){return Bj(function(){return Oj(void 0,void 0,void 0,function(){var i,a,o;return kj(this,function(s){switch(s.label){case 0:return[4,zj(e,{method:t,headers:n,body:r})];case 1:return i=s.sent(),o={status:i.status},[4,i.text()];case 2:return a=(o.body=s.sent(),o),[2,a]}})})}(),i)},Hj=function(){function e(e){this.client=e}return e.prototype.request=function(e){return Oj(this,void 0,void 0,function(){return kj(this,function(t){switch(t.label){case 0:return[4,this.client.request(e.requestUrl,e.method,e.headers,null,e.timeoutMillis)];case 1:return[2,t.sent()]}})})},e}(),Uj={request:Vj},Wj;(function(e){e[e.Disable=0]=`Disable`,e[e.Error=1]=`Error`,e[e.Warn=2]=`Warn`,e[e.Info=3]=`Info`,e[e.Debug=4]=`Debug`,e[e.Verbose=5]=`Verbose`})(Wj||={});var Gj;(function(e){e.LocalStorage=`localStorage`,e.InitialVariants=`initialVariants`})(Gj||={});var Kj;(function(e){e.LocalStorage=`storage`,e.InitialVariants=`initial`,e.SecondaryLocalStorage=`secondary-storage`,e.SecondaryInitialVariants=`secondary-initial`,e.FallbackInline=`fallback-inline`,e.FallbackConfig=`fallback-config`,e.LocalEvaluation=`local-evaluation`})(Kj||={});var qj=function(e){return!e||e===Kj.FallbackInline||e===Kj.FallbackConfig||e===Kj.SecondaryInitialVariants},Jj={debug:!1,logLevel:Wj.Error,loggerProvider:null,instanceName:`$default_instance`,fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:Gj.LocalStorage,serverUrl:`https://api.lab.amplitude.com`,flagsServerUrl:`https://flag.lab.amplitude.com`,serverZone:`US`,fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,throwOnError:!1,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:Uj},Yj=`1.21.1`,Xj=512,Zj=function(){function e(e,t){var n=this;this.isReady=new Promise(function(e){n.resolve=e}),this.config=e,this.client=t;var r=e.instanceName??Jj.instanceName;this.queue=new $j(r),this.cache=new Qj(r)}return e.prototype.ready=function(){return this.integration?this.isReady:Prom
33ise.resolve()},e.prototype.setIntegration=function(e){var t=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=e,e.setup?this.integration.setup(this.config,this.client).then(function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()},function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()}):(this.queue.setTracker(this.integration.track.bind(e)),this.resolve())},e.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},e.prototype.track=function(e,t){if(this.cache.shouldTrack(e,t)){var n=this.getExposureEvent(e);this.queue.push(n)}},e.prototype.getExposureEvent=function(e){var t={eventType:`$exposure`,eventProperties:e};return e.metadata?.exposureEvent?t={eventType:e.metadata?.exposureEvent,eventProperties:e}:e.metadata?.deliveryMethod===`web`&&(t={eventType:`$impression`,eventProperties:e}),t},e}(),Qj=function(){function e(e){this.isSessionStorageAvailable=eM(),this.inMemoryCache={},this.identity={},this.storageKey=`EXP_sent_v3_${e}`,this.isSessionStorageAvailable&&(Cj.sessionStorage.removeItem(`EXP_sent_${e}`),Cj.sessionStorage.removeItem(`EXP_sent_v2_${e}`))}return e.prototype.shouldTrack=function(e,t){if(e.metadata?.deliveryMethod===`web`)return!0;var n={userId:t?.user_id,deviceId:t?.device_id};this.identityEquals(this.identity,n)||this.clearCache(),this.identity=n,this.loadCache();var r=e.flag_key in this.inMemoryCache,i=this.inMemoryCache[e.flag_key],a=e.variant??null,o=i??null,s=!1;return(!r||o!==a)&&(s=!0,this.inMemoryCache[e.flag_key]=a),this.storeCache(),s},e.prototype.clearCache=function(){this.inMemoryCache={},this.isSessionStorageAvailable&&Cj.sessionStorage.removeItem(this.storageKey)},e.prototype.identityEquals=function(e,t){return e.userId&&t.userId?e.userId===t.userId:!e.userId&&!t.userId?e.deviceId===t.deviceId:!1},e.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var e=Cj.sessionStorage.getItem(this.storageKey);this.inMemoryCache=e?JSON.parse(e):{}}},e.prototype.storeCache=function(){if(this.isSessionStorageAvailable)try{Cj.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))}catch{}},e}(),$j=function(){function e(e,t){t===void 0&&(t=Xj),this.isLocalStorageAvailable=Tj(),this.inMemoryQueue=[],this.storageKey=`EXP_unsent_${e}`,this.maxQueueSize=t}return e.prototype.push=function(e){this.loadQueue(),this.inMemoryQueue.push(e),this.flush(),this.storeQueue()},e.prototype.setTracker=function(e){var t=this;this.tracker=e,this.poller=Cj.setInterval(function(){t.loadFlushStore()},1e3),this.loadFlushStore()},e.prototype.flush=function(){if(this.tracker&&this.inMemoryQueue.length!==0){for(var e=0;e<this.inMemoryQueue.length;e++)try{if(!this.tracker(this.inMemoryQueue[e]))break}catch{break}this.inMemoryQueue=this.inMemoryQueue.slice(e),this.inMemoryQueue.length===0&&this.poller&&(Cj.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var e=Cj.localStorage.getItem(this.storageKey);this.inMemoryQueue=e?JSON.parse(e):[]}},e.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),Cj.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),eM=function(){var e=wj();if(e)try{var t=`EXP_test`;return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch{return!1}return!1},tM=function(){function e(e,t){t===void 0&&(t=Wj.Error),this.logger=e,this.logLevel=t}return e.prototype.error=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.logLevel>=Wj.Error&&(t=this.logger).error.apply(t,Mj([e],jj(n),!1))},e.prototype.warn=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.logLevel>=Wj.Warn&&(t=this.logger).warn.apply(t,Mj([e],jj(n),!1))},e.prototype.info=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.logLevel>=Wj.Info&&(t=this.logger).info.apply(t,Mj([e],jj(n),!1))},e.prototype.debug=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.logLevel>=Wj.Debug&&(t=this.logger).debug.apply(t,Mj([e],jj(n),!1))},e.prototype.verbose=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.logLevel>=Wj.Verbose&&(t=this.logger).verbose.apply(t,Mj([e],jj(n),!1))},e}(),nM=function(){function e(){}return e.prototype.error=function(e){var t=[...arguments].slice(1);console.error.apply(console,Mj([e],jj(t),!1))},e.prototype.warn=function(e){var t=[...arguments].slice(1);console.warn.apply(console,Mj([e],jj(t),!1))},e.prototype.info=function(e){var t=[...arguments].slice(1);console.info.apply(console,Mj([e],jj(t),!1))},e.prototype.debug=function(e){var t=[...arguments].slice(1);console.debug.apply(console,Mj([e],jj(t),!1))},e.prototype.verbose=function(e){var t=[...arguments].slice(1);console.debug.apply(console,Mj([e],jj(t),!1))},e}(),rM=function(){function e(){this.globalScope=wj()}return e.prototype.get=function(e){return this.globalScope?.localStorage.getItem(e)},e.prototype.put=function(e,t){var n;(n=this.globalScope)==null||n.localStorage.setItem(e,t)},e.prototype.delete=function(e){var t;(t=this.globalScope)==null||t.localStorage.removeItem(e)},e}(),iM=function(e,t,n){return new cM(`amp-exp-${t}-${e.substring(e.length-6)}`,n,lM)},aM=function(e,t,n){return n===void 0&&(n=new rM),new cM(`amp-exp-${t}-${e.substring(e.length-6)}-flags`,n)},oM=function(e,t,n){return n===void 0&&(n=new rM),new sM(`amp-exp-${t}-${e.substring(e.length-6)}-variants-options`,n)},sM=function(){function e(e,t){this.namespace=e,this.storage=t}return e.prototype.get=function(){return this.value},e.prototype.put=function(e){this.value=e},e.prototype.load=function(){var e=this.storage.get(this.namespace);e&&(this.value=JSON.parse(e))},e.prototype.store=function(){this.value===void 0?this.storage.delete(this.namespace):this.storage.put(this.namespace,JSON.stringify(this.value))},e}(),cM=function(){function e(e,t,n){this.cache={},this.namespace=e,this.storage=t,this.transformer=n}return e.prototype.get=function(e){return this.cache[e]},e.prototype.getAll=function(){return $({},this.cache)},e.prototype.put=function(e,t){this.cache[e]=t},e.prototype.putAll=function(e){var t,n;try{for(var r=Aj(Object.keys(e)),i=r.next();!i.done;i=r.next()){var a=i.value;this.cache[a]=e[a]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var e,t,n=this.storage.get(this.namespace),r;try{r=JSON.parse(n)||{}}catch{return}var i={};try{for(var a=Aj(Object.keys(r)),o=a.next();!o.done;o=a.next()){var s=o.value;try{var c=void 0;c=this.transformer?this.transformer(r[s]):r[s],c&&(i[s]=c)}catch{}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this.clear(),this.putAll(i)},e.prototype.store=function(e){e===void 0&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},e}(),lM=function(e){if(typeof e==`string`)return{key:e,value:e};if(typeof e==`object`){var t=e.key,n=e.value,r=e.payload,i=e.metadata,a=e.expKey;i&&i.experimentKey?a=i.experimentKey:a&&(i||={},i.experimentKey=a);var o={};return t?o.key=t:n&&(o.key=n),n&&(o.value=n),i&&(o.metadata=i),r&&(o.payload=r),a&&(o.expKey=a),o}},uM=function(){function e(){this.globalScope=wj()}return e.prototype.get=function(e){return this.globalScope?.sessionStorage.getItem(e)},e.prototype.put=function(e,t){var n;(n=this.globalScope)==null||n.sessionStorage.setItem(e,t)},e.prototype.delete=function(e){var t;(t=this.globalScope)==null||t.sessionStorage.removeItem(e)},e}(),dM=function(e,t,n,r){var i,a=`[Experiment] Exposure`,o=n?.value,s=`[Experiment] ${t}`;return{name:a,user:e,key:t,variant:n,userProperty:s,properties:{key:t,variant:o,source:r},userProperties:(i={},i[s]=o,i)}},fM=function(e){return e==null},pM=function(e){return fM(e)?!0:e&&Object.keys(e).length===0},mM=function(e){var t,n;if(!e||typeof e!=`object`)return{};var r={};try{for(var i=Aj(Object.entries(e)),a=i.next();!a.done;a=i.next()){var o=jj(a.value,2),s=o[0],c=o[1];fM(c)||(r[s]=c)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},hM=function(e){return e?.metadata?.evaluationMode===`local`},gM=function(){function e(e,t,n,r){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=n,this.scalar=r}return e.prototype.start=function(e){return Oj(this,void 0,void 0,function(){return kj(this,function(t){switch(t.label){case 0:if(!this.started)this.started=!0;else throw Error(`Backoff already started`);return[4,this.backoff(e,0,this.min)];case 1:return t.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(e,t,n){return Oj(this,void 0,void 0,function(){var r=this;return kj(this,function(i){return this.done||(this.timeoutHandle=Cj.setTimeout(function(){return Oj(r,void 0,void 0,function(){var r,i;return kj(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e()];case 1:return a.sent(),[3,3];case 2:return a.sent(),r=t+1,r<this.attempts&&(i=Math.min(n*this.scalar,this.max),this.backoff(e,r,i)),[3,3];case 3:return[2]}})})},n)),[2]})})},e}(),_M=function(e){var t,n;if(!e)return{};var r={user:e},i=wj();i&&(r.page={url:i.location.href});var a={};if(!e.groups)return r;try{for(var o=Aj(Object.keys(e.groups)),s=o.next();!s.done;s=o.next()){var c=s.value,l=e.groups[c];if(l.length>0&&l[0]){var u=l[0],d={group_name:u},f=e.group_properties?.[c]?.[u];f&&Object.keys(f).length>0&&(d.group_properties=f),a[c]=d}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return Object.keys(a).length>0&&(r.groups=a),delete r.user.groups,delete r.user.group_properties,r},vM=function(e){return e==null?{}:typeof e==`string`?{key:e,value:e}:e},yM=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var n={};return e.key&&(n.key=e.key),e.value&&(n.value=e.value),e.payload&&(n.payload=e.payload),t&&(n.expKey=t),e.metadata&&(n.metadata=e.metadata),n},bM=function(){function e(e){this.setProperties={},this.unsetProperties={},this.analyticsProvider=e}return e.prototype.track=function(e){this.setProperties[e.key]!=e.variant.value&&(this.setProperties[e.key]=e.variant.value,delete this.unsetProperties[e.key],this.analyticsProvider.track(e))},e.prototype.setUserProperty=function(e){this.setProperties[e.key]!=e.variant.value&&this.analyticsProvider.setUserProperty(e)},e.prototype.unsetUserProperty=function(e){this.unsetProperties[e.key]||(this.unsetProperties[e.key]=`unset`,delete this.setProperties[e.key],this.analyticsProvider.unsetUserProperty(e))},e}(),xM=function(){function e(e){this.tracked={},this.identity={},this.exposureTrackingProvider=e}return e.prototype.track=function(e,t){var n={userId:t?.user_id,deviceId:t?.device_id};this.identityEquals(this.identity,n)||(this.tracked={}),this.identity=n;var r=e.flag_key in this.tracked,i=this.tracked[e.flag_key];r&&i===e.variant||(this.tracked[e.flag_key]=e.variant,this.exposureTrackingProvider.track(e))},e.prototype.identityEquals=function(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId},e}(),SM=1e4,CM=8,wM=500,TM=1e4,EM=1.5,DM=6e4,OM=`https://api.lab.eu.amplitude.com`,kM=`https://flag.lab.eu.amplitude.com`,AM=function(){function e(t,n){var r=this;this.engine=new NA,this.isRunning=!1,this.apiKey=t,n=mM(n),this.config=$($($({},Jj),n),{serverUrl:n?.serverUrl||((n?.serverZone)?.toLowerCase()===`eu`?OM:Jj.serverUrl),flagsServerUrl:n?.flagsServerUrl||((n?.serverZone)?.toLowerCase()===`eu`?kM:Jj.flagsServerUrl),flagConfigPollingIntervalMillis:n.flagConfigPollingIntervalMillis<DM?DM:n.flagConfigPollingIntervalMillis??Jj.flagConfigPollingIntervalMillis}),this.logger=new tM(this.config.loggerProvider||new nM,e.getLogLevel(n));var i=this.config?.internalInstanceNameSuffix;if(this.isWebExperiment=i===`web`,this.poller=new Ej(function(){return Oj(r,void 0,void 0,function(){var e;return kj(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.doFlags()];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this.logger.info(e),[3,3];case 3:return[2]}})})},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var a in this.config.initialVariants)this.config.initialVariants[a]=lM(this.config.initialVariants[a]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new bM(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.userSessionExposureTracker=new xM(this.config.exposureTrackingProvider)),this.integrationManager=new Zj(this.config,this);var o=new Hj(this.config.httpClient||Uj);this.flagApi=new Sj(this.apiKey,this.config.flagsServerUrl,o),this.evaluationApi=new xj(this.apiKey,this.config.serverUrl,o);var s,c=i?`${this.config.instanceName}-${i}`:this.config.instanceName;s=this.isWebExperiment?new uM:new rM,this.variants=iM(this.apiKey,c,s),this.flags=aM(this.apiKey,c,s),this.fetchVariantsOptions=oM(this.apiKey,c,s);try{this.flags.load(),this.variants.load(),this.fetchVariantsOptions.load()}catch{}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(e){return Oj(this,void 0,void 0,function(){var t,n,r;return kj(this,function(i){switch(i.label){case 0:if(this.isRunning)return[2];this.isRunning=!0,this.setUser(e),i.label=1;case 1:return i.trys.push([1,6,,7]),t=this.doFlags(),n=this.config.fetchOnStart??!0,n?[4,Promise.all([this.fetch(e),t])]:[3,3];case 2:return i.sent(),[3,5];case 3:return[4,t];case 4:i.sent(),i.label=5;case 5:return[3,7];case 6:if(r=i.sent(),this.config.throwOnError)throw r;return[3,7];case 7:return this.config.pollOnStart&&this.poller.start(),[2]}})})},e.prototype.stop=function(){this.isRunning&&=(this.poller.stop(),!1)},e.prototype.fetch=function(){return Oj(this,arguments,void 0,function(e,t){var n;return e===void 0&&(e=this.user),kj(this,function(r){switch(r.label){case 0:this.setUser(e||{}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.fetchInternal(e,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,t)];case 2:return r.sent(),[3,4];case 3:if(n=r.sent(),this.config.throwOnError)throw n;return n instanceof bj?this.logger.debug(n):this.logger.error(n),[3,4];case 4:return[2,this]}})})},e.prototype.variant=function(e,t){if(!this.apiKey)return{value:void 0};var n=this.variantAndSource(e,t);return this.config.automaticExposureTracking&&this.exposureInternal(e,n),this.logger.debug(`[Experiment] variant for ${e} is ${n.variant?.key||n.variant?.value}`),n.variant||{}}
33,e.prototype.exposure=function(e){var t=this.variantAndSource(e);this.exposureInternal(e,t)},e.prototype.all=function(){if(!this.apiKey)return{};var e=this.evaluate();for(var t in e)hM(this.flags.get(t))||delete e[t];return $($($({},this.secondaryVariants()),this.sourceVariants()),e)},e.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch{}},e.prototype.getUser=function(){if(!this.user)return this.user;if(this.user?.user_properties){var e=$({},this.user.user_properties);return $($({},this.user),{user_properties:e})}else return $({},this.user)},e.prototype.setUser=function(e){if(!e){this.user=null;return}if(this.user?.user_properties){var t=$({},e.user_properties);this.user=$($({},e),{user_properties:t})}else this.user=$({},e)},e.prototype.getUserProvider=function(){return this.userProvider},e.prototype.setUserProvider=function(e){return this.userProvider=e,this},e.prototype.mergeInitialFlagsWithStorage=function(){var e=this;this.config.initialFlags&&JSON.parse(this.config.initialFlags).forEach(function(t){e.flags.get(t.key)||e.flags.put(t.key,t)})},e.prototype.evaluate=function(e){var t,n,r=this.addContext(this.user),i=PA(this.flags.getAll(),e),a=_M(r),o=this.engine.evaluate(a,i),s={};try{for(var c=Aj(Object.keys(o)),l=c.next();!l.done;l=c.next()){var u=l.value;s[u]=yM(o[u])}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return s},e.prototype.getEvaluationTraces=function(e){var t=this.addContext(this.user),n=PA(this.flags.getAll(),e),r=_M(t);return this.engine.evaluateWithTraces(r,n).traces},e.prototype.variantAndSource=function(e,t){var n={};this.config.source===Gj.LocalStorage?n=this.localStorageVariantAndSource(e,t):this.config.source===Gj.InitialVariants&&(n=this.initialVariantsVariantAndSource(e,t));var r=this.flags.get(e);return(hM(r)||!n.variant&&r)&&(n=this.localEvaluationVariantAndSource(e,r,t)),n},e.prototype.localEvaluationVariantAndSource=function(e,t,n){var r={},i=this.evaluate([t.key])[e],a=Kj.LocalEvaluation,o=i?.metadata?.default;if(!fM(i)&&!o)return{variant:vM(i),source:a,hasDefaultVariant:!1};if(o&&(r={variant:vM(i),source:a,hasDefaultVariant:!0}),!fM(n))return{variant:vM(n),source:Kj.FallbackInline,hasDefaultVariant:r.hasDefaultVariant};var s=this.config.initialVariants[e];if(!fM(s))return{variant:vM(s),source:Kj.SecondaryInitialVariants,hasDefaultVariant:r.hasDefaultVariant};var c=vM(this.config.fallbackVariant),l={variant:c,source:Kj.FallbackConfig,hasDefaultVariant:r.hasDefaultVariant};return pM(c)?r:l},e.prototype.localStorageVariantAndSource=function(e,t){var n={},r=this.variants.get(e),i=r?.metadata?.default;if(!fM(r)&&!i)return{variant:vM(r),source:Kj.LocalStorage,hasDefaultVariant:!1};if(i&&(n={variant:vM(r),source:Kj.LocalStorage,hasDefaultVariant:!0}),!fM(t))return{variant:vM(t),source:Kj.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var a=this.config.initialVariants[e];if(!fM(a))return{variant:vM(a),source:Kj.SecondaryInitialVariants,hasDefaultVariant:n.hasDefaultVariant};var o=vM(this.config.fallbackVariant),s={variant:o,source:Kj.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return pM(o)?n:s},e.prototype.initialVariantsVariantAndSource=function(e,t){var n={},r=this.config.initialVariants[e];if(!fM(r))return{variant:vM(r),source:Kj.InitialVariants,hasDefaultVariant:!1};var i=this.variants.get(e),a=i?.metadata?.default;if(!fM(i)&&!a)return{variant:vM(i),source:Kj.LocalStorage,hasDefaultVariant:!1};if(a&&(n={variant:vM(i),source:Kj.LocalStorage,hasDefaultVariant:!0}),!fM(t))return{variant:vM(t),source:Kj.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var o=vM(this.config.fallbackVariant),s={variant:o,source:Kj.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return pM(o)?n:s},e.prototype.fetchInternal=function(e,t,n,r){return Oj(this,void 0,void 0,function(){var i,a;return kj(this,function(o){switch(o.label){case 0:if(!this.apiKey)throw Error(`Experiment API key is empty`);this.logger.debug(`[Experiment] Fetch all: retry=${n}`),n&&this.stopRetries(),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,this.doFetch(e,t,$({trackingOption:this.fetchVariantsOptions.get()?.trackingOption},r))];case 2:return i=o.sent(),[4,this.storeVariants(i,r)];case 3:return o.sent(),[2,i];case 4:throw a=o.sent(),n&&this.shouldRetryFetch(a)&&this.startRetries(e,r),a;case 5:return[2]}})})},e.prototype.setTracksAssignment=function(e){return Oj(this,void 0,void 0,function(){return kj(this,function(t){return this.fetchVariantsOptions.put($($({},this.fetchVariantsOptions.get()||{}),{trackingOption:e?`track`:`no-track`}
33)),this.fetchVariantsOptions.store(),[2]})})},e.prototype.cleanUserPropsForFetch=function(e){var t=$({},e);return delete t.cookie,t},e.prototype.doFetch=function(e,t,n){return Oj(this,void 0,void 0,function(){var r,i,a,o,s,c,l;return kj(this,function(u){switch(u.label){case 0:return[4,this.addContextOrWait(e)];case 1:return e=u.sent(),e=this.cleanUserPropsForFetch(e),this.logger.debug(`[Experiment] Fetch variants for user: `,e),[4,this.evaluationApi.getVariants(e,$({timeoutMillis:t},n))];case 2:r=u.sent(),i={};try{for(a=Aj(Object.keys(r)),o=a.next();!o.done;o=a.next())s=o.value,i[s]=yM(r[s])}catch(e){c={error:e}}finally{try{o&&!o.done&&(l=a.return)&&l.call(a)}finally{if(c)throw c.error}}return this.logger.debug(`[Experiment] Received variants: `,i),[2,i]}})})},e.prototype.doFlags=function(){return Oj(this,void 0,void 0,function(){var e,t,n;return kj(this,function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),e=void 0,this.isWebExperiment?[4,this.addContextOrWait(this.getUser())]:[3,2];case 1:e=r.sent(),r.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:`experiment-js-client`,libraryVersion:Yj,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?`web`:void 0,user:e?.user_id||e?.device_id?{user_id:e?.user_id,device_id:e?.device_id}:void 0})];case 3:return t=r.sent(),this.flags.clear(),this.flags.putAll(t),[3,5];case 4:if(n=r.sent(),n instanceof bj){if(this.logger.debug(n),this.config.throwOnError)throw n}else throw n;return[3,5];case 5:try{this.flags.store()}catch{}return this.mergeInitialFlagsWithStorage(),[2]}})})},e.prototype.storeVariants=function(e,t){return Oj(this,void 0,void 0,function(){var n,r,i,a,a;return kj(this,function(o){for(a in n=t&&t.flagKeys?t.flagKeys:[],n.length===0&&this.variants.clear(),r=function(t){n=n.filter(function(e){return e!==t}),i.variants.put(t,e[t])},i=this,e)r(a);for(a in n)this.variants.remove(a);try{this.variants.store()}catch{}return this.logger.debug(`[Experiment] Stored variants: `,e),[2]})})},e.prototype.startRetries=function(e,t){return Oj(this,void 0,void 0,function(){var n=this;return kj(this,function(r){return this.logger.debug(`[Experiment] Retry fetch`),this.retriesBackoff=new gM(CM,wM,TM,EM),this.retriesBackoff.start(function(){return Oj(n,void 0,void 0,function(){return kj(this,function(n){switch(n.label){case 0:return[4,this.fetchInternal(e,SM,!1,t)];case 1:return n.sent(),[2]}})})}),[2]})})},e.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},e.prototype.addContext=function(e){var t=this.userProvider?.getUser(),n=this.integrationManager.getUser(),r=$($($({},t?.user_properties),n.user_properties),e?.user_properties);return $($($($({library:`experiment-js-client/${Yj}`},t),n),e),{user_properties:r})},e.prototype.addContextOrWait=function(e){return Oj(this,void 0,void 0,function(){return kj(this,function(t){switch(t.label){case 0:return[4,this.integrationManager.ready()];case 1:return t.sent(),[2,this.addContext(e)]}})})},e.prototype.sourceVariants=function(){if(this.config.source==Gj.LocalStorage)return this.variants.getAll();if(this.config.source==Gj.InitialVariants)return this.config.initialVariants},e.prototype.secondaryVariants=function(){if(this.config.source==Gj.LocalStorage)return this.config.initialVariants;if(this.config.source==Gj.InitialVariants)return this.variants.getAll()},e.prototype.exposureInternal=function(e,t){var n;if(t.variant?.metadata?.trackExposure??!0){this.legacyExposureInternal(e,t.variant,t.source);var r={flag_key:e},i=qj(t.source);if(!(i&&!t.hasDefaultVariant)){t.variant?.expKey&&(r.experiment_key=t.variant?.expKey);var a=t.variant?.metadata;if(!i&&!a?.default&&(t.variant?.key?r.variant=t.variant.key:t.variant?.value&&(r.variant=t.variant.value)),a&&(r.metadata=a),this.isWebExperiment&&(r.time=Date.now()),this.isWebExperiment){var o=wj();if(o?.location)try{var s=o.location.href;r.metadata.url=s.split(`?`)[0]||``}catch{}}var c=this.addContext(this.getUser());(n=this.userSessionExposureTracker)==null||n.track(r,c),this.integrationManager.track(r,c)}}},e.prototype.legacyExposureInternal=function(e,t,n){var r,i,a,o,s;if(this.analyticsProvider){var c=dM(this.addContext(this.getUser()),e,t,n);qj(n)||!t?.value?(i=(r=this.analyticsProvider)?.unsetUserProperty)==null||i.call(r,c):t?.value&&((o=(a=this.analyticsProvider)?.setUserProperty)==null||o.call(a,c),(s=this.analyticsProvider)==null||s.track(c))}},e.getLogLevel=function(e){return e.debug===!0?Wj.Debug:e.logLevel??Wj.Error},e.prototype.shouldRetryFetch=function(e){return e instanceof yj?e.
33statusCode<400||e.statusCode>=500||e.statusCode===429:!0},e.prototype.addPlugin=function(e){e.type===`integration`&&this.integrationManager.setIntegration(e)},e}(),jM=function(){function e(e,t){this.globalScope=wj(),this.userAgent=this.globalScope?.navigator===void 0?void 0:this.globalScope?.navigator.userAgent,this.ua=new Dj.UAParser(this.userAgent).getResult(),this.localStorage=new rM,this.sessionStorage=new uM,this.userProvider=e,this.apiKey=t,this.storageKey=`EXP_${this.apiKey?.slice(0,10)}_DEFAULT_USER_PROVIDER`}return e.prototype.getUser=function(){var e=this.userProvider?.getUser()||{};return $({language:this.getLanguage(),platform:`Web`,os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:this.ua.device?.type??`desktop`,referring_url:(this.globalScope?.document)?.referrer.replace(/\/$/,``),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},e)},e.prototype.getLanguage=function(){return typeof navigator<`u`&&(navigator.languages&&navigator.languages[0]||navigator.language)||``},e.prototype.getOs=function(e){return[e.browser?.name,e.browser?.major].filter(function(e){return e!=null}).join(` `)},e.prototype.getDeviceModel=function(e){return e.os?.name},e.prototype.getBrowser=function(e){var t=e.browser?.name;return t?.includes(`Chrom`)&&(t=`Chrome`),t?.includes(`Firefox`)&&(t=`Firefox`),t?.includes(`Safari`)&&(t=`Safari`),t?.includes(`Edge`)&&(t=`Edge`),t?.includes(`Opera`)&&(t=`Opera`),t},e.prototype.getCookie=function(){if(this.globalScope?.document?.cookie)return Object.fromEntries((this.globalScope?.document?.cookie)?.split(`; `).map(function(e){return e.split(`=`)}))},e.prototype.getLandingUrl=function(){try{var e=JSON.parse(this.sessionStorage.get(this.storageKey)||`{}`);return e.landing_url||(e.landing_url=(this.globalScope?.location)?.href.replace(/\/$/,``),this.sessionStorage.put(this.storageKey,JSON.stringify(e))),e.landing_url}catch{return}},e.prototype.getFirstSeen=function(){try{var e=JSON.parse(this.localStorage.get(this.storageKey)||`{}`);return e.first_seen||(e.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(e))),e.first_seen}catch{return}},e.prototype.getUrlParam=function(){var e,t;if(this.globalScope){var n={};try{var r=new URL(this.globalScope.location.href);try{for(var i=Aj(r.searchParams),a=i.next();!a.done;a=i.next()){var o=jj(a.value,2),s=o[0],c=o[1];n[s]=Mj(Mj([],jj(n[s]??[]),!1),jj(c.split(`,`)),!1)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}catch{return}return Object.entries(n).reduce(function(e,t){var n=jj(t,2),r=n[0],i=n[1];return e[r]=i.length==1?i[0]:i,e},{})}},e}();Cj.experimentInstances={};var MM=Cj.experimentInstances,NM=function(e,t){return RM(e,t)},PM=function(e,t){return RM(e,t,function(){return new Lj(e,ue.getInstance(FM(t)),1e4)})},FM=function(e){return e?.instanceName||Jj.instanceName},IM=function(e,t){var n=FM(t),r=t?.internalInstanceNameSuffix;return r?`${n}.${e}.${r}`:`${n}.${e}`},LM=function(e,t){return new AM(e,$($({},t),{userProvider:new jM(t?.userProvider,e)}))},RM=function(e,t,n){var r=IM(e,t),i=MM[r];return i||(i=LM(e,t),n&&i.addPlugin(n()),MM[r]=i,i)},zM={initialize:NM,initializeWithAmplitudeAnalytics:PM};(function(){function e(){}return e.prototype.getUser=function(){return{}},e.prototype.start=function(e){return Oj(this,void 0,void 0,function(){return kj(this,function(e){return[2]})})},e.prototype.stop=function(){},e.prototype.setUser=function(e){},e.prototype.fetch=function(e,t){return Oj(this,void 0,void 0,function(){return kj(this,function(e){return[2,this]})})},e.prototype.getUserProvider=function(){return null},e.prototype.setUserProvider=function(e){return this},e.prototype.variant=function(e,t){return Jj.fallbackVariant},e.prototype.all=function(){return{}},e.prototype.clear=function(){},e.prototype.exposure=function(e){},e})();var BM=e=>{let t=new le;for(let n in e){if(n===`organization_needs`){t.set(n,JSON.parse(e[n])||{});continue}let r=e[n];t.set(n,r??``)}fe(t)},VM=!1,HM=[],UM=e=>{VM?e():HM.push(e)},WM=()=>
33{VM=!0,HM.forEach(e=>e()),HM=[]},GM=`automation`,KM=`tracking_version`,qM=`tracking_expiration`,JM=24,YM=()=>{let e=localStorage.getItem(GM),t=localStorage.getItem(KM),n=localStorage.getItem(qM),r=ce.appVersion;if(!e||t!==r||!r)return null;if(n){let e=parseInt(n,10),t=Date.now(),r=JM*60*60*1e3;if(t-e>r)return null}else return null;try{return JSON.parse(e||`[{}]`)[0]||null}catch{return localStorage.removeItem(GM),localStorage.removeItem(KM),localStorage.removeItem(qM),null}},XM=async()=>{if(!ce.canTrackEvents){await ZM?.fetch(),WM();return}let e=YM();e?(BM(e),await ZM?.fetch(),WM()):document.addEventListener(`userPropertiesReady`,async e=>{BM(e.detail),await ZM?.fetch(),WM()})},ZM=null,QM=()=>{de(`57ee002bc00de4ab2672cecb10d39d19`,ce.userId,{appVersion:`v6.286.0`,autocapture:{sessions:!1,elementInteractions:!1,fileDownloads:!1,pageViews:!1,formInteractions:!1,attribution:!0}}),ZM=zM.initializeWithAmplitudeAnalytics(`57ee002bc00de4ab2672cecb10d39d19`),XM()};ae();var $M=(e,t=!1)=>new Promise(n=>{UM(()=>{let r=ZM?.variant(e)?.value===`on`;n(t?!r:r)})}),eN=async e=>{for(let[t,{plugins:n,component:r,router:i,featureFlag:a,featureFlagInverted:o,preserveContent:s}]of Object.entries(e))document.querySelectorAll(`[data-component="${t}"]`).forEach(async e=>{let t=``;s&&(t=e.innerHTML);let c=e.getAttribute(`data-props`),l=c?JSON.parse(c):{};s&&(l.content=t),a?$M(a,o).then(t=>{if(!t){e.remove();return}tN(e,r,n,i,l)}):tN(e,r,n,i,l)})},tN=async(e,t,n,r,i)=>{let{default:a}=await t(),o=p(a,i);n.forEach(e=>{if(Array.isArray(e))return o.use(...e);o.use(e)}),r&&o.use(r()),pk(o),o.mount(e)};export{as as A,Re as B,Ys as C,Vs as D,Ds as E,So as F,xo as I,ga as L,qo as M,Co as N,ds as O,ts as P,Ui as R,$s as S,qs as T,Be as V,ck as _,YM as a,sc as b,nA as c,oA as d,sA as f,Ik as g,Pk as h,QM as i,os as j,Hs as k,iA as l,Ak as m,UM as n,Vk as o,cA as p,ZM as r,Rk as s,eN as t,aA as u,pk as v,Ks as w,oc as x,dk as y,We as z}; 34//# sourceMappingURL=component-loader-B20_vJNR.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.