1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5af8be4c-ab89-4c89-a973-61c97941793f",e._sentryDebugIdIdentifier="sentry-dbid-5af8be4c-ab89-4c89-a973-61c97941793f")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{24333:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(31549),i=n(44194);t.default=function({html:e,height:t=null,width:n=null,children:o,dataNtpc:s=""}){return(0,i.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${s}`}})},[s]),(0,r.jsxs)(r.Fragment,{children:[o,e?(0,r.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=n?`${n}px`:"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:e}}):null]})}},27408:function(e,t,n){"use strict";let r;var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=void 0;let o=n(31549),s=n(44194),a=i(n(94690));t.GoogleAnalytics=function(e){let{gaId:t,dataLayerName:n="dataLayer"}=e;return void 0===r&&(r=n),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:` 2 window['${n}'] = window['${n}'] || []; 3 function gtag(){window['${n}'].push(arguments);} 4 gtag('js', new Date()); 5 6 gtag('config', '${t}');`}}),(0,o.jsx)(a.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`})]})},t.sendGAEvent=function(...e){if(void 0===r){console.warn("@next/third-parties: GA has not been initialized");return}window[r]?window[r].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${r} does not exist`)}},89274:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=n(31549),o=n(38883),s=r(n(24333));t.default=function(e){let{apiKey:t,...n}=e,r={...n,key:t},{html:a}=(0,o.GoogleMapsEmbed)(r);return(0,i.jsx)(s.default,{height:r.height||null,width:r.width||null,html:a,dataNtpc:"GoogleMapsEmbed"})}},54444:function(e,t,n){"use strict";let r;var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=t.GoogleTagManager=void 0;let o=n(31549),s=n(44194),a=i(n(94690));t.GoogleTagManager=function(e){let{gtmId:t,dataLayerName:n="dataLayer",auth:i,preview:l,dataLayer:u}=e;void 0===r&&(r=n);let c="dataLayer"!==n?`&l=${n}`:"",d=i?`>m_auth=${i}`:"",p=l?`>m_preview=${l}>m_cookies_win=x`:"";return(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:` 7 (function(w,l){ 8 w[l]=w[l]||[]; 9 w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); 10 ${u?`w[l].push(${JSON.stringify(u)})`:""} 11 })(window,'${n}');`}}),(0,o.jsx)(a.default,{id:"_next-gtm","data-ntpc":"GTM",src:`https://www.googletagmanager.com/gtm.js?id=${t}${c}${d}${p}`})]})},t.sendGTMEvent=e=>{if(void 0===r){console.warn("@next/third-parties: GTM has not been initialized");return}window[r]?window[r].push(e):console.warn(`@next/third-parties: GTM dataLayer ${r} does not exist`)}},59361:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var i=n(89274);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return r(i).default}});var o=n(99937);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return r(o).default}});var s=n(54444);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return s.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return s.sendGTMEvent}});var a=n(27408);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return a.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return a.sendGAEvent}})},99937:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
11dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=n(31549),o=r(n(94690)),s=n(38883),a=r(n(24333)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"};t.default=function(e){let{html:t,scripts:n,stylesheets:r}=(0,s.YouTubeEmbed)(e);return(0,i.jsx)(a.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==n?void 0:n.map(e=>(0,i.jsx)(o.default,{src:e.url,strategy:l[e.strategy],stylesheets:r},e.url))})}},10063:function(e,t,n){"use strict";var r=n(99415),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var s=c(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var y=s[g];if(!o[y]&&!(r&&r[y])&&!(m&&m[y])&&!(a&&a[y])){var v=p(n,y);try{u(t,y,v)}catch(e){}}}}return t}},6427:function(e,t,n){"use strict";let r;n.d(t,{cC:function(){return D},Jc:function(){return ef},ag:function(){return ed},$G:function(){return B}});var i=n(44194),o=n(63229),s=n.n(o),a=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function l(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(s()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("-->");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var i=new RegExp(a),o=null;null!==(o=i.exec(e));)if(o[0].trim()){if(o[1]){var l=o[1].trim(),u=[l,""];l.indexOf("=")>-1&&(u=l.split("=")),t.attrs[u[0]]=u[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1))}return t}var u=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,c=/^\s*$/,d=Object.create(null),p={parse:function(e,t){t||(t={}),t.components||(t.components=d);var n,r=[],i=[],o=-1,s=!1;if(0!==e.indexOf("<")){var a=e.indexOf("<");r.push({type:"text",content:-1===a?e:e.substring(0,a)})}return e.replace(u,function(a,u){if(s){if(a!=="</"+n.name+">")return;s=!1}var d,p="/"!==a.charAt(1),f=a.startsWith("<!--"),h=u+a.length,m=e.charAt(h);if(f){var g=l(a);return o<0?r.push(g):(d=i[o]).children.push(g),r}if(p&&(o++,"tag"===(n=l(a)).type&&t.components[n.name]&&(n.type="component",s=!0),n.voidElement||s||!m||"<"===m||n.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===o&&r.push(n),(d=i[o-1])&&d.children.push(n),i[o]=n),(!p||n.voidElement)&&(o>-1&&(n.voidElement||n.name===a.slice(2,-1))&&(n=-1==--o?r:i[o]),!s&&"<"!==m&&m)){d=-1===o?r:i[o].children;var y=e.indexOf("<",h),v=e.slice(h,-1===y?void 0:y);c.test(v)&&(v=" "),(y>-1&&o+d.length>=0||" "!==v)&&d.push({type:"text",content:v})}}),r}};let f=(...e)=>{console?.warn&&(_(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},h={},m=(...e)=>{_(e[0])&&h[e[0]]||(_(e[0])&&(h[e[0]]=new Date),f(...e))},g=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},y=(e,t,n)=>{e.loadNamespaces(t,g(e,n))},v=(e,t,n,r)=>{_(n)&&(n=[n]),n.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,g(e,r))},b=(e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(m("i18n.languages were undefined or empty",t.languages),!0),_=e=>"string"==typeof e,w=e=>"object"==typeof e&&null!==e,S=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,x={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"â¦","…":"â¦","/":"/","/":"/"},E=e=>x[e],k={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(S,E)},O=()=>k,T=()=>r,C=(e,t)=>{if(!e)return!1;let n=e.props?.children??e.children;return t?n.length>0:!!n},R=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?I(t):t},M=e=>Array.isArray(e)&&e.every(i.isValidElement),I=e=>Array.isArray(e)?e:[e],P=(e,t)=>{let n={...t};return n.props=Object.assign(e.props,t.props),n},L=(e,t)=>{if(!e)return"";let n="",r=I(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return r.forEach((e,r)=>{if(_(e))n+=`${e}`;else if((0,i.isValidElement)(e)){let{props:i,type:s}=e,a=Object.keys(i).length,l=o.indexOf(s)>-1,u=i.children;if(u||!l||a){if(!u&&(!l||a)||i.i18nIsDynamicList)n+=`<${r}></${r}>`;else if(l&&1===a&&_(u))n+=`<${s}>${u}</${s}>`;else{let e=L(u,t);n+=`<${r}>${e}</${r}>`}}else n+=`<${s}/>`}
11else if(null===e)f("Trans: the passed in value is invalid - seems you passed in a null child.");else if(w(e)){let{format:t,...r}=e,i=Object.keys(r);if(1===i.length){let e=t?`${i[0]}, ${t}`:i[0];n+=`{{${e}}}`}else f("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else f("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)}),n},N=(e,t,n,r,o,s)=>{if(""===t)return[];let a=r.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(a.map(e=>`<${e}`).join("|")).test(t);if(!e&&!l&&!s)return[t];let u={},c=e=>{I(e).forEach(e=>{_(e)||(C(e)?c(R(e)):w(e)&&!(0,i.isValidElement)(e)&&Object.assign(u,e))})};c(e);let d=p.parse(`<0>${t}</0>`),f={...u,...o},h=(e,t,n)=>{let r=R(e),i=g(r,t.children,n);return M(r)&&0===i.length||e.props?.i18nIsDynamicList?r:i},m=(e,t,n,r,o)=>{e.dummy?(e.children=t,n.push((0,i.cloneElement)(e,{key:r},o?void 0:t))):n.push(...i.Children.map([e],e=>{let n={...e.props};return delete n.i18nIsDynamicList,(0,i.createElement)(e.type,{...n,key:r,ref:e.ref},o?null:t)}))},g=(t,o,u)=>{let c=I(t);return I(o).reduce((t,o,d)=>{let p=o.children?.[0]?.content&&n.services.interpolator.interpolate(o.children[0].content,f,n.language);if("tag"===o.type){let s=c[parseInt(o.name,10)];1!==u.length||s||(s=u[0][o.name]),s||(s={});let y=0!==Object.keys(o.attrs).length?P({props:o.attrs},s):s,v=(0,i.isValidElement)(y),b=v&&C(o,!0)&&!o.voidElement,S=l&&w(y)&&y.dummy&&!v,x=w(e)&&Object.hasOwnProperty.call(e,o.name);if(_(y)){let e=n.services.interpolator.interpolate(y,f,n.language);t.push(e)}else if(C(y)||b){let e=h(y,o,u);m(y,e,t,d)}else if(S)m(y,g(c,o.children,u),t,d);else if(Number.isNaN(parseFloat(o.name))){if(x){let e=h(y,o,u);m(y,e,t,d,o.voidElement)}else if(r.transSupportBasicHtmlNodes&&a.indexOf(o.name)>-1){if(o.voidElement)t.push((0,i.createElement)(o.name,{key:`${o.name}-${d}`}));else{let e=g(c,o.children,u);t.push((0,i.createElement)(o.name,{key:`${o.name}-${d}`},e))}}else if(o.voidElement)t.push(`<${o.name} />`);else{let e=g(c,o.children,u);t.push(`<${o.name}>${e}</${o.name}>`)}}else if(w(y)&&!v){let e=o.children[0]?p:null;e&&t.push(e)}else m(y,p,t,d,1!==o.children.length||!p)}else if("text"===o.type){let e=r.transWrapTextNodes,a=s?r.unescape(n.services.interpolator.interpolate(o.content,f,n.language)):n.services.interpolator.interpolate(o.content,f,n.language);e?t.push((0,i.createElement)(e,{key:`${o.name}-${d}`},a)):t.push(a)}return t},[])};return R(g([{dummy:!0,children:e||[]}],d,I(e||[]))[0])},A=(0,i.createContext)();class j{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]??=!0})}getUsedNamespaces=()=>Object.keys(this.usedNamespaces)}function D({children:e,count:t,parent:n,i18nKey:r,context:o,tOptions:s={},values:a,defaults:l,components:u,ns:c,i18n:d,t:p,shouldUnescape:f,...h}){let{i18n:g,defaultNS:y}=(0,i.useContext)(A)||{},v=d||g||T(),b=p||v?.t.bind(v);return function({children:e,count:t,parent:n,i18nKey:r,context:o,tOptions:s={},values:a,defaults:l,components:u,ns:c,i18n:d,t:p,shouldUnescape:f,...h}){let g=d||T();if(!g)return m("You will need to pass in an i18next instance by using i18nextReactModule"),e;let y=p||g.t.bind(g)||(e=>e),v={...O(),...g.options?.react},b=c||y.ns||g.options?.defaultNS;b=_(b)?[b]:b||["translation"];let w=L(e,v),S=l||w||v.transEmptyNodeValue||r,{hashTransKey:x}=v,E=r||(x?x(w||S):w||S);g.options?.interpolation?.defaultVariables&&(a=a&&Object.keys(a).length>0?{...a,...g.options.interpolation.defaultVariables}:{...g.options.interpolation.defaultVariables});let k=a||void 0!==t||!e?s.interpolation:{interpolation:{...s.interpolation,prefix:"#$?",suffix:"?$#"}},C={...s,context:o||s.context,count:t,...a,...k,defaultValue:S,ns:b},R=E?y(E,C):S;u&&Object.keys(u).forEach(e=>{let t=u[e];"function"==typeof t.type||!t.props||!t.props.children||0>R.indexOf(`${e}/>`)&&0>R.indexOf(`${e} />`)||(u[e]=(0,i.createElement)(function(){return(0,i.createElement)(i.Fragment,null,t)}))});let M=N(u||e,R,g,v,C,f),I=n??v.defaultTransParent;return I?(0,i.createElement)(I,h,M):M}({children:e,count:t,parent:n,i18nKey:r,context:o,tOptions:s,values:a,defaults:l,components:u,ns:c||b?.ns||y||v?.options?.defaultNS,i18n:v,t:p,shouldUne
11scape:f,...h})}let $=(e,t)=>{let n=(0,i.useRef)();return(0,i.useEffect)(()=>{n.current=t?n.current:e},[e,t]),n.current},F=(e,t,n,r)=>e.getFixedT(t,n,r),U=(e,t,n,r)=>(0,i.useCallback)(F(e,t,n,r),[e,t,n,r]),B=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:o}=(0,i.useContext)(A)||{},s=n||r||T();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new j),!s){m("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>_(t)?t:w(t)&&_(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react?.wait&&m("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let a={...O(),...s.options.react,...t},{useSuspense:l,keyPrefix:u}=a,c=e||o||s.options?.defaultNS;c=_(c)?[c]:c||["translation"],s.reportNamespaces.addUsedNamespaces?.(c);let d=(s.isInitialized||s.initializedStoreOnce)&&c.every(e=>b(e,s,a)),p=U(s,t.lng||null,"fallback"===a.nsMode?c:c[0],u),f=()=>p,h=()=>F(s,t.lng||null,"fallback"===a.nsMode?c:c[0],u),[g,S]=(0,i.useState)(f),x=c.join();t.lng&&(x=`${t.lng}${x}`);let E=$(x),k=(0,i.useRef)(!0);(0,i.useEffect)(()=>{let{bindI18n:e,bindI18nStore:n}=a;k.current=!0,d||l||(t.lng?v(s,t.lng,c,()=>{k.current&&S(h)}):y(s,c,()=>{k.current&&S(h)})),d&&E&&E!==x&&k.current&&S(h);let r=()=>{k.current&&S(h)};return e&&s?.on(e,r),n&&s?.store.on(n,r),()=>{k.current=!1,s&&e?.split(" ").forEach(e=>s.off(e,r)),n&&s&&n.split(" ").forEach(e=>s.store.off(e,r))}},[s,x]),(0,i.useEffect)(()=>{k.current&&d&&S(f)},[s,u,d]);let C=[g,s,d];if(C.t=g,C.i18n=s,C.ready=d,d||!d&&!l)return C;throw new Promise(e=>{t.lng?v(s,t.lng,c,()=>e()):y(s,c,()=>e())})};function z({i18n:e,defaultNS:t,children:n}){let r=(0,i.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,i.createElement)(A.Provider,{value:r},n)}var W=n(47907);function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t,n){var r;return(r=function(e,t){if("object"!=H(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=H(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==H(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J=n(10063),V=n.n(J);function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t){if(e){if("string"==typeof e)return q(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,t)||X(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Y={defaultNS:"common",errorStackTraceLimit:0,i18n:{defaultLocale:"en",locales:["en"]},get initImmediate(){return"undefined"!=typeof window},interpolation:{escapeValue:!1},load:"currentOnly",localeExtension:"json",localePath:"./public/locales",localeStructure:"{{lng}}/{{ns}}",react:{useSuspense:!1},reloadOnPrerender:!1,serializeConfig:!0,use:[]},Q="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,ee=["i18n"],et=["i18n"];function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
11t%2?en(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ei=["backend","detection"],eo=function(e){if("string"!=typeof(null==e?void 0:e.lng))throw Error("config.lng was not passed into createConfig");var t,n,r,i=e.i18n,o=Z(e,ee),s=Y.i18n,a=er(er(er(er({},Z(Y,et)),o),s),i),l=a.defaultNS,u=a.lng,c=a.localeExtension,d=a.localePath,p=a.nonExplicitSupportedLngs,f=a.locales.filter(function(e){return"default"!==e});if("cimode"===u)return a;if(void 0===a.fallbackLng&&(a.fallbackLng=a.defaultLocale,"default"===a.fallbackLng)){var h=K(f,1);a.fallbackLng=h[0]}var m=null==e||null===(t=e.interpolation)||void 0===t?void 0:t.prefix,g=null==e||null===(n=e.interpolation)||void 0===n?void 0:n.suffix,y=null!=m?m:"{{",v=null!=g?g:"}}";"string"!=typeof(null==e?void 0:e.localeStructure)&&(m||g)&&(a.localeStructure="".concat(y,"lng").concat(v,"/").concat(y,"ns").concat(v));var b=a.fallbackLng,_=a.localeStructure;if(p){var w=function(e,t){var n=K(t.split("-"),1)[0];return e[t]=[n],e};if("string"==typeof b)a.fallbackLng=a.locales.filter(function(e){return e.includes("-")}).reduce(w,{default:[b]});else if(Array.isArray(b))a.fallbackLng=a.locales.filter(function(e){return e.includes("-")}).reduce(w,{default:b});else if("object"===H(b))a.fallbackLng=Object.entries(a.fallbackLng).reduce(function(e,t){var n=K(t,2),r=n[0],i=n[1];return e[r]=r.includes("-")?Array.from(new Set([r.split("-")[0]].concat(function(e){if(Array.isArray(e))return q(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||X(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):i,e},b);else if("function"==typeof b)throw Error("If nonExplicitSupportedLngs is true, no functions are allowed for fallbackLng")}return(null==e||null===(r=e.use)||void 0===r?void 0:r.some(function(e){return"backend"===e.type}))||("string"==typeof d?a.backend={addPath:"".concat(d,"/").concat(_,".missing.").concat(c),loadPath:"".concat(d,"/").concat(_,".").concat(c)}:"function"!=typeof d||(a.backend={addPath:function(e,t){return d(e,t,!0)},loadPath:function(e,t){return d(e,t,!1)}})),"string"==typeof a.ns||Array.isArray(a.ns)||(a.ns=[l]),ei.forEach(function(t){e[t]&&(a[t]=er(er({},a[t]),e[t]))}),a},es=n(44115),ea=function(e){void 0===e.ns&&(e.ns=[]);var t,n,r=es.ZP.createInstance(e);return r.isInitialized?t=Promise.resolve(es.ZP.t):(null==e||null===(n=e.use)||void 0===n||n.forEach(function(e){return r.use(e)}),"function"==typeof e.onPreInitI18next&&e.onPreInitI18next(r),t=r.init(e)),{i18n:r,initPromise:t}},el=i.createElement;function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ed=null,ep=function(e,t){if(t&&e.isInitialized)for(var n=0,r=Object.keys(t);n<r.length;n++)for(var i=r[n],o=0,s=Object.keys(t[i]);o<s.length;o++){var a,l=s[o];null!=e&&null!==(a=e.store)&&void 0!==a&&a.data&&e.store.data[i]&&e.store.data[i][l]||e.addResourceBundle(i,l,t[i][l],!0,!0)}},ef=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return V()(function(n){var r,o,s=(n.pageProps||{})._nextI18Next,a=null!==(r=null==s?void 0:s.initialLocale)&&void 0!==r?r:null==n||null===(o=n.router)||void 0===o?void 0:o.locale,l=null==s?void 0:s.ns,u=(0,i.useRef)(null),c=(0,i.useMemo)(function(){if(!s&&!t)return null;var e,n=null!=t?t:null==s?void 0:s.userConfig;if(!n)throw Error("appWithTranslation was called without a next-i18next config");if(!(null!=n&&n.i18n))throw Error("appWithTranslation was called without config.i18n");if(!(null!=n&&null!==(e=n.i18n)&&void 0!==e&&e.defaultLocale))throw Error("config.i18n does not include a defaultLocale property");var r=(s||{}).initialI18nStore,i=null!=t&&t.resources?t.resources:r;a||(a=n.i18n.defaultLocale);var o=u.current;return o?ep(o,i):(ep(o=ea(ec(ec(ec({},eo(ec(ec({},n),{},{lng:a}))),{},{lng:a},l&&{ns:l}),{},{resources:i})).i18n,i),ed=o,u.current=o),o},[s,a,l]);return Q(function(){c&&a&&c.changeLanguage(a)},[c,a]),null!==c?el(z,{i18n:c},el(e,n)):el(e,(0,W.Z)({key:a},n))},e)}},52461:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(96329)},29727:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(38666)}])},38666:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eO}});var r=n(31549),i=n(74266),o=n.n(i);n(59618),n(68306),n(70872),n(57844);var s=n(6427),a=n(94054),l=n.n(a),u=n(59361),c=n(44194),d=n(56321),p=n(74810),f=n(16779),h=n(52601),m=n(72664),g=n(54513),y=n(70322),v=n(34816),b=n(16537),_=n(46638),w=n(1504),S=n(70422),x=n(22069),E="ToastProvider",[k,O,T]=(0,h.B)("Toast"),[C,R]=(0,m.b)("Toast",[T]),[M,I]=C(E),P=e=>{let{__scopeToast:t,label:n="Notification",duration:i=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:a}=e,[l,u]=c.useState(null),[d,p]=c.useState(0),f=c.useRef(!1),h=c.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${E}\`. Expected non-empty \`string\`.`),(0,r.jsx)(k.Provider,{scope:t,children:(0,r.jsx)(M,{scope:t,label:n,duration:i,swipeDirection:o,swipeThreshold:s,toastCount:d,viewport:l,onViewportChange:u,onToastAdd:c.useCallback(()=>p(e=>e+1),[]),onToastRemove:c.useCallback(()=>p(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:a})})};P.displayName=E;var L="ToastViewport",N=["F8"],A="toast.viewportPause",j="toast.viewportResume",D=c.forwardRef((e,t)=>
11{let{__scopeToast:n,hotkey:i=N,label:o="Notifications ({hotkey})",...s}=e,a=I(L,n),l=O(n),u=c.useRef(null),d=c.useRef(null),p=c.useRef(null),h=c.useRef(null),m=(0,f.e)(t,h,a.onViewportChange),y=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=a.toastCount>0;c.useEffect(()=>{let e=e=>{i.every(t=>e[t]||e.code===t)&&h.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),c.useEffect(()=>{let e=u.current,t=h.current;if(v&&e&&t){let n=()=>{if(!a.isClosePausedRef.current){let e=new CustomEvent(A);t.dispatchEvent(e),a.isClosePausedRef.current=!0}},r=()=>{if(a.isClosePausedRef.current){let e=new CustomEvent(j);t.dispatchEvent(e),a.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},o=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",i),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",o),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",i),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",o),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[v,a.isClosePausedRef]);let _=c.useCallback(({tabbingDirection:e})=>{let t=l().map(t=>{let n=t.ref.current,r=[n,...function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(n)];return"forwards"===e?r:r.reverse()});return("forwards"===e?t.reverse():t).flat()},[l]);return c.useEffect(()=>{let e=h.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){d.current?.focus();return}let i=_({tabbingDirection:r?"backwards":"forwards"}),o=i.findIndex(e=>e===n);et(i.slice(o+1))?t.preventDefault():r?d.current?.focus():p.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[l,_]),(0,r.jsxs)(g.I0,{ref:u,role:"region","aria-label":o.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&(0,r.jsx)(F,{ref:d,onFocusFromOutsideViewport:()=>{et(_({tabbingDirection:"forwards"}))}}),(0,r.jsx)(k.Slot,{scope:n,children:(0,r.jsx)(b.WV.ol,{tabIndex:-1,...s,ref:m})}),v&&(0,r.jsx)(F,{ref:p,onFocusFromOutsideViewport:()=>{et(_({tabbingDirection:"backwards"}))}})]})});D.displayName=L;var $="ToastFocusProxy",F=c.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:i,...o}=e,s=I($,n);return(0,r.jsx)(x.T,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{let t=e.relatedTarget;s.viewport?.contains(t)||i()}})});F.displayName=$;var U="Toast",B=c.forwardRef((e,t)=>{let{forceMount:n,open:i,defaultOpen:o,onOpenChange:s,...a}=e,[l=!0,u]=(0,w.T)({prop:i,defaultProp:o,onChange:s});return(0,r.jsx)(v.z,{present:n||l,children:(0,r.jsx)(H,{open:l,...a,ref:t,onClose:()=>u(!1),onPause:(0,_.W)(e.onPause),onResume:(0,_.W)(e.onResume),onSwipeStart:(0,p.M)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,p.M)(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)}
11),onSwipeCancel:(0,p.M)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,p.M)(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),u(!1)})})})});B.displayName=U;var[z,W]=C(U,{onClose(){}}),H=c.forwardRef((e,t)=>{let{__scopeToast:n,type:i="foreground",duration:o,open:s,onClose:a,onEscapeKeyDown:l,onPause:u,onResume:h,onSwipeStart:m,onSwipeMove:y,onSwipeCancel:v,onSwipeEnd:w,...S}=e,x=I(U,n),[E,O]=c.useState(null),T=(0,f.e)(t,e=>O(e)),C=c.useRef(null),R=c.useRef(null),M=o||x.duration,P=c.useRef(0),L=c.useRef(M),N=c.useRef(0),{onToastAdd:D,onToastRemove:$}=x,F=(0,_.W)(()=>{E?.contains(document.activeElement)&&x.viewport?.focus(),a()}),B=c.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(N.current),P.current=new Date().getTime(),N.current=window.setTimeout(F,e))},[F]);c.useEffect(()=>{let e=x.viewport;if(e){let t=()=>{B(L.current),h?.()},n=()=>{let e=new Date().getTime()-P.current;L.current=L.current-e,window.clearTimeout(N.current),u?.()};return e.addEventListener(A,n),e.addEventListener(j,t),()=>{e.removeEventListener(A,n),e.removeEventListener(j,t)}}},[x.viewport,M,u,h,B]),c.useEffect(()=>{s&&!x.isClosePausedRef.current&&B(M)},[s,M,x.isClosePausedRef,B]),c.useEffect(()=>(D(),()=>$()),[D,$]);let W=c.useMemo(()=>E?function e(t){let n=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&n.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let r=t.ariaHidden||t.hidden||"none"===t.style.display,i=""===t.dataset.radixToastAnnounceExclude;if(!r){if(i){let e=t.dataset.radixToastAnnounceAlt;e&&n.push(e)}else n.push(...e(t))}}}),n}(E):null,[E]);return x.viewport?(0,r.jsxs)(r.Fragment,{children:[W&&(0,r.jsx)(G,{__scopeToast:n,role:"status","aria-live":"foreground"===i?"assertive":"polite","aria-atomic":!0,children:W}),(0,r.jsx)(z,{scope:n,onClose:F,children:d.createPortal((0,r.jsx)(k.ItemSlot,{scope:n,children:(0,r.jsx)(g.fC,{asChild:!0,onEscapeKeyDown:(0,p.M)(l,()=>{x.isFocusedToastEscapeKeyDownRef.current||F(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,r.jsx)(b.WV.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":x.swipeDirection,...S,ref:T,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,p.M)(e.onKeyDown,e=>{"Escape"!==e.key||(l?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:(0,p.M)(e.onPointerDown,e=>{0===e.button&&(C.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,p.M)(e.onPointerMove,e=>{if(!C.current)return;let t=e.clientX-C.current.x,n=e.clientY-C.current.y,r=!!R.current,i=["left","right"].includes(x.swipeDirection),o=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,s=i?o(0,t):0,a=i?0:o(0,n),l="touch"===e.pointerType?10:2,u={x:s,y:a},c={originalEvent:e,delta:u};r?(R.current=u,Q("toast.swipeMove",y,c,{discrete:!1})):ee(u,x.swipeDirection,l)?(R.current=u,Q("toast.swipeStart",m,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(C.current=null)}),onPointerUp:(0,p.M)(e.onPointerUp,e=>{let t=R.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),R.current=null,C.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};ee(t,x.swipeDirection,x.swipeThreshold)?Q("toast.swipeEnd",w,r,{discrete:!0}):Q("toast.swipeCancel",v,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),G=e=>{let{__scopeToast:t,children:n,...i}=e,o=I(U,t),[s,a]=c.useState(!1),[l,u]=c.useState(!1);return function(e=()=>{}){let t=(0,_.W)(e);(0,S.b)(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>a(!0)),c.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,r.jsx)(y.h,{asChild:!0,children:(0,r.jsx)(x.T,{...i,children:s&&(0,r.jsxs)(r.Fragment,{children:[o.label," ",n]})})})},J=c.forwardRef((e,t)=>
11{let{__scopeToast:n,...i}=e;return(0,r.jsx)(b.WV.div,{...i,ref:t})});J.displayName="ToastTitle";var V=c.forwardRef((e,t)=>{let{__scopeToast:n,...i}=e;return(0,r.jsx)(b.WV.div,{...i,ref:t})});V.displayName="ToastDescription";var q="ToastAction",X=c.forwardRef((e,t)=>{let{altText:n,...i}=e;return n.trim()?(0,r.jsx)(Y,{altText:n,asChild:!0,children:(0,r.jsx)(Z,{...i,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${q}\`. Expected non-empty \`string\`.`),null)});X.displayName=q;var K="ToastClose",Z=c.forwardRef((e,t)=>{let{__scopeToast:n,...i}=e,o=W(K,n);return(0,r.jsx)(Y,{asChild:!0,children:(0,r.jsx)(b.WV.button,{type:"button",...i,ref:t,onClick:(0,p.M)(e.onClick,o.onClose)})})});Z.displayName=K;var Y=c.forwardRef((e,t)=>{let{__scopeToast:n,altText:i,...o}=e;return(0,r.jsx)(b.WV.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...o,ref:t})});function Q(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,b.jH)(i,o):i.dispatchEvent(o)}var ee=(e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return"left"===t||"right"===t?o&&r>n:!o&&i>n};function et(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var en=n(57291),er=n(25498),ei=n(83694);let eo=c.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(D,{ref:t,className:(0,ei.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]","sm:top-20 sm:left-1/2 sm:right-[unset] sm:-translate-x-1/2 sm:bottom-[unset]",n),...i})});eo.displayName=D.displayName;let es=(0,en.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground",light:"animalia-light bg-white p-4 space-x-3 justify-normal border-2 border-green rounded data-[state=open]:sm:slide-in-from-top-full data-[state=closed]:slide-out-to-right-0 data-[state=closed]:fade-out",error:"animalia-error bg-red-background border-red text-red"}},defaultVariants:{variant:"default"}}),ea=c.forwardRef((e,t)=>{let{className:n,variant:i,...o}=e;return(0,r.jsx)(B,{ref:t,className:(0,ei.cn)(es({variant:i}),n),...o})});ea.displayName=B.displayName,c.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(X,{ref:t,className:(0,ei.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",n),...i})}).displayName=X.displayName;let el=c.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(Z,{ref:t,className:(0,ei.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600","group-[.animalia-light]:text-foreground group-[.animalia-light]:opacity-100",n),"toast-close":"",...i,children:(0,r.jsx)(er.Z,{className:"h-4 w-4"})})});el.displayName=Z.displayName;let eu=c.forwardRef((e,t)=>
11{let{className:n,...i}=e;return(0,r.jsx)(J,{ref:t,className:(0,ei.cn)("text-sm font-semibold","group-[.animalia-light]:text-base group-[.animalia-light]:text-success group-[.animalia-light]:font-bold",n),...i})});eu.displayName=J.displayName;let ec=c.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(V,{ref:t,className:(0,ei.cn)("text-sm opacity-90","group-[.animalia-light]:text-secondary-dark group-[.animalia-light]:opacity-100",n),...i})});ec.displayName=V.displayName;var ed=n(78860);function ep(){let{toasts:e}=(0,ed.pm)();return(0,r.jsxs)(P,{children:[e.map(function(e){let{id:t,title:n,description:i,action:o,icon:s,...a}=e;return(0,r.jsxs)(ea,{...a,children:[s,(0,r.jsxs)("div",{className:"grid gap-1",children:[n&&(0,r.jsx)(eu,{children:n}),i&&(0,r.jsx)(ec,{children:i})]}),o,(0,r.jsx)(el,{})]},t)}),(0,r.jsx)(eo,{})]})}var ef=n(75112),eh=n(21725),em=n(94690),eg=n.n(em),ey=n(13518),ev=n(52461),eb=()=>{window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)})};function e_(){return false}function ew(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function eS(e){(0,c.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let t=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(t.current)e.route&&t.current(e.route);else{let n=function(e={}){var t;if(!("undefined"!=typeof window)||null===e.route)return null;eb();let n=e.scriptSrc?e.scriptSrc:e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${n}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let r=document.createElement("script");return r.src=n,r.defer=!0,r.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),r.dataset.sdkv="1.2.0",e.sampleRate&&(r.dataset.sampleRate=e.sampleRate.toString()),e.route&&(r.dataset.route=e.route),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(r.dataset.dsn=e.dsn),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${n}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:e=>{r.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==ev&&void 0!==ev.env)return ev.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});n&&(t.current=n.setRoute)}},[e.route]),null}var ex=()=>{let e=(0,ey.useParams)(),t=(0,ey.useSearchParams)()||new URLSearchParams,n=(0,ey.usePathname)();return e?function(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=ew(r);e.test(n)&&(n=n.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=ew(r.join("/"));e.test(n)&&(n=n.replace(e,`/[...${t}]`))}return n}catch(t){return e}}(n,Object.keys(e).length?e:Object.fromEntries(t.entries())):null};function eE(e){let t=ex();return c.createElement(eS,{route:t,...e,framework:"next",basePath:function(){if(void 0!==ev&&void 0!==ev.env)return ev.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}function ek(e){return c.createElement(c.Suspense,{fallback:null},c.createElement(eE,{...e}))}var eO=(0,s.Jc)(e=>{let{Component:t,pageProps:n}=e,{i18n:i}=(0,s.$G)(),a=(0,ef.useRouter)(),d="";return(0,c.useEffect)(()=>{document.documentElement&&document.documentElement.classList.add("font-loaded"),d=a.asPath;let e=e=>{d!==e&&(d&&localStorage.setItem("previousURL",d),setTimeout(()=>{(0,eh.YT)({language:i.language,logged_in:!1})},500),d=e)};return a.events.on("routeChangeComplete",e),()=>{a.events.off("routeChangeComplete",e)}},[a.events,i.language]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l(),{children:[(0,r.jsx)("title",{children:"Animalia | Il est tout pour vous. On fait tout pour lui."},"title"),(0,r.jsx)("link",{rel:"preconnect",href:"https://www.googletagmanager.com"}),(0,r.jsx)("link",{rel:"dns-prefetch",href:"https://www.googletagmanager.com"})]}),(0,r.jsx)(eg(),{id:"gtm-init",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || [];\n function gtag() { dataLayer.push(arguments); }\n\n // Push page information to dataLayer before consent settings\n const page_referrer = document.referrer && !document.referrer.startsWith(window.location.origin)\n ? document.referrer\n : '';\n\n window.dataLayer.push({\n page_title: document.title || 'Animalia | Il est tout pour vous. On fait tout pour lui.',\n page_referrer: page_referrer,\n page_location: window.location.toString(),\n page_language: document.documentElement.lang || 'fr',\n logged_in: false\n });\n\n // Default storages to 'denied'.\n gtag('consent', 'default', {\n ad_storage: \"denied\",\n analytics_storage: \"denied\",\n ad_user_data: \"denied\",\n ad_personalization: \"denied\",\n functionality_storage: \"denied\",\n 'wait_for_update': 500\n });\n "}}),(0,r.jsx)(eg(),{id:"onetrust-consent",src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",strategy:"afterInteractive","data-domain-script":"59d39534-ce4f-4793-882e-23ef9907100d"}),(0,r.jsx)(eg(),{id:"onetrust-wrapper",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"function OptanonWrapper() { }"}}),(0,r.jsxs)("div",{className:o().className,children:[(0,r.jsx)(u.GoogleTagManager,{gtmId:"GTM-MZMG6BQ"}),(0,r.jsx)(t,{...n}),(0,r.jsx)(ep,{}),(0,r.jsx)(ek,{})]})]})})},21725:function(e,t,n){"use strict";n.d(t,{D5:function(){return o},Iu:function(){return a},Kf:function(){return s},YT:function(){return i}});var r=n(59361);let i=e=>{let{language:t,logged_in:n}=e,i=window.document.title,o=localStorage.getItem("previousURL")?window.location.origin+localStorage.getItem("previousURL"):document.referrer||window.location.origin,s=window.location.toString();(0,r.sendGTMEvent)({event:"page_view",page_title:i,page_referrer:o,page_location:s,page_language:t,logged_in:n})},o=e=>
11{let{name:t,step_id:n,franchise_value:i,agent_code:o,insurance_coverage:s,payment_type:a,type_of_pet:l,age_of_pet:u,premium:c,capi_event_id:d}=e;(0,r.sendGTMEvent)({event:t,step_id:n,franchise_value:i,agent_code:o,insurance_coverage:s,payment_type:a,type_of_pet:l,age_of_pet:u,premium:c,...d&&{capi_event_id:d}})},s=e=>{let{event:t,params:n}=e;(0,r.sendGTMEvent)({event:t,...n})},a=e=>{let{step_id:t,type_of_pet:n,premium:i}=e;(0,r.sendGTMEvent)({event:"assistance_purchase",step_id:t,type_of_pet:n,premium:i})}},78215:function(e,t,n){"use strict";let r,i,o,s,a,l,u,c,d,p,f,h,m,g,y,v,b,_,w;var S,x,E,k,O,T,C,R,M,I=n(97794),P=n(68391);function L(e,t,n=[t],r="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:P.J})),version:P.J}),e._metadata=i}var N=n(63952),A=n(45171),j=n(37652);let D=[];function $(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function F(e,t,n){if(n[t.name]){A.X&&j.kg.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===D.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),D.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}A.X&&j.kg.log(`Integration installed: ${t.name}`)}var U=n(9288),B=n(47702);function z(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(e){}return t}let W=[/^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. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],H=(e={})=>({name:"EventFilters",processEvent:(t,n,r)=>{var i,o;return((i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:W],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?(A.X&&j.kg.warn(`Event dropped due to being internal Sentry Error. 12Event: ${(0,U.jH)(t)}`),0):(o=i.ignoreErrors,!t.type&&o&&o.length&&z(t).some(e=>(0,B.U0)(e,o)))?(A.X&&j.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 13Event: ${(0,U.jH)(t)}`),0):!t.type&&t.exception?.values?.length&&!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)?(A.X&&j.kg.warn(`Event dropped due to not having an error message, error type or stacktrace. 14Event: ${(0,U.jH)(t)}`),0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&(0,B.U0)(n,t)}(t,i.ignoreTransactions)?!function(e,t){if(!t?.length)return!1;let n=J(e);return!!n&&(0,B.U0)(n,t)}(t,i.denyUrls)?function(e,t){if(!t?.length)return!0;let n=J(e);return!n||(0,B.U0)(n,t)}(t,i.allowUrls)||(A.X&&j.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option. 15Event: ${(0,U.jH)(t)}. 16Url: ${J(t)}`),0):(A.X&&j.kg.warn(`Event dropped due to being matched by \`denyUrls\` option. 17Event: ${(0,U.jH)(t)}. 18Url: ${J(t)}`),0):(A.X&&j.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 19Event: ${(0,U.jH)(t)}`),0))?t:null}}),G=(e={})=>({...H(e),name:"InboundFilters"});function J(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(t){return A.X&&j.kg.error(`Cannot extract url for event ${(0,U.jH)(e)}`),null}}var V=n(20741),q=n(5618);let X=new WeakMap,K=()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,q.HK)(this),n=X.has((0,V.s3)())&&void 0!==t?t:this;return r.apply(n,e)}}catch{}},setup(e){X.set(e,!0)}});var Z=n(36749);let Y=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&ee(e,t)&&Q(e,t))}(t,n)||function(e,t){let n=et(t),r=et(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&ee(e,t)&&Q(e,t))}(t,n)))return A.X&&j.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function Q(e,t){let n=(0,Z.Fr)(e),r=(0,Z.Fr)(t);
19if(!n&&!r)return!0;if(n&&!r||!n&&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 ee(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function et(e){return e.exception?.values&&e.exception.values[0]}var en=n(53867),er=n(26419);let ei=I.GLOBAL_OBJ;function eo(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var es=n(25964),ea=n(28506);let el=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function eu(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function ec(e){let t=el.exec(e);if(!t){(0,j.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i="",o="",s="",a=""]=t.slice(1),l="",u=a,c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return ed({host:o,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function ed(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}var ep=n(29541),ef=n(75671);function eh(e,t=[]){return[e,t]}function em(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function eg(e){let t=(0,ep.qA)(I.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let ey={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",otel_log:"log_item"};function ev(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function eb(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:eu(r)},...i&&{trace:(0,q.Jr)({...i})}}}var e_=n(49072),ew=n(25697),eS=n(12681);class ex extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}var eE=n(29306),ek=n(21926),eO=n(6922),eT=n(58205),eC=n(64781),eR=n(60545);let eM="Not capturing exception because it's already been captured.",eI="Discarded session because of missing or non-string release";class eP{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?ec(e):ed(e);if(t&&function(e){if(!er.X)return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(j.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(t&&isNaN(parseInt(t,10)))||(j.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(j.kg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(j.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e.dsn):A.X&&j.kg.warn("No DSN provided, client will not send events."),this._dsn){var t,n,r;let i=(t=this._dsn,n=e.tunnel,r=e._metadata?e._metadata.sdk:void 0,n||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${function(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()}(t,r)}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}}captureException(e,t,n){let r=(0,U.DM)();if((0,U.YO)(e))return A.X&&j.kg.log(eM),r;let i={event_id:r,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n))),i.event_id}captureMessage(e,t,n,r){let i={event_id:(0,U.DM)(),...n},o=(0,eE.Le)(e)?e:String(e),s=(0,eE.pt)(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(s.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){let r=(0,U.DM)();if(t?.originalException&&(0,U.YO)(t.originalException))return A.X&&j.kg.log(eM),r;let i={event_id:r,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,a=o.capturedSpanIsolationScope;return this._process(this._captureEvent(e,i,s||n,a)),i.event_id}captureSession(e){this.sendSession(e),(0,ew.CT)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
19return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,ek.WD)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}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]}addIntegration(e){let t=this._integrations[e.name];F(this,e,this._integrations),t||$(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var i;let o=ev(n),s=e.type&&"replay_event"!==e.type?e.type:"event";(i=n?.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let a=eb(e,o,r,t);return delete e.sdkProcessingMetadata,eh(a,[[{type:s},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=function(e,t){let[n,r]=e;return[n,[...r,t]]}(n,function(e){let t="string"==typeof e.data?eg(e.data):e.data;return[(0,q.Jr)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let{release:t,environment:n=es.J}=this._options;if("aggregates"in e){let r=e.attrs||{};if(!r.release&&!t){A.X&&j.kg.warn(eI);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){A.X&&j.kg.warn(eI);return}e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);let r=function(e,t,n,r){let i=ev(n);return eh({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:eu(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(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}`;A.X&&j.kg.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]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(A.X&&j.kg.error("Error while sending envelope:",e),e)):(A.X&&j.kg.error("Transport disabled"),(0,ek.WD)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let n={};return t.forEach(t=>{t&&F(e,t,n)}),n}(this,e),$(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,i=t.exception?.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t?.handled===!1){n=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,ew.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ek.cW(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o?.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,eC.R)(i,e,t,n,this,r).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:(0,V.XX)(n),...e.contexts};let r=(0,ea.CG)(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n=(0,V.nZ)(),r=(0,V.aF)()){return A.X&&eL(e)&&j.kg.log(`Captured error event \`${z(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{A.X&&(e instanceof ex&&"log"===e.logLevel?j.kg.log(e.message):j.kg.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:o}=i,s=eN(e),a=eL(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===o?void 0:(0,eT.o)(o);if(a&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error"),(0,ek.$2)(new ex(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));let d="replay_event"===l?"replay":l;return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),new ex("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,eE.J8)(e))return e.then(e=>{if(!(0,eE.PO)(e)&&null!==e)throw new ex(n);return e},e=>{throw new ex(`${t} rejected with ${e}`)});if(!(0,eE.PO)(e)&&null!==e)throw new ex(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=t,a=n;if(eL(a)&&i)return i(a,r);if(eN(a)){if(s){let e=s(function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:o,data:s,op:a}=e.contexts?.trace??{};return(0,q.Jr)({data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:s?.[eR.p6],exclusive_time:s?.[eR.JQ],measurements:e.measurements,is_segment:!0})}(a));if(e?a=(0,eO.T)(n,function(e){let t={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&&{[eR.p6]:e.profile_id},...e.exclusive_time&&{[eR.JQ]:e.exclusive_time}}}},measurements:e.measurements};return(0,q.Jr)(t)}(e)):(0,e_.R6)(),a.spans){let e=[];for(let t of a.spans){let n=s(t);n?e.push(n):((0,e_.R6)(),e.push(t))}a.spans=e}}if(o){if(a.spans){let e=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(a,r)}}return a}(0,i,e,t),u)}).then(i=>
19{if(null===i){if(this.recordDroppedEvent("before_send",d),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new ex(`${u} returned \`null\`, will not send event.`,"log")}let o=n.getSession()||r.getSession();if(a&&o&&this._updateSessionFromEvent(o,i),s){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 s&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(e instanceof ex)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new ex(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 20Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,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(){var e;A.X&&j.kg.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){A.X&&j.kg.log("No outcomes to send");return}if(!this._dsn){A.X&&j.kg.log("No dsn provided, will not send outcomes");return}A.X&&j.kg.log("Sending outcomes:",t);let n=eh((e=this._options.tunnel&&eu(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,eS.yW)(),discarded_events:t}]]);this.sendEnvelope(n)}}function eL(e){return void 0===e.type}function eN(e){return"transaction"===e.type}function eA(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function ej(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function eD(e,t){let n=eF(e,t),r={type:function(e){let t=e?.name;return!t&&eB(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e?.message;return eB(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function e$(e,t){return{exception:{values:[eD(e,t)]}}}function eF(e,t){let n=t.stacktrace||t.stack||"",r=t&&eU.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,i)}catch(e){}return[]}let eU=/Minified React error #\d+;/i;function eB(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function ez(e,t,n,r,i){let o;if((0,eE.VW)(t)&&t.error)return e$(e,t.error);if((0,eE.TX)(t)||(0,eE.fm)(t)){if("stack"in t)o=e$(e,t);else{let i=t.name||((0,eE.TX)(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;o=eW(e,s,n,r),(0,U.Db)(o,s)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,eE.VZ)(t)?e$(e,t):((0,eE.PO)(t)||(0,eE.cO)(t)?o=function(e,t,n,r){let i=(0,V.s3)(),o=i?.getOptions().normalizeDepth,s=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:(0,ef.Qy)(t,o)};if(s)return{exception:{values:[eD(e,s)]},extra:a};let l={exception:{values:[{type:(0,eE.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,q.zf)(e),r=t?"promise rejection":"exception";if((0,eE.VW)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,eE.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:a};if(n){let t=eF(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i):(o=eW(e,t,n,r),(0,U.Db)(o,`${t}`,void 0)),(0,U.EG)(o,{synthetic:!0}),o)}function eW(e,t,n,r){let i={};if(r&&n){let r=eF(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,U.EG)(i,{synthetic:!0})}
20if((0,eE.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}let eH=I.GLOBAL_OBJ,eG=0;function eJ(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t){if("function"==typeof t)return t;return e}if((0,q.HK)(e))return e}catch(t){return e}let n=function(...n){try{let r=n.map(e=>eJ(e,t));return e.apply(this,r)}catch(e){throw eG++,setTimeout(()=>{eG--}),(0,V.$e)(r=>{r.addEventProcessor(e=>(t.mechanism&&((0,U.Db)(e,void 0,void 0),(0,U.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,N.Tb)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}(0,q.$Q)(n,e),(0,q.xp)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}class eV extends eP{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e};L(t,"browser",["browser"],eH.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&eH.document&&eH.document.addEventListener("visibilitychange",()=>{"hidden"===eH.document.visibilityState&&this._flushOutcomes()}),this._options.sendDefaultPii&&(this.on("postprocessEvent",eA),this.on("beforeSendSession",ej))}eventFromException(e,t){return function(e,t,n,r){let i=ez(e,t,n?.syntheticException||void 0,r);return(0,U.EG)(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),(0,ek.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let o=eW(e,t,r?.syntheticException||void 0,i);return o.level=n,r?.event_id&&(o.event_id=r.event_id),(0,ek.WD)(o)}(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)}}let eq={},eX={};function eK(e,t){eq[e]=eq[e]||[],eq[e].push(t)}function eZ(e,t){if(!eX[e]){eX[e]=!0;try{t()}catch(t){er.X&&j.kg.error(`Error while instrumenting ${e}`,t)}}}function eY(e,t){let n=e&&eq[e];if(n)for(let r of n)try{r(t)}catch(t){er.X&&j.kg.error(`Error while triggering instrumentation handler. 21Type: ${e} 22Name: ${(0,Z.$P)(r)} 23Error:`,t)}}let eQ=I.GLOBAL_OBJ;function e0(e){eK("dom",e),eZ("dom",e1)}function e1(){if(!eQ.document)return;let e=eY.bind(null,"dom"),t=e2(e,!0);eQ.document.addEventListener("click",t,!1),eQ.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=eQ[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,q.hl)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=e2(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}}),(0,q.hl)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)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]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function e2(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!r?.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;(0,q.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,q.xp)(r,"_sentryId",(0,U.DM)());let a="keypress"===n.type?"input":n.type;!function(e){if(e.type!==o)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch(e){}return!0}(n)&&(e({event:n,name:a,global:t}),o=n.type,s=r?r._sentryId:void 0),clearTimeout(i),i=eQ.setTimeout(()=>{s=void 0,o=void 0},1e3)}}let e3="__sentry_xhr_v3__";function e4(e){eK("xhr",e),eZ("xhr",e5)}function e5(){if(!eQ.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=1e3*(0,eS.ph)(),o=(0,eE.HD)(n[0])?n[0].toUpperCase():void 0,s=function(e){if((0,eE.HD)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!o||!s)return e.apply(t,n);t[e3]={method:o,url:s,request_headers:{}}
23,"POST"===o&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let a=()=>{let e=t[e3];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}eY("xhr",{endTimestamp:1e3*(0,eS.ph)(),startTimestamp:i,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,o=t[e3];return o&&(0,eE.HD)(r)&&(0,eE.HD)(i)&&(o.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[e3];return r&&(void 0!==n[0]&&(r.body=n[0]),eY("xhr",{startTimestamp:1e3*(0,eS.ph)(),xhr:t})),e.apply(t,n)}})}function e6(e){let t="history";eK(t,e),eZ(t,e8)}function e8(){eQ.addEventListener("popstate",()=>{let e=eQ.location.href,t=a;a=e,t!==e&&eY("history",{from:t,to:e})}),"history"in ei&&((0,q.hl)(eQ.history,"pushState",e),(0,q.hl)(eQ.history,"replaceState",e));function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=a,i=String(n);if(a=i,r===i)return e.apply(this,t);eY("history",{from:r,to:i})}return e.apply(this,t)}}}function e9(){"console"in I.GLOBAL_OBJ&&j.RU.forEach(function(e){e in I.GLOBAL_OBJ.console&&(0,q.hl)(I.GLOBAL_OBJ.console,e,function(t){return j.LD[e]=t,function(...t){eY("console",{args:t,level:e});let n=j.LD[e];n?.apply(I.GLOBAL_OBJ.console,t)}})})}function e7(e,t){let n="fetch";eK(n,e),eZ(n,()=>te(void 0,t))}function te(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in ei))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(eo(ei.fetch))return!0;let e=!1,t=ei.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=eo(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){er.X&&j.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,q.hl)(I.GLOBAL_OBJ,"fetch",function(t){return function(...n){let r=Error(),{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:ti(t),method:tr(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:ti(t),method:tr(t,"method")?String(t.method).toUpperCase():"GET"}}(n),s={args:n,fetchData:{method:i,url:o},startTimestamp:1e3*(0,eS.ph)(),virtualError:r};return e||eY("fetch",{...s}),t.apply(I.GLOBAL_OBJ,n).then(async t=>(e?e(t):eY("fetch",{...s,endTimestamp:1e3*(0,eS.ph)(),response:t}),t),e=>{throw eY("fetch",{...s,endTimestamp:1e3*(0,eS.ph)(),error:e}),(0,eE.VZ)(e)&&void 0===e.stack&&(e.stack=r.stack,(0,q.xp)(e,"framesToPop",1)),e})}})}async function tt(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),o=!0;for(;o;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),o=!1)}catch(e){o=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function tn(e){let t;try{t=e.clone()}catch{return}tt(t,()=>{eY("fetch-body-resolved",{endTimestamp:1e3*(0,eS.ph)(),response:e})})}function tr(e,t){return!!e&&"object"==typeof e&&!!e[t]}function ti(e){return"string"==typeof e?e:e?tr(e,"url")?e.url:e.toString?e.toString():"":""}var to=n(88780);function ts(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function ta(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 tl(e){return e.split(/[?#]/,1)[0]}let tu=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){let t="console";eK(t,e),eZ(t,e9)}(function(t){var n;if((0,V.s3)()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(n=t.level)?"warning":["fatal","error","warning","log","info","debug"].includes(n)?n:"log",message:(0,B.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,B.nK)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}(0,to.n)(r,{input:t.args,level:t.level})}),t.dom&&e0((n=t.dom,function(t){let r,i;if((0,V.s3)()!==e)return;let o="object"==typeof n?n.serializeAttribute:void 0,s="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;s&&s>1024&&(s=1024),"string"==typeof o&&(o=[o]);try{let e=t.event,n=e&&e.target?e.target:e;r=(0,en.Rt)(n,{keyAttrs:o,maxStringLength:s}),i=(0,en.iY)(n)}catch(e){r="<unknown>"}if(0===r.length)return;let a={category:`ui.${t.name}`,message:r};
23i&&(a.data={"ui.component_name":i}),(0,to.n)(a,{event:t.event,name:t.name,global:t.global})})),t.xhr&&e4(function(t){if((0,V.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[e3];if(!n||!r||!i)return;let{method:o,url:s,status_code:a,body:l}=i,u={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r},c={category:"xhr",data:{method:o,url:s,status_code:a},type:"http",level:ts(a)};e.emit("beforeOutgoingRequestBreadcrumb",c,u),(0,to.n)(c,u)}),t.fetch&&e7(function(t){if((0,V.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.fetchData.method,t.fetchData.url,t.error){let i=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},s={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,o),(0,to.n)(s,o)}else{let i=t.response,o={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size,i?.status;let s={input:t.args,response:i,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:o,type:"http",level:ts(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,s),(0,to.n)(a,s)}}}),t.history&&e6(function(t){if((0,V.s3)()!==e)return;let n=t.from,r=t.to,i=ta(eH.location.href),o=n?ta(n):void 0,s=ta(r);o?.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,to.n)({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on("beforeSendEvent",function(t){(0,V.s3)()===e&&(0,to.n)({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,U.jH)(t)},{event:t})})}}},tc=["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"],td=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,q.hl)(eH,"setTimeout",tp),t.setInterval&&(0,q.hl)(eH,"setInterval",tp),t.requestAnimationFrame&&(0,q.hl)(eH,"requestAnimationFrame",tf),t.XMLHttpRequest&&"XMLHttpRequest"in eH&&(0,q.hl)(XMLHttpRequest.prototype,"send",th);let e=t.eventTarget;e&&(Array.isArray(e)?e:tc).forEach(tm)}}};function tp(e){return function(...t){let n=t[0];return t[0]=eJ(n,{mechanism:{data:{function:(0,Z.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function tf(e){return function(t){return e.apply(this,[eJ(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Z.$P)(e)},handled:!1,type:"instrument"}})])}}function th(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,q.hl)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,Z.$P)(t)},handled:!1,type:"instrument"}},r=(0,q.HK)(t);return r&&(n.mechanism.data.handler=(0,Z.$P)(r)),eJ(t,n)})}),e.apply(this,t)}}function tm(e){let t=eH[e]?.prototype;t?.hasOwnProperty?.("addEventListener")&&((0,q.hl)(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=eJ(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Z.$P)(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,eJ(r,{mechanism:{data:{function:"addEventListener",handler:(0,Z.$P)(r),target:e},handled:!1,type:"instrument"}}),i])}}),(0,q.hl)(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}let tg=()=>({name:"BrowserSession",setupOnce(){void 0!==eH.document&&((0,N.yj)({ignoreDuration:!0}),(0,N.cg)(),e6(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,N.yj)({ignoreDuration:!0}),(0,N.cg)())}))}}),ty=null;function tv(e){let t="error";eK(t,e),eZ(t,tb)}function tb(){ty=I.GLOBAL_OBJ.onerror,I.GLOBAL_OBJ.onerror=function(e,t,n,r,i){return eY("error",{column:r,error:i,line:n,msg:e,url:t}),!!ty&&ty.apply(this,arguments)},I.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let t_=null;function tw(e){let t="unhandledrejection";eK(t,e),eZ(t,tS)}function tS(){t_=I.GLOBAL_OBJ.onunhandledrejection,I.GLOBAL_OBJ.onunhandledrejection=function(e){return eY("unhandledrejection",e),!t_||t_.apply(this,arguments)},I.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let tx=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&tv(t=>{let{stackParser:n,attachStacktrace:r}=tE();if((0,V.s3)()!==e||eG>0)return;let{msg:i,url:o,line:s,column:a,error:l}=t,u=function(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],u=(0,eE.HD)(t)&&t.length>0?t:(0,en.l4)();return 0===l.length&&l.push({colno:r,filename:u,function:Z.Fi,in_app:!0,lineno:n}),e}(ez(n,l||i,void 0,r,!1),o,s,a);u.level="error",(0,N.eN)(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}),t.onunhandledrejection&&tw(t=>{let{stackParser:n,attachStacktrace:r}=tE();if((0,V.s3)()!==e||eG>0)return;let i=function(e){if((0,eE.pt)(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}(t),o=(0,eE.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ez(n,i,void 0,r,!0);o.level="error",(0,N.eN)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}}};function tE(){let e=(0,V.s3)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let tk=()=>({name:"HttpContext",preprocessEvent(e){if(!eH.navigator&&!eH.location&&!eH.document)return;let t=e.request?.url||(0,en.l4)(),{referrer:n}=eH.document||{},{userAgent:r}=eH.navigator||{},i={...e.request?.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});function tO(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0}
23,exception_id:t}}function tT(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let tC=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){let o=i.getOptions();!function(e,t,n=250,r,i,o,s){if(!o.exception?.values||!s||!(0,eE.V9)(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=(function e(t,n,r,i,o,s,a,l){if(s.length>=r+1)return s;let u=[...s];if((0,eE.V9)(i[o],Error)){tO(a,l);let s=t(n,i[o]),c=u.length;tT(s,o,c,l),u=e(t,n,r,i[o],o,[s,...u],s,c)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if((0,eE.V9)(i,Error)){tO(a,l);let c=t(n,i),d=u.length;tT(c,`errors[${s}]`,d,l),u=e(t,n,r,i,o,[c,...u],c,d)}}),u})(e,t,i,s.originalException,r,o.exception.values,a,0).map(e=>(e.value&&(e.value=(0,B.$G)(e.value,n)),e)))}(eD,o.stackParser,o.maxValueLength,n,t,e,r)}}};function tR(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?Z.Fi:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let tM=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tI=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tP=/\((\S*)(?::(\d+))(?::(\d+))\)/,tL=[30,e=>{let t=tM.exec(e);if(t){let[,e,n,r]=t;return tR(e,Z.Fi,+n,+r)}let n=tI.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=tP.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=t$(n[1]||Z.Fi,n[2]);return tR(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],tN=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tA=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tj=[50,e=>{let t=tN.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tA.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]||Z.Fi;return[n,e]=t$(n,e),tR(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],tD=(0,Z.pE)(tL,tj),t$=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Z.Fi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tF={};function tU(e){let t=tF[e];if(t)return t;let n=eQ[e];if(eo(n))return tF[e]=n.bind(eQ);let r=eQ.document;if(r&&"function"==typeof r.createElement)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(e){}return n?tF[e]=n.bind(eQ):n}function tB(...e){return tU("setTimeout")(...e)}function tz(e,t,n=Date.now()){return(e[t]||e.all||0)>n}function tW(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},o=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n,,,o]=e.split(":",5),s=parseInt(t,10),a=(isNaN(s)?60:s)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=r+a):i[e]=r+a;else i.all=r+a}else s?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(i.all=r+6e4);return i}function tH(e,t=tU("fetch")){let n=0,r=0;return function(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,ek.$2)(new ex("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new ek.cW((n,r)=>{let i=t.length;if(!i)return n(!0);let o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,ek.WD)(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||64)){let r={};return{send:function(i){let o=[];if(em(i,(t,n)=>{let i=ey[n];tz(r,i)?e.recordDroppedEvent("ratelimit_backoff",i):o.push(t)}),0===o.length)return(0,ek.WD)({});let s=eh(i[0],o),a=t=>{em(s,(n,r)=>{e.recordDroppedEvent(t,ey[r])})};return n.add(()=>t({body:function(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[eg(r),e]:r.push("string"==typeof e?eg(e):e)}for(let e of n){let[t,n]=e;if(i(` 24${JSON.stringify(t)} 25`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,ef.Fv)(n))}i(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>
25e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&A.X&&j.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=tW(r,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof ex)return A.X&&j.kg.error("Skipped sending event because buffer is full."),a("queue_overflow"),(0,ek.WD)({});throw e})},flush:e=>n.drain(e)}}(e,function(i){let o=i.body.length;n+=o,r++;let s={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return tF.fetch=void 0,(0,ek.$2)("No fetch implementation available");try{return t(e.url,s).then(e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return tF.fetch=void 0,n-=o,r--,(0,ek.$2)(e)}})}function tG(e){return[G(),K(),td(),tu(),tx(),tC(),Y(),tk(),tg()]}var tJ=n(44194),tV=n(52461);function tq(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[eR.E1],i=n[eR.Wb];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}let tX=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",tK=(e,t,n,r)=>{let i,o;return s=>{t.value>=0&&(s||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=tX(t.value,n),e(t))}},tZ=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,tY=(e=!0)=>{let t=eQ.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},tQ=()=>{let e=tY();return e?.activationStart||0},t0=(e,t)=>{let n=tY(),r="navigate";return n&&(eQ.document?.prerendering||tQ()>0?r="prerender":eQ.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:tZ(),navigationType:r}},t1=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},t2=e=>{let t=t=>{("pagehide"===t.type||eQ.document?.visibilityState==="hidden")&&e(t)};eQ.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},t3=e=>{let t=!1;return()=>{t||(e(),t=!0)}},t4=-1,t5=()=>"hidden"!==eQ.document.visibilityState||eQ.document.prerendering?1/0:0,t6=e=>{"hidden"===eQ.document.visibilityState&&t4>-1&&(t4="visibilitychange"===e.type?e.timeStamp:0,t9())},t8=()=>{addEventListener("visibilitychange",t6,!0),addEventListener("prerenderingchange",t6,!0)},t9=()=>{removeEventListener("visibilitychange",t6,!0),removeEventListener("prerenderingchange",t6,!0)},t7=()=>(eQ.document&&t4<0&&(t4=t5(),t8()),{get firstHiddenTime(){return t4}}),ne=e=>{eQ.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},nt=[1800,3e3],nn=(e,t={})=>{ne(()=>{let n;let r=t7(),i=t0("FCP"),o=t1("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-tQ(),0),i.entries.push(e),n(!0)))})});o&&(n=tK(e,i,nt,t.reportAllChanges))})},nr=[.1,.25],ni=(e,t={})=>{nn(t3(()=>{let n;let r=t0("CLS",0),i=0,o=[],s=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=o[0],n=o[o.length-1];i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e])}}),i>r.value&&(r.value=i,r.entries=o,n())},a=t1("layout-shift",s);a&&(n=tK(e,r,nr,t.reportAllChanges),t2(()=>{s(a.takeRecords()),n(!0)}),setTimeout(n,0))}))},no=[100,300],ns=(e,t={})=>{ne(()=>{let n;let r=t7(),i=t0("FID"),o=e=>{e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},s=e=>{e.forEach(o)},a=t1("first-input",s);n=tK(e,i,no,t.reportAllChanges),a&&t2(t3(()=>{s(a.takeRecords()),a.disconnect()}))})},na=0,nl=1/0,nu=0,nc=e=>{e.forEach(e=>{e.interactionId&&(nl=Math.min(nl,e.interactionId),na=(nu=Math.max(nu,e.interactionId))?(nu-nl)/7+1:0)})},nd=()=>l?na:performance.interactionCount||0,np=()=>{"interactionCount"in performance||l||(l=t1("event",nc,{type:"event",buffered:!0,durationThreshold:0}))},nf=[],nh=new Map,nm=()=>nd()-0,ng=()=>{let e=Math.min(nf.length-1,Math.floor(nm()/50));return nf[e]},ny=[],nv=e=>{if(ny.forEach(t=>t(e)),!(e.interactionId||"first-input"===e.entryType))return;let t=nf[nf.length-1],n=nh.get(e.interactionId);if(n||nf.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0]?.startTime&&n.entries.push(e);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};nh.set(t.id,t),nf.push(t)}nf.sort((e,t)=>
25t.latency-e.latency),nf.length>10&&nf.splice(10).forEach(e=>nh.delete(e.id))}},nb=e=>{let t=eQ.requestIdleCallback||eQ.setTimeout,n=-1;return e=t3(e),eQ.document?.visibilityState==="hidden"?e():(n=t(e),t2(e)),n},n_=[200,500],nw=(e,t={})=>{"PerformanceEventTiming"in eQ&&"interactionId"in PerformanceEventTiming.prototype&&ne(()=>{let n;np();let r=t0("INP"),i=e=>{nb(()=>{e.forEach(nv);let t=ng();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())})},o=t1("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});n=tK(e,r,n_,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),t2(()=>{i(o.takeRecords()),n(!0)}))})},nS=[2500,4e3],nx={},nE=(e,t={})=>{ne(()=>{let n;let r=t7(),i=t0("LCP"),o=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach(e=>{e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-tQ(),0),i.entries=[e],n())})},s=t1("largest-contentful-paint",o);if(s){n=tK(e,i,nS,t.reportAllChanges);let r=t3(()=>{nx[i.id]||(o(s.takeRecords()),s.disconnect(),nx[i.id]=!0,n(!0))});["keydown","click"].forEach(e=>{eQ.document&&addEventListener(e,()=>nb(r),{once:!0,capture:!0})}),t2(r)}})},nk=[800,1800],nO=e=>{eQ.document?.prerendering?ne(()=>nO(e)):eQ.document?.readyState!=="complete"?addEventListener("load",()=>nO(e),!0):setTimeout(e,0)},nT=(e,t={})=>{let n=t0("TTFB"),r=tK(e,n,nk,t.reportAllChanges);nO(()=>{let e=tY();e&&(n.value=Math.max(e.responseStart-tQ(),0),n.entries=[e],r(!0))})},nC={},nR={};function nM(e,t=!1){return nB("cls",e,nj,u,t)}function nI(e,t=!1){return nB("lcp",e,n$,d,t)}function nP(e){return nB("fid",e,nD,c)}function nL(e){return nB("inp",e,nU,f)}function nN(e,t){return nz(e,t),nR[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),t1(e,t=>{nA(e,{entries:t})},t)}(e),nR[e]=!0),nW(e,t)}function nA(e,t){let n=nC[e];if(n?.length)for(let e of n)try{e(t)}catch(e){}}function nj(){return ni(e=>{nA("cls",{metric:e}),u=e},{reportAllChanges:!0})}function nD(){return ns(e=>{nA("fid",{metric:e}),c=e})}function n$(){return nE(e=>{nA("lcp",{metric:e}),d=e},{reportAllChanges:!0})}function nF(){return nT(e=>{nA("ttfb",{metric:e}),p=e})}function nU(){return nw(e=>{nA("inp",{metric:e}),f=e})}function nB(e,t,n,r,i=!1){let o;return nz(e,t),nR[e]||(o=n(),nR[e]=!0),r&&t({metric:r}),nW(e,t,i?o:void 0)}function nz(e,t){nC[e]=nC[e]||[],nC[e].push(t)}function nW(e,t,n){return()=>{n&&n();let r=nC[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}var nH=n(29167),nG=n(42546),nJ=n(46518),nV=n(44246);class nq{constructor(e={}){this._traceId=e.traceId||(0,nV.H)(),this._spanId=e.spanId||(0,nV.M)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:e_.ve}}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){}}var nX=n(4967);class nK{constructor(e={}){this._traceId=e.traceId||(0,nV.H)(),this._spanId=e.spanId||(0,nV.M)(),this._startTime=e.startTimestamp||(0,eS.ph)(),this._links=e.links,this._attributes={},this.setAttributes({[eR.S3]:"manual",[eR.$J]: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?e_.i0:e_.ve}}setAttribute(e,t){return void 0===t?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=(0,e_.$k)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(eR.Zj,"custom"),this}end(e){this._endTime||(this._endTime=(0,e_.$k)(e),function(e){if(!A.X)return;let{description:t="< unknown name >",op:n="< unknown op >"}=(0,e_.XU)(e),{spanId:r}=e.spanContext(),i=(0,e_.Gx)(e)===e,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;j.kg.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return(0,q.Jr)({data:this._attributes,description:this._name,op:this._attributes[eR.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,e_._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[eR.S3],profile_id:this._attributes[eR.p6],exclusive_time:this._attributes[eR.JQ],measurements:tq(this._events),is_segment:this._isStandaloneSpan&&(0,e_.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,e_.Gx)(this).spanContext().spanId:void 0,links:(0,e_.FF)(this._links)})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){A.X&&j.kg.log("[Tracing] Adding an event to span:",e);let r=nZ(t)?t:n||(0,eS.ph)(),i=nZ(t)?{}:t||{},o={name:e,time:(0,e_.$k)(r),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,V.s3)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,e_.Gx)(this)))return;if(this._isStandaloneSpan){this._sampled?function(e){let t=(0,V.s3)();if(!t)return;let n=e[1];
25if(!n||0===n.length){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}(function(e,t){let n=(0,ea.jC)(e[0]),r=t?.getDsn(),i=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:eu(r)}},s=t?.getOptions().beforeSendSpan,a=s?e=>{let t=(0,e_.XU)(e);return s(t)||((0,e_.R6)(),t)}:e_.XU,l=[];for(let t of e){let e=a(t);e&&l.push([{type:"span"},e])}return eh(o,l)}([this],e)):(A.X&&j.kg.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let t=this._convertSpanToTransaction();t&&((0,nX.I)(this).scope||(0,V.nZ)()).captureEvent(t)}_convertSpanToTransaction(){if(!nY((0,e_.XU)(this)))return;this._name||(A.X&&j.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=(0,nX.I)(this);if(!0!==this._sampled)return;let n=(0,e_.Dp)(this).filter(e=>e!==this&&!(e instanceof nK&&e.isStandaloneSpan())).map(e=>(0,e_.XU)(e)).filter(nY),r=this._attributes[eR.Zj];delete this._attributes[eR.xF],n.forEach(e=>{delete e.data[eR.xF]});let i={contexts:{trace:(0,e_.HR)(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...(0,q.Jr)({dynamicSamplingContext:(0,ea.jC)(this)})},...r&&{transaction_info:{source:r}}},o=tq(this._events);return o&&Object.keys(o).length&&(A.X&&j.kg.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),i.measurements=o),i}}function nZ(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function nY(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let nQ="__SENTRY_SUPPRESS_TRACING__";function n0(e){let t=n2();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=(0,e_.$k)(e.startTime),delete n.startTime,n}return t}(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>(0,V.$e)(e.scope,t):void 0!==i?e=>n1(i,e):e=>e())(()=>{let t=(0,V.nZ)(),i=function(e){let t=(0,nJ.Y)(e);if(!t)return;let n=(0,V.s3)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,e_.Gx)(t):t}(t);return e.onlyIfParent&&!i?new nq:function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i;if(!(0,nG.f)()){let r=new nq;if(n||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,ea.jC)(r)};(0,ea.Lh)(r,e)}return r}let o=(0,V.aF)();if(e&&!n)i=function(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[nQ]&&(0,e_.Tt)(e),s=o?new nK({...n,parentSpanId:r,traceId:i,sampled:o}):new nq({traceId:i});(0,e_.j5)(e,s);let a=(0,V.s3)();return a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s)),s}(e,r,t),(0,e_.j5)(e,i);else if(e){let n=(0,ea.jC)(e),{traceId:o,spanId:s}=e.spanContext(),a=(0,e_.Tt)(e);i=n3({traceId:o,parentSpanId:s,...t},r,a),(0,ea.Lh)(i,n)}else{let{traceId:e,dsc:n,parentSpanId:s,sampled:a}={...o.getPropagationContext(),...r.getPropagationContext()};i=n3({traceId:e,parentSpanId:s,...t},r,a),n&&(0,ea.Lh)(i,n)}return!function(e){if(!A.X)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,e_.XU)(e),{spanId:i}=e.spanContext(),o=(0,e_.Tt)(e),s=(0,e_.Gx)(e),a=s===e,l=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!a){let{op:e,description:t}=(0,e_.XU)(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}j.kg.log(`${l} 26 ${u.join("\n ")}`)}(i),(0,nX.Y)(i,r,o),i}({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})})}function n1(e,t){let n=n2();return n.withActiveSpan?n.withActiveSpan(e,t):(0,V.$e)(n=>((0,nJ.D)(n,e||void 0),t(n)))}function n2(){let e=(0,ep.cu)();return(0,nH.G)(e)}function n3(e,t,n){let r=(0,V.s3)(),i=r?.getOptions()||{},{name:o="",attributes:s}=e,a=t.getPropagationContext(),[l,u,c]=t.getScopeData().sdkProcessingMetadata[nQ]?[!1]:function(e,t,n){let r,i;if(!(0,nG.f)(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);let o=(0,eT.o)(r);if(void 0===o)return A.X&&j.kg.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(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!o)return A.X&&j.kg.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,i];let s=n<o;return!s&&A.X&&j.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[s,o,i]}(i,{name:o,parentSampled:n,attributes:s,parentSampleRate:(0,eT.o)(a.dsc?.sample_rate)},a.sampleRand),d=new nK({...e,attributes:{[eR.Zj]:"custom",[eR.TE]:void 0!==u&&c?u:void 0,...e.attributes},sampled:l});return!l&&r&&(A.X&&j.kg.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",d),d}function n4(e){return"number"==typeof e&&isFinite(e)}function n5(e,t,n,{...r}){let i=(0,e_.XU)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),n1(e,()=>{let e=n0({startTime:t,...r});return e&&e.end(n),e})}function n6(e){let t;let n=(0,V.s3)();if(!n)return;let{name:r,transaction:i,attributes:o,startTime:s}=e,{release:a,environment:l,sendDefaultPii:u}=n.getOptions(),c=n.getIntegrationByName("Replay"),d=c?.getReplayId(),p=(0,V.nZ)(),f=p.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}return n0({name:r,attributes:{release:a,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":eQ.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...o},startTime:s,experimental:{standalone:!0}})}function n8(){return eQ.addEventListener&&eQ.performance}function n9(e){return e/1e3}function n7(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}
26return r===e&&(t=r),{name:t,version:n}}let re=0,rt={};function rn(e,t,n,r,i=n){let o=t["secureConnection"===n?"connectEnd":"fetch"===n?"domainLookupStart":`${n}End`],s=t[`${n}Start`];s&&o&&n5(e,r+n9(s),r+n9(o),{op:`browser.${i}`,name:t.name,attributes:{[eR.S3]:"auto.ui.browser.metrics"}})}function rr(e,t,n,r){let i=t[n];null!=i&&i<2147483647&&(e[r]=i)}let ri=[],ro=new Map,rs={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"};var ra=n(41219);let rl={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function ru(e,t={}){let n;let r=new Map,i=!1,o="externalFinish",s=!t.disableAutoFinish,a=[],{idleTimeout:l=rl.idleTimeout,finalTimeout:u=rl.finalTimeout,childSpanTimeout:c=rl.childSpanTimeout,beforeSpanEnd:d}=t,p=(0,V.s3)();if(!p||!(0,nG.f)()){let e=new nq,t={sample_rate:"0",sampled:"false",...(0,ea.jC)(e)};return(0,ea.Lh)(e,t),e}let f=(0,V.nZ)(),h=(0,e_.HN)(),m=function(e){let t=n0(e);return(0,nJ.D)((0,V.nZ)(),t),A.X&&j.kg.log("[Tracing] Started span is an idle span"),t}(e);function g(){n&&(clearTimeout(n),n=void 0)}function y(e){g(),n=setTimeout(()=>{!i&&0===r.size&&s&&(o="idleTimeout",m.end(e))},l)}function v(e){n=setTimeout(()=>{!i&&s&&(o="heartbeatFailed",m.end(e))},c)}function b(e){i=!0,r.clear(),a.forEach(e=>e()),(0,nJ.D)(f,h);let t=(0,e_.XU)(m),{start_timestamp:n}=t;if(!n)return;t.data[eR.ju]||m.setAttribute(eR.ju,o),j.kg.log(`[Tracing] Idle span "${t.op}" finished`);let s=(0,e_.Dp)(m).filter(e=>e!==m),c=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:ra.jt,message:"cancelled"}),t.end(e),A.X&&j.kg.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=(0,e_.XU)(t),i=r<=e,o=n-r<=(u+l)/1e3;if(A.X){let e=JSON.stringify(t,void 0,2);i?o||j.kg.log("[Tracing] Discarding span since it finished after idle span final timeout",e):j.kg.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!o||!i)&&((0,e_.ed)(m,t),c++)}),c>0&&m.setAttribute("sentry.idle_span_discarded_spans",c)}return m.end=new Proxy(m.end,{apply(e,t,n){if(d&&d(m),t instanceof nq)return;let[r,...i]=n,o=r||(0,eS.ph)(),s=(0,e_.$k)(o),a=(0,e_.Dp)(m).filter(e=>e!==m);if(!a.length)return b(s),Reflect.apply(e,t,[s,...i]);let l=a.map(e=>(0,e_.XU)(e).timestamp).filter(e=>!!e),c=l.length?Math.max(...l):void 0,p=(0,e_.XU)(m).start_timestamp,f=Math.min(p?p+u/1e3:1/0,Math.max(p||-1/0,Math.min(s,c||1/0)));return b(f),Reflect.apply(e,t,[f,...i])}}),a.push(p.on("spanStart",e=>{if(!i&&e!==m&&!(0,e_.XU)(e).timestamp&&(0,e_.Dp)(m).includes(e)){var t;t=e.spanContext().spanId,g(),r.set(t,!0),v((0,eS.ph)()+c/1e3)}})),a.push(p.on("spanEnd",e=>{var t;i||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&y((0,eS.ph)()+l/1e3))})),a.push(p.on("idleSpanEnableAutoFinish",e=>{e===m&&(s=!0,y(),r.size&&v())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(m.setStatus({code:ra.jt,message:"deadline_exceeded"}),o="finalTimeout",m.end())},u),m}let rc=!1;function rd(){let e=(0,e_.HN)(),t=e&&(0,e_.Gx)(e);if(t){let e="internal_error";A.X&&j.kg.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:ra.jt,message:e})}}rd.tag="sentry_tracingErrorCallback";var rp=n(68034),rf=n(35425);function rh(e={}){let t=(0,V.s3)();if(!(0,N._k)()||!t)return{};let n=(0,ep.cu)(),r=(0,nH.G)(n);if(r.getTraceData)return r.getTraceData(e);let i=(0,V.nZ)(),o=e.span||(0,e_.HN)(),s=o?(0,e_.Hb)(o):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,rp.$p)(t,r,n)}(i),a=o?(0,ea.jC)(o):(0,ea.CG)(t,i),l=(0,rf.IQ)(a);return rp.Ke.test(s)?{"sentry-trace":s,baggage:l}:(j.kg.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function rm(e){return e.split(",").filter(e=>!e.split("=")[0].startsWith(rf.lq)).join(",")}let rg=new WeakMap,ry=new Map,rv={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function rb(e){let{url:t}=(0,e_.XU)(e).data;if(!t||"string"!=typeof t)return;let n=nN("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let{name:t,ver
26sion:n}=n7(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),(0,eS.Z1)())?[...r,["http.request.redirect_start",r_(e.redirectStart)],["http.request.fetch_start",r_(e.fetchStart)],["http.request.domain_lookup_start",r_(e.domainLookupStart)],["http.request.domain_lookup_end",r_(e.domainLookupEnd)],["http.request.connect_start",r_(e.connectStart)],["http.request.secure_connection_start",r_(e.secureConnectionStart)],["http.request.connection_end",r_(e.connectEnd)],["http.request.request_start",r_(e.requestStart)],["http.request.response_start",r_(e.responseStart)],["http.request.response_end",r_(e.responseEnd)]]:r})(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function r_(e=0){return(((0,eS.Z1)()||performance.timeOrigin)+e)/1e3}function rw(e){try{return new URL(e,eH.location.origin).href}catch{return}}let rS={...rl,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...rv},rx=(e={})=>{let t=eH.document;rc||(rc=!0,tv(rd),tw(rd));let{enableInp:n,enableLongTask:r,enableLongAnimationFrame:i,_experiments:{enableInteractions:o,enableStandaloneClsSpans:s},beforeStartSpan:a,idleTimeout:l,finalTimeout:u,childSpanTimeout:c,markBackgroundSpan:d,traceFetch:f,traceXHR:g,trackFetchStreamPerformance:y,shouldCreateSpanForRequest:v,enableHTTPTimings:b,instrumentPageLoad:_,instrumentNavigation:w}={...rS,...e},S=function({recordClsStandaloneSpans:e}){let t=n8();if(t&&(0,eS.Z1)()){t.mark&&eQ.performance.mark("sentry-tracing-init");let n=nP(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=n9((0,eS.Z1)()),r=n9(t.startTime);rt.fid={value:e.value,unit:"millisecond"},rt["mark.fid"]={value:n+r,unit:"second"}}),r=nI(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rt.lcp={value:e.value,unit:"millisecond"},h=t)},!0),i=nB("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(rt.ttfb={value:e.value,unit:"millisecond"})},nF,p),o=e?function(){let e,t,n=0;if(!function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}())return;let r=!1;function i(){r||(r=!0,t&&function(e,t,n){let r=n9(((0,eS.Z1)()||0)+(t?.startTime||0)),i=(0,V.nZ)().getScopeData().transactionName,o=n6({name:t?(0,en.Rt)(t.sources[0]?.node):"Layout shift",transaction:i,attributes:(0,q.Jr)({[eR.S3]:"auto.http.browser.cls",[eR.$J]:"ui.webvital.cls",[eR.JQ]:t?.duration||0,"sentry.pageload.span_id":n}),startTime:r});o&&(o.addEvent("cls",{[eR.E1]:"",[eR.Wb]:e}),o.end(r))}(n,e,t),o())}let o=nM(({metric:t})=>{let r=t.entries[t.entries.length-1];r&&(n=t.value,e=r)},!0);t2(()=>{i()}),setTimeout(()=>{let e=(0,V.s3)();if(!e)return;let n=e.on("startNavigationSpan",()=>{i(),n?.()}),r=(0,e_.HN)();if(r){let e=(0,e_.Gx)(r);"pageload"===(0,e_.XU)(e).op&&(t=e.spanContext().spanId)}},0)}():nM(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rt.cls={value:e.value,unit:""},m=t)},!0);return()=>{n(),r(),i(),o?.()}}return()=>void 0}({recordClsStandaloneSpans:s||!1});n&&function(){if(n8()&&(0,eS.Z1)()){let e=nL(({metric:e})=>{if(void 0==e.value)return;let t=e.entries.find(t=>t.duration===e.value&&rs[t.name]);if(!t)return;let{interactionId:n}=t,r=rs[t.name],i=n9((0,eS.Z1)()+t.startTime),o=n9(e.value),s=(0,e_.HN)(),a=s?(0,e_.Gx)(s):void 0,l=(null!=n?ro.get(n):void 0)||a,u=l?(0,e_.XU)(l).description:(0,V.nZ)().getScopeData().transactionName,c=n6({name:(0,en.Rt)(t.target),transaction:u,attributes:(0,q.Jr)({[eR.S3]:"auto.http.browser.inp",[eR.$J]:`ui.interaction.${r}`,[eR.JQ]:t.duration}),startTime:i});c&&(c.addEvent("inp",{[eR.E1]:"millisecond",[eR.Wb]:e.value}),c.end(i+o))})}}(),i&&I.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,e_.HN)();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=n9((0,eS.Z1)()+n.startTime),{start_timestamp:r,op:i}=(0,e_.XU)(t);if("navigation"===i&&r&&e<r)continue;let o=n9(n.duration),s={[eR.S3]:"auto.ui.browser.metrics"}
26,{invoker:a,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:d}=n.scripts[0];s["browser.script.invoker"]=a,s["browser.script.invoker_type"]=l,u&&(s["code.filepath"]=u),c&&(s["code.function"]=c),-1!==d&&(s["browser.script.source_char_position"]=d),n5(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0}):r&&nN("longtask",({entries:e})=>{let t=(0,e_.HN)();if(!t)return;let{op:n,start_timestamp:r}=(0,e_.XU)(t);for(let i of e){let e=n9((0,eS.Z1)()+i.startTime),o=n9(i.duration);"navigation"===n&&r&&e<r||n5(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[eR.S3]:"auto.ui.browser.metrics"}})}}),o&&nN("event",({entries:e})=>{let t=(0,e_.HN)();if(t){for(let n of e)if("click"===n.name){let e=n9((0,eS.Z1)()+n.startTime),r=n9(n.duration),i={name:(0,en.Rt)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[eR.S3]:"auto.ui.browser.metrics"}},o=(0,en.iY)(n.target);o&&(i.attributes["ui.component_name"]=o),n5(t,e,e+r,i)}}});let x={name:void 0,source:void 0};function E(e,n){let r="pageload"===n.op,i=a?a(n):n,o=i.attributes||{};n.name!==i.name&&(o[eR.Zj]="custom",i.attributes=o),x.name=i.name,x.source=o[eR.Zj];let d=ru(i,{idleTimeout:l,finalTimeout:u,childSpanTimeout:c,disableAutoFinish:r,beforeSpanEnd:t=>{var n;S(),function(e,t){let n=n8(),r=(0,eS.Z1)();if(!n?.getEntries||!r)return;let i=n9(r),o=n.getEntries(),{op:s,start_timestamp:a}=(0,e_.XU)(e);if(o.slice(re).forEach(t=>{let n=n9(t.startTime),r=n9(Math.max(0,t.duration));if("navigation"!==s||!a||!(i+n<a))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{rn(e,t,n,i)}),rn(e,t,"secureConnection",i,"TLS/SSL"),rn(e,t,"fetch",i,"cache"),rn(e,t,"domainLookup",i,"DNS"),function(e,t,n){let r=n+n9(t.requestStart),i=n+n9(t.responseEnd),o=n+n9(t.responseStart);t.responseEnd&&(n5(e,r,i,{op:"browser.request",name:t.name,attributes:{[eR.S3]:"auto.ui.browser.metrics"}}),n5(e,o,i,{op:"browser.response",name:t.name,attributes:{[eR.S3]:"auto.ui.browser.metrics"}}))}(e,t,i);break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let o=tY(!1),s=i+Math.max(n,n9(o?o.requestStart:0)),a=i+n,l=a+r,u={[eR.S3]:"auto.resource.browser.metrics"};s!==a&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=s),s<=l&&n5(e,s,l,{name:t.name,op:t.entryType,attributes:u})})(e,t,n,r,i);let o=t7(),s=t.startTime<o.firstHiddenTime;"first-paint"===t.name&&s&&(rt.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&s&&(rt.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":(function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let s=ta(n),a={[eR.S3]:"auto.resource.browser.metrics"};rr(a,t,"transferSize","http.response_transfer_size"),rr(a,t,"encodedBodySize","http.response_content_length"),rr(a,t,"decodedBodySize","http.decoded_response_content_length");let l=t.deliveryType;null!=l&&(a["http.response_delivery_type"]=l);let u=t.renderBlockingStatus;u&&(a["resource.render_blocking_status"]=u),s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop()),s.host&&(a["server.address"]=s.host),a["url.same_origin"]=n.includes(eQ.location.origin);let{name:c,version:d}=n7(t.nextHopProtocol);a["network.protocol.name"]=c,a["network.protocol.version"]=d;let p=o+r;n5(e,p,p+i,{name:n.replace(eQ.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})})(e,t,t.name,n,r,i)}}),re=Math.max(o.length-1,0),function(e){let t=eQ.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),n4(n.rtt)&&(rt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),n4(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),n4(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===s){(function(e){let t=tY(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(rt);let n=rt["mark.fid"];n&&rt.fid&&(n5(e,n.value,n.value+n9(rt.fid.value),{name:"first input delay",op:"ui.action",attributes:{[eR.S3]:"auto.ui.browser.metrics"}}),delete rt["mark.fid"]),"fcp"in rt&&t.recordClsOnPageloadSpan||delete rt.cls,Object.entries(rt).forEach(([e,t])=>{!function(e,t,n,r=(0,e_.HN)()){let i=r&&(0,e_.Gx)(r);i&&(A.X&&j.kg.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[eR.Wb]:t,[eR.E1]:n}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",tQ()),h&&(h.element&&e.setAttribute("lcp.element",(0,en.Rt)(h.element)),h.id&&e.setAttribute("lcp.id",h.id),h.url&&e.setAttribute("lcp.url",h.url.trim().slice(0,200)),null!=h.loadTime&&e.setAttribute("lcp.loadTime",h.loadTime),null!=h.renderTime&&e.setAttribute("lcp.renderTime",h.renderTime),e.setAttribute("lcp.size",h.size)),m?.sources&&m.sources.forEac
26h((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,en.Rt)(t.node)))}h=void 0,m=void 0,rt={}}(t,{recordClsOnPageloadSpan:!s}),n=void 0,(0,q.xp)(e,rT,n);let r=(0,V.nZ)(),i=r.getPropagationContext();r.setPropagationContext({...i,traceId:d.spanContext().traceId,sampled:(0,e_.Tt)(d),dsc:(0,ea.jC)(t)})}});function p(){t&&["interactive","complete"].includes(t.readyState)&&e.emit("idleSpanEnableAutoFinish",d)}(0,q.xp)(e,rT,d),r&&t&&(t.addEventListener("readystatechange",()=>{p()}),p())}return{name:"BrowserTracing",afterAllSetup(e){let t,r=(0,en.l4)();function i(){let t=e[rT];t&&!(0,e_.XU)(t).timestamp&&t.end()}if(e.on("startNavigationSpan",t=>{(0,V.s3)()===e&&(i(),(0,V.aF)().setPropagationContext({traceId:(0,nV.H)(),sampleRand:Math.random()}),(0,V.nZ)().setPropagationContext({traceId:(0,nV.H)(),sampleRand:Math.random()}),E(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,n={})=>{if((0,V.s3)()!==e)return;i();let r=n.sentryTrace||rO("sentry-trace"),o=n.baggage||rO("baggage"),s=(0,rp.pT)(r,o);(0,V.nZ)().setPropagationContext(s),E(e,{op:"pageload",...t})}),eH.location){if(_){let t=(0,eS.Z1)();rE(e,{name:eH.location.pathname,startTime:t?t/1e3:void 0,attributes:{[eR.Zj]:"url",[eR.S3]:"auto.pageload.browser"}})}w&&e6(({to:t,from:n})=>{if(void 0===n&&r?.indexOf(t)!==-1){r=void 0;return}n!==t&&(r=void 0,rk(e,{name:eH.location.pathname,attributes:{[eR.Zj]:"url",[eR.S3]:"auto.navigation.browser"}}))})}d&&eH.document&&eH.document.addEventListener("visibilitychange",()=>{let e=(0,e_.HN)();if(!e)return;let t=(0,e_.Gx)(e);if(eH.document.hidden&&t){let{op:e,status:n}=(0,e_.XU)(t);n||t.setStatus({code:ra.jt,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),o&&eH.document&&addEventListener("click",()=>{let n=e[rT];!(n&&["navigation","pageload"].includes((0,e_.XU)(n).op))&&(t&&(t.setAttribute(eR.ju,"interactionInterrupted"),t.end(),t=void 0),x.name&&(t=ru({name:x.name,op:"ui.action.click",attributes:{[eR.Zj]:x.source||"url"}},{idleTimeout:l,finalTimeout:u,childSpanTimeout:c})))},{once:!1,capture:!0}),n&&function(){let e=({entries:e})=>{let t=(0,e_.HN)(),n=t&&(0,e_.Gx)(t);e.forEach(e=>{if(!("duration"in e)||!n)return;let t=e.interactionId;if(!(null==t||ro.has(t))){if(ri.length>10){let e=ri.shift();ro.delete(e)}ri.push(t),ro.set(t,n)}})};nN("event",e),nN("first-input",e)}(),function(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a}={traceFetch:rv.traceFetch,traceXHR:rv.traceXHR,trackFetchStreamPerformance:rv.trackFetchStreamPerformance,...t},l="function"==typeof o?o:e=>!0,u=e=>(function(e,t){let n=(0,en.l4)();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(e){return!1}let o=r.origin===i;return t?(0,B.U0)(r.toString(),t)||o&&(0,B.U0)(r.pathname,t):o}{let n=!!e.match(/^\/(?!\/)/);return t?(0,B.U0)(e,t):n}})(e,a),c={};n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=ry.get(e.span_id);t&&(e.timestamp=t/1e3,ry.delete(e.span_id))}}),e)),i&&function(e){let t="fetch-body-resolved";eK(t,e),eZ(t,()=>te(tn))}(e=>{if(e.response){let t=rg.get(e.response);t&&e.endTimestamp&&ry.set(t,e.endTimestamp)}}),e7(e=>{let t=function(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;let{method:o,url:s}=e.fetchData,a=(0,nG.f)()&&t(s);if(e.endTimestamp&&a){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(function(e,t){if(t.response){(0,ra.Q0)(e,t.response.status);let n=t.response?.headers&&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:ra.jt,message:"internal_error"});e.end()}(n,e),delete r[t]);return}let l=function(e){try{return new URL(e).href}catch{return}}(s),u=l?ta(l):ta(s),c=!!(0,e_.HN)(),d=a&&c?n0({name:`${o} ${tl(s)}`,attributes:{url:s,type:"fetch","http.method":o,"http.url":l,"server.address":u?.host,[eR.S3]:i,[eR.$J]:"http.client",...u?.search&&{"http.query":u?.search},...u?.hash&&{"http.fragment":u?.hash}}}):new nq;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){let t=e.args[0],n=e.args[1]||{},r=function(e,t,n){let r=rh({span:n}),i=r["sentry-trace"],o=r.baggage;if(!i)return;let s=t.headers||("undefined"!=typeof Request&&(0,eE.V9)(e,Request)?e.headers:void 0);if(!s)return{...r};if("undefined"!=typeof Headers&&(0,eE.V9)(s,Headers)){let e=new Headers(s);if(e.set("sentry-trace",i),o){let t=e.get("baggage");if(t){let n=rm(t);e.set("baggage",n?`${n},${o}`:o)}else e.set("baggage",o)}return e}if(Array.isArray(s)){let e=[...s.filter(e=>!(Array.isArray(e)&&"sentry-trace"===e[0])).map(e=>{if(!Array.isArray(e)||"baggage"!==e[0]||"string"!=typeof e[1])return e;{let[t,n,...r]=e;return[t,rm(n),...r]}}),["sentry-trace",i]];return o&&e.push(["baggage",o]),e}{let e="baggage"in s?s.baggage:void 0,t=[];return Array.isArray(e)?t=e.map(e=>"string"==typeof e?rm(e):e).filter(e=>""===e):e&&t.push(rm(e)),o&&t.push(o),{...s,"sentry-trace":i,baggage:t.length>0?t.join(","):void 0}}}(t,n,(0,nG.f)()&&c?d:void 0);r&&(e.args[1]=n,n.headers=r)}let p=(0,V.s3)();if(p){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",d,t)}return d}(e,l,u,c);if(e.response&&e.fetchData.__span&&rg.set(e.response,e.fetchData.__span),t){let n=rw(e.fetchData.url),r=n?ta(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}s&&t&&rb(t)})),r&&e4(e=>{let t=function(e,t,n,r){let i=e.xhr,o=i?.[e3];if(!i||i.__sentry_own_request__||!o)return;let{url:s,method:a}=o,l=(0,nG.f)()&&t(s);if(e.endTimestamp&&l){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&void 0!==o.status_code&&((0,ra.Q0)(t,o.status_code),t.end(),delete r[e]);return}let u=rw(s),c=u?ta(u):ta(s),d=tl(s),p=!!(0,e_.HN)(),f=l&&p?n0({name:`${a} ${d}`,attributes:{url:s,type:"xhr","http.method":a,"http.url":u,"server.address":c?.host,[eR.S3]:"auto.http.browser",[eR.$J]:"http.client",...c?.search&&{"http.query":c?.search},...c?.hash&&{"http.fragment":c?.hash}}}):new nq;i.__sentry_xhr_span_id__=f.spanContext().spanId,r[i.__sentry_xhr_span_id__]=f,n(s)&&function(e,t){let{"sentry-trace":n,baggage:r}=rh({span:t});n&&function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch(e){}}(e,n,r)}(i,(0,nG.f)()&&p?f:void 0);let h=(0,V.s3)();return h&&h.emit("beforeOutgoingRequestSpan",f,e),f}(e,l,u,c);s&&t&&rb(t)})}(e,{traceFetch:f,traceXHR:g,trackFetchStreamPerformance:y,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:b})}}};function rE(e,t,n){return e.emit("startPageLoadSpan",t,n),(0,V.nZ)().setTransactionName(t.name),e[rT]}function rk(e,t){return e.emit("startNavigationSpan",t),(0,V.nZ)().setTransactionName(t.name),e[rT]}function rO(e){let t=eH.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}let rT="_sentry_idleSpan",rC="incomplete-app-router-transaction",rR=I.GLOBAL_OBJ;function rM(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}var rI=n(75112),rP=n(29876);let rL=rI.events?rI:rI.default,rN=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function rA(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function rj(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let rD=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in I.GLOBAL_OBJ&&!!I.GLOBAL_OBJ.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||o){let e;let o=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=t?function(e,t){e=rA(e).slice(1),t=rA(t).slice(1);let n=rj(e.split("/")),r=rj(t.split("/")),i=Math.min(n.length,r.length),o=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){o=e;break}let s=[];for(let e=o;e<n.length;e++)s.push("..");return(s=s.concat(r.slice(o))).join("/")}(t,o):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=rN.exec(t);return n?n.slice(1):[]}(o)[2]||"";r.filename=`${n}${s}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames&&t.frames.map(e=>i(e))}}}})}}}catch(t){return e}}(t)),t}}},r$=({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:r})=>({...rD({iteratee:i=>{if(r){let n="undefined"!=typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(n)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===n&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch(e){}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(n,"")}catch(e){}return r?(i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)):(i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)),i}}),name:"NextjsClientStackFrameNormalization"});var rF=n(52461);let rU=I.GLOBAL_OBJ;var rB=n(52461);let rz=I.GLOBAL_OBJ;function rW(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var rH=n(52461);function rG(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==rH?rH:0))||function(){let e=I.GLOBAL_OBJ.process;return e?.type==="renderer"}())}function rJ(e){return new URLSearchParams(e).toString()}function rV(e,t=j.kg){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[rJ(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function rq(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}let rX=I.GLOBAL_OBJ,rK="sentryReplaySession",rZ="Unable to send Replay";var rY=Object.defineProperty,rQ=(e,t,n)=>t in e?rY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,r0=(e,t,n)=>rQ(e,"symbol"!=typeof t?t+"":t,n),r1=((S=r1||{})[S.Document=0]="Document",S[S.DocumentType=1]="DocumentType",S[S.Element=2]="Element",S[S.Text=3]="Text",S[S.CDATA=4]="CDATA",S[S.Comment=5]="Comment",S);function r2(e){let t=e?.host;return t?.shadowRoot===e}function r3(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function r4(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,r5).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function r5(e){let t;if("styleSheet"in e)try{t=r4(e.styleSheet)||function(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(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],o=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return t}return t||e.cssText}class r6{constructor(){r0(this,"idNodeMap",new Map),r0(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);
26this.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 r8({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function r9({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function r7(e){return e.toLowerCase()}function ie(e){return e.toUpperCase()}let it="__rrweb_original__";function ir(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?r7(t):null}function ii(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function io(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}let r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}let is={};function ia(e){let t=is[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)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(e){}return is[e]=r.bind(window)}function il(...e){return ia("setTimeout")(...e)}function iu(...e){return ia("clearTimeout")(...e)}function ic(e){try{return e.contentDocument}catch(e){}}let id=1,ip=RegExp("[^a-z0-9-_:]");function ih(){return id++}let im=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ig=/^(?:[a-z+]+:)?\/\//i,iy=/^www\..*/i,iv=/^(data:)([^,]*),(.*)/i;function ib(e,t){return(e||"").replace(im,(e,n,r,i,o,s)=>{let a=r||o||s,l=n||i||"";if(!a)return e;if(ig.test(a)||iy.test(a)||iv.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let u=t.split("/"),c=a.split("/");for(let e of(u.pop(),c))"."!==e&&(".."===e?u.pop():u.push(e));return`url(${l}${u.join("/")}${l})`})}let i_=/^[^ \t\n\r\u000c]+/,iw=/^[, \t\n\r\u000c]+/,iS=new WeakMap;function ix(e,t){return t&&""!==t.trim()?iE(e,t):t}function iE(e,t){let n=iS.get(e);if(n||(n=e.createElement("a"),iS.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function ik(e,t,n,r,i,o){return r?"src"!==n&&("href"!==n||"use"===t&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;let i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(iw),!(n>=t.length);){let o=r(i_);if(","===o.slice(-1))o=ix(e,o.substring(0,o.length-1)),i.push(o);else{let r="";o=ix(e,o);let s=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((o+r).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,i.push((o+r).trim());break}"("===e&&(s=!0)}r+=e,n+=1}}}return i.join(", ")}(e,r):"style"===n?ib(r,iE(e)):"object"===t&&"data"===n?ix(e,r):"function"==typeof o?o(n,r,i):r:ix(e,r):r}function iO(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function iT(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}function iC(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:iC(e.parentNode,t,n,r+1)}function iR(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}function iM(e,t,n,r,i,o){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){let e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,l=-1;if(o){if((l=iC(s,iR(r,i)))<0)return!0;a=iC(s,iR(t,n),l>=0?l:1/0)}else{if((a=iC(s,iR(t,n)))<0)return!1;l=iC(s,iR(r,i),a>=0?a:1/0)}return a>=0?!(l>=0)||a<=l:!(l>=0)&&!!o}catch(e){}return!!o}function iI(e){return null==e?"":e.toLowerCase()}function iP(e,t){let n;let{doc:r,mirror:i,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:m={},maskAttributeFn:v,maskTextFn:b,maskInputFn:_,slimDOMOptions:w,dataURLOptions:S={}
26,inlineImages:x=!1,recordCanvas:E=!1,onSerialize:k,onIframeLoad:O,iframeLoadTimeout:T=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:I=!1}=t,{preserveWhiteSpace:P=!0}=t,L=function(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:v,dataURLOptions:b={},inlineImages:_,recordCanvas:w,keepIframeSrcFn:S,newlyAddedElement:x=!1}=t,E=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:r1.Document,childNodes:[],compatMode:e.compatMode};return{type:r1.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:r1.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){let n;let{doc:r,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:a,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:p,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1,rootId:v,maskTextClass:b,unmaskTextClass:_,maskTextSelector:w,unmaskTextSelector:S}=t,x=iT(e,i,o,s),E=function(e){if(e instanceof HTMLFormElement)return"form";let t=r7(e.tagName);return ip.test(t)?"div":t}(e),k={},O=e.attributes.length;for(let t=0;t<O;t++){let n=e.attributes[t];n.name&&!iO(E,n.name,n.value)&&(k[n.name]=ik(r,E,r7(n.name),n.value,e,u))}if("link"===E&&a){let t=Array.from(r.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=r4(t)),n&&(k.rel=null,k.href=null,k.crossorigin=null,k._cssText=ib(n,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=r4(e.sheet);t&&(k._cssText=ib(t,iE(r)))}if("input"===E||"textarea"===E||"select"===E||"option"===E){let t=ir(e),n=ii(e,ie(E),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=iM(e,b,w,_,S,r8({type:t,tagName:ie(E),maskInputOptions:l}));k.value=r9({isMasked:r,element:e,value:n,maskInputFn:c})}r&&(k.checked=r)}if("option"===E&&(e.selected&&!l.select?k.selected=!0:delete k.selected),"canvas"===E&&f){if("2d"===e.__context)!function(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;if(new Uint32Array((it in i?i[it]:i).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(k.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(d.type,d.quality)&&(k.rr_dataURL=t)}}if("img"===E&&p){g||(y=(g=r.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",n=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{g.width=e.naturalWidth,g.height=e.naturalHeight,y.drawImage(e,0,0),k.rr_dataURL=g.toDataURL(d.type,d.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${n}`)}"anonymous"===e.crossOrigin&&(n?k.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===E||"video"===E)&&(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop)),x){let{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==E||h(k.src)||(x||ic(e)||(k.rr_src=k.src),delete k.src);try{customElements.get(E)&&(n=!0)}catch(e){}return{type:r1.Element,tagName:E,attributes:k,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:x,rootId:v,isCustom:n}}(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:h,maskInputFn:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:S,newlyAddedElement:x,rootId:E,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=r4(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=ib(p,iE(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let g=iM(e,r,o,i,s,n);return f||h||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=r9({isMasked:iM(e,r,o,i,s,r8({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:r1.Text,textContent:p||"",isStyle:f,rootId:c}}(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:v,rootId:E});case e.CDATA_SECTION_NODE:return{type:r1.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:r1.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}(e,{doc:r,mirror:i,blockClass:o,blockSelector:s,maskAllText:l,unblockSelector:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:v,maskTextFn:b,maskInputFn:_,dataURLOptions:S,inlineImages:x,recordCanvas:E,keepIframeSrcFn:M,newlyAddedElement:I});if(!L)return console.warn(e,"not serialized"),null;n=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===r1.Comment)return!0;
26if(e.type===r1.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===io(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(iI(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===iI(e.attributes.name)||"icon"===iI(e.attributes.rel)||"apple-touch-icon"===iI(e.attributes.rel)||"shortcut icon"===iI(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&iI(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(iI(e.attributes.property).match(/^(og|twitter|fb):/)||iI(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===iI(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===iI(e.attributes.name)||"googlebot"===iI(e.attributes.name)||"bingbot"===iI(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===iI(e.attributes.name)||"generator"===iI(e.attributes.name)||"framework"===iI(e.attributes.name)||"publisher"===iI(e.attributes.name)||"progid"===iI(e.attributes.name)||iI(e.attributes.property).match(/^article:/)||iI(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===iI(e.attributes.name)||"yandex-verification"===iI(e.attributes.name)||"csrf-token"===iI(e.attributes.name)||"p:domain_verify"===iI(e.attributes.name)||"verify-v1"===iI(e.attributes.name)||"verification"===iI(e.attributes.name)||"shopify-checkout-api-token"===iI(e.attributes.name)))return!0}}return!1}(L,w)&&(P||L.type!==r1.Text||L.isStyle||L.textContent.replace(/^\s+|\s+$/gm,"").length)?ih():-2;let N=Object.assign(L,{id:n});if(i.add(e,N),-2===n)return null;k&&k(e);let A=!f;if(N.type===r1.Element){A=A&&!N.needBlock,delete N.needBlock;let t=e.shadowRoot;t&&r3(t)&&(N.isShadowHost=!0)}if((N.type===r1.Document||N.type===r1.Element)&&A){w.headWhitespace&&N.type===r1.Element&&"head"===N.tagName&&(P=!1);let t={doc:r,mirror:i,blockClass:o,blockSelector:s,maskAllText:l,unblockSelector:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:v,maskTextFn:b,maskInputFn:_,slimDOMOptions:w,dataURLOptions:S,inlineImages:x,recordCanvas:E,preserveWhiteSpace:P,onSerialize:k,onIframeLoad:O,iframeLoadTimeout:T,onStylesheetLoad:C,stylesheetLoadTimeout:R,keepIframeSrcFn:M};for(let n of Array.from(e.childNodes)){let e=iP(n,t);e&&N.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=iP(n,t);r&&(r3(e.shadowRoot)&&(r.isShadow=!0),N.childNodes.push(r))}}return e.parentNode&&r2(e.parentNode)&&r3(e.parentNode)&&(N.isShadow=!0),N.type!==r1.Element||"iframe"!==N.tagName||iT(e,o,s,a)||function(e,t,n){let r;let i=e.contentWindow;if(!i)return;let o=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=il(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{iu(r),o=!0,t()});return}let s="about:blank";if(i.location.href!==s||e.src===s||""===e.src)return il(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=ic(e);if(t&&O){let n=iP(t,{doc:t,mirror:i,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:v,maskTextFn:b,maskInputFn:_,slimDOMOptions:w,dataURLOptions:S,inlineImages:x,recordCanvas:E,preserveWhiteSpace:P,onSerialize:k,onIframeLoad:O,iframeLoadTimeout:T,onStylesheetLoad:C,stylesheetLoadTimeout:R,keepIframeSrcFn:M});n&&O(e,n)}},T),N.type===r1.Element&&"link"===N.tagName&&"string"==typeof N.attributes.rel&&("stylesheet"===N.attributes.rel||"preload"===N.attributes.rel&&"string"==typeof N.attributes.href&&"css"===io(N.attributes.href))&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){return}if(r)return;let o=il(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{iu(o),i=!0,t()})}(e,()=>{if(C){let t=iP(e,{doc:r,mirror:i,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:v,maskTextFn:b,maskInputFn:_,slimDOMOptions:w,dataURLOptions:S,inlineImages:x,recordCanvas:E,preserveWhiteSpace:P,onSerialize:k,onIframeLoad:O,iframeLoadTimeout:T,onStylesheetLoad:C,stylesheetLoadTimeout:R,keepIframeSrcFn:M});t&&C(e,t)}},R),N}function iL(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let iN="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",iA={map:{},getId:()=>(console.error(iN),-1),getNode:()=>(console.error(iN),null),removeNodeFromMap(){console.error(iN)},has:()=>(console.error(iN),!1),reset(){console.error(iN)}};function ij(e,t,n={}){let r=null,i=0;return function(...o){let s=Date.now();i||!1!==n.leading||(i=s);let a=t-(s-i),l=this;a<=0||a>t?(r&&(function(...e){iQ("clearTimeout")(...e)}
26(r),r=null),i=s,e.apply(l,o)):r||!1===n.trailing||(r=i0(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(l,o)},a))}}function iD(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(iA=new Proxy(iA,{get:(e,t,n)=>("map"===t&&console.error(iN),Reflect.get(e,t,n))}));let i$=Date.now;function iF(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function iU(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function iB(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iz(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function iW(e,t,n,r,i){if(!e)return!1;let o=iz(e);if(!o)return!1;let s=iR(t,n);if(!i){let e=r&&o.matches(r);return s(o)&&!e}let a=iC(o,s),l=-1;return!(a<0)&&(r&&(l=iC(o,iR(null,r))),a>-1&&l<0||a<l)}function iH(e,t){return -2===t.getId(e)}function iG(e){return!!e.changedTouches}function iJ(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function iV(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function iq(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(i$=()=>new Date().getTime());class iX{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){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}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 iK(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function iZ(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=iK(n);)n=t;return n}(e);return t.contains(n)}(e))}let iY={};function iQ(e){let t=iY[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)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(e){}return iY[e]=r.bind(window)}function i0(...e){return iQ("setTimeout")(...e)}var i1=((x=i1||{})[x.DomContentLoaded=0]="DomContentLoaded",x[x.Load=1]="Load",x[x.FullSnapshot=2]="FullSnapshot",x[x.IncrementalSnapshot=3]="IncrementalSnapshot",x[x.Meta=4]="Meta",x[x.Custom=5]="Custom",x[x.Plugin=6]="Plugin",x),i2=((E=i2||{})[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),i3=((k=i3||{})[k.MouseUp=0]="MouseUp",k[k.MouseDown=1]="MouseDown",k[k.Click=2]="Click",k[k.ContextMenu=3]="ContextMenu",k[k.DblClick=4]="DblClick",k[k.Focus=5]="Focus",k[k.Blur=6]="Blur",k[k.TouchStart=7]="TouchStart",k[k.TouchMove_Departed=8]="TouchMove_Departed",k[k.TouchEnd=9]="TouchEnd",k[k.TouchCancel=10]="TouchCancel",k),i4=((O=i4||{})[O.Mouse=0]="Mouse",O[O.Pen=1]="Pen",O[O.Touch=2]="Touch",O),i5=((T=i5||{})[T.Play=0]="Play",T[T.Pause=1]="Pause",T[T.Seeked=2]="Seeked",T[T.VolumeChange=3]="VolumeChange",T[T.RateChange=4]="RateChange",T);function i6(e){try{return e.contentDocument}catch(e){}}class i8{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&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
26(n.previous=t)}else if(e.nextSibling&&"__ln"in 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;null===t.next&&(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--)}}let i9=(e,t)=>`${e}@${t}`;class i7{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new i8,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!iZ(i))return;let o=r2(i.parentNode)?this.mirror.getId(iK(i)):this.mirror.getId(i.parentNode),s=r(i);if(-1===o||-1===s)return n.addNode(i);let a=iP(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=>{iJ(e,this.mirror)&&!iW(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),iV(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),iq(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{iW(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:o,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!ot(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)on(this.droppedSet,e)||ot(this.removes,e,this.mirror)?on(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;n.length;){let e=null;if(o){let t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),i(e.value)}let s={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("string"==typeof t.style){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};(s.texts.length||s.attributes.length||s.removes.length||s.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(s))},this.processMutation=e=>{if(!iH(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;iW(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:iM(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,iz(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("value"===n){let n=ir(t),i=t.tagName;r=ii(t,i,n);let o=r8({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=r9({isMasked:iM(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(iW(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);
26if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(i6(t))return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!iO(t.tagName,n)&&(i.attributes[n]=ik(this.doc,r7(t.tagName),r7(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),o=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||o!==n.style.getPropertyPriority(r)?""===o?i.styleDiff[r]=e:i.styleDiff[r]=[e,o]:i._unchangedStyles[r]=[e,o]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(iW(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=r2(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);iW(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||iH(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(oe(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(r2(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[i9(n,r)]?oe(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(r2(e.target)&&r3(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(iH(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[i9(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!iW(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),iq(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function oe(e,t){e.delete(t),t.childNodes.forEach(t=>oe(e,t))}function ot(e,t,n){return 0!==e.length&&function(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}(e,t,n)}function on(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let or=e=>v?(...t)=>{try{return e(...t)}catch(e){if(v&&!0===v(e))return()=>{};throw e}}:e,oi=[];function oo(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 os(e,t){let n=new i7;oi.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(r=window[i]);let o=new r(or(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function oa({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){return iL("scroll",or(ij(or(s=>{let a=oo(s);if(!a||iW(a,r,i,o,!0))return;let l=n.getId(a);if(a===t&&t.defaultView){let n=iF(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:a.scrollLeft,y:a.scrollTop})}),s.scroll||100)),t)}let ol=["INPUT","TEXTAREA","SELECT"],ou=new WeakMap;function oc(e){var t;return t=[],oh("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||oh("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||oh("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||oh("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}
26function od(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function op({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let i="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,o=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(e){let n=o.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),or(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function of(e,t={}){let n;let r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(n=os(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=ij(or(t=>{let n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),s),u=or(ij(or(e=>{let t=oo(e),{clientX:n,clientY:o}=iG(e)?e.changedTouches[0]:e;i||(i=i$()),a.push({x:n,y:o,id:r.getId(t),timeOffset:i$()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?i2.Drag:e instanceof MouseEvent?i2.MouseMove:i2.TouchMove)}),o,{trailing:!1})),c=[iL("mousemove",u,n),iL("touchmove",u,n),iL("drag",u,n)];return or(()=>{c.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],u=null,c=t=>s=>{let a=oo(s);if(iW(a,r,i,o,!0))return;let l=null,c=t;if("pointerType"in s){switch(s.pointerType){case"mouse":l=i4.Mouse;break;case"touch":l=i4.Touch;break;case"pen":l=i4.Pen}l===i4.Touch?i3[t]===i3.MouseDown?c="TouchStart":i3[t]===i3.MouseUp&&(c="TouchEnd"):i4.Pen}else iG(s)&&(l=i4.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===i4.Touch||c.startsWith("Mouse")&&l===i4.Mouse)&&(l=null)):i3[t]===i3.Click&&(l=u,u=null);let d=iG(s)?s.changedTouches[0]:s;if(!d)return;let p=n.getId(a),{clientX:f,clientY:h}=d;or(e)({type:i3[c],id:p,x:f,y:h,...null!==l&&{pointerType:l}})};return Object.keys(i3).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(e=>{let n=r7(e),r=c(e);if(window.PointerEvent)switch(i3[e]){case i3.MouseDown:case i3.MouseUp:n=n.replace("mouse","pointer");break;case i3.TouchStart:case i3.TouchEnd:return}l.push(iL(n,r,t))}),or(()=>{l.forEach(e=>e())})}(e),s=oa(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return iL("resize",or(ij(or(()=>{let t=iU(),i=iB();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=oo(e),c=e.isTrusted,g=n&&ie(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||0>ol.indexOf(g)||iW(n,r,i,o,!0))return;let v=n;if(v.classList.contains(s)||a&&v.matches(a))return;let b=ir(n),_=ii(v,g,b),w=!1,S=r8({maskInputOptions:l,tagName:g,type:b}),x=iM(n,p,h,f,m,S);("radio"===b||"checkbox"===b)&&(w=n.checked),_=r9({isMasked:x,element:n,value:_,maskInputFn:u}),y(n,d?{text:_,isChecked:w,userTriggered:c}:{text:_,isChecked:w});let E=n.name;"radio"===b&&E&&w&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach(e=>{if(e!==n){let t=r9({isMasked:x,element:e,value:ii(e,g,b),maskInputFn:u});y(e,d?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}})}function y(t,r){let i=ou.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){ou.set(t,r);let i=n.getId(t);or(e)({...r,id:i})}}let v=("last"===c.input?["change"]:["input","change"]).map(e=>iL(e,or(g),t)),b=t.defaultView;if(!b)return()=>
26{v.forEach(e=>e())};let _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...w.map(e=>(function e(t,n,r,i,o=window){let s=o.Object.getOwnPropertyDescriptor(t,n);return o.Object.defineProperty(t,n,i?r:{set(e){i0(()=>{r.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,n,s||{},!0)})(e[0],e[1],{set(){or(g)({target:this,isTrusted:!1})}},!1,b))),or(()=>{v.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:s}){let a=or(s=>ij(or(o=>{let a=oo(o);if(!a||iW(a,t,n,r,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=a;e({type:s,id:i.getId(a),currentTime:l,volume:u,muted:c,playbackRate:d})}),o.media||500)),l=[iL("play",a(i5.Play),s),iL("pause",a(i5.Pause),s),iL("seeked",a(i5.Seeked),s),iL("volumechange",a(i5.VolumeChange),s),iL("ratechange",a(i5.RateChange),s)];return or(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let i,o;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:or((r,i,o)=>{let[s,a]=o,{id:l,styleId:u}=od(i,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:a}]}),r.apply(i,o)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:or((r,i,o)=>{let[s]=o,{id:a,styleId:l}=od(i,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:s}]}),r.apply(i,o)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:or((r,i,o)=>{let[s]=o,{id:a,styleId:l}=od(i,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:s}),r.apply(i,o)})})),r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:or((r,i,o)=>{let[s]=o,{id:a,styleId:l}=od(i,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:s}),r.apply(i,o)})}));let l={};om("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(om("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),om("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),om("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));let u={};return Object.entries(l).forEach(([r,i])=>{u[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[r].insertRule,{apply:or((r,i,o)=>{let[s,a]=o,{id:l,styleId:u}=od(i.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:[...oc(i),a||0]}]}),r.apply(i,o)})}),i.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:or((r,i,o)=>{let[s]=o,{id:a,styleId:l}=od(i.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...oc(i),s]}]}),r.apply(i,o)})})}),or(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=a,i&&(r.CSSStyleSheet.prototype.replace=i),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:r}),d=op(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:or((i,s,a)=>{let[l,u,c]=a;if(n.has(l))return o.apply(s,[l,u,c]);let{id:d,styleId:p}=od(s.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:oc(s.parentRule)}),i.apply(s,a)})});let s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:or((i,o,a)=>{let[l]=a;if(n.has(l))return s.apply(o,[l]);let{id:u,styleId:c}=od(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:oc(o.parentRule)}),i.apply(o,a)})}),or(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:r}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){let r=new o(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let s=iD(t.fonts,"add",function(t){return function(n){return i0(or(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=o}),r.push(s),or(()=>
26{r.forEach(e=>e())})}(e)));let h=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:s}=e,a=!0,l=or(()=>{let e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:s,startOffset:a,endContainer:u,endOffset:c}=e.getRangeAt(t);iW(s,r,i,o,!0)||iW(u,r,i,o,!0)||l.push({start:n.getId(s),startOffset:a,end:n.getId(u),endOffset:c})}s({ranges:l})});return l(),iL("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let n=e.defaultView;return n&&n.customElements?iD(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,r,t.options));return or(()=>{oi.forEach(e=>e.reset()),n?.disconnect(),i(),o(),s(),a(),l(),u(),c(),d(),p(),f(),h(),m(),g.forEach(e=>e())})}function oh(e){return void 0!==window[e]}function om(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class og{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
26getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:r.get(t)||-1}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}}class oy{constructor(){this.crossOriginIframeMirror=new og(ih),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ov{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new og(ih),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new og(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let n=i6(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case i1.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:i1.IncrementalSnapshot,data:{source:i2.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case i1.Meta:case i1.Load:case i1.DomContentLoaded:break;case i1.Plugin:return t;case i1.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case i1.IncrementalSnapshot:switch(t.data.source){case i2.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 i2.Drag:case i2.TouchMove:case i2.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case i2.ViewportResize:return!1;case i2.MediaInteraction:case i2.MouseInteraction:case i2.Scroll:case i2.CanvasMutation:case i2.Input:return this.replaceIds(t.data,e,["id"]),t;case i2.StyleSheetRule:case i2.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case i2.Font:return t;case i2.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case i2.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])||"number"==typeof t[i])&&(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
26h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===r1.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ob{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class o_{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(!r3(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=os({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(oa({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),i0(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(op({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=i6(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(iD(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&iZ(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var ow="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oS="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ox=0;ox<ow.length;ox++)oS[ow.charCodeAt(ox)]=ox;class oE{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class ok{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new iX,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;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:r5(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class oO{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,function(...e){iQ("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){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)}let oT=new r6;function oC(e={}){let t;let{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:a=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:w,maskAttributeFn:S,maskInputFn:x,maskTextFn:E,maxCanvasSize:k=null,packFn:O,sampling:T={},dataURLOptions:C={},mousemoveWait:R,recordDOM:M=!0,recordCanvas:I=!1,recordCrossOriginIframes:P=!1,recordAfter:L="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:N=!1,collectFonts:A=!1,inlineImages:j=!1,plugins:D,keepIframeSrcFn:$=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:U,onMutation:B,getCanvasManager:z}=e;v=U;let W=!P||window.parent===window,H=!1;if(!W)try{window.parent.document&&(H=!1)}catch(e){H=!0}if(W&&!n)throw Error("emit function is required");if(!W&&!H)return()=>{};void 0!==R&&void 0===T.mousemove&&(T.mousemove=R),oT.reset();let G=!0===g?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},J=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w}:w||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let V=0,q=e=>{for(let t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return O&&!H&&(e=O(e)),e};b=(e,o)=>{if(e.timestamp=i$(),oi[0]?.isFrozen()&&e.type!==i1.FullSnapshot&&!(e.type===i1.IncrementalSnapshot&&e.data.source===i2.Mutation)&&oi.forEach(e
26=>e.unfreeze()),W)n?.(q(e),o);else if(H){let t={type:"rrweb",event:q(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===i1.FullSnapshot)t=e,V=0;else if(e.type===i1.IncrementalSnapshot){if(e.data.source===i2.Mutation&&e.data.isAttachIframe)return;V++;let n=i&&V>=i,o=r&&t&&e.timestamp-t.timestamp>r;(n||o)&&er(!0)}};let X=e=>{b({type:i1.IncrementalSnapshot,data:{source:i2.Mutation,...e}})},K=e=>b({type:i1.IncrementalSnapshot,data:{source:i2.Scroll,...e}}),Z=e=>b({type:i1.IncrementalSnapshot,data:{source:i2.CanvasMutation,...e}}),Y=new ok({mutationCb:X,adoptedStyleSheetCb:e=>b({type:i1.IncrementalSnapshot,data:{source:i2.AdoptedStyleSheet,...e}})}),Q="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new oy:new ov({mirror:oT,mutationCb:X,stylesheetManager:Y,recordCrossOriginIframes:P,wrappedEmit:b});for(let e of D||[])e.getMirror&&e.getMirror({nodeMirror:oT,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});let ee=new oO,et=function(e,t){try{return e?e(t):new oE}catch{return console.warn("Unable to initialize CanvasManager"),new oE}}(z,{mirror:oT,win:window,mutationCb:e=>b({type:i1.IncrementalSnapshot,data:{source:i2.CanvasMutation,...e}}),recordCanvas:I,blockClass:o,blockSelector:s,unblockSelector:a,maxCanvasSize:k,sampling:T.canvas,dataURLOptions:C,errorHandler:U}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ob:new o_({mutationCb:X,scrollCb:K,bypassOptions:{onMutation:B,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:G,dataURLOptions:C,maskAttributeFn:S,maskTextFn:E,maskInputFn:x,recordCanvas:I,inlineImages:j,sampling:T,slimDOMOptions:J,iframeManager:Q,stylesheetManager:Y,canvasManager:et,keepIframeSrcFn:$,processedNodeManager:ee},mirror:oT}),er=(e=!1)=>{if(!M)return;b({type:i1.Meta,data:{href:window.location.href,width:iB(),height:iU()}},e),Y.reset(),en.init(),oi.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new r6,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:O=()=>!1}=t;return iP(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:p,recordCanvas:f,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:k,keepIframeSrcFn:O,newlyAddedElement:!1})}(document,{mirror:oT,blockClass:o,blockSelector:s,unblockSelector:a,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:G,maskAttributeFn:S,maskInputFn:x,maskTextFn:E,slimDOM:J,dataURLOptions:C,recordCanvas:I,inlineImages:j,onSerialize:e=>{iJ(e,oT)&&Q.addIframe(e),iV(e,oT)&&Y.trackLinkElement(e),iq(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Q.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:$});if(!t)return console.warn("Failed to snapshot the document");b({type:i1.FullSnapshot,data:{node:t,initialOffset:iF(window)}}
26),oi.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,oT.getId(document))};_=er;try{let e=[],t=e=>or(of)({onMutation:B,mutationCb:X,mousemoveCb:(e,t)=>b({type:i1.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>b({type:i1.IncrementalSnapshot,data:{source:i2.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>b({type:i1.IncrementalSnapshot,data:{source:i2.ViewportResize,...e}}),inputCb:e=>b({type:i1.IncrementalSnapshot,data:{source:i2.Input,...e}}),mediaInteractionCb:e=>b({type:i1.IncrementalSnapshot,data:{source:i2.MediaInteraction,...e}}),styleSheetRuleCb:e=>b({type:i1.IncrementalSnapshot,data:{source:i2.StyleSheetRule,...e}}),styleDeclarationCb:e=>b({type:i1.IncrementalSnapshot,data:{source:i2.StyleDeclaration,...e}}),canvasMutationCb:Z,fontCb:e=>b({type:i1.IncrementalSnapshot,data:{source:i2.Font,...e}}),selectionCb:e=>{b({type:i1.IncrementalSnapshot,data:{source:i2.Selection,...e}})},customElementCb:e=>{b({type:i1.IncrementalSnapshot,data:{source:i2.CustomElement,...e}})},blockClass:o,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:G,inlineStylesheet:m,sampling:T,recordDOM:M,recordCanvas:I,inlineImages:j,userTriggeredOnInput:N,collectFonts:A,doc:e,maskAttributeFn:S,maskInputFn:x,maskTextFn:E,keepIframeSrcFn:$,blockSelector:s,unblockSelector:a,slimDOMOptions:J,dataURLOptions:C,mirror:oT,iframeManager:Q,stylesheetManager:Y,shadowDomManager:en,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:F,plugins:D?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>b({type:i1.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});Q.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{er(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(iL("DOMContentLoaded",()=>{b({type:i1.DomContentLoaded,data:{}}),"DOMContentLoaded"===L&&n()})),e.push(iL("load",()=>{b({type:i1.Load,data:{}}),"load"===L&&n()},window))),()=>{e.forEach(e=>e()),ee.destroy(),_=void 0,v=void 0}}catch(e){console.warn(e)}}function oR(e){return e>9999999999?e:1e3*e}function oM(e){return e>9999999999?e/1e3:e}function oI(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:i1.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,ef.Fv)(t,10,1e3)}}),"console"===t.category)))}function oP(e){return e.closest("button,a")||e}function oL(e){let t=oN(e);return t&&t instanceof Element?oP(t):t}function oN(e){return"object"==typeof e&&e&&"target"in e?e.target:e}oC.mirror=oT,oC.takeFullSnapshot=function(e){if(!_)throw Error("please take full snapshot after start recording");_(e)},(C=M||(M={}))[C.NotStarted=0]="NotStarted",C[C.Running=1]="Running",C[C.Stopped=2]="Stopped";let oA=new Set([i2.Mutation,i2.StyleSheetRule,i2.StyleDeclaration,i2.AdoptedStyleSheet,i2.CanvasMutation,i2.Selection,i2.MediaInteraction]);class oj{constructor(e,t,n=oI){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(){var e;let t=(e=()=>{this._lastMutation=o$()},w||(w=[],(0,q.hl)(rX,"open",function(e){return function(...t){if(w)try{w.forEach(e=>e())}catch(e){}return e.apply(rX,t)}})),w.push(e),()=>{let t=w?w.indexOf(e):-1;t>-1&&w.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n;if(n=this._ignoreSelector,!oD.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||n&&t.matches(n)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let r={timestamp:oM(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===r.node&&1>
26Math.abs(e.timestamp-r.timestamp))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=oM(e)}registerScroll(e=Date.now()){this._lastScroll=oM(e)}registerClick(e){let t=oP(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=o$();for(let n of(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)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),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,{clickCount:i,clickBreadcrumb:o}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:rX.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,s);return}if(i>1){let e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:rX.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=tB(()=>this._checkClicks(),1e3)}}let oD=["A","BUTTON","INPUT"];function o$(){return Date.now()/1e3}function oF(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var oU=((R=oU||{})[R.Document=0]="Document",R[R.DocumentType=1]="DocumentType",R[R.Element=2]="Element",R[R.Text=3]="Text",R[R.CDATA=4]="CDATA",R[R.Comment=5]="Comment",R);let oB=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),oz=e=>t=>{if(!e.isEnabled())return;let n=function(e){let{target:t,message:n}=function(e){let t;let n="click"===e.name,r=null;try{r=n?oL(e.event):oN(e.event),t=(0,en.Rt)(r,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:r,message:t}}(e);return oF({category:`ui.${e.name}`,...oW(t,n)})}(t);if(!n)return;let r="click"===t.name,i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,oL(t.event)),oI(e,n)};function oW(e,t){let n=oC.mirror.getId(e),r=n&&oC.mirror.getNode(n),i=r&&oC.mirror.getMeta(r),o=i&&i.type===oU.Element?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>e.type===oU.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(oB.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(o.attributes)}}:{}}}let oH={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:oV(o),end:oV(i),name:r,data:{size:u,statusCode:l,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,o=oV(i);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:oV(f),end:oV(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function oG(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function oJ(e){let t=oH[e.entryType];return t?t(e):null}function oV(e){return(((0,eS.Z1)()||rX.performance.timeOrigin)+e)/1e3}function oq(e){let t=e.entries[e.entries.length-1];return oY(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function oX(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=oC.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return oY(e,"cumulative-layout-shift",n,t)}function oK(e){let t=e.entries[e.entries.length-1];return oY(e,"first-input-delay",t?.target?[t.target]:void 0)}function oZ(e){let t=e.entries[e.entries.length-1];return oY(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function oY(e,t,n,r){let i=e.value,o=e.rating,s=oV(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:o,nodeIds:n?n.map(e=>oC.mirror.getId(e)):void 0,attributions:r}}}let oQ=["info","warn","error","log"],o0=function(){let e={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}};
26return oQ.forEach(t=>{e[t]=()=>void 0}),e}();class o1 extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class o2{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>2e7)throw new o1;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=this.events.map(e=>e.timestamp).sort()[0];return e?oR(e):null}}class o3{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let o=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",o),!t.success){i(Error("Error in compression worker"));return}r(t.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class o4{constructor(e){this._worker=new o3(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=oR(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new o1):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,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}}class o5{constructor(e){this._fallback=new o2,this._compression=new o4(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}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){}}}function o6(){try{return"sessionStorage"in rX&&!!rX.sessionStorage}catch{return!1}}function o8(e){return void 0!==e&&Math.random()<e}function o9(e){let t=Date.now(),n=e.id||(0,U.DM)(),r=e.started||t,i=e.lastActivity||t;return{id:n,started:r,lastActivity:i,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function o7(e){if(o6())try{rX.sessionStorage.setItem(rK,JSON.stringify(e))}catch{}}function se({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=o9({sampled:o8(e)?"session":!!t&&"buffer",previousSessionId:r});return n&&o7(i),i}function st(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function sn(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return st(e.started,t,r)||st(e.lastActivity,n,r)}function sr(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!sn(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function si({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&function(){if(!o6())return null;try{let e=rX.sessionStorage.getItem(rK);if(!e)return null;let t=JSON.parse(e);return o9(t)}catch{return null}}();return i?sr(i,{sessionIdleExpire:e,maxReplayDuration:t})?se(r,{previousSessionId:i.id}):i:se(r,{previousSessionId:n})}function so(e,t,n){return!!sa(e,t)&&(ss(e,t,n),!0)}async function ss(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i="buffer"===e.recordingMode;
26try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let o=e.getOptions(),s=function(e,t){try{if("function"==typeof t&&e.type===i1.Custom)return t(e)}catch(e){return null}return e}(t,o.beforeAddRecordingEvent);if(!s)return;return await r.addEvent(s)}catch(o){let t=o&&o instanceof o1;if(t&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"});let n=(0,V.s3)();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function sa(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=oR(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function sl(e){return"transaction"===e.type}function su(e){return"feedback"===e.type}function sc(e){return!!e.category}function sd(){let e=(0,V.nZ)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,e_.HN)();if(t){let e=(0,ea.jC)(t);delete e.replay_id}}function sp(e,t){return t.map(({type:t,start:n,end:r,name:i,data:o})=>{let s=e.throttledAddEvent({type:i1.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof s?Promise.resolve(null):s})}function sf(e,t){e.isEnabled()&&null!==t&&!function(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return!!n&&e.includes(n.host)||!!r&&rW(e)===rW(r)}(t.name,(0,V.s3)())&&e.addUpdate(()=>(sp(e,[t]),!0))}function sh(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=rJ(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function sm(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function sg(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function sy(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:s,request:a,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:(0,q.Jr)({method:o,statusCode:s,request:a,response:l})}}function sv(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function sb(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,n=function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){let t=e.slice(0,15e4);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}â¦`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=i,o?.length&&(r._meta={warnings:o}),r}function s_(e,t){return Object.entries(e).reduce((n,[r,i])=>{let o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=i),n},{})}function sw(e,t){let n=function(e,t=rX.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(rX.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}(e);return(0,B.U0)(n,t)}async function sS(e,t,n){try{let r=await sx(e,t,n),i=sy("resource.fetch",r);sf(n.replay,i)}catch(e){}}async function sx(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:s,method:a,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=sw(s,n.networkDetailAllowUrls)&&!sw(s,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?1===n.length&&"string"!=typeof n[0]?sT(n[0],t):2===n.length?sT(n[1],t):{}:{};if(!e)return sb(i,r,void 0);let[o,s]=rV(rq(n),o0),a=sb(i,r,o);return s?sg(a,s):a}(n,t.input,u):sv(u),response:await sE(d,n,t.response,c)}}async function sE(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return sv(i);let o=r?sO(r.headers,n):{};if(!r||!t&&void 0!==i)return sb(o,i,void 0);let[s,a]=await sk(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let o=e?.length&&void 0===n?sh(e):n;if(!r)return sv(o);if(t)return sb(i,o,e);return sb(i,o,void 0)}catch(e){return sb(i,n,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});return a?sg(l,a):l}async function sk(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];
26try{return[await new Promise((e,n)=>{let r=tB(()=>n(Error("Timeout while trying to read response body")),500);sC(t).then(t=>e(t),e=>n(e)).finally(()=>clearTimeout(r))})]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function sO(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function sT(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?sO(n,t):Array.isArray(n)?{}:s_(n,t):{}}async function sC(e){return await e.text()}async function sR(e,t,n){try{let r=function(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:s,xhr:a}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!a||!sw(l,n.networkDetailAllowUrls)||sw(l,n.networkDetailDenyUrls)){let e=sv(d);return{startTimestamp:i,endTimestamp:o,url:l,method:u,statusCode:c,request:e,response:sv(p)}}let f=a[e3],h=f?s_(f.request_headers,n.networkRequestHeaders):{},m=s_(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}(a),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?rV(s,o0):[void 0],[v,b]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return[void 0]}(a):[void 0],_=sb(h,d,g),w=sb(m,p,v);return{startTimestamp:i,endTimestamp:o,url:l,method:u,statusCode:c,request:y?sg(_,y):_,response:b?sg(w,b):w}}(e,t,n),i=sy("resource.xhr",r);sf(n.replay,i)}catch(e){}}async function sM(e){try{return Promise.all(sp(e,[function(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}}}}(rX.performance.memory)]))}catch(e){return[]}}let sI=I.GLOBAL_OBJ.navigator;async function sP({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,i);let o=await (0,eC.R)(e.getOptions(),r,i,t,e,(0,V.aF)());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";let s=e.getSdkMetadata(),{name:a,version:l}=s?.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:l||"0.0.0"},o}async function sL({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){var s;let a;let l=function({recordingData:e,headers:t}){let n;let r=`${JSON.stringify(t)} 27`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:u,errorIds:c,traceIds:d,initialTimestamp:p}=r,f=(0,V.s3)(),h=(0,V.nZ)(),m=f?.getTransport(),g=f?.getDsn();if(!f||!m||!g||!o.sampled)return(0,ek.WD)({});let y={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,urls:u,replay_id:t,segment_id:n,replay_type:o.sampled},v=await sP({scope:h,client:f,replayId:t,event:y});if(!v)return f.recordDroppedEvent("event_processor","replay"),(0,ek.WD)({});delete v.sdkProcessingMetadata;let b=(s=f.getOptions().tunnel,eh(eb(v,ev(v),s,g),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{a=await m.send(b)}catch(t){let e=Error(rZ);try{e.cause=t}catch{}throw e}if("number"==typeof a.statusCode&&(a.statusCode<200||a.statusCode>=300))throw new sN(a.statusCode);let _=tW({},a);if(tz(_,"replay"))throw new sA(_);return a}class sN extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class sA extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function sj(e,t={count:0,interval:5e3}){let{recordingData:n,onError:r}=e;if(n.length)try{return await sL(e),!0}catch(n){if(n instanceof sN||n instanceof sA)throw n;if((0,N.v)("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){let e=Error(`${rZ} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{tB(async()=>{try{await sj(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let sD="__THROTTLED";class s${constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,o;let s=n?.maxWait?Math.max(n.maxWait,t):0;function a(){return l(),r=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function u(){return i&&clearTimeout(i),i=tB(a,t),s&&void 0===o&&(o=tB(a,s)),r}return u.cancel=l,u.flush=function(){return void 0!==i||void 0!==o?a():r},u}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,i=e=>{let t=e-5;r.forEach((e,n)=>{n<t&&r.delete(n)})},o=()=>[...r.values()].reduce((e,t)=>
27e+t,0),s=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3);if(i(n),o()>=300){let e=s;return s=!0,e?"__SKIPPED":sD}s=!1;let a=r.get(n)||0;return r.set(n,a+1),e(...t)}}((e,t)=>sa(this,e)?ss(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new oj(this,i)),this._handleVisibilityChange=()=>{"visible"===rX.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=oF({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=oF({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:s,target:a}=e;if(!a||"INPUT"===(t=a).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!s)return null;let l=n||i||o,u=1===s.length;if(!l&&u)return null;let c=(0,en.Rt)(a,{maxStringLength:200})||"<unknown>",d=oW(a,c);return oF({category:"ui.keyDown",message:c,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:s}})}(t);n&&oI(e,n)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,!r&&(this._initializeSessionForSampling(e),this.session)&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=si({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let e=si({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{var e;let t;let n=this._canvas;this._stopRecording=oC({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let i=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:n}=t.data;if(oA.has(n)&&e.registerMutation(t.timestamp),n===i2.Scroll&&e.registerScroll(t.timestamp),t.data.source===i2.MouseInteraction){let{type:n,id:r}=t.data,i=oC.mirror.getNode(r);i instanceof HTMLElement&&n===i3.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!so(e,n,i))return!0;if(!i)return!1;let t=e.session;if(i&&e.session&&0===e.session.segmentId&&so(e,function(e){let t=e.getOptions();return{type:i1.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1),"buffer"===e.recordingMode&&t&&e.eventBuffer){let n=e.eventBuffer.getEarliestTimestamp();n&&(t.started=n,e.getOptions().stickySession&&o7(t))}
27return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(sI?.userAgent??"")||/Macintosh/i.test(sI?.userAgent??"")&&sI?.maxTouchPoints&&sI?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{sd(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(o6())try{rX.sessionStorage.removeItem(rK)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&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"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&st(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${rX.location.pathname}${rX.location.hash}${rX.location.search}`,t=`${rX.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===sD){let e=oF({category:"replay.throttled"});this.addUpdate(()=>!so(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||(0,e_.HN)(),t=e&&(0,e_.Gx)(e),n=(t&&(0,e_.XU)(t).data||{})[eR.Zj];if(t&&n&&["route","custom"].includes(n))return(0,e_.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),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))}
vendor: 4,591 bytes, line 27
27,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;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,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}}},O=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;
27++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)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var 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}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){G.prototype.flush.call(this)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),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)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),s=i.length;return q(i,n),j(i,s-8,r.d()),j(i,s-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;let n=new Worker(t);return new o5(n)}catch(e){}}(t);if(e)return e}return new o2}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=si({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!sr(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{rX.document.addEventListener("visibilitychange",this._handleVisibilityChange),rX.addEventListener("blur",this._handleWindowBlur),rX.addEventListener("focus",this._handleWindowFocus),rX.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e,{autoFlushOnFeedback:t}){let n=(0,V.s3)();e0(oz(e)),e6(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(sp(e,[n]),!1)))}),function(e){let t=(0,V.s3)();t&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(!e.isEnabled()||!sc(t))return;let n=!sc(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return oF(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}â¦`):e;if("object"==typeof e)try{let t=(0,ef.Fv)(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}â¦`;return t}catch{}return e});return oF({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):oF(t);
27n&&oI(e,n)})(e,t))}(e),function(e){let t=(0,V.s3)();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{"xhr"===t.category&&n?.xhr&&(function(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=sh(r),o=n.getResponseHeader("content-length")?sm(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return sh(n)}catch{return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),sR(t,n,e)),"fetch"===t.category&&n?.response&&(function(e,t){let{input:n,response:r}=t,i=sh(n?rq(n):void 0),o=r?sm(r.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),sS(t,n,e))}catch(e){}})(a,e,t))}catch{}}(e);let r=Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:"replay_event"===t.type?(delete t.breadcrumbs,t):!t.type||sl(t)||su(t)?e.checkAndHandleExpiredSession()?su(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:i1.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&n.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions?null:(("buffer"===e.recordingMode&&t.message!==rZ&&t.exception&&!t.type&&o8(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(sd(),t):t,{id:"Replay"});(0,N.Qy)(r),n&&(n.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let n=t.exception?.values?.[0]?.value;"string"==typeof n&&(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))&&oI(e,oF({category:"replay.hydrate-error",data:{url:(0,en.l4)()}}))}(e,t)}),n.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!sl(t))return;let r=n?.statusCode;if(r&&!(r<200)&&!(r>=300)){if(sl(t)){(function(e,t){let n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)})(e,t);return}(function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&tB(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})})(e,t)}}),n.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),n.on("spanStart",t=>{e.lastActiveSpan=t}),n.on("spanEnd",t=>{e.lastActiveSpan=t}),n.on("beforeSendFeedback",async(n,r)=>{let i=e.getSessionId();r?.includeReplay&&e.isEnabled()&&i&&n.contexts?.feedback&&("api"===n.contexts.feedback.source&&t&&await e.flush(),n.contexts.feedback.replay_id=i)}),t&&n.on("openFeedbackWidget",async()=>{await e.flush()}))}(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push(nN(e,n))}),r.push(nI(oG(oq,e)),nM(oG(oX,e)),nP(oG(oK,e)),nL(oG(oZ,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{rX.document.removeEventListener("visibilitychange",this._handleVisibilityChange),rX.removeEventListener("blur",this._handleWindowBlur),rX.removeEventListener("focus",this._handleWindowFocus),rX.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}
27_doChangeToBackgroundTasks(e){!this.session||sn(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&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:i1.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(oJ).filter(Boolean).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(sp(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();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}
27_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&&(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents)&&(await sM(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await sj({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,V.s3)();e&&e.recordDroppedEvent(t instanceof sA?"ratelimit_backoff":"send_error","replay")}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!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){r&&this._debouncedFlush();return}let o=this.eventBuffer;o&&0===this.session.segmentId&&o.hasCheckout;let s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&o7(this.session)}_onMutationHandler(e){let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let e=oF({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function sF(e,t){return[...e,...t].join(",")}let sU='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',sB=["content-length","content-type","accept"],sz=!1;class sW{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:s,_experiments:a={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:w=["title","placeholder"],unmask:S=[],block:x=[],unblock:E=[],ignore:k=[],maskFn:O,beforeAddRecordingEvent:T,beforeErrorSampling:C,onError:R}={}){this.name="Replay";let M=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:sF(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:sF(t,[]),blockSelector:sF(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:sF(r,[]),ignoreSelector:sF(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:_,unmask:S,block:x,unblock:E,ignore:k});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o})({maskAttributes:w,maskAllText:l,privacyOptions:M,key:e,value:t,el:n}),...M,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}},recordCrossOriginIframes:!!a.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,3
276e5),stickySession:i,useCompression:o,workerUrl:s,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:sH(v),networkResponseHeaders:sH(b),beforeAddRecordingEvent:T,beforeErrorSampling:C,onError:R,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${sU}`:sU),this._isInitialized&&rG())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return sz}set _isInitialized(e){sz=e}afterAllSetup(e){rG()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,q.Jr)(e)},i=(0,eT.o)(n.replaysSessionSampleRate),o=(0,eT.o)(n.replaysOnErrorSampleRate);return null==i&&null==o&&(0,j.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(r.sessionSampleRate=i),null!=o&&(r.errorSampleRate=o),r}(this._initialOptions,e);this._replay=new s$({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function sH(e){return[...sB,...e.map(e=>e.toLowerCase())]}globalThis._sentryRewritesTunnelPath=void 0,globalThis.SENTRY_RELEASE={id:"5a209de7bac0d232ea7c0884a48963eb890474d0"},globalThis._sentryBasePath=void 0,globalThis._sentryRewriteFramesAssetPrefixPath="",globalThis._sentryAssetPrefix=void 0,globalThis._sentryExperimentalThirdPartyOriginStackFrames=void 0,function(e){let t={environment:function(e){let t=e?"production":tV.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=tG(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(function(e={}){let t=rx({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){var i;if(r&&(i=e,eH.document.getElementById("__NEXT_DATA__")?rL.events.on("routeChangeStart",e=>{let t,n;let r=tl(e),o=function(e){let t=eH.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(r);o?(t=o,n="route"):(t=r,n="url"),rk(i,{name:t,attributes:{[eR.$J]:"navigation",[eR.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[eR.Zj]:n}})}):function(e){let t;eH.addEventListener("popstate",()=>{t?.isRecording()?(t.updateName(eH.location.pathname),t.setAttribute(eR.Zj,"url")):t=rk(e,{name:eH.location.pathname,attributes:{[eR.$J]:"navigation",[eR.S3]:"auto.navigation.nextjs.app_router_instrumentation",[eR.Zj]:"url","navigation.type":"browser.popstate"}})});let n=!1,r=0,i=setInterval(()=>{r++;let o=rR?.next?.router??rR?.nd?.router;n||r>500?clearInterval(i):o&&(clearInterval(i),n=!0,["back","forward","push","replace"].forEach(n=>{o?.[n]&&(o[n]=new Proxy(o[n],{apply(r,i,o){let s=rC,a={[eR.$J]:"navigation",[eR.S3]:"auto.navigation.nextjs.app_router_instrumentation",[eR.Zj]:"url"};return"push"===n?(s=rM(o[0]),a[eR.Zj]="url",a["navigation.type"]="router.push"):"replace"===n?(s=rM(o[0]),a[eR.Zj]="url",a["navigation.type"]="router.replace"):"back"===n?a["navigation.type"]="router.back":"forward"===n&&(a["navigation.type"]="router.forward"),t=rk(e,{name:s,attributes:a}),r.apply(i,o)}}))}))},20)}(i)),t.afterAllSetup(e),n)eH.document.getElementById("__NEXT_DATA__")?function(e){let{route:t,params:n,sentryTrace:r,baggage:i}=function(){let e;let t=eH.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){rP.X&&j.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:o}=e;return n.route=r,n.params=i,o?.pageProps&&(n.sentryTrace=o.pageProps._sentryTraceData,n.baggage=o.pageProps._sentryBaggage),n}(),o=(0,rf.XM)(i),s=t||eH.location.pathname;o?.["sentry-transaction"]&&"/_error"===s&&(s=(s=o["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let a=(0,eS.Z1)();rE(e,{name:s,startTime:a?a/1e3:void 0,attributes:{[eR.$J]:"pageload",[eR.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[eR.Zj]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:i})}(e):function(e){let t=(0,eS.Z1)();rE(e,{name:eH.location.pathname,startTime:t?t/1e3:void 0,attributes:{[eR.$J]:"pageload",[eR.S3]:"auto.pageload.nextjs.app_router_instrumentation",[eR.Zj]:"url"}})}(e)}}}());let n=rB.env._sentryRewriteFramesAssetPrefixPath||rz._sentryRewriteFramesAssetPrefixPath||"",r=rB.env._sentryAssetPrefix||rz._sentryAssetPrefix,i=rB.env._sentryBasePath||rz._sentryBasePath,o="true"===rB.env._experimentalThirdPartyOriginStackFrames||"true"===rz._experimentalThirdPartyOriginStackFrames;return t.push(r$({assetPrefix:r,basePath:i,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:o})),t}(e),...e};(function(e){let t=rF.env._sentryRewritesTunnelPath||rU._sentryRewritesTunnelPath;if(t&&e.dsn){let n=ec(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],o=r[2],s=`${t}?o=${i}&p=${n.projectId}`;o&&(s+=`&r=${o}`),e.tunnel=s,rP.X&&j.kg.info(`Tunneling events to "${s}"`)}else rP.X&&j.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}})(t),L(t,"nextjs",["nextjs","react"]),function(e){let t={...e};
27L(t,"react"),(0,N.v)("react",{version:tJ.version}),function(e={}){let t=function(e={}){return{defaultIntegrations:tG(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eH.SENTRY_RELEASE?.id,sendClientReports:!0,...function(e){let t={};for(let n of Object.getOwnPropertyNames(e))void 0!==e[n]&&(t[n]=e[n]);return t}(e)}}(e);!(!t.skipBrowserExtensionCheck&&function(){let e=void 0!==eH.window&&eH;if(!e)return!1;let t=e.chrome?"chrome":"browser",n=e[t],r=n?.runtime?.id,i=(0,en.l4)()||"",o=!!r&&eH===eH.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>i.startsWith(`${e}//`)),s=void 0!==e.nw;return!!r&&!o&&!s}())&&function(e,t){!0===t.debug&&(A.X?j.kg.enable():(0,j.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,V.nZ)().update(t.initialScope);let n=new e(t);(0,V.nZ)().setClient(n),n.init()}(eV,{...t,stackParser:(0,Z.Sq)(t.stackParser||tD),integrations:function(e){let t;let n=e.defaultIntegrations||[],r=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(r))t=[...n,...r];else if("function"==typeof r){let e=r(n);t=Array.isArray(e)?e:[e]}else t=n;return function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(t)}(t),transport:t.transport||tH})}(t)}(t);let n=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;n.id="NextClient404Filter",(0,N.Qy)(n);let r=e=>"transaction"===e.type&&e.transaction===rC?null:e;r.id="IncompleteTransactionFilter",(0,N.Qy)(r);let i=(e,t)=>{var n;return(n=t?.originalException,(0,eE.VZ)(n)&&"string"==typeof n.digest&&n.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT")?null:e};i.id="NextRedirectErrorFilter",(0,N.Qy)(i)}({dsn:"https://ae5b540ca9bdb4a410ff47081d0690de@o4507661559267328.ingest.de.sentry.io/4507905621819472",integrations:[new sW(void 0)],tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1})},54115:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(44194),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 28 * @license lucide-react v0.314.0 - ISC 29 * 30 * This source code is licensed under the ISC license. 31 * See the LICENSE file in the root directory of this source tree. 32 */let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),s=(e,t)=>{let n=(0,r.forwardRef)((n,s)=>{let{color:a="currentColor",size:l=24,strokeWidth:u=2,absoluteStrokeWidth:c,className:d="",children:p,...f}=n;return(0,r.createElement)("svg",{ref:s,...i,width:l,height:l,stroke:a,strokeWidth:c?24*Number(u)/Number(l):u,className:["lucide","lucide-".concat(o(e)),d].join(" "),...f},[...t.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(p)?p:[p]])});return n.displayName="".concat(e),n}},25498:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/** 33 * @license lucide-react v0.314.0 - ISC 34 * 35 * This source code is licensed under the ISC license. 36 * See the LICENSE file in the root directory of this source tree. 37 */let r=(0,n(54115).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},69373:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(21512).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61984:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r.actionAsyncStorage}});let r=n(69373);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
37dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21512:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18176:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return f},usePathname:function(){return d},useRouter:function(){return p},useSearchParams:function(){return c},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let r=n(44194),i=n(51570),o=n(78405),s=n(11363),a=n(35343),l=n(39534),u=n(82264);function c(){let e=(0,r.useContext)(o.SearchParamsContext);return(0,r.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function d(){return(0,r.useContext)(o.PathnameContext)}function p(){let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function f(){return(0,r.useContext)(o.PathParamsContext)}function h(e){void 0===e&&(e="children");let t=(0,r.useContext)(i.LayoutRouterContext);return t?function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var l;let e=t[1];o=null!=(l=e.children)?l:Object.values(e)[0]}if(!o)return i;let u=o[0],c=(0,s.getSegmentValue)(u);return!c||c.startsWith(a.PAGE_SEGMENT_KEY)?i:(i.push(c),e(o,n,!1,i))}(t.tree,e):null}function m(e){void 0===e&&(e="children");let t=h(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39534:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return s},RedirectType:function(){return r.RedirectType},notFound:function(){return i.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(24719),i=n(73833);class o extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class s extends URLSearchParams{append(){throw new o}delete(){throw new o}set(){throw new o}sort(){throw new o}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73833:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return i},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
37dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72505:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24719:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return u},getRedirectStatusCodeFromError:function(){return m},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return f},isRedirectError:function(){return p},permanentRedirect:function(){return d},redirect:function(){return c}});let o=n(72069),s=n(61984),a=n(72505),l="NEXT_REDIRECT";function u(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(l);r.digest=l+";"+t+";"+e+";"+n+";";let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function c(e,t){void 0===t&&(t="replace");let n=s.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let n=s.actionAsyncStorage.getStore();throw u(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function p(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,i]=e.digest.split(";",4),o=Number(i);return t===l&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(o)&&o in a.RedirectStatusCode}function f(e){return p(e)?e.digest.split(";",3)[2]:null}function h(e){if(!p(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function m(e){if(!p(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(i=r||(r={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2721:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(21512).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72069:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return i},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(2721);function i(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11363:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82264:function(e,t,n){"use strict";
37Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let r=n(60273)._(n(44194)),i=r.default.createContext(null);function o(e){let t=(0,r.useContext)(i);t&&t(e)}},78860:function(e,t,n){"use strict";n.d(t,{pm:function(){return p}});var r=n(44194);let i=0,o=new Map,s=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},a=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:n}=t;return n?s(n):e.toasts.forEach(e=>{s(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],u={toasts:[]};function c(e){u=a(u,e),l.forEach(e=>{e(u)})}function d(e){let{...t}=e,n=(i=(i+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:n});return c({type:"ADD_TOAST",toast:{...t,id:n,open:!0,onOpenChange:e=>{e||r()}}}),{id:n,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:n}})}}function p(){let[e,t]=r.useState(u);return r.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},83694:function(e,t,n){"use strict";n.d(t,{cn:function(){return D},p6:function(){return $},qD:function(){return U}});let r=/^\[(.+)\]$/;function i(e,t){let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}let o=/\s+/;function s(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=function e(t){let n;if("string"==typeof t)return t;let r="";for(let i=0;i<t.length;i++)t[i]&&(n=e(t[i]))&&(r&&(r+=" "),r+=n);return r}(e))&&(r&&(r+=" "),r+=t);return r}function a(e){let t=t=>t[e]||[];return t.isThemeGetter=!0,t}let l=/^\[(?:([a-z-]+):)?(.+)\]$/i,u=/^\d+\/\d+$/,c=new Set(["px","full","screen"]),d=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,p=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,f=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,h=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,m=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function g(e){return v(e)||c.has(e)||u.test(e)}function y(e){return I(e,"length",P)}function v(e){return!!e&&!Number.isNaN(Number(e))}function b(e){return I(e,"number",v)}function _(e){return!!e&&Number.isInteger(Number(e))}function w(e){return e.endsWith("%")&&v(e.slice(0,-1))}function S(e){return l.test(e)}function x(e){return d.test(e)}let E=new Set(["length","size","percentage"]);function k(e){return I(e,E,L)}function O(e){return I(e,"position",L)}let T=new Set(["image","url"]);function C(e){return I(e,T,A)}function R(e){return I(e,"",N)}function M(){return!0}function I(e,t,n){let r=l.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function P(e){return p.test(e)&&!f.test(e)}function L(){return!1}function N(e){return h.test(e)}function A(e){return m.test(e)}let j=function(e,...t){let n,a,l;let u=function(o){var s;return a=(n={cache:function(e){if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map;function i(i,o){n.set(i,o),++t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}}((s=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:function(e){let{separator:t,experimentalParseClassName:n}=e,r=1===t.length,i=t[0],o=t.length;function s(e){let n;let s=[],a=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===a){if(c===i&&(r||e.slice(u,u+o)===t)){s.push(e.slice(l,u)),l=u+o;continue}if("/"===c){n=u;continue}}"["===c?a++:"]"===c&&a--}let u=0===s.length?e:e.substring(l),c=u.startsWith("!"),d=c?u.substring(1):u;return{modifiers:s,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:n&&n>l?n-l:void 0}}return n?function(e){return n({className:e,parseClassName:s})}:s}(s),...function(e){let t=function(e){var t;let{theme:n,prefix:r}=e,o={nextPart:new Map,validators:[]};return(t=Object.entries(e.classGroups),r?t.map(([e,t])=>[e,t.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[r+e,t])):e)]):t).forEach(([e,t])=>{(function e(t,n,r,o){t.forEach(t=>{if("string"==typeof t){(""===t?n:i(n,t)).classGroupId=r;return}if("function"==typeof t){if(t.isThemeGetter){e(t(o),n,r,o);return}n.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([t,s])=>{e(s,i(n,t),r,o)})})})(t,o,e,n)}),o}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),function e(t,n){if(0===t.length)return n.classGroupId;let r=t[0],i=n.nextPart.get(r),o=i?e(t.slice(1),i):void 0;if(o)return o;if(0===n.validators.length)return;let s=t.join("-");return n.validators.find(({validator:e})=>e(s))?.classGroupId}(n,t)||function(e){if(r.test(e)){let t=r.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){let r=n[e]||[];return t&&o[e]?[...r,...o[e]]:r}}}(s)}).cache.get,l=n.cache.set,u=c,c(o)};function c(e){let t=a(e);if(t)return t;let r=function(e,t){let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=new Set;return e.trim().split(o).map(e=>{let{modifiers:t,hasImportantModifier:i,baseClassName:o,maybePostfixModifierPosition:s}=n(e),a=!!s,l=r(a?o.substring(0,s):o);if(!l){if(!a||!(l=r(o)))return{isTailwindClass:!1,originalClassName:e};a=!1}let u=(function(e){if(e.length<=1)return e;let t=[],n=[];
vendor: 8,035 bytes, line 37
37return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t})(t).join(":");return{isTailwindClass:!0,modifierId:i?u+"!":u,classGroupId:l,originalClassName:e,hasPostfixModifier:a}}).reverse().filter(e=>{if(!e.isTailwindClass)return!0;let{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,o=t+n;return!s.has(o)&&(s.add(o),i(n,r).forEach(e=>s.add(t+e)),!0)}).reverse().map(e=>e.originalClassName).join(" ")}(e,n);return l(e,r),r}return function(){return u(s.apply(null,arguments))}}(function(){let e=a("colors"),t=a("spacing"),n=a("blur"),r=a("brightness"),i=a("borderColor"),o=a("borderRadius"),s=a("borderSpacing"),l=a("borderWidth"),u=a("contrast"),c=a("grayscale"),d=a("hueRotate"),p=a("invert"),f=a("gap"),h=a("gradientColorStops"),m=a("gradientColorStopPositions"),E=a("inset"),T=a("margin"),I=a("opacity"),P=a("padding"),L=a("saturate"),N=a("scale"),A=a("sepia"),j=a("skew"),D=a("space"),$=a("translate"),F=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",S,t],z=()=>[S,t],W=()=>["",g,y],H=()=>["auto",v,S],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],J=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",S],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[v,b],Y=()=>[v,S];return{cacheSize:500,separator:":",theme:{colors:[M],spacing:[g,y],blur:["none","",x,S],brightness:Z(),borderColor:[e],borderRadius:["none","","full",x,S],borderSpacing:z(),borderWidth:W(),contrast:Z(),grayscale:X(),hueRotate:Y(),invert:X(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[w,y],inset:B(),margin:B(),opacity:Z(),padding:z(),saturate:Z(),scale:Z(),sepia:X(),skew:Y(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",S]}],container:["container"],columns:[{columns:[x]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),S]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_,S]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",S]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",_,S]}],"grid-cols":[{"grid-cols":[M]}],"col-start-end":[{col:["auto",{span:["full",_,S]},S]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[M]}],"row-start-end":[{row:["auto",{span:[_,S]},S]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",S]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",S]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",S,t]}],"min-w":[{"min-w":[S,t,"min","max","fit"]}],"max-w":[{"max-w":[S,t,"none","full","min","max","fit","prose",{screen:[x]},x]}],h:[{h:[S,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[S,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[S,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[S,t,"auto","min","max","fit"]}],"font-size":[{text:["base",x,y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",b]}],"font-family":[{font:[M]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",S]}],"line-clamp":[{"line-clamp":["none",v,b]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",g,S]}],"list-image":[{"list-image":["none",S]}],"list-style-type":[{list:["none","disc","decimal",S]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",g,y]}],"underline-offset":[{"underline-offset":["auto",g,S]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",S]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),O]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",k]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},C]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}
vendor: 5,090 bytes, line 37
37],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[I]}],"border-style":[{border:[...J(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:J()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...J()]}],"outline-offset":[{"outline-offset":[g,S]}],"outline-w":[{outline:[g,y]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[g,y]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",x,R]}],"shadow-color":[{shadow:[M]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",x,S]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[L]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",S]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",S]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",S]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[_,S]}],"translate-x":[{"translate-x":[$]}],"translate-y":[{"translate-y":[$]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",S]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",S]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
37],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[g,y,b]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function D(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return j(function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r}(t))}function $(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fr",n=e;return"string"==typeof e&&(n=new Date(e)),n.toLocaleDateString("".concat(t,"-CH"),{year:"numeric",month:"numeric",day:"numeric"})}let F={Å¡:"s",Å :"S",Ä:"e",Ä:"E",á:"a",Ã:"A",ø:"o",Ã:"O"};function U(e){return e?(e?e.normalize("NFC").replace(/[šŠÄÄáÃøÃ]/gu,e=>{var t;return null!==(t=F[e])&&void 0!==t?t:e}):e).split(/([\s-])/).map(e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e).join(""):e}},59618:function(){},70872:function(){},68306:function(){},57844:function(){},74266:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3"}},96329:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:s}
37catch(e){n=s}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&p())}function p(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||u||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},94054:function(e,t,n){e.exports=n(63556)},13518:function(e,t,n){e.exports=n(18176)},75112:function(e,t,n){e.exports=n(32998)},94690:function(e,t,n){e.exports=n(6238)},4507:function(e,t){"use strict";/** @license React v16.13.1 38 * react-is.production.min.js 39 * 40 * Copyright (c) Facebook, Inc. and its affiliates. 41 * 42 * This source code is licensed under the MIT license found in the 43 * LICENSE file in the root directory of this source tree. 44 */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_||e.$$typeof===y)},t.typeOf=w},99415:function(e,t,n){"use strict";e.exports=n(4507)},38883:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var r=n(87737);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return r.GoogleAnalytics}});var i=n(43698);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i.GoogleMapsEmbed}});var o=n(30380);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return o.YouTubeEmbed}})},87737:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}
44,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let o=i(n(89833)),s=n(3140);t.GoogleAnalytics=e=>{var t=r(e,[]);return(0,s.formatData)(o.default,t)}},43698:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let o=i(n(66783)),s=n(3140);t.GoogleMapsEmbed=e=>{var t=r(e,[]);return(0,s.formatData)(o.default,t)}},30380:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let o=i(n(29251)),s=n(3140);t.YouTubeEmbed=e=>{var t=r(e,[]);return(0,s.formatData)(o.default,t)}},3140:function(e,t){"use strict";function n(e,t,n=!1){return t?Object.keys(e).filter(e=>n?!t.includes(e):t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{}):{}}function r(e,t,n,r){let i=r&&Object.keys(r).length>0?new URL(Object.values(r)[0],e):new URL(e);return t&&n&&t.forEach(e=>{n[e]&&i.searchParams.set(e,n[e])}),i.toString()}function i(e,t,n,i,o){var s;if(!t)return`<${e}></${e}>`;let a=(null===(s=t.src)||void 0===s?void 0:s.url)?Object.assign(Object.assign({},t),{src:r(t.src.url,t.src.params,i,o)}):t,l=Object.keys(Object.assign(Object.assign({},a),n)).reduce((e,t)=>{let r=null==n?void 0:n[t],i=a[t],o=null!=r?r:i,s=!0===o?t:`${t}="${o}"`;return o?e+` ${s}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=r,t.createHtml=i,t.formatData=function(e,t){var o,s,a,l,u;let c=n(t,null===(o=e.scripts)||void 0===o?void 0:o.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=n(t,null===(a=null===(s=e.html)||void 0===s?void 0:s.attributes.src)||void 0===a?void 0:a.params),p=n(t,[null===(u=null===(l=e.html)||void 0===l?void 0:l.attributes.src)||void 0===u?void 0:u.slugParam]),f=n(t,[...Object.keys(c),...Object.keys(d),...Object.keys(p)],!0);return Object.assign(Object.assign({},e),{html:e.html?i(e.html.element,e.html.attributes,f,d,p):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:r(e.url,e.params,c)})):null})}},63229:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},47907:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return r}})},74810:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{M:function(){return r}})},52601:function(e,t,n){"use strict";n.d(t,{B:function(){return l}});var r=n(44194),i=n(72664),o=n(16779),s=n(12628),a=n(31549);function l(e){let t=e+"CollectionProvider",[n,l]=(0,i.b)(t),[u,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,a.jsx)(u,{scope:t,itemMap:o,collectionRef:i,children:n})};d.displayName=t;let p=e+"CollectionSlot",f=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=c(p,n),l=(0,o.e)(t,i.collectionRef);return(0,a.jsx)(s.g7,{ref:l,children:r})});f.displayName=p;let h=e+"CollectionItemSlot",m="data-radix-collection-item",g=r.forwardRef((e,t)=>
44{let{scope:n,children:i,...l}=e,u=r.useRef(null),d=(0,o.e)(t,u),p=c(h,n);return r.useEffect(()=>(p.itemMap.set(u,{ref:u,...l}),()=>void p.itemMap.delete(u))),(0,a.jsx)(s.g7,{[m]:"",ref:d,children:i})});return g.displayName=h,[{Provider:d,Slot:f,ItemSlot:g},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},l]}},16779:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return o}});var r=n(44194);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return r.useCallback(i(...e),e)}},72664:function(e,t,n){"use strict";n.d(t,{b:function(){return s},k:function(){return o}});var r=n(44194),i=n(31549);function o(e,t){let n=r.createContext(t);function o(e){let{children:t,...o}=e,s=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(n.Provider,{value:s,children:t})}return o.displayName=e+"Provider",[o,function(i){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function s(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let s=r.createContext(o),a=n.length;function l(t){let{scope:n,children:o,...l}=t,u=n?.[e][a]||s,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})}return n=[...n,o],l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e][a]||s,u=r.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},54513:function(e,t,n){"use strict";n.d(t,{I0:function(){return y},XB:function(){return p},fC:function(){return g}});var r,i=n(44194),o=n(74810),s=n(16537),a=n(16779),l=n(46638),u=n(31549),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:g,onInteractOutside:y,onDismiss:v,...b}=e,_=i.useContext(d),[w,S]=i.useState(null),x=w?.ownerDocument??globalThis?.document,[,E]=i.useState({}),k=(0,a.e)(t,e=>
44S(e)),O=Array.from(_.layers),[T]=[..._.layersWithOutsidePointerEventsDisabled].slice(-1),C=O.indexOf(T),R=w?O.indexOf(w):-1,M=_.layersWithOutsidePointerEventsDisabled.size>0,I=R>=C,P=function(e,t=globalThis?.document){let n=(0,l.W)(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){m("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[..._.branches].some(e=>e.contains(t));!I||n||(f?.(e),y?.(e),e.defaultPrevented||v?.())},x),L=function(e,t=globalThis?.document){let n=(0,l.W)(e),r=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!r.current&&m("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[..._.branches].some(e=>e.contains(t))||(g?.(e),y?.(e),e.defaultPrevented||v?.())},x);return!function(e,t=globalThis?.document){let n=(0,l.W)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{R!==_.layers.size-1||(p?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},x),i.useEffect(()=>{if(w)return n&&(0===_.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),_.layersWithOutsidePointerEventsDisabled.add(w)),_.layers.add(w),h(),()=>{n&&1===_.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r)}},[w,x,n,_]),i.useEffect(()=>()=>{w&&(_.layers.delete(w),_.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,_]),i.useEffect(()=>{let e=()=>E({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(s.WV.div,{...b,ref:k,style:{pointerEvents:M?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.M)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,o.M)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,o.M)(e.onPointerDownCapture,P.onPointerDownCapture)})});p.displayName="DismissableLayer";var f=i.forwardRef((e,t)=>{let n=i.useContext(d),r=i.useRef(null),o=(0,a.e)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(s.WV.div,{...e,ref:o})});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,o):i.dispatchEvent(o)}f.displayName="DismissableLayerBranch";var g=p,y=f},70322:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(44194),i=n(56321),o=n(16537),s=n(70422),a=n(31549),l=r.forwardRef((e,t)=>{let{container:n,...l}=e,[u,c]=r.useState(!1);(0,s.b)(()=>c(!0),[]);let d=n||u&&globalThis?.document?.body;return d?i.createPortal((0,a.jsx)(o.WV.div,{...l,ref:t}),d):null});l.displayName="Portal"},34816:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var r=n(44194),i=n(56321),o=n(16779),s=n(70422),a=e=>{let t,n;let{present:a,children:u}=e,c=function(e){var t,n;let[o,a]=r.useState(),u=r.useRef({}),c=r.useRef(e),d=r.useRef("none"),[p,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=l(u.current);d.current="mounted"===p?e:"none"},[p]),(0,s.b)(()=>{let t=u.current,n=c.current;if(n!==e){let r=d.current,i=l(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,s.b)(()=>
44{if(o){let e=e=>{let t=l(u.current).includes(e.animationName);e.target===o&&t&&i.flushSync(()=>f("ANIMATION_END"))},t=e=>{e.target===o&&(d.current=l(u.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),a(e)},[])}}(a),d="function"==typeof u?u({present:c.isPresent}):r.Children.only(u),p=(0,o.e)(c.ref,(t=Object.getOwnPropertyDescriptor(d.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?d.ref:(t=Object.getOwnPropertyDescriptor(d,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?d.props.ref:d.props.ref||d.ref);return"function"==typeof u||c.isPresent?r.cloneElement(d,{ref:p}):null};function l(e){return e?.animationName||"none"}a.displayName="Presence"},16537:function(e,t,n){"use strict";n.d(t,{WV:function(){return a},jH:function(){return l}});var r=n(44194),i=n(56321),o=n(12628),s=n(31549),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?o.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},12628:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return s}});var r=n(44194),i=n(16779),o=n(31549),s=r.forwardRef((e,t)=>{let{children:n,...i}=e,s=r.Children.toArray(n),l=s.find(u);if(l){let e=l.props.children,n=s.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(a,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,o.jsx)(a,{...i,ref:t,children:n})});s.displayName="Slot";var a=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e,s;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?(0,i.F)(t,a):a})}return r.Children.count(n)>1?r.Children.only(null):null});a.displayName="SlotClone";var l=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function u(e){return r.isValidElement(e)&&e.type===l}},46638:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(44194);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},1504:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(44194),i=n(46638);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,s]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,s=r.useRef(o),a=(0,i.W)(t);return r.useEffect(()=>{s.current!==o&&(a(o),s.current=o)},[o,s,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,l=a?e:o,u=(0,i.W)(n);return[l,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else s(t)},[a,e,s,u])]}},70422:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(44194),i=globalThis?.document?r.useLayoutEffect:()=>{}},22069:function(e,t,n){"use strict";n.d(t,{T:function(){return s},f:function(){return a}});var r=n(44194),i=n(16537),o=n(31549),s=r.forwardRef((e,t)=>(0,o.jsx)(i.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));s.displayName="VisuallyHidden";var a=s},29167:function(e,t,n){"use strict";n.d(t,{G:function(){return d}});var r=n(29541),i=n(48286),o=n(29306);class s{constructor(e,t){let n,r;n=e||new i.s,r=t||new i.s,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t;let n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(0,o.J8)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}
44getClient(){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)&&!!this._stack.pop()}}function a(){let e=(0,r.cu)(),t=(0,r.qA)(e);return t.stack=t.stack||new s((0,r.YO)("defaultCurrentScope",()=>new i.s),(0,r.YO)("defaultIsolationScope",()=>new i.s))}function l(e){return a().withScope(e)}function u(e,t){let n=a();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function c(e){return a().withScope(()=>e(a().getIsolationScope()))}function d(e){let t=(0,r.qA)(e);return t.acs?t.acs:{withIsolationScope:c,withScope:l,withSetScope:u,withSetIsolationScope:(e,t)=>c(t),getCurrentScope:()=>a().getScope(),getIsolationScope:()=>a().getIsolationScope()}}},88780:function(e,t,n){"use strict";n.d(t,{n:function(){return s}});var r=n(20741),i=n(37652),o=n(12681);function s(e,t){let n=(0,r.s3)(),s=(0,r.aF)();if(!n)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:l=100}=n.getOptions();if(l<=0)return;let u={timestamp:(0,o.yW)(),...e},c=a?(0,i.Cf)(()=>a(u,t)):u;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),s.addBreadcrumb(c,l))}},29541:function(e,t,n){"use strict";n.d(t,{YO:function(){return a},cu:function(){return o},qA:function(){return s}});var r=n(68391),i=n(97794);function o(){return s(i.GLOBAL_OBJ),i.GLOBAL_OBJ}function s(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.J,t[r.J]=t[r.J]||{}}function a(e,t,n=i.GLOBAL_OBJ){let o=n.__SENTRY__=n.__SENTRY__||{},s=o[r.J]=o[r.J]||{};return s[e]||(s[e]=t())}},25964:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="production"},20741:function(e,t,n){"use strict";n.d(t,{$e:function(){return d},XX:function(){return f},aF:function(){return u},lW:function(){return c},nZ:function(){return l},s3:function(){return p}});var r=n(29167),i=n(29541),o=n(48286),s=n(5618),a=n(44246);function l(){let e=(0,i.cu)();return(0,r.G)(e).getCurrentScope()}function u(){let e=(0,i.cu)();return(0,r.G)(e).getIsolationScope()}function c(){return(0,i.YO)("globalScope",()=>new o.s)}function d(...e){let t=(0,i.cu)(),n=(0,r.G)(t);if(2===e.length){let[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}function p(){return l().getClient()}function f(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext();return(0,s.Jr)({trace_id:t,span_id:r||(0,a.M)(),parent_span_id:n})}},45171:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},63952:function(e,t,n){"use strict";n.d(t,{Qy:function(){return m},Tb:function(){return u},_k:function(){return h},cg:function(){return b},eN:function(){return d},uT:function(){return c},v:function(){return p},yj:function(){return g},yl:function(){return f}});var r=n(20741),i=n(45171),o=n(25697),s=n(37652),a=n(97794),l=n(64781);function u(e,t){return(0,r.nZ)().captureException(e,(0,l.U0)(t))}function c(e,t){let n="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return(0,r.nZ)().captureMessage(e,n,i)}function d(e,t){return(0,r.nZ)().captureEvent(e,t)}function p(e,t){(0,r.aF)().setContext(e,t)}async function f(e){let t=(0,r.s3)();return t?t.flush(e):(i.X&&s.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function h(){let e=(0,r.s3)();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function m(e){(0,r.aF)().addEventProcessor(e)}function g(e){let t=(0,r.aF)(),n=(0,r.nZ)(),{userAgent:i}=a.GLOBAL_OBJ.navigator||{},s=(0,o.Hv)({user:n.getUser()||t.getUser(),...i&&{userAgent:i},...e}),l=t.getSession();return l?.status==="ok"&&(0,o.CT)(l,{status:"exited"}),y(),t.setSession(s),s}function y(){let e=(0,r.aF)(),t=(0,r.nZ)().getSession()||e.getSession();
44t&&(0,o.RJ)(t),v(),e.setSession()}function v(){let e=(0,r.aF)(),t=(0,r.s3)(),n=e.getSession();n&&t&&t.captureSession(n)}function b(e=!1){if(e){y();return}v()}},48286:function(e,t,n){"use strict";n.d(t,{s:function(){return d}});var r=n(25697),i=n(29306),o=n(37652),s=n(9288),a=n(44246),l=n(12681),u=n(6922),c=n(46518);class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,a.H)(),sampleRand:Math.random()}}clone(){let e=new d;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,c.D)(e,(0,c.Y)(this)),e}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&&(0,r.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},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 null===t?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(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,extra:r,user:o,contexts:s,level:a,fingerprint:l=[],propagationContext:u}=(t instanceof d?t.getScopeData():(0,i.PO)(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._extra={...this._extra,...r},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),a&&(this._level=a),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,(0,c.D)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,a.H)(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,l.yW)(),...e};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,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:(0,c.Y)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,u.T)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
44captureException(e,t){let n=t?.event_id||(0,s.DM)();if(!this._client)return o.kg.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||(0,s.DM)();if(!this._client)return o.kg.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t?.event_id||(0,s.DM)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):o.kg.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},60545:function(e,t,n){"use strict";n.d(t,{$J:function(){return o},E1:function(){return l},JQ:function(){return p},S3:function(){return s},TE:function(){return i},Wb:function(){return u},Zj:function(){return r},ju:function(){return a},p6:function(){return d},xF:function(){return c}});let r="sentry.source",i="sentry.sample_rate",o="sentry.op",s="sentry.origin",a="sentry.idle_span_finish_reason",l="sentry.measurement_unit",u="sentry.measurement_value",c="sentry.custom_span_name",d="sentry.profile_id",p="sentry.exclusive_time"},25697:function(e,t,n){"use strict";n.d(t,{CT:function(){return a},Hv:function(){return s},RJ:function(){return l}});var r=n(5618),i=n(12681),o=n(9288);function s(e){let t=(0,i.ph)(),n={sid:(0,o.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,r.Jr)({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&a(n,e),n}function a(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||(0,i.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,o.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)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),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),a(e,n)}},28506:function(e,t,n){"use strict";n.d(t,{CG:function(){return h},Lh:function(){return p},jC:function(){return m}});var r=n(25964),i=n(20741),o=n(60545),s=n(35425),a=n(5618),l=n(42546),u=n(49072),c=n(4967);let d="_frozenDsc";function p(e,t){(0,a.xp)(e,d,t)}function f(e,t){let n=t.getOptions(),{publicKey:i}=t.getDsn()||{},o=(0,a.Jr)({environment:n.environment||r.J,release:n.release,public_key:i,trace_id:e});return t.emit("createDsc",o),o}function h(e,t){let n=t.getPropagationContext();return n.dsc||f(n.traceId,e)}function m(e){let t=(0,i.s3)();if(!t)return{};let n=(0,u.Gx)(e),r=(0,u.XU)(n),a=r.data,p=n.spanContext().traceState,h=p?.get("sentry.sample_rate")??a[o.TE];function m(e){return("number"==typeof h||"string"==typeof h)&&(e.sample_rate=`${h}`),e}let g=n[d];if(g)return m(g);let y=p?.get("sentry.dsc"),v=y&&(0,s.EN)(y);if(v)return m(v);let b=f(e.spanContext().traceId,t),_=a[o.Zj],w=r.description;return"url"!==_&&w&&(b.transaction=w),(0,l.f)()&&(b.sampled=String((0,u.Tt)(n)),b.sample_rand=p?.get("sentry.sample_rand")??c.I(n).scope?.getPropagationContext().sampleRand.toString()),m(b),t.emit("createDsc",b,n),b}},41219:function(e,t,n){"use strict";n.d(t,{OP:function(){return i},Q0:function(){return s},jt:function(){return o},pq:function(){return r}});let r=0,i=1,o=2;function s(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}},4967:function(e,t,n){"use strict";n.d(t,{I:function(){return a},Y:function(){return s}});var r=n(5618);let i="_sentryScope",o="_sentryIsolationScope";function s(e,t,n){e&&((0,r.xp)(e,o,n),(0,r.xp)(e,i,t))}function a(e){return{scope:e[i],isolationScope:e[o]}}},35425:function(e,t,n){"use strict";n.d(t,{EN:function(){return l},IQ:function(){return u},XM:function(){return c},lq:function(){return s}});var r=n(26419),i=n(29306),o=n(37652);let s="sentry-",a=/^sentry-/;function l(e){let t=c(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.match(a)&&(e[t.slice(s.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function u(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],i)=>{let s=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===i?s:`${e},${s}`;return a.length>8192?(r.X&&o.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${s}${t}`]=n),e),{}))}function c(e){return e&&((0,i.HD)(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>
44(Object.entries(d(t)).forEach(([t,n])=>{e[t]=n}),e),{}):d(e):void 0}function d(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}},53867:function(e,t,n){"use strict";n.d(t,{Rt:function(){return o},iY:function(){return a},l4:function(){return s}});var r=n(29306);let i=n(97794).GLOBAL_OBJ;function o(e,t={}){if(!e)return"<unknown>";try{let n,o=e,s=[],a=0,l=0,u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;o&&a++<5&&(n=function(e,t){let n=[];if(!e?.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let o=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(o?.length)o.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&n.push(`#${e.id}`);let t=e.className;if(t&&(0,r.HD)(t))for(let e of t.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(o,u),"html"!==n&&(!(a>1)||!(l+3*s.length+n.length>=c)));)s.push(n),l+=n.length,o=o.parentNode;return s.reverse().join(" > ")}catch(e){return"<unknown>"}}function s(){try{return i.document.location.href}catch(e){return""}}function a(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},26419:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},29306:function(e,t,n){"use strict";n.d(t,{Cy:function(){return y},HD:function(){return u},J8:function(){return g},Kj:function(){return m},Le:function(){return c},PO:function(){return p},TX:function(){return a},V9:function(){return v},VW:function(){return s},VZ:function(){return i},cO:function(){return f},fm:function(){return l},kK:function(){return h},pt:function(){return d},y1:function(){return b}});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function s(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function u(e){return o(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return o(e,"Object")}function f(e){return"undefined"!=typeof Event&&v(e,Event)}function h(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return!!(e?.then&&"function"==typeof e.then)}
44function y(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(e){return!1}}function b(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},37652:function(e,t,n){"use strict";n.d(t,{Cf:function(){return l},LD:function(){return a},RU:function(){return s},kg:function(){return u}});var r=n(29541),i=n(26419),o=n(97794);let s=["debug","info","warn","error","log","assert","trace"],a={};function l(e){if(!("console"in o.GLOBAL_OBJ))return e();let t=o.GLOBAL_OBJ.console,n={},r=Object.keys(a);r.forEach(e=>{let r=a[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let u=(0,r.YO)("logger",function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return i.X?s.forEach(n=>{t[n]=(...t)=>{e&&l(()=>{o.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...t)})}}):s.forEach(e=>{t[e]=()=>void 0}),t})},9288:function(e,t,n){"use strict";n.d(t,{DM:function(){return o},Db:function(){return l},EG:function(){return u},YO:function(){return c},jH:function(){return a}});var r=n(5618),i=n(97794);function o(e=function(){let e=i.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function s(e){return e.exception?.values?.[0]}function a(e){let{message:t,event_id:n}=e;if(t)return t;let r=s(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function u(e,t){let n=s(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r?.data,...t.data};n.mechanism.data=e}}function c(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}},75671:function(e,t,n){"use strict";n.d(t,{Fv:function(){return s},Qy:function(){return function e(t,n=3,r=102400){let i=s(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}}});var r=n(29306),i=n(5618),o=n(36749);function s(e,t=100,n=Infinity){try{return function e(t,n,s=Infinity,a=Infinity,l=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[u,c]=l;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.y1)(t))return"[VueViewModel]";if((0,r.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let n=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(n))return`[HTMLElement: ${n}]`;return`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!d.startsWith("[object "))return d;if(n.__sentry_skip_normalization__)return n;let p="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:s;if(0===p)return d.replace("object ","");if(u(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,p-1,a,l)}catch(e){}let f=Array.isArray(n)?[]:{},h=0,m=(0,i.Sh)(n);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(h>=a){f[t]="[MaxProperties ~]";break}let n=m[t];f[t]=e(t,n,p-1,a,l),h++}return c(n),f}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},5618:function(e,t,n){"use strict";n.d(t,{$Q:function(){return c},HK:function(){return d},Jr:function(){return g},Sh:function(){return p},hl:function(){return l},xp:function(){return u},zf:function(){return m}});var r=n(53867),i=n(26419),o=n(29306),s=n(37652),a=n(47702);function l(e,t,n){if(!(t in e))return;let r=e[t],o=n(r);
44"function"==typeof o&&c(o,r);try{e[t]=o}catch{i.X&&s.kg.log(`Failed to replace method "${t}" in object`,e)}}function u(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){i.X&&s.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function c(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,u(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function p(e){if((0,o.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...h(e)};if(!(0,o.cO)(e))return e;{let t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...h(e)};return"undefined"!=typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function f(e){try{return(0,o.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function h(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function m(e,t=40){let n=Object.keys(p(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return(0,a.$G)(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return(0,a.$G)(r,t)}}return""}function g(e){return function e(t,n){if(function(e){if(!(0,o.PO)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.getOwnPropertyNames(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}},44246:function(e,t,n){"use strict";n.d(t,{H:function(){return i},M:function(){return o}});var r=n(9288);function i(){return(0,r.DM)()}function o(){return(0,r.DM)().substring(16)}},36749:function(e,t,n){"use strict";n.d(t,{$P:function(){return c},Fi:function(){return r},Fr:function(){return d},Sq:function(){return a},pE:function(){return s}});let r="?",i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function s(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,s=0)=>{let a=[],u=e.split("\n");for(let e=n;e<u.length;e++){let n=u[e];if(n.length>1024)continue;let r=i.test(n)?n.replace(i,"$1"):n;if(!r.match(/\S*Error: /)){for(let e of t){let t=e(r);if(t){a.push(t);break}}if(a.length>=50+s)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(l(t).function||"")&&t.pop(),t.reverse(),o.test(l(t).function||"")&&(t.pop(),o.test(l(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||l(t).filename,function:e.function||r}))}(a.slice(s))}}function a(e){return Array.isArray(e)?s(...e):e}function l(e){return e[e.length-1]||{}}let u="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return u;return e.name||u}catch(e){return u}}function d(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(e){}}}},47702:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},U0:function(){return s},nK:function(){return o}});var r=n(29306);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,r.y1)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))})(e,t,n))}},21926:function(e,t,n){"use strict";n.d(t,{$2:function(){return a},WD:function(){return s},cW:function(){return l}});var r,i,o=n(29306);function s(e){return new l(t=>{t(e)})}function a(e){return new l((t,n)=>{n(e)})}(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.RESOLVED=1]="RESOLVED",r[r.REJECTED=2]="REJECTED";class l{constructor(e){this._state=i.PENDING,this._handlers=[],this._runExecutor(e)}then(e,t){return new l((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new l((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>
44{if(i){n(r);return}t(r)})})}_executeHandlers(){if(this._state===i.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===i.PENDING){if((0,o.J8)(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(i.RESOLVED,e)},r=e=>{t(i.REJECTED,e)};try{e(n,r)}catch(e){r(e)}}}},12681:function(e,t,n){"use strict";let r;n.d(t,{Z1:function(){return a},ph:function(){return s},yW:function(){return o}});var i=n(97794);function o(){return Date.now()/1e3}let s=function(){let{performance:e}=i.GLOBAL_OBJ;if(!e?.now)return o;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();function a(){return r||(r=function(){let{performance:e}=i.GLOBAL_OBJ;if(!e?.now)return[void 0,"none"];let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing?.navigationStart,s="number"==typeof o?Math.abs(o+t-n):36e5;return r<36e5||s<36e5?r<=s?[e.timeOrigin,"timeOrigin"]:[o,"navigationStart"]:[n,"dateNow"]}()),r[0]}},68034:function(e,t,n){"use strict";n.d(t,{$p:function(){return l},Ke:function(){return s},pT:function(){return a}});var r=n(58205),i=n(35425),o=n(44246);let s=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e,t){let n=function(e){let t;if(!e)return;let n=e.match(s);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),a=(0,i.EN)(t);if(!n?.traceId)return{traceId:(0,o.H)(),sampleRand:Math.random()};let l=function(e,t){let n=(0,r.o)(t?.sample_rand);if(void 0!==n)return n;let i=(0,r.o)(t?.sample_rate);return i&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*i:i+Math.random()*(1-i):Math.random()}(n,a);a&&(a.sample_rand=l.toString());let{traceId:u,parentSpanId:c,parentSampled:d}=n;return{traceId:u,parentSpanId:c,sampled:d,dsc:a||{},sampleRand:l}}function l(e=(0,o.H)(),t=(0,o.M)(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}},68391:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="9.5.0"},97794:function(e,t,n){"use strict";n.d(t,{GLOBAL_OBJ:function(){return r}});let r=globalThis},42546:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(20741);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||r.s3()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}},6922:function(e,t,n){"use strict";n.d(t,{T:function(){return function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;let i={...t};for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=e(i[t],n[t],r-1));return i}}})},58205:function(e,t,n){"use strict";function r(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}n.d(t,{o:function(){return r}})},64781:function(e,t,n){"use strict";let r,i,o;n.d(t,{U0:function(){return k},R:function(){return E}});var s=n(25964),a=n(20741),l=n(45171),u=n(29306),c=n(37652),d=n(21926),p=n(48286),f=n(97794),h=n(9288),m=n(75671),g=n(47702),y=n(12681),v=n(28506),b=n(5618),_=n(6922),w=n(49072);function S(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:d,propagationContext:p,transactionName:f,span:h}=t;x(e,"extra",n),x(e,"tags",r),x(e,"user",i),x(e,"contexts",o),e.sdkProcessingMetadata=(0,_.T)(e.sdkProcessingMetadata,a,2),s&&(e.level=s),f&&(e.transactionName=f),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function x(e,t,n){e[t]=(0,_.T)(e[t],n,1)}function E(e,t,n,_,x,E){let{normalizeDepth:k=3,normalizeMaxBreadth:O=1e3}=e,T={...t,event_id:t.event_id||n.event_id||(0,h.DM)(),timestamp:t.timestamp||(0,y.yW)()},C=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:o=250}=t;e.environment=e.environment||n||s.J,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i),e.message&&(e.message=(0,g.$G)(e.message,o));let a=e.exception?.values?.[0];
44a?.value&&(a.value=(0,g.$G)(a.value,o));let l=e.request;l?.url&&(l.url=(0,g.$G)(l.url,o))})(T,e),C.length>0&&(T.sdk=T.sdk||{},T.sdk.integrations=[...T.sdk.integrations||[],...C]),x&&x.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let n=function(e){let t=f.GLOBAL_OBJ._sentryDebugIds;if(!t)return{};let n=Object.keys(t);return o&&n.length===i?o:(i=n.length,o=n.reduce((n,i)=>{r||(r={});let o=r[i];if(o)n[o[0]]=o[1];else{let o=e(i);for(let e=o.length-1;e>=0;e--){let s=o[e],a=s?.filename,l=t[i];if(a&&l){n[a]=l,r[i]=[a,l];break}}}return n},{}))}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}(T,e.stackParser);let R=function(e,t){if(!t)return e;let n=e?e.clone():new p.s;return n.update(t),n}(_,n.captureContext);n.mechanism&&(0,h.EG)(T,n.mechanism);let M=x?x.getEventProcessors():[],I=(0,a.lW)().getScopeData();E&&S(I,E.getScopeData()),R&&S(I,R.getScopeData());let P=[...n.attachments||[],...I.attachments];return P.length&&(n.attachments=P),!function(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=t,l=(0,b.Jr)(n);Object.keys(l).length&&(e.extra={...l,...e.extra});let u=(0,b.Jr)(r);Object.keys(u).length&&(e.tags={...u,...e.tags});let c=(0,b.Jr)(i);Object.keys(c).length&&(e.user={...c,...e.user});let d=(0,b.Jr)(o);Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)})(e,t),r&&function(e,t){e.contexts={trace:(0,w.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,v.jC)(t),...e.sdkProcessingMetadata};let n=(0,w.Gx)(t),r=(0,w.XU)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],n&&(e.fingerprint=e.fingerprint.concat(n)),e.fingerprint.length||delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...o}}(T,I),(function e(t,n,r,i=0){return new d.cW((o,s)=>{let a=t[i];if(null===n||"function"!=typeof a)o(n);else{let d=a({...n},r);l.X&&a.id&&null===d&&c.kg.log(`Event processor "${a.id}" dropped event`),(0,u.J8)(d)?d.then(n=>e(t,n,r,i+1).then(o)).then(null,s):e(t,d,r,i+1).then(o).then(null,s)}})})([...M,...I.eventProcessors],T,n).then(e=>(e&&function(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)})}),0===Object.keys(t).length)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})})}(e),"number"==typeof k&&k>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,m.Fv)(e.data,t,n)}}))},...e.user&&{user:(0,m.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,m.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,m.Fv)(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,m.Fv)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,m.Fv)(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=(0,m.Fv)(e.contexts.flags,3,n)),r}(e,k,O):e)}function k(e){return e?e instanceof p.s||"function"==typeof e||Object.keys(e).some(e=>O.includes(e))?{captureContext:e}:e:void 0}let O=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},46518:function(e,t,n){"use strict";n.d(t,{D:function(){return o},Y:function(){return s}});var r=n(5618);let i="_sentrySpan";function o(e,t){t?(0,r.xp)(e,i,t):delete e[i]}function s(e){return e[i]}},49072:function(e,t,n){"use strict";n.d(t,{$k:function(){return S},Dp:function(){return I},FF:function(){return w},Gx:function(){return P},HN:function(){return L},HR:function(){return v},Hb:function(){return _},R6:function(){return N},Tt:function(){return k},XU:function(){return E},_4:function(){return O},ed:function(){return M},i0:function(){return g},j5:function(){return R},ve:function(){return m},wy:function(){return b}});var r=n(29167),i=n(29541),o=n(20741),s=n(60545),a=n(41219),l=n(4967),u=n(37652),c=n(5618),d=n(44246),p=n(12681),f=n(68034),h=n(46518);let m=0,g=1,y=!1;function v(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:s,origin:a,links:l}=E(e);return(0,c.Jr)({parent_span_id:o,span_id:t,trace_id:n,data:r,op:i,status:s,origin:a,links:l})}function b(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:E(e).parent_span_id,o=(0,l.I)(e).scope,s=r?o?.getPropagationContext().propagationSpanId||(0,d.M)():t;return(0,c.Jr)({parent_span_id:i,span_id:s,trace_id:n})}function _(e){let{traceId:t,spanId:n}=e.spanContext(),r=k(e);return(0,f.$p)(t,n,r)}function w(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===g,attributes:i,...r})):void 0}function S(e){return"number"==typeof e?x(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?x(e.getTime()):(0,p.ph)()}function x(e){return e>9999999999?e/1e3:e}function E(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:r,startTime:i,name:o,endTime:a,parentSpanId:l,status:u,links:d}=e;return(0,c.Jr)({span_id:t,trace_id:n,data:r,description:o,parent_span_id:l,start_timestamp:S(i),timestamp:S(a)||void 0,status:O(u),op:r[s.$J],origin:r[s.S3],links:w(d)})}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function k(e){let{traceFlags:t}=e.spanContext();return t===g}function O(e){return e&&e.code!==a.pq?e.code===a.OP?"ok":e.message||"unknown_error":void 0}let T="_sentryChildSpans",C="_sentryRootSpan";function R(e,t){let n=e[C]||e;(0,c.xp)(t,C,n),e[T]?e[T].add(t):(0,c.xp)(e,T,new Set([t]))}function M(e,t){e[T]&&e[T].delete(t)}function I(e){let t=new Set;return!function e(n){if(!t.has(n)&&k(n))for(let r of(t.add(n),n[T]?Array.from(n[T]):[]))e(r)}(e),Array.from(t)}function P(e){return e[C]||e}function L(){let e=(0,i.cu)(),t=(0,r.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,h.Y)((0,o.nZ)())}function N(){y||((0,u.Cf)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),y=!0)}},29876:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},57291:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(r&&(r+=" "),r+=t);return r},o=(e,t)=>n=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:s,defaultVariants:a}=t,l=Object.keys(s).map(e=>{let t=null==n?void 0:n[e],i=null==a?void 0:a[e];if(null===t)return null;let o=r(t)||r(i);return s[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>
44{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,l,null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...u}[t]):({...a,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},44115:function(e,t,n){"use strict";n.d(t,{ZP:function(){return z}});let r={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class i{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||r,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new i(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new i(this.logger,e)}}var o=new i;class s{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[r,i]=t;for(let t=0;t<i;t++)r.apply(r,[e,...n])})}}function a(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function l(e){return null==e?"":""+e}let u=/###/g;function c(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(u,"."):e}function i(){return!e||"string"==typeof e}let o="string"!=typeof t?t:t.split("."),s=0;for(;s<o.length-1;){if(i())return{};let t=r(o[s]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++s}return i()?{}:{obj:e,k:r(o[s])}}function d(e,t,n){let{obj:r,k:i}=c(e,t,Object);if(void 0!==r||1===t.length){r[i]=n;return}let o=t[t.length-1],s=t.slice(0,t.length-1),a=c(e,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,(a=c(e,s=s.slice(0,s.length-1),Object))&&a.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=n}function p(e,t){let{obj:n,k:r}=c(e,t);if(n)return n[r]}function f(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function m(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>h[e]):e}class g{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}let y=[" ",",","?","!",";"],v=new g(20);function b(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let r=t.split(n),i=e;for(let e=0;e<r.length;){let t;if(!i||"object"!=typeof i)return;let o="";for(let s=e;s<r.length;++s)if(s!==e&&(o+=n),o+=r[s],void 0!==(t=i[o])){if(["string","number","boolean"].indexOf(typeof t)>-1&&s<r.length-1)continue;e+=s-e+1;break}i=t}return i}function _(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class w extends s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?r=e.split("."):(r=[e,t],n&&(Array.isArray(n)?r.push(...n):"string"==typeof n&&o?r.push(...n.split(o)):r.push(n)));let a=p(this.data,r);return(!a&&!t&&!n&&e.indexOf(".")>-1&&(e=r[0],t=r[1],n=r.slice(2).join(".")),a||!s||"string"!=typeof n)?a:b(this.data&&this.data[e]&&this.data[e][t],n,o)}
44addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[e,t];n&&(s=s.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),d(this.data,s,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let r in n)("string"==typeof n[r]||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);let a=p(this.data,s)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?function e(t,n,r){for(let i in n)"__proto__"!==i&&"constructor"!==i&&(i in t?"string"==typeof t[i]||t[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?r&&(t[i]=n[i]):e(t[i],n[i],r):t[i]=n[i]);return t}(a,n,i):a={...a,...n},d(this.data,s,a),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var S={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}};let x={};class E extends s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach(e=>{t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
44i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=o.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";let r=y.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===r.length)return!0;let i=v.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),o=!i.test(e);if(!o){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}(e,n,r);if(o&&!s){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};let o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],t),a=s[s.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){let e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${a}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:`${a}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:o}let c=this.resolve(e,t),d=c&&c.res,p=c&&c.usedKey||o,f=c&&c.exactUsedKey||o,h=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,y="string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d;if(g&&d&&y&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(h)&&!("string"==typeof m&&Array.isArray(d))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,d,{...t,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(i){let e=Array.isArray(d),n=e?[]:{},r=e?f:p;for(let e in d)if(Object.prototype.hasOwnProperty.call(d,e)){let o=`${r}${i}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:s}),n[e]===o&&(n[e]=d[e])}d=n}}else if(g&&"string"==typeof m&&Array.isArray(d))(d=d.join(m))&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,s=!1,u=void 0!==t.count&&"string"!=typeof t.count,p=E.hasDefaultValue(t),f=u?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${f}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&p&&(r=!0,d=g),this.isValidLookup(d)||(s=!0,d=o);let y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:d,v=p&&g!==d&&this.options.updateMissing;if(s||r||v){if(this.logger.log(v?"updateKey":"missingKey",l,a,o,v?g:d),i){let e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let r=(e,n,r)=>{let i=p&&r!==d?r:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,n,i,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,n,i,v,t),this.emit
44("missingKey",e,a,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let n=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>n.indexOf(`${this.options.pluralSeparator}zero`)&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{r([e],o+n,t[`defaultValue${n}`]||g)})}):r(e,o,g))}d=this.extendTranslation(d,e,t,c,n),s&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${o}`),(s||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let s;n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];return i&&i[0]===r[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):o.translate(...r,t)},n)),n.interpolation&&this.interpolator.reset()}let s=n.postProcess||this.options.postProcess,a="string"==typeof s?[s]:s;return null!=e&&a&&a.length&&!1!==n.applyPostProcessor&&(e=S.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let a=this.extractFromKey(e,s),l=a.key;n=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let c=void 0!==s.count&&"string"!=typeof s.count,d=c&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(o=e,!x[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(x[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(n=>{let o;if(this.isValidLookup(t))return;i=n;let a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,n,e,s);else{let e;c&&(e=this.pluralResolver.getSuffix(n,s.count,s));let t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(a.push(l+e),s.ordinal&&0===e.indexOf(r)&&a.push(l+e.replace(r,this.options.pluralSeparator)),d&&a.push(l+t)),p){let n=`${l}${this.options.contextSeparator}
44${s.context}`;a.push(n),c&&(a.push(n+e),s.ordinal&&0===e.indexOf(r)&&a.push(n+e.replace(r,this.options.pluralSeparator)),d&&a.push(n+t))}}for(;o=a.pop();)this.isValidLookup(t)||(r=o,t=this.getResource(n,e,o,s))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&"string"!=typeof e.replace,n=t?e.replace:e;if(t&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}function k(e){return e.charAt(0).toUpperCase()+e.slice(1)}class O{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=o.create("languageUtils")}getScriptPartFromCode(e){if(!(e=_(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=_(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=k(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=k(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=k(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&(e.indexOf("-")>0&&0>n.indexOf("-")&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEac
44h(e=>{0>r.indexOf(e)&&i(this.formatLanguageCode(e))}),r}}let T=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],C={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},R=["v1","v2","v3"],M=["v4"],I={zero:0,one:1,two:2,few:3,many:4,other:5};class P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=o.create("pluralResolver"),(!this.options.compatibilityJSON||M.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return T.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:C[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(_("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>
44I[e]-I[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));let i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}
44shouldUseIntlApi(){return!R.includes(this.options.compatibilityJSON)}}function L(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=function(e,t,n){let r=p(e,n);return void 0!==r?r:p(t,n)}(e,t,n);return!o&&i&&"string"==typeof n&&void 0===(o=b(e,n,r))&&(o=b(t,n,r)),o}class N{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:g,nestingOptionsSeparator:y,maxReplaces:v,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:m,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?f(i):o||"{{",this.suffix=s?f(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?f(d):p||f("$t("),this.nestingSuffix=h?f(h):g||f(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,s;let a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}let c=e=>{if(0>e.indexOf(this.formatSeparator)){let i=L(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),o=i.shift().trim(),s=i.join(this.formatSeparator).trim();return this.format(L(t,a,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...r,...t,interpolationkey:o})};this.resetRegExp();let d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>u(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?u(this.escape(e)):u(e)}].forEach(t=>{for(s=0;i=t.regex.exec(e);){let n=i[1].trim();if(void 0===(o=c(n))){if("function"==typeof d){let t=d(e,i,r);o="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else if(p){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=l(o));let a=t.safeValue(o);if(e=e.replace(i[0],a),p?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++s>=this.maxReplaces)break}}),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let r=e.split(RegExp(`${n}[ ]*{`)),o=`{${r[1]}`;e=r[0];let s=(o=this.interpolate(o,i)).match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let a=[];(i=(i={...o}).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){let e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),a=e,u=!0}if((r=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=l(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),u&&(r=a.reduce((e,t)=>
44this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function A(e){let t={};return function(n,r,i){let o=r+JSON.stringify(i),s=t[o];return s||(s=e(_(r),i),t[o]=s),s(n)}}class j{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("formatter"),this.options=e,this.formats={number:A((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:A((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:A((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:A((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:A((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=A(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((e,t)=>{let{formatName:i,formatOptions:o}=function(e){let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);"currency"===t&&0>i.indexOf(":")?n.currency||(n.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?n.range||(n.range=i.trim()):i.split(";").forEach(e=>{if(e){let[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}}(t);if(this.formats[i]){let t=e;try{let s=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},a=s.locale||s.lng||r.locale||r.lng||n;t=this.formats[i](e,a,{...o,...r,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class D extends s{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=o.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let i={},o={},s={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let s=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,r=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){let r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;let s={};this.queue.forEach(n=>{(function(e,t,n,r){let{obj:i,k:o}=c(e,t,Object);i[o]=i[o]||[],i[o].push(n)}
44)(n.loaded,[i],o),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{s[e]||(s[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});return}this.readingCalls++;let s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(s&&a&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*i,o)},i);return}o(s,a)},a=this.backend[n].bind(this.backend);if(2===a.length){try{let n=a(e,t);n&&"function"==typeof n.then?n.then(e=>s(null,e)).catch(s):s(null,n)}catch(e){s(e)}return}return a(e,t,s)}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)})}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n){if(this.backend&&this.backend.create){let a={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,n,r,a):l(e,t,n,r))&&"function"==typeof i.then?i.then(e=>s(null,e)).catch(s):s(null,i)}catch(e){s(e)}else l(e,t,n,r,s,a)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function $(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function F(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function U(){}class B extends s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=F(e),this.services={},this.logger=o,this.modules={external:[]},!function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEac
44h(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let r=$();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...F(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?o.init(i(this.modules.logger),this.options):o.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=j);let n=new O(this.options);this.store=new w(this.options.resources,this.options);let s=this.services;s.logger=o,s.resourceStore=this.store,s.languageUtils=n,s.pluralResolver=new P(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(s.formatter=i(t),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new N(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new D(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)}),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new E(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=U),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let s=a(),l=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),s}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U,n=t,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e
44=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=a();return e||(e=this.languages),t||(t=this.options.ns),n||(n=U),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&S.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=a();this.emit("languageChanging",e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},s=t=>{e||t||!this.services.languageDetector||(t=[]);let n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{o(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;let i=function(e,t){let o,s;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),u=2;u<a;u++)l[u-2]=arguments[u];o=r.options.overloadTranslationOptionHandler([e,t].concat(l))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||i.keyPrefix);let c=r.options.keySeparator||".";return s=o.keyPrefix&&Array.isArray(e)?e.map(e=>`${o.keyPrefix}${c}${e}`):o.keyPrefix?`${o.keyPrefix}${c}${e}`:e,r.t(s,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
44if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let o=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||2===n};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,e)&&(!r||o(i,e)))}loadNamespaces(e,t){let n=a();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=a();"string"==typeof e&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>0>r.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new O($())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new B(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U,n=e.forkResourceStore;n&&delete e.forkResourceStore;let r={...this.options,...e,isClone:!0},i=new B(r);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new w(this.store.data,r),i.services.resourceStore=i.store),i.translator=new E(i.services,r),i.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let z=B.createInstance();z.createInstance=B.createInstance,z.createInstance,z.dir,z.init,z.loadResources,z.reloadResources,z.use,z.changeLanguage,z.getFixedT,z.t,z.exists,z.setDefaultNamespace,z.hasLoadedNamespace,z.loadNamespaces,z.loadLanguages},89833:function(e){"use strict";e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},66783:function(e){"use strict";e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","regi
44on"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},29251:function(e){"use strict";e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(78215),t(29727),t(32998)}),_N_E=e.O()}]);
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.