1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/browser-ponyfill-DTM4eR9P.js","assets/chunk-UIGDSWPH-Cvdthj3w.js","assets/christmas-RjymtNL3.js"])))=>i.map(i=>d[i]); 2import{a as D,w as Vo,p as Yo,q as vn,M as Qo,L as Jo,S as Zo,t as ea,O as ta,i as na}from"./chunk-UIGDSWPH-Cvdthj3w.js";import{j as b}from"./jsx-runtime-DI7wNVj9.js";import{M as ra,u as Ce,z as j,F as sa}from"./useMutation-Cfe0QBRa.js";import{S as ei,n as W,m as Lr,a as ae,h as ti,b as Mr,f as ia,o as Dr,r as Fr,c as oa,d as $r,p as jr,s as aa,e as ca,g as ua,i as da,j as fa,k as la,l as pa,u as ma,Q as ha,q as ni,t as ga}from"./clsx-DSpH6-Ct.js";import{u as ar,U as _a}from"./user-context-ADBN9ck3.js";import{Q as ya,a as Sa}from"./useBaseQuery-BXWEg2QX.js";import{i as Hr}from"./infiniteQueryBehavior-N9L4-UBQ.js";import{E as ba,a as Ea}from"./error-page-BC_g7o7M.js";import{i as ri}from"./i18next-B0ZP0dUq.js";import{_ as si}from"./preload-helper-dJ61LZNH.js";import{s as va,a as Ta,I as Ia}from"./context-CgECK52e.js";import{g as wa,u as Ur}from"./ui-store-Dy5Vf1YW.js";import"./Button-C52GdXfD.js";import"./useSuspenseQuery-e5Wc0O7a.js";import"./createReactComponent-ClF_ax1B.js";import"./react-trOXc0D1.js";import"./index-BmS60WiQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4df42ac4-7e69-455c-8d60-9f308d56a0af",e._sentryDebugIdIdentifier="sentry-dbid-4df42ac4-7e69-455c-8d60-9f308d56a0af")}catch{}})();const Ra="/assets/app-CT2ljAMI.css";var ii=class extends ei{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new ra({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Dt(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Dt(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Dt(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(s=>s.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Dt(e);return typeof t=="string"?this.#t.get(t)?.find(r=>
vendor: 4,220 bytes, line 2
2r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){W.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Lr(t,n))}findAll(e={}){return this.getAll().filter(t=>Lr(e,t))}notify(e){W.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return W.batch(()=>Promise.all(e.map(t=>t.continue().catch(ae))))}};function Dt(e){return e.options.scope?.id}var ka=class extends ei{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,s=t.queryHash??ti(r,t);let i=this.get(s);return i||(i=new ya({client:e,queryKey:r,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){W.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Mr(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Mr(e,n)):t}notify(e){W.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){W.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){W.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Aa=class{#e;#t;#n;#s;#i;#r;#o;#a;constructor(e={}){this.#e=e.queryCache||new ka,this.#t=e.mutationCache||new ii,this.#n=e.defaultOptions||{},this.#s=new Map,this.#i=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=ia.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Dr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Fr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,o=oa(t,i);if(o!==void 0)return this.#e.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return W.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;W.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return W.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=W.batch(()=>this.#e.findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(ae).catch(ae)}invalidateQueries(e,t={}){return W.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=W.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(ae)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ae)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Fr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ae).catch(ae)}
2fetchInfiniteQuery(e){return e.behavior=Hr(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ae).catch(ae)}ensureInfiniteQueryData(e){return e.behavior=Hr(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Dr.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#s.set($r(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{jr(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set($r(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(r=>{jr(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ti(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===aa&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};const{slice:Oa,forEach:Pa}=[];function Ca(e){return Pa.call(Oa.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}
2function xa(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const Br=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Na=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},s=encodeURIComponent(t);let i=`${e}=${s}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!Br.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!Br.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(i+="; Partitioned"),i},qr={create(e,t,n,r){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+n*60*1e3)),r&&(s.domain=r),document.cookie=Na(e,t,s)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let s=n[r];for(;s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var La={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return qr.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:s,cookieOptions:i}=t;n&&typeof document<"u"&&qr.create(n,e,r,s,i)}},Ma={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const i=r.substring(1).split("&");for(let o=0;o<i.length;o++){const a=i[o].indexOf("=");a>0&&i[o].substring(0,a)===t&&(n=i[o].substring(a+1))}}return n}},Da={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:s}=window.location;if(s&&s.length>2){const i=s.substring(1);if(t){const o=i.split("&");for(let a=0;a<o.length;a++){const c=o[a].indexOf("=");c>0&&o[a].substring(0,c)===t&&(r=o[a].substring(c+1))}}if(r)return r;if(!r&&n>-1){const o=s.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let ze=null;const Wr=()=>{if(ze!==null)return ze;try{if(ze=typeof window<"u"&&window.localStorage!==null,!ze)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{ze=!1}return ze};var Fa={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&Wr())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&Wr()&&window.localStorage.setItem(n,e)}};let Ge=null;const zr=()=>{if(Ge!==null)return Ge;try{if(Ge=typeof window<"u"&&window.sessionStorage!==null,!Ge)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ge=!1}return Ge};var $a={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&zr())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&zr()&&window.sessionStorage.setItem(n,e)}},ja={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:s}=navigator;if(n)for(let i=0;i<n.length;i++)t.push(n[i]);r&&t.push(r),s&&t.push(s)}return t.length>0?t:void 0}},Ha={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Ua={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},Ba={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let oi=!1;try{document.cookie,oi=!0}catch{}const ai=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];oi||ai.splice(1,1);const qa=()=>({order:ai,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class ci{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=Ca(n,this.options||{},qa()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=s=>s.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(La),this.addDetector(Ma),this.addDetector(Fa),this.addDetector($a),this.addDetector(ja),this.addDetector(Ha),this.addDetector(Ua),this.addDetector(Ba),this.addDetector(Da)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let s=this.detectors[r].lookup(this.options);s&&typeof s=="string"&&(s=[s]),s&&(n=n.concat(s))}}),n=n.filter(r=>r!=null&&!xa(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}
2cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}ci.type="languageDetector";function $n(e){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$n(e)}function ui(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":$n(XMLHttpRequest))==="object"}function Wa(e){return!!e&&typeof e.then=="function"}function za(e){return Wa(e)?e:Promise.resolve(e)}function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gr(Object(n),!0).forEach(function(r){Ga(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ga(e,t,n){return(t=Xa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xa(e){var t=Ka(e,"string");return $e(t)=="symbol"?t:t+""}function Ka(e,t){if($e(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($e(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $e(e){"@babel/helpers - typeof";return $e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(e)}var Se=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Se=global.fetch:typeof window<"u"&&window.fetch&&(Se=window.fetch);var gt;ui()&&(typeof global<"u"&&global.XMLHttpRequest?gt=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(gt=window.XMLHttpRequest));var en;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?en=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(en=window.ActiveXObject));typeof Se!="function"&&(Se=void 0);if(!Se&&!gt&&!en)try{si(()=>import("./browser-ponyfill-DTM4eR9P.js").then(e=>e.b),__vite__mapDeps([0,1])).then(function(e){Se=e.default}).catch(function(){})}catch{}var jn=function(t,n){if(n&&$e(n)==="object"){var r="";for(var s in n)r+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},Kr=function(t,n,r,s){var i=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(u){r(null,{status:c.status,data:u})}).catch(r)};if(s){var o=s(t,n);if(o instanceof Promise){o.then(i).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(i).catch(r):Se(t,n).then(i).catch(r)},Vr=!1,Va=function(t,n,r,s){t.queryStringParams&&(n=jn(n,t.queryStringParams));var i=Xr({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=Xr({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},Vr?{}:o),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{Kr(n,a,s,c)}catch(u){if(!o||Object.keys(o).length===0||!u.message||u.message.indexOf("not implemented")<0)return s(u);
vendor: 4,852 bytes, line 2
2try{Object.keys(o).forEach(function(d){delete a[d]}),Kr(n,a,s,c),Vr=!0}catch(d){s(d)}}},Ya=function(t,n,r,s){r&&$e(r)==="object"&&(r=jn("",r).slice(1)),t.queryStringParams&&(n=jn(n,t.queryStringParams));try{var i=gt?new gt:new en("MSXML2.XMLHTTP.3.0");i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)i.setRequestHeader(a,o[a]);i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(c){console&&console.log(c)}},Qa=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},Se&&n.indexOf("file:")!==0)return Va(t,n,r,s);if(ui()||typeof ActiveXObject=="function")return Ya(t,n,r,s);s(new Error("No fetch and no xhr implementation found!"))};function Ve(e){"@babel/helpers - typeof";return Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ve(e)}function Yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yr(Object(n),!0).forEach(function(r){di(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ja(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Za(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fi(r.key),r)}}function ec(e,t,n){return t&&Za(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function di(e,t,n){return(t=fi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fi(e){var t=tc(e,"string");return Ve(t)=="symbol"?t:t+""}function tc(e,t){if(Ve(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ve(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nc=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,s){return di({},r,s||"")},parseLoadPayload:function(n,r){},request:Qa,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},li=(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ja(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return ec(e,[{key:"init",value:function(n){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Tn(Tn(Tn({},nc()),this.options||{}),s),this.allOptions=i,this.services&&this.options.reloadInterval){var o=setInterval(function(){return r.reload()},this.options.reloadInterval);Ve(o)==="object"&&typeof o.unref=="function"&&o.unref()}}},{key:"readMulti",value:function(n,r,s){this._readAny(n,n,r,r,s)}},{key:"read",value:function(n,r,s){this._readAny([n],n,[r],r,s)}},{key:"_readAny",value:function(n,r,s,i,o){var a=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,s)),c=za(c),c.then(function(u){if(!u)return o(null,{});var d=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:s.join("+")});a.loadUrl(d,o,r,i)})}},{key:"loadUrl",value:function(n,r,s,i){var o=this,a=typeof s=="string"?[s]:s,c=typeof i=="string"?[i]:i,u=this.options.parseLoadPayload(a,c);this.options.request(this.options,n,u,function(d,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+n+"; status code: "+f.status,!1);if(!f&&d&&d.message){var p=d.message.toLowerCase(),l=["failed","fetch","network","load"].find(function(_){return p.indexOf(_)>-1});if(l)return r("failed loading "+n+": "+d.message,!0)}if(d)return r(d,!1);var m,y;
2try{typeof f.data=="string"?m=o.options.parse(f.data,s,i):m=f.data}catch{y="failed parsing "+n+" to json"}if(y)return r(y,!1);r(null,m)})}},{key:"create",value:function(n,r,s,i,o){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,s,i),u=0,d=[],f=[];n.forEach(function(p){var l=a.options.addPath;typeof a.options.addPath=="function"&&(l=a.options.addPath(p,r));var m=a.services.interpolator.interpolate(l,{lng:p,ns:r});a.options.request(a.options,m,c,function(y,_){u+=1,d.push(y),f.push(_),u===n.length&&typeof o=="function"&&o(d,f)})})}}},{key:"reload",value:function(){var n=this,r=this.services,s=r.backendConnector,i=r.languageUtils,o=r.logger,a=s.language;if(!(a&&a.toLowerCase()==="cimode")){var c=[],u=function(f){var p=i.toResolveHierarchy(f);p.forEach(function(l){c.indexOf(l)<0&&c.push(l)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(d){return u(d)}),c.forEach(function(d){n.allOptions.ns.forEach(function(f){s.read(d,f,"read",null,null,function(p,l){p&&o.warn("loading namespace ".concat(f," for language ").concat(d," failed"),p),!p&&l&&o.log("loaded namespace ".concat(f," for language ").concat(d),l),s.loaded("".concat(d,"|").concat(f),p,l)})})})}}}])})();li.type="backend";const rc={type:"3rdParty",init(e){va(e.options.react),Ta(e)}};function sc({i18n:e,defaultNS:t,children:n}){const r=D.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return D.createElement(Ia.Provider,{value:r},n)}const ic=new li(null,{loadPath:"/api/i18n/locales/{{ns}}/{{lng}}.json"});ri.use(ic).use(ci).use(rc).init({debug:!1,react:{useSuspense:!0},fallbackLng:"en",load:"currentOnly",interpolation:{escapeValue:!1}});const oc=({children:e})=>b.jsx(sc,{i18n:ri,children:e}),g=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,T=globalThis,Le="10.23.0";function Ue(){return pn(T),T}function pn(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Le,t[Le]=t[Le]||{}}function rt(e,t,n=T){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[Le]=r[Le]||{};return s[e]||(s[e]=t())}const ac=["debug","info","warn","error","log","assert","trace"],cc="Sentry Logger ",tn={};function st(e){if(!("console"in T))return e();const t=T.console,n={},r=Object.keys(tn);r.forEach(s=>{const i=tn[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function uc(){ur().enabled=!0}function dc(){ur().enabled=!1}function pi(){return ur().enabled}function fc(...e){cr("log",...e)}function lc(...e){cr("warn",...e)}function pc(...e){cr("error",...e)}function cr(e,...t){g&&pi()&&st(()=>{T.console[e](`${cc}[${e}]:`,...t)})}function ur(){return g?rt("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const h={enable:uc,disable:dc,isEnabled:pi,log:fc,warn:lc,error:pc},mi=50,je="?",Qr=/\(error: (.*)\)/,Jr=/captureMessage|captureException/;function hi(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const i=[],o=n.split(` 3`);for(let a=r;a<o.length;a++){let c=o[a];c.length>1024&&(c=c.slice(0,1024));const u=Qr.test(c)?c.replace(Qr,"$1"):c;if(!u.match(/\S*Error: /)){for(const d of t){const f=d(u);if(f){i.push(f);break}}if(i.length>=mi+s)break}}return hc(i.slice(s))}}function mc(e){return Array.isArray(e)?hi(...e):e}function hc(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ft(t).function||"")&&t.pop(),t.reverse(),Jr.test(Ft(t).function||"")&&(t.pop(),Jr.test(Ft(t).function||"")&&t.pop()),t.slice(0,mi).map(n=>({...n,filename:n.filename||Ft(t).filename,function:n.function||je}))}function Ft(e){return e[e.length-1]||{}}const In="<anonymous>";function fe(e){try{return!e||typeof e!="function"?In:e.name||In}catch{return In}}function Zr(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const Gt={},es={};function Te(e,t){Gt[e]=Gt[e]||[],Gt[e].push(t)}function Ie(e,t){if(!es[e]){es[e]=!0;try{t()}catch(n){g&&h.error(`Error while instrumenting ${e}`,n)}}}function Y(e,t){const n=e&&Gt[e];if(n)for(const r of n)try{r(t)}catch(s){g&&h.error(`Error while triggering instrumentation handler. 4Type: ${e} 5Name: ${fe(r)} 6Error:`,s)}}let wn=null;function gi(e){const t="error";Te(t,e),Ie(t,gc)}
vendor: 4,651 bytes, line 6
6function gc(){wn=T.onerror,T.onerror=function(e,t,n,r,s){return Y("error",{column:r,error:s,line:n,msg:e,url:t}),wn?wn.apply(this,arguments):!1},T.onerror.__SENTRY_INSTRUMENTED__=!0}let Rn=null;function _i(e){const t="unhandledrejection";Te(t,e),Ie(t,_c)}function _c(){Rn=T.onunhandledrejection,T.onunhandledrejection=function(e){return Y("unhandledrejection",e),Rn?Rn.apply(this,arguments):!0},T.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const yi=Object.prototype.toString;function dr(e){switch(yi.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return le(e,Error)}}function it(e,t){return yi.call(e)===`[object ${t}]`}function Si(e){return it(e,"ErrorEvent")}function ts(e){return it(e,"DOMError")}function yc(e){return it(e,"DOMException")}function ue(e){return it(e,"String")}function fr(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ye(e){return e===null||fr(e)||typeof e!="object"&&typeof e!="function"}function _t(e){return it(e,"Object")}function mn(e){return typeof Event<"u"&&le(e,Event)}function Sc(e){return typeof Element<"u"&&le(e,Element)}function bc(e){return it(e,"RegExp")}function ot(e){return!!(e?.then&&typeof e.then=="function")}function Ec(e){return _t(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function le(e,t){try{return e instanceof t}catch{return!1}}function bi(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Ei(e){return typeof Request<"u"&&le(e,Request)}const lr=T,vc=80;function J(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||vc;for(;n&&i++<r&&(u=Tc(n,d),!(u==="html"||i>1&&o+s.length*c+u.length>=f));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function Tc(e,t){const n=e,r=[];if(!n?.tagName)return"";if(lr.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t?.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s?.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&ue(o)){const a=o.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const o of i){const a=n.getAttribute(o);a&&r.push(`[${o}="${a}"]`)}return r.join("")}function Tt(){try{return lr.document.location.href}catch{return""}}function vi(e){if(!lr.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;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}function nn(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function ns(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{bi(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Xt(e,t,n=!1){return ue(e)?bc(t)?t.test(e):ue(t)?n?e===t:e.includes(t):!1:!1}function ye(e,t=[],n=!1){return t.some(r=>Xt(e,r,n))}function z(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&Ti(s,r);try{e[t]=s}catch{g&&h.log(`Failed to replace method "${t}" in object`,e)}}function G(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{g&&h.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ti(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,G(e,"__sentry_original__",t)}catch{}}function pr(e){return e.__sentry_original__}function Ii(e){if(dr(e))return{message:e.message,name:e.name,stack:e.stack,...ss(e)};if(mn(e)){const t={type:e.type,target:rs(e.target),currentTarget:rs(e.currentTarget),...ss(e)};return typeof CustomEvent<"u"&&le(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function rs(e){try{return Sc(e)?J(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function ss(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Ic(e,t=40){const n=Object.keys(Ii(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return nn(r,t);for(let s=n.length;s>0;s--){const i=n.slice(0,s).join(", ");
6if(!(i.length>t))return s===n.length?i:nn(i,t)}return""}function wc(){const e=T;return e.crypto||e.msCrypto}let kn;function Rc(){return Math.random()*16}function Q(e=wc()){try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return kn||(kn="10000000100040008000"+1e11),kn.replace(/[018]/g,t=>(t^(Rc()&15)>>t/4).toString(16))}function wi(e){return e.exception?.values?.[0]}function Ne(e){const{message:t,event_id:n}=e;if(t)return t;const r=wi(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Hn(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function Qe(e,t){const n=wi(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s?.data,...t.data};n.mechanism.data=i}}function is(e){if(kc(e))return!0;try{G(e,"__sentry_captured__",!0)}catch{}return!1}function kc(e){try{return e.__sentry_captured__}catch{}}const Ri=1e3;function Be(){return Date.now()/Ri}function Ac(){const{performance:e}=T;if(!e?.now||!e.timeOrigin)return Be;const t=e.timeOrigin;return()=>(t+e.now())/Ri}let os;function x(){return(os??(os=Ac()))()}let An;function Oc(){const{performance:e}=T;if(!e?.now)return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=s<t,o=e.timing?.navigationStart,c=typeof o=="number"?Math.abs(o+n-r):t,u=c<t;return i||u?s<=c?[e.timeOrigin,"timeOrigin"]:[o,"navigationStart"]:[r,"dateNow"]}function X(){return An||(An=Oc()),An[0]}function Pc(e){const t=x(),n={sid:Q(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>xc(n)};return e&&Je(n,e),n}function Je(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||x(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Q()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Cc(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Je(e,n)}function xc(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function It(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=It(r[s],t[s],n-1));return r}function pe(){return Q()}function de(){return Q().substring(16)}const Un="_sentrySpan";function Ze(e,t){t?G(e,Un,t):delete e[Un]}function rn(e){return e[Un]}const Nc=100;class me{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:pe(),sampleRand:Math.random()}}clone(){const t=new me;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Ze(t,rn(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Je(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof me?n.getScopeData():_t(n)?t:void 0,{tags:s,extra:i,user:o,contexts:a,level:c,fingerprint:u=[],propagationContext:d}=r||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),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,Ze(this,void 0),this._attachments=[],this.setPropagationContext({traceId:pe(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Nc;if(r<=0)return this;const s={timestamp:Be(),...t,message:t.message?nn(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),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(t){return this._attachments.push(t),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:rn(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=It(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||Q();if(!this._client)return g&&h.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||Q();if(!this._client)return g&&h.warn("No client configured on scope - will not capture message!"),s;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=n?.event_id||Q();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(g&&h.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
6h(t=>{t(this)}),this._notifyingListeners=!1)}}function Lc(){return rt("defaultCurrentScope",()=>new me)}function Mc(){return rt("defaultIsolationScope",()=>new me)}class Dc{constructor(t,n){let r;t?r=t:r=new me;let s;n?s=n:s=new me,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return ot(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function et(){const e=Ue(),t=pn(e);return t.stack=t.stack||new Dc(Lc(),Mc())}function Fc(e){return et().withScope(e)}function $c(e,t){const n=et();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function as(e){return et().withScope(()=>e(et().getIsolationScope()))}function jc(){return{withIsolationScope:as,withScope:Fc,withSetScope:$c,withSetIsolationScope:(e,t)=>as(t),getCurrentScope:()=>et().getScope(),getIsolationScope:()=>et().getIsolationScope()}}function at(e){const t=pn(e);return t.acs?t.acs:jc()}function A(){const e=Ue();return at(e).getCurrentScope()}function we(){const e=Ue();return at(e).getIsolationScope()}function Hc(){return rt("globalScope",()=>new me)}function hn(...e){const t=Ue(),n=at(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function k(){return A().getClient()}function Uc(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=t,i={trace_id:n,span_id:s||de()};return r&&(i.parent_span_id=r),i}const se="sentry.source",mr="sentry.sample_rate",ki="sentry.previous_trace_sample_rate",he="sentry.op",C="sentry.origin",yt="sentry.idle_span_finish_reason",wt="sentry.measurement_unit",Rt="sentry.measurement_value",cs="sentry.custom_span_name",hr="sentry.profile_id",ct="sentry.exclusive_time",Bc="sentry.link.type",qc=0,Ai=1,P=2;function Wc(e){if(e<400&&e>=100)return{code:Ai};if(e>=400&&e<500)switch(e){case 401:return{code:P,message:"unauthenticated"};case 403:return{code:P,message:"permission_denied"};case 404:return{code:P,message:"not_found"};case 409:return{code:P,message:"already_exists"};case 413:return{code:P,message:"failed_precondition"};case 429:return{code:P,message:"resource_exhausted"};case 499:return{code:P,message:"cancelled"};default:return{code:P,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:P,message:"unimplemented"};case 503:return{code:P,message:"unavailable"};case 504:return{code:P,message:"deadline_exceeded"};default:return{code:P,message:"internal_error"}}return{code:P,message:"internal_error"}}function Oi(e,t){e.setAttribute("http.response.status_code",t);const n=Wc(t);n.message!=="unknown_error"&&e.setStatus(n)}const Pi="_sentryScope",Ci="_sentryIsolationScope";function zc(e){try{const t=T.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function Gc(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function Xc(e,t,n){e&&(G(e,Ci,zc(n)),G(e,Pi,t))}function sn(e){const t=e;return{scope:t[Pi],isolationScope:Gc(t[Ci])}}const gr="sentry-",Kc=/^sentry-/,Vc=8192;function xi(e){const t=Qc(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,i])=>{if(s.match(Kc)){const o=s.slice(gr.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function Yc(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${gr}${r}`]=s),n),{});return Jc(t)}function Qc(e){if(!(!e||!ue(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=us(n);return Object.entries(r).forEach(([s,i])=>{t[s]=i}),t},{}):us(e)}function us(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),s=t.slice(n+1);return[r,s].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}
6function Jc(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${t},${i}`;return o.length>Vc?(g&&h.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const Zc=/^o(\d+)\./,eu=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function tu(e){return e==="http"||e==="https"}function ut(e,t=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function nu(e){const t=eu.exec(e);if(!t){st(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",i="",o="",a=""]=t.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return Ni({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function Ni(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ru(e){if(!g)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(h.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?tu(r)?t&&isNaN(parseInt(t,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function su(e){return e.match(Zc)?.[1]}function iu(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=su(n)),r}function ou(e){const t=typeof e=="string"?nu(e):Ni(e);if(!(!t||!ru(t)))return t}function St(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const Li=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function au(e){if(!e)return;const t=e.match(Li);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function cu(e,t){const n=au(e),r=xi(t);if(!n?.traceId)return{traceId:pe(),sampleRand:Math.random()};const s=uu(n,r);r&&(r.sample_rand=s.toString());const{traceId:i,parentSpanId:o,parentSampled:a}=n;return{traceId:i,parentSpanId:o,sampled:a,dsc:r||{},sampleRand:s}}function Mi(e=pe(),t=de(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Di(e=pe(),t=de(),n){return`00-${e}-${t}-${n?"01":"00"}`}function uu(e,t){const n=St(t?.sample_rand);if(n!==void 0)return n;const r=St(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const Fi=0,_r=1;let ds=!1;function du(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:a,links:c}=w(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:s,status:o,origin:a,links:c}}function fu(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:w(e).parent_span_id,i=sn(e).scope,o=r?i?.getPropagationContext().propagationSpanId||de():t;return{parent_span_id:s,span_id:o,trace_id:n}}function lu(e){const{traceId:t,spanId:n}=e.spanContext(),r=Re(e);return Mi(t,n,r)}function pu(e){const{traceId:t,spanId:n}=e.spanContext(),r=Re(e);return Di(t,n,r)}function $i(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:i})=>({span_id:t,trace_id:n,sampled:r===_r,attributes:i,...s}))}function Me(e){return typeof e=="number"?fs(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?fs(e.getTime()):x()}function fs(e){return e>9999999999?e/1e3:e}function w(e){if(hu(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(mu(e)){const{attributes:r,startTime:s,name:i,endTime:o,status:a,links:c}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:u,start_timestamp:Me(s),timestamp:Me(o)||void 0,status:ji(a),op:r[he],origin:r[C],links:$i(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function mu(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function hu(e){return typeof e.getSpanJSON=="function"}function Re(e){const{traceFlags:t}=e.spanContext();return t===_r}function ji(e){if(!(!e||e.code===qc))return e.code===Ai?"ok":e.message||"internal_error"}const De="_sentryChildSpans",Bn="_sentryRootSpan";function Hi(e,t){const n=e[Bn]||e;G(t,Bn,n),e[De]?e[De].add(t):G(e,De,new Set([t]))}function gu(e,t){e[De]&&e[De].delete(t)}function Kt(e){const t=new Set;function n(r){if(!t.has(r)&&Re(r)){t.add(r);const s=r[De]?Array.from(r[De]):[];for(const i of s)n(i)}}return n(e),Array.from(t)}function F(e){return e[Bn]||e}
6function K(){const e=Ue(),t=at(e);return t.getActiveSpan?t.getActiveSpan():rn(A())}function qn(){ds||(st(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),ds=!0)}let ls=!1;function _u(){if(ls)return;function e(){const t=K(),n=t&&F(t);if(n){const r="internal_error";g&&h.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:P,message:r})}}e.tag="sentry_tracingErrorCallback",ls=!0,gi(e),_i(e)}function re(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||k()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function ps(e){h.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function on(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(Su(n)){if(Xt(e.description,n))return g&&ps(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?Xt(e.description,n.name):!0,s=n.op?e.op&&Xt(e.op,n.op):!0;if(r&&s)return g&&ps(e),!0}return!1}function yu(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const s of e)s.parent_span_id===r&&(s.parent_span_id=n)}function Su(e){return typeof e=="string"||e instanceof RegExp}const yr="production",Ui="_frozenDsc";function Vt(e,t){G(e,Ui,t)}function Bi(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s={environment:n.environment||yr,release:n.release,public_key:r,trace_id:e,org_id:iu(t)};return t.emit("createDsc",s),s}function qi(e,t){const n=t.getPropagationContext();return n.dsc||Bi(n.traceId,e)}function be(e){const t=k();if(!t)return{};const n=F(e),r=w(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s[mr]??s[ki];function a(m){return(typeof o=="number"||typeof o=="string")&&(m.sample_rate=`${o}`),m}const c=n[Ui];if(c)return a(c);const u=i?.get("sentry.dsc"),d=u&&xi(u);if(d)return a(d);const f=Bi(e.spanContext().traceId,t),p=s[se],l=r.description;return p!=="url"&&l&&(f.transaction=l),re()&&(f.sampled=String(Re(n)),f.sample_rand=i?.get("sentry.sample_rand")??sn(n).scope?.getPropagationContext().sampleRand.toString()),a(f),t.emit("createDsc",f,n),f}class Ee{constructor(t={}){this._traceId=t.traceId||pe(),this._spanId=t.spanId||de()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Fi}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function ce(e,t=100,n=1/0){try{return Wn("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Wi(e,t=3,n=100*1024){const r=ce(e,t);return Tu(r)>n?Wi(e,t-1,n):r}function Wn(e,t,n=1/0,r=1/0,s=Iu()){const[i,o]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=bu(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const l=u.toJSON();return Wn("",l,c-1,r,s)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=Ii(t);for(const l in p){if(!Object.prototype.hasOwnProperty.call(p,l))continue;if(f>=r){d[l]="[MaxProperties ~]";break}const m=p[l];d[l]=Wn(l,m,c-1,r,s),f++}return o(t),d}function bu(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(bi(t))return"[VueViewModel]";if(Ec(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${fe(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Eu(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Eu(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function vu(e){return~-encodeURI(e).split(/%..|./).length}function Tu(e){return vu(JSON.stringify(e))}function Iu(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function qe(e,t=[]){return[e,t]}function wu(e,t){const[n,r]=e;return[n,[...r,t]]}function ms(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function zn(e){const t=pn(T);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Ru(e){const[t,n]=e;let r=JSON.stringify(t);function s(i){typeof r=="string"?r=typeof i=="string"?r+i:[zn(r),i]:r.push(typeof i=="string"?zn(i):i)}for(const i of n){const[o,a]=i;
6if(s(` 7${JSON.stringify(o)} 8`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(ce(a))}s(c)}}return typeof r=="string"?r:ku(r)}function ku(e){const t=e.reduce((s,i)=>s+i.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Au(e){return[{type:"span"},e]}function Ou(e){const t=typeof e.data=="string"?zn(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Pu={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",log:"log_item",metric:"metric",trace_metric:"metric"};function hs(e){return Pu[e]}function zi(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Cu(e,t,n,r){const s=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ut(r)},...s&&{trace:s}}}function xu(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Nu(e,t,n,r){const s=zi(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:ut(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return qe(i,[o])}function Lu(e,t,n,r){const s=zi(n),i=e.type&&e.type!=="replay_event"?e.type:"event";xu(e,n?.sdk);const o=Cu(e,s,r,t);return delete e.sdkProcessingMetadata,qe(o,[[{type:i},e]])}function Mu(e,t){function n(l){return!!l.trace_id&&!!l.public_key}const r=be(e[0]),s=t?.getDsn(),i=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&s&&{dsn:ut(s)}},{beforeSendSpan:a,ignoreSpans:c}=t?.getOptions()||{},u=c?.length?e.filter(l=>!on(w(l),c)):e,d=e.length-u.length;d&&t?.recordDroppedEvent("before_send","span",d);const f=a?l=>{const m=w(l),y=a(m);return y||(qn(),m)}:w,p=[];for(const l of u){const m=f(l);m&&p.push(Au(m))}return qe(o,p)}function Du(e){if(!g)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=w(e),{spanId:s}=e.spanContext(),i=Re(e),o=F(e),a=o===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:d,description:f}=w(o);u.push(`root ID: ${o.spanContext().spanId}`),d&&u.push(`root op: ${d}`),f&&u.push(`root description: ${f}`)}h.log(`${c} 9 ${u.join(` 10 `)}`)}function Fu(e){if(!g)return;const{description:t="< unknown name >",op:n="< unknown op >"}=w(e),{spanId:r}=e.spanContext(),i=F(e)===e,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;h.log(o)}function $u(e,t,n,r=K()){const s=r&&F(r);s&&(g&&h.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[Rt]:t,[wt]:n}))}function gs(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[wt],i=r[Rt];typeof s=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:s})}),t}const _s=1e3;class gn{constructor(t={}){this._traceId=t.traceId||pe(),this._spanId=t.spanId||de(),this._startTime=t.startTimestamp||x(),this._links=t.links,this._attributes={},this.setAttributes({[C]:"manual",[he]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?_r:Fi}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Me(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(se,"custom"),this}end(t){this._endTime||(this._endTime=Me(t),Fu(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[he],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:ji(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[C],profile_id:this._attributes[hr],exclusive_time:this._attributes[ct],measurements:gs(this._events),is_segment:this._isStandaloneSpan&&F(this)===this||void 0,segment_id:this._isStandaloneSpan?F(this).spanContext().spanId:void 0,links:$i(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){g&&h.log("[Tracing] Adding an event to span:",t);const s=ys(n)?n:r||x(),i=ys(n)?{}:n||{},o={name:t,time:Me(s),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=k();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===F(this)))return;if(this._isStandaloneSpan){this._sampled?Hu(Mu([this],t)):(g&&h.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(sn(this).scope||A()).captureEvent(r)}_convertSpanToTransaction(){if(!Ss(w(this)))return;this._name||(g&&h.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=sn(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const i=Kt(this).filter(d=>d!==this&&!ju(d)).map(d=>w(d)).filter(Ss),o=this._attributes[se];
10delete this._attributes[cs],i.forEach(d=>{delete d.data[cs]});const a={contexts:{trace:du(this)},spans:i.length>_s?i.sort((d,f)=>d.start_timestamp-f.start_timestamp).slice(0,_s):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:be(this)},request:r,...o&&{transaction_info:{source:o}}},c=gs(this._events);return c&&Object.keys(c).length&&(g&&h.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}}function ys(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Ss(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function ju(e){return e instanceof gn&&e.isStandaloneSpan()}function Hu(e){const t=k();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function Uu(e,t,n=()=>{},r=()=>{}){let s;try{s=e()}catch(i){throw t(i),n(),i}return Bu(s,t,n,r)}function Bu(e,t,n,r){return ot(e)?e.then(s=>(n(),r(s),s),s=>{throw t(s),n(),s}):(n(),r(e),e)}function qu(e,t,n){if(!re(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const i=St(s);if(i===void 0)return g&&h.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(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!i)return g&&h.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,r];const o=n<i;return o||g&&h.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[o,i,r]}const Gi="__SENTRY_SUPPRESS_TRACING__";function Wu(e,t){const n=br();if(n.startSpan)return n.startSpan(e,t);const r=Ki(e),{forceTransaction:s,parentSpan:i,scope:o}=e,a=o?.clone();return hn(a,()=>Gu(i)(()=>{const u=A(),d=Vi(u,i),p=e.onlyIfParent&&!d?new Ee:Xi({parentSpan:d,spanArguments:r,forceTransaction:s,scope:u});return Ze(u,p),Uu(()=>t(p),()=>{const{status:l}=w(p);p.isRecording()&&(!l||l==="ok")&&p.setStatus({code:P,message:"internal_error"})},()=>{p.end()})}))}function dt(e){const t=br();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Ki(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?o=>hn(e.scope,o):s!==void 0?o=>Sr(s,o):o=>o())(()=>{const o=A(),a=Vi(o,s);return e.onlyIfParent&&!a?new Ee:Xi({parentSpan:a,spanArguments:n,forceTransaction:r,scope:o})})}function Sr(e,t){const n=br();return n.withActiveSpan?n.withActiveSpan(e,t):hn(r=>(Ze(r,e||void 0),t(r)))}function Xi({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!re()){const o=new Ee;if(n||!e){const a={sampled:"false",sample_rate:"0",transaction:t.name,...be(o)};Vt(o,a)}return o}const s=we();let i;if(e&&!n)i=zu(e,r,t),Hi(e,i);else if(e){const o=be(e),{traceId:a,spanId:c}=e.spanContext(),u=Re(e);i=bs({traceId:a,parentSpanId:c,...t},r,u),Vt(i,o)}else{const{traceId:o,dsc:a,parentSpanId:c,sampled:u}={...s.getPropagationContext(),...r.getPropagationContext()};i=bs({traceId:o,parentSpanId:c,...t},r,u),a&&Vt(i,a)}return Du(i),Xc(i,r,s),i}function Ki(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Me(e.startTime),delete r.startTime,r}return n}function br(){const e=Ue();return at(e)}function bs(e,t,n){const r=k(),s=r?.getOptions()||{},{name:i=""}=e,o={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};r?.emit("beforeSampling",o,{decision:!1});const a=o.parentSampled??n,c=o.spanAttributes,u=t.getPropagationContext(),[d,f,p]=t.getScopeData().sdkProcessingMetadata[Gi]?[!1]:qu(s,{name:i,parentSampled:a,attributes:c,parentSampleRate:St(u.dsc?.sample_rate)},u.sampleRand),l=new gn({...e,attributes:{[se]:"custom",[mr]:f!==void 0&&p?f:void 0,...c},sampled:d});return!d&&r&&(g&&h.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",l),l}function zu(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[Gi]?!1:Re(e),o=i?new gn({...n,parentSpanId:r,traceId:s,sampled:i}):new Ee({traceId:s});Hi(e,o);const a=k();return a&&(a.emit("spanStart",o),n.endTimestamp&&a.emit("spanEnd",o)),o}function Vi(e,t){if(t)return t;if(t===null)return;const n=rn(e);if(!n)return;const r=k();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?F(n):n}function Gu(e){return e!==void 0?t=>Sr(e,t):t=>t()}const Yt={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Xu="heartbeatFailed",Ku="idleTimeout",Vu="finalTimeout",Yu="externalFinish";function Yi(e,t={}){const n=new Map;let r=!1,s,i=Yu,o=!t.disableAutoFinish;const a=[],{idleTimeout:c=Yt.idleTimeout,finalTimeout:u=Yt.finalTimeout,childSpanTimeout:d=Yt.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:p=!0}=t,l=k();if(!l||!re()){const I=new Ee,N={sample_rate:"0",sampled:"false",...be(I)};return Vt(I,N),I}const m=A(),y=K(),_=Qu(e);_.end=new Proxy(_.end,{apply(I,N,We){if(f&&f(_),N instanceof Ee)return;const[Mt,...ie]=We,ke=Mt||x(),L=Me(ke),Ae=Kt(_).filter(v=>v!==_),Oe=w(_);if(!Ae.length||!p)return Lt(L),Reflect.apply(I,N,[L,...ie]);const ee=l.getOptions().ignoreSpans,ge=Ae?.reduce((v,B)=>{const q=w(B);return!q.timestamp||ee&&on(q,ee)?v:v?Math.max(v,q.timestamp):q.timestamp},void 0),R=Oe.start_timestamp,M=Math.min(R?R+u/1e3:1/0,Math.max(R||-1/0,Math.min(L,ge||1/0)));return Lt(M),Reflect.apply(I,N,[M,...ie])}});function $(){s&&(clearTimeout(s),s=void 0)}function U(I){$(),s=setTimeout(()=>{!r&&n.size===0&&o&&(i=Ku,_.end(I))},c)}function Nt(I){s=setTimeout(()=>{!r&&o&&(i=Xu,_.end(I))},d)}function bn(I){$(),n.set(I,!0);const N=x();Nt(N+d/1e3)}function En(I){if(n.has(I)&&n.delete(I),n.size===0){const N=x();U(N+c/1e3)}}function Lt(I){r=!0,n.clear(),a.forEach(L=>L()),Ze(m,y);const N=w(_),{start_timestamp:We}=N;
10if(!We)return;N.data[yt]||_.setAttribute(yt,i),h.log(`[Tracing] Idle span "${N.op}" finished`);const ie=Kt(_).filter(L=>L!==_);let ke=0;ie.forEach(L=>{L.isRecording()&&(L.setStatus({code:P,message:"cancelled"}),L.end(I),g&&h.log("[Tracing] Cancelling span since span ended early",JSON.stringify(L,void 0,2)));const Ae=w(L),{timestamp:Oe=0,start_timestamp:ee=0}=Ae,ge=ee<=I,R=(u+c)/1e3,M=Oe-ee<=R;if(g){const v=JSON.stringify(L,void 0,2);ge?M||h.log("[Tracing] Discarding span since it finished after idle span final timeout",v):h.log("[Tracing] Discarding span since it happened after idle span was finished",v)}(!M||!ge)&&(gu(_,L),ke++)}),ke>0&&_.setAttribute("sentry.idle_span_discarded_spans",ke)}return a.push(l.on("spanStart",I=>{if(r||I===_||w(I).timestamp||I instanceof gn&&I.isStandaloneSpan())return;Kt(_).includes(I)&&bn(I.spanContext().spanId)})),a.push(l.on("spanEnd",I=>{r||En(I.spanContext().spanId)})),a.push(l.on("idleSpanEnableAutoFinish",I=>{I===_&&(o=!0,U(),n.size&&Nt())})),t.disableAutoFinish||U(),setTimeout(()=>{r||(_.setStatus({code:P,message:"deadline_exceeded"}),i=Vu,_.end())},u),_}function Qu(e){const t=dt(e);return Ze(A(),t),g&&h.log("[Tracing] Started span is an idle span"),t}const On=0,Es=1,vs=2;function _n(e){return new bt(t=>{t(e)})}function Er(e){return new bt((t,n)=>{n(e)})}class bt{constructor(t){this._state=On,this._handlers=[],this._runExecutor(t)}then(t,n){return new bt((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new bt((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===On)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Es&&n[1](this._value),this._state===vs&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,o)=>{if(this._state===On){if(ot(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(Es,i)},s=i=>{n(vs,i)};try{t(r,s)}catch(i){s(i)}}}function Ju(e,t,n,r=0){try{const s=Gn(t,n,e,r);return ot(s)?s:_n(s)}catch(s){return Er(s)}}function Gn(e,t,n,r){const s=n[r];if(!e||!s)return e;const i=s({...e},t);return g&&i===null&&h.log(`Event processor "${s.id||"?"}" dropped event`),ot(i)?i.then(o=>Gn(o,t,n,r+1)):Gn(i,t,n,r+1)}function Zu(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;ed(e,t),r&&rd(e,r),sd(e,n),td(e,s),nd(e,i)}function Ts(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:l,span:m}=t;$t(e,"extra",n),$t(e,"tags",r),$t(e,"user",s),$t(e,"contexts",i),e.sdkProcessingMetadata=It(e.sdkProcessingMetadata,a,2),o&&(e.level=o),l&&(e.transactionName=l),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function $t(e,t,n){e[t]=It(e[t],n,1)}function ed(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),o&&(e.level=o),a&&e.type!=="transaction"&&(e.transaction=a)}function td(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function nd(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function rd(e,t){e.contexts={trace:fu(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:be(t),...e.sdkProcessingMetadata};const n=F(t),r=w(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function sd(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let xe,Is,ws,_e;function id(e){const t=T._sentryDebugIds,n=T._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(_e&&r.length===Is&&s.length===ws)return _e;Is=r.length,ws=s.length,_e={},xe||(xe={});const i=(o,a)=>{for(const c of o){const u=a[c],d=xe?.[c];if(d&&_e&&u)_e[d[0]]=u,xe&&(xe[c]=[d[0],u]);else if(u){const f=e(c);for(let p=f.length-1;p>=0;p--){const m=f[p]?.filename;if(m&&_e&&xe){_e[m]=u,xe[c]=[m,u];break}}}}};return t&&i(r,t),n&&i(s,n),_e}function od(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Q(),timestamp:t.timestamp||Be()},u=n.integrations||e.integrations.map(_=>_.name);ad(c,e),dd(c,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&cd(c,e.stackParser);const d=ld(r,n.captureContext);n.mechanism&&Qe(c,n.mechanism);const f=s?s.getEventProcessors():[],p=Hc().getScopeData();if(i){const _=i.getScopeData();Ts(p,_)}if(d){const _=d.getScopeData();Ts(p,_)}const l=[...n.attachments||[],...p.attachments];l.length&&(n.attachments=l),Zu(c,p);const m=[...f,...p.eventProcessors];return Ju(m,c,n).then(_=>(_&&ud(_),typeof o=="number"&&o>0?fd(_,o,a):_))}function ad(e,t){const{environment:n,release:r,dist:s,maxValueLength:i}=t;e.environment=e.environment||n||yr,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const o=e.request;o?.url&&(o.url=i?nn(o.url,i):o.url)}function cd(e,t){const n=id(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function ud(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function dd(e,t){t.length>0&&(e.sdk=e.sdk||{}
10,e.sdk.integrations=[...e.sdk.integrations||[],...t])}function fd(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:ce(s.data,t,n)}}))},...e.user&&{user:ce(e.user,t,n)},...e.contexts&&{contexts:ce(e.contexts,t,n)},...e.extra&&{extra:ce(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ce(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:ce(s.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=ce(e.contexts.flags,3,n)),r}function ld(e,t){if(!t)return e;const n=e?e.clone():new me;return n.update(t),n}function pd(e,t){return A().captureException(e,void 0)}function Qi(e,t){return A().captureEvent(e,t)}function md(e,t){we().setContext(e,t)}function hd(){const e=k();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Rs(e){const t=we(),n=A(),{userAgent:r}=T.navigator||{},s=Pc({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),i=t.getSession();return i?.status==="ok"&&Je(i,{status:"exited"}),Ji(),t.setSession(s),s}function Ji(){const e=we(),n=A().getSession()||e.getSession();n&&Cc(n),Zi(),e.setSession()}function Zi(){const e=we(),t=k(),n=e.getSession();n&&t&&t.captureSession(n)}function ks(e=!1){if(e){Ji();return}Zi()}const gd="7";function _d(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function yd(e){return`${_d(e)}${e.projectId}/envelope/`}function Sd(e,t){const n={sentry_version:gd};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function bd(e,t,n){return t||`${yd(e)}?${Sd(e,n)}`}const As=[];function Ed(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function vd(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return Ed(r)}function Td(e,t){const n={};return t.forEach(r=>{r&&eo(e,r,n)}),n}function Os(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function eo(e,t,n){if(n[t.name]){g&&h.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,As.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),As.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,i)=>r(s,i,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((i,o)=>r(i,o,e),{id:t.name});e.addEventProcessor(s)}g&&h.log(`Integration installed: ${t.name}`)}function Id(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function wd(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=ut(r)),qe(s,[Id(e)])}function to(e,t){const n=t??Rd(e)??[];if(n.length===0)return;const r=e.getOptions(),s=wd(n,r._metadata,r.tunnel,e.getDsn());no().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function Rd(e){return no().get(e)}function no(){return rt("clientToLogBufferMap",()=>new WeakMap)}function kd(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function Ad(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=ut(r)),qe(s,[kd(e)])}function ro(e,t){const n=t??Od(e)??[];if(n.length===0)return;const r=e.getOptions(),s=Ad(n,r._metadata,r.tunnel,e.getDsn());so().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function Od(e){return so().get(e)}function so(){return rt("clientToMetricBufferMap",()=>new WeakMap)}function Pd(e,t,n){const r=[{type:"client_report"},{timestamp:Be(),discarded_events:e}];return qe(t?{dsn:t}:{},[r])}function io(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Cd(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:a}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:o?.[hr],exclusive_time:o?.[ct],measurements:e.measurements,is_segment:!0}}function xd(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[hr]:e.profile_id},...e.exclusive_time&&{[ct]:e.exclusive_time}}}},measurements:e.measurements}}const Ps="Not capturing exception because it's already been captured.",Cs="Discarded session because of missing or non-string release",oo=Symbol.for("SentryInternalError"),ao=Symbol.for("SentryDoNotSendEventError"),Nd=5e3;function Qt(e){return{message:e,[oo]:!0}}function Pn(e){return{message:e,[ao]:!0}}function xs(e){return!!e&&typeof e=="object"&&oo in e}function Ns(e){return!!e&&typeof e=="object"&&ao in e}
10function Ls(e,t,n,r,s){let i=0,o;e.on(n,()=>{i=0,clearTimeout(o)}),e.on(t,a=>{i+=r(a),i>=8e5?s(e):(clearTimeout(o),o=setTimeout(()=>{s(e)},Nd))}),e.on("flush",()=>{s(e)})}class Ld{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=ou(t.dsn):g&&h.warn("No DSN provided, client will not send events."),this._dsn){const n=bd(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}this._options.enableLogs&&Ls(this,"afterCaptureLog","flushLogs",$d,to),this._options._experiments?.enableMetrics&&Ls(this,"afterCaptureMetric","flushMetrics",Fd,ro)}captureException(t,n,r){const s=Q();if(is(t))return g&&h.log(Ps),s;const i={event_id:s,...n};return this._process(this.eventFromException(t,i).then(o=>this._captureEvent(o,i,r))),i.event_id}captureMessage(t,n,r,s){const i={event_id:Q(),...r},o=fr(t)?t:String(t),a=Ye(t)?this.eventFromMessage(o,n,i):this.eventFromException(t,i);return this._process(a.then(c=>this._captureEvent(c,i,s))),i.event_id}captureEvent(t,n,r){const s=Q();if(n?.originalException&&is(n.originalException))return g&&h.log(Ps),s;const i={event_id:s,...n},o=t.sdkProcessingMetadata||{},a=o.capturedSpanScope,c=o.capturedSpanIsolationScope;return this._process(this._captureEvent(t,i,a||r,c)),i.event_id}captureSession(t){this.sendSession(t),Je(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),s=await n.flush(t);return r&&s}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];eo(this,t,this._integrations),n||Os(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Lu(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=wu(r,Ou(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:n,environment:r=yr}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){g&&h.warn(Cs);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){g&&h.warn(Cs);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=Nu(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;g&&h.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,s=(...i)=>n(...i);return r.add(s),()=>{r.delete(s)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return g&&h.error("Error while sending envelope:",n),{}}return g&&h.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Td(this,t),Os(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const i=n.exception?.values;if(i){s=!0;for(const c of i)if(c.mechanism?.handled===!1){r=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(Je(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const i=this.getOptions(),o=Object.keys(this._integrations);
10return!n.integrations&&o?.length&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),od(i,t,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:Uc(r),...a.contexts};const c=qi(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=A(),s=we()){return g&&Xn(t)&&h.log(`Captured error event \`${io(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(i=>i.event_id,i=>{g&&(Ns(i)?h.log(i.message):xs(i)?h.warn(i.message):h.warn(i))})}_processEvent(t,n,r,s){const i=this.getOptions(),{sampleRate:o}=i,a=co(t),c=Xn(t),u=t.type||"error",d=`before send for type \`${u}\``,f=typeof o>"u"?void 0:St(o);if(c&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),Er(Pn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const p=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,r,s).then(l=>{if(l===null)throw this.recordDroppedEvent("event_processor",p),Pn("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return l;const y=Dd(this,i,l,n);return Md(y,d)}).then(l=>{if(l===null){if(this.recordDroppedEvent("before_send",p),a){const $=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",$)}throw Pn(`${d} returned \`null\`, will not send event.`)}const m=r.getSession()||s.getSession();if(c&&m&&this._updateSessionFromEvent(m,l),a){const _=l.sdkProcessingMetadata?.spanCountBeforeProcessing||0,$=l.spans?l.spans.length:0,U=_-$;U>0&&this.recordDroppedEvent("before_send","span",U)}const y=l.transaction_info;if(a&&y&&l.transaction!==t.transaction){const _="custom";l.transaction_info={...y,source:_}}return this.sendEvent(l,n),l}).then(null,l=>{throw Ns(l)||xs(l)?l:(this.captureException(l,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:l}),Qt(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 11Reason: ${l}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,i]=n.split(":");return{reason:s,category:i,quantity:r}})}_flushOutcomes(){g&&h.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){g&&h.log("No outcomes to send");return}if(!this._dsn){g&&h.log("No dsn provided, will not send outcomes");return}g&&h.log("Sending outcomes:",t);const n=Pd(t,this._options.tunnel&&ut(this._dsn));this.sendEnvelope(n)}}function Md(e,t){const n=`${t} must return \`null\` or a valid event.`;if(ot(e))return e.then(r=>{if(!_t(r)&&r!==null)throw Qt(n);return r},r=>{throw Qt(`${t} rejected with ${r}`)});if(!_t(e)&&e!==null)throw Qt(n);return e}function Dd(e,t,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o,ignoreSpans:a}=t;let c=n;if(Xn(c)&&s)return s(c,r);if(co(c)){if(o||a){const u=Cd(c);if(a?.length&&on(u,a))return null;if(o){const d=o(u);d?c=It(n,xd(d)):qn()}if(c.spans){const d=[],f=c.spans;for(const l of f){if(a?.length&&on(l,a)){yu(f,l);continue}if(o){const m=o(l);m?d.push(m):(qn(),d.push(l))}else d.push(l)}const p=c.spans.length-d.length;p&&e.recordDroppedEvent("before_send","span",p),c.spans=d}}if(i){if(c.spans){const u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return i(c,r)}}return c}function Xn(e){return e.type===void 0}function co(e){return e.type==="transaction"}function Fd(e){let t=0;return e.name&&(t+=e.name.length*2),typeof e.value=="string"?t+=e.value.length*2:t+=8,t+uo(e.attributes)}function $d(e){let t=0;return e.message&&(t+=e.message.length*2),t+uo(e.attributes)}function uo(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*Ms(n[0]):Ye(n)?t+=Ms(n):t+=100}),t}function Ms(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function jd(e,t){t.debug===!0&&(g?h.enable():st(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),A().update(t.initialScope);const r=new e(t);return Hd(r),r.init(),r}function Hd(e){A().setClient(e)}const fo=Symbol.for("SentryBufferFullError");function lo(e=100){const t=new Set;function n(){return t.size<e}function r(o){t.delete(o)}function s(o){if(!n())return Er(fo);const a=o();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function i(o){if(!t.size)return _n(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return a;const c=[a,new Promise(u=>setTimeout(()=>u(!1),o))];return Promise.race(c)}return{get $(){return Array.from(t)},add:s,drain:i}}const Ud=60*1e3;function Bd(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Ud:r-t}function qd(e,t){return e[t]||e.all||0}function Wd(e,t,n=Date.now()){return qd(e,t)>n}function zd(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,u,,,d]=a.split(":",5),f=parseInt(c,10),p=(isNaN(f)?60:f)*1e3;if(!u)s.all=r+p;else for(const l of u.split(";"))l==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[l]=r+p):s[l]=r+p}else o?s.all=r+Bd(o,r):t===429&&(s.all=r+60*1e3);return s}const Gd=64;function Xd(e,t,n=lo(e.bufferSize||Gd)){let r={};const s=o=>n.drain(o);function i(o){const a=[];if(ms(o,(f,p)=>{const l=hs(p);Wd(r,l)?e.recordDroppedEvent("ratelimit_backoff",l):a.push(f)}),a.length===0)return Promise.resolve({});const c=qe(o[0],a),u=f=>{ms(c,(p,l)=>{e.recordDroppedEvent(f,hs(l))})},d=()=>t({body:Ru(c)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&g&&h.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=zd(r,f),f),f=>{throw u("network_error"),g&&h.error("Encountered error running transport request:",f),f});return n.add(d).then(f=>f,f=>{if(f===fo)return g&&h.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw f})}return{send:i,flush:s}}const Kd="thismessage:/";function po(e){return"isRelative"in e}function mo(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?Kd:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function Vd(e){if(po(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Fe(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const 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 Yd(e){return e.split(/[?#]/,1)[0]}function Qd(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function ho(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:Le})),version:Le}),e._metadata=s}function go(e={}){const t=e.client||k();if(!hd()||!t)return{};const n=Ue(),r=at(n);if(r.getTraceData)return r.getTraceData(e);
11const s=e.scope||A(),i=e.span||K(),o=i?lu(i):Jd(s),a=i?be(i):qi(t,s),c=Yc(a);if(!Li.test(o))return h.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const d={"sentry-trace":o,baggage:c};if(e.propagateTraceparent){const f=i?pu(i):Zd(s);f&&(d.traceparent=f)}return d}function Jd(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Mi(t,r,n)}function Zd(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Di(t,r,n)}const ef=100;function He(e,t){const n=k(),r=we();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=ef}=n.getOptions();if(i<=0)return;const a={timestamp:Be(),...e},c=s?st(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}let Ds;const tf="FunctionToString",Fs=new WeakMap,nf=(()=>({name:tf,setupOnce(){Ds=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=pr(this),n=Fs.has(k())&&t!==void 0?t:this;return Ds.apply(n,e)}}catch{}},setup(e){Fs.set(e,!0)}})),rf=nf,sf=[/^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$/],of="EventFilters",af=(e={})=>{let t;return{name:of,setup(n){const r=n.getOptions();t=$s(e,r)},processEvent(n,r,s){if(!t){const i=s.getOptions();t=$s(e,i)}return uf(n,t)?null:n}}},cf=((e={})=>({...af(e),name:"InboundFilters"}));function $s(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:sf],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function uf(e,t){if(e.type){if(e.type==="transaction"&&ff(e,t.ignoreTransactions))return g&&h.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 12Event: ${Ne(e)}`),!0}else{if(df(e,t.ignoreErrors))return g&&h.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 13Event: ${Ne(e)}`),!0;if(hf(e))return g&&h.warn(`Event dropped due to not having an error message, error type or stacktrace. 14Event: ${Ne(e)}`),!0;if(lf(e,t.denyUrls))return g&&h.warn(`Event dropped due to being matched by \`denyUrls\` option. 15Event: ${Ne(e)}. 16Url: ${an(e)}`),!0;if(!pf(e,t.allowUrls))return g&&h.warn(`Event dropped due to not being matched by \`allowUrls\` option. 17Event: ${Ne(e)}. 18Url: ${an(e)}`),!0}return!1}function df(e,t){return t?.length?io(e).some(n=>ye(n,t)):!1}function ff(e,t){if(!t?.length)return!1;const n=e.transaction;return n?ye(n,t):!1}function lf(e,t){if(!t?.length)return!1;const n=an(e);return n?ye(n,t):!1}function pf(e,t){if(!t?.length)return!0;const n=an(e);return n?ye(n,t):!0}function mf(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function an(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?mf(n):null}catch{return g&&h.error(`Cannot extract url for event ${Ne(e)}`),null}}function hf(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function gf(e,t,n,r,s,i){if(!s.exception?.values||!i||!le(i.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Kn(e,t,r,i.originalException,n,s.exception.values,o,0))}function Kn(e,t,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(le(r[s],Error)){js(o,a);const u=e(t,r[s]),d=c.length;Hs(u,s,d,a),c=Kn(e,t,n,r[s],s,[u,...c],u,d)}
18return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(le(u,Error)){js(o,a);const f=e(t,u),p=c.length;Hs(f,`errors[${d}]`,p,a),c=Kn(e,t,n,u,s,[f,...c],f,p)}}),c}function js(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Hs(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function _f(e){const t="console";Te(t,e),Ie(t,yf)}function yf(){"console"in T&&ac.forEach(function(e){e in T.console&&z(T.console,e,function(t){return tn[e]=t,function(...n){Y("console",{args:n,level:e}),tn[e]?.apply(T.console,n)}})})}function Sf(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const bf="Dedupe",Ef=(()=>{let e;return{name:bf,processEvent(t){if(t.type)return t;try{if(Tf(t,e))return g&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),vf=Ef;function Tf(e,t){return t?!!(If(e,t)||wf(e,t)):!1}function If(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!yo(e,t)||!_o(e,t))}function wf(e,t){const n=Us(t),r=Us(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!yo(e,t)||!_o(e,t))}function _o(e,t){let n=Zr(e),r=Zr(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function yo(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Us(e){return e.exception?.values?.[0]}function Rf(e,t,n,r,s){if(!e.fetchData)return;const{method:i,url:o}=e.fetchData,a=re()&&t(o);if(e.endTimestamp&&a){const l=e.fetchData.__span;if(!l)return;const m=r[l];m&&(Of(m,e),kf(m,e,s),delete r[l]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}=typeof s=="object"?s:{spanOrigin:s},d=!!K(),f=a&&d?dt(Cf(o,i,c)):new Ee;if(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){const l=e.args[0],m=e.args[1]||{},y=Af(l,m,re()&&d?f:void 0,u);y&&(e.args[1]=m,m.headers=y)}const p=k();if(p){const l={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",f,l)}return f}function kf(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function Af(e,t,n,r){const s=go({span:n,propagateTraceparent:r}),i=s["sentry-trace"],o=s.baggage,a=s.traceparent;if(!i)return;const c=t.headers||(Ei(e)?e.headers:void 0);if(c)if(Pf(c)){const u=new Headers(c);if(u.get("sentry-trace")||u.set("sentry-trace",i),r&&a&&!u.get("traceparent")&&u.set("traceparent",a),o){const d=u.get("baggage");d?jt(d)||u.set("baggage",`${d},${o}`):u.set("baggage",o)}return u}else if(Array.isArray(c)){const u=[...c];c.find(f=>f[0]==="sentry-trace")||u.push(["sentry-trace",i]),r&&a&&!c.find(f=>f[0]==="traceparent")&&u.push(["traceparent",a]);const d=c.find(f=>f[0]==="baggage"&&jt(f[1]));return o&&!d&&u.push(["baggage",o]),u}else{const u="sentry-trace"in c?c["sentry-trace"]:void 0,d="traceparent"in c?c.traceparent:void 0,f="baggage"in c?c.baggage:void 0,p=f?Array.isArray(f)?[...f]:[f]:[],l=f&&(Array.isArray(f)?f.find(y=>jt(y)):jt(f));o&&!l&&p.push(o);const m={...c,"sentry-trace":u??i,baggage:p.length>0?p.join(","):void 0};return r&&a&&!d&&(m.traceparent=a),m}else return{...s}}function Of(e,t){if(t.response){Oi(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:P,message:"internal_error"});e.end()}function jt(e){return e.split(",").some(t=>t.trim().startsWith(gr))}function Pf(e){return typeof Headers<"u"&&le(e,Headers)}function Cf(e,t,n){const r=mo(e);return{name:r?`${t} ${Vd(r)}`:t,attributes:xf(e,r,t,n)}}function xf(e,t,n,r){const s={url:e,type:"fetch","http.method":n,[C]:r,[he]:"http.client"};return t&&(po(t)||(s["http.url"]=t.href,s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function So(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Et=T;function Nf(){return"history"in Et&&!!Et.history}function Lf(){if(!("fetch"in Et))return!1;
18try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Vn(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Mf(){if(typeof EdgeRuntime=="string")return!0;if(!Lf())return!1;if(Vn(Et.fetch))return!0;let e=!1;const t=Et.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Vn(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){g&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function bo(e,t){const n="fetch";Te(n,e),Ie(n,()=>Eo(void 0,t))}function Df(e){const t="fetch-body-resolved";Te(t,e),Ie(t,()=>Eo($f))}function Eo(e,t=!1){t&&!Mf()||z(T,"fetch",function(n){return function(...r){const s=new Error,{method:i,url:o}=jf(r),a={args:r,fetchData:{method:i,url:o},startTimestamp:x()*1e3,virtualError:s,headers:Hf(r)};return e||Y("fetch",{...a}),n.apply(T,r).then(async c=>(e?e(c):Y("fetch",{...a,endTimestamp:x()*1e3,response:c}),c),c=>{if(Y("fetch",{...a,endTimestamp:x()*1e3,error:c}),dr(c)&&c.stack===void 0&&(c.stack=s.stack,G(c,"framesToPop",1)),c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const u=new URL(a.fetchData.url);c.message=`${c.message} (${u.host})`}catch{}throw c})}})}async function Ff(e,t){if(e?.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(o),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(o)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function $f(e){let t;try{t=e.clone()}catch{return}Ff(t,()=>{Y("fetch-body-resolved",{endTimestamp:x()*1e3,response:e})})}function Yn(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Bs(e){return typeof e=="string"?e:e?Yn(e,"url")?e.url:e.toString?e.toString():"":""}function jf(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Bs(n),method:Yn(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Bs(t),method:Yn(t,"method")?String(t.method).toUpperCase():"GET"}}function Hf(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Ei(t))return new Headers(t.headers)}catch{}}function Uf(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Bf(){return"npm"}function qf(){return!Uf()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Wf(){return typeof window<"u"&&(!qf()||zf())}function zf(){return T.process?.type==="renderer"}const E=T;let Qn=0;function vo(){return Qn>0}function Gf(){Qn++,setTimeout(()=>{Qn--})}function tt(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(pr(e))return e}catch{return e}const r=function(...s){try{const i=s.map(o=>tt(o,t));return e.apply(this,i)}catch(i){throw Gf(),hn(o=>{o.addEventProcessor(a=>(t.mechanism&&(Hn(a,void 0),Qe(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),pd(i)}),i}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Ti(r,e),G(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function vr(){const e=Tt(),{referrer:t}=E.document||{},{userAgent:n}=E.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function Tr(e,t){const n=Ir(e,t),r={type:Qf(t),value:Jf(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Xf(e,t,n,r){const i=k()?.getOptions().normalizeDepth,o=rl(t),a={__serialized__:Wi(t,i)};if(o)return{exception:{values:[Tr(e,o)]},extra:a};const c={exception:{values:[{type:mn(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:tl(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=Ir(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Cn(e,t){return{exception:{values:[Tr(e,t)]}}}function Ir(e,t){const n=t.stacktrace||t.stack||"",r=Vf(t),s=Yf(t);try{return e(n,r,s)}catch{}return[]}const Kf=/Minified React error #\d+;/i;function Vf(e){return e&&Kf.test(e.message)?1:0}function Yf(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function To(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Qf(e){const t=e?.name;return!t&&To(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Jf(e){const t=e?.message;return To(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Zf(e,t,n,r){const s=n?.syntheticException||void 0,i=wr(e,t,s,r);return Qe(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),_n(i)}function el(e,t,n="info",r,s){const i=r?.syntheticException||void 0,o=Jn(e,t,i,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),_n(o)}
18function wr(e,t,n,r,s){let i;if(Si(t)&&t.error)return Cn(e,t.error);if(ts(t)||yc(t)){const o=t;if("stack"in t)i=Cn(e,t);else{const a=o.name||(ts(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;i=Jn(e,c,n,r),Hn(i,c)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return dr(t)?Cn(e,t):_t(t)||mn(t)?(i=Xf(e,t,n,s),Qe(i,{synthetic:!0}),i):(i=Jn(e,t,n,r),Hn(i,`${t}`),Qe(i,{synthetic:!0}),i)}function Jn(e,t,n,r){const s={};if(r&&n){const i=Ir(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]}),Qe(s,{synthetic:!0})}if(fr(t)){const{__sentry_template_string__:i,__sentry_template_values__:o}=t;return s.logentry={message:i,params:o},s}return s.message=t,s}function tl(e,{isUnhandledRejection:t}){const n=Ic(e),r=t?"promise rejection":"exception";return Si(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:mn(e)?`Event \`${nl(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function nl(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function rl(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class sl extends Ld{constructor(t){const n=il(t),r=E.SENTRY_SDK_SOURCE||Bf();ho(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:i,enableLogs:o,_experiments:a}=this._options;E.document&&(i||o||a?.enableMetrics)&&E.document.addEventListener("visibilitychange",()=>{E.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),o&&to(this),a?.enableMetrics&&ro(this))}),s&&this.on("beforeSendSession",Qd)}eventFromException(t,n){return Zf(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return el(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function il(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:E.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const kt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,S=T,ol=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",At=(e,t,n,r)=>{let s,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(s??0),(i||s===void 0)&&(s=t.value,t.delta=i,t.rating=ol(t.value,n),e(t)))}},al=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Ot=(e=!0)=>{const t=S.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},ft=()=>Ot()?.activationStart??0,Pt=(e,t=-1)=>{const n=Ot();let r="navigate";return n&&(S.document?.prerendering||ft()>0?r="prerender":S.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:al(),navigationType:r}},xn=new WeakMap;function Rr(e,t){return xn.get(e)||xn.set(e,new t),xn.get(e)}class cn{constructor(){cn.prototype.__init.call(this),cn.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const lt=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},kr=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let mt=-1;const cl=()=>S.document?.visibilityState==="hidden"&&!S.document?.prerendering?0:1/0,un=e=>{S.document.visibilityState==="hidden"&&mt>-1&&(mt=e.type==="visibilitychange"?e.timeStamp:0,dl())},ul=()=>{addEventListener("visibilitychange",un,!0),addEventListener("prerenderingchange",un,!0)},dl=()=>{removeEventListener("visibilitychange",un,!0),removeEventListener("prerenderingchange",un,!0)},Ar=()=>{if(S.document&&mt<0){const e=ft();mt=(S.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??cl(),ul()}return{get firstHiddenTime(){return mt}}},yn=e=>{S.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},fl=[1800,3e3],ll=(e,t={})=>{yn(()=>{const n=Ar(),r=Pt("FCP");let s;const o=lt("paint",a=>{for(const c of a)c.name==="first-contentful-paint"&&(o.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-ft(),0),r.entries.push(c),s(!0)))});o&&(s=At(e,r,fl,t.reportAllChanges))})},pl=[.1,.25],ml=(e,t={})=>{ll(kr(()=>{const n=Pt("CLS",0);let r;const s=Rr(t,cn),i=a=>{for(const c of a)s._processEntry(c);s._sessionValue>
18n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},o=lt("layout-shift",i);o&&(r=At(e,n,pl,t.reportAllChanges),S.document?.addEventListener("visibilitychange",()=>{S.document?.visibilityState==="hidden"&&(i(o.takeRecords()),r(!0))}),S?.setTimeout?.(r))}))};let Io=0,Nn=1/0,Ht=0;const hl=e=>{e.forEach(t=>{t.interactionId&&(Nn=Math.min(Nn,t.interactionId),Ht=Math.max(Ht,t.interactionId),Io=Ht?(Ht-Nn)/7+1:0)})};let Zn;const wo=()=>Zn?Io:performance.interactionCount||0,gl=()=>{"interactionCount"in performance||Zn||(Zn=lt("event",hl,{type:"event",buffered:!0,durationThreshold:0}))},Ln=10;let Ro=0;const _l=()=>wo()-Ro;class dn{constructor(){dn.prototype.__init.call(this),dn.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Ro=wo(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(_l()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Ln||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((s,i)=>i._latency-s._latency),this._longestInteractionList.length>Ln){const s=this._longestInteractionList.splice(Ln);for(const i of s)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(r)}}}const Or=e=>{const t=n=>{(n.type==="pagehide"||S.document?.visibilityState==="hidden")&&e(n)};S.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ko=e=>{const t=S.requestIdleCallback||S.setTimeout;S.document?.visibilityState==="hidden"?e():(e=kr(e),t(e),Or(e))},yl=[200,500],Sl=40,bl=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&yn(()=>{gl();const n=Pt("INP");let r;const s=Rr(t,dn),i=a=>{ko(()=>{for(const u of a)s._processEntry(u);const c=s._estimateP98LongestInteraction();c&&c._latency!==n.value&&(n.value=c._latency,n.entries=c.entries,r())})},o=lt("event",i,{durationThreshold:t.durationThreshold??Sl});r=At(e,n,yl,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),Or(()=>{i(o.takeRecords()),r(!0)}))})};class El{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const vl=[2500,4e3],Tl=(e,t={})=>{yn(()=>{const n=Ar(),r=Pt("LCP");let s;const i=Rr(t,El),o=c=>{t.reportAllChanges||(c=c.slice(-1));for(const u of c)i._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-ft(),0),r.entries=[u],s())},a=lt("largest-contentful-paint",o);if(a){s=At(e,r,vl,t.reportAllChanges);const c=kr(()=>{o(a.takeRecords()),a.disconnect(),s(!0)});for(const u of["keydown","click","visibilitychange"])S.document&&addEventListener(u,()=>ko(c),{capture:!0,once:!0})}})},Il=[800,1800],er=e=>{S.document?.prerendering?yn(()=>er(e)):S.document?.readyState!=="complete"?addEventListener("load",()=>er(e),!0):setTimeout(e)},wl=(e,t={})=>{const n=Pt("TTFB"),r=At(e,n,Il,t.reportAllChanges);er(()=>{const s=Ot();s&&(n.value=Math.max(s.responseStart-ft(),0),n.entries=[s],r(!0))})},ht={},fn={};let Ao,Oo,Po,Co;function xo(e,t=!1){return Sn("cls",e,Al,Ao,t)}function No(e,t=!1){return Sn("lcp",e,Ol,Oo,t)}function Rl(e){return Sn("ttfb",e,Pl,Po)}function kl(e){return Sn("inp",e,Cl,Co)}function nt(e,t){return Lo(e,t),fn[e]||(xl(e),fn[e]=!0),Mo(e,t)}function Ct(e,t){const n=ht[e];if(n?.length)for(const r of n)try{r(t)}catch(s){kt&&h.error(`Error while triggering instrumentation handler. 19Type: ${e} 20Name: ${fe(r)} 21Error:`,s)}}function Al(){return ml(e=>{Ct("cls",{metric:e}),Ao=e},{reportAllChanges:!0})}function Ol(){return Tl(e=>{Ct("lcp",{metric:e}),Oo=e},{reportAllChanges:!0})}function Pl(){return wl(e=>{Ct("ttfb",{metric:e}),Po=e})}function Cl(){return bl(e=>{Ct("inp",{metric:e}),Co=e})}function Sn(e,t,n,r,s=!1){Lo(e,t);let i;return fn[e]||(i=n(),fn[e]=!0),r&&t({metric:r}),Mo(e,t,s?i:void 0)}function xl(e){const t={};e==="event"&&(t.durationThreshold=0),lt(e,n=>{Ct(e,{entries:n})},t)}function Lo(e,t){ht[e]=ht[e]||[],ht[e].push(t)}
21function Mo(e,t,n){return()=>{n&&n();const r=ht[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function Nl(e){return"duration"in e}function Mn(e){return typeof e=="number"&&isFinite(e)}function ve(e,t,n,{...r}){const s=w(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Sr(e,()=>{const i=dt({startTime:t,...r});return i&&i.end(n),i})}function Pr(e){const t=k();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:i}=e,{release:o,environment:a,sendDefaultPii:c}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),f=A(),p=f.getUser(),l=p!==void 0?p.email||p.id||p.ip_address:void 0;let m;try{m=f.getScopeData().contexts.profile.profile_id}catch{}const y={release:o,environment:a,user:l||void 0,profile_id:m||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":S.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...s};return dt({name:n,attributes:y,startTime:i,experimental:{standalone:!0}})}function xt(){return S.addEventListener&&S.performance}function O(e){return e/1e3}function Ll(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function Do(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Fo(e,t){let n,r=!1;function s(a){!r&&n&&t(a,n),r=!0}Or(()=>{s("pagehide")});const i=e.on("beforeStartNavigationSpan",(a,c)=>{c?.isRedirect||(s("navigation"),i(),o())}),o=e.on("afterStartPageLoadSpan",a=>{n=a.spanContext().spanId,o()})}function Ml(e){let t=0,n;if(!Do("layout-shift"))return;const r=xo(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);Fo(e,(s,i)=>{Dl(t,n,i,s),r()})}function Dl(e,t,n,r){kt&&h.log(`Sending CLS span (${e})`);const s=t?O((X()||0)+t.startTime):x(),i=A().getScopeData().transactionName,o=t?J(t.sources[0]?.node):"Layout shift",a={[C]:"auto.http.browser.cls",[he]:"ui.webvital.cls",[ct]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,d)=>{a[`cls.source.${d+1}`]=J(u.node)});const c=Pr({name:o,transaction:i,attributes:a,startTime:s});c&&(c.addEvent("cls",{[wt]:"",[Rt]:e}),c.end(s))}function Fl(e){let t=0,n;if(!Do("largest-contentful-paint"))return;const r=No(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);Fo(e,(s,i)=>{$l(t,n,i,s),r()})}function $l(e,t,n,r){kt&&h.log(`Sending LCP span (${e})`);const s=O((X()||0)+(t?.startTime||0)),i=A().getScopeData().transactionName,o=t?J(t.element):"Largest contentful paint",a={[C]:"auto.http.browser.lcp",[he]:"ui.webvital.lcp",[ct]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=J(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const c=Pr({name:o,transaction:i,attributes:a,startTime:s});c&&(c.addEvent("lcp",{[wt]:"millisecond",[Rt]:e}),c.end(s))}function V(e){return e&&((X()||performance.timeOrigin)+e)/1e3}function $o(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=Ll(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return X()||xt()?.timeOrigin?jl({...t,"http.request.redirect_start":V(e.redirectStart),"http.request.redirect_end":V(e.redirectEnd),"http.request.worker_start":V(e.workerStart),"http.request.fetch_start":V(e.fetchStart),"http.request.domain_lookup_start":V(e.domainLookupStart),"http.request.domain_lookup_end":V(e.domainLookupEnd),"http.request.connect_start":V(e.connectStart),"http.request.secure_connection_start":V(e.secureConnectionStart),"http.request.connection_end":V(e.connectEnd),"http.request.request_start":V(e.requestStart),"http.request.response_start":V(e.responseStart),"http.request.response_end":V(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function jl(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const Hl=2147483647;let qs=0,ne={},H,ln;function Ul({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=xt();if(r&&X()){r.mark&&S.performance.mark("sentry-tracing-init");const s=t?Fl(n):Gl(),i=Xl(),o=e?Ml(n):zl();return()=>{s?.(),i(),o?.()}}return()=>{}}function Bl(){nt("longtask",({entries:e})=>{const t=K();if(!t)return;const{op:n,start_timestamp:r}=w(t);for(const s of e){const i=O(X()+s.startTime),o=O(s.duration);n==="navigation"&&r&&i<r||ve(t,i,i+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[C]:"auto.ui.browser.metrics"}})}})}function ql(){new PerformanceObserver(t=>{const n=K();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=O(X()+r.startTime),{start_timestamp:i,op:o}=w(n);if(o==="navigation"&&i&&s<i)continue;const a=O(r.duration),c={[C]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:d,invokerType:f,sourceURL:p,sourceFunctionName:l,sourceCharPosition:m}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=f,p&&(c["code.filepath"]=p),l&&(c["code.function"]=l),m!==-1&&(c["browser.script.source_char_position"]=m),ve(n,s,s+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function Wl(){nt("event",({entries:e})=>{const t=K();if(t){for(const n of e)if(n.name==="click"){const r=O(X()+n.startTime),s=O(n.duration),i={name:J(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[C]:"auto.ui.browser.metrics"}},o=vi(n.target);o&&(i.attributes["ui.component_name"]=o),ve(t,r,r+s,i)}}})}function zl(){return xo(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ne.cls={value:e.value,unit:""},ln=t)},!0)}function Gl(){return No(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ne.lcp={value:e.value,unit:"millisecond"},H=t)},!0)}function Xl(){return Rl(({metric:e})=>
21{e.entries[e.entries.length-1]&&(ne.ttfb={value:e.value,unit:"millisecond"})})}function Kl(e,t){const n=xt(),r=X();if(!n?.getEntries||!r)return;const s=O(r),i=n.getEntries(),{op:o,start_timestamp:a}=w(e);i.slice(qs).forEach(c=>{const u=O(c.startTime),d=O(Math.max(0,c.duration));if(!(o==="navigation"&&a&&s+u<a))switch(c.entryType){case"navigation":{Jl(e,c,s);break}case"mark":case"paint":case"measure":{Yl(e,c,u,d,s,t.ignorePerformanceApiSpans);const f=Ar(),p=c.startTime<f.firstHiddenTime;c.name==="first-paint"&&p&&(ne.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&p&&(ne.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{tp(e,c,c.name,u,d,s,t.ignoreResourceSpans);break}}}),qs=Math.max(i.length-1,0),np(e),o==="pageload"&&(ip(ne),t.recordClsOnPageloadSpan||delete ne.cls,t.recordLcpOnPageloadSpan||delete ne.lcp,Object.entries(ne).forEach(([c,u])=>{$u(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",ft()),rp(e,t)),H=void 0,ln=void 0,ne={}}function Vl(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components â"}catch{return}}function Yl(e,t,n,r,s,i){if(Vl(t)||["mark","measure"].includes(t.entryType)&&ye(t.name,i))return;const o=Ot(!1),a=O(o?o.requestStart:0),c=s+Math.max(n,a),u=s+n,d=u+r,f={[C]:"auto.resource.browser.metrics"};c!==u&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=c),Ql(f,t),c<=d&&ve(e,c,d,{name:t.name,op:t.entryType,attributes:f})}function Ql(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&Ye(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(Ye(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Jl(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Ut(e,t,r,n)}),Ut(e,t,"secureConnection",n,"TLS/SSL"),Ut(e,t,"fetch",n,"cache"),Ut(e,t,"domainLookup",n,"DNS"),ep(e,t,n)}function Ut(e,t,n,r,s=n){const i=Zl(n),o=t[i],a=t[`${n}Start`];!a||!o||ve(e,r+O(a),r+O(o),{op:`browser.${s}`,name:t.name,attributes:{[C]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Zl(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function ep(e,t,n){const r=n+O(t.requestStart),s=n+O(t.responseEnd),i=n+O(t.responseStart);t.responseEnd&&(ve(e,r,s,{op:"browser.request",name:t.name,attributes:{[C]:"auto.ui.browser.metrics"}}),ve(e,i,s,{op:"browser.response",name:t.name,attributes:{[C]:"auto.ui.browser.metrics"}}))}function tp(e,t,n,r,s,i,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(a))return;const c={[C]:"auto.resource.browser.metrics"},u=Fe(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(S.location.origin),sp(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const d={...c,...$o(t)},f=i+r,p=f+s;ve(e,f,p,{name:n.replace(S.location.origin,""),op:a,attributes:d})}function np(e){const t=S.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Mn(n.rtt)&&(ne["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Mn(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Mn(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function rp(e,t){H&&t.recordLcpOnPageloadSpan&&(H.element&&e.setAttribute("lcp.element",J(H.element)),H.id&&e.setAttribute("lcp.id",H.id),H.url&&e.setAttribute("lcp.url",H.url.trim().slice(0,200)),H.loadTime!=null&&e.setAttribute("lcp.loadTime",H.loadTime),H.renderTime!=null&&e.setAttribute("lcp.renderTime",H.renderTime),e.setAttribute("lcp.size",H.size)),ln?.sources&&t.recordClsOnPageloadSpan&&ln.sources.forEac
21h((n,r)=>e.setAttribute(`cls.source.${r+1}`,J(n.node)))}function sp(e,t,n){n.forEach(([r,s])=>{const i=e[r];i!=null&&(typeof i=="number"&&i<Hl||typeof i=="string")&&(t[s]=i)})}function ip(e){const t=Ot(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function op(){return xt()&&X()?nt("element",ap):()=>{}}const ap=({entries:e})=>{const t=K(),n=t?F(t):void 0,r=n?w(n).description:A().getScopeData().transactionName;e.forEach(s=>{const i=s;if(!i.identifier)return;const o=i.name,a=i.renderTime,c=i.loadTime,[u,d]=c?[O(c),"load-time"]:a?[O(a),"render-time"]:[x(),"entry-emission"],f=o==="image-paint"?O(Math.max(0,(a??0)-(c??0))):0,p={[C]:"auto.ui.browser.elementtiming",[he]:"ui.elementtiming",[se]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":r,"element.id":i.id,"element.type":i.element?.tagName?.toLowerCase()||"unknown","element.size":i.naturalWidth&&i.naturalHeight?`${i.naturalWidth}x${i.naturalHeight}`:void 0,"element.render_time":a,"element.load_time":c,"element.url":i.url||void 0,"element.identifier":i.identifier,"element.paint_type":o};Wu({name:`element[${i.identifier}]`,attributes:p,startTime:u,onlyIfParent:!0},l=>{l.end(u+f)})})},cp=1e3;let Ws,tr,nr;function up(e){Te("dom",e),Ie("dom",dp)}function dp(){if(!S.document)return;const e=Y.bind(null,"dom"),t=zs(e,!0);S.document.addEventListener("click",t,!1),S.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=S[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(z(s,"addEventListener",function(i){return function(o,a,c){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[o]=u[o]||{refCount:0};if(!d.handler){const f=zs(e);d.handler=f,i.call(this,o,f,c)}d.refCount++}catch{}return i.call(this,o,a,c)}}),z(s,"removeEventListener",function(i){return function(o,a,c){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},d=u[o];d&&(d.refCount--,d.refCount<=0&&(i.call(this,o,d.handler,c),d.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,a,c)}}))})}function fp(e){if(e.type!==tr)return!1;try{if(!e.target||e.target._sentryId!==nr)return!1}catch{}return!0}function lp(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function zs(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=pp(n);if(lp(n.type,r))return;G(n,"_sentryCaptured",!0),r&&!r._sentryId&&G(r,"_sentryId",Q());
21const s=n.type==="keypress"?"input":n.type;fp(n)||(e({event:n,name:s,global:t}),tr=n.type,nr=r?r._sentryId:void 0),clearTimeout(Ws),Ws=S.setTimeout(()=>{nr=void 0,tr=void 0},cp)}}function pp(e){try{return e.target}catch{return null}}let Bt;function Cr(e){const t="history";Te(t,e),Ie(t,mp)}function mp(){if(S.addEventListener("popstate",()=>{const t=S.location.href,n=Bt;if(Bt=t,n===t)return;Y("history",{from:n,to:t})}),!Nf())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=Bt,i=hp(String(r));if(Bt=i,s===i)return t.apply(this,n);Y("history",{from:s,to:i})}return t.apply(this,n)}}z(S.history,"pushState",e),z(S.history,"replaceState",e)}function hp(e){try{return new URL(e,S.location.origin).toString()}catch{return e}}const Jt={};function gp(e){const t=Jt[e];if(t)return t;let n=S[e];if(Vn(n))return Jt[e]=n.bind(S);const r=S.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const i=s.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(s)}catch(s){kt&&h.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(Jt[e]=n.bind(S))}function _p(e){Jt[e]=void 0}const Ke="__sentry_xhr_v3__";function jo(e){Te("xhr",e),Ie("xhr",yp)}function yp(){if(!S.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,i=x()*1e3,o=ue(r[0])?r[0].toUpperCase():void 0,a=Sp(r[1]);if(!o||!a)return t.apply(n,r);n[Ke]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[Ke];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:x()*1e3,startTimestamp:i,xhr:n,virtualError:s};Y("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,f){return c(),u.apply(d,f)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,f){const[p,l]=f,m=d[Ke];return m&&ue(p)&&ue(l)&&(m.request_headers[p.toLowerCase()]=l),u.apply(d,f)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[Ke];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const i={startTimestamp:x()*1e3,xhr:n};return Y("xhr",i),t.apply(n,r)}})}function Sp(e){if(ue(e))return e;try{return e.toString()}catch{}}function bp(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return kt&&h.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r 22`).reduce((n,r)=>{const[s,i]=r.split(": ");return i&&(n[s.toLowerCase()]=i),n},{}):{}}const Dn=[],Zt=new Map,Xe=new Map,Ep=60;function vp(){if(xt()&&X()){const t=Tp();return()=>{t()}}return()=>{}}const rr={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Tp(){return kl(Ip)}const Ip=({metric:e})=>{if(e.value==null)return;const t=O(e.value);if(t>Ep)return;const n=e.entries.find(m=>m.duration===e.value&&rr[m.name]);if(!n)return;const{interactionId:r}=n,s=rr[n.name],i=O(X()+n.startTime),o=K(),a=o?F(o):void 0,c=r!=null?Zt.get(r):void 0,u=c?.span||a,d=u?w(u).description:A().getScopeData().transactionName,f=c?.elementName||J(n.target),p={[C]:"auto.http.browser.inp",[he]:`ui.interaction.${s}`,[ct]:n.duration},l=Pr({name:f,transaction:d,attributes:p,startTime:i});l&&(l.addEvent("inp",{[wt]:"millisecond",[Rt]:e.value}),l.end(i+t))};function wp(){const e=Object.keys(rr);Wf()&&e.forEach(s=>{S.addEventListener(s,t,{capture:!0,passive:!0})});function t(s){const i=s.target;if(!i)return;const o=J(i),a=Math.round(s.timeStamp);if(Xe.set(a,o),Xe.size>50){const c=Xe.keys().next().value;c!==void 0&&Xe.delete(c)}}function n(s){const i=Math.round(s.startTime);let o=Xe.get(i);if(!o)for(let a=-5;a<=5;a++){const c=Xe.get(i+a);if(c){o=c;break}}return o||"<unknown>"}const r=({entries:s})=>{const i=K(),o=i&&F(i);
22s.forEach(a=>{if(!Nl(a))return;const c=a.interactionId;if(c==null||Zt.has(c))return;const u=a.target?J(a.target):n(a);if(Dn.length>10){const d=Dn.shift();Zt.delete(d)}Dn.push(c),Zt.set(c,{span:o,elementName:u})})};nt("event",r),nt("first-input",r)}const Rp=40;function kp(e,t=gp("fetch")){let n=0,r=0;async function s(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw _p("fetch"),c}finally{n-=o,r--}}return Xd(e,s,lo(e.bufferSize||Rp))}const Ap=30,Op=50;function sr(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?je:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Pp=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Cp=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,xp=/\((\S*)(?::(\d+))(?::(\d+))\)/,Np=/at (.+?) ?\(data:(.+?),/,Lp=e=>{const t=e.match(Np);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=Pp.exec(e);if(n){const[,s,i,o]=n;return sr(s,je,+i,+o)}const r=Cp.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const a=xp.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[i,o]=Ho(r[1]||je,r[2]);return sr(o,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Mp=[Ap,Lp],Dp=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Fp=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$p=e=>{const t=Dp.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=Fp.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],s=t[1]||je;return[s,r]=Ho(s,r),sr(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},jp=[Op,$p],Hp=[Mp,jp],Up=hi(...Hp),Ho=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:je,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Z=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qt=1024,Bp="Breadcrumbs",qp=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Bp,setup(n){t.console&&_f(Xp(n)),t.dom&&up(Gp(n,t.dom)),t.xhr&&jo(Kp(n)),t.fetch&&bo(Vp(n)),t.history&&Cr(Yp(n)),t.sentry&&n.on("beforeSendEvent",zp(n))}}}),Wp=qp;function zp(e){return function(n){k()===e&&He({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ne(n)},{event:n})}}function Gp(e,t){return function(r){if(k()!==e)return;let s,i,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>qt&&(Z&&h.warn(`\`dom.maxStringLength\` cannot exceed ${qt}, but a value of ${a} was configured. Sentry will use ${qt} instead.`),a=qt),typeof o=="string"&&(o=[o]);try{const u=r.event,d=Qp(u)?u.target:u;s=J(d,{keyAttrs:o,maxStringLength:a}),i=vi(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};i&&(c.data={"ui.component_name":i}),He(c,{event:r.event,name:r.name,global:r.global})}}function Xp(e){return function(n){if(k()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Sf(n.level),message:ns(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${ns(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;He(r,{input:n.args,level:n.level})}}function Kp(e){return function(n){if(k()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[Ke];if(!r||!s||!i)return;const{method:o,url:a,status_code:c,body:u}=i,d={method:o,url:a,status_code:c},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},p={category:"xhr",data:d,type:"http",level:So(c)};e.emit("beforeOutgoingRequestBreadcrumb",p,f),He(p,f)}}function Vp(e){return function(n){if(k()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;
22if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const i=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},a={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,o),He(a,o)}else{const i=n.response,o={...n.fetchData,status_code:i?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i?.status;const a={input:n.args,response:i,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:o,type:"http",level:So(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),He(c,a)}}}function Yp(e){return function(n){if(k()!==e)return;let r=n.from,s=n.to;const i=Fe(E.location.href);let o=r?Fe(r):void 0;const a=Fe(s);o?.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(s=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),He({category:"navigation",data:{from:r,to:s}})}}function Qp(e){return!!e&&!!e.target}const Jp=["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"],Zp="BrowserApiErrors",em=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Zp,setupOnce(){t.setTimeout&&z(E,"setTimeout",Gs),t.setInterval&&z(E,"setInterval",Gs),t.requestAnimationFrame&&z(E,"requestAnimationFrame",nm),t.XMLHttpRequest&&"XMLHttpRequest"in E&&z(XMLHttpRequest.prototype,"send",rm);const n=t.eventTarget;n&&(Array.isArray(n)?n:Jp).forEach(s=>sm(s,t))}}}),tm=em;function Gs(e){return function(...t){const n=t[0];return t[0]=tt(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${fe(e)}`}}),e.apply(this,t)}}function nm(e){return function(t){return e.apply(this,[tt(t,{mechanism:{data:{handler:fe(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function rm(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&z(n,s,function(i){const o={mechanism:{data:{handler:fe(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},a=pr(i);return a&&(o.mechanism.data.handler=fe(a)),tt(i,o)})}),e.apply(this,t)}}function sm(e,t){const r=E[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(z(r,"addEventListener",function(s){return function(i,o,a){try{im(o)&&(o.handleEvent=tt(o.handleEvent,{mechanism:{data:{handler:fe(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&om(this,i,o),s.apply(this,[i,tt(o,{mechanism:{data:{handler:fe(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),z(r,"removeEventListener",function(s){return function(i,o,a){try{const c=o.__sentry_wrapped__;c&&s.call(this,i,c,a)}catch{}return s.call(this,i,o,a)}}))}function im(e){return typeof e.handleEvent=="function"}function om(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const am=()=>({name:"BrowserSession",setupOnce(){if(typeof E.document>"u"){Z&&h.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Rs({ignoreDuration:!0}),ks(),Cr(({from:e,to:t})=>{e!==void 0&&e!==t&&(Rs({ignoreDuration:!0}),ks())})}}),cm="GlobalHandlers",um=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:cm,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(fm(n),Xs("onerror")),t.onunhandledrejection&&(lm(n),Xs("onunhandledrejection"))}}}),dm=um;function fm(e){gi(t=>{const{stackParser:n,attachStacktrace:r}=Uo();if(k()!==e||vo())return;const{msg:s,url:i,line:o,column:a,error:c}=t,u=hm(wr(n,c||s,void 0,r,!1),i,o,a);u.level="error",Qi(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function lm(e){_i(t=>{const{stackParser:n,attachStacktrace:r}=Uo();if(k()!==e||vo())return;const s=pm(t),i=Ye(s)?mm(s):wr(n,s,void 0,r,!0);i.level="error",Qi(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function pm(e){if(Ye(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function mm(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function hm(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=r,d=n,f=gm(t)??Tt();
22return c.length===0&&c.push({colno:u,filename:f,function:je,in_app:!0,lineno:d}),e}function Xs(e){Z&&h.log(`Global Handler attached: ${e}`)}function Uo(){return k()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function gm(e){if(!(!ue(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return`<data:${n}${r?",base64":""}>`}return e.slice(0,1024)}}const _m=()=>({name:"HttpContext",preprocessEvent(e){if(!E.navigator&&!E.location&&!E.document)return;const t=vr(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),ym="cause",Sm=5,bm="LinkedErrors",Em=((e={})=>{const t=e.limit||Sm,n=e.key||ym;return{name:bm,preprocessEvent(r,s,i){const o=i.getOptions();gf(Tr,o.stackParser,n,t,r,s)}}}),vm=Em;function Tm(){return Im()?(Z&&st(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Im(){if(typeof E.window>"u")return!1;const e=E;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=Tt(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(E===E.top&&r.some(i=>n.startsWith(`${i}://`)))}function wm(e){return[cf(),rf(),tm(),Wp(),dm(),vm(),vf(),_m(),am()]}function Rm(e={}){const t=!e.skipBrowserExtensionCheck&&Tm(),n={...e,enabled:t?!1:e.enabled,stackParser:mc(e.stackParser||Up),integrations:vd({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?wm():e.defaultIntegrations}),transport:e.transport||kp};return jd(sl,n)}function km(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function Bo(e){try{return new URL(e,E.location.origin).href}catch{return}}function Am(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function qo(e){try{return new Headers(e)}catch{return}}const Ks=new WeakMap,Fn=new Map,Wo={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Om(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:u}={...Wo,...t},d=typeof i=="function"?i:m=>!0,f=m=>Pm(m,a),p={},l=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(y=>{if(y.op==="http.client"){const _=Fn.get(y.span_id);_&&(y.timestamp=_/1e3,Fn.delete(y.span_id))}}),m)),s&&Df(m=>{if(m.response){const y=Ks.get(m.response);y&&m.endTimestamp&&Fn.set(y,m.endTimestamp)}}),bo(m=>{const y=Rf(m,d,f,p,{propagateTraceparent:l,onRequestSpanEnd:u});if(m.response&&m.fetchData.__span&&Ks.set(m.response,m.fetchData.__span),y){const _=Bo(m.fetchData.url),$=_?Fe(_).host:void 0;y.setAttributes({"http.url":_,"server.address":$}),o&&Vs(y),c?.(y,{headers:m.headers})}})),r&&jo(m=>{const y=Cm(m,d,f,p,l,u);y&&(o&&Vs(y),c?.(y,{headers:qo(m.xhr.__sentry_xhr_v3__?.request_headers)}))})}function Vs(e){const{url:t}=w(e).data;if(!t||typeof t!="string")return;const n=nt("resource",({entries:r})=>{r.forEach(s=>{Am(s)&&s.name.endsWith(t)&&(e.setAttributes($o(s)),setTimeout(n))})})}function Pm(e,t){const n=Tt();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const i=r.origin===s;return t?ye(r.toString(),t)||i&&ye(r.pathname,t):i}else{const r=!!e.match(/^\/(?!\/)/);return t?ye(e,t):r}}function Cm(e,t,n,r,s,i){const o=e.xhr,a=o?.[Ke];if(!o||o.__sentry_own_request__||!a)return;const{url:c,method:u}=a,d=re()&&t(c);if(e.endTimestamp&&d){const $=o.__sentry_xhr_span_id__;if(!$)return;const U=r[$];U&&a.status_code!==void 0&&(Oi(U,a.status_code),U.end(),i?.(U,{headers:qo(bp(o)),error:e.error}),delete r[$]);return}const f=Bo(c),p=Fe(f||c),l=Yd(c),m=!!K(),y=d&&m?dt({name:`${u} ${l}`,attributes:{url:c,type:"xhr","http.method":u,"http.url":f,"server.address":p?.host,[C]:"auto.http.browser",[he]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new Ee;o.__sentry_xhr_span_id__=y.spanContext().spanId,r[o.__sentry_xhr_span_id__]=y,n(c)&&xm(o,re()&&m?y:void 0,s);const _=k();return _&&_.emit("beforeOutgoingRequestSpan",y,e),y}function xm(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:i}=go({span:t,propagateTraceparent:n});r&&Nm(e,r,s,i)}function Nm(e,t,n,r){const s=e.__sentry_xhr_v3__?.request_headers;if(!(s?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!s?.traceparent&&e.setRequestHeader("traceparent",r),n){const i=s?.baggage;(!i||!km(i))&&e.setRequestHeader("baggage",n)}}catch{}}function Lm(){E.document?E.document.addEventListener("visibilitychange",()=>{const e=K();if(!e)return;const t=F(e);if(E.document.hidden&&t){const n="cancelled",{op:r,status:s}=w(t);Z&&h.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:P,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Z&&h.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Mm=3600,zo="sentry_previous_trace",Dm="sentry.previous_trace";function Fm(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?Hm():void 0;e.on("spanStart",o=>{if(F(o)!==o)return;const a=A().getPropagationContext();s=$m(s,o,a),r&&jm(s)});let i=!0;n&&e.on("beforeSampling",o=>{if(!s)return;const a=A(),c=a.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(s.sampleRate),sampled:String(ir(s.spanContext))},sampleRand:s.sampleRand}),o.parentSampled=ir(s.spanContext),o.parentSampleRate=s.sampleRate,o.spanAttributes={...o.spanAttributes,[ki]:s.sampleRate}})}function $m(e,t,n){const r=w(t);function s(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[mr])}catch{return 0}}const i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return i;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=Mm&&(Z&&h.log(`Adding previous_trace ${o} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:o,attributes:{[Bc]:"previous_trace"}}),t.setAttribute(Dm,`${o.traceId}-${o.spanId}-${ir(o)?1:0}`)),i)}function jm(e){try{E.sessionStorage.setItem(zo,JSON.stringify(e))}catch(t){Z&&h.warn("Could not store previous trace in sessionStorage",t)}}function Hm(){try{const e=E.sessionStorage?.getItem(zo);return JSON.parse(e)}catch{return}}function ir(e){return e.traceFlags===1}const Um="BrowserTracing",Bm={...Yt,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
22dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...Wo},qm=((e={})=>{const t={name:void 0,source:void 0},n=E.document,{enableInp:r,enableElementTiming:s,enableLongTask:i,enableLongAnimationFrame:o,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:f,finalTimeout:p,childSpanTimeout:l,markBackgroundSpan:m,traceFetch:y,traceXHR:_,trackFetchStreamPerformance:$,shouldCreateSpanForRequest:U,enableHTTPTimings:Nt,ignoreResourceSpans:bn,ignorePerformanceApiSpans:En,instrumentPageLoad:Lt,instrumentNavigation:I,detectRedirects:N,linkPreviousTrace:We,consistentTraceSampling:Mt,enableReportPageLoaded:ie,onRequestSpanStart:ke,onRequestSpanEnd:L}={...Bm,...e};let Ae,Oe,ee;function ge(R,M,v=!0){const B=M.op==="pageload",q=M.name,te=d?d(M):M,Pe=te.attributes||{};if(q!==te.name&&(Pe[se]="custom",te.attributes=Pe),!v){const pt=Be();dt({...te,startTime:pt}).end(pt);return}t.name=te.name,t.source=Pe[se];const oe=Yi(te,{idleTimeout:f,finalTimeout:p,childSpanTimeout:l,disableAutoFinish:B,beforeSpanEnd:pt=>{Ae?.(),Kl(pt,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:bn,ignorePerformanceApiSpans:En}),Qs(R,void 0);const Nr=A(),Ko=Nr.getPropagationContext();Nr.setPropagationContext({...Ko,traceId:oe.spanContext().traceId,sampled:Re(oe),dsc:be(pt)}),B&&(ee=void 0)},trimIdleSpanEndTimestamp:!ie});B&&ie&&(ee=oe),Qs(R,oe);function xr(){n&&["interactive","complete"].includes(n.readyState)&&R.emit("idleSpanEnableAutoFinish",oe)}B&&!ie&&n&&(n.addEventListener("readystatechange",()=>{xr()}),xr())}return{name:Um,setup(R){if(_u(),Ae=Ul({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:R}),r&&vp(),s&&op(),o&&T.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?ql():i&&Bl(),a&&Wl(),N&&n){const v=()=>{Oe=x()};addEventListener("click",v,{capture:!0}),addEventListener("keydown",v,{capture:!0,passive:!0})}function M(){const v=vt(R);v&&!w(v).timestamp&&(Z&&h.log(`[Tracing] Finishing current active span with op: ${w(v).op}`),v.setAttribute(yt,"cancelled"),v.end())}R.on("startNavigationSpan",(v,B)=>{if(k()!==R)return;if(B?.isRedirect){Z&&h.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),ge(R,{op:"navigation.redirect",...v},!1);return}Oe=void 0,M(),we().setPropagationContext({traceId:pe(),sampleRand:Math.random(),propagationSpanId:re()?void 0:de()});const q=A();q.setPropagationContext({traceId:pe(),sampleRand:Math.random(),propagationSpanId:re()?void 0:de()}),q.setSDKProcessingMetadata({normalizedRequest:void 0}),ge(R,{op:"navigation",...v,parentSpan:null,forceTransaction:!0})}),R.on("startPageLoadSpan",(v,B={})=>
22{if(k()!==R)return;M();const q=B.sentryTrace||Ys("sentry-trace"),te=B.baggage||Ys("baggage"),Pe=cu(q,te),oe=A();oe.setPropagationContext(Pe),re()||(oe.getPropagationContext().propagationSpanId=de()),oe.setSDKProcessingMetadata({normalizedRequest:vr()}),ge(R,{op:"pageload",...v})}),R.on("endPageloadSpan",()=>{ie&&ee&&(ee.setAttribute(yt,"reportPageLoaded"),ee.end())})},afterAllSetup(R){let M=Tt();if(We!=="off"&&Fm(R,{linkPreviousTrace:We,consistentTraceSampling:Mt}),E.location){if(Lt){const v=X();Wm(R,{name:E.location.pathname,startTime:v?v/1e3:void 0,attributes:{[se]:"url",[C]:"auto.pageload.browser"}})}I&&Cr(({to:v,from:B})=>{if(B===void 0&&M?.indexOf(v)!==-1){M=void 0;return}M=void 0;const q=mo(v),te=vt(R),Pe=te&&N&&Xm(te,Oe);zm(R,{name:q?.pathname||E.location.pathname,attributes:{[se]:"url",[C]:"auto.navigation.browser"}},{url:v,isRedirect:Pe})})}m&&Lm(),a&&Gm(R,f,p,l,t),r&&wp(),Om(R,{traceFetch:y,traceXHR:_,trackFetchStreamPerformance:$,tracePropagationTargets:R.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:U,enableHTTPTimings:Nt,onRequestSpanStart:ke,onRequestSpanEnd:L})}}});function Wm(e,t,n){e.emit("startPageLoadSpan",t,n),A().setTransactionName(t.name);const r=vt(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function zm(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const i=A();return i.setTransactionName(t.name),r&&!s&&i.setSDKProcessingMetadata({normalizedRequest:{...vr(),url:r}}),vt(e)}function Ys(e){return E.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function Gm(e,t,n,r,s){const i=E.document;let o;const a=()=>{const c="ui.action.click",u=vt(e);if(u){const d=w(u).op;if(["navigation","pageload"].includes(d)){Z&&h.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(yt,"interactionInterrupted"),o.end(),o=void 0),!s.name){Z&&h.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}o=Yi({name:s.name,op:c,attributes:{[se]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",a,{capture:!0})}const Go="_sentry_idleSpan";function vt(e){return e[Go]}function Qs(e,t){G(e,Go,t)}const Js=1.5;function Xm(e,t){const n=w(e),r=Be(),s=n.start_timestamp;return!(r-s>Js||t&&r-t<=Js)}function Km(e){const t={...e};return ho(t,"react"),md("react",{version:D.version}),Rm(t)}const Vm=({children:e})=>{const{allowErrorMonitoring:t,version:n}=ar();return D.useEffect(()=>{t&&(console.info("Error monitoring enabled, version:",n.current),Km({release:n.current,environment:"production",tracesSampleRate:1,dsn:"https://aecdfa00da8a0b388b9cfa4e38ef78c4@o4504242900238336.ingest.us.sentry.io/4508296168275968",integrations:[qm()],initialScope:{tags:{version:n.current}}}))},[t,n.current]),e},Ym=D.lazy(()=>si(()=>import("./christmas-RjymtNL3.js"),__vite__mapDeps([2,1])).then(e=>({default:e.ChristmasTheme}))),Qm=e=>{const{children:t}=e,{allowAutoThemes:n}=ar(),r=wa();if(!n)return t;switch(r){case"christmas":return b.jsx(D.Suspense,{children:b.jsx(Ym,{children:t})});default:return t}};function Wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Jm={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function or(e,t){function n(s,i,o){if(!(typeof document>"u")){o=Wt({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in o)o[c]&&(a+="; "+c,o[c]!==!0&&(a+="="+o[c].split(";")[0]));return document.cookie=s+"="+e.write(i,s)+a}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var i=document.cookie?document.cookie.split("; "):[],o={},a=0;a<i.length;a++){var c=i[a].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(o[d]=e.read(u,d),s===d)break}catch{}}return s?o[s]:o}}return Object.create({set:n,get:r,remove:function(s,i){n(s,"",Wt({},i,{expires:-1}))},withAttributes:function(s){return or(this.converter,Wt({},this.attributes,s))},withConverter:function(s){return or(Wt({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var zt=or(Jm,{path:"/"});const Zm=e=>{const{children:t,initialTheme:n}=e,{themeBase:r,themeColor:s}=ar(),i=Ur(a=>a.theme),o=Ur(a=>a.setDarkMode);return D.useEffect(()=>{if(r&&(document.body.dataset.bsThemeBase=r),s&&(document.body.dataset.bsThemePrimary=s),i)zt.set("theme",i||n||"light",{path:"/",expires:365}),document.body.dataset.bsTheme=i;else if(!zt.get("theme")){const c=window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
22k":"light";o(c==="dark"),zt.set("theme",c,{path:"/",expires:365}),document.body.dataset.bsTheme=c}const a=zt.get("theme");o(a==="dark")},[n,o,i,r,s]),t},eh=()=>{const[e,t]=D.useState(!1),[n,r]=D.useState(new Set),s=D.useCallback(o=>{o.key&&r(a=>new Set(a).add(o.key.toLowerCase()))},[]),i=D.useCallback(o=>{r(a=>{const c=new Set(a);return o.key&&c.delete(o.key.toLowerCase()),c})},[]);return D.useEffect(()=>{(()=>{n.has("d")&&n.has("e")&&n.has("v")&&t(!0)})()},[n]),D.useEffect(()=>{},[s,i]),Ce({...ca(),onSuccess:()=>{j.success("Database seeded successfully!")},onError:()=>{j.error("Failed to seed database")}}),Ce({...ua(),onSuccess:()=>{j.success("All apps started successfully!")},onError:()=>{j.error("Failed to start all apps")}}),Ce({...da(),onSuccess:()=>{j.success("All app subnets set to null successfully!")},onError:()=>{j.error("Failed to set all app subnets to null")}}),Ce({...fa(),onSuccess:()=>{j.success("All apps set to version 0 successfully!")},onError:()=>{j.error("Failed to set all apps to version 0")}}),Ce({...la(),onSuccess:()=>{j.success("Backup of all apps started successfully!")},onError:()=>{j.error("Failed to start backup of all apps")}}),Ce({...pa(),onSuccess:()=>{j.success("App versions incremented successfully!")},onError:()=>{j.error("Failed to increment app versions")}}),Ce({...ma(),onSuccess:()=>{j.success("Uninstall of all apps started successfully!")},onError:()=>{j.error("Failed to start uninstall of all apps")}}),null},Xo=new Aa({mutationCache:new ii({onSuccess:()=>{Xo.invalidateQueries()}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}}),Zs=({children:e})=>b.jsx("div",{className:"page",children:b.jsx("div",{className:"page-wrapper",children:e})}),th=({children:e})=>b.jsxs(ha,{client:Xo,children:[b.jsx(Sa,{children:({reset:t})=>b.jsx(ba,{fallbackRender:({error:n,resetErrorBoundary:r})=>b.jsx(Zs,{children:b.jsx(Ea,{error:n,onReset:r})}),onReset:t,children:b.jsx(D.Suspense,{fallback:b.jsx(Zs,{}),children:b.jsx(_a,{children:b.jsx(Vm,{children:b.jsx(Zm,{children:b.jsx(Qm,{children:b.jsx(oc,{children:e})})})})})})})}),b.jsx(eh,{})]});class nh extends Error{constructor(t,n){super(t),this.intlParams=n,this.name="TranslatableError"}}ni.interceptors.response.use(async e=>{if(e.status>=400){const t=await e.json(),n=new nh(t.message);throw n.intlParams=t.intlParams??{},n}return e});ni.setConfig({credentials:"include"});const bh=()=>[{rel:"stylesheet",href:Ra},{rel:"apple-touch-icon",sizes:"180x180",href:"/icons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/icons/favicon-96x96.png"},{rel:"icon",type:"image/svg+xml",href:"/icons/favicon.svg"},{rel:"shortcut icon",href:"/icons/favicon.ico"},{rel:"manifest",href:"/icons/site.webmanifest"}];async function Eh({request:e}){const t=await ga();return new URL(e.url).pathname!=="/"?t:t.data?t.data?.isLoggedIn||t.data?.isGuestDashboardEnabled?vn("/dashboard"):vn("/login"):vn("/register")}function vh({children:e}){return D.useEffect(()=>{const t=()=>{window.location.reload()};return window.addEventListener("vite:preloadError",t),()=>{window.removeEventListener("vite:preloadError",t)}},[]),b.jsxs("html",{lang:"en",children:[b.jsxs("head",{children:[b.jsx("title",{children:"Runtipi"}),b.jsx("meta",{charSet:"UTF-8"}),b.jsx("script",{src:"/js/tabler.min.js",async:!0}),b.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),b.jsx(Qo,{}),b.jsx(Jo,{})]}),b.jsx("body",{children:b.jsxs("main",{id:"root",children:[e,b.jsx(Zo,{}),b.jsx(ea,{})]})})]})}const Th=Vo(function({loaderData:t}){return b.jsxs(th,{children:[b.jsx(ta,{}),b.jsx(sa,{})]})}),Ih=Yo(function({error:t}){let n="Oops!",r="An unexpected error occurred.",s;return na(t)&&(n=t.status===404?"404":"Error",r=t.status===404?"The requested page could not be found.":t.statusText||r),b.jsxs("main",{className:"pt-16 p-4 container mx-auto",children:[b.jsx("h1",{children:n}),b.jsx("p",{children:r}),s]})});export{Ih as ErrorBoundary,vh as Layout,Eh as clientLoader,Th as default,bh as links}; 23//# sourceMappingURL=root-BbmTNU9x.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.