const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./default-D2H0PF8z.js","./default-CmdaPMSp.css","./index-Bxccp16U.js","./ExamConfigEditor-Bht_-7d8.js","./dataProvider-d4kaP9eY.js","./serverRotation-mM--a4oc.js","./VAlert-C6vRZNCN.js","./VAlert-D_OX1cfW.css","./VSkeletonLoader-Ci6QbomZ.js","./VSkeletonLoader-C11ZEozu.css","./VTooltip-BIZwxB70.js","./VTooltip-D7EaNDeY.css","./VChip-DXbJhYeb.js","./VChip-Dmz_1Lnv.css","./VRow-t6OL9jRI.js","./VTextField-B3mgzys3.js","./VTextField-D1VSzmed.css","./VTextarea-DGS_A_Ul.js","./VTextarea-_xVwaw_z.css","./VSwitch-W6HBEtkv.js","./VSwitch-C87GkfUP.css","./filter-CXn4g5S1.js","./VCheckboxBtn-C6cZpiqT.js","./filter-DEjKrR5R.css","./VSheet-C1GOiZPj.js","./VSheet-DW_b51tO.css","./ExamConfigEditor-DDj2kUJP.css","./socketClient-CooTl2jE.js","./VCombobox-D76-wRQE.js","./VAppBarTitle-BKEu3EYt.js","./VAppBarTitle-DHaTV8xv.css","./VCombobox-BLfr31LE.css","./deviceEvents-BEQzCUXk.js","./VPagination-BGTHzXGg.js","./VPagination-DNe_r2rg.css","./VContainer-BfESQJFn.js","./VForm-D0L66uox.js","./VExpansionPanels-Dns63qJE.js","./VExpansionPanels-kEj4ZJQK.css","./index-CuoHvzZv.css","./404-A1tSgblu.js","./authorize-yhtth8x5.js","./CacheManagement-BbOh-GTa.js","./cses2wakeup-Ch-cF-p0.js","./VTabsWindowItem-BTN93EL8.js","./VTabsWindowItem-DsCcWpt1.css","./cses2wakeup-V9ZvMok7.css","./debug-DrX5QutV.js","./debug-CbS14biG.css","./debug-init-BNyuMYei.js","./debug-socket-C7sWLw_O.js","./_id_-CUyKFtSE.js","./examschedule-BVVbZT_r.js","./examschedule-CU_Gxm4i.css","./index-pKEYyI-R.js","./_id_-ulLKKRMl.js","./settings-Cyv66yv2.js","./settings-eh31GxG-.css","./socket-debugger-Nhrp574R.js","./socket-debugger-ykBk0O32.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const _w="modulepreload",bw=function(e,t){return new URL(e,t).href},np={},yt=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=bw(l,r),l in np)return;np[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const m=o[p];if(m.href===l&&(!d||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":_w,d||(h.as="script"),h.crossOrigin="",h.href=l,c&&h.setAttribute("nonce",c),document.head.appendChild(h),d)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};/** * @vue/shared v3.5.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function af(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ve={},ii=[],Bn=()=>{},ly=()=>!1,rl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cf=e=>e.startsWith("onUpdate:"),dt=Object.assign,lf=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Sw=Object.prototype.hasOwnProperty,$e=(e,t)=>Sw.call(e,t),fe=Array.isArray,oi=e=>sl(e)==="[object Map]",uy=e=>sl(e)==="[object Set]",ve=e=>typeof e=="function",rt=e=>typeof e=="string",hr=e=>typeof e=="symbol",ze=e=>e!==null&&typeof e=="object",dy=e=>(ze(e)||ve(e))&&ve(e.then)&&ve(e.catch),fy=Object.prototype.toString,sl=e=>fy.call(e),Ew=e=>sl(e).slice(8,-1),hy=e=>sl(e)==="[object Object]",il=e=>rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,lo=af(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ol=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ww=/-\w/g,$t=ol(e=>e.replace(ww,t=>t.slice(1).toUpperCase())),Cw=/\B([A-Z])/g,jr=ol(e=>e.replace(Cw,"-$1").toLowerCase()),Oi=ol(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wl=ol(e=>e?`on${Oi(e)}`:""),Or=(e,t)=>!Object.is(e,t),qa=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},uf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Tw=e=>{const t=rt(e)?Number(e):NaN;return isNaN(t)?e:t};let rp;const al=()=>rp||(rp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xe(e){if(fe(e)){const t={};for(let n=0;n{if(n){const r=n.split(Iw);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Pe(e){let t="";if(rt(e))t=e;else if(fe(e))for(let n=0;n!!(e&&e.__v_isRef===!0),bn=e=>rt(e)?e:e==null?"":fe(e)||ze(e)&&(e.toString===fy||!ve(e.toString))?gy(e)?bn(e.value):JSON.stringify(e,vy,2):String(e),vy=(e,t)=>gy(t)?vy(e,t.value):oi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[jl(r,i)+" =>"]=s,n),{})}:uy(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>jl(n))}:hr(t)?jl(t):ze(t)&&!fe(t)&&!hy(t)?String(t):t,jl=(e,t="")=>{var n;return hr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let kt;class yy{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=kt,!t&&kt&&(this.index=(kt.scopes||(kt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(kt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(fo){let t=fo;for(fo=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;uo;){let t=uo;for(uo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ey(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wy(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),pf(r),Pw(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function qu(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Cy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Cy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Io)||(e.globalVersion=Io,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!qu(e))))return;e.flags|=2;const t=e.dep,n=Ke,r=Sn;Ke=e,Sn=!0;try{Ey(e);const s=e.fn(e._value);(t.version===0||Or(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ke=n,Sn=r,wy(e),e.flags&=-3}}function pf(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)pf(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Pw(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Sn=!0;const Ty=[];function rr(){Ty.push(Sn),Sn=!1}function sr(){const e=Ty.pop();Sn=e===void 0?!0:e}function sp(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ke;Ke=void 0;try{t()}finally{Ke=n}}}let Io=0;class Ow{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class mf{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ke||!Sn||Ke===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ke)n=this.activeLink=new Ow(Ke,this),Ke.deps?(n.prevDep=Ke.depsTail,Ke.depsTail.nextDep=n,Ke.depsTail=n):Ke.deps=Ke.depsTail=n,ky(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ke.depsTail,n.nextDep=void 0,Ke.depsTail.nextDep=n,Ke.depsTail=n,Ke.deps===n&&(Ke.deps=r)}return n}trigger(t){this.version++,Io++,this.notify(t)}notify(t){ff();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{hf()}}}function ky(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)ky(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const vc=new WeakMap,hs=Symbol(""),Gu=Symbol(""),xo=Symbol("");function It(e,t,n){if(Sn&&Ke){let r=vc.get(e);r||vc.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new mf),s.map=r,s.key=n),s.track()}}function Yn(e,t,n,r,s,i){const o=vc.get(e);if(!o){Io++;return}const a=c=>{c&&c.trigger()};if(ff(),t==="clear")o.forEach(a);else{const c=fe(e),l=c&&il(n);if(c&&n==="length"){const d=Number(r);o.forEach((u,f)=>{(f==="length"||f===xo||!hr(f)&&f>=d)&&a(u)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),l&&a(o.get(xo)),t){case"add":c?l&&a(o.get("length")):(a(o.get(hs)),oi(e)&&a(o.get(Gu)));break;case"delete":c||(a(o.get(hs)),oi(e)&&a(o.get(Gu)));break;case"set":oi(e)&&a(o.get(hs));break}}hf()}function Lw(e,t){const n=vc.get(e);return n&&n.get(t)}function Fs(e){const t=de(e);return t===e?t:(It(t,"iterate",xo),en(e)?t:t.map(En))}function cl(e){return It(e=de(e),"iterate",xo),e}function Tr(e,t){return ir(e)?pi(Jn(e)?En(t):t):En(t)}const Nw={__proto__:null,[Symbol.iterator](){return ql(this,Symbol.iterator,e=>Tr(this,e))},concat(...e){return Fs(this).concat(...e.map(t=>fe(t)?Fs(t):t))},entries(){return ql(this,"entries",e=>(e[1]=Tr(this,e[1]),e))},every(e,t){return Un(this,"every",e,t,void 0,arguments)},filter(e,t){return Un(this,"filter",e,t,n=>n.map(r=>Tr(this,r)),arguments)},find(e,t){return Un(this,"find",e,t,n=>Tr(this,n),arguments)},findIndex(e,t){return Un(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Un(this,"findLast",e,t,n=>Tr(this,n),arguments)},findLastIndex(e,t){return Un(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Un(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gl(this,"includes",e)},indexOf(...e){return Gl(this,"indexOf",e)},join(e){return Fs(this).join(e)},lastIndexOf(...e){return Gl(this,"lastIndexOf",e)},map(e,t){return Un(this,"map",e,t,void 0,arguments)},pop(){return Zi(this,"pop")},push(...e){return Zi(this,"push",e)},reduce(e,...t){return ip(this,"reduce",e,t)},reduceRight(e,...t){return ip(this,"reduceRight",e,t)},shift(){return Zi(this,"shift")},some(e,t){return Un(this,"some",e,t,void 0,arguments)},splice(...e){return Zi(this,"splice",e)},toReversed(){return Fs(this).toReversed()},toSorted(e){return Fs(this).toSorted(e)},toSpliced(...e){return Fs(this).toSpliced(...e)},unshift(...e){return Zi(this,"unshift",e)},values(){return ql(this,"values",e=>Tr(this,e))}};function ql(e,t,n){const r=cl(e),s=r[t]();return r!==e&&!en(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Dw=Array.prototype;function Un(e,t,n,r,s,i){const o=cl(e),a=o!==e&&!en(e),c=o[t];if(c!==Dw[t]){const u=c.apply(e,i);return a?En(u):u}let l=n;o!==e&&(a?l=function(u,f){return n.call(this,Tr(e,u),f,e)}:n.length>2&&(l=function(u,f){return n.call(this,u,f,e)}));const d=c.call(o,l,r);return a&&s?s(d):d}function ip(e,t,n,r){const s=cl(e);let i=n;return s!==e&&(en(e)?n.length>3&&(i=function(o,a,c){return n.call(this,o,a,c,e)}):i=function(o,a,c){return n.call(this,o,Tr(e,a),c,e)}),s[t](i,...r)}function Gl(e,t,n){const r=de(e);It(r,"iterate",xo);const s=r[t](...n);return(s===-1||s===!1)&&ll(n[0])?(n[0]=de(n[0]),r[t](...n)):s}function Zi(e,t,n=[]){rr(),ff();const r=de(e)[t].apply(e,n);return hf(),sr(),r}const Fw=af("__proto__,__v_isRef,__isVue"),Iy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(hr));function $w(e){hr(e)||(e=String(e));const t=de(this);return It(t,"has",e),t.hasOwnProperty(e)}class xy{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Kw:Py:i?My:Ay).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=fe(t);if(!s){let c;if(o&&(c=Nw[n]))return c;if(n==="hasOwnProperty")return $w}const a=Reflect.get(t,n,Je(t)?t:r);if((hr(n)?Iy.has(n):Fw(n))||(s||It(t,"get",n),i))return a;if(Je(a)){const c=o&&il(n)?a:a.value;return s&&ze(c)?hi(c):c}return ze(a)?s?hi(a):pt(a):a}}class Ry extends xy{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=fe(t)&&il(n);if(!this._isShallow){const l=ir(i);if(!en(r)&&!ir(r)&&(i=de(i),r=de(r)),!o&&Je(i)&&!Je(r))return l||(i.value=r),!0}const a=o?Number(n)e,Ca=e=>Reflect.getPrototypeOf(e);function Ww(e,t,n){return function(...r){const s=this.__v_raw,i=de(s),o=oi(i),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,l=s[e](...r),d=n?Ku:t?pi:En;return!t&&It(i,"iterate",c?Gu:hs),dt(Object.create(l),{next(){const{value:u,done:f}=l.next();return f?{value:u,done:f}:{value:a?[d(u[0]),d(u[1])]:d(u),done:f}}})}}function Ta(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function jw(e,t){const n={get(s){const i=this.__v_raw,o=de(i),a=de(s);e||(Or(s,a)&&It(o,"get",s),It(o,"get",a));const{has:c}=Ca(o),l=t?Ku:e?pi:En;if(c.call(o,s))return l(i.get(s));if(c.call(o,a))return l(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&It(de(s),"iterate",hs),s.size},has(s){const i=this.__v_raw,o=de(i),a=de(s);return e||(Or(s,a)&&It(o,"has",s),It(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,c=de(a),l=t?Ku:e?pi:En;return!e&&It(c,"iterate",hs),a.forEach((d,u)=>s.call(i,l(d),l(u),o))}};return dt(n,e?{add:Ta("add"),set:Ta("set"),delete:Ta("delete"),clear:Ta("clear")}:{add(s){!t&&!en(s)&&!ir(s)&&(s=de(s));const i=de(this);return Ca(i).has.call(i,s)||(i.add(s),Yn(i,"add",s,s)),this},set(s,i){!t&&!en(i)&&!ir(i)&&(i=de(i));const o=de(this),{has:a,get:c}=Ca(o);let l=a.call(o,s);l||(s=de(s),l=a.call(o,s));const d=c.call(o,s);return o.set(s,i),l?Or(i,d)&&Yn(o,"set",s,i):Yn(o,"add",s,i),this},delete(s){const i=de(this),{has:o,get:a}=Ca(i);let c=o.call(i,s);c||(s=de(s),c=o.call(i,s)),a&&a.call(i,s);const l=i.delete(s);return c&&Yn(i,"delete",s,void 0),l},clear(){const s=de(this),i=s.size!==0,o=s.clear();return i&&Yn(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Ww(s,e,t)}),n}function gf(e,t){const n=jw(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get($e(n,s)&&s in r?n:r,s,i)}const zw={get:gf(!1,!1)},qw={get:gf(!1,!0)},Gw={get:gf(!0,!1)};const Ay=new WeakMap,My=new WeakMap,Py=new WeakMap,Kw=new WeakMap;function Yw(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xw(e){return e.__v_skip||!Object.isExtensible(e)?0:Yw(Ew(e))}function pt(e){return ir(e)?e:vf(e,!1,Hw,zw,Ay)}function Oy(e){return vf(e,!1,Uw,qw,My)}function hi(e){return vf(e,!0,Vw,Gw,Py)}function vf(e,t,n,r,s){if(!ze(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Xw(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Jn(e){return ir(e)?Jn(e.__v_raw):!!(e&&e.__v_isReactive)}function ir(e){return!!(e&&e.__v_isReadonly)}function en(e){return!!(e&&e.__v_isShallow)}function ll(e){return e?!!e.__v_raw:!1}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function yf(e){return!$e(e,"__v_skip")&&Object.isExtensible(e)&&py(e,"__v_skip",!0),e}const En=e=>ze(e)?pt(e):e,pi=e=>ze(e)?hi(e):e;function Je(e){return e?e.__v_isRef===!0:!1}function we(e){return Ly(e,!1)}function be(e){return Ly(e,!0)}function Ly(e,t){return Je(e)?e:new Jw(e,t)}class Jw{constructor(t,n){this.dep=new mf,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:de(t),this._value=n?t:En(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||en(t)||ir(t);t=r?t:de(t),Or(t,n)&&(this._rawValue=t,this._value=r?t:En(t),this.dep.trigger())}}function Ut(e){return Je(e)?e.value:e}function bt(e){return ve(e)?e():Ut(e)}const Zw={get:(e,t,n)=>t==="__v_raw"?e:Ut(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Je(s)&&!Je(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Ny(e){return Jn(e)?e:new Proxy(e,Zw)}function _f(e){const t=fe(e)?new Array(e.length):{};for(const n in e)t[n]=Dy(e,n);return t}class Qw{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=de(t);let s=!0,i=t;if(!fe(t)||!il(String(n)))do s=!ll(i)||en(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=Ut(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Je(this._raw[this._key])){const n=this._object[this._key];if(Je(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Lw(this._raw,this._key)}}class e1{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ee(e,t,n){return Je(e)?e:ve(e)?new e1(e):ze(e)&&arguments.length>1?Dy(e,t,n):we(e)}function Dy(e,t,n){return new Qw(e,t,n)}class t1{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new mf(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Io-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ke!==this)return Sy(this,!0),!0}get value(){const t=this.dep.track();return Cy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function n1(e,t,n=!1){let r,s;return ve(e)?r=e:(r=e.get,s=e.set),new t1(r,s,n)}const ka={},yc=new WeakMap;let rs;function r1(e,t=!1,n=rs){if(n){let r=yc.get(n);r||yc.set(n,r=[]),r.push(e)}}function s1(e,t,n=Ve){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:c}=n,l=S=>s?S:en(S)||s===!1||s===0?Xn(S,1):Xn(S);let d,u,f,h,p=!1,m=!1;if(Je(e)?(u=()=>e.value,p=en(e)):Jn(e)?(u=()=>l(e),p=!0):fe(e)?(m=!0,p=e.some(S=>Jn(S)||en(S)),u=()=>e.map(S=>{if(Je(S))return S.value;if(Jn(S))return l(S);if(ve(S))return c?c(S,2):S()})):ve(e)?t?u=c?()=>c(e,2):e:u=()=>{if(f){rr();try{f()}finally{sr()}}const S=rs;rs=d;try{return c?c(e,3,[h]):e(h)}finally{rs=S}}:u=Bn,t&&s){const S=u,M=s===!0?1/0:s;u=()=>Xn(S(),M)}const v=df(),g=()=>{d.stop(),v&&v.active&&lf(v.effects,d)};if(i&&t){const S=t;t=(...M)=>{S(...M),g()}}let y=m?new Array(e.length).fill(ka):ka;const _=S=>{if(!(!(d.flags&1)||!d.dirty&&!S))if(t){const M=d.run();if(s||p||(m?M.some((R,E)=>Or(R,y[E])):Or(M,y))){f&&f();const R=rs;rs=d;try{const E=[M,y===ka?void 0:m&&y[0]===ka?[]:y,h];y=M,c?c(t,3,E):t(...E)}finally{rs=R}}}else d.run()};return a&&a(_),d=new _y(u),d.scheduler=o?()=>o(_,!1):_,h=S=>r1(S,!1,d),f=d.onStop=()=>{const S=yc.get(d);if(S){if(c)c(S,4);else for(const M of S)M();yc.delete(d)}},t?r?_(!0):y=d.run():o?o(_.bind(null,!0),!0):d.run(),g.pause=d.pause.bind(d),g.resume=d.resume.bind(d),g.stop=g,g}function Xn(e,t=1/0,n){if(t<=0||!ze(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Je(e))Xn(e.value,t,n);else if(fe(e))for(let r=0;r{Xn(r,t,n)});else if(hy(e)){for(const r in e)Xn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Xn(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Qo(e,t,n,r){try{return r?e(...r):e()}catch(s){ul(s,t,n)}}function wn(e,t,n,r){if(ve(e)){const s=Qo(e,t,n,r);return s&&dy(s)&&s.catch(i=>{ul(i,t,n)}),s}if(fe(e)){const s=[];for(let i=0;i>>1,s=Dt[r],i=Ro(s);i=Ro(n)?Dt.push(e):Dt.splice(o1(t),0,e),e.flags|=1,$y()}}function $y(){_c||(_c=Fy.then(Hy))}function a1(e){fe(e)?ai.push(...e):kr&&e.id===-1?kr.splice(qs+1,0,e):e.flags&1||(ai.push(e),e.flags|=1),$y()}function op(e,t,n=Mn+1){for(;nRo(n)-Ro(r));if(ai.length=0,kr){kr.push(...t);return}for(kr=t,qs=0;qse.id==null?e.flags&2?-1:1/0:e.id;function Hy(e){try{for(Mn=0;Mn{r._d&&wc(-1);const i=bc(t);let o;try{o=e(...s)}finally{bc(i),r._d&&wc(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function ws(e,t){if(St===null)return e;const n=gl(St),r=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&ve(t)?t.call(r&&r.proxy):t}}function c1(){return!!(Li()||ps)}const l1=Symbol.for("v-scx"),u1=()=>Le(l1);function hn(e,t){return Sf(e,null,t)}function Se(e,t,n){return Sf(e,t,n)}function Sf(e,t,n=Ve){const{immediate:r,deep:s,flush:i,once:o}=n,a=dt({},n),c=t&&r||!t&&i!=="post";let l;if(Po){if(i==="sync"){const h=u1();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=Bn,h.resume=Bn,h.pause=Bn,h}}const d=xt;a.call=(h,p,m)=>wn(h,d,p,m);let u=!1;i==="post"?a.scheduler=h=>{Lt(h,d&&d.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,p)=>{p?h():bf(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,d&&(h.id=d.uid,h.i=d))};const f=s1(e,t,a);return Po&&(l?l.push(f):c&&f()),f}function d1(e,t,n){const r=this.proxy,s=rt(e)?e.includes(".")?Uy(r,e):()=>r[e]:e.bind(r,r);let i;ve(t)?i=t:(i=t.handler,n=t);const o=ta(this),a=Sf(s,i.bind(r),n);return o(),a}function Uy(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;se.__isTeleport,ho=e=>e&&(e.disabled||e.disabled===""),ap=e=>e&&(e.defer||e.defer===""),cp=e=>typeof SVGElement<"u"&&e instanceof SVGElement,lp=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Yu=(e,t)=>{const n=e&&e.to;return rt(n)?t?t(n):null:n},zy={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,a,c,l){const{mc:d,pc:u,pbc:f,o:{insert:h,querySelector:p,createText:m,createComment:v}}=l,g=ho(t.props);let{shapeFlag:y,children:_,dynamicChildren:S}=t;if(e==null){const M=t.el=m(""),R=t.anchor=m("");h(M,n,r),h(R,n,r);const E=(I,A)=>{y&16&&d(_,I,A,s,i,o,a,c)},C=()=>{const I=t.target=Yu(t.props,p),A=qy(I,t,m,h);I&&(o!=="svg"&&cp(I)?o="svg":o!=="mathml"&&lp(I)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(I),g||(E(I,A),Ga(t,!1)))};g&&(E(n,R),Ga(t,!0)),ap(t.props)?(t.el.__isMounted=!1,Lt(()=>{C(),delete t.el.__isMounted},i)):C()}else{if(ap(t.props)&&e.el.__isMounted===!1){Lt(()=>{zy.process(e,t,n,r,s,i,o,a,c,l)},i);return}t.el=e.el,t.targetStart=e.targetStart;const M=t.anchor=e.anchor,R=t.target=e.target,E=t.targetAnchor=e.targetAnchor,C=ho(e.props),I=C?n:R,A=C?M:E;if(o==="svg"||cp(R)?o="svg":(o==="mathml"||lp(R))&&(o="mathml"),S?(f(e.dynamicChildren,S,I,s,i,o,a),kf(e,t,!0)):c||u(e,t,I,A,s,i,o,a,!1),g)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ia(t,n,M,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=Yu(t.props,p);O&&Ia(t,O,null,l,0)}else C&&Ia(t,R,E,l,1);Ga(t,g)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:c,targetStart:l,targetAnchor:d,target:u,props:f}=e;if(u&&(s(l),s(d)),i&&s(c),o&16){const h=i||!ho(f);for(let p=0;p{e.isMounted=!0}),Tn(()=>{e.isUnmounting=!0}),e}const sn=[Function,Array],Ky={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sn,onEnter:sn,onAfterEnter:sn,onEnterCancelled:sn,onBeforeLeave:sn,onLeave:sn,onAfterLeave:sn,onLeaveCancelled:sn,onBeforeAppear:sn,onAppear:sn,onAfterAppear:sn,onAppearCancelled:sn},Yy=e=>{const t=e.subTree;return t.component?Yy(t.component):t},p1={name:"BaseTransition",props:Ky,setup(e,{slots:t}){const n=Li(),r=Gy();return()=>{const s=t.default&&Ef(t.default(),!0);if(!s||!s.length)return;const i=Xy(s),o=de(e),{mode:a}=o;if(r.isLeaving)return Kl(i);const c=up(i);if(!c)return Kl(i);let l=Ao(c,o,r,n,u=>l=u);c.type!==_t&&Cs(c,l);let d=n.subTree&&up(n.subTree);if(d&&d.type!==_t&&!os(d,c)&&Yy(n).type!==_t){let u=Ao(d,o,r,n);if(Cs(d,u),a==="out-in"&&c.type!==_t)return r.isLeaving=!0,u.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,d=void 0},Kl(i);a==="in-out"&&c.type!==_t?u.delayLeave=(f,h,p)=>{const m=Jy(r,d);m[String(d.key)]=d,f[Kn]=()=>{h(),f[Kn]=void 0,delete l.delayedLeave,d=void 0},l.delayedLeave=()=>{p(),delete l.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return i}}};function Xy(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==_t){t=n;break}}return t}const m1=p1;function Jy(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ao(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:v,onAppear:g,onAfterAppear:y,onAppearCancelled:_}=t,S=String(e.key),M=Jy(n,e),R=(I,A)=>{I&&wn(I,r,9,A)},E=(I,A)=>{const O=A[1];R(I,A),fe(I)?I.every(T=>T.length<=1)&&O():I.length<=1&&O()},C={mode:o,persisted:a,beforeEnter(I){let A=c;if(!n.isMounted)if(i)A=v||c;else return;I[Kn]&&I[Kn](!0);const O=M[S];O&&os(e,O)&&O.el[Kn]&&O.el[Kn](),R(A,[I])},enter(I){let A=l,O=d,T=u;if(!n.isMounted)if(i)A=g||l,O=y||d,T=_||u;else return;let P=!1;const N=I[xa]=z=>{P||(P=!0,z?R(T,[I]):R(O,[I]),C.delayedLeave&&C.delayedLeave(),I[xa]=void 0)};A?E(A,[I,N]):N()},leave(I,A){const O=String(e.key);if(I[xa]&&I[xa](!0),n.isUnmounting)return A();R(f,[I]);let T=!1;const P=I[Kn]=N=>{T||(T=!0,A(),N?R(m,[I]):R(p,[I]),I[Kn]=void 0,M[O]===e&&delete M[O])};M[O]=e,h?E(h,[I,P]):P()},clone(I){const A=Ao(I,t,n,r,s);return s&&s(A),A}};return C}function Kl(e){if(fl(e))return e=$r(e),e.children=null,e}function up(e){if(!fl(e))return jy(e.type)&&e.children?Xy(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ve(n.default))return n.default()}}function Cs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Cs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ef(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;ipo(p,t&&(fe(t)?t[m]:t),n,r,s));return}if(ci(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&po(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?gl(r.component):r.el,o=s?null:i,{i:a,r:c}=e,l=t&&t.r,d=a.refs===Ve?a.refs={}:a.refs,u=a.setupState,f=de(u),h=u===Ve?ly:p=>$e(f,p);if(l!=null&&l!==c){if(dp(t),rt(l))d[l]=null,h(l)&&(u[l]=null);else if(Je(l)){l.value=null;const p=t;p.k&&(d[p.k]=null)}}if(ve(c))Qo(c,a,12,[o,d]);else{const p=rt(c),m=Je(c);if(p||m){const v=()=>{if(e.f){const g=p?h(c)?u[c]:d[c]:c.value;if(s)fe(g)&&lf(g,i);else if(fe(g))g.includes(i)||g.push(i);else if(p)d[c]=[i],h(c)&&(u[c]=d[c]);else{const y=[i];c.value=y,e.k&&(d[e.k]=y)}}else p?(d[c]=o,h(c)&&(u[c]=o)):m&&(c.value=o,e.k&&(d[e.k]=o))};if(o){const g=()=>{v(),Sc.delete(e)};g.id=-1,Sc.set(e,g),Lt(g,n)}else dp(e),v()}}}function dp(e){const t=Sc.get(e);t&&(t.flags|=8,Sc.delete(e))}al().requestIdleCallback;al().cancelIdleCallback;const ci=e=>!!e.type.__asyncLoader,fl=e=>e.type.__isKeepAlive;function e_(e,t){n_(e,"a",t)}function t_(e,t){n_(e,"da",t)}function n_(e,t,n=xt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(hl(t,r,n),n){let s=n.parent;for(;s&&s.parent;)fl(s.parent.vnode)&&g1(r,t,n,s),s=s.parent}}function g1(e,t,n,r){const s=hl(t,e,r,!0);r_(()=>{lf(r[t],s)},n)}function hl(e,t,n=xt,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{rr();const a=ta(n),c=wn(t,n,e,o);return a(),sr(),c});return r?s.unshift(i):s.push(i),i}}const pr=e=>(t,n=xt)=>{(!Po||e==="sp")&&hl(e,(...r)=>t(...r),n)},pl=pr("bm"),zr=pr("m"),v1=pr("bu"),wf=pr("u"),Tn=pr("bum"),r_=pr("um"),y1=pr("sp"),_1=pr("rtg"),b1=pr("rtc");function S1(e,t=xt){hl("ec",e,t)}const s_="components";function E1(e,t){return a_(s_,e,!0,t)||e}const i_=Symbol.for("v-ndc");function o_(e){return rt(e)?a_(s_,e,!1)||e:e||i_}function a_(e,t,n=!0,r=!1){const s=St||xt;if(s){const i=s.type;{const a=oC(i,!1);if(a&&(a===t||a===$t(t)||a===Oi($t(t))))return i}const o=fp(s[e]||i[e],t)||fp(s.appContext[e],t);return!o&&r?i:o}}function fp(e,t){return e&&(e[t]||e[$t(t)]||e[Oi($t(t))])}function w1(e,t,n,r){let s;const i=n,o=fe(e);if(o||rt(e)){const a=o&&Jn(e);let c=!1,l=!1;a&&(c=!en(e),l=ir(e),e=cl(e)),s=new Array(e.length);for(let d=0,u=e.length;dt(a,c,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let c=0,l=a.length;c{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function j3(e,t,n={},r,s){if(St.ce||St.parent&&ci(St.parent)&&St.parent.ce){const l=Object.keys(n).length>0;return t!=="default"&&(n.name=t),cn(),Dn(Ze,null,[B("slot",n,r)],l?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),cn();const o=i&&c_(i(n)),a=n.key||o&&o.key,c=Dn(Ze,{key:(a&&!hr(a)?a:`_${t}`)+(!o&&r?"_fb":"")},o||[],o&&e._===1?64:-2);return i&&i._c&&(i._d=!0),c}function c_(e){return e.some(t=>mi(t)?!(t.type===_t||t.type===Ze&&!c_(t.children)):!0)?e:null}const Xu=e=>e?I_(e)?gl(e):Xu(e.parent):null,mo=dt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xu(e.parent),$root:e=>Xu(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>u_(e),$forceUpdate:e=>e.f||(e.f=()=>{bf(e.update)}),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>d1.bind(e)}),Yl=(e,t)=>e!==Ve&&!e.__isScriptSetup&&$e(e,t),C1={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:c}=e;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Yl(r,t))return o[t]=1,r[t];if(s!==Ve&&$e(s,t))return o[t]=2,s[t];if($e(i,t))return o[t]=3,i[t];if(n!==Ve&&$e(n,t))return o[t]=4,n[t];Ju&&(o[t]=0)}}const l=mo[t];let d,u;if(l)return t==="$attrs"&&It(e.attrs,"get",""),l(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Ve&&$e(n,t))return o[t]=4,n[t];if(u=c.config.globalProperties,$e(u,t))return u[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Yl(s,t)?(s[t]=n,!0):r!==Ve&&$e(r,t)?(r[t]=n,!0):$e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let c;return!!(n[a]||e!==Ve&&a[0]!=="$"&&$e(e,a)||Yl(t,a)||$e(i,a)||$e(r,a)||$e(mo,a)||$e(s.config.globalProperties,a)||(c=o.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:$e(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hp(e){return fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ju=!0;function T1(e){const t=u_(e),n=e.proxy,r=e.ctx;Ju=!1,t.beforeCreate&&pp(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:c,inject:l,created:d,beforeMount:u,mounted:f,beforeUpdate:h,updated:p,activated:m,deactivated:v,beforeDestroy:g,beforeUnmount:y,destroyed:_,unmounted:S,render:M,renderTracked:R,renderTriggered:E,errorCaptured:C,serverPrefetch:I,expose:A,inheritAttrs:O,components:T,directives:P,filters:N}=t;if(l&&k1(l,r,null),o)for(const q in o){const D=o[q];ve(D)&&(r[q]=D.bind(n))}if(s){const q=s.call(n,n);ze(q)&&(e.data=pt(q))}if(Ju=!0,i)for(const q in i){const D=i[q],re=ve(D)?D.bind(n,n):ve(D.get)?D.get.bind(n,n):Bn,U=!ve(D)&&ve(D.set)?D.set.bind(n):Bn,ie=j({get:re,set:U});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>ie.value,set:ae=>ie.value=ae})}if(a)for(const q in a)l_(a[q],r,n,q);if(c){const q=ve(c)?c.call(n):c;Reflect.ownKeys(q).forEach(D=>{At(D,q[D])})}d&&pp(d,e,"c");function X(q,D){fe(D)?D.forEach(re=>q(re.bind(n))):D&&q(D.bind(n))}if(X(pl,u),X(zr,f),X(v1,h),X(wf,p),X(e_,m),X(t_,v),X(S1,C),X(b1,R),X(_1,E),X(Tn,y),X(r_,S),X(y1,I),fe(A))if(A.length){const q=e.exposed||(e.exposed={});A.forEach(D=>{Object.defineProperty(q,D,{get:()=>n[D],set:re=>n[D]=re,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===Bn&&(e.render=M),O!=null&&(e.inheritAttrs=O),T&&(e.components=T),P&&(e.directives=P),I&&Qy(e)}function k1(e,t,n=Bn){fe(e)&&(e=Zu(e));for(const r in e){const s=e[r];let i;ze(s)?"default"in s?i=Le(s.from||r,s.default,!0):i=Le(s.from||r):i=Le(s),Je(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function pp(e,t,n){wn(fe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function l_(e,t,n,r){let s=r.includes(".")?Uy(n,r):()=>n[r];if(rt(e)){const i=t[e];ve(i)&&Se(s,i)}else if(ve(e))Se(s,e.bind(n));else if(ze(e))if(fe(e))e.forEach(i=>l_(i,t,n,r));else{const i=ve(e.handler)?e.handler.bind(n):t[e.handler];ve(i)&&Se(s,i,e)}}function u_(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let c;return a?c=a:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(l=>Ec(c,l,o,!0)),Ec(c,t,o)),ze(t)&&i.set(t,c),c}function Ec(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Ec(e,i,n,!0),s&&s.forEach(o=>Ec(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=I1[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const I1={data:mp,props:gp,emits:gp,methods:oo,computed:oo,beforeCreate:Pt,created:Pt,beforeMount:Pt,mounted:Pt,beforeUpdate:Pt,updated:Pt,beforeDestroy:Pt,beforeUnmount:Pt,destroyed:Pt,unmounted:Pt,activated:Pt,deactivated:Pt,errorCaptured:Pt,serverPrefetch:Pt,components:oo,directives:oo,watch:R1,provide:mp,inject:x1};function mp(e,t){return t?e?function(){return dt(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function x1(e,t){return oo(Zu(e),Zu(t))}function Zu(e){if(fe(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$t(t)}Modifiers`]||e[`${jr(t)}Modifiers`];function O1(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ve;let s=n;const i=t.startsWith("update:"),o=i&&P1(r,t.slice(7));o&&(o.trim&&(s=n.map(d=>rt(d)?d.trim():d)),o.number&&(s=n.map(uf)));let a,c=r[a=Wl(t)]||r[a=Wl($t(t))];!c&&i&&(c=r[a=Wl(jr(t))]),c&&wn(c,e,6,s);const l=r[a+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,wn(l,e,6,s)}}const L1=new WeakMap;function f_(e,t,n=!1){const r=n?L1:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!ve(e)){const c=l=>{const d=f_(l,t,!0);d&&(a=!0,dt(o,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(ze(e)&&r.set(e,null),null):(fe(i)?i.forEach(c=>o[c]=null):dt(o,i),ze(e)&&r.set(e,o),o)}function ml(e,t){return!e||!rl(t)?!1:(t=t.slice(2).replace(/Once$/,""),$e(e,t[0].toLowerCase()+t.slice(1))||$e(e,jr(t))||$e(e,t))}function vp(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:c,render:l,renderCache:d,props:u,data:f,setupState:h,ctx:p,inheritAttrs:m}=e,v=bc(e);let g,y;try{if(n.shapeFlag&4){const S=s||r,M=S;g=On(l.call(M,S,d,u,h,f,p)),y=a}else{const S=t;g=On(S.length>1?S(u,{attrs:a,slots:o,emit:c}):S(u,null)),y=t.props?a:N1(a)}}catch(S){go.length=0,ul(S,e,1),g=B(_t)}let _=g;if(y&&m!==!1){const S=Object.keys(y),{shapeFlag:M}=_;S.length&&M&7&&(i&&S.some(cf)&&(y=D1(y,i)),_=$r(_,y,!1,!0))}return n.dirs&&(_=$r(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&Cs(_,n.transition),g=_,bc(v),g}const N1=e=>{let t;for(const n in e)(n==="class"||n==="style"||rl(n))&&((t||(t={}))[n]=e[n]);return t},D1=(e,t)=>{const n={};for(const r in e)(!cf(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function F1(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:c}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?yp(r,o,l):!!o;if(c&8){const d=t.dynamicProps;for(let u=0;uObject.create(h_),m_=e=>Object.getPrototypeOf(e)===h_;function B1(e,t,n,r=!1){const s={},i=p_();e.propsDefaults=Object.create(null),g_(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Oy(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function H1(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=de(s),[c]=e.propsOptions;let l=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let u=0;u{c=!0;const[f,h]=v_(u,t,!0);dt(o,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!c)return ze(e)&&r.set(e,ii),ii;if(fe(i))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Tf=e=>fe(e)?e.map(On):[On(e)],U1=(e,t,n)=>{if(t._n)return t;const r=gt((...s)=>Tf(t(...s)),n);return r._c=!1,r},y_=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Cf(s))continue;const i=e[s];if(ve(i))t[s]=U1(s,i,r);else if(i!=null){const o=Tf(i);t[s]=()=>o}}},__=(e,t)=>{const n=Tf(t);e.slots.default=()=>n},b_=(e,t,n)=>{for(const r in t)(n||!Cf(r))&&(e[r]=t[r])},W1=(e,t,n)=>{const r=e.slots=p_();if(e.vnode.shapeFlag&32){const s=t._;s?(b_(r,t,n),n&&py(r,"_",s,!0)):y_(t,r)}else t&&__(e,t)},j1=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=Ve;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:b_(s,t,n):(i=!t.$stable,y_(t,s)),o=t}else t&&(__(e,t),o={default:1});if(i)for(const a in s)!Cf(a)&&o[a]==null&&delete s[a]},Lt=Y1;function z1(e){return q1(e)}function q1(e,t){const n=al();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:c,setText:l,setElementText:d,parentNode:u,nextSibling:f,setScopeId:h=Bn,insertStaticContent:p}=e,m=(b,w,k,L=null,$=null,F=null,G=void 0,Y=null,H=!!w.dynamicChildren)=>{if(b===w)return;b&&!os(b,w)&&(L=x(b),ae(b,$,F,!0),b=null),w.patchFlag===-2&&(H=!1,w.dynamicChildren=null);const{type:V,ref:Z,shapeFlag:Q}=w;switch(V){case ea:v(b,w,k,L);break;case _t:g(b,w,k,L);break;case Jl:b==null&&y(w,k,L,G);break;case Ze:T(b,w,k,L,$,F,G,Y,H);break;default:Q&1?M(b,w,k,L,$,F,G,Y,H):Q&6?P(b,w,k,L,$,F,G,Y,H):(Q&64||Q&128)&&V.process(b,w,k,L,$,F,G,Y,H,ne)}Z!=null&&$?po(Z,b&&b.ref,F,w||b,!w):Z==null&&b&&b.ref!=null&&po(b.ref,null,F,b,!0)},v=(b,w,k,L)=>{if(b==null)r(w.el=a(w.children),k,L);else{const $=w.el=b.el;w.children!==b.children&&l($,w.children)}},g=(b,w,k,L)=>{b==null?r(w.el=c(w.children||""),k,L):w.el=b.el},y=(b,w,k,L)=>{[b.el,b.anchor]=p(b.children,w,k,L,b.el,b.anchor)},_=({el:b,anchor:w},k,L)=>{let $;for(;b&&b!==w;)$=f(b),r(b,k,L),b=$;r(w,k,L)},S=({el:b,anchor:w})=>{let k;for(;b&&b!==w;)k=f(b),s(b),b=k;s(w)},M=(b,w,k,L,$,F,G,Y,H)=>{if(w.type==="svg"?G="svg":w.type==="math"&&(G="mathml"),b==null)R(w,k,L,$,F,G,Y,H);else{const V=b.el&&b.el._isVueCE?b.el:null;try{V&&V._beginPatch(),I(b,w,$,F,G,Y,H)}finally{V&&V._endPatch()}}},R=(b,w,k,L,$,F,G,Y)=>{let H,V;const{props:Z,shapeFlag:Q,transition:oe,dirs:te}=b;if(H=b.el=o(b.type,F,Z&&Z.is,Z),Q&8?d(H,b.children):Q&16&&C(b.children,H,null,L,$,Xl(b,F),G,Y),te&&Zr(b,null,L,"created"),E(H,b,b.scopeId,G,L),Z){for(const qe in Z)qe!=="value"&&!lo(qe)&&i(H,qe,null,Z[qe],F,L);"value"in Z&&i(H,"value",null,Z.value,F),(V=Z.onVnodeBeforeMount)&&Rn(V,L,b)}te&&Zr(b,null,L,"beforeMount");const Ie=G1($,oe);Ie&&oe.beforeEnter(H),r(H,w,k),((V=Z&&Z.onVnodeMounted)||Ie||te)&&Lt(()=>{V&&Rn(V,L,b),Ie&&oe.enter(H),te&&Zr(b,null,L,"mounted")},$)},E=(b,w,k,L,$)=>{if(k&&h(b,k),L)for(let F=0;F{for(let V=H;V{const Y=w.el=b.el;let{patchFlag:H,dynamicChildren:V,dirs:Z}=w;H|=b.patchFlag&16;const Q=b.props||Ve,oe=w.props||Ve;let te;if(k&&Qr(k,!1),(te=oe.onVnodeBeforeUpdate)&&Rn(te,k,w,b),Z&&Zr(w,b,k,"beforeUpdate"),k&&Qr(k,!0),(Q.innerHTML&&oe.innerHTML==null||Q.textContent&&oe.textContent==null)&&d(Y,""),V?A(b.dynamicChildren,V,Y,k,L,Xl(w,$),F):G||D(b,w,Y,null,k,L,Xl(w,$),F,!1),H>0){if(H&16)O(Y,Q,oe,k,$);else if(H&2&&Q.class!==oe.class&&i(Y,"class",null,oe.class,$),H&4&&i(Y,"style",Q.style,oe.style,$),H&8){const Ie=w.dynamicProps;for(let qe=0;qe{te&&Rn(te,k,w,b),Z&&Zr(w,b,k,"updated")},L)},A=(b,w,k,L,$,F,G)=>{for(let Y=0;Y{if(w!==k){if(w!==Ve)for(const F in w)!lo(F)&&!(F in k)&&i(b,F,w[F],null,$,L);for(const F in k){if(lo(F))continue;const G=k[F],Y=w[F];G!==Y&&F!=="value"&&i(b,F,Y,G,$,L)}"value"in k&&i(b,"value",w.value,k.value,$)}},T=(b,w,k,L,$,F,G,Y,H)=>{const V=w.el=b?b.el:a(""),Z=w.anchor=b?b.anchor:a("");let{patchFlag:Q,dynamicChildren:oe,slotScopeIds:te}=w;te&&(Y=Y?Y.concat(te):te),b==null?(r(V,k,L),r(Z,k,L),C(w.children||[],k,Z,$,F,G,Y,H)):Q>0&&Q&64&&oe&&b.dynamicChildren&&b.dynamicChildren.length===oe.length?(A(b.dynamicChildren,oe,k,$,F,G,Y),(w.key!=null||$&&w===$.subTree)&&kf(b,w,!0)):D(b,w,k,Z,$,F,G,Y,H)},P=(b,w,k,L,$,F,G,Y,H)=>{w.slotScopeIds=Y,b==null?w.shapeFlag&512?$.ctx.activate(w,k,L,G,H):N(w,k,L,$,F,G,H):z(b,w,H)},N=(b,w,k,L,$,F,G)=>{const Y=b.component=tC(b,L,$);if(fl(b)&&(Y.ctx.renderer=ne),nC(Y,!1,G),Y.asyncDep){if($&&$.registerDep(Y,X,G),!b.el){const H=Y.subTree=B(_t);g(null,H,w,k),b.placeholder=H.el}}else X(Y,b,w,k,$,F,G)},z=(b,w,k)=>{const L=w.component=b.component;if(F1(b,w,k))if(L.asyncDep&&!L.asyncResolved){q(L,w,k);return}else L.next=w,L.update();else w.el=b.el,L.vnode=w},X=(b,w,k,L,$,F,G)=>{const Y=()=>{if(b.isMounted){let{next:Q,bu:oe,u:te,parent:Ie,vnode:qe}=b;{const In=S_(b);if(In){Q&&(Q.el=qe.el,q(b,Q,G)),In.asyncDep.then(()=>{b.isUnmounted||Y()});return}}let Be=Q,Bt;Qr(b,!1),Q?(Q.el=qe.el,q(b,Q,G)):Q=qe,oe&&qa(oe),(Bt=Q.props&&Q.props.onVnodeBeforeUpdate)&&Rn(Bt,Ie,Q,qe),Qr(b,!0);const Ht=vp(b),kn=b.subTree;b.subTree=Ht,m(kn,Ht,u(kn.el),x(kn),b,$,F),Q.el=Ht.el,Be===null&&$1(b,Ht.el),te&&Lt(te,$),(Bt=Q.props&&Q.props.onVnodeUpdated)&&Lt(()=>Rn(Bt,Ie,Q,qe),$)}else{let Q;const{el:oe,props:te}=w,{bm:Ie,m:qe,parent:Be,root:Bt,type:Ht}=b,kn=ci(w);Qr(b,!1),Ie&&qa(Ie),!kn&&(Q=te&&te.onVnodeBeforeMount)&&Rn(Q,Be,w),Qr(b,!0);{Bt.ce&&Bt.ce._def.shadowRoot!==!1&&Bt.ce._injectChildStyle(Ht);const In=b.subTree=vp(b);m(null,In,k,L,b,$,F),w.el=In.el}if(qe&&Lt(qe,$),!kn&&(Q=te&&te.onVnodeMounted)){const In=w;Lt(()=>Rn(Q,Be,In),$)}(w.shapeFlag&256||Be&&ci(Be.vnode)&&Be.vnode.shapeFlag&256)&&b.a&&Lt(b.a,$),b.isMounted=!0,w=k=L=null}};b.scope.on();const H=b.effect=new _y(Y);b.scope.off();const V=b.update=H.run.bind(H),Z=b.job=H.runIfDirty.bind(H);Z.i=b,Z.id=b.uid,H.scheduler=()=>bf(Z),Qr(b,!0),V()},q=(b,w,k)=>{w.component=b;const L=b.vnode.props;b.vnode=w,b.next=null,H1(b,w.props,L,k),j1(b,w.children,k),rr(),op(b),sr()},D=(b,w,k,L,$,F,G,Y,H=!1)=>{const V=b&&b.children,Z=b?b.shapeFlag:0,Q=w.children,{patchFlag:oe,shapeFlag:te}=w;if(oe>0){if(oe&128){U(V,Q,k,L,$,F,G,Y,H);return}else if(oe&256){re(V,Q,k,L,$,F,G,Y,H);return}}te&8?(Z&16&&He(V,$,F),Q!==V&&d(k,Q)):Z&16?te&16?U(V,Q,k,L,$,F,G,Y,H):He(V,$,F,!0):(Z&8&&d(k,""),te&16&&C(Q,k,L,$,F,G,Y,H))},re=(b,w,k,L,$,F,G,Y,H)=>{b=b||ii,w=w||ii;const V=b.length,Z=w.length,Q=Math.min(V,Z);let oe;for(oe=0;oeZ?He(b,$,F,!0,!1,Q):C(w,k,L,$,F,G,Y,H,Q)},U=(b,w,k,L,$,F,G,Y,H)=>{let V=0;const Z=w.length;let Q=b.length-1,oe=Z-1;for(;V<=Q&&V<=oe;){const te=b[V],Ie=w[V]=H?Ir(w[V]):On(w[V]);if(os(te,Ie))m(te,Ie,k,null,$,F,G,Y,H);else break;V++}for(;V<=Q&&V<=oe;){const te=b[Q],Ie=w[oe]=H?Ir(w[oe]):On(w[oe]);if(os(te,Ie))m(te,Ie,k,null,$,F,G,Y,H);else break;Q--,oe--}if(V>Q){if(V<=oe){const te=oe+1,Ie=teoe)for(;V<=Q;)ae(b[V],$,F,!0),V++;else{const te=V,Ie=V,qe=new Map;for(V=Ie;V<=oe;V++){const Yt=w[V]=H?Ir(w[V]):On(w[V]);Yt.key!=null&&qe.set(Yt.key,V)}let Be,Bt=0;const Ht=oe-Ie+1;let kn=!1,In=0;const Ji=new Array(Ht);for(V=0;V=Ht){ae(Yt,$,F,!0);continue}let xn;if(Yt.key!=null)xn=qe.get(Yt.key);else for(Be=Ie;Be<=oe;Be++)if(Ji[Be-Ie]===0&&os(Yt,w[Be])){xn=Be;break}xn===void 0?ae(Yt,$,F,!0):(Ji[xn-Ie]=V+1,xn>=In?In=xn:kn=!0,m(Yt,w[xn],k,null,$,F,G,Y,H),Bt++)}const Qh=kn?K1(Ji):ii;for(Be=Qh.length-1,V=Ht-1;V>=0;V--){const Yt=Ie+V,xn=w[Yt],ep=w[Yt+1],tp=Yt+1{const{el:F,type:G,transition:Y,children:H,shapeFlag:V}=b;if(V&6){ie(b.component.subTree,w,k,L);return}if(V&128){b.suspense.move(w,k,L);return}if(V&64){G.move(b,w,k,ne);return}if(G===Ze){r(F,w,k);for(let Q=0;QY.enter(F),$);else{const{leave:Q,delayLeave:oe,afterLeave:te}=Y,Ie=()=>{b.ctx.isUnmounted?s(F):r(F,w,k)},qe=()=>{F._isLeaving&&F[Kn](!0),Q(F,()=>{Ie(),te&&te()})};oe?oe(F,Ie,qe):qe()}else r(F,w,k)},ae=(b,w,k,L=!1,$=!1)=>{const{type:F,props:G,ref:Y,children:H,dynamicChildren:V,shapeFlag:Z,patchFlag:Q,dirs:oe,cacheIndex:te}=b;if(Q===-2&&($=!1),Y!=null&&(rr(),po(Y,null,k,b,!0),sr()),te!=null&&(w.renderCache[te]=void 0),Z&256){w.ctx.deactivate(b);return}const Ie=Z&1&&oe,qe=!ci(b);let Be;if(qe&&(Be=G&&G.onVnodeBeforeUnmount)&&Rn(Be,w,b),Z&6)Ne(b.component,k,L);else{if(Z&128){b.suspense.unmount(k,L);return}Ie&&Zr(b,null,w,"beforeUnmount"),Z&64?b.type.remove(b,w,k,ne,L):V&&!V.hasOnce&&(F!==Ze||Q>0&&Q&64)?He(V,w,k,!1,!0):(F===Ze&&Q&384||!$&&Z&16)&&He(H,w,k),L&&ue(b)}(qe&&(Be=G&&G.onVnodeUnmounted)||Ie)&&Lt(()=>{Be&&Rn(Be,w,b),Ie&&Zr(b,null,w,"unmounted")},k)},ue=b=>{const{type:w,el:k,anchor:L,transition:$}=b;if(w===Ze){Ce(k,L);return}if(w===Jl){S(b);return}const F=()=>{s(k),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(b.shapeFlag&1&&$&&!$.persisted){const{leave:G,delayLeave:Y}=$,H=()=>G(k,F);Y?Y(b.el,F,H):H()}else F()},Ce=(b,w)=>{let k;for(;b!==w;)k=f(b),s(b),b=k;s(w)},Ne=(b,w,k)=>{const{bum:L,scope:$,job:F,subTree:G,um:Y,m:H,a:V}=b;bp(H),bp(V),L&&qa(L),$.stop(),F&&(F.flags|=8,ae(G,b,w,k)),Y&&Lt(Y,w),Lt(()=>{b.isUnmounted=!0},w)},He=(b,w,k,L=!1,$=!1,F=0)=>{for(let G=F;G{if(b.shapeFlag&6)return x(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const w=f(b.anchor||b.el),k=w&&w[Wy];return k?f(k):w};let W=!1;const K=(b,w,k)=>{let L;b==null?w._vnode&&(ae(w._vnode,null,null,!0),L=w._vnode.component):m(w._vnode||null,b,w,null,null,null,k),w._vnode=b,W||(W=!0,op(L),By(),W=!1)},ne={p:m,um:ae,m:ie,r:ue,mt:N,mc:C,pc:D,pbc:A,n:x,o:e};return{render:K,hydrate:void 0,createApp:M1(K)}}function Xl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Qr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function G1(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function kf(e,t,n=!1){const r=e.children,s=t.children;if(fe(r)&&fe(s))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function S_(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:S_(t)}function bp(e){if(e)for(let t=0;te.__isSuspense;function Y1(e,t){t&&t.pendingBranch?fe(e)?t.effects.push(...e):t.effects.push(e):a1(e)}const Ze=Symbol.for("v-fgt"),ea=Symbol.for("v-txt"),_t=Symbol.for("v-cmt"),Jl=Symbol.for("v-stc"),go=[];let Qt=null;function cn(e=!1){go.push(Qt=e?null:[])}function X1(){go.pop(),Qt=go[go.length-1]||null}let Mo=1;function wc(e,t=!1){Mo+=e,e<0&&Qt&&t&&(Qt.hasOnce=!0)}function C_(e){return e.dynamicChildren=Mo>0?Qt||ii:null,X1(),Mo>0&&Qt&&Qt.push(e),e}function T_(e,t,n,r,s,i){return C_(se(e,t,n,r,s,i,!0))}function Dn(e,t,n,r,s){return C_(B(e,t,n,r,s,!0))}function mi(e){return e?e.__v_isVNode===!0:!1}function os(e,t){return e.type===t.type&&e.key===t.key}const k_=({key:e})=>e??null,Ka=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?rt(e)||Je(e)||ve(e)?{i:St,r:e,k:t,f:!!n}:e:null);function se(e,t=null,n=null,r=0,s=null,i=e===Ze?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&k_(t),ref:t&&Ka(t),scopeId:Vy,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:St};return a?(If(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=rt(n)?8:16),Mo>0&&!o&&Qt&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Qt.push(c),c}const B=J1;function J1(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===i_)&&(e=_t),mi(e)){const a=$r(e,t,!0);return n&&If(a,n),Mo>0&&!i&&Qt&&(a.shapeFlag&6?Qt[Qt.indexOf(e)]=a:Qt.push(a)),a.patchFlag=-2,a}if(aC(e)&&(e=e.__vccOpts),t){t=Z1(t);let{class:a,style:c}=t;a&&!rt(a)&&(t.class=Pe(a)),ze(c)&&(ll(c)&&!fe(c)&&(c=dt({},c)),t.style=Xe(c))}const o=rt(e)?1:w_(e)?128:jy(e)?64:ze(e)?4:ve(e)?2:0;return se(e,t,n,r,s,o,i,!0)}function Z1(e){return e?ll(e)||m_(e)?dt({},e):e:null}function $r(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:c}=e,l=t?Qe(s||{},t):s,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&k_(l),ref:t&&t.ref?n&&i?fe(i)?i.concat(Ka(t)):[i,Ka(t)]:Ka(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ze?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$r(e.ssContent),ssFallback:e.ssFallback&&$r(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Cs(d,c.clone(d)),d}function ao(e=" ",t=0){return B(ea,null,e,t)}function ed(e="",t=!1){return t?(cn(),Dn(_t,null,e)):B(_t,null,e)}function On(e){return e==null||typeof e=="boolean"?B(_t):fe(e)?B(Ze,null,e.slice()):mi(e)?Ir(e):B(ea,null,String(e))}function Ir(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$r(e)}function If(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(fe(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),If(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!m_(t)?t._ctx=St:s===3&&St&&(St.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ve(t)?(t={default:t,_ctx:St},n=32):(t=String(t),r&64?(n=16,t=[ao(t)]):n=8);e.children=t,e.shapeFlag|=n}function Qe(...e){const t={};for(let n=0;nxt||St;let Cc,td;{const e=al(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Cc=t("__VUE_INSTANCE_SETTERS__",n=>xt=n),td=t("__VUE_SSR_SETTERS__",n=>Po=n)}const ta=e=>{const t=xt;return Cc(e),e.scope.on(),()=>{e.scope.off(),Cc(t)}},Sp=()=>{xt&&xt.scope.off(),Cc(null)};function I_(e){return e.vnode.shapeFlag&4}let Po=!1;function nC(e,t=!1,n=!1){t&&td(t);const{props:r,children:s}=e.vnode,i=I_(e);B1(e,r,i,t),W1(e,s,n||t);const o=i?rC(e,t):void 0;return t&&td(!1),o}function rC(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,C1);const{setup:r}=n;if(r){rr();const s=e.setupContext=r.length>1?iC(e):null,i=ta(e),o=Qo(r,e,0,[e.props,s]),a=dy(o);if(sr(),i(),(a||e.sp)&&!ci(e)&&Qy(e),a){if(o.then(Sp,Sp),t)return o.then(c=>{Ep(e,c)}).catch(c=>{ul(c,e,0)});e.asyncDep=o}else Ep(e,o)}else x_(e)}function Ep(e,t,n){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ze(t)&&(e.setupState=Ny(t)),x_(e)}function x_(e,t,n){const r=e.type;e.render||(e.render=r.render||Bn);{const s=ta(e);rr();try{T1(e)}finally{sr(),s()}}}const sC={get(e,t){return It(e,"get",""),e[t]}};function iC(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,sC),slots:e.slots,emit:e.emit,expose:t}}function gl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ny(yf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mo)return mo[n](e)},has(t,n){return n in t||n in mo}})):e.proxy}function oC(e,t=!0){return ve(e)?e.displayName||e.name:e.name||t&&e.__name}function aC(e){return ve(e)&&"__vccOpts"in e}const j=(e,t)=>n1(e,t,Po);function qr(e,t,n){try{wc(-1);const r=arguments.length;return r===2?ze(t)&&!fe(t)?mi(t)?B(e,null,[t]):B(e,t):B(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&mi(n)&&(n=[n]),B(e,t,n))}finally{wc(1)}}const cC="3.5.27";/** * @vue/runtime-dom v3.5.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let nd;const wp=typeof window<"u"&&window.trustedTypes;if(wp)try{nd=wp.createPolicy("vue",{createHTML:e=>e})}catch{}const R_=nd?e=>nd.createHTML(e):e=>e,lC="http://www.w3.org/2000/svg",uC="http://www.w3.org/1998/Math/MathML",Gn=typeof document<"u"?document:null,Cp=Gn&&Gn.createElement("template"),dC={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Gn.createElementNS(lC,e):t==="mathml"?Gn.createElementNS(uC,e):n?Gn.createElement(e,{is:n}):Gn.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Gn.createTextNode(e),createComment:e=>Gn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Gn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Cp.innerHTML=R_(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=Cp.content;if(r==="svg"||r==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},_r="transition",Qi="animation",gi=Symbol("_vtc"),A_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},M_=dt({},Ky,A_),fC=e=>(e.displayName="Transition",e.props=M_,e),Br=fC((e,{slots:t})=>qr(m1,P_(e),t)),es=(e,t=[])=>{fe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Tp=e=>e?fe(e)?e.some(t=>t.length>1):e.length>1:!1;function P_(e){const t={};for(const T in e)T in A_||(t[T]=e[T]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:l=o,appearToClass:d=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=hC(s),m=p&&p[0],v=p&&p[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:_,onLeave:S,onLeaveCancelled:M,onBeforeAppear:R=g,onAppear:E=y,onAppearCancelled:C=_}=t,I=(T,P,N,z)=>{T._enterCancelled=z,Er(T,P?d:a),Er(T,P?l:o),N&&N()},A=(T,P)=>{T._isLeaving=!1,Er(T,u),Er(T,h),Er(T,f),P&&P()},O=T=>(P,N)=>{const z=T?E:y,X=()=>I(P,T,N);es(z,[P,X]),kp(()=>{Er(P,T?c:i),An(P,T?d:a),Tp(z)||Ip(P,r,m,X)})};return dt(t,{onBeforeEnter(T){es(g,[T]),An(T,i),An(T,o)},onBeforeAppear(T){es(R,[T]),An(T,c),An(T,l)},onEnter:O(!1),onAppear:O(!0),onLeave(T,P){T._isLeaving=!0;const N=()=>A(T,P);An(T,u),T._enterCancelled?(An(T,f),rd(T)):(rd(T),An(T,f)),kp(()=>{T._isLeaving&&(Er(T,u),An(T,h),Tp(S)||Ip(T,r,v,N))}),es(S,[T,N])},onEnterCancelled(T){I(T,!1,void 0,!0),es(_,[T])},onAppearCancelled(T){I(T,!0,void 0,!0),es(C,[T])},onLeaveCancelled(T){A(T),es(M,[T])}})}function hC(e){if(e==null)return null;if(ze(e))return[Zl(e.enter),Zl(e.leave)];{const t=Zl(e);return[t,t]}}function Zl(e){return Tw(e)}function An(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[gi]||(e[gi]=new Set)).add(t)}function Er(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[gi];n&&(n.delete(t),n.size||(e[gi]=void 0))}function kp(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pC=0;function Ip(e,t,n,r){const s=e._endId=++pC,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:c}=O_(e,t);if(!o)return r();const l=o+"end";let d=0;const u=()=>{e.removeEventListener(l,f),i()},f=h=>{h.target===e&&++d>=c&&u()};setTimeout(()=>{d(n[p]||"").split(", "),s=r(`${_r}Delay`),i=r(`${_r}Duration`),o=xp(s,i),a=r(`${Qi}Delay`),c=r(`${Qi}Duration`),l=xp(a,c);let d=null,u=0,f=0;t===_r?o>0&&(d=_r,u=o,f=i.length):t===Qi?l>0&&(d=Qi,u=l,f=c.length):(u=Math.max(o,l),d=u>0?o>l?_r:Qi:null,f=d?d===_r?i.length:c.length:0);const h=d===_r&&/\b(?:transform|all)(?:,|$)/.test(r(`${_r}Property`).toString());return{type:d,timeout:u,propCount:f,hasTransform:h}}function xp(e,t){for(;e.lengthRp(n)+Rp(e[r])))}function Rp(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function rd(e){return(e?e.ownerDocument:document).body.offsetHeight}function mC(e,t,n){const r=e[gi];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Tc=Symbol("_vod"),L_=Symbol("_vsh"),xf={name:"show",beforeMount(e,{value:t},{transition:n}){e[Tc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):eo(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),eo(e,!0),r.enter(e)):r.leave(e,()=>{eo(e,!1)}):eo(e,t))},beforeUnmount(e,{value:t}){eo(e,t)}};function eo(e,t){e.style.display=t?e[Tc]:"none",e[L_]=!t}const gC=Symbol(""),vC=/(?:^|;)\s*display\s*:/;function yC(e,t,n){const r=e.style,s=rt(n);let i=!1;if(n&&!s){if(t)if(rt(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Ya(r,a,"")}else for(const o in t)n[o]==null&&Ya(r,o,"");for(const o in n)o==="display"&&(i=!0),Ya(r,o,n[o])}else if(s){if(t!==n){const o=r[gC];o&&(n+=";"+o),r.cssText=n,i=vC.test(n)}}else t&&e.removeAttribute("style");Tc in e&&(e[Tc]=i?r.display:"",e[L_]&&(r.display="none"))}const Ap=/\s*!important$/;function Ya(e,t,n){if(fe(n))n.forEach(r=>Ya(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=_C(e,t);Ap.test(n)?e.setProperty(jr(r),n.replace(Ap,""),"important"):e[r]=n}}const Mp=["Webkit","Moz","ms"],Ql={};function _C(e,t){const n=Ql[t];if(n)return n;let r=$t(t);if(r!=="filter"&&r in e)return Ql[t]=r;r=Oi(r);for(let s=0;seu||(wC.then(()=>eu=0),eu=Date.now());function TC(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;wn(kC(r,n.value),t,5,[r])};return n.value=e,n.attached=CC(),n}function kC(e,t){if(fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Fp=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,IC=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?mC(e,r,o):t==="style"?yC(e,n,r):rl(t)?cf(t)||SC(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xC(e,t,r,o))?(Lp(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Op(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!rt(r))?Lp(e,$t(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Op(e,t,r,o))};function xC(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fp(t)&&ve(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Fp(t)&&rt(n)?!1:t in e}const N_=new WeakMap,D_=new WeakMap,kc=Symbol("_moveCb"),$p=Symbol("_enterCb"),RC=e=>(delete e.props.mode,e),AC=RC({name:"TransitionGroup",props:dt({},M_,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Li(),r=Gy();let s,i;return wf(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!LC(s[0].el,n.vnode.el,o)){s=[];return}s.forEach(MC),s.forEach(PC);const a=s.filter(OC);rd(n.vnode.el),a.forEach(c=>{const l=c.el,d=l.style;An(l,o),d.transform=d.webkitTransform=d.transitionDuration="";const u=l[kc]=f=>{f&&f.target!==l||(!f||f.propertyName.endsWith("transform"))&&(l.removeEventListener("transitionend",u),l[kc]=null,Er(l,o))};l.addEventListener("transitionend",u)}),s=[]}),()=>{const o=de(e),a=P_(o);let c=o.tag||Ze;if(s=[],i)for(let l=0;l{a.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=O_(r);return i.removeChild(r),o}const Bp=e=>{const t=e.props["onUpdate:modelValue"]||!1;return fe(t)?n=>qa(t,n):t};function NC(e){e.target.composing=!0}function Hp(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const tu=Symbol("_assign");function Vp(e,t,n){return t&&(e=e.trim()),n&&(e=uf(e)),e}const z3={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[tu]=Bp(s);const i=r||s.props&&s.props.type==="number";Gs(e,t?"change":"input",o=>{o.target.composing||e[tu](Vp(e.value,n,i))}),(n||i)&&Gs(e,"change",()=>{e.value=Vp(e.value,n,i)}),t||(Gs(e,"compositionstart",NC),Gs(e,"compositionend",Hp),Gs(e,"change",Hp))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[tu]=Bp(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?uf(e.value):e.value,c=t??"";a!==c&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===c)||(e.value=c))}},DC=["ctrl","shift","alt","meta"],FC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>DC.some(n=>e[`${n}Key`]&&!t.includes(n))},q3=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const i=jr(s.key);if(t.some(o=>o===i||$C[o]===i))return e(s)})},BC=dt({patchProp:IC},dC);let Up;function HC(){return Up||(Up=z1(BC))}const VC=(...e)=>{const t=HC().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=WC(r);if(!s)return;const i=t._component;!ve(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,UC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function UC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function WC(e){return rt(e)?document.querySelector(e):e}function K3(e){}function F_(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const et=typeof window<"u",Af=et&&"IntersectionObserver"in window,jC=et&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),$_=et&&"matchMedia"in window&&typeof window.matchMedia=="function",Oo=()=>$_&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function Wp(e,t,n){zC(e,t),t.set(e,n)}function zC(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function jp(e,t,n){return e.set(B_(e,t),n),n}function Wn(e,t){return e.get(B_(e,t))}function B_(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function H_(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;s"u"?n:s}if(typeof t=="string")return sd(e,t,n);if(Array.isArray(t))return H_(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function V_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(e==null||e==="")return;const n=Number(e);return isNaN(n)?String(e):isFinite(n)?`${n}${t}`:void 0}function id(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function zp(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function Mf(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const Y3=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function X3(e){return Object.keys(e)}function nu(e,t){return t.every(n=>e.hasOwnProperty(n))}function Pf(e,t){const n={};for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function qp(e,t,n){const r=Object.create(null),s=Object.create(null);for(const i in e)t.some(o=>o instanceof RegExp?o.test(i):o===i)?r[i]=e[i]:s[i]=e[i];return[r,s]}function As(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}const U_=/^on[^a-z]/,W_=e=>U_.test(e),qC=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],GC=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function J3(e){return e.isComposing&&GC.includes(e.key)}function Z3(e){const[t,n]=qp(e,[U_]),r=As(t,qC),[s,i]=qp(n,["class","style","id","inert",/^data-/]);return Object.assign(s,t),Object.assign(i,r),[s,i]}function Of(e){return e==null?[]:Array.isArray(e)?e:[e]}function Q3(e,t){let n=0;const r=function(){for(var s=arguments.length,i=new Array(s),o=0;oe(...i),Ut(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function or(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function Gp(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function Kp(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function KC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const s in e)r[s]=e[s];for(const s in t){const i=e[s],o=t[s];if(zp(i)&&zp(o)){r[s]=Rt(i,o,n);continue}if(n&&Array.isArray(i)&&Array.isArray(o)){r[s]=n(i,o);continue}r[s]=o}return r}function j_(e){return e.map(t=>t.type===Ze?j_(t.children):t).flat()}function ms(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(ms.cache.has(e))return ms.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return ms.cache.set(e,t),t}ms.cache=new Map;function Zs(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Zs(e,n)).flat(1);if(t.suspense)return Zs(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>Zs(e,n)).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return Zs(e,t.component.subTree).flat(1)}return[]}var $s=new WeakMap,ts=new WeakMap;class YC{constructor(t){Wp(this,$s,[]),Wp(this,ts,0),this.size=t}get isFull(){return Wn($s,this).length===this.size}push(t){Wn($s,this)[Wn(ts,this)]=t,jp(ts,this,(Wn(ts,this)+1)%this.size)}values(){return Wn($s,this).slice(Wn(ts,this)).concat(Wn($s,this).slice(0,Wn(ts,this)))}clear(){Wn($s,this).length=0,jp(ts,this,0)}}function Lf(e){const t=pt({});hn(()=>{const r=e();for(const s in r)t[s]=r[s]},{flush:"sync"});const n={};for(const r in t)n[r]=ee(()=>t[r]);return n}function Ic(e,t){return e.includes(t)}function z_(e){return e[2].toLowerCase()+e.slice(3)}const vo=()=>[Function,Array];function Yp(e,t){return t="on"+Oi(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function t4(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","details:not(:has(> summary))","details > summary","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]"].map(s=>`${s}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let r;try{r=[...e.querySelectorAll(n)]}catch{return[]}return r.filter(s=>!s.closest("[inert]")).filter(s=>!!s.offsetParent||s.getClientRects().length>0).filter(s=>{var i,o;return!((i=s.parentElement)!=null&&i.closest("details:not([open])"))||s.tagName==="SUMMARY"&&((o=s.parentElement)==null?void 0:o.tagName)==="DETAILS"})}function XC(e,t,n){let r,s=e.indexOf(document.activeElement);const i=t==="next"?1:-1;do s+=i,r=e[s];while((!r||r.offsetParent==null||!((n==null?void 0:n(r))??!0))&&s=0);return r}function q_(e,t){var r,s,i,o;const n=yo(e);if(t==null)(e===document.activeElement||!e.contains(document.activeElement))&&((r=n[0])==null||r.focus());else if(t==="first")(s=n[0])==null||s.focus();else if(t==="last")(i=n.at(-1))==null||i.focus();else if(typeof t=="number")(o=n[t])==null||o.focus();else{const a=XC(n,t);a?a.focus():q_(e,t==="next"?"first":"last")}}function n4(e){return e==null||typeof e=="string"&&e.trim()===""}function r4(){}function JC(e,t){if(!(et&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function ZC(e){return e.some(t=>mi(t)?t.type===_t?!1:t.type!==Ze||ZC(t.children):!0)?e:null}function QC(e,t){if(!et||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function s4(e,t){const n=e.clientX,r=e.clientY,s=t.getBoundingClientRect(),i=s.left,o=s.top,a=s.right,c=s.bottom;return n>=i&&n<=a&&r>=o&&r<=c}function od(){const e=be(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>Mf(e.value)}),t}function i4(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function Ts(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function o4(e){return"\\^$*+?.()|{}[]".includes(e)?`\\${e}`:e}function a4(e){const t={};for(const n in e)t[$t(n)]=e[n];return t}function eT(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(n=>{let[r,s]=n;return t.includes(r)?!!s:s!==void 0}))}const G_=["top","bottom"],tT=["start","end","left","right"];function ad(e,t){let[n,r]=e.split(" ");return r||(r=Ic(G_,n)?"start":Ic(tT,n)?"top":"center"),{side:Xp(n,t),align:Xp(r,t)}}function Xp(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function ru(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function su(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Jp(e){return{side:e.align,align:e.side}}function Zp(e){return Ic(G_,e.side)?"y":"x"}class ln{constructor(t){const n=document.body.currentCSSZoom??1,r=t instanceof Element,s=r?1+(1-n)/n:1,{x:i,y:o,width:a,height:c}=r?t.getBoundingClientRect():t;this.x=i*s,this.y=o*s,this.width=a*s,this.height=c*s}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Qp(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function K_(e){if(Array.isArray(e)){const t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new ln({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}else return new ln(e)}function nT(e){if(e===document.documentElement)if(visualViewport){const t=document.body.currentCSSZoom??1;return new ln({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale/t,height:visualViewport.height*visualViewport.scale/t})}else return new ln({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});else return new ln(e)}function Y_(e){const t=new ln(e),n=getComputedStyle(e),r=n.transform;if(r){let s,i,o,a,c;if(r.startsWith("matrix3d("))s=r.slice(9,-1).split(/, /),i=Number(s[0]),o=Number(s[5]),a=Number(s[12]),c=Number(s[13]);else if(r.startsWith("matrix("))s=r.slice(7,-1).split(/, /),i=Number(s[0]),o=Number(s[3]),a=Number(s[4]),c=Number(s[5]);else return new ln(t);const l=n.transformOrigin,d=t.x-a-(1-i)*parseFloat(l),u=t.y-c-(1-o)*parseFloat(l.slice(l.indexOf(" ")+1)),f=i?t.width/i:e.offsetWidth+1,h=o?t.height/o:e.offsetHeight+1;return new ln({x:d,y:u,width:f,height:h})}else return new ln(t)}function ss(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(s=>{r.onfinish=()=>{s(r)}})),r}const Xa=new WeakMap;function rT(e,t){Object.keys(t).forEach(n=>{if(W_(n)){const r=z_(n),s=Xa.get(e);if(t[n]==null)s==null||s.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))});else if(!s||![...s].some(i=>i[0]===r&&i[1]===t[n])){e.addEventListener(r,t[n]);const i=s||new Set;i.add([r,t[n]]),Xa.has(e)||Xa.set(e,i)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function sT(e,t){Object.keys(t).forEach(n=>{if(W_(n)){const r=z_(n),s=Xa.get(e);s==null||s.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))})}else e.removeAttribute(n)})}const Bs=2.4,em=.2126729,tm=.7151522,nm=.072175,iT=.55,oT=.58,aT=.57,cT=.62,Ra=.03,rm=1.45,lT=5e-4,uT=1.25,dT=1.25,sm=.078,im=12.82051282051282,Aa=.06,om=.001;function am(e,t){const n=(e.r/255)**Bs,r=(e.g/255)**Bs,s=(e.b/255)**Bs,i=(t.r/255)**Bs,o=(t.g/255)**Bs,a=(t.b/255)**Bs;let c=n*em+r*tm+s*nm,l=i*em+o*tm+a*nm;if(c<=Ra&&(c+=(Ra-c)**rm),l<=Ra&&(l+=(Ra-l)**rm),Math.abs(l-c)c){const u=(l**iT-c**oT)*uT;d=u-om?0:u>-sm?u-u*im*Aa:u+Aa}return d*100}const xc=.20689655172413793,fT=e=>e>xc**3?Math.cbrt(e):e/(3*xc**2)+4/29,hT=e=>e>xc?e**3:3*xc**2*(e-4/29);function X_(e){const t=fT,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function J_(e){const t=hT,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const pT=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],mT=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,gT=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],vT=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Z_(e){const t=Array(3),n=mT,r=pT;for(let s=0;s<3;++s)t[s]=Math.round(or(n(r[s][0]*e[0]+r[s][1]*e[1]+r[s][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function Nf(e){let{r:t,g:n,b:r}=e;const s=[0,0,0],i=vT,o=gT;t=i(t/255),n=i(n/255),r=i(r/255);for(let a=0;a<3;++a)s[a]=o[a][0]*t+o[a][1]*n+o[a][2]*r;return s}function cd(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function yT(e){return cd(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const cm=/^(?(?:rgb|hsl)a?)\((?.+)\)/,_T={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>lm({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>lm({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>Lo({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>Lo({h:e,s:t,v:n,a:r})};function Fn(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&cm.test(e)){const{groups:t}=e.match(cm),{fn:n,values:r}=t,s=r.split(/,\s*|\s*\/\s*|\s+/).map((i,o)=>i.endsWith("%")||o>0&&o<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return _T[n](...s)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),ST(t)}else if(typeof e=="object"){if(nu(e,["r","g","b"]))return e;if(nu(e,["h","s","l"]))return Lo(Q_(e));if(nu(e,["h","s","v"]))return Lo(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Lo(e){const{h:t,s:n,v:r,a:s}=e,i=a=>{const c=(a+t/60)%6;return r-r*n*Math.max(Math.min(c,4-c,1),0)},o=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:o[0],g:o[1],b:o[2],a:s}}function lm(e){return Lo(Q_(e))}function Q_(e){const{h:t,s:n,l:r,a:s}=e,i=r+n*Math.min(r,1-r),o=i===0?0:2-2*r/i;return{h:t,s:o,v:i,a:s}}function Ma(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function bT(e){let{r:t,g:n,b:r,a:s}=e;return`#${[Ma(t),Ma(n),Ma(r),s!==void 0?Ma(Math.round(s*255)):""].join("")}`}function ST(e){e=ET(e);let[t,n,r,s]=KC(e,2).map(i=>parseInt(i,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function ET(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=Gp(Gp(e,6),8,"F")),e}function wT(e,t){const n=X_(Nf(e));return n[0]=n[0]+t*10,Z_(J_(n))}function CT(e,t){const n=X_(Nf(e));return n[0]=n[0]-t*10,Z_(J_(n))}function TT(e){const t=Fn(e);return Nf(t)[1]}function eb(e){const t=Math.abs(am(Fn(0),Fn(e)));return Math.abs(am(Fn(16777215),Fn(e)))>Math.min(t,50)?"#fff":"#000"}function le(e,t){return n=>Object.keys(e).reduce((r,s)=>{const o=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...o,default:n[s]}:r[s]=o,t&&!r[s].source&&(r[s].source=t),r},{})}const ct=le({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function mt(e,t){const n=Li();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Gr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=mt(e).type;return ms((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}function kT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mt("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const vi=Symbol.for("vuetify:defaults");function IT(e){return we(e)}function Df(){const e=Le(vi);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function vl(e,t){const n=Df(),r=we(e),s=j(()=>{if(Ut(t==null?void 0:t.disabled))return n.value;const o=Ut(t==null?void 0:t.scoped),a=Ut(t==null?void 0:t.reset),c=Ut(t==null?void 0:t.root);if(r.value==null&&!(o||a||c))return n.value;let l=Rt(r.value,{prev:n.value});if(o)return l;if(a||c){const d=Number(a||1/0);for(let u=0;u<=d&&!(!l||!("prev"in l));u++)l=l.prev;return l&&typeof c=="string"&&c in l&&(l=Rt(Rt(l,{prev:l}),l[c])),l}return l.prev?Rt(l.prev,l):l});return At(vi,s),s}function xT(e,t){return e.props&&(typeof e.props[t]<"u"||typeof e.props[ms(t)]<"u")}function RT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Df();const r=mt("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const s=j(()=>{var c;return(c=n.value)==null?void 0:c[e._as??t]}),i=new Proxy(e,{get(c,l){var h,p,m,v;const d=Reflect.get(c,l);if(l==="class"||l==="style")return[(h=s.value)==null?void 0:h[l],d].filter(g=>g!=null);if(xT(r.vnode,l))return d;const u=(p=s.value)==null?void 0:p[l];if(u!==void 0)return u;const f=(v=(m=n.value)==null?void 0:m.global)==null?void 0:v[l];return f!==void 0?f:d}}),o=be();hn(()=>{if(s.value){const c=Object.entries(s.value).filter(l=>{let[d]=l;return d.startsWith(d[0].toUpperCase())});o.value=c.length?Object.fromEntries(c):void 0}else o.value=void 0});function a(){const c=kT(vi,r);At(vi,j(()=>o.value?Rt((c==null?void 0:c.value)??{},o.value):c==null?void 0:c.value))}return{props:i,provideSubDefaults:a}}function Ni(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=le(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return Pf(r,t)},e.props._as=String,e.setup=function(r,s){const i=Df();if(!i.value)return e._setup(r,s);const{props:o,provideSubDefaults:a}=RT(r,r._as??e.name,i),c=e._setup(o,s);return a(),c}}return e}function De(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?Ni:dl)(t)}function c4(e,t){return t.props=e,t}function Ff(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return De()({name:n??Oi($t(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...ct()},setup(r,s){let{slots:i}=s;return()=>{var o;return qr(r.tag,{class:[e,r.class],style:r.style},(o=i.default)==null?void 0:o.call(i))}}})}function AT(e,t,n,r){if(!n||Ts(e)||Ts(t))return;const s=n.get(e);if(s)s.set(t,r);else{const i=new WeakMap;i.set(t,r),n.set(e,i)}}function MT(e,t,n){var i,o;if(!n||Ts(e)||Ts(t))return null;const r=(i=n.get(e))==null?void 0:i.get(t);if(typeof r=="boolean")return r;const s=(o=n.get(t))==null?void 0:o.get(e);return typeof s=="boolean"?s:null}function gs(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new WeakMap;if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;const s=MT(e,t,n);return s||(AT(e,t,n,!0),r.every(i=>gs(e[i],t[i],n)))}function tb(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const ld="cubic-bezier(0.4, 0, 0.2, 1)",um="cubic-bezier(0.0, 0, 0.2, 1)",dm="cubic-bezier(0.4, 0, 1, 1)",PT={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1};function OT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?LT(e):$f(e))return e;e=e.parentElement}return document.scrollingElement}function Rc(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&($f(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function $f(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e),n=t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight,r=t.overflowX==="scroll"||t.overflowX==="auto"&&e.scrollWidth>e.clientWidth;return n||r}function LT(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function NT(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function tt(e){const t=mt("useRender");t.render=e}function DT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{leading:!0,trailing:!0},r=0,s=0,i=!1,o=0;function a(){clearTimeout(r),i=!1,o=0}const c=function(){for(var l=arguments.length,d=new Array(l),u=0;u=t?p():n.trailing&&(r=setTimeout(p,t-h)):(i=!0,n.leading&&p())};return c.clear=a,c.immediate=e,c}const Et=[String,Function,Object,Array],ud=Symbol.for("vuetify:icons"),yl=le({icon:{type:Et},tag:{type:[String,Object,Function],required:!0}},"icon"),fm=De()({name:"VComponentIcon",props:yl(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return B(e.tag,null,{default:()=>{var s;return[e.icon?B(r,null,null):(s=n.default)==null?void 0:s.call(n)]}})}}}),nb=Ni({name:"VSvgIcon",inheritAttrs:!1,props:yl(),setup(e,t){let{attrs:n}=t;return()=>B(e.tag,Qe(n,{style:null}),{default:()=>[se("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?se("path",{d:r[0],"fill-opacity":r[1]},null):se("path",{d:r},null)):se("path",{d:e.icon},null)])]})}});Ni({name:"VLigatureIcon",props:yl(),setup(e){return()=>B(e.tag,null,{default:()=>[e.icon]})}});const rb=Ni({name:"VClassIcon",props:yl(),setup(e){return()=>B(e.tag,{class:Pe(e.icon)},null)}}),FT=e=>{const t=Le(ud);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:j(()=>{var c;const r=bt(e);if(!r)return{component:fm};let s=r;if(typeof s=="string"&&(s=s.trim(),s.startsWith("$")&&(s=(c=t.aliases)==null?void 0:c[s.slice(1)])),Array.isArray(s))return{component:nb,icon:s};if(typeof s!="string")return{component:fm,icon:s};const i=Object.keys(t.sets).find(l=>typeof s=="string"&&s.startsWith(`${l}:`)),o=i?s.slice(i.length+1):s;return{component:t.sets[i??t.defaultSet].component,icon:o}})}},$T={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off"},BT={component:e=>qr(rb,{...e,class:"mdi"})};function HT(){return{svg:{component:nb},class:{component:rb}}}function VT(e){const t=HT(),n=(e==null?void 0:e.defaultSet)??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=BT),Rt({defaultSet:n,sets:t,aliases:{...$T,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}function Di(e,t){let n;function r(){n=Es(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}Se(e,s=>{s&&!n?r():s||(n==null||n.stop(),n=void 0)},{immediate:!0}),Ct(()=>{n==null||n.stop()})}function Zn(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:u=>u,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:u=>u;const i=mt("useProxiedModel"),o=we(e[t]!==void 0?e[t]:n),a=ms(t),l=j(a!==t?()=>{var u,f,h,p;return e[t],!!(((u=i.vnode.props)!=null&&u.hasOwnProperty(t)||(f=i.vnode.props)!=null&&f.hasOwnProperty(a))&&((h=i.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${t}`)||(p=i.vnode.props)!=null&&p.hasOwnProperty(`onUpdate:${a}`)))}:()=>{var u,f;return e[t],!!((u=i.vnode.props)!=null&&u.hasOwnProperty(t)&&((f=i.vnode.props)!=null&&f.hasOwnProperty(`onUpdate:${t}`)))});Di(()=>!l.value,()=>{Se(()=>e[t],u=>{o.value=u})});const d=j({get(){const u=e[t];return r(l.value?u:o.value)},set(u){const f=s(u),h=de(l.value?e[t]:o.value);h===f||r(h)===u||(o.value=f,i==null||i.emit(`update:${t}`,f))}});return Object.defineProperty(d,"externalValue",{get:()=>l.value?e[t]:o.value}),d}const UT={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",previousYear:"Previous year",nextYear:"Next year",selectMonth:"Select month",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time",hour:"Hour",minute:"Minute",second:"Second"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}",or:"or"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}},hm="$vuetify.",pm=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[Number(r)])),sb=(e,t,n)=>function(r){for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;onew Intl.NumberFormat([e.value,t.value],r).format(n)}function ib(e,t){return Bf(e,t)(.1).includes(",")?",":"."}function iu(e,t,n){const r=Zn(e,t,e[t]??n.value);return r.value=e[t]??n.value,Se(n,s=>{e[t]==null&&(r.value=n.value)}),r}function ob(e){return t=>{const n=iu(t,"locale",e.current),r=iu(t,"fallback",e.fallback),s=iu(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:s,decimalSeparator:ee(()=>ib(n,r)),t:sb(n,r,s),n:Bf(n,r),provide:ob({current:n,fallback:r,messages:s})}}}function WT(e){const t=be((e==null?void 0:e.locale)??"en"),n=be((e==null?void 0:e.fallback)??"en"),r=we({en:UT,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,decimalSeparator:ee(()=>(e==null?void 0:e.decimalSeparator)??ib(t,n)),t:sb(t,n,r),n:Bf(t,n),provide:ob({current:t,fallback:n,messages:r})}}const Ac=Symbol.for("vuetify:locale");function jT(e){return e.name!=null}function zT(e){const t=e!=null&&e.adapter&&jT(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:WT(e),n=KT(t,e);return{...t,...n}}function qT(){const e=Le(Ac);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function GT(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function KT(e,t){const n=we((t==null?void 0:t.rtl)??GT()),r=j(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:ee(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function na(){const e=Le(Ac);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}function ra(e){const t=e.slice(-2).toUpperCase();switch(!0){case e==="GB-alt-variant":return{firstDay:0,firstWeekSize:4};case e==="001":return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US VE VI WS YE ZA ZW`.includes(t):return{firstDay:0,firstWeekSize:1};case`AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK`.includes(t):return{firstDay:1,firstWeekSize:1};case`AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS IT LI LT LU MC MQ NL NO PL RE RU SE SK SM VA`.includes(t):return{firstDay:1,firstWeekSize:4};case"AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY".includes(t):return{firstDay:6,firstWeekSize:1};case t==="MV":return{firstDay:5,firstWeekSize:1};case t==="PT":return{firstDay:0,firstWeekSize:4};default:return null}}function YT(e,t,n){var d;const r=[];let s=[];const i=ab(e),o=cb(e),a=n??((d=ra(t))==null?void 0:d.firstDay)??0,c=(i.getDay()-a+7)%7,l=(o.getDay()-a+7)%7;for(let u=0;u0&&r.push(s),r}function _o(e,t,n){var i;let r=(n??((i=ra(t))==null?void 0:i.firstDay)??0)%7;[0,1,2,3,4,5,6].includes(r)||(r=0);const s=new Date(e);for(;s.getDay()!==r;)s.setDate(s.getDate()-1);return s}function XT(e,t){var s;const n=new Date(e),r=((((s=ra(t))==null?void 0:s.firstDay)??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function ab(e){return new Date(e.getFullYear(),e.getMonth(),1)}function cb(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function JT(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const ZT=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function lb(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(ZT.test(e))return JT(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const mm=new Date(2e3,0,2);function QT(e,t,n){var s;const r=t??((s=ra(e))==null?void 0:s.firstDay)??0;return V_(7).map(i=>{const o=new Date(mm);return o.setDate(mm.getDate()+r+i),new Intl.DateTimeFormat(e,{weekday:n??"narrow"}).format(o)})}function ek(e,t,n,r){const s=lb(e)??new Date,i=r==null?void 0:r[t];if(typeof i=="function")return i(s,t,n);let o={};switch(t){case"fullDate":o={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const a=s.getDate(),c=new Intl.DateTimeFormat(n,{month:"long"}).format(s);return`${a} ${c}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(s.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric"};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");case"keyboardDateTime12h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");case"keyboardDateTime24h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");default:o=i??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(s)}function tk(e,t){const n=e.toJsDate(t),r=n.getFullYear(),s=Kp(String(n.getMonth()+1),2,"0"),i=Kp(String(n.getDate()),2,"0");return`${r}-${s}-${i}`}function nk(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function rk(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function sk(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function vs(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function ik(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function ok(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function No(e){return e.getFullYear()}function ak(e){return e.getMonth()}function ck(e,t,n,r){const s=ra(t),i=n??(s==null?void 0:s.firstDay)??0,o=(s==null?void 0:s.firstWeekSize)??1;return r!==void 0?lk(e,t,i,r):uk(e,t,i,o)}function lk(e,t,n,r){const s=(7+r-n)%7,i=_o(e,t,n),o=vs(i,6);function a(f){return(7+new Date(f,0,1).getDay()-n)%7}let c=No(i);c=r&&a++;const c=new Date(a,0,1),l=o(a),d=l>=r?vs(c,l-7):vs(c,l);return 1+Pc(Hf(s),Do(d),"weeks")}function dk(e){return e.getDate()}function fk(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function hk(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function pk(e){return e.getHours()}function mk(e){return e.getMinutes()}function gk(e){return new Date(e.getFullYear(),0,1)}function vk(e){return new Date(e.getFullYear(),11,31)}function yk(e,t){return Mc(e,t[0])&&Sk(e,t[1])}function _k(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Mc(e,t){return e.getTime()>t.getTime()}function bk(e,t){return Mc(Do(e),Do(t))}function Sk(e,t){return e.getTime(){n.locale=e.locale[r]??r??n.locale}),n}function u4(){const e=Le(ub);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=qT();return db(e,t)}const d4=["sm","md","lg","xl","xxl"],dd=Symbol.for("vuetify:display"),ym={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},Ok=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ym;return Rt(ym,e)};function _m(e){return et&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function bm(e){return et&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function Sm(e){const t=et&&!e?window.navigator.userAgent:"ssr";function n(p){return!!t.match(p)}const r=n(/android/i),s=n(/iphone|ipad|ipod/i),i=n(/cordova/i),o=n(/electron/i),a=n(/chrome/i),c=n(/edge/i),l=n(/firefox/i),d=n(/opera/i),u=n(/win/i),f=n(/mac/i),h=n(/linux/i);return{android:r,ios:s,cordova:i,electron:o,chrome:a,edge:c,firefox:l,opera:d,win:u,mac:f,linux:h,touch:jC,ssr:t==="ssr"}}function Lk(e,t){const{thresholds:n,mobileBreakpoint:r}=Ok(e),s=be(bm(t)),i=be(Sm(t)),o=pt({}),a=be(_m(t));function c(){s.value=bm(),a.value=_m()}function l(){c(),i.value=Sm()}return hn(()=>{const d=a.value=n.xxl,v=d?"xs":u?"sm":f?"md":h?"lg":p?"xl":"xxl",g=typeof r=="number"?r:n[r],y=a.value{window.removeEventListener("resize",c)},!0)),{..._f(o),update:l,ssr:!!t}}const f4=le({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function Nk(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{mobile:null},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();const n=Le(dd);if(!n)throw new Error("Could not find Vuetify display injection");const r=j(()=>e.mobile?!0:typeof e.mobileBreakpoint=="number"?n.width.valuet?{[`${t}--mobile`]:r.value}:{}),mobile:r}}const fb=Symbol.for("vuetify:goto");function hb(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:PT}}function Dk(e){return Vf(e)??(document.scrollingElement||document.body)}function Vf(e){return typeof e=="string"?document.querySelector(e):Mf(e)}function ou(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=Vf(e),s=0;for(;r;)s+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return s}function Fk(e,t){return{rtl:t.isRtl,options:Rt(hb(),e)}}async function Em(e,t,n,r){const s=n?"scrollLeft":"scrollTop",i=Rt((r==null?void 0:r.options)??hb(),t),o=r==null?void 0:r.rtl.value,a=(typeof e=="number"?e:Vf(e))??0,c=i.container==="parent"&&a instanceof HTMLElement?a.parentElement:Dk(i.container),l=Oo()?i.patterns.instant:typeof i.easing=="function"?i.easing:i.patterns[i.easing];if(!l)throw new TypeError(`Easing function "${i.easing}" not found.`);let d;if(typeof a=="number")d=ou(a,n,o);else if(d=ou(a,n,o)-ou(c,n,o),i.layout){const p=window.getComputedStyle(a).getPropertyValue("--v-layout-top");p&&(d-=parseInt(p,10))}d+=i.offset,d=$k(c,d,!!o,!!n);const u=c[s]??0;if(d===u)return Promise.resolve(d);const f=performance.now();return new Promise(h=>requestAnimationFrame(function p(m){const g=(m-f)/i.duration,y=Math.floor(u+(d-u)*l(or(g,0,1)));if(c[s]=y,g>=1&&Math.abs(y-c[s])<10)return h(d);if(g>2)return h(c[s]);requestAnimationFrame(p)}))}function h4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=Le(fb),{isRtl:n}=na();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:ee(()=>t.rtl.value||n.value)};async function s(i,o){return Em(i,Rt(e,o),!1,r)}return s.horizontal=async(i,o)=>Em(i,Rt(e,o),!0,r),s}function $k(e,t,n,r){const{scrollWidth:s,scrollHeight:i}=e,[o,a]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let c,l;return r?n?(c=-(s-o),l=0):(c=0,l=s-o):(c=0,l=i+-a),or(t,c,l)}const Fo=Symbol.for("vuetify:theme"),nn=le({theme:String},"theme");function wm(){return{defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0}}function Bk(){var r,s;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wm();const t=wm();if(!e)return{...t,isDisabled:!0};const n={};for(const[i,o]of Object.entries(e.themes??{})){const a=o.dark||i==="dark"?(r=t.themes)==null?void 0:r.dark:(s=t.themes)==null?void 0:s.light;n[i]=Rt(a,o)}return Rt(t,{...e,themes:n})}function ns(e,t,n,r){e.push(`${Wk(t,r)} { `,...n.map(s=>` ${s}; `),`} `)}function Cm(e,t){const n=e.dark?2:1,r=e.dark?1:2,s=[];for(const[i,o]of Object.entries(e.colors)){const a=Fn(o);s.push(`--${t}theme-${i}: ${a.r},${a.g},${a.b}`),i.startsWith("on-")||s.push(`--${t}theme-${i}-overlay-multiplier: ${TT(o)>.18?n:r}`)}for(const[i,o]of Object.entries(e.variables)){const a=typeof o=="string"&&o.startsWith("#")?Fn(o):void 0,c=a?`${a.r}, ${a.g}, ${a.b}`:void 0;s.push(`--${t}${i}: ${c??o}`)}return s}function Hk(e,t,n){const r={};if(n)for(const s of["lighten","darken"]){const i=s==="lighten"?wT:CT;for(const o of V_(n[s],1))r[`${e}-${s}-${o}`]=bT(i(Fn(t),o))}return r}function Vk(e,t){if(!t)return{};let n={};for(const r of t.colors){const s=e[r];s&&(n={...n,...Hk(r,s,t)})}return n}function Uk(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e[`on-${n}`])continue;const r=`on-${n}`,s=Fn(e[n]);t[r]=eb(s)}return t}function Wk(e,t){if(!t)return e;const n=`:where(${t})`;return e===":root"?n:`${n} ${e}`}function jk(e,t,n){const r=zk(e,t);r&&(r.innerHTML=n)}function zk(e,t){if(!et)return null;let n=document.getElementById(e);return n||(n=document.createElement("style"),n.id=e,n.type="text/css",t&&n.setAttribute("nonce",t),document.head.appendChild(n)),n}function qk(e){const t=Bk(e),n=be(t.defaultTheme),r=we(t.themes),s=be("light"),i=j({get(){return n.value==="system"?s.value:n.value},set(g){n.value=g}}),o=j(()=>{const g={};for(const[y,_]of Object.entries(r.value)){const S={..._.colors,...Vk(_.colors,t.variations)};g[y]={..._,colors:{...S,...Uk(S)}}}return g}),a=ee(()=>o.value[i.value]),c=ee(()=>n.value==="system"),l=j(()=>{var M;const g=[],y=t.unimportant?"":" !important",_=t.scoped?t.prefix:"";(M=a.value)!=null&&M.dark&&ns(g,":root",["color-scheme: dark"],t.scope),ns(g,":root",Cm(a.value,t.prefix),t.scope);for(const[R,E]of Object.entries(o.value))ns(g,`.${t.prefix}theme--${R}`,[`color-scheme: ${E.dark?"dark":"normal"}`,...Cm(E,t.prefix)],t.scope);if(t.utilities){const R=[],E=[],C=new Set(Object.values(o.value).flatMap(I=>Object.keys(I.colors)));for(const I of C)I.startsWith("on-")?ns(E,`.${I}`,[`color: rgb(var(--${t.prefix}theme-${I}))${y}`],t.scope):(ns(R,`.${_}bg-${I}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${I}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${I}))${y}`,`color: rgb(var(--${t.prefix}theme-on-${I}))${y}`],t.scope),ns(E,`.${_}text-${I}`,[`color: rgb(var(--${t.prefix}theme-${I}))${y}`],t.scope),ns(E,`.${_}border-${I}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${I})`],t.scope));t.layers?g.push(`@layer background { `,...R.map(I=>` ${I}`),`} `,`@layer foreground { `,...E.map(I=>` ${I}`),`} `):g.push(...R,...E)}let S=g.map((R,E)=>E===0?R:` ${R}`).join("");return t.layers&&(S=`@layer vuetify.theme { `+g.map(R=>` ${R}`).join("")+` }`),S}),d=ee(()=>t.isDisabled?void 0:`${t.prefix}theme--${i.value}`),u=ee(()=>Object.keys(o.value));if($_){let y=function(){s.value=g.matches?"dark":"light"};const g=window.matchMedia("(prefers-color-scheme: dark)");y(),g.addEventListener("change",y,{passive:!0}),df()&&Ct(()=>{g.removeEventListener("change",y)})}function f(g){if(t.isDisabled)return;const y=g._context.provides.usehead;if(y){let _=function(){return{style:[{textContent:l.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}};if(y.push){const S=y.push(_);et&&Se(l,()=>{S.patch(_)})}else et?(y.addHeadObjs(ee(_)),hn(()=>y.updateDOM())):y.addHeadObjs(_())}else{let _=function(){jk(t.stylesheetId,t.cspNonce,l.value)};et?Se(l,_,{immediate:!0}):_()}}function h(g){g!=="system"&&!u.value.includes(g)||(i.value=g)}function p(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.value;const y=g.indexOf(i.value),_=y===-1?0:(y+1)%g.length;h(g[_])}function m(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["light","dark"];p(g)}const v=new Proxy(i,{get(g,y){return Reflect.get(g,y)},set(g,y,_){return y==="value"&&F_(`theme.global.name.value = ${_}`,`theme.change('${_}')`),Reflect.set(g,y,_)}});return{install:f,change:h,cycle:p,toggle:m,isDisabled:t.isDisabled,isSystem:c,name:i,themes:r,current:a,computedThemes:o,prefix:t.prefix,themeClasses:d,styles:l,global:{name:v,current:a}}}function mn(e){mt("provideTheme");const t=Le(Fo,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=ee(()=>e.theme??t.name.value),i={...t,name:n,current:ee(()=>t.themes.value[n.value]),themeClasses:ee(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`)};return At(Fo,i),i}function pb(){mt("useTheme");const e=Le(Fo,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function Uf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=od(),r=we();if(et){const s=new ResizeObserver(i=>{e==null||e(i,s),i.length&&(t==="content"?r.value=i[0].contentRect:r.value=i[0].target.getBoundingClientRect())});Tn(()=>{s.disconnect()}),Se(()=>n.el,(i,o)=>{o&&(s.unobserve(o),r.value=void 0),i&&s.observe(i)},{flush:"post"})}return{resizeRef:n,contentRect:hi(r)}}const $o=Symbol.for("vuetify:layout"),mb=Symbol.for("vuetify:layout-item"),Tm=1e3,Gk=le({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),p4=le({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function Kk(){const e=Le($o);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function m4(e){const t=Le($o);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${Zy()}`,r=mt("useLayoutItem");At(mb,{id:n});const s=be(!1);t_(()=>s.value=!0),e_(()=>s.value=!1);const{layoutItemStyles:i,layoutItemScrimStyles:o}=t.register(r,{...e,active:j(()=>s.value?!1:e.active.value),id:n});return Tn(()=>t.unregister(n)),{layoutItemStyles:i,layoutRect:t.layoutRect,layoutItemScrimStyles:o}}const Yk=(e,t,n,r)=>{let s={top:0,left:0,right:0,bottom:0};const i=[{id:"",layer:{...s}}];for(const o of e){const a=t.get(o),c=n.get(o),l=r.get(o);if(!a||!c||!l)continue;const d={...s,[a.value]:parseInt(s[a.value],10)+(l.value?parseInt(c.value,10):0)};i.push({id:o,layer:d}),s=d}return i};function Xk(e){const t=Le($o,null),n=j(()=>t?t.rootZIndex.value-100:Tm),r=we([]),s=pt(new Map),i=pt(new Map),o=pt(new Map),a=pt(new Map),c=pt(new Map),{resizeRef:l,contentRect:d}=Uf(),u=j(()=>{const R=new Map,E=e.overlaps??[];for(const C of E.filter(I=>I.includes(":"))){const[I,A]=C.split(":");if(!r.value.includes(I)||!r.value.includes(A))continue;const O=s.get(I),T=s.get(A),P=i.get(I),N=i.get(A);!O||!T||!P||!N||(R.set(A,{position:O.value,amount:parseInt(P.value,10)}),R.set(I,{position:T.value,amount:-parseInt(N.value,10)}))}return R}),f=j(()=>{const R=[...new Set([...o.values()].map(C=>C.value))].sort((C,I)=>C-I),E=[];for(const C of R){const I=r.value.filter(A=>{var O;return((O=o.get(A))==null?void 0:O.value)===C});E.push(...I)}return Yk(E,s,i,a)}),h=j(()=>!Array.from(c.values()).some(R=>R.value)),p=j(()=>f.value[f.value.length-1].layer),m=ee(()=>({"--v-layout-left":me(p.value.left),"--v-layout-right":me(p.value.right),"--v-layout-top":me(p.value.top),"--v-layout-bottom":me(p.value.bottom),...h.value?void 0:{transition:"none"}})),v=j(()=>f.value.slice(1).map((R,E)=>{let{id:C}=R;const{layer:I}=f.value[E],A=i.get(C),O=s.get(C);return{id:C,...I,size:Number(A.value),position:O.value}})),g=R=>v.value.find(E=>E.id===R),y=mt("createLayout"),_=be(!1);return zr(()=>{_.value=!0}),At($o,{register:(R,E)=>{let{id:C,order:I,position:A,layoutSize:O,elementSize:T,active:P,disableTransitions:N,absolute:z}=E;o.set(C,I),s.set(C,A),i.set(C,O),a.set(C,P),N&&c.set(C,N);const q=Zs(mb,y==null?void 0:y.vnode).indexOf(R);q>-1?r.value.splice(q,0,C):r.value.push(C);const D=j(()=>v.value.findIndex(ae=>ae.id===C)),re=j(()=>n.value+f.value.length*2-D.value*2),U=j(()=>{const ae=A.value==="left"||A.value==="right",ue=A.value==="right",Ce=A.value==="bottom",Ne=T.value??O.value,He=Ne===0?"%":"px",x={[A.value]:0,zIndex:re.value,transform:`translate${ae?"X":"Y"}(${(P.value?0:-(Ne===0?100:Ne))*(ue||Ce?-1:1)}${He})`,position:z.value||n.value!==Tm?"absolute":"fixed",...h.value?void 0:{transition:"none"}};if(!_.value)return x;const W=v.value[D.value],K=u.value.get(C);return K&&(W[K.position]+=K.amount),{...x,height:ae?`calc(100% - ${W.top}px - ${W.bottom}px)`:T.value?`${T.value}px`:void 0,left:ue?void 0:`${W.left}px`,right:ue?`${W.right}px`:void 0,top:A.value!=="bottom"?`${W.top}px`:void 0,bottom:A.value!=="top"?`${W.bottom}px`:void 0,width:ae?T.value?`${T.value}px`:void 0:`calc(100% - ${W.left}px - ${W.right}px)`}}),ie=j(()=>({zIndex:re.value-1}));return{layoutItemStyles:U,layoutItemScrimStyles:ie,zIndex:re}},unregister:R=>{o.delete(R),s.delete(R),i.delete(R),a.delete(R),c.delete(R),r.value=r.value.filter(E=>E!==R)},mainRect:p,mainStyles:m,getLayoutItem:g,items:v,layoutRect:d,rootZIndex:n}),{layoutClasses:ee(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),layoutStyles:ee(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0})),getLayoutItem:g,items:v,layoutRect:d,layoutRef:l}}function gb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=Rt(t,n),{aliases:s={},components:i={},directives:o={}}=r,a=Es();return a.run(()=>{const c=IT(r.defaults),l=Lk(r.display,r.ssr),d=qk(r.theme),u=VT(r.icons),f=zT(r.locale),h=Mk(r.date,f),p=Fk(r.goTo,f);function m(g){for(const _ in o)g.directive(_,o[_]);for(const _ in i)g.component(_,i[_]);for(const _ in s)g.component(_,Ni({...s[_],name:_,aliasName:s[_].name}));const y=Es();if(y.run(()=>{d.install(g)}),g.onUnmount(()=>y.stop()),g.provide(vi,c),g.provide(dd,l),g.provide(Fo,d),g.provide(ud,u),g.provide(Ac,f),g.provide(ub,h.options),g.provide(vm,h.instance),g.provide(fb,p),et&&r.ssr)if(g.$nuxt)g.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:_}=g;g.mount=function(){const S=_(...arguments);return vt(()=>l.update()),g.mount=_,S}}g.mixin({computed:{$vuetify(){return pt({defaults:Hs.call(this,vi),display:Hs.call(this,dd),theme:Hs.call(this,Fo),icons:Hs.call(this,ud),locale:Hs.call(this,Ac),date:Hs.call(this,vm)})}}})}function v(){a.stop()}return{install:m,unmount:v,defaults:c,display:l,theme:d,icons:u,locale:f,date:h,goTo:p}})}const Jk="3.11.8";gb.version=Jk;function Hs(e){var r,s;const t=this.$,n=((r=t.parent)==null?void 0:r.provides)??((s=t.vnode.appContext)==null?void 0:s.provides);if(n&&e in n)return n[e]}const Zk=gb({theme:{defaultTheme:"dark"}});/*! * pinia v3.0.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let vb;const _l=e=>vb=e,yb=Symbol();function fd(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var bo;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(bo||(bo={}));function _b(){const e=Es(!0),t=e.run(()=>we({}));let n=[],r=[];const s=yf({install(i){_l(s),s._a=i,i.provide(yb,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const bb=()=>{};function km(e,t,n,r=bb){e.add(t);const s=()=>{e.delete(t)&&r()};return!n&&df()&&Ct(s),s}function Vs(e,...t){e.forEach(n=>{n(...t)})}const Qk=e=>e(),Im=Symbol(),au=Symbol();function hd(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];fd(s)&&fd(r)&&e.hasOwnProperty(n)&&!Je(r)&&!Jn(r)?e[n]=hd(s,r):e[n]=r}return e}const eI=Symbol();function tI(e){return!fd(e)||!Object.prototype.hasOwnProperty.call(e,eI)}const{assign:wr}=Object;function nI(e){return!!(Je(e)&&e.effect)}function rI(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let c;function l(){a||(n.state.value[e]=s?s():{});const d=_f(n.state.value[e]);return wr(d,i,Object.keys(o||{}).reduce((u,f)=>(u[f]=yf(j(()=>{_l(n);const h=n._s.get(e);return o[f].call(h,h)})),u),{}))}return c=Sb(e,l,t,n,r,!0),c}function Sb(e,t,n={},r,s,i){let o;const a=wr({actions:{}},n),c={deep:!0};let l,d,u=new Set,f=new Set,h;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={});let m;function v(C){let I;l=d=!1,typeof C=="function"?(C(r.state.value[e]),I={type:bo.patchFunction,storeId:e,events:h}):(hd(r.state.value[e],C),I={type:bo.patchObject,payload:C,storeId:e,events:h});const A=m=Symbol();vt().then(()=>{m===A&&(l=!0)}),d=!0,Vs(u,I,r.state.value[e])}const g=i?function(){const{state:I}=n,A=I?I():{};this.$patch(O=>{wr(O,A)})}:bb;function y(){o.stop(),u.clear(),f.clear(),r._s.delete(e)}const _=(C,I="")=>{if(Im in C)return C[au]=I,C;const A=function(){_l(r);const O=Array.from(arguments),T=new Set,P=new Set;function N(q){T.add(q)}function z(q){P.add(q)}Vs(f,{args:O,name:A[au],store:M,after:N,onError:z});let X;try{X=C.apply(this&&this.$id===e?this:M,O)}catch(q){throw Vs(P,q),q}return X instanceof Promise?X.then(q=>(Vs(T,q),q)).catch(q=>(Vs(P,q),Promise.reject(q))):(Vs(T,X),X)};return A[Im]=!0,A[au]=I,A},S={_p:r,$id:e,$onAction:km.bind(null,f),$patch:v,$reset:g,$subscribe(C,I={}){const A=km(u,C,I.detached,()=>O()),O=o.run(()=>Se(()=>r.state.value[e],T=>{(I.flush==="sync"?d:l)&&C({storeId:e,type:bo.direct,events:h},T)},wr({},c,I)));return A},$dispose:y},M=pt(S);r._s.set(e,M);const E=(r._a&&r._a.runWithContext||Qk)(()=>r._e.run(()=>(o=Es()).run(()=>t({action:_}))));for(const C in E){const I=E[C];if(Je(I)&&!nI(I)||Jn(I))i||(p&&tI(I)&&(Je(I)?I.value=p[C]:hd(I,p[C])),r.state.value[e][C]=I);else if(typeof I=="function"){const A=_(I,C);E[C]=A,a.actions[C]=I}}return wr(M,E),wr(de(M),E),Object.defineProperty(M,"$state",{get:()=>r.state.value[e],set:C=>{v(I=>{wr(I,C)})}}),r._p.forEach(C=>{wr(M,o.run(()=>C({store:M,app:r._a,pinia:r,options:a})))}),p&&i&&n.hydrate&&n.hydrate(M.$state,p),l=!0,d=!0,M}/*! #__NO_SIDE_EFFECTS__ */function g4(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function i(o,a){const c=c1();return o=o||(c?Le(yb,null):null),o&&_l(o),o=vb,o._s.has(e)||(s?Sb(e,t,r,o):rI(e,r,o)),o._s.get(e)}return i.$id=e,i}function v4(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const s=e(this.$pinia),i=t[r];return typeof i=="function"?i.call(this,s):s[i]},n),{})}function y4(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(...s){return e(this.$pinia)[r](...s)},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(...s){return e(this.$pinia)[t[r]](...s)},n),{})}const sI=_b();/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const Ks=typeof document<"u";function Eb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function iI(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Eb(e.default)}const Fe=Object.assign;function cu(e,t){const n={};for(const r in t){const s=t[r];n[r]=Cn(s)?s.map(e):e(s)}return n}const So=()=>{},Cn=Array.isArray;function xm(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const wb=/#/g,oI=/&/g,aI=/\//g,cI=/=/g,lI=/\?/g,Cb=/\+/g,uI=/%5B/g,dI=/%5D/g,Tb=/%5E/g,fI=/%60/g,kb=/%7B/g,hI=/%7C/g,Ib=/%7D/g,pI=/%20/g;function Wf(e){return e==null?"":encodeURI(""+e).replace(hI,"|").replace(uI,"[").replace(dI,"]")}function mI(e){return Wf(e).replace(kb,"{").replace(Ib,"}").replace(Tb,"^")}function pd(e){return Wf(e).replace(Cb,"%2B").replace(pI,"+").replace(wb,"%23").replace(oI,"%26").replace(fI,"`").replace(kb,"{").replace(Ib,"}").replace(Tb,"^")}function gI(e){return pd(e).replace(cI,"%3D")}function vI(e){return Wf(e).replace(wb,"%23").replace(lI,"%3F")}function yI(e){return vI(e).replace(aI,"%2F")}function Bo(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const _I=/\/$/,bI=e=>e.replace(_I,"");function lu(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let c=t.indexOf("?");return c=a>=0&&c>a?-1:c,c>=0&&(r=t.slice(0,c),i=t.slice(c,a>0?a:t.length),s=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=CI(r??t,n),{fullPath:r+i+o,path:r,query:s,hash:Bo(o)}}function SI(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Rm(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function EI(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&yi(t.matched[r],n.matched[s])&&xb(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function yi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!wI(e[n],t[n]))return!1;return!0}function wI(e,t){return Cn(e)?Am(e,t):Cn(t)?Am(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Am(e,t){return Cn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function CI(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const br={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let md=function(e){return e.pop="pop",e.push="push",e}({}),uu=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function TI(e){if(!e)if(Ks){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),bI(e)}const kI=/^[^#]+#/;function II(e,t){return e.replace(kI,"#")+t}function xI(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const bl=()=>({left:window.scrollX,top:window.scrollY});function RI(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=xI(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Mm(e,t){return(history.state?history.state.position-t:-1)+e}const gd=new Map;function AI(e,t){gd.set(e,t)}function MI(e){const t=gd.get(e);return gd.delete(e),t}function PI(e){return typeof e=="string"||e&&typeof e=="object"}function Rb(e){return typeof e=="string"||typeof e=="symbol"}let ot=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Ab=Symbol("");ot.MATCHER_NOT_FOUND+"",ot.NAVIGATION_GUARD_REDIRECT+"",ot.NAVIGATION_ABORTED+"",ot.NAVIGATION_CANCELLED+"",ot.NAVIGATION_DUPLICATED+"";function _i(e,t){return Fe(new Error,{type:e,[Ab]:!0},t)}function jn(e,t){return e instanceof Error&&Ab in e&&(t==null||!!(e.type&t))}const OI=["params","query","hash"];function LI(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of OI)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function NI(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rs&&pd(s)):[r&&pd(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function DI(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Cn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const FI=Symbol(""),Om=Symbol(""),Sl=Symbol(""),jf=Symbol(""),vd=Symbol("");function to(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function xr(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,c)=>{const l=f=>{f===!1?c(_i(ot.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?c(f):PI(f)?c(_i(ot.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),a())},d=i(()=>e.call(r&&r.instances[s],t,n,l));let u=Promise.resolve(d);e.length<3&&(u=u.then(l)),u.catch(f=>c(f))})}function du(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let c=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(Eb(c)){const l=(c.__vccOpts||c)[t];l&&i.push(xr(l,n,r,o,a,s))}else{let l=c();i.push(()=>l.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const u=iI(d)?d.default:d;o.mods[a]=d,o.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&xr(f,n,r,o,a,s)()}))}}return i}function $I(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oyi(l,a))?r.push(a):n.push(a));const c=e.matched[o];c&&(t.matched.find(l=>yi(l,c))||s.push(c))}return[n,r,s]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let BI=()=>location.protocol+"//"+location.host;function Mb(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let o=s.includes(e.slice(i))?e.slice(i).length:1,a=s.slice(o);return a[0]!=="/"&&(a="/"+a),Rm(a,"")}return Rm(n,e)+r+s}function HI(e,t,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const h=Mb(e,location),p=n.value,m=t.value;let v=0;if(f){if(n.value=h,t.value=f,o&&o===p){o=null;return}v=m?f.position-m.position:0}else r(h);s.forEach(g=>{g(n.value,p,{delta:v,type:md.pop,direction:v?v>0?uu.forward:uu.back:uu.unknown})})};function c(){o=n.value}function l(f){s.push(f);const h=()=>{const p=s.indexOf(f);p>-1&&s.splice(p,1)};return i.push(h),h}function d(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:bl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:c,listen:l,destroy:u}}function Lm(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?bl():null}}function VI(e){const{history:t,location:n}=window,r={value:Mb(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,l,d){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+c:BI()+e+c;try{t[d?"replaceState":"pushState"](l,"",f),s.value=l}catch(h){console.error(h),n[d?"replace":"assign"](f)}}function o(c,l){i(c,Fe({},t.state,Lm(s.value.back,c,s.value.forward,!0),l,{position:s.value.position}),!0),r.value=c}function a(c,l){const d=Fe({},s.value,t.state,{forward:c,scroll:bl()});i(d.current,d,!0),i(c,Fe({},Lm(r.value,c,null),{position:d.position+1},l),!1),r.value=c}return{location:r,state:s,push:a,replace:o}}function UI(e){e=TI(e);const t=VI(e),n=HI(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=Fe({location:"",base:e,go:r,createHref:II.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let ls=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var ft=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(ft||{});const WI={type:ls.Static,value:""},jI=/[a-zA-Z0-9_]/;function zI(e){if(!e)return[[]];if(e==="/")return[[WI]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${l}": ${h}`)}let n=ft.Static,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,c,l="",d="";function u(){l&&(n===ft.Static?i.push({type:ls.Static,value:l}):n===ft.Param||n===ft.ParamRegExp||n===ft.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ls.Param,value:l,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),l="")}function f(){l+=c}for(;at.length?t.length===1&&t[0]===Nt.Static+Nt.Segment?1:-1:0}function Pb(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const XI={strict:!1,end:!0,sensitive:!1};function JI(e,t,n){const r=KI(zI(e.path),n),s=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function ZI(e,t){const n=[],r=new Map;t=xm(XI,t);function s(u){return r.get(u)}function i(u,f,h){const p=!h,m=$m(u);m.aliasOf=h&&h.record;const v=xm(t,u),g=[m];if("alias"in u){const S=typeof u.alias=="string"?[u.alias]:u.alias;for(const M of S)g.push($m(Fe({},m,{components:h?h.record.components:m.components,path:M,aliasOf:h?h.record:m})))}let y,_;for(const S of g){const{path:M}=S;if(f&&M[0]!=="/"){const R=f.record.path,E=R[R.length-1]==="/"?"":"/";S.path=f.record.path+(M&&E+M)}if(y=JI(S,f,v),h?h.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),p&&u.name&&!Bm(y)&&o(u.name)),Ob(y)&&c(y),m.children){const R=m.children;for(let E=0;E{o(_)}:So}function o(u){if(Rb(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function c(u){const f=tx(u,n);n.splice(f,0,u),u.record.name&&!Bm(u)&&r.set(u.record.name,u)}function l(u,f){let h,p={},m,v;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw _i(ot.MATCHER_NOT_FOUND,{location:u});v=h.record.name,p=Fe(Fm(f.params,h.keys.filter(_=>!_.optional).concat(h.parent?h.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),u.params&&Fm(u.params,h.keys.map(_=>_.name))),m=h.stringify(p)}else if(u.path!=null)m=u.path,h=n.find(_=>_.re.test(m)),h&&(p=h.parse(m),v=h.record.name);else{if(h=f.name?r.get(f.name):n.find(_=>_.re.test(f.path)),!h)throw _i(ot.MATCHER_NOT_FOUND,{location:u,currentLocation:f});v=h.record.name,p=Fe({},f.params,u.params),m=h.stringify(p)}const g=[];let y=h;for(;y;)g.unshift(y.record),y=y.parent;return{name:v,path:m,params:p,matched:g,meta:ex(g)}}e.forEach(u=>i(u));function d(){n.length=0,r.clear()}return{addRoute:i,resolve:l,removeRoute:o,clearRoutes:d,getRoutes:a,getRecordMatcher:s}}function Fm(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function $m(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:QI(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function QI(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Bm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ex(e){return e.reduce((t,n)=>Fe(t,n.meta),{})}function tx(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;Pb(e,t[i])<0?r=i:n=i+1}const s=nx(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function nx(e){let t=e;for(;t=t.parent;)if(Ob(t)&&Pb(e,t)===0)return t}function Ob({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Hm(e){const t=Le(Sl),n=Le(jf),r=j(()=>{const c=Ut(e.to);return t.resolve(c)}),s=j(()=>{const{matched:c}=r.value,{length:l}=c,d=c[l-1],u=n.matched;if(!d||!u.length)return-1;const f=u.findIndex(yi.bind(null,d));if(f>-1)return f;const h=Vm(c[l-2]);return l>1&&Vm(d)===h&&u[u.length-1].path!==h?u.findIndex(yi.bind(null,c[l-2])):f}),i=j(()=>s.value>-1&&ax(n.params,r.value.params)),o=j(()=>s.value>-1&&s.value===n.matched.length-1&&xb(n.params,r.value.params));function a(c={}){if(ox(c)){const l=t[Ut(e.replace)?"replace":"push"](Ut(e.to)).catch(So);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:j(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}function rx(e){return e.length===1?e[0]:e}const sx=dl({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Hm,setup(e,{slots:t}){const n=pt(Hm(e)),{options:r}=Le(Sl),s=j(()=>({[Um(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Um(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&rx(t.default(n));return e.custom?i:qr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),ix=sx;function ox(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ax(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Cn(s)||s.length!==r.length||r.some((i,o)=>i.valueOf()!==s[o].valueOf()))return!1}return!0}function Vm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Um=(e,t,n)=>e??t??n,cx=dl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Le(vd),s=j(()=>e.route||r.value),i=Le(Om,0),o=j(()=>{let l=Ut(i);const{matched:d}=s.value;let u;for(;(u=d[l])&&!u.components;)l++;return l}),a=j(()=>s.value.matched[o.value]);At(Om,j(()=>o.value+1)),At(FI,a),At(vd,s);const c=we();return Se(()=>[c.value,a.value,e.name],([l,d,u],[f,h,p])=>{d&&(d.instances[u]=l,h&&h!==d&&l&&l===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),l&&d&&(!h||!yi(d,h)||!f)&&(d.enterCallbacks[u]||[]).forEach(m=>m(l))},{flush:"post"}),()=>{const l=s.value,d=e.name,u=a.value,f=u&&u.components[d];if(!f)return Wm(n.default,{Component:f,route:l});const h=u.props[d],p=h?h===!0?l.params:typeof h=="function"?h(l):h:null,v=qr(f,Fe({},p,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[d]=null)},ref:c}));return Wm(n.default,{Component:v,route:l})||v}}});function Wm(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lx=cx;function ux(e){const t=ZI(e.routes,e),n=e.parseQuery||NI,r=e.stringifyQuery||Pm,s=e.history,i=to(),o=to(),a=to(),c=be(br);let l=br;Ks&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=cu.bind(null,x=>""+x),u=cu.bind(null,yI),f=cu.bind(null,Bo);function h(x,W){let K,ne;return Rb(x)?(K=t.getRecordMatcher(x),ne=W):ne=x,t.addRoute(ne,K)}function p(x){const W=t.getRecordMatcher(x);W&&t.removeRoute(W)}function m(){return t.getRoutes().map(x=>x.record)}function v(x){return!!t.getRecordMatcher(x)}function g(x,W){if(W=Fe({},W||c.value),typeof x=="string"){const k=lu(n,x,W.path),L=t.resolve({path:k.path},W),$=s.createHref(k.fullPath);return Fe(k,L,{params:f(L.params),hash:Bo(k.hash),redirectedFrom:void 0,href:$})}let K;if(x.path!=null)K=Fe({},x,{path:lu(n,x.path,W.path).path});else{const k=Fe({},x.params);for(const L in k)k[L]==null&&delete k[L];K=Fe({},x,{params:u(k)}),W.params=u(W.params)}const ne=t.resolve(K,W),ye=x.hash||"";ne.params=d(f(ne.params));const b=SI(r,Fe({},x,{hash:mI(ye),path:ne.path})),w=s.createHref(b);return Fe({fullPath:b,hash:ye,query:r===Pm?DI(x.query):x.query||{}},ne,{redirectedFrom:void 0,href:w})}function y(x){return typeof x=="string"?lu(n,x,c.value.path):Fe({},x)}function _(x,W){if(l!==x)return _i(ot.NAVIGATION_CANCELLED,{from:W,to:x})}function S(x){return E(x)}function M(x){return S(Fe(y(x),{replace:!0}))}function R(x,W){const K=x.matched[x.matched.length-1];if(K&&K.redirect){const{redirect:ne}=K;let ye=typeof ne=="function"?ne(x,W):ne;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=y(ye):{path:ye},ye.params={}),Fe({query:x.query,hash:x.hash,params:ye.path!=null?{}:x.params},ye)}}function E(x,W){const K=l=g(x),ne=c.value,ye=x.state,b=x.force,w=x.replace===!0,k=R(K,ne);if(k)return E(Fe(y(k),{state:typeof k=="object"?Fe({},ye,k.state):ye,force:b,replace:w}),W||K);const L=K;L.redirectedFrom=W;let $;return!b&&EI(r,ne,K)&&($=_i(ot.NAVIGATION_DUPLICATED,{to:L,from:ne}),ie(ne,ne,!0,!1)),($?Promise.resolve($):A(L,ne)).catch(F=>jn(F)?jn(F,ot.NAVIGATION_GUARD_REDIRECT)?F:U(F):D(F,L,ne)).then(F=>{if(F){if(jn(F,ot.NAVIGATION_GUARD_REDIRECT))return E(Fe({replace:w},y(F.to),{state:typeof F.to=="object"?Fe({},ye,F.to.state):ye,force:b}),W||L)}else F=T(L,ne,!0,w,ye);return O(L,ne,F),F})}function C(x,W){const K=_(x,W);return K?Promise.reject(K):Promise.resolve()}function I(x){const W=Ce.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(x):x()}function A(x,W){let K;const[ne,ye,b]=$I(x,W);K=du(ne.reverse(),"beforeRouteLeave",x,W);for(const k of ne)k.leaveGuards.forEach(L=>{K.push(xr(L,x,W))});const w=C.bind(null,x,W);return K.push(w),He(K).then(()=>{K=[];for(const k of i.list())K.push(xr(k,x,W));return K.push(w),He(K)}).then(()=>{K=du(ye,"beforeRouteUpdate",x,W);for(const k of ye)k.updateGuards.forEach(L=>{K.push(xr(L,x,W))});return K.push(w),He(K)}).then(()=>{K=[];for(const k of b)if(k.beforeEnter)if(Cn(k.beforeEnter))for(const L of k.beforeEnter)K.push(xr(L,x,W));else K.push(xr(k.beforeEnter,x,W));return K.push(w),He(K)}).then(()=>(x.matched.forEach(k=>k.enterCallbacks={}),K=du(b,"beforeRouteEnter",x,W,I),K.push(w),He(K))).then(()=>{K=[];for(const k of o.list())K.push(xr(k,x,W));return K.push(w),He(K)}).catch(k=>jn(k,ot.NAVIGATION_CANCELLED)?k:Promise.reject(k))}function O(x,W,K){a.list().forEach(ne=>I(()=>ne(x,W,K)))}function T(x,W,K,ne,ye){const b=_(x,W);if(b)return b;const w=W===br,k=Ks?history.state:{};K&&(ne||w?s.replace(x.fullPath,Fe({scroll:w&&k&&k.scroll},ye)):s.push(x.fullPath,ye)),c.value=x,ie(x,W,K,w),U()}let P;function N(){P||(P=s.listen((x,W,K)=>{if(!Ne.listening)return;const ne=g(x),ye=R(ne,Ne.currentRoute.value);if(ye){E(Fe(ye,{replace:!0,force:!0}),ne).catch(So);return}l=ne;const b=c.value;Ks&&AI(Mm(b.fullPath,K.delta),bl()),A(ne,b).catch(w=>jn(w,ot.NAVIGATION_ABORTED|ot.NAVIGATION_CANCELLED)?w:jn(w,ot.NAVIGATION_GUARD_REDIRECT)?(E(Fe(y(w.to),{force:!0}),ne).then(k=>{jn(k,ot.NAVIGATION_ABORTED|ot.NAVIGATION_DUPLICATED)&&!K.delta&&K.type===md.pop&&s.go(-1,!1)}).catch(So),Promise.reject()):(K.delta&&s.go(-K.delta,!1),D(w,ne,b))).then(w=>{w=w||T(ne,b,!1),w&&(K.delta&&!jn(w,ot.NAVIGATION_CANCELLED)?s.go(-K.delta,!1):K.type===md.pop&&jn(w,ot.NAVIGATION_ABORTED|ot.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),O(ne,b,w)}).catch(So)}))}let z=to(),X=to(),q;function D(x,W,K){U(x);const ne=X.list();return ne.length?ne.forEach(ye=>ye(x,W,K)):console.error(x),Promise.reject(x)}function re(){return q&&c.value!==br?Promise.resolve():new Promise((x,W)=>{z.add([x,W])})}function U(x){return q||(q=!x,N(),z.list().forEach(([W,K])=>x?K(x):W()),z.reset()),x}function ie(x,W,K,ne){const{scrollBehavior:ye}=e;if(!Ks||!ye)return Promise.resolve();const b=!K&&MI(Mm(x.fullPath,0))||(ne||!K)&&history.state&&history.state.scroll||null;return vt().then(()=>ye(x,W,b)).then(w=>w&&RI(w)).catch(w=>D(w,x,W))}const ae=x=>s.go(x);let ue;const Ce=new Set,Ne={currentRoute:c,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:m,resolve:g,options:e,push:S,replace:M,go:ae,back:()=>ae(-1),forward:()=>ae(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:X.add,isReady:re,install(x){x.component("RouterLink",ix),x.component("RouterView",lx),x.config.globalProperties.$router=Ne,Object.defineProperty(x.config.globalProperties,"$route",{enumerable:!0,get:()=>Ut(c)}),Ks&&!ue&&c.value===br&&(ue=!0,S(s.location).catch(ne=>{}));const W={};for(const ne in br)Object.defineProperty(W,ne,{get:()=>c.value[ne],enumerable:!0});x.provide(Sl,Ne),x.provide(jf,Oy(W)),x.provide(vd,c);const K=x.unmount;Ce.add(x),x.unmount=function(){Ce.delete(x),Ce.size<1&&(l=br,P&&P(),P=null,c.value=br,ue=!1,q=!1),K()}}};function He(x){return x.reduce((W,K)=>W.then(()=>I(K)),Promise.resolve())}return Ne}function _4(){return Le(Sl)}function b4(e){return Le(jf)}const dx=e=>{const t={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>yt(()=>import("./default-D2H0PF8z.js"),__vite__mapDeps([0,1]),import.meta.url)})).forEach(([s,i])=>{let o=s.replace("/src/layouts/","").replace(".vue","");t[o]=i});function r(s,i=!0){return s.map(o=>{var a,c,l,d,u,f;if(((a=o.children)==null?void 0:a.length)>0&&(o.children=r(o.children,!1)),i){if(!o.component&&((c=o.children)==null?void 0:c.find(p=>{var m;return(p.path===""||p.path==="/")&&((m=p.meta)==null?void 0:m.isLayout)})))return o;if(((l=o.meta)==null?void 0:l.layout)!==!1)return{path:o.path,component:t[((d=o.meta)==null?void 0:d.layout)||"default"],children:o.path==="/"?[o]:[{...o,path:""}],meta:{isLayout:!0}}}return(u=o.meta)!=null&&u.layout?{path:o.path,component:t[(f=o.meta)==null?void 0:f.layout],children:[{...o,path:""}],meta:{isLayout:!0}}:o})}return r(e)},fx=[{path:"/",name:"/",component:()=>yt(()=>import("./index-Bxccp16U.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]),import.meta.url)},{path:"/404",name:"/404",component:()=>yt(()=>import("./404-A1tSgblu.js"),__vite__mapDeps([40,14,35]),import.meta.url)},{path:"/authorize",name:"/authorize",component:()=>yt(()=>import("./authorize-yhtth8x5.js"),__vite__mapDeps([41,14,35]),import.meta.url)},{path:"/CacheManagement",name:"/CacheManagement",component:()=>yt(()=>import("./CacheManagement-BbOh-GTa.js"),__vite__mapDeps([42,6,7,37,38,12,13,8,9,14,35]),import.meta.url)},{path:"/cses2wakeup",name:"/cses2wakeup",component:()=>yt(()=>import("./cses2wakeup-Ch-cF-p0.js"),__vite__mapDeps([43,14,6,7,44,33,22,19,15,16,20,34,21,12,13,23,45,10,11,17,18,8,9,35,46]),import.meta.url)},{path:"/debug",name:"/debug",component:()=>yt(()=>import("./debug-DrX5QutV.js"),__vite__mapDeps([47,35,48]),import.meta.url)},{path:"/debug-init",name:"/debug-init",component:()=>yt(()=>import("./debug-init-BNyuMYei.js"),__vite__mapDeps([49,4,5,14,36,15,16,35]),import.meta.url)},{path:"/debug-socket",name:"/debug-socket",component:()=>yt(()=>import("./debug-socket-C7sWLw_O.js"),__vite__mapDeps([50,27,5,32,14,12,13,15,16,17,18,35]),import.meta.url)},{path:"/exam-editor",children:[{path:":id",name:"/exam-editor/[id]",component:()=>yt(()=>import("./_id_-CUyKFtSE.js"),__vite__mapDeps([51,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29,30,35]),import.meta.url)}]},{path:"/examschedule",name:"/examschedule",component:()=>yt(()=>import("./examschedule-BVVbZT_r.js"),__vite__mapDeps([52,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,35,53]),import.meta.url)},{path:"/list",children:[{path:"",name:"/list/",component:()=>yt(()=>import("./index-pKEYyI-R.js"),__vite__mapDeps([54,4,5,29,30,15,16,35]),import.meta.url)},{path:":id",name:"/list/[id]",component:()=>yt(()=>import("./_id_-ulLKKRMl.js"),__vite__mapDeps([55,4,5,29,30,15,16,22,19,20,12,13,17,18,35]),import.meta.url)}]},{path:"/settings",name:"/settings",component:()=>yt(()=>import("./settings-Cyv66yv2.js"),__vite__mapDeps([56,28,29,30,15,16,21,22,19,20,12,13,23,31,4,5,6,7,14,35,33,34,17,18,36,37,38,44,45,24,25,57]),import.meta.url)},{path:"/socket-debugger",name:"/socket-debugger",component:()=>yt(()=>import("./socket-debugger-Nhrp574R.js"),__vite__mapDeps([58,27,5,14,12,13,15,16,17,18,19,20,6,7,35,59]),import.meta.url)}],El=ux({history:UI("./"),routes:dx(fx)});El.onError((e,t)=>{var n,r;(r=(n=e==null?void 0:e.message)==null?void 0:n.includes)!=null&&r.call(n,"Failed to fetch dynamically imported module")?localStorage.getItem("vuetify:dynamic-reload")?console.error("Dynamic import error, reloading page did not fix it",e):(console.log("Reloading page to fix dynamic import error"),localStorage.setItem("vuetify:dynamic-reload","true"),location.assign(t.fullPath)):console.error(e)});El.isReady().then(()=>{localStorage.removeItem("vuetify:dynamic-reload")});function hx(e){e.use(Zk).use(El).use(sI)}async function px(){return typeof Notification<"u"&&Notification.requestPermission?await Notification.requestPermission()==="granted"?(console.log("通知权限已授予"),!0):(console.warn("通知权限被拒绝"),!1):(console.warn("浏览器不支持通知权限请求"),!1)}async function mx(){var e;try{return(e=navigator.storage)!=null&&e.persist?await navigator.storage.persist():!1}catch(t){return console.warn("请求持久性存储失败:",t),!1}}const fu="Classworks_settings",jm={"server.domain":"https://kv-service.houlang.cloud","server.siteKey":""},Cr={"device.uuid":{type:"string",default:"00000000-0000-4000-8000-000000000000",description:"设备唯一标识符",icon:"mdi-identifier"},"storage.persistOnLoad":{type:"boolean",default:!0,description:"是否在页面加载时自动请求持久性存储",icon:"mdi-database-sync"},"display.emptySubjectDisplay":{type:"string",default:"card",validate:e=>["card","button"].includes(e),description:"空科目的显示方式",icon:"mdi-card-outline"},"hitokoto.enabled":{type:"boolean",default:!0,description:"启用一言",icon:"mdi-comment-quote"},"hitokoto.refreshInterval":{type:"number",default:300,description:"刷新时间(秒,0为不自动刷新)",icon:"mdi-timer-refresh"},"display.dynamicSort":{type:"boolean",default:!0,description:"是否启用动态排序",icon:"mdi-sort-variant"},"display.showRandomButton":{type:"boolean",default:!1,description:"是否显示随机点人按钮",icon:"mdi-shuffle-variant"},"display.showFullscreenButton":{type:"boolean",default:!0,description:"是否显示全屏按钮",icon:"mdi-fullscreen"},"display.cardHoverEffect":{type:"boolean",default:!0,description:"是否启用卡片悬浮效果",icon:"mdi-gesture-tap"},"display.enhancedTouchMode":{type:"boolean",default:!0,description:"是否启用增强触摸模式",icon:"mdi-gesture-tap-button"},"display.showAntiScreenBurnCard":{type:"boolean",default:!1,description:"是否显示防烧屏忽悠卡片",icon:"mdi-monitor-shimmer"},"display.showListCard":{type:"boolean",default:!0,description:"是否显示列表卡片",icon:"mdi-list-box"},"display.showExamScheduleButton":{type:"boolean",default:!0,description:"是否显示考试看板",icon:"mdi-calendar-check"},"display.showQuickTools":{type:"boolean",default:!0,description:"是否显示快捷键盘",icon:"mdi-dialpad"},"display.forceDesktopMode":{type:"boolean",default:!1,description:"强制使用一体机UI模式",icon:"mdi-monitor"},"display.lateStudentsArePresent":{type:"boolean",default:!1,description:"将迟到人数算入出勤人数",icon:"mdi-clock-fast"},"server.domain":{type:"string",default:"",validate:e=>{if(!e)return!0;try{return new URL(e),!0}catch(t){return console.error("域名格式无效:",t),!1}},description:"后端服务器域名",icon:"mdi-web"},"server.classNumber":{type:"string",default:"高三八班",validate:e=>/.*/.test(e),description:"班级编号",icon:"mdi-account-group"},"server.siteKey":{type:"string",default:"",description:"网站令牌",icon:"mdi-key-chain"},"server.kvToken":{type:"string",default:"",description:"KV授权令牌",icon:"mdi-shield-key"},"server.authDomain":{type:"string",default:"https://kv.houlang.cloud",description:"授权服务器域名",icon:"mdi-shield-account",validate:e=>{if(!e)return!0;try{return new URL(e),!0}catch(t){return console.error("授权域名格式无效:",t),!1}}},"server.provider":{type:"string",default:"classworkscloud",validate:e=>["kv-local","kv-server","classworkscloud"].includes(e),description:"数据提供者",icon:"mdi-database"},"refresh.auto":{type:"boolean",default:!1,description:"是否启用自动刷新",icon:"mdi-refresh-auto"},"refresh.interval":{type:"number",default:300,validate:e=>e>=10&&e<=3600,description:"自动刷新间隔(秒)",icon:"mdi-timer-outline"},"font.size":{type:"number",default:28,validate:e=>e>=16&&e<=100,description:"字体大小",icon:"mdi-format-size"},"edit.autoSave":{type:"boolean",default:!0,description:"是否启用自动保存",icon:"mdi-content-save-outline"},"edit.blockNonTodayAutoSave":{type:"boolean",default:!0,description:"禁止自动保存非当天数据",icon:"mdi-calendar-lock"},"edit.refreshBeforeEdit":{type:"boolean",default:!0,description:"编辑前是否自动刷新",icon:"mdi-refresh"},"edit.confirmNonTodaySave":{type:"boolean",default:!0,description:"保存非当天数据需确认",icon:"mdi-calendar-alert"},"edit.blockPastDataEdit":{type:"boolean",default:!1,description:"禁止编辑过往数据",icon:"mdi-lock-clock"},"edit.autoSavePromptText":{type:"string",default:"喵?喵呜!",description:"自动保存模式提示文本",icon:"mdi-text-box-outline"},"edit.manualSavePromptText":{type:"string",default:"写完后点击上传谢谢喵",description:"手动保存模式提示文本",icon:"mdi-text-box-outline"},"developer.enabled":{type:"boolean",default:!1,description:"是否启用开发者选项",icon:"mdi-developer-board"},"developer.showDebugConfig":{type:"boolean",default:!1,description:"是否显示调试配置",icon:"mdi-bug-outline"},"developer.disableMessageLog":{type:"boolean",default:!1,description:"禁用消息日志记录",requireDeveloper:!0,icon:"mdi-message-off-outline"},"message.showSidebar":{type:"boolean",default:!0,description:"是否显示消息记录侧栏",requireDeveloper:!0,icon:"mdi-message-text-outline"},"message.maxActiveMessages":{type:"number",default:5,validate:e=>e>=1&&e<=10,description:"同时显示的最大消息数量",requireDeveloper:!0,icon:"mdi-message-badge-outline"},"message.timeout":{type:"number",default:5e3,validate:e=>e>=1e3&&e<=3e4,description:"消息自动关闭时间(毫秒)",requireDeveloper:!0,icon:"mdi-timer-sand"},"message.saveHistory":{type:"boolean",default:!0,description:"是否保存消息历史记录",requireDeveloper:!0,icon:"mdi-history"},"theme.mode":{type:"string",default:"dark",validate:e=>["light","dark"].includes(e),description:"主题模式",icon:"mdi-theme-light-dark"},"notification.singleSound":{type:"string",default:"Teams 默认.mp3",description:"单次通知铃声",icon:"mdi-bell-ring"},"notification.urgentSound":{type:"string",default:"Teams 默认通话铃.mp3",description:"持续通知铃声",icon:"mdi-bell-alert"},"randomPicker.enabled":{type:"boolean",default:!0,description:"是否启用随机点名功能",icon:"mdi-account-question"},"randomPicker.animation":{type:"boolean",default:!0,description:"是否启用随机点名动画效果",icon:"mdi-animation-play"},"randomPicker.defaultCount":{type:"number",default:1,validate:e=>e>=1&&e,description:"默认抽取人数",icon:"mdi-counter"},"randomPicker.excludeAbsent":{type:"boolean",default:!0,description:"是否排除请假学生",icon:"mdi-account-off"},"randomPicker.excludeLate":{type:"boolean",default:!1,description:"是否排除迟到学生",icon:"mdi-clock-alert"},"randomPicker.excludeExcluded":{type:"boolean",default:!0,description:"是否排除不参与学生",icon:"mdi-account-cancel"},"randomPicker.mode":{type:"string",default:"name",validate:e=>["name","number"].includes(e),description:"随机点名模式",icon:"mdi-format-list-numbered"},"randomPicker.maxNumber":{type:"number",default:60,validate:e=>e>=1&&e,description:"学号模式最大值",icon:"mdi-numeric"},"randomPicker.minNumber":{type:"number",default:1,validate:e=>e>=1&&e,description:"学号模式最小值",icon:"mdi-numeric-negative-1"},"pwa.hideInstallCard":{type:"boolean",default:!1,description:"不显示PWA安装卡片",icon:"mdi-download-off"}};class gx{constructor(){this.settingsCache=null,this.isInitialized=!1}init(){this.isInitialized||(this.loadSettings(),this.isInitialized=!0)}loadSettings(){this.settingsCache={};try{const t=typeof localStorage<"u"?localStorage.getItem(fu):null;t&&(this.settingsCache=JSON.parse(t))}catch(t){console.error("加载设置失败:",t)}for(const[t,n]of Object.entries(Cr))t in this.settingsCache||(this.settingsCache[t]=n.default);return this.settingsCache}saveSettings(){if(!(typeof localStorage>"u"))try{localStorage.setItem(fu,JSON.stringify(this.settingsCache))}catch(t){console.error("保存设置失败:",t)}}getSetting(t){this.isInitialized||this.init();const n=Cr[t];if(!n)return console.warn(`未定义的设置项: ${t}`),null;if(n.requireDeveloper&&!this.settingsCache["developer.enabled"])return n.default;if(this.settingsCache["server.provider"]==="classworkscloud"&&jm[t]!==void 0)return jm[t];const r=this.settingsCache[t];return r!==void 0?r:n.default}setSetting(t,n){this.isInitialized||this.init();const r=Cr[t];if(!r)return console.warn(`未定义的设置项: ${t}`),!1;if(r.requireDeveloper&&!this.settingsCache["developer.enabled"])return console.warn(`设置项 ${t} 需要启用开发者选项`),!1;try{const s=this.settingsCache[t];if(typeof n!==r.type&&(n=r.type==="boolean"?!!n:r.type==="number"?Number(n):String(n)),r.validate&&!r.validate(n))return console.warn(`设置项 ${t} 的值无效`),!1;this.settingsCache[t]=n,this.saveSettings(),this.logSettingsChange(t,s,n);const i=r.legacyKey;return i&&typeof localStorage<"u"&&localStorage.setItem(i,n.toString()),!0}catch(s){return console.error(`设置配置项 ${t} 失败:`,s),!1}}logSettingsChange(t,n,r){this.settingsCache["developer.enabled"]&&this.settingsCache["developer.showDebugConfig"]&&console.log(`[Settings] ${t}:`,{old:n,new:r,time:new Date().toLocaleTimeString()})}resetSetting(t){this.isInitialized||this.init();const n=Cr[t];if(!n){console.warn(`未定义的设置项: ${t}`);return}this.settingsCache[t]=n.default,this.saveSettings()}resetAllSettings(){this.settingsCache={};for(const[t,n]of Object.entries(Cr))this.settingsCache[t]=n.default;this.saveSettings()}watchSettings(t){if(typeof window>"u")return()=>{};const n=r=>{r.key===fu&&(this.settingsCache=JSON.parse(r.newValue),t(this.settingsCache))};return window.addEventListener("storage",n),()=>window.removeEventListener("storage",n)}getSettingDefinition(t){return Cr[t]||null}exportSettingsAsKeyValue(){this.isInitialized||this.init();const t={};for(const n in Cr)t[n]=this.getSetting(n);return t}}const mr=new gx;typeof window<"u"&&mr.init();const zf=e=>mr.getSetting(e),vx=(e,t)=>mr.setSetting(e,t),yx=e=>mr.resetSetting(e),_x=()=>mr.resetAllSettings(),bx=e=>mr.watchSettings(e),Sx=e=>mr.getSettingDefinition(e),Ex=()=>mr.exportSettingsAsKeyValue(),S4=Object.freeze(Object.defineProperty({__proto__:null,SettingsManager:mr,exportSettingsAsKeyValue:Ex,getSetting:zf,getSettingDefinition:Sx,requestNotificationPermission:px,requestPersistentStorage:mx,resetAllSettings:_x,resetSetting:yx,setSetting:vx,settingsDefinitions:Cr,watchSettings:bx},Symbol.toStringTag,{value:"Module"}));class wx{constructor(){this.logs=[]}async addLog(t){return this.logs.push(t),this.logs.length>100&&this.logs.shift(),!0}async getLogs(t=20){return this.logs.slice(-t).reverse()}}const Ja=new wx,Ln=[];let Za=null,Pn=null;const no={SUCCESS:"success",ERROR:"error",INFO:"info",WARNING:"warning"},Cx={timeout:3e3,showSnackbar:!0,addToLog:!0};async function Pa(e,t,n="",r={}){const s={...Cx,...r},i={id:Date.now()+Math.random(),type:e,title:t,content:n.substring(0,500),timestamp:new Date};if(s.addToLog)try{for(await Ja.addLog(i),Ln.unshift(i);Ln.length>zf("message.maxActiveMessages");)Ln.pop();Pn==null||Pn(Ln)}catch(o){console.error("保存日志失败:",o)}return s.showSnackbar&&(Za==null||Za(i)),i}function Tx(e,t){let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}}const Ys={install:e=>{e.config.globalProperties.$message={success:(t,n,r)=>Pa(no.SUCCESS,t,n,r),error:(t,n,r)=>Pa(no.ERROR,t,n,r),info:(t,n,r)=>Pa(no.INFO,t,n,r),warning:(t,n,r)=>Pa(no.WARNING,t,n,r)}},onSnackbar:e=>{Za=e},onLog:e=>{Pn=e},getMessages:async()=>{try{return await Ja.getLogs()}catch(e){return console.error("获取日志失败:",e),[...Ln]}},clearMessages:async()=>{try{await Ja.clearLogs(),Ln.length=0,Pn==null||Pn(Ln)}catch(e){console.error("清除日志失败:",e)}},MessageType:no,markAsRead:()=>{},deleteMessage:async e=>{try{await Ja.deleteLog(e);const t=Ln.findIndex(n=>n.id===e);t!==-1&&Ln.splice(t,1),Pn==null||Pn(Ln)}catch(t){console.error("删除消息失败:",t)}},getUnreadCount:()=>0,debounce:Tx},Lb=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Fi=le({border:[Boolean,Number,String]},"border");function $i(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();return{borderClasses:j(()=>{const r=e.border;return r===!0||r===""?`${t}--border`:typeof r=="string"||r===0?String(r).split(" ").map(s=>`border-${s}`):[]})}}const kx=[null,"default","comfortable","compact"],Ms=le({density:{type:String,default:"default",validator:e=>kx.includes(e)}},"density");function Bi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();return{densityClasses:ee(()=>`${t}--density-${e.density}`)}}const sa=le({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function ia(e){return{elevationClasses:ee(()=>{const n=Je(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const gr=le({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function vr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();return{roundedClasses:j(()=>{const r=Je(e)?e.value:e.rounded,s=Je(e)?!1:e.tile,i=[];if(s||r===!1)i.push("rounded-0");else if(r===!0||r==="")i.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))i.push(`rounded-${o}`);return i})}}const Mt=le({tag:{type:[String,Object,Function],default:"div"}},"tag");function qf(e){return Lf(()=>{const{class:t,style:n}=Ix(e);return{colorClasses:t,colorStyles:n}})}function bi(e){const{colorClasses:t,colorStyles:n}=qf(()=>({text:bt(e)}));return{textColorClasses:t,textColorStyles:n}}function li(e){const{colorClasses:t,colorStyles:n}=qf(()=>({background:bt(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}function Ix(e){const t=bt(e),n=[],r={};if(t.background)if(cd(t.background)){if(r.backgroundColor=t.background,!t.text&&yT(t.background)){const s=Fn(t.background);if(s.a==null||s.a===1){const i=eb(s);r.color=i,r.caretColor=i}}}else n.push(`bg-${t.background}`);return t.text&&(cd(t.text)?(r.color=t.text,r.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:r}}const xx=["elevated","flat","tonal","outlined","text","plain"];function oa(e,t){return se(Ze,null,[e&&se("span",{key:"overlay",class:Pe(`${t}__overlay`)},null),se("span",{key:"underlay",class:Pe(`${t}__underlay`)},null)])}const Ps=le({color:String,variant:{type:String,default:"elevated",validator:e=>xx.includes(e)}},"variant");function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();const n=ee(()=>{const{variant:i}=bt(e);return`${t}--variant-${i}`}),{colorClasses:r,colorStyles:s}=qf(()=>{const{variant:i,color:o}=bt(e);return{[["elevated","flat"].includes(i)?"background":"text"]:o}});return{colorClasses:r,colorStyles:s,variantClasses:n}}const Nb=le({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...Fi(),...ct(),...Ms(),...sa(),...gr(),...Mt(),...nn(),...Ps()},"VBtnGroup"),zm=De()({name:"VBtnGroup",props:Nb(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=mn(e),{densityClasses:s}=Bi(e),{borderClasses:i}=$i(e),{elevationClasses:o}=ia(e),{roundedClasses:a}=vr(e);vl({VBtn:{height:ee(()=>e.direction==="horizontal"?"auto":null),baseColor:ee(()=>e.baseColor),color:ee(()=>e.color),density:ee(()=>e.density),flat:!0,variant:ee(()=>e.variant)}}),tt(()=>B(e.tag,{class:Pe(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},r.value,i.value,s.value,o.value,a.value,e.class]),style:Xe(e.style)},n))}}),Rx=le({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Ax=le({value:null,disabled:Boolean,selectedClass:String},"group-item");function Mx(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=mt("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const s=Zy();At(Symbol.for(`${t.description}:id`),s);const i=Le(t,null);if(!i){if(!n)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=ee(()=>e.value),a=j(()=>!!(i.disabled.value||e.disabled));function c(){i==null||i.register({id:s,value:o,disabled:a},r)}function l(){i==null||i.unregister(s)}c(),Tn(()=>l());const d=j(()=>i.isSelected(s)),u=j(()=>i.items.value[0].id===s),f=j(()=>i.items.value[i.items.value.length-1].id===s),h=j(()=>d.value&&[i.selectedClass.value,e.selectedClass]);return Se(d,p=>{r.emit("group:selected",{value:p})},{flush:"sync"}),{id:s,isSelected:d,isFirst:u,isLast:f,toggle:()=>i.select(s,!d.value),select:p=>i.select(s,p),selectedClass:h,value:o,disabled:a,group:i,register:c,unregister:l}}function Px(e,t){let n=!1;const r=pt([]),s=Zn(e,"modelValue",[],f=>f===void 0?[]:Db(r,f===null?[null]:Of(f)),f=>{const h=Lx(r,f);return e.multiple?h:h[0]}),i=mt("useGroup");function o(f,h){const p=f,m=Symbol.for(`${t.description}:id`),g=Zs(m,i==null?void 0:i.vnode).indexOf(h);Ut(p.value)===void 0&&(p.value=g,p.useIndexAsValue=!0),g>-1?r.splice(g,0,p):r.push(p)}function a(f){if(n)return;c();const h=r.findIndex(p=>p.id===f);r.splice(h,1)}function c(){const f=r.find(h=>!h.disabled);f&&e.mandatory==="force"&&!s.value.length&&(s.value=[f.id])}zr(()=>{c()}),Tn(()=>{n=!0}),wf(()=>{for(let f=0;fm.id===f);if(!(h&&(p!=null&&p.disabled)))if(e.multiple){const m=s.value.slice(),v=m.findIndex(y=>y===f),g=~v;if(h=h??!g,g&&e.mandatory&&m.length<=1||!g&&e.max!=null&&m.length+1>e.max)return;v<0&&h?m.push(f):v>=0&&!h&&m.splice(v,1),s.value=m}else{const m=s.value.includes(f);if(e.mandatory&&m||!m&&!h)return;s.value=h??!m?[f]:[]}}function d(f){if(e.multiple,s.value.length){const h=s.value[0],p=r.findIndex(g=>g.id===h);let m=(p+f)%r.length,v=r[m];for(;v.disabled&&m!==p;)m=(m+f)%r.length,v=r[m];if(v.disabled)return;s.value=[r[m].id]}else{const h=r.find(p=>!p.disabled);h&&(s.value=[h.id])}}const u={register:o,unregister:a,selected:s,select:l,disabled:ee(()=>e.disabled),prev:()=>d(r.length-1),next:()=>d(1),isSelected:f=>s.value.includes(f),selectedClass:ee(()=>e.selectedClass),items:ee(()=>r),getItemIndex:f=>Ox(r,f)};return At(t,u),u}function Ox(e,t){const n=Db(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function Db(e,t){const n=[];return t.forEach(r=>{const s=e.find(o=>gs(r,o.value)),i=e[r];(s==null?void 0:s.value)!==void 0?n.push(s.id):i!=null&&i.useIndexAsValue&&n.push(i.id)}),n}function Lx(e,t){const n=[];return t.forEach(r=>{const s=e.findIndex(i=>i.id===r);if(~s){const i=e[s];n.push(i.value!==void 0?i.value:s)}}),n}const Fb=Symbol.for("vuetify:v-btn-toggle"),Nx=le({...Nb(),...Rx()},"VBtnToggle"),E4=De()({name:"VBtnToggle",props:Nx(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:s,prev:i,select:o,selected:a}=Px(e,Fb);return tt(()=>{const c=zm.filterProps(e);return B(zm,Qe({class:["v-btn-toggle",e.class]},c,{style:e.style}),{default:()=>{var l;return[(l=n.default)==null?void 0:l.call(n,{isSelected:r,next:s,prev:i,select:o,selected:a})]}})}),{next:s,prev:i,select:o}}}),Dx=le({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),un=De(!1)({name:"VDefaultsProvider",props:Dx(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:s,reset:i,root:o,scoped:a}=_f(e);return vl(r,{reset:i,root:o,scoped:a,disabled:s}),()=>{var c;return(c=n.default)==null?void 0:c.call(n)}}}),Fx=["x-small","small","default","large","x-large"],wl=le({size:{type:[String,Number],default:"default"}},"size");function Cl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();return Lf(()=>{const n=e.size;let r,s;return Ic(Fx,n)?r=`${t}--size-${n}`:n&&(s={width:me(n),height:me(n)}),{sizeClasses:r,sizeStyles:s}})}const $x=le({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Et,opacity:[String,Number],...ct(),...wl(),...Mt({tag:"i"}),...nn()},"VIcon"),Hn=De()({name:"VIcon",props:$x(),setup(e,t){let{attrs:n,slots:r}=t;const s=be(),{themeClasses:i}=pb(),{iconData:o}=FT(()=>s.value||e.icon),{sizeClasses:a}=Cl(e),{textColorClasses:c,textColorStyles:l}=bi(()=>e.color);return tt(()=>{var f,h;const d=(f=r.default)==null?void 0:f.call(r);d&&(s.value=(h=j_(d).filter(p=>p.type===ea&&p.children&&typeof p.children=="string")[0])==null?void 0:h.children);const u=!!(n.onClick||n.onClickOnce);return B(o.value.component,{tag:e.tag,icon:o.value.icon,class:Pe(["v-icon","notranslate",i.value,a.value,c.value,{"v-icon--clickable":u,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:Xe([{"--v-icon-opacity":e.opacity},a.value?void 0:{fontSize:me(e.size),height:me(e.size),width:me(e.size)},l.value,e.style]),role:u?"button":void 0,"aria-hidden":!u,tabindex:u?e.disabled?-1:0:void 0},{default:()=>[d]})}),{}}});function $b(e,t){const n=we(),r=be(!1);if(Af){const s=new IntersectionObserver(i=>{r.value=!!i.find(o=>o.isIntersecting)},t);Ct(()=>{s.disconnect()}),Se(n,(i,o)=>{o&&(s.unobserve(o),r.value=!1),i&&s.observe(i)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const Bx=le({bgColor:String,color:String,indeterminate:[Boolean,String],rounded:Boolean,modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ct(),...wl(),...Mt({tag:"div"}),...nn()},"VProgressCircular"),Hx=De()({name:"VProgressCircular",props:Bx(),setup(e,t){let{slots:n}=t;const r=20,s=2*Math.PI*r,i=we(),{themeClasses:o}=mn(e),{sizeClasses:a,sizeStyles:c}=Cl(e),{textColorClasses:l,textColorStyles:d}=bi(()=>e.color),{textColorClasses:u,textColorStyles:f}=bi(()=>e.bgColor),{intersectionRef:h,isIntersecting:p}=$b(),{resizeRef:m,contentRect:v}=Uf(),g=ee(()=>or(parseFloat(e.modelValue),0,100)),y=ee(()=>Number(e.width)),_=ee(()=>c.value?Number(e.size):v.value?v.value.width:Math.max(y.value,32)),S=ee(()=>r/(1-y.value/_.value)*2),M=ee(()=>y.value/_.value*S.value),R=ee(()=>{const C=(100-g.value)/100*s;return e.rounded&&g.value>0&&g.value<100?me(Math.min(s-.01,C+M.value)):me(C)}),E=j(()=>{const C=Number(e.rotate);return e.rounded?C+M.value/2/s*360:C});return hn(()=>{h.value=i.value,m.value=i.value}),tt(()=>B(e.tag,{ref:i,class:Pe(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":p.value,"v-progress-circular--disable-shrink":e.indeterminate&&(e.indeterminate==="disable-shrink"||Oo())},o.value,a.value,l.value,e.class]),style:Xe([c.value,d.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:g.value},{default:()=>[se("svg",{style:{transform:`rotate(calc(-90deg + ${E.value}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${S.value} ${S.value}`},[se("circle",{class:Pe(["v-progress-circular__underlay",u.value]),style:Xe(f.value),fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":M.value,"stroke-dasharray":s,"stroke-dashoffset":0},null),se("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":M.value,"stroke-dasharray":s,"stroke-dashoffset":R.value,"stroke-linecap":e.rounded?"round":void 0},null)]),n.default&&se("div",{class:"v-progress-circular__content"},[n.default({value:g.value})])]})),{}}}),Hi=le({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Vi(e){return{dimensionStyles:j(()=>{const n={},r=me(e.height),s=me(e.maxHeight),i=me(e.maxWidth),o=me(e.minHeight),a=me(e.minWidth),c=me(e.width);return r!=null&&(n.height=r),s!=null&&(n.maxHeight=s),i!=null&&(n.maxWidth=i),o!=null&&(n.minHeight=o),a!=null&&(n.minWidth=a),c!=null&&(n.width=c),n})}}const qm={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Tl=le({location:String},"location");function Gf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=na();return{locationStyles:j(()=>{if(!e.location)return{};const{side:i,align:o}=ad(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function a(l){return n?n(l):0}const c={};return i!=="center"&&(t?c[qm[i]]=`calc(100% - ${a(i)}px)`:c[i]=0),o!=="center"?t?c[qm[o]]=`calc(100% - ${a(o)}px)`:c[o]=0:(i==="center"?c.top=c.left="50%":c[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",c.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),c})}}const Vx=le({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function Ux(e,t){const n=ee(()=>!!e.chunkCount||!!e.chunkWidth),r=j(()=>{const a=bt(t);if(!a)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const c=Number(e.chunkCount);return(a-Number(e.chunkGap)*(c-1))/c}),s=ee(()=>Number(e.chunkGap)),i=j(()=>{if(!n.value)return{};const a=me(s.value),c=me(r.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${c}, transparent ${c}, transparent)`,maskSize:`calc(${c} + ${a}) 100%`}});function o(a){const c=bt(t);if(!c)return a;const l=100*s.value/c,d=100*(r.value+s.value)/c,u=Math.floor((a+l)/d);return or(0,u*d-l/2,100)}return{hasChunks:n,chunksMaskStyles:i,snapValueToChunk:o}}const Wx=le({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Vx(),...ct(),...Tl({location:"top"}),...gr(),...Mt(),...nn()},"VProgressLinear"),Bb=De()({name:"VProgressLinear",props:Wx(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=we(),s=Zn(e,"modelValue"),{isRtl:i,rtlClasses:o}=na(),{themeClasses:a}=mn(e),{locationStyles:c}=Gf(e),{textColorClasses:l,textColorStyles:d}=bi(()=>e.color),{backgroundColorClasses:u,backgroundColorStyles:f}=li(()=>e.bgColor||e.color),{backgroundColorClasses:h,backgroundColorStyles:p}=li(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:m,backgroundColorStyles:v}=li(()=>e.color),{roundedClasses:g}=vr(e),{intersectionRef:y,isIntersecting:_}=$b(),S=j(()=>parseFloat(e.max)),M=j(()=>parseFloat(e.height)),R=j(()=>or(parseFloat(e.bufferValue)/S.value*100,0,100)),E=j(()=>or(parseFloat(s.value)/S.value*100,0,100)),C=j(()=>i.value!==e.reverse),I=j(()=>e.indeterminate?"fade-transition":"slide-x-transition"),A=be(0),{hasChunks:O,chunksMaskStyles:T,snapValueToChunk:P}=Ux(e,A);Di(O,()=>{const{resizeRef:q}=Uf(D=>A.value=D[0].contentRect.width);hn(()=>q.value=r.value)});const N=j(()=>O.value?P(R.value):R.value),z=j(()=>O.value?P(E.value):E.value);function X(q){if(!y.value)return;const{left:D,right:re,width:U}=y.value.getBoundingClientRect(),ie=C.value?U-q.clientX+(re-U):q.clientX-D;s.value=Math.round(ie/U*S.value)}return hn(()=>{y.value=r.value}),tt(()=>B(e.tag,{ref:r,class:Pe(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&_.value,"v-progress-linear--reverse":C.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},g.value,a.value,o.value,e.class]),style:Xe([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?me(M.value):0,"--v-progress-linear-height":me(M.value),...e.absolute?c.value:{}},T.value,e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(s.value),S.value),onClick:e.clickable&&X},{default:()=>[e.stream&&se("div",{key:"stream",class:Pe(["v-progress-linear__stream",l.value]),style:{...d.value,[C.value?"left":"right"]:me(-M.value),borderTop:`${me(M.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${me(M.value/4)})`,width:me(100-R.value,"%"),"--v-progress-linear-stream-to":me(M.value*(C.value?1:-1))}},null),se("div",{class:Pe(["v-progress-linear__background",u.value]),style:Xe([f.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),se("div",{class:Pe(["v-progress-linear__buffer",h.value]),style:Xe([p.value,{opacity:parseFloat(e.bufferOpacity),width:me(N.value,"%")}])},null),B(Br,{name:I.value},{default:()=>[e.indeterminate?se("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(q=>se("div",{key:q,class:Pe(["v-progress-linear__indeterminate",q,m.value]),style:Xe(v.value)},null))]):se("div",{class:Pe(["v-progress-linear__determinate",m.value]),style:Xe([v.value,{width:me(z.value,"%")}])},null)]}),n.default&&se("div",{class:"v-progress-linear__content"},[n.default({value:E.value,buffer:R.value})])]})),{}}}),Hb=le({loading:[Boolean,String]},"loader");function Vb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();return{loaderClasses:ee(()=>({[`${t}--loading`]:e.loading}))}}function jx(e,t){var r;let{slots:n}=t;return se("div",{class:Pe(`${e.name}__loader`)},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||B(Bb,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const zx=["static","relative","fixed","absolute","sticky"],Kf=le({position:{type:String,validator:e=>zx.includes(e)}},"position");function Yf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr();return{positionClasses:ee(()=>e.position?`${t}--${e.position}`:void 0)}}function qx(){const e=mt("useRoute");return j(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function Gx(){var e,t;return(t=(e=mt("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function Xf(e,t){var u,f;const n=o_("RouterLink"),r=ee(()=>!!(e.href||e.to)),s=j(()=>(r==null?void 0:r.value)||Yp(t,"click")||Yp(e,"click"));if(typeof n=="string"||!("useLink"in n)){const h=ee(()=>e.href);return{isLink:r,isRouterLink:ee(()=>!1),isClickable:s,href:h,linkProps:pt({href:h})}}const i=n.useLink({to:ee(()=>e.to||""),replace:ee(()=>e.replace)}),o=j(()=>e.to?i:void 0),a=qx(),c=j(()=>{var h,p,m;return o.value?e.exact?a.value?((m=o.value.isExactActive)==null?void 0:m.value)&&gs(o.value.route.value.query,a.value.query):((p=o.value.isExactActive)==null?void 0:p.value)??!1:((h=o.value.isActive)==null?void 0:h.value)??!1:!1}),l=j(()=>{var h;return e.to?(h=o.value)==null?void 0:h.route.value.href:e.href});return{isLink:r,isRouterLink:ee(()=>!!e.to),isClickable:s,isActive:c,route:(u=o.value)==null?void 0:u.route,navigate:(f=o.value)==null?void 0:f.navigate,href:l,linkProps:pt({href:l,"aria-current":ee(()=>c.value?"page":void 0),"aria-disabled":ee(()=>e.disabled&&r.value?"true":void 0),tabindex:ee(()=>e.disabled&&r.value?"-1":void 0)})}}const Jf=le({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let hu=!1;function Kx(e,t){let n=!1,r,s;et&&(e!=null&&e.beforeEach)&&(vt(()=>{window.addEventListener("popstate",i),r=e.beforeEach((o,a,c)=>{hu?n?t(c):c():setTimeout(()=>n?t(c):c()),hu=!0}),s=e==null?void 0:e.afterEach(()=>{hu=!1})}),Ct(()=>{window.removeEventListener("popstate",i),r==null||r(),s==null||s()}));function i(o){var a;(a=o.state)!=null&&a.replaced||(n=!0,setTimeout(()=>n=!1))}}function Yx(e,t){Se(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n!=null&&t&&vt(()=>{t(n)})},{immediate:!0})}const yd=Symbol("rippleStop"),Xx=80;function Gm(e,t){e.style.transform=t,e.style.webkitTransform=t}function _d(e){return e.constructor.name==="TouchEvent"}function Ub(e){return e.constructor.name==="KeyboardEvent"}const Jx=function(e,t){var u;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,s=0;if(!Ub(e)){const f=t.getBoundingClientRect(),h=_d(e)?e.touches[e.touches.length-1]:e;r=h.clientX-f.left,s=h.clientY-f.top}let i=0,o=.3;(u=t._ripple)!=null&&u.circle?(o=.15,i=t.clientWidth/2,i=n.center?i:i+Math.sqrt((r-i)**2+(s-i)**2)/4):i=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-i*2)/2}px`,c=`${(t.clientHeight-i*2)/2}px`,l=n.center?a:`${r-i}px`,d=n.center?c:`${s-i}px`;return{radius:i,scale:o,x:l,y:d,centerX:a,centerY:c}},Oc={show(e,t){var h;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((h=t==null?void 0:t._ripple)!=null&&h.enabled))return;const r=document.createElement("span"),s=document.createElement("span");r.appendChild(s),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:i,scale:o,x:a,y:c,centerX:l,centerY:d}=Jx(e,t,n),u=`${i*2}px`;s.className="v-ripple__animation",s.style.width=u,s.style.height=u,t.appendChild(r);const f=window.getComputedStyle(t);f&&f.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),Gm(s,`translate(${a}, ${c}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),Gm(s,`translate(${l}, ${d}) scale3d(1,1,1)`)})})},hide(e){var i;if(!((i=e==null?void 0:e._ripple)!=null&&i.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=Array.from(t).findLast(o=>!o.dataset.isHiding);if(n)n.dataset.isHiding="true";else return;const r=performance.now()-Number(n.dataset.activated),s=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function Wb(e){return typeof e>"u"||!!e}function Ho(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[yd])){if(e[yd]=!0,_d(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||Ub(e),n._ripple.class&&(t.class=n._ripple.class),_d(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Oc.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},Xx)}else Oc.show(e,n,t)}}function Lc(e){e[yd]=!0}function Zt(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Zt(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Oc.hide(t)}}function jb(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Vo=!1;function Zx(e,t){!Vo&&t.includes(e.key)&&(Vo=!0,Ho(e))}function zb(e){Vo=!1,Zt(e)}function qb(e){Vo&&(Vo=!1,Zt(e))}function Gb(e,t,n){const{value:r,modifiers:s}=t,i=Wb(r);i||Oc.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=i,e._ripple.centered=s.center,e._ripple.circle=s.circle;const o=id(r)?r:{};o.class&&(e._ripple.class=o.class);const a=o.keys??["Enter","Space"];if(e._ripple.keyDownHandler=c=>Zx(c,a),i&&!n){if(s.stop){e.addEventListener("touchstart",Lc,{passive:!0}),e.addEventListener("mousedown",Lc);return}e.addEventListener("touchstart",Ho,{passive:!0}),e.addEventListener("touchend",Zt,{passive:!0}),e.addEventListener("touchmove",jb,{passive:!0}),e.addEventListener("touchcancel",Zt),e.addEventListener("mousedown",Ho),e.addEventListener("mouseup",Zt),e.addEventListener("mouseleave",Zt),e.addEventListener("keydown",e._ripple.keyDownHandler),e.addEventListener("keyup",zb),e.addEventListener("blur",qb),e.addEventListener("dragstart",Zt,{passive:!0})}else!i&&n&&Kb(e)}function Kb(e){var t;e.removeEventListener("touchstart",Lc),e.removeEventListener("mousedown",Lc),e.removeEventListener("touchstart",Ho),e.removeEventListener("touchend",Zt),e.removeEventListener("touchmove",jb),e.removeEventListener("touchcancel",Zt),e.removeEventListener("mousedown",Ho),e.removeEventListener("mouseup",Zt),e.removeEventListener("mouseleave",Zt),(t=e._ripple)!=null&&t.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",zb),e.removeEventListener("blur",qb),e.removeEventListener("dragstart",Zt)}function Qx(e,t){Gb(e,t,!1)}function eR(e){Kb(e),delete e._ripple}function tR(e,t){if(t.value===t.oldValue)return;const n=Wb(t.oldValue);Gb(e,t,n)}const Uo={mounted:Qx,unmounted:eR,updated:tR},nR=le({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:Fb},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Et,appendIcon:Et,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...Fi(),...ct(),...Ms(),...Hi(),...sa(),...Ax(),...Hb(),...Tl(),...Kf(),...gr(),...Jf(),...wl(),...Mt({tag:"button"}),...nn(),...Ps({variant:"elevated"})},"VBtn"),Yb=De()({name:"VBtn",props:nR(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=mn(e),{borderClasses:i}=$i(e),{densityClasses:o}=Bi(e),{dimensionStyles:a}=Vi(e),{elevationClasses:c}=ia(e),{loaderClasses:l}=Vb(e),{locationStyles:d}=Gf(e),{positionClasses:u}=Yf(e),{roundedClasses:f}=vr(e),{sizeClasses:h,sizeStyles:p}=Cl(e),m=Mx(e,e.symbol,!1),v=Xf(e,n),g=j(()=>{var O;return e.active!==void 0?e.active:v.isRouterLink.value?(O=v.isActive)==null?void 0:O.value:m==null?void 0:m.isSelected.value}),y=ee(()=>g.value?e.activeColor??e.color:e.color),_=j(()=>{var T,P;return{color:(m==null?void 0:m.isSelected.value)&&(!v.isLink.value||((T=v.isActive)==null?void 0:T.value))||!m||((P=v.isActive)==null?void 0:P.value)?y.value??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:S,colorStyles:M,variantClasses:R}=aa(_),E=j(()=>(m==null?void 0:m.disabled.value)||e.disabled),C=ee(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),I=j(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function A(O){var T;E.value||v.isLink.value&&(O.metaKey||O.ctrlKey||O.shiftKey||O.button!==0||n.target==="_blank")||(v.isRouterLink.value?(T=v.navigate)==null||T.call(v,O):m==null||m.toggle())}return Yx(v,m==null?void 0:m.select),tt(()=>{const O=v.isLink.value?"a":e.tag,T=!!(e.prependIcon||r.prepend),P=!!(e.appendIcon||r.append),N=!!(e.icon&&e.icon!==!0);return ws(B(O,Qe(v.linkProps,{type:O==="a"?void 0:"button",class:["v-btn",m==null?void 0:m.selectedClass.value,{"v-btn--active":g.value,"v-btn--block":e.block,"v-btn--disabled":E.value,"v-btn--elevated":C.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},e.spaced?["v-btn--spaced",`v-btn--spaced-${e.spaced}`]:[],s.value,i.value,S.value,o.value,c.value,l.value,u.value,f.value,h.value,R.value,e.class],style:[M.value,a.value,d.value,p.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:E.value&&O!=="a"||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:A,value:I.value}),{default:()=>{var z;return[oa(!0,"v-btn"),!e.icon&&T&&se("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?B(un,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):B(Hn,{key:"prepend-icon",icon:e.prependIcon},null)]),se("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&N?B(Hn,{key:"content-icon",icon:e.icon},null):B(un,{key:"content-defaults",disabled:!N,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var X;return[((X=r.default)==null?void 0:X.call(r))??bn(e.text)]}})]),!e.icon&&P&&se("span",{key:"append",class:"v-btn__append"},[r.append?B(un,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):B(Hn,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&se("span",{key:"loader",class:"v-btn__loader"},[((z=r.loader)==null?void 0:z.call(r))??B(Hx,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[Uo,!E.value&&e.ripple,"",{center:!!e.icon}]])}),{group:m}}});function pu(e,t){return{x:e.x+t.x,y:e.y+t.y}}function rR(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Km(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,s=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,i=n==="top"?0:n==="bottom"?t.height:n;return pu({x:s,y:i},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,s=n==="left"?0:n==="right"?t.width:n,i=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return pu({x:s,y:i},t)}return pu({x:t.width/2,y:t.height/2},t)}const Xb={static:oR,connected:cR},sR=le({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in Xb},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array],stickToTarget:Boolean,viewportMargin:{type:[Number,String],default:12}},"VOverlay-location-strategies");function iR(e,t){const n=we({}),r=we();et&&Di(()=>!!(t.isActive.value&&e.locationStrategy),a=>{var c,l;Se(()=>e.locationStrategy,a),Ct(()=>{window.removeEventListener("resize",s),visualViewport==null||visualViewport.removeEventListener("resize",i),visualViewport==null||visualViewport.removeEventListener("scroll",o),r.value=void 0}),window.addEventListener("resize",s,{passive:!0}),visualViewport==null||visualViewport.addEventListener("resize",i,{passive:!0}),visualViewport==null||visualViewport.addEventListener("scroll",o,{passive:!0}),typeof e.locationStrategy=="function"?r.value=(c=e.locationStrategy(t,e,n))==null?void 0:c.updateLocation:r.value=(l=Xb[e.locationStrategy](t,e,n))==null?void 0:l.updateLocation});function s(a){var c;(c=r.value)==null||c.call(r,a)}function i(a){var c;(c=r.value)==null||c.call(r,a)}function o(a){var c;(c=r.value)==null||c.call(r,a)}return{contentStyles:n,updateLocation:r}}function oR(){}function aR(e,t){const n=Y_(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function cR(e,t,n){(Array.isArray(e.target.value)||NT(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:s,preferredOrigin:i}=Lf(()=>{const g=ad(t.location,e.isRtl.value),y=t.origin==="overlap"?g:t.origin==="auto"?ru(g):ad(t.origin,e.isRtl.value);return g.side===y.side&&g.align===su(y).align?{preferredAnchor:Jp(g),preferredOrigin:Jp(y)}:{preferredAnchor:g,preferredOrigin:y}}),[o,a,c,l]=["minWidth","minHeight","maxWidth","maxHeight"].map(g=>j(()=>{const y=parseFloat(t[g]);return isNaN(y)?1/0:y})),d=j(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const g=t.offset.split(" ").map(parseFloat);return g.length<2&&g.push(0),g}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let u=!1,f=-1;const h=new YC(4),p=new ResizeObserver(()=>{if(!u)return;if(requestAnimationFrame(y=>{y!==f&&h.clear(),requestAnimationFrame(_=>{f=_})}),h.isFull){const y=h.values();if(gs(y.at(-1),y.at(-3))&&!gs(y.at(-1),y.at(-2)))return}const g=v();g&&h.push(g.flipped)});let m=new ln({x:0,y:0,width:0,height:0});Se(e.target,(g,y)=>{y&&!Array.isArray(y)&&p.unobserve(y),Array.isArray(g)?gs(g,y)||v():g&&p.observe(g)},{immediate:!0}),Se(e.contentEl,(g,y)=>{y&&p.unobserve(y),g&&p.observe(g)},{immediate:!0}),Ct(()=>{p.disconnect()});function v(){if(u=!1,requestAnimationFrame(()=>u=!0),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(m=K_(e.target.value));const g=aR(e.contentEl.value,e.isRtl.value),y=Rc(e.contentEl.value),_=Number(t.viewportMargin);y.length||(y.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(g.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),g.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const S=y.reduce((P,N)=>{const z=nT(N);return P?new ln({x:Math.max(P.left,z.left),y:Math.max(P.top,z.top),width:Math.min(P.right,z.right)-Math.max(P.left,z.left),height:Math.min(P.bottom,z.bottom)-Math.max(P.top,z.top)}):z},void 0);t.stickToTarget?(S.x+=Math.min(_,m.x),S.y+=Math.min(_,m.y),S.width=Math.max(S.width-_*2,m.x+m.width-_),S.height=Math.max(S.height-_*2,m.y+m.height-_)):(S.x+=_,S.y+=_,S.width-=_*2,S.height-=_*2);let M={anchor:s.value,origin:i.value};function R(P){const N=new ln(g),z=Km(P.anchor,m),X=Km(P.origin,N);let{x:q,y:D}=rR(z,X);switch(P.anchor.side){case"top":D-=d.value[0];break;case"bottom":D+=d.value[0];break;case"left":q-=d.value[0];break;case"right":q+=d.value[0];break}switch(P.anchor.align){case"top":D-=d.value[1];break;case"bottom":D+=d.value[1];break;case"left":q-=d.value[1];break;case"right":q+=d.value[1];break}return N.x+=q,N.y+=D,N.width=Math.min(N.width,c.value),N.height=Math.min(N.height,l.value),{overflows:Qp(N,S),x:q,y:D}}let E=0,C=0;const I={x:0,y:0},A={x:!1,y:!1};let O=-1;for(;!(O++>10);){const{x:P,y:N,overflows:z}=R(M);E+=P,C+=N,g.x+=P,g.y+=N;{const X=Zp(M.anchor),q=z.x.before||z.x.after,D=z.y.before||z.y.after;let re=!1;if(["x","y"].forEach(U=>{if(U==="x"&&q&&!A.x||U==="y"&&D&&!A.y){const ie={anchor:{...M.anchor},origin:{...M.origin}},ae=U==="x"?X==="y"?su:ru:X==="y"?ru:su;ie.anchor=ae(ie.anchor),ie.origin=ae(ie.origin);const{overflows:ue}=R(ie);(ue[U].before<=z[U].before&&ue[U].after<=z[U].after||ue[U].before+ue[U].after<(z[U].before+z[U].after)/2)&&(M=ie,re=A[U]=!0)}}),re)continue}z.x.before&&(E+=z.x.before,g.x+=z.x.before),z.x.after&&(E-=z.x.after,g.x-=z.x.after),z.y.before&&(C+=z.y.before,g.y+=z.y.before),z.y.after&&(C-=z.y.after,g.y-=z.y.after);{const X=Qp(g,S);I.x=S.width-X.x.before-X.x.after,I.y=S.height-X.y.before-X.y.after,E+=X.x.before,g.x+=X.x.before,C+=X.y.before,g.y+=X.y.before}break}const T=Zp(M.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${M.anchor.side} ${M.anchor.align}`,transformOrigin:`${M.origin.side} ${M.origin.align}`,top:me(mu(C)),left:e.isRtl.value?void 0:me(mu(E)),right:e.isRtl.value?me(mu(-E)):void 0,minWidth:me(T==="y"?Math.min(o.value,m.width):o.value),maxWidth:me(Ym(or(I.x,o.value===1/0?0:o.value,c.value))),maxHeight:me(Ym(or(I.y,a.value===1/0?0:a.value,l.value)))}),{available:I,contentBox:g,flipped:A}}return Se(()=>[s.value,i.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>v()),vt(()=>{const g=v();if(!g)return;const{available:y,contentBox:_}=g;_.height>y.y&&requestAnimationFrame(()=>{v(),requestAnimationFrame(()=>{v()})})}),{updateLocation:v}}function mu(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Ym(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let bd=!0;const Nc=[];function lR(e){!bd||Nc.length?(Nc.push(e),Sd()):(bd=!1,e(),Sd())}let Xm=-1;function Sd(){cancelAnimationFrame(Xm),Xm=requestAnimationFrame(()=>{const e=Nc.shift();e&&e(),Nc.length?Sd():bd=!0})}const Qa={none:null,close:fR,block:hR,reposition:pR},uR=le({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Qa}},"VOverlay-scroll-strategies");function dR(e,t){if(!et)return;let n;hn(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=Es(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=Qa[e.scrollStrategy])==null||r.call(Qa,t,e,n)}))}),Ct(()=>{n==null||n.stop()})}function fR(e){function t(n){e.isActive.value=!1}Jb(Zf(e.target.value,e.contentEl.value),t)}function hR(e,t){var a;const n=(a=e.root.value)==null?void 0:a.offsetParent,r=Zf(e.target.value,e.contentEl.value),s=[...new Set([...Rc(r,t.contained?n:void 0),...Rc(e.contentEl.value,t.contained?n:void 0)])].filter(c=>!c.classList.contains("v-overlay-scroll-blocked")),i=window.innerWidth-document.documentElement.offsetWidth,o=(c=>$f(c)&&c)(n||document.documentElement);o&&e.root.value.classList.add("v-overlay--scroll-blocked"),s.forEach((c,l)=>{c.style.setProperty("--v-body-scroll-x",me(-c.scrollLeft)),c.style.setProperty("--v-body-scroll-y",me(-c.scrollTop)),c!==document.documentElement&&c.style.setProperty("--v-scrollbar-offset",me(i)),c.classList.add("v-overlay-scroll-blocked")}),Ct(()=>{s.forEach((c,l)=>{const d=parseFloat(c.style.getPropertyValue("--v-body-scroll-x")),u=parseFloat(c.style.getPropertyValue("--v-body-scroll-y")),f=c.style.scrollBehavior;c.style.scrollBehavior="auto",c.style.removeProperty("--v-body-scroll-x"),c.style.removeProperty("--v-body-scroll-y"),c.style.removeProperty("--v-scrollbar-offset"),c.classList.remove("v-overlay-scroll-blocked"),c.scrollLeft=-d,c.scrollTop=-u,c.style.scrollBehavior=f}),o&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function pR(e,t,n){let r=!1,s=-1,i=-1;function o(a){lR(()=>{var d,u;const c=performance.now();(u=(d=e.updateLocation).value)==null||u.call(d,a),r=(performance.now()-c)/(1e3/60)>2})}i=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{Jb(Zf(e.target.value,e.contentEl.value),a=>{r?(cancelAnimationFrame(s),s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{o(a)})})):o(a)})})}),Ct(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(i),cancelAnimationFrame(s)})}function Zf(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find(n=>!(t!=null&&t.contains(n))):e??t}function Jb(e,t){const n=[document,...Rc(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),Ct(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const mR=Symbol.for("vuetify:v-menu"),gR=le({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function vR(e,t){let n=()=>{};function r(o,a){n==null||n();const c=o?e.openDelay:e.closeDelay,l=Math.max((a==null?void 0:a.minDelay)??0,Number(c??0));return new Promise(d=>{n=QC(l,()=>{t==null||t(o),d(o)})})}function s(){return r(!0)}function i(o){return r(!1,o)}return{clearDelay:n,runOpenDelay:s,runCloseDelay:i}}const yR=le({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...gR()},"VOverlay-activator");function _R(e,t){let{isActive:n,isTop:r,contentEl:s}=t;const i=mt("useActivator"),o=we();let a=!1,c=!1,l=!0;const d=j(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),u=j(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!d.value),{runOpenDelay:f,runCloseDelay:h}=vR(e,C=>{C===(e.openOnHover&&a||d.value&&c)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==C&&(l=!0),n.value=C)}),p=we(),m={onClick:C=>{C.stopPropagation(),o.value=C.currentTarget||C.target,n.value||(p.value=[C.clientX,C.clientY]),n.value=!n.value},onMouseenter:C=>{a=!0,o.value=C.currentTarget||C.target,f()},onMouseleave:C=>{a=!1,h()},onFocus:C=>{JC(C.target,":focus-visible")!==!1&&(c=!0,C.stopPropagation(),o.value=C.currentTarget||C.target,f())},onBlur:C=>{c=!1,C.stopPropagation(),h({minDelay:1})}},v=j(()=>{const C={};return u.value&&(C.onClick=m.onClick),e.openOnHover&&(C.onMouseenter=m.onMouseenter,C.onMouseleave=m.onMouseleave),d.value&&(C.onFocus=m.onFocus,C.onBlur=m.onBlur),C}),g=j(()=>{const C={};if(e.openOnHover&&(C.onMouseenter=()=>{a=!0,f()},C.onMouseleave=()=>{a=!1,h()}),d.value&&(C.onFocusin=I=>{I.target.matches(":focus-visible")&&(c=!0,f())},C.onFocusout=()=>{c=!1,h({minDelay:1})}),e.closeOnContentClick){const I=Le(mR,null);C.onClick=()=>{n.value=!1,I==null||I.closeParents()}}return C}),y=j(()=>{const C={};return e.openOnHover&&(C.onMouseenter=()=>{l&&(a=!0,l=!1,f())},C.onMouseleave=()=>{a=!1,h()}),C});Se(r,C=>{var I;C&&(e.openOnHover&&!a&&(!d.value||!c)||d.value&&!c&&(!e.openOnHover||!a))&&!((I=s.value)!=null&&I.contains(document.activeElement))&&(n.value=!1)}),Se(n,C=>{C||setTimeout(()=>{p.value=void 0})},{flush:"post"});const _=od();hn(()=>{_.value&&vt(()=>{o.value=_.el})});const S=od(),M=j(()=>e.target==="cursor"&&p.value?p.value:S.value?S.el:Zb(e.target,i)||o.value),R=j(()=>Array.isArray(M.value)?void 0:M.value);let E;return Se(()=>!!e.activator,C=>{C&&et?(E=Es(),E.run(()=>{bR(e,i,{activatorEl:o,activatorEvents:v})})):E&&E.stop()},{flush:"post",immediate:!0}),Ct(()=>{E==null||E.stop()}),{activatorEl:o,activatorRef:_,target:M,targetEl:R,targetRef:S,activatorEvents:v,contentEvents:g,scrimEvents:y}}function bR(e,t,n){let{activatorEl:r,activatorEvents:s}=n;Se(()=>e.activator,(c,l)=>{if(l&&c!==l){const d=a(l);d&&o(d)}c&&vt(()=>i())},{immediate:!0}),Se(()=>e.activatorProps,()=>{i()}),Ct(()=>{o()});function i(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&rT(c,Qe(s.value,l))}function o(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&sT(c,Qe(s.value,l))}function a(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const l=Zb(c,t);return r.value=(l==null?void 0:l.nodeType)===Node.ELEMENT_NODE?l:void 0,r.value}}function Zb(e,t){var r,s;if(!e)return;let n;if(e==="parent"){let i=(s=(r=t==null?void 0:t.proxy)==null?void 0:r.$el)==null?void 0:s.parentNode;for(;i!=null&&i.hasAttribute("data-no-activator");)i=i.parentNode;n=i}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}const SR=le({retainFocus:Boolean,captureFocus:Boolean,disableInitialFocus:Boolean},"focusTrap"),ec=new Map;let Jm=0;function Zm(e){const t=document.activeElement;if(e.key!=="Tab"||!t)return;const n=Array.from(ec.values()).filter(l=>{var f;let{isActive:d,contentEl:u}=l;return d.value&&((f=u.value)==null?void 0:f.contains(t))}).map(l=>l.contentEl.value);let r,s=t.parentElement;for(;s;){if(n.includes(s)){r=s;break}s=s.parentElement}if(!r)return;const i=yo(r).filter(l=>l.tabIndex>=0);if(!i.length)return;const o=document.activeElement;if(i.length===1&&i[0].classList.contains("v-list")&&i[0].contains(o)){e.preventDefault();return}const a=i[0],c=i[i.length-1];e.shiftKey&&(o===a||a.classList.contains("v-list")&&a.contains(o))&&(e.preventDefault(),c.focus()),!e.shiftKey&&(o===c||c.classList.contains("v-list")&&c.contains(o))&&(e.preventDefault(),a.focus())}function ER(e,t){let{isActive:n,localTop:r,activatorEl:s,contentEl:i}=t;const o=Symbol("trap");let a=!1,c=-1;async function l(){a=!0,c=window.setTimeout(()=>{a=!1},100)}async function d(h){var v;const p=h.relatedTarget,m=h.target;document.removeEventListener("pointerdown",l),document.removeEventListener("keydown",u),await vt(),n.value&&!a&&p!==m&&i.value&&bt(r)&&![document,i.value].includes(m)&&!i.value.contains(m)&&((v=yo(i.value)[0])==null||v.focus())}function u(h){if(h.key==="Tab"&&(document.removeEventListener("keydown",u),n.value&&i.value&&h.target&&!i.value.contains(h.target))){const p=yo(document.documentElement);if(h.shiftKey&&h.target===p.at(0)||!h.shiftKey&&h.target===p.at(-1)){const m=yo(i.value);m.length>0&&(h.preventDefault(),m[0].focus())}}}const f=ee(()=>n.value&&e.captureFocus&&!e.disableInitialFocus);et&&(Se(()=>e.retainFocus,h=>{h?ec.set(o,{isActive:n,contentEl:i}):ec.delete(o)},{immediate:!0}),Se(f,h=>{h?(document.addEventListener("pointerdown",l),document.addEventListener("focusin",d,{once:!0}),document.addEventListener("keydown",u)):(document.removeEventListener("pointerdown",l),document.removeEventListener("focusin",d),document.removeEventListener("keydown",u))},{immediate:!0}),Jm++<1&&document.addEventListener("keydown",Zm)),Ct(()=>{ec.delete(o),clearTimeout(c),document.removeEventListener("pointerdown",l),document.removeEventListener("focusin",d),document.removeEventListener("keydown",u),--Jm<1&&document.removeEventListener("keydown",Zm)})}function wR(){if(!et)return be(!1);const{ssr:e}=Nk();if(e){const t=be(!1);return zr(()=>{t.value=!0}),t}else return be(!0)}const CR=le({eager:Boolean},"lazy");function TR(e,t){const n=be(!1),r=ee(()=>n.value||e.eager||t.value);Se(t,()=>n.value=!0);function s(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:s}}function Qf(){const t=mt("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const Qm=Symbol.for("vuetify:stack"),ro=pt([]);function kR(e,t,n){const r=mt("useStack"),s=!n,i=Le(Qm,void 0),o=pt({activeChildren:new Set});At(Qm,o);const a=be(Number(bt(t)));Di(e,()=>{var u;const d=(u=ro.at(-1))==null?void 0:u[1];a.value=d?d+10:Number(bt(t)),s&&ro.push([r.uid,a.value]),i==null||i.activeChildren.add(r.uid),Ct(()=>{if(s){const f=de(ro).findIndex(h=>h[0]===r.uid);ro.splice(f,1)}i==null||i.activeChildren.delete(r.uid)})});const c=be(!0);return s&&hn(()=>{var u;const d=((u=ro.at(-1))==null?void 0:u[0])===r.uid;setTimeout(()=>c.value=d)}),{globalTop:hi(c),localTop:ee(()=>!o.activeChildren.size),stackStyles:ee(()=>({zIndex:a.value}))}}function IR(e){return{teleportTarget:j(()=>{const n=e();if(n===!0||!et)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let s=[...r.children].find(i=>i.matches(".v-overlay-container"));return s||(s=document.createElement("div"),s.className="v-overlay-container",r.appendChild(s)),s})}}const Qb=le({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),Qs=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:s,group:i,...o}=e,{component:a=i?Rf:Br,...c}=id(r)?r:{};let l;return id(r)?l=Qe(c,eT({disabled:s,group:i}),o):l=Qe({name:s||!r?"":r},o),qr(a,l,n)};function xR(){return!0}function eS(e,t,n){if(!e||tS(e,n)===!1)return!1;const r=tb(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const s=(typeof n.value=="object"&&n.value.include||(()=>[]))();return s.push(t),!s.some(i=>i==null?void 0:i.contains(e.target))}function tS(e,t){return(typeof t.value=="object"&&t.value.closeConditional||xR)(e)}function RR(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&eS(e,t,n)&&setTimeout(()=>{tS(e,n)&&r&&r(e)},0)}function eg(e,t){const n=tb(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const tg={mounted(e,t){const n=s=>RR(s,e,t),r=s=>{e._clickOutside.lastMousedownWasOutside=eS(s,e,t)};eg(e,s=>{s.addEventListener("click",n,!0),s.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(eg(e,n=>{var i;if(!n||!((i=e._clickOutside)!=null&&i[t.instance.$.uid]))return;const{onClick:r,onMousedown:s}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",s,!0)}),delete e._clickOutside[t.instance.$.uid])}};function AR(e){const{modelValue:t,color:n,...r}=e;return B(Br,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&se("div",Qe({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const eh=le({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...yR(),...ct(),...Hi(),...CR(),...sR(),...uR(),...SR(),...nn(),...Qb()},"VOverlay"),Dc=De()({name:"VOverlay",directives:{vClickOutside:tg},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...As(eh(),["disableInitialFocus"])},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,keydown:e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:s}=t;const i=mt("VOverlay"),o=we(),a=we(),c=we(),l=Zn(e,"modelValue"),d=j({get:()=>l.value,set:x=>{x&&e.disabled||(l.value=x)}}),{themeClasses:u}=mn(e),{rtlClasses:f,isRtl:h}=na(),{hasContent:p,onAfterLeave:m}=TR(e,d),v=li(()=>typeof e.scrim=="string"?e.scrim:null),{globalTop:g,localTop:y,stackStyles:_}=kR(d,()=>e.zIndex,e._disableGlobalStack),{activatorEl:S,activatorRef:M,target:R,targetEl:E,targetRef:C,activatorEvents:I,contentEvents:A,scrimEvents:O}=_R(e,{isActive:d,isTop:y,contentEl:c}),{teleportTarget:T}=IR(()=>{var K,ne,ye;const x=e.attach||e.contained;if(x)return x;const W=((K=S==null?void 0:S.value)==null?void 0:K.getRootNode())||((ye=(ne=i.proxy)==null?void 0:ne.$el)==null?void 0:ye.getRootNode());return W instanceof ShadowRoot?W:!1}),{dimensionStyles:P}=Vi(e),N=wR(),{scopeId:z}=Qf();Se(()=>e.disabled,x=>{x&&(d.value=!1)});const{contentStyles:X,updateLocation:q}=iR(e,{isRtl:h,contentEl:c,target:R,isActive:d});dR(e,{root:o,contentEl:c,targetEl:E,target:R,isActive:d,updateLocation:q});function D(x){s("click:outside",x),e.persistent?Ce():d.value=!1}function re(x){return d.value&&y.value&&(!e.scrim||x.target===a.value||x instanceof MouseEvent&&x.shadowTarget===a.value)}ER(e,{isActive:d,localTop:y,contentEl:c,activatorEl:S}),et&&Se(d,x=>{x?window.addEventListener("keydown",U):window.removeEventListener("keydown",U)},{immediate:!0}),Tn(()=>{et&&window.removeEventListener("keydown",U)});function U(x){var W,K,ne;x.key==="Escape"&&g.value&&((W=c.value)!=null&&W.contains(document.activeElement)||s("keydown",x),e.persistent?Ce():(d.value=!1,(K=c.value)!=null&&K.contains(document.activeElement)&&((ne=S.value)==null||ne.focus())))}function ie(x){x.key==="Escape"&&!g.value||s("keydown",x)}const ae=Gx();Di(()=>e.closeOnBack,()=>{Kx(ae,x=>{g.value&&d.value?(x(!1),e.persistent?Ce():d.value=!1):x()})});const ue=we();Se(()=>d.value&&(e.absolute||e.contained)&&T.value==null,x=>{if(x){const W=OT(o.value);W&&W!==document.scrollingElement&&(ue.value=W.scrollTop)}});function Ce(){e.noClickAnimation||c.value&&ss(c.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:ld})}function Ne(){s("afterEnter")}function He(){m(),s("afterLeave")}return tt(()=>{var x;return se(Ze,null,[(x=n.activator)==null?void 0:x.call(n,{isActive:d.value,targetRef:C,props:Qe({ref:M},I.value,e.activatorProps)}),N.value&&p.value&&B(h1,{disabled:!T.value,to:T.value},{default:()=>[se("div",Qe({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":d.value,"v-overlay--contained":e.contained},u.value,f.value,e.class],style:[_.value,{"--v-overlay-opacity":e.opacity,top:me(ue.value)},e.style],ref:o,onKeydown:ie},z,r),[B(AR,Qe({color:v,modelValue:d.value&&!!e.scrim,ref:a},O.value),null),B(Qs,{appear:!0,persisted:!0,transition:e.transition,target:R.value,onAfterEnter:Ne,onAfterLeave:He},{default:()=>{var W;return[ws(se("div",Qe({ref:c,class:["v-overlay__content",e.contentClass],style:[P.value,X.value]},A.value,e.contentProps),[(W=n.default)==null?void 0:W.call(n,{isActive:d})]),[[xf,d.value],[tg,{handler:D,closeConditional:re,include:()=>[S.value]}]])]}})])]})])}),{activatorEl:S,scrimEl:a,target:R,animateClick:Ce,contentEl:c,rootEl:o,globalTop:g,localTop:y,updateLocation:q}}}),gu=Symbol("Forwarded refs");function vu(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function nS(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rt.value=e())}function i(o){const a=o?getComputedStyle(o):{transitionDuration:.2},c=parseFloat(a.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const l=performance.now();n=window.setInterval(()=>{const d=performance.now()-l+c;t.value=Math.max(e()-d,0),t.value<=0&&r()},c)}return Ct(r),{clear:r,time:t,start:i,reset:s}}const PR=le({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...Tl({location:"bottom"}),...Kf(),...gr(),...Ps(),...nn(),...As(eh({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","retainFocus","captureFocus","disableInitialFocus","scrim","scrollStrategy","stickToTarget","viewportMargin"])},"VSnackbar"),OR=De()({name:"VSnackbar",props:PR(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Zn(e,"modelValue"),{positionClasses:s}=Yf(e),{scopeId:i}=Qf(),{themeClasses:o}=mn(e),{colorClasses:a,colorStyles:c,variantClasses:l}=aa(e),{roundedClasses:d}=vr(e),u=MR(()=>Number(e.timeout)),f=we(),h=we(),p=be(!1),m=be(0),v=we(),g=Le($o,void 0);Di(()=>!!g,()=>{const O=Kk();hn(()=>{v.value=O.mainStyles.value})}),Se(r,_),Se(()=>e.timeout,_),zr(()=>{r.value&&_()});let y=-1;function _(){u.reset(),window.clearTimeout(y);const O=Number(e.timeout);if(!r.value||O===-1)return;const T=Mf(h.value);u.start(T),y=window.setTimeout(()=>{r.value=!1},O)}function S(){u.reset(),window.clearTimeout(y)}function M(){p.value=!0,S()}function R(){p.value=!1,_()}function E(O){m.value=O.touches[0].clientY}function C(O){Math.abs(m.value-O.changedTouches[0].clientY)>50&&(r.value=!1)}function I(){p.value&&R()}const A=j(()=>e.location.split(" ").reduce((O,T)=>(O[`v-snackbar--${T}`]=!0,O),{}));return tt(()=>{const O=Dc.filterProps(e),T=!!(n.default||n.text||e.text);return B(Dc,Qe({ref:f,class:["v-snackbar",{"v-snackbar--active":r.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},A.value,s.value,e.class],style:[v.value,e.style]},O,{modelValue:r.value,"onUpdate:modelValue":P=>r.value=P,contentProps:Qe({class:["v-snackbar__wrapper",o.value,a.value,d.value,l.value],style:[c.value],onPointerenter:M,onPointerleave:R},O.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:E,onTouchend:C,onAfterLeave:I},i),{default:()=>{var P,N;return[oa(!1,"v-snackbar"),e.timer&&!p.value&&se("div",{key:"timer",class:"v-snackbar__timer"},[B(Bb,{ref:h,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,modelValue:u.time.value},null)]),T&&se("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((P=n.text)==null?void 0:P.call(n))??e.text,(N=n.default)==null?void 0:N.call(n)]),n.actions&&B(un,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[se("div",{class:"v-snackbar__actions"},[n.actions({isActive:r})])]})]},activator:n.activator})}),nS({},f)}}),LR=dl({name:"GlobalMessage",setup(){var i;const e=we(!1),t=we(null),n={success:"mdi-check-circle",error:"mdi-alert-circle",warning:"mdi-alert",info:"mdi-information"},r={success:"success",error:"error",warning:"warning",info:"info"},s=(i=Ys==null?void 0:Ys.onSnackbar)==null?void 0:i.call(Ys,async o=>{o&&(e.value&&(e.value=!1,await vt()),t.value=o,e.value=!0)});return Tn(()=>s==null?void 0:s()),{snackbar:e,message:t,icons:n,colors:r}}}),NR={class:"d-flex align-center"},DR={class:"text-subtitle-2 font-weight-medium"},FR={key:0,class:"text-body-2"};function $R(e,t,n,r,s,i){var o;return cn(),Dn(OR,{modelValue:e.snackbar,"onUpdate:modelValue":t[1]||(t[1]=a=>e.snackbar=a),color:e.colors[(o=e.message)==null?void 0:o.type]||e.colors.info,timeout:2e3,location:"top right","multi-line":"",variant:"tonal"},{actions:gt(()=>[B(Yb,{icon:"mdi-close",variant:"text",onClick:t[0]||(t[0]=a=>e.snackbar=!1)})]),default:gt(()=>{var a,c,l,d;return[se("div",NR,[B(Hn,{icon:e.icons[(a=e.message)==null?void 0:a.type]||e.icons.info,class:"mr-2"},null,8,["icon"]),se("div",null,[se("div",DR,bn((c=e.message)==null?void 0:c.title),1),(l=e.message)!=null&&l.content?(cn(),T_("div",FR,bn((d=e.message)==null?void 0:d.content),1)):ed("",!0)])])]}),_:1},8,["modelValue","color"])}const rS=Lb(LR,[["render",$R]]),BR=le({...ct(),...Mt()},"VCardActions"),sS=De()({name:"VCardActions",props:BR(),setup(e,t){let{slots:n}=t;return vl({VBtn:{slim:!0,variant:"text"}}),tt(()=>B(e.tag,{class:Pe(["v-card-actions",e.class]),style:Xe(e.style)},n)),{}}}),HR=le({opacity:[Number,String],...ct(),...Mt()},"VCardSubtitle"),VR=De()({name:"VCardSubtitle",props:HR(),setup(e,t){let{slots:n}=t;return tt(()=>B(e.tag,{class:Pe(["v-card-subtitle",e.class]),style:Xe([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),iS=Ff("v-card-title");function UR(e){return{aspectStyles:j(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const oS=le({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...ct(),...Hi()},"VResponsive"),ng=De()({name:"VResponsive",props:oS(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=UR(e),{dimensionStyles:s}=Vi(e);return tt(()=>{var i;return se("div",{class:Pe(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:Xe([s.value,e.style])},[se("div",{class:"v-responsive__sizer",style:Xe(r.value)},null),(i=n.additional)==null?void 0:i.call(n),n.default&&se("div",{class:Pe(["v-responsive__content",e.contentClass])},[n.default()])])}),{}}});function WR(e,t){if(!Af)return;const n=t.modifiers||{},r=t.value,{handler:s,options:i}=typeof r=="object"?r:{handler:r,options:{}},o=new IntersectionObserver(function(){var u;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0;const l=(u=e._observe)==null?void 0:u[t.instance.$.uid];if(!l)return;const d=a.some(f=>f.isIntersecting);s&&(!n.quiet||l.init)&&(!n.once||d||l.init)&&s(d,a,c),d&&n.once?aS(e,t):l.init=!0},i);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function aS(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const rg={mounted:WR,unmounted:aS},jR=le({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...oS(),...ct(),...gr(),...Qb()},"VImg"),cS=De()({name:"VImg",directives:{vIntersect:rg},props:jR(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:s,backgroundColorStyles:i}=li(()=>e.color),{roundedClasses:o}=vr(e),a=mt("VImg"),c=be(""),l=we(),d=be(e.eager?"loading":"idle"),u=be(),f=be(),h=j(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),p=j(()=>h.value.aspect||u.value/f.value||0);Se(()=>e.src,()=>{m(d.value!=="idle")}),Se(p,(T,P)=>{!T&&P&&l.value&&S(l.value)}),pl(()=>m());function m(T){if(!(e.eager&&T)&&!(Af&&!T&&!e.eager)){if(d.value="loading",h.value.lazySrc){const P=new Image;P.src=h.value.lazySrc,S(P,null)}h.value.src&&vt(()=>{var P;n("loadstart",((P=l.value)==null?void 0:P.currentSrc)||h.value.src),setTimeout(()=>{var N;if(!a.isUnmounted)if((N=l.value)!=null&&N.complete){if(l.value.naturalWidth||g(),d.value==="error")return;p.value||S(l.value,null),d.value==="loading"&&v()}else p.value||S(l.value),y()})})}}function v(){var T;a.isUnmounted||(y(),S(l.value),d.value="loaded",n("load",((T=l.value)==null?void 0:T.currentSrc)||h.value.src))}function g(){var T;a.isUnmounted||(d.value="error",n("error",((T=l.value)==null?void 0:T.currentSrc)||h.value.src))}function y(){const T=l.value;T&&(c.value=T.currentSrc||T.src)}let _=-1;Tn(()=>{clearTimeout(_)});function S(T){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const N=()=>{if(clearTimeout(_),a.isUnmounted)return;const{naturalHeight:z,naturalWidth:X}=T;z||X?(u.value=X,f.value=z):!T.complete&&d.value==="loading"&&P!=null?_=window.setTimeout(N,P):(T.currentSrc.endsWith(".svg")||T.currentSrc.startsWith("data:image/svg+xml"))&&(u.value=1,f.value=1)};N()}const M=ee(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),R=()=>{var N;if(!h.value.src||d.value==="idle")return null;const T=se("img",{class:Pe(["v-img__img",M.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:h.value.src,srcset:h.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:l,onLoad:v,onError:g},null),P=(N=r.sources)==null?void 0:N.call(r);return B(Qs,{transition:e.transition,appear:!0},{default:()=>[ws(P?se("picture",{class:"v-img__picture"},[P,T]):T,[[xf,d.value==="loaded"]])]})},E=()=>B(Qs,{transition:e.transition},{default:()=>[h.value.lazySrc&&d.value!=="loaded"&&se("img",{class:Pe(["v-img__img","v-img__img--preload",M.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:h.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),C=()=>r.placeholder?B(Qs,{transition:e.transition,appear:!0},{default:()=>[(d.value==="loading"||d.value==="error"&&!r.error)&&se("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,I=()=>r.error?B(Qs,{transition:e.transition,appear:!0},{default:()=>[d.value==="error"&&se("div",{class:"v-img__error"},[r.error()])]}):null,A=()=>e.gradient?se("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,O=be(!1);{const T=Se(p,P=>{P&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{O.value=!0})}),T())})}return tt(()=>{const T=ng.filterProps(e);return ws(B(ng,Qe({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!O.value},s.value,o.value,e.class],style:[{width:me(e.width==="auto"?u.value:e.width)},i.value,e.style]},T,{aspectRatio:p.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>se(Ze,null,[B(R,null,null),B(E,null,null),B(A,null,null),B(C,null,null),B(I,null,null)]),default:r.default}),[[rg,{handler:m,options:e.options},null,{once:!0}]])}),{currentSrc:c,image:l,state:d,naturalWidth:u,naturalHeight:f}}}),zR=le({start:Boolean,end:Boolean,icon:Et,image:String,text:String,...Fi(),...ct(),...Ms(),...gr(),...wl(),...Mt(),...nn(),...Ps({variant:"flat"})},"VAvatar"),Fc=De()({name:"VAvatar",props:zR(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=mn(e),{borderClasses:s}=$i(e),{colorClasses:i,colorStyles:o,variantClasses:a}=aa(e),{densityClasses:c}=Bi(e),{roundedClasses:l}=vr(e),{sizeClasses:d,sizeStyles:u}=Cl(e);return tt(()=>B(e.tag,{class:Pe(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,s.value,i.value,c.value,l.value,d.value,a.value,e.class]),style:Xe([o.value,u.value,e.style])},{default:()=>[n.default?B(un,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?B(cS,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?B(Hn,{key:"icon",icon:e.icon},null):e.text,oa(!1,"v-avatar")]})),{}}}),qR=le({appendAvatar:String,appendIcon:Et,prependAvatar:String,prependIcon:Et,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...ct(),...Ms(),...Mt()},"VCardItem"),GR=De()({name:"VCardItem",props:qR(),setup(e,t){let{slots:n}=t;return tt(()=>{const r=!!(e.prependAvatar||e.prependIcon),s=!!(r||n.prepend),i=!!(e.appendAvatar||e.appendIcon),o=!!(i||n.append),a=!!(e.title!=null||n.title),c=!!(e.subtitle!=null||n.subtitle);return B(e.tag,{class:Pe(["v-card-item",e.class]),style:Xe(e.style)},{default:()=>{var l;return[s&&se("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?B(un,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):se(Ze,null,[e.prependAvatar&&B(Fc,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&B(Hn,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),se("div",{class:"v-card-item__content"},[a&&B(iS,{key:"title"},{default:()=>{var d;return[((d=n.title)==null?void 0:d.call(n))??bn(e.title)]}}),c&&B(VR,{key:"subtitle"},{default:()=>{var d;return[((d=n.subtitle)==null?void 0:d.call(n))??bn(e.subtitle)]}}),(l=n.default)==null?void 0:l.call(n)]),o&&se("div",{key:"append",class:"v-card-item__append"},[n.append?B(un,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):se(Ze,null,[e.appendIcon&&B(Hn,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&B(Fc,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]}})}),{}}}),KR=le({opacity:[Number,String],...ct(),...Mt()},"VCardText"),Ed=De()({name:"VCardText",props:KR(),setup(e,t){let{slots:n}=t;return tt(()=>B(e.tag,{class:Pe(["v-card-text",e.class]),style:Xe([{"--v-card-text-opacity":e.opacity},e.style])},n)),{}}}),YR=le({appendAvatar:String,appendIcon:Et,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Et,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...Fi(),...ct(),...Ms(),...Hi(),...sa(),...Hb(),...Tl(),...Kf(),...gr(),...Jf(),...Mt(),...nn(),...Ps({variant:"elevated"})},"VCard"),sg=De()({name:"VCard",directives:{vRipple:Uo},props:YR(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=mn(e),{borderClasses:i}=$i(e),{colorClasses:o,colorStyles:a,variantClasses:c}=aa(e),{densityClasses:l}=Bi(e),{dimensionStyles:d}=Vi(e),{elevationClasses:u}=ia(e),{loaderClasses:f}=Vb(e),{locationStyles:h}=Gf(e),{positionClasses:p}=Yf(e),{roundedClasses:m}=vr(e),v=Xf(e,n),g=be(void 0);return Se(()=>e.loading,(y,_)=>{g.value=!y&&typeof _=="string"?_:typeof y=="boolean"?void 0:y},{immediate:!0}),tt(()=>{const y=e.link!==!1&&v.isLink.value,_=!e.disabled&&e.link!==!1&&(e.link||v.isClickable.value),S=y?"a":e.tag,M=!!(r.title||e.title!=null),R=!!(r.subtitle||e.subtitle!=null),E=M||R,C=!!(r.append||e.appendAvatar||e.appendIcon),I=!!(r.prepend||e.prependAvatar||e.prependIcon),A=!!(r.image||e.image),O=E||I||C,T=!!(r.text||e.text!=null);return ws(B(S,Qe(v.linkProps,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":_},s.value,i.value,o.value,l.value,u.value,f.value,p.value,m.value,c.value,e.class],style:[a.value,d.value,h.value,e.style],onClick:_&&v.navigate,tabindex:e.disabled?-1:void 0}),{default:()=>{var P;return[A&&se("div",{key:"image",class:"v-card__image"},[r.image?B(un,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):B(cS,{key:"image-img",cover:!0,src:e.image},null)]),B(jx,{name:"v-card",active:!!e.loading,color:g.value},{default:r.loader}),O&&B(GR,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),T&&B(Ed,{key:"text"},{default:()=>{var N;return[((N=r.text)==null?void 0:N.call(r))??e.text]}}),(P=r.default)==null?void 0:P.call(r),r.actions&&B(sS,null,{default:r.actions}),oa(_,"v-card")]}}),[[Uo,_&&e.ripple]])}),{}}}),XR=le({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function rn(e,t,n){return De()({name:e,props:XR({mode:n,origin:t}),setup(r,s){let{slots:i}=s;const o={onBeforeEnter(a){r.origin&&(a.style.transformOrigin=r.origin)},onLeave(a){if(r.leaveAbsolute){const{offsetTop:c,offsetLeft:l,offsetWidth:d,offsetHeight:u}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${c}px`,a.style.left=`${l}px`,a.style.width=`${d}px`,a.style.height=`${u}px`}r.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(r.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:c,top:l,left:d,width:u,height:f}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=c||"",a.style.top=l||"",a.style.left=d||"",a.style.width=u||"",a.style.height=f||""}}};return()=>{const a=r.group?Rf:Br;return qr(a,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:o},i.default)}}})}function lS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return De()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:Oo()},group:Boolean},setup(r,s){let{slots:i}=s;const o=r.group?Rf:Br;return()=>qr(o,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},i.default)}})}function uS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=$t(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const a=o._initialStyle;if(!a)return;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const c=`${o[r]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=a.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=c})},onAfterEnter:i,onEnterCancelled:i,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[r]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:s,onLeaveCancelled:s};function s(o){e&&o._parent&&o._parent.classList.remove(e),i(o)}function i(o){if(!o._initialStyle)return;const a=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,a!=null&&(o.style[n]=a),delete o._initialStyle}}const JR=le({target:[Object,Array]},"v-dialog-transition"),yu=new WeakMap,ZR=De()({name:"VDialogTransition",props:JR(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(s){s.style.pointerEvents="none",s.style.visibility="hidden"},async onEnter(s,i){var f;await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),s.style.visibility="";const o=og(e.target,s),{x:a,y:c,sx:l,sy:d,speed:u}=o;if(yu.set(s,o),Oo())ss(s,[{opacity:0},{}],{duration:125*u,easing:um}).finished.then(()=>i());else{const h=ss(s,[{transform:`translate(${a}px, ${c}px) scale(${l}, ${d})`,opacity:0},{}],{duration:225*u,easing:um});(f=ig(s))==null||f.forEach(p=>{ss(p,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*u,easing:ld})}),h.finished.then(()=>i())}},onAfterEnter(s){s.style.removeProperty("pointer-events")},onBeforeLeave(s){s.style.pointerEvents="none"},async onLeave(s,i){var f;await new Promise(h=>requestAnimationFrame(h));let o;!yu.has(s)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?o=og(e.target,s):o=yu.get(s);const{x:a,y:c,sx:l,sy:d,speed:u}=o;Oo()?ss(s,[{},{opacity:0}],{duration:85*u,easing:dm}).finished.then(()=>i()):(ss(s,[{},{transform:`translate(${a}px, ${c}px) scale(${l}, ${d})`,opacity:0}],{duration:125*u,easing:dm}).finished.then(()=>i()),(f=ig(s))==null||f.forEach(p=>{ss(p,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*u,easing:ld})}))},onAfterLeave(s){s.style.removeProperty("pointer-events")}};return()=>e.target?B(Br,Qe({name:"dialog-transition"},r,{css:!1}),n):B(Br,{name:"dialog-transition"},n)}});function ig(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function og(e,t){const n=K_(e),r=Y_(t),[s,i]=getComputedStyle(t).transformOrigin.split(" ").map(g=>parseFloat(g)),[o,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let c=n.left+n.width/2;o==="left"||a==="left"?c-=n.width/2:(o==="right"||a==="right")&&(c+=n.width/2);let l=n.top+n.height/2;o==="top"||a==="top"?l-=n.height/2:(o==="bottom"||a==="bottom")&&(l+=n.height/2);const d=n.width/r.width,u=n.height/r.height,f=Math.max(1,d,u),h=d/f||0,p=u/f||0,m=r.width*r.height/(window.innerWidth*window.innerHeight),v=m>.12?Math.min(1.5,(m-.12)*10+1):1;return{x:c-(s+r.left),y:l-(i+r.top),sx:h,sy:p,speed:v}}rn("fab-transition","center center","out-in");rn("dialog-bottom-transition");rn("dialog-top-transition");const w4=rn("fade-transition"),C4=rn("scale-transition");rn("scroll-x-transition");rn("scroll-x-reverse-transition");rn("scroll-y-transition");rn("scroll-y-reverse-transition");rn("slide-x-transition");const T4=rn("slide-x-reverse-transition"),k4=rn("slide-y-transition");rn("slide-y-reverse-transition");const QR=lS("expand-transition",uS()),I4=lS("expand-x-transition",uS("",!0)),eA=le({fullscreen:Boolean,scrollable:Boolean,...As(eh({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:ZR},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),tA=De()({name:"VDialog",props:eA(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=Zn(e,"modelValue"),{scopeId:i}=Qf(),o=we();function a(){var l;n("afterEnter"),(e.scrim||e.retainFocus)&&((l=o.value)!=null&&l.contentEl)&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function c(){n("afterLeave")}return Se(s,async l=>{var d;l||(await vt(),(d=o.value.activatorEl)==null||d.focus({preventScroll:!0}))}),tt(()=>{const l=Dc.filterProps(e),d=Qe({"aria-haspopup":"dialog"},e.activatorProps),u=Qe({tabindex:-1},e.contentProps);return B(Dc,Qe({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},l,{modelValue:s.value,"onUpdate:modelValue":f=>s.value=f,"aria-modal":"true",activatorProps:d,contentProps:u,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:a,onAfterLeave:c},i),{activator:r.activator,default:function(){for(var f=arguments.length,h=new Array(f),p=0;p{var m;return[(m=r.default)==null?void 0:m.call(r,...h)]}})}})}),nS({},o)}}),nA=["dotted","dashed","solid","double"],rA=le({color:String,contentOffset:[Number,String,Array],gradient:Boolean,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,variant:{type:String,default:"solid",validator:e=>nA.includes(e)},...ct(),...nn()},"VDivider"),dS=De()({name:"VDivider",props:rA(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=mn(e),{textColorClasses:i,textColorStyles:o}=bi(()=>e.color),a=j(()=>{const l={};return e.length&&(l[e.vertical?"height":"width"]=me(e.length)),e.thickness&&(l[e.vertical?"borderRightWidth":"borderTopWidth"]=me(e.thickness)),l}),c=ee(()=>{const l=Array.isArray(e.contentOffset)?e.contentOffset[0]:e.contentOffset,d=Array.isArray(e.contentOffset)?e.contentOffset[1]:0;return{marginBlock:e.vertical&&l?me(l):void 0,marginInline:!e.vertical&&l?me(l):void 0,transform:d?`translate${e.vertical?"X":"Y"}(${me(d)})`:void 0}});return tt(()=>{const l=se("hr",{class:Pe([{"v-divider":!0,"v-divider--gradient":e.gradient&&!r.default,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},s.value,i.value,e.class]),style:Xe([a.value,o.value,{"--v-border-opacity":e.opacity},{"border-style":e.variant},e.style]),"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?se("div",{class:Pe(["v-divider__wrapper",{"v-divider__wrapper--gradient":e.gradient,"v-divider__wrapper--inset":e.inset,"v-divider__wrapper--vertical":e.vertical}])},[l,se("div",{class:"v-divider__content",style:Xe(c.value)},[r.default()]),l]):l}),{}}}),sA=Ff("v-spacer","div","VSpacer"),wd=Symbol.for("vuetify:list");function fS(){let{filterable:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filterable:!1};const t=Le(wd,{filterable:!1,hasPrepend:be(!1),updateHasPrepend:()=>null}),n={filterable:t.filterable||e,hasPrepend:be(!1),updateHasPrepend:r=>{r&&(n.hasPrepend.value=r)}};return At(wd,n),t}function hS(){return Le(wd,null)}const th=e=>{const t={activate:n=>{let{id:r,value:s,activated:i}=n;return r=de(r),e&&!s&&i.size===1&&i.has(r)||(s?i.add(r):i.delete(r)),i},in:(n,r,s)=>{let i=new Set;if(n!=null)for(const o of Of(n))i=t.activate({id:o,value:!0,activated:new Set(i),children:r,parents:s});return i},out:n=>Array.from(n)};return t},pS=e=>{const t=th(e);return{activate:r=>{let{activated:s,id:i,...o}=r;i=de(i);const a=s.has(i)?new Set([i]):new Set;return t.activate({...o,id:i,activated:a})},in:(r,s,i)=>{let o=new Set;if(r!=null){const a=Of(r);a.length&&(o=t.in(a.slice(0,1),s,i))}return o},out:(r,s,i)=>t.out(r,s,i)}},iA=e=>{const t=th(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=de(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},oA=e=>{const t=pS(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=de(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},aA={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){const i=new Set;i.add(t);let o=s.get(t);for(;o!=null;)i.add(o),o=s.get(o);return i}else return r.delete(t),r},select:()=>null},mS={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){let i=s.get(t);for(r.add(t);i!=null&&i!==t;)r.add(i),i=s.get(i);return r}else r.delete(t);return r},select:()=>null},cA={open:mS.open,select:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(!n)return r;const i=[];let o=s.get(t);for(;o!=null;)i.push(o),o=s.get(o);return new Set(i)}},nh=e=>{const t={select:n=>{let{id:r,value:s,selected:i}=n;if(r=de(r),e&&!s){const o=Array.from(i.entries()).reduce((a,c)=>{let[l,d]=c;return d==="on"&&a.push(l),a},[]);if(o.length===1&&o[0]===r)return i}return i.set(r,s?"on":"off"),i},in:(n,r,s,i)=>{const o=new Map;for(const a of n||[])t.select({id:a,value:!0,selected:o,children:r,parents:s,disabled:i});return o},out:n=>{const r=[];for(const[s,i]of n.entries())i==="on"&&r.push(s);return r}};return t},gS=e=>{const t=nh(e);return{select:r=>{let{selected:s,id:i,...o}=r;i=de(i);const a=s.has(i)?new Map([[i,s.get(i)]]):new Map;return t.select({...o,id:i,selected:a})},in:(r,s,i,o)=>r!=null&&r.length?t.in(r.slice(0,1),s,i,o):new Map,out:(r,s,i)=>t.out(r,s,i)}},lA=e=>{const t=nh(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=de(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},uA=e=>{const t=gS(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=de(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},vS=e=>{const t={select:n=>{let{id:r,value:s,selected:i,children:o,parents:a,disabled:c}=n;r=de(r);const l=new Map(i),d=[r];for(;d.length;){const f=d.shift();c.has(f)||i.set(de(f),s?"on":"off"),o.has(f)&&d.push(...o.get(f))}let u=de(a.get(r));for(;u;){let f=!0,h=!0;for(const p of o.get(u)){const m=de(p);if(!c.has(m)&&(i.get(m)!=="on"&&(f=!1),i.has(m)&&i.get(m)!=="off"&&(h=!1),!f&&!h))break}i.set(u,f?"on":h?"off":"indeterminate"),u=de(a.get(u))}return e&&!s&&Array.from(i.entries()).reduce((h,p)=>{let[m,v]=p;return v==="on"&&h.push(m),h},[]).length===0?l:i},in:(n,r,s)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:i,children:r,parents:s,disabled:new Set});return i},out:(n,r)=>{const s=[];for(const[i,o]of n.entries())o==="on"&&!r.has(i)&&s.push(i);return s}};return t},dA=e=>{const t=vS(e);return{select:t.select,in:t.in,out:(r,s,i)=>{const o=[];for(const[a,c]of r.entries())if(c==="on"){if(i.has(a)){const l=i.get(a);if(r.get(l)==="on")continue}o.push(a)}return o}}},Si=Symbol.for("vuetify:nested"),yS={id:be(),root:{itemsRegistration:we("render"),register:()=>null,unregister:()=>null,updateDisabled:()=>null,children:we(new Map),parents:we(new Map),disabled:we(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:we(!1),selectable:we(!1),opened:we(new Set),activated:we(new Set),selected:we(new Map),selectedValues:we([]),getPath:()=>[]}},fA=le({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean,itemsRegistration:{type:String,default:"render"}},"nested"),hA=(e,t,n)=>{let r=!1;const s=be(new Map),i=be(new Map),o=be(new Set),a=Zn(e,"opened",e.opened,_=>new Set(Array.isArray(_)?_.map(S=>de(S)):_),_=>[..._.values()]),c=j(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return iA(e.mandatory);case"single-leaf":return oA(e.mandatory);case"independent":return th(e.mandatory);case"single-independent":default:return pS(e.mandatory)}}),l=j(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return uA(e.mandatory);case"leaf":return lA(e.mandatory);case"independent":return nh(e.mandatory);case"single-independent":return gS(e.mandatory);case"trunk":return dA(e.mandatory);case"classic":default:return vS(e.mandatory)}}),d=j(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return cA;case"single":return aA;case"multiple":default:return mS}}),u=Zn(e,"activated",e.activated,_=>c.value.in(_,s.value,i.value),_=>c.value.out(_,s.value,i.value)),f=Zn(e,"selected",e.selected,_=>l.value.in(_,s.value,i.value,o.value),_=>l.value.out(_,s.value,i.value));Tn(()=>{r=!0});function h(_){const S=[];let M=de(_);for(;M!==void 0;)S.unshift(M),M=i.value.get(M);return S}const p=mt("nested"),m=new Set,v=DT(()=>{vt(()=>{s.value=new Map(s.value),i.value=new Map(i.value)})},100);Se(()=>[t.value,bt(n)],()=>{e.itemsRegistration==="props"&&g()},{immediate:!0});function g(){const _=new Map,S=new Map,M=new Set,R=bt(n)?I=>de(I.raw):I=>I.value,E=[...t.value];let C=0;for(;Ce.activatable),selectable:ee(()=>e.selectable),activated:u,selected:f,selectedValues:j(()=>{const _=[];for(const[S,M]of f.value.entries())M==="on"&&_.push(S);return _}),itemsRegistration:ee(()=>e.itemsRegistration),register:(_,S,M,R)=>{if(m.has(_)){h(_).map(String).join(" -> "),h(S).concat(_).map(String).join(" -> ");return}else m.add(_);S&&_!==S&&i.value.set(_,S),M&&o.value.add(_),R&&s.value.set(_,[]),S!=null&&s.value.set(S,[...s.value.get(S)||[],_]),v()},unregister:_=>{if(r)return;m.delete(_),s.value.delete(_),o.value.delete(_);const S=i.value.get(_);if(S){const M=s.value.get(S)??[];s.value.set(S,M.filter(R=>R!==_))}i.value.delete(_),v()},updateDisabled:(_,S)=>{S?o.value.add(_):o.value.delete(_)},open:(_,S,M)=>{p.emit("click:open",{id:_,value:S,path:h(_),event:M});const R=d.value.open({id:_,value:S,opened:new Set(a.value),children:s.value,parents:i.value,event:M});R&&(a.value=R)},openOnSelect:(_,S,M)=>{const R=d.value.select({id:_,value:S,selected:new Map(f.value),opened:new Set(a.value),children:s.value,parents:i.value,event:M});R&&(a.value=R)},select:(_,S,M)=>{p.emit("click:select",{id:_,value:S,path:h(_),event:M});const R=l.value.select({id:_,value:S,selected:new Map(f.value),children:s.value,parents:i.value,disabled:o.value,event:M});R&&(f.value=R),y.root.openOnSelect(_,S,M)},activate:(_,S,M)=>{if(!e.activatable)return y.root.select(_,!0,M);p.emit("click:activate",{id:_,value:S,path:h(_),event:M});const R=c.value.activate({id:_,value:S,activated:new Set(u.value),children:s.value,parents:i.value,event:M});if(R.size!==u.value.size)u.value=R;else{for(const E of R)if(!u.value.has(E)){u.value=R;return}for(const E of u.value)if(!R.has(E)){u.value=R;return}}},children:s,parents:i,disabled:o,getPath:h}};return At(Si,y),y.root},_S=(e,t,n)=>{const r=Le(Si,yS),s=Symbol("nested item"),i=j(()=>{const a=de(bt(e));return a!==void 0?a:s}),o={...r,id:i,open:(a,c)=>r.root.open(i.value,a,c),openOnSelect:(a,c)=>r.root.openOnSelect(i.value,a,c),isOpen:j(()=>r.root.opened.value.has(i.value)),parent:j(()=>r.root.parents.value.get(i.value)),activate:(a,c)=>r.root.activate(i.value,a,c),isActivated:j(()=>r.root.activated.value.has(i.value)),select:(a,c)=>r.root.select(i.value,a,c),isSelected:j(()=>r.root.selected.value.get(i.value)==="on"),isIndeterminate:j(()=>r.root.selected.value.get(i.value)==="indeterminate"),isLeaf:j(()=>!r.root.children.value.get(i.value)),isGroupActivator:r.isGroupActivator};return pl(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||vt(()=>{r.root.register(i.value,r.id.value,bt(t),n)})}),Tn(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||r.root.unregister(i.value)}),Se(i,(a,c)=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||(r.root.unregister(c),vt(()=>{r.root.register(a,r.id.value,bt(t),n)}))}),Se(()=>bt(t),a=>{r.root.updateDisabled(i.value,a)}),n&&At(Si,o),o},pA=()=>{const e=Le(Si,yS);At(Si,{...e,isGroupActivator:!0})};function mA(){const e=be(!1);return zr(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:ee(()=>e.value?void 0:{transition:"none !important"}),isBooted:hi(e)}}const gA=Ni({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return pA(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),vA=le({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Et,default:"$collapse"},disabled:Boolean,expandIcon:{type:Et,default:"$expand"},rawId:[String,Number],prependIcon:Et,appendIcon:Et,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ct(),...Mt()},"VListGroup"),ag=De()({name:"VListGroup",props:vA(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:s,id:i}=_S(()=>e.value,()=>e.disabled,!0),o=j(()=>`v-list-group--id-${String(e.rawId??i.value)}`),a=hS(),{isBooted:c}=mA(),l=Le(Si),d=ee(()=>{var m;return((m=l==null?void 0:l.root)==null?void 0:m.itemsRegistration.value)==="render"});function u(m){var v;["INPUT","TEXTAREA"].includes((v=m.target)==null?void 0:v.tagName)||s(!r.value,m)}const f=j(()=>({onClick:u,class:"v-list-group__header",id:o.value})),h=j(()=>r.value?e.collapseIcon:e.expandIcon),p=j(()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&h.value,appendIcon:e.appendIcon||!e.subgroup&&h.value,title:e.title,value:e.value}}));return tt(()=>B(e.tag,{class:Pe(["v-list-group",{"v-list-group--prepend":a==null?void 0:a.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class]),style:Xe(e.style)},{default:()=>[n.activator&&B(un,{defaults:p.value},{default:()=>[B(gA,null,{default:()=>[n.activator({props:f.value,isOpen:r.value})]})]}),B(Qs,{transition:{component:QR},disabled:!c.value},{default:()=>{var m,v;return[d.value?ws(se("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(m=n.default)==null?void 0:m.call(n)]),[[xf,r.value]]):r.value&&se("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(v=n.default)==null?void 0:v.call(n)])]}})]})),{isOpen:r}}}),yA=le({opacity:[Number,String],...ct(),...Mt()},"VListItemSubtitle"),bS=De()({name:"VListItemSubtitle",props:yA(),setup(e,t){let{slots:n}=t;return tt(()=>B(e.tag,{class:Pe(["v-list-item-subtitle",e.class]),style:Xe([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n)),{}}}),SS=Ff("v-list-item-title"),_A=le({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Et,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Et,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,prependGap:[Number,String],subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},value:null,onClick:vo(),onClickOnce:vo(),...Fi(),...ct(),...Ms(),...Hi(),...sa(),...gr(),...Jf(),...Mt(),...nn(),...Ps({variant:"text"})},"VListItem"),Cd=De()({name:"VListItem",directives:{vRipple:Uo},props:_A(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:s}=t;const i=Xf(e,n),o=j(()=>e.value===void 0?i.href.value:e.value),{activate:a,isActivated:c,select:l,isOpen:d,isSelected:u,isIndeterminate:f,isGroupActivator:h,root:p,parent:m,openOnSelect:v,id:g}=_S(o,()=>e.disabled,!1),y=hS(),_=j(()=>{var x;return e.active!==!1&&(e.active||((x=i.isActive)==null?void 0:x.value)||(p.activatable.value?c.value:u.value))}),S=ee(()=>e.link!==!1&&i.isLink.value),M=j(()=>!!y&&(p.selectable.value||p.activatable.value||e.value!=null)),R=j(()=>!e.disabled&&e.link!==!1&&(e.link||i.isClickable.value||M.value)),E=j(()=>y?S.value?"link":M.value?"option":"listitem":void 0),C=j(()=>{if(M.value)return p.activatable.value?c.value:p.selectable.value?u.value:_.value}),I=ee(()=>e.rounded||e.nav),A=ee(()=>e.color??e.activeColor),O=ee(()=>({color:_.value?A.value??e.baseColor:e.baseColor,variant:e.variant}));Se(()=>{var x;return(x=i.isActive)==null?void 0:x.value},x=>{x&&T()}),pl(()=>{var x;(x=i.isActive)!=null&&x.value&&vt(()=>T())});function T(){m.value!=null&&p.open(m.value,!0),v(!0)}const{themeClasses:P}=mn(e),{borderClasses:N}=$i(e),{colorClasses:z,colorStyles:X,variantClasses:q}=aa(O),{densityClasses:D}=Bi(e),{dimensionStyles:re}=Vi(e),{elevationClasses:U}=ia(e),{roundedClasses:ie}=vr(I),ae=ee(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),ue=ee(()=>e.ripple!==void 0&&e.ripple&&(y!=null&&y.filterable)?{keys:["Enter"]}:e.ripple),Ce=j(()=>({isActive:_.value,select:l,isOpen:d.value,isSelected:u.value,isIndeterminate:f.value}));function Ne(x){var W,K;s("click",x),!["INPUT","TEXTAREA"].includes((W=x.target)==null?void 0:W.tagName)&&R.value&&((K=i.navigate)==null||K.call(i,x),!h&&(p.activatable.value?a(!c.value,x):(p.selectable.value||e.value!=null&&!S.value)&&l(!u.value,x)))}function He(x){const W=x.target;["INPUT","TEXTAREA"].includes(W.tagName)||(x.key==="Enter"||x.key===" "&&!(y!=null&&y.filterable))&&(x.preventDefault(),x.stopPropagation(),x.target.dispatchEvent(new MouseEvent("click",x)))}return tt(()=>{const x=S.value?"a":e.tag,W=r.title||e.title!=null,K=r.subtitle||e.subtitle!=null,ne=!!(e.appendAvatar||e.appendIcon),ye=!!(ne||r.append),b=!!(e.prependAvatar||e.prependIcon),w=!!(b||r.prepend);return y==null||y.updateHasPrepend(w),e.activeColor&&F_("active-color",["color","base-color"]),ws(B(x,Qe(i.linkProps,{class:["v-list-item",{"v-list-item--active":_.value,"v-list-item--disabled":e.disabled,"v-list-item--link":R.value,"v-list-item--nav":e.nav,"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&_.value},P.value,N.value,z.value,D.value,U.value,ae.value,ie.value,q.value,e.class],style:[{"--v-list-prepend-gap":me(e.prependGap)},X.value,re.value,e.style],tabindex:R.value?y?-2:0:void 0,"aria-selected":C.value,role:E.value,onClick:Ne,onKeydown:R.value&&!S.value&&He}),{default:()=>{var k;return[oa(R.value||_.value,"v-list-item"),w&&se("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?B(un,{key:"prepend-defaults",disabled:!b,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var L;return[(L=r.prepend)==null?void 0:L.call(r,Ce.value)]}}):se(Ze,null,[e.prependAvatar&&B(Fc,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&B(Hn,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),se("div",{class:"v-list-item__spacer"},null)]),se("div",{class:"v-list-item__content","data-no-activator":""},[W&&B(SS,{key:"title"},{default:()=>{var L;return[((L=r.title)==null?void 0:L.call(r,{title:e.title}))??bn(e.title)]}}),K&&B(bS,{key:"subtitle"},{default:()=>{var L;return[((L=r.subtitle)==null?void 0:L.call(r,{subtitle:e.subtitle}))??bn(e.subtitle)]}}),(k=r.default)==null?void 0:k.call(r,Ce.value)]),ye&&se("div",{key:"append",class:"v-list-item__append"},[r.append?B(un,{key:"append-defaults",disabled:!ne,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var L;return[(L=r.append)==null?void 0:L.call(r,Ce.value)]}}):se(Ze,null,[e.appendIcon&&B(Hn,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&B(Fc,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),se("div",{class:"v-list-item__spacer"},null)])]}}),[[Uo,R.value&&ue.value]])}),{activate:a,isActivated:c,isGroupActivator:h,isSelected:u,list:y,select:l,root:p,id:g,link:i}}}),bA=le({color:String,inset:Boolean,sticky:Boolean,title:String,...ct(),...Mt()},"VListSubheader"),SA=De()({name:"VListSubheader",props:bA(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:s}=bi(()=>e.color);return tt(()=>{const i=!!(n.default||e.title);return B(e.tag,{class:Pe(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class]),style:Xe([{textColorStyles:s},e.style])},{default:()=>{var o;return[i&&se("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??e.title])]}})}),{}}}),EA=le({items:Array,returnObject:Boolean},"VListChildren"),ES=De()({name:"VListChildren",props:EA(),setup(e,t){let{slots:n}=t;return fS(),()=>{var r,s;return((r=n.default)==null?void 0:r.call(n))??((s=e.items)==null?void 0:s.map(i=>{var f,h;let{children:o,props:a,type:c,raw:l}=i;if(c==="divider")return((f=n.divider)==null?void 0:f.call(n,{props:a}))??B(dS,a,null);if(c==="subheader")return((h=n.subheader)==null?void 0:h.call(n,{props:a}))??B(SA,a,null);const d={subtitle:n.subtitle?p=>{var m;return(m=n.subtitle)==null?void 0:m.call(n,{...p,item:l})}:void 0,prepend:n.prepend?p=>{var m;return(m=n.prepend)==null?void 0:m.call(n,{...p,item:l})}:void 0,append:n.append?p=>{var m;return(m=n.append)==null?void 0:m.call(n,{...p,item:l})}:void 0,title:n.title?p=>{var m;return(m=n.title)==null?void 0:m.call(n,{...p,item:l})}:void 0},u=ag.filterProps(a);return o?B(ag,Qe(u,{value:e.returnObject?l:a==null?void 0:a.value,rawId:a==null?void 0:a.value}),{activator:p=>{let{props:m}=p;const v=Qe(a,m,{value:e.returnObject?l:a.value});return n.header?n.header({props:v}):B(Cd,v,d)},default:()=>B(ES,{items:o,returnObject:e.returnObject},n)}):n.item?n.item({props:a}):B(Cd,Qe(a,{value:e.returnObject?l:a.value}),d)}))}}}),wA=le({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},itemType:{type:[Boolean,String,Array,Function],default:"type"},returnObject:Boolean,valueComparator:Function},"list-items"),CA=new Set(["item","divider","subheader"]);function ui(e,t){const n=Nn(t,e.itemTitle,t),r=Nn(t,e.itemValue,n),s=Nn(t,e.itemChildren),i=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?As(t,["children"]):t:void 0:Nn(t,e.itemProps);let o=Nn(t,e.itemType,"item");CA.has(o)||(o="item");const a={title:n,value:r,...i};return{type:o,title:String(a.title??""),value:a.value,props:a,children:o==="item"&&Array.isArray(s)?wS(e,s):void 0,raw:t}}ui.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];function wS(e,t){const n=Pf(e,ui.neededProps),r=[];for(const s of t)r.push(ui(n,s));return r}function x4(e){const t=j(()=>wS(e,e.items)),n=j(()=>t.value.some(a=>a.value===null)),r=be(new Map),s=be([]);hn(()=>{const a=t.value,c=new Map,l=[];for(let d=0;d{let{raw:l}=c;return l}):a.map(c=>{let{value:l}=c;return l})}return{items:t,transformIn:i,transformOut:o}}const TA=new Set(["item","divider","subheader"]);function kA(e,t){const n=Ts(t)?t:Nn(t,e.itemTitle),r=Ts(t)?t:Nn(t,e.itemValue,void 0),s=Nn(t,e.itemChildren),i=e.itemProps===!0?As(t,["children"]):Nn(t,e.itemProps);let o=Nn(t,e.itemType,"item");TA.has(o)||(o="item");const a={title:n,value:r,...i};return{type:o,title:a.title,value:a.value,props:a,children:o==="item"&&s?CS(e,s):void 0,raw:t}}function CS(e,t){const n=[];for(const r of t)n.push(kA(e,r));return n}function IA(e){return{items:j(()=>CS(e,e.items))}}const xA=le({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:Et,collapseIcon:Et,lines:{type:[Boolean,String],default:"one"},slim:Boolean,prependGap:[Number,String],indent:[Number,String],nav:Boolean,"onClick:open":vo(),"onClick:select":vo(),"onUpdate:opened":vo(),...fA({selectStrategy:"single-leaf",openStrategy:"list"}),...Fi(),...ct(),...Ms(),...Hi(),...sa(),...wA(),...gr(),...Mt(),...nn(),...Ps({variant:"text"})},"VList"),RA=De()({name:"VList",props:xA(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=IA(e),{themeClasses:s}=mn(e),{backgroundColorClasses:i,backgroundColorStyles:o}=li(()=>e.bgColor),{borderClasses:a}=$i(e),{densityClasses:c}=Bi(e),{dimensionStyles:l}=Vi(e),{elevationClasses:d}=ia(e),{roundedClasses:u}=vr(e),{children:f,open:h,parents:p,select:m,getPath:v}=hA(e,r,()=>e.returnObject),g=ee(()=>e.lines?`v-list--${e.lines}-line`:void 0),y=ee(()=>e.activeColor),_=ee(()=>e.baseColor),S=ee(()=>e.color),M=ee(()=>e.selectable||e.activatable);fS({filterable:e.filterable}),vl({VListGroup:{activeColor:y,baseColor:_,color:S,expandIcon:ee(()=>e.expandIcon),collapseIcon:ee(()=>e.collapseIcon)},VListItem:{activeClass:ee(()=>e.activeClass),activeColor:y,baseColor:_,color:S,density:ee(()=>e.density),disabled:ee(()=>e.disabled),lines:ee(()=>e.lines),nav:ee(()=>e.nav),slim:ee(()=>e.slim),variant:ee(()=>e.variant)}});const R=be(!1),E=we();function C(N){R.value=!0}function I(N){R.value=!1}function A(N){var z;!R.value&&!(N.relatedTarget&&((z=E.value)!=null&&z.contains(N.relatedTarget)))&&P()}function O(N){const z=N.target;if(!(!E.value||z.tagName==="INPUT"&&["Home","End"].includes(N.key)||z.tagName==="TEXTAREA")){if(N.key==="ArrowDown")P("next");else if(N.key==="ArrowUp")P("prev");else if(N.key==="Home")P("first");else if(N.key==="End")P("last");else return;N.preventDefault()}}function T(N){R.value=!0}function P(N){if(E.value)return q_(E.value,N)}return tt(()=>{const N=e.indent??(e.prependGap?Number(e.prependGap)+24:void 0);return B(e.tag,{ref:E,class:Pe(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},s.value,i.value,a.value,c.value,d.value,g.value,u.value,e.class]),style:Xe([{"--v-list-indent":me(N),"--v-list-group-prepend":N?"0px":void 0,"--v-list-prepend-gap":me(e.prependGap)},o.value,l.value,e.style]),tabindex:e.disabled?-1:0,role:M.value?"listbox":"list","aria-activedescendant":void 0,onFocusin:C,onFocusout:I,onFocus:A,onKeydown:O,onMousedown:T},{default:()=>[B(ES,{items:r.value,returnObject:e.returnObject},n)]})}),{open:h,select:m,focus:P,children:f,parents:p,getPath:v}}});let Td=null;const TS={name:"RateLimitModal",data(){return{isVisible:!1,activeRequests:[]}},computed:{hasActiveRequests(){return this.activeRequests.length>0}},watch:{hasActiveRequests(e){this.isVisible=e}},methods:{close(){this.isVisible=!1},show(e,t,n){const r=Date.now()+Math.random().toString(36).substring(2,9),s=Math.max(0,Math.floor((new Date(e)-new Date)/1e3)),i={id:r,resetTime:e,path:t,method:n,remainingSeconds:s};this.activeRequests.push(i),this.startCountdown(r),this.isVisible=!0},startCountdown(e){const t=this.activeRequests.find(r=>r.id===e);if(!t)return;const n=setInterval(()=>{const r=this.activeRequests.findIndex(s=>s.id===e);if(r===-1){clearInterval(n);return}this.activeRequests[r].remainingSeconds--,this.activeRequests[r].remainingSeconds<=0&&(clearInterval(n),this.activeRequests.splice(r,1))},1e3);t.intervalId=n},clearAllCountdowns(){this.activeRequests.forEach(e=>{e.intervalId&&clearInterval(e.intervalId)}),this.activeRequests=[]}},beforeUnmount(){this.clearAllCountdowns()},created(){Td=this}};TS.show=function(e,t,n){Td&&Td.show(e,t,n)};const AA=TS,MA={class:"text-primary font-weight-bold"};function PA(e,t,n,r,s,i){return cn(),Dn(tA,{modelValue:e.isVisible,"onUpdate:modelValue":t[0]||(t[0]=o=>e.isVisible=o),"max-width":"500",persistent:""},{default:gt(()=>[B(sg,{class:"rate-limit-modal"},{default:gt(()=>[B(iS,{class:"text-center pa-4 bg-error text-white"},{default:gt(()=>[B(Hn,{class:"mr-2",icon:"mdi-clock-alert-outline",size:"large"}),t[1]||(t[1]=ao(" 请求频率超限 ",-1))]),_:1}),B(Ed,{class:"pa-6"},{default:gt(()=>[t[3]||(t[3]=se("div",{class:"text-body-1 mb-4"},"您的请求过于频繁,请稍后再试。",-1)),e.activeRequests.length>0?(cn(),Dn(sg,{key:0,class:"mb-4",flat:""},{default:gt(()=>[B(Ed,null,{default:gt(()=>[(cn(!0),T_(Ze,null,w1(e.activeRequests,(o,a)=>(cn(),Dn(RA,{key:a,class:"mb-4"},{default:gt(()=>[B(Cd,{color:"primary","prepend-icon":"mdi-web"},{default:gt(()=>[B(SS,null,{default:gt(()=>[t[2]||(t[2]=ao(" 等待时间: ",-1)),se("span",MA,bn(o.remainingSeconds),1)]),_:2},1024),B(bS,null,{default:gt(()=>[ao(bn(o.method)+" "+bn(o.path),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),e.index[B(sA),B(Yb,{color:"primary",variant:"tonal",onClick:e.close},{default:gt(()=>[...t[5]||(t[5]=[ao(" 我知道了",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const OA=Lb(AA,[["render",PA]]),LA=le({...ct(),...As(Gk(),["fullHeight"]),...nn()},"VApp"),NA=De()({name:"VApp",props:LA(),setup(e,t){let{slots:n}=t;const r=mn(e),{layoutClasses:s,getLayoutItem:i,items:o,layoutRef:a}=Xk({...e,fullHeight:!0}),{rtlClasses:c}=na();return tt(()=>{var l;return se("div",{ref:a,class:Pe(["v-application",r.themeClasses.value,s.value,c.value,e.class]),style:Xe([e.style])},[se("div",{class:"v-application__wrap"},[(l=n.default)==null?void 0:l.call(n)])])}),{getLayoutItem:i,items:o,theme:r}}}),DA={__name:"App",setup(e){const t=pb();return zr(()=>{const n=zf("theme.mode");t.global.name.value=n,window.addEventListener("beforeinstallprompt",r=>{r.preventDefault(),window.deferredPwaPrompt=r,window.dispatchEvent(new Event("pwa-prompt-ready"))})}),(n,r)=>{const s=E1("router-view"),i=rS;return cn(),Dn(NA,null,{default:gt(()=>[B(s,null,{default:gt(({Component:o,route:a})=>[B(Br,{mode:"out-in",name:"md3"},{default:gt(()=>[(cn(),Dn(o_(o),{key:a.path}))]),_:2},1024)]),_:1}),B(i),B(OA)]),_:1})}}};let _u;const cg=e=>({get:async()=>({visitorId:"unknown",error:(e==null?void 0:e.message)||String(e||""),fallback:!0})}),FA=async()=>{try{const e=await yt(()=>import("./fp.esm-HJFDfcHo.js"),[],import.meta.url);return(e==null?void 0:e.default)||e}catch(e){return console.warn("Fingerprint library blocked or failed to load; using fallback agent.",e),null}},kS=()=>(_u||(_u=(async()=>{const e=await FA();if(!e)return cg(new Error("fingerprint module unavailable"));try{return await e.load()}catch(t){return console.warn("FingerprintJS.load failed, using fallback agent.",t),cg(t)}})()),_u),IS=async()=>{const t=await(await kS()).get();return(t==null?void 0:t.visitorId)||"unknown"},R4=async()=>await(await kS()).get(),ce=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,xe=globalThis,ys="10.38.0";function Os(){return kl(xe),xe}function kl(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ys,t[ys]=t[ys]||{}}function Ui(e,t,n=xe){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[ys]=r[ys]||{};return s[e]||(s[e]=t())}const $A=["debug","info","warn","error","log","assert","trace"],BA="Sentry Logger ",$c={};function yr(e){if(!("console"in xe))return e();const t=xe.console,n={},r=Object.keys($c);r.forEach(s=>{const i=$c[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function HA(){sh().enabled=!0}function VA(){sh().enabled=!1}function xS(){return sh().enabled}function UA(...e){rh("log",...e)}function WA(...e){rh("warn",...e)}function jA(...e){rh("error",...e)}function rh(e,...t){ce&&xS()&&yr(()=>{xe.console[e](`${BA}[${e}]:`,...t)})}function sh(){return ce?Ui("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const J={enable:HA,disable:VA,isEnabled:xS,log:UA,warn:WA,error:jA},RS=50,ks="?",lg=/\(error: (.*)\)/,ug=/captureMessage|captureException/;function AS(...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(` `);for(let a=r;a1024&&(c=c.slice(0,1024));const l=lg.test(c)?c.replace(lg,"$1"):c;if(!l.match(/\S*Error: /)){for(const d of t){const u=d(l);if(u){i.push(u);break}}if(i.length>=RS+s)break}}return qA(i.slice(s))}}function zA(e){return Array.isArray(e)?AS(...e):e}function qA(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Oa(t).function||"")&&t.pop(),t.reverse(),ug.test(Oa(t).function||"")&&(t.pop(),ug.test(Oa(t).function||"")&&t.pop()),t.slice(0,RS).map(n=>({...n,filename:n.filename||Oa(t).filename,function:n.function||ks}))}function Oa(e){return e[e.length-1]||{}}const bu="";function ar(e){try{return!e||typeof e!="function"?bu:e.name||bu}catch{return bu}}function dg(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}}}function MS(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const tc={},fg={};function Kr(e,t){tc[e]=tc[e]||[],tc[e].push(t)}function Yr(e,t){if(!fg[e]){fg[e]=!0;try{t()}catch(n){ce&&J.error(`Error while instrumenting ${e}`,n)}}}function dn(e,t){const n=e&&tc[e];if(n)for(const r of n)try{r(t)}catch(s){ce&&J.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${ar(r)} Error:`,s)}}let Su=null;function PS(e){const t="error";Kr(t,e),Yr(t,GA)}function GA(){Su=xe.onerror,xe.onerror=function(e,t,n,r,s){return dn("error",{column:r,error:s,line:n,msg:e,url:t}),Su?Su.apply(this,arguments):!1},xe.onerror.__SENTRY_INSTRUMENTED__=!0}let Eu=null;function OS(e){const t="unhandledrejection";Kr(t,e),Yr(t,KA)}function KA(){Eu=xe.onunhandledrejection,xe.onunhandledrejection=function(e){return dn("unhandledrejection",e),Eu?Eu.apply(this,arguments):!0},xe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const LS=Object.prototype.toString;function Il(e){switch(LS.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return cr(e,Error)}}function Wi(e,t){return LS.call(e)===`[object ${t}]`}function NS(e){return Wi(e,"ErrorEvent")}function hg(e){return Wi(e,"DOMError")}function YA(e){return Wi(e,"DOMException")}function Qn(e){return Wi(e,"String")}function ih(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ei(e){return e===null||ih(e)||typeof e!="object"&&typeof e!="function"}function Wo(e){return Wi(e,"Object")}function xl(e){return typeof Event<"u"&&cr(e,Event)}function XA(e){return typeof Element<"u"&&cr(e,Element)}function JA(e){return Wi(e,"RegExp")}function ji(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function ZA(e){return Wo(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function cr(e,t){try{return e instanceof t}catch{return!1}}function DS(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function oh(e){return typeof Request<"u"&&cr(e,Request)}const ah=xe,QA=80;function zt(e,t={}){if(!e)return"";try{let n=e;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||QA;for(;n&&i++1&&o+s.length*c+l.length>=u));)s.push(l),o+=l.length,n=n.parentNode;return s.reverse().join(a)}catch{return""}}function eM(e,t){const n=e,r=[];if(!(n!=null&&n.tagName))return"";if(ah.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!=null&&t.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s!=null&&s.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&Qn(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 Ls(){try{return ah.document.location.href}catch{return""}}function FS(e){if(!ah.HTMLElement)return null;let t=e;const n=5;for(let r=0;r"}}function mg(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 tM(e){const t=Object.keys(BS(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let Us;function ca(e){if(Us!==void 0)return Us?Us(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=xe;return t in n&&typeof n[t]=="function"?(Us=n[t],Us(e)):(Us=null,e())}function Lr(){return ca(()=>Math.random())}function la(){return ca(()=>Date.now())}function kd(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function gg(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rnc(e,r,n))}function nM(){const e=xe;return e.crypto||e.msCrypto}let wu;function rM(){return Lr()*16}function tn(e=nM()){try{if(e!=null&&e.randomUUID)return ca(()=>e.randomUUID()).replace(/-/g,"")}catch{}return wu||(wu="10000000100040008000"+1e11),wu.replace(/[018]/g,t=>(t^(rM()&15)>>t/4).toString(16))}function HS(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function as(e){const{message:t,event_id:n}=e;if(t)return t;const r=HS(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Id(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 wi(e,t){const n=HS(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==null?void 0:s.data,...t.data};n.mechanism.data=i}}function vg(e){if(sM(e))return!0;try{qt(e,"__sentry_captured__",!0)}catch{}return!1}function sM(e){try{return e.__sentry_captured__}catch{}}const VS=1e3;function Ns(){return la()/VS}function iM(){const{performance:e}=xe;if(!(e!=null&&e.now)||!e.timeOrigin)return Ns;const t=e.timeOrigin;return()=>(t+ca(()=>e.now()))/VS}let yg;function lt(){return(yg??(yg=iM()))()}let Cu=null;function oM(){var o;const{performance:e}=xe;if(!(e!=null&&e.now))return;const t=3e5,n=ca(()=>e.now()),r=la(),s=e.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)lM(n)};return e&&Ci(n,e),n}function Ci(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||lt(),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:tn()),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 cM(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Ci(e,n)}function lM(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 ua(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]=ua(r[s],t[s],n-1));return r}function lr(){return tn()}function tr(){return tn().substring(16)}const xd="_sentrySpan";function Ti(e,t){t?qt(e,xd,t):delete e[xd]}function Bc(e){return e[xd]}const uM=100;class Vn{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:lr(),sampleRand:Lr()}}clone(){const t=new Vn;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Ti(t,Bc(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&&Ci(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],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 Vn?n.getScopeData():Wo(n)?t:void 0,{tags:s,attributes:i,extra:o,user:a,contexts:c,level:l,fingerprint:d=[],propagationContext:u,conversationId:f}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),d.length&&(this._fingerprint=d),u&&(this._propagationContext=u),f&&(this._conversationId=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Ti(this,void 0),this._attachments=[],this.setPropagationContext({traceId:lr(),sampleRand:Lr()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var i;const r=typeof n=="number"?n:uM;if(r<=0)return this;const s={timestamp:Ns(),...t,message:t.message?kd(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(i=this._client)==null||i.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,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Bc(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=ua(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=(n==null?void 0:n.event_id)||tn();if(!this._client)return ce&&J.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==null?void 0:r.event_id)||tn();if(!this._client)return ce&&J.warn("No client configured on scope - will not capture message!"),s;const i=(r==null?void 0:r.syntheticException)??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==null?void 0:n.event_id)||tn();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(ce&&J.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function dM(){return Ui("defaultCurrentScope",()=>new Vn)}function fM(){return Ui("defaultIsolationScope",()=>new Vn)}class hM{constructor(t,n){let r;t?r=t:r=new Vn;let s;n?s=n:s=new Vn,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 ji(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 ki(){const e=Os(),t=kl(e);return t.stack=t.stack||new hM(dM(),fM())}function pM(e){return ki().withScope(e)}function mM(e,t){const n=ki();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function _g(e){return ki().withScope(()=>e(ki().getIsolationScope()))}function gM(){return{withIsolationScope:_g,withScope:pM,withSetScope:mM,withSetIsolationScope:(e,t)=>_g(t),getCurrentScope:()=>ki().getScope(),getIsolationScope:()=>ki().getIsolationScope()}}function zi(e){const t=kl(e);return t.acs?t.acs:gM()}function Me(){const e=Os();return zi(e).getCurrentScope()}function Kt(){const e=Os();return zi(e).getIsolationScope()}function US(){return Ui("globalScope",()=>new Vn)}function Rl(...e){const t=Os(),n=zi(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function Ee(){return Me().getClient()}function vM(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=t,i={trace_id:n,span_id:s||tr()};return r&&(i.parent_span_id=r),i}const jt="sentry.source",lh="sentry.sample_rate",WS="sentry.previous_trace_sample_rate",ur="sentry.op",st="sentry.origin",jo="sentry.idle_span_finish_reason",da="sentry.measurement_unit",fa="sentry.measurement_value",bg="sentry.custom_span_name",uh="sentry.profile_id",qi="sentry.exclusive_time",yM="sentry.link.type",_M="gen_ai.conversation.id",bM=0,dh=1,ht=2;function SM(e){if(e<400&&e>=100)return{code:dh};if(e>=400&&e<500)switch(e){case 401:return{code:ht,message:"unauthenticated"};case 403:return{code:ht,message:"permission_denied"};case 404:return{code:ht,message:"not_found"};case 409:return{code:ht,message:"already_exists"};case 413:return{code:ht,message:"failed_precondition"};case 429:return{code:ht,message:"resource_exhausted"};case 499:return{code:ht,message:"cancelled"};default:return{code:ht,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:ht,message:"unimplemented"};case 503:return{code:ht,message:"unavailable"};case 504:return{code:ht,message:"deadline_exceeded"};default:return{code:ht,message:"internal_error"}}return{code:ht,message:"internal_error"}}function jS(e,t){e.setAttribute("http.response.status_code",t);const n=SM(t);n.message!=="unknown_error"&&e.setStatus(n)}const zS="_sentryScope",qS="_sentryIsolationScope";function EM(e){try{const t=xe.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function wM(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function CM(e,t,n){e&&(qt(e,qS,EM(n)),qt(e,zS,t))}function Hc(e){const t=e;return{scope:t[zS],isolationScope:wM(t[qS])}}const fh="sentry-",TM=/^sentry-/,kM=8192;function GS(e){const t=xM(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,i])=>{if(s.match(TM)){const o=s.slice(fh.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function IM(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${fh}${r}`]=s),n),{});return RM(t)}function xM(e){if(!(!e||!Qn(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Sg(n);return Object.entries(r).forEach(([s,i])=>{t[s]=i}),t},{}):Sg(e)}function Sg(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),{})}function RM(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>kM?(ce&&J.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const AM=/^o(\d+)\./,MM=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function PM(e){return e==="http"||e==="https"}function Gi(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 OM(e){const t=MM.exec(e);if(!t){yr(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",i="",o="",a=""]=t.slice(1);let c="",l=a;const d=l.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),l=d.pop()),l){const u=l.match(/^\d+/);u&&(l=u[0])}return KS({host:i,pass:s,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function KS(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function LM(e){if(!ce)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(J.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?PM(r)?t&&isNaN(parseInt(t,10))?(J.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(J.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(J.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function NM(e){const t=e.match(AM);return t==null?void 0:t[1]}function DM(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=NM(n)),r}function FM(e){const t=typeof e=="string"?OM(e):KS(e);if(!(!t||!LM(t)))return t}function Is(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 YS=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function $M(e){if(!e)return;const t=e.match(YS);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 BM(e,t){const n=$M(e),r=GS(t);if(!(n!=null&&n.traceId))return{traceId:lr(),sampleRand:Lr()};const s=HM(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 XS(e=lr(),t=tr(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function JS(e=lr(),t=tr(),n){return`00-${e}-${t}-${n?"01":"00"}`}function HM(e,t){const n=Is(t==null?void 0:t.sample_rand);if(n!==void 0)return n;const r=Is(t==null?void 0:t.sample_rate);return r&&(e==null?void 0:e.parentSampled)!==void 0?e.parentSampled?Lr()*r:r+Lr()*(1-r):Lr()}const ZS=0,hh=1;let Eg=!1;function VM(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:a,links:c}=Re(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:s,status:o,origin:a,links:c}}function UM(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:Re(e).parent_span_id,i=Hc(e).scope,o=r?(i==null?void 0:i.getPropagationContext().propagationSpanId)||tr():t;return{parent_span_id:s,span_id:o,trace_id:n}}function WM(e){const{traceId:t,spanId:n}=e.spanContext(),r=Xr(e);return XS(t,n,r)}function jM(e){const{traceId:t,spanId:n}=e.spanContext(),r=Xr(e);return JS(t,n,r)}function QS(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===hh,attributes:i,...s}))}function _s(e){return typeof e=="number"?wg(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?wg(e.getTime()):lt()}function wg(e){return e>9999999999?e/1e3:e}function Re(e){var r;if(qM(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(zM(e)){const{attributes:s,startTime:i,name:o,endTime:a,status:c,links:l}=e,d="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(r=e.parentSpanContext)==null?void 0:r.spanId:void 0;return{span_id:t,trace_id:n,data:s,description:o,parent_span_id:d,start_timestamp:_s(i),timestamp:_s(a)||void 0,status:e0(c),op:s[ur],origin:s[st],links:QS(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function zM(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function qM(e){return typeof e.getSpanJSON=="function"}function Xr(e){const{traceFlags:t}=e.spanContext();return t===hh}function e0(e){if(!(!e||e.code===bM))return e.code===dh?"ok":e.message||"internal_error"}const bs="_sentryChildSpans",Rd="_sentryRootSpan";function t0(e,t){const n=e[Rd]||e;qt(t,Rd,n),e[bs]?e[bs].add(t):qt(e,bs,new Set([t]))}function GM(e,t){e[bs]&&e[bs].delete(t)}function rc(e){const t=new Set;function n(r){if(!t.has(r)&&Xr(r)){t.add(r);const s=r[bs]?Array.from(r[bs]):[];for(const i of s)n(i)}}return n(e),Array.from(t)}function wt(e){return e[Rd]||e}function Tt(){const e=Os(),t=zi(e);return t.getActiveSpan?t.getActiveSpan():Bc(Me())}function Ad(){Eg||(yr(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Eg=!0)}let Cg=!1;function KM(){if(Cg)return;function e(){const t=Tt(),n=t&&wt(t);if(n){const r="internal_error";ce&&J.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:ht,message:r})}}e.tag="sentry_tracingErrorCallback",Cg=!0,PS(e),OS(e)}function fn(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||((n=Ee())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Tg(e){J.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Vc(e,t){if(!(t!=null&&t.length)||!e.description)return!1;for(const n of t){if(XM(n)){if(nc(e.description,n))return ce&&Tg(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?nc(e.description,n.name):!0,s=n.op?e.op&&nc(e.op,n.op):!0;if(r&&s)return ce&&Tg(e),!0}return!1}function YM(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 XM(e){return typeof e=="string"||e instanceof RegExp}const ph="production",n0="_frozenDsc";function sc(e,t){qt(e,n0,t)}function r0(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s={environment:n.environment||ph,release:n.release,public_key:r,trace_id:e,org_id:DM(t)};return t.emit("createDsc",s),s}function s0(e,t){const n=t.getPropagationContext();return n.dsc||r0(n.traceId,e)}function dr(e){var p;const t=Ee();if(!t)return{};const n=wt(e),r=Re(n),s=r.data,i=n.spanContext().traceState,o=(i==null?void 0:i.get("sentry.sample_rate"))??s[lh]??s[WS];function a(m){return(typeof o=="number"||typeof o=="string")&&(m.sample_rate=`${o}`),m}const c=n[n0];if(c)return a(c);const l=i==null?void 0:i.get("sentry.dsc"),d=l&&GS(l);if(d)return a(d);const u=r0(e.spanContext().traceId,t),f=s[jt],h=r.description;return f!=="url"&&h&&(u.transaction=h),fn()&&(u.sampled=String(Xr(n)),u.sample_rand=(i==null?void 0:i.get("sentry.sample_rand"))??((p=Hc(n).scope)==null?void 0:p.getPropagationContext().sampleRand.toString())),a(u),t.emit("createDsc",u,n),u}class Hr{constructor(t={}){this._traceId=t.traceId||lr(),this._spanId=t.spanId||tr()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:ZS}}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 vn(e,t=100,n=1/0){try{return Md("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function i0(e,t=3,n=100*1024){const r=vn(e,t);return eP(r)>n?i0(e,t-1,n):r}function Md(e,t,n=1/0,r=1/0,s=tP()){const[i,o]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=JM(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 l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return Md("",h,c-1,r,s)}catch{}const d=Array.isArray(t)?[]:{};let u=0;const f=BS(t);for(const h in f){if(!Object.prototype.hasOwnProperty.call(f,h))continue;if(u>=r){d[h]="[MaxProperties ~]";break}const p=f[h];d[h]=Md(h,p,c-1,r,s),u++}return o(t),d}function JM(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(DS(t))return MS(t);if(ZA(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${ar(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=ZM(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function ZM(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function QM(e){return~-encodeURI(e).split(/%..|./).length}function eP(e){return QM(JSON.stringify(e))}function tP(){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 Jr(e,t=[]){return[e,t]}function nP(e,t){const[n,r]=e;return[n,[...r,t]]}function Pd(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 rP(e,t){return Pd(e,(n,r)=>t.includes(r))}function Od(e){const t=kl(xe);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function sP(e){const[t,n]=e;let r=JSON.stringify(t);function s(i){typeof r=="string"?r=typeof i=="string"?r+i:[Od(r),i]:r.push(typeof i=="string"?Od(i):i)}for(const i of n){const[o,a]=i;if(s(` ${JSON.stringify(o)} `),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(vn(a))}s(c)}}return typeof r=="string"?r:iP(r)}function iP(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 oP(e){return[{type:"span"},e]}function aP(e){const t=typeof e.data=="string"?Od(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const cP={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 kg(e){return cP[e]}function mh(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function o0(e,t,n,r){var i;const s=(i=e.sdkProcessingMetadata)==null?void 0:i.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Gi(r)},...s&&{trace:s}}}function lP(e,t){var r,s,i,o;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((r=e.sdk)==null?void 0:r.integrations)||[],...t.integrations||[]],packages:[...((s=e.sdk)==null?void 0:s.packages)||[],...t.packages||[]],settings:(i=e.sdk)!=null&&i.settings||t.settings?{...(o=e.sdk)==null?void 0:o.settings,...t.settings}:void 0},e}function uP(e,t,n,r){const s=mh(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Gi(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Jr(i,[o])}function dP(e,t,n,r){const s=mh(n),i=e.type&&e.type!=="replay_event"?e.type:"event";lP(e,n==null?void 0:n.sdk);const o=o0(e,s,r,t);return delete e.sdkProcessingMetadata,Jr(o,[[{type:i},e]])}function fP(e,t){function n(h){return!!h.trace_id&&!!h.public_key}const r=dr(e[0]),s=t==null?void 0:t.getDsn(),i=t==null?void 0:t.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&s&&{dsn:Gi(s)}},{beforeSendSpan:a,ignoreSpans:c}=(t==null?void 0:t.getOptions())||{},l=c!=null&&c.length?e.filter(h=>!Vc(Re(h),c)):e,d=e.length-l.length;d&&(t==null||t.recordDroppedEvent("before_send","span",d));const u=a?h=>{const p=Re(h),m=a(p);return m||(Ad(),p)}:Re,f=[];for(const h of l){const p=u(h);p&&f.push(oP(p))}return Jr(o,f)}function hP(e){if(!ce)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Re(e),{spanId:s}=e.spanContext(),i=Xr(e),o=wt(e),a=o===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&l.push(`parent ID: ${r}`),!a){const{op:d,description:u}=Re(o);l.push(`root ID: ${o.spanContext().spanId}`),d&&l.push(`root op: ${d}`),u&&l.push(`root description: ${u}`)}J.log(`${c} ${l.join(` `)}`)}function pP(e){if(!ce)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Re(e),{spanId:r}=e.spanContext(),i=wt(e)===e,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;J.log(o)}function mP(e,t,n,r=Tt()){const s=r&&wt(r);s&&(ce&&J.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[fa]:t,[da]:n}))}function Ig(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[da],i=r[fa];typeof s=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:s})}),t}const xg=1e3;class Al{constructor(t={}){this._traceId=t.traceId||lr(),this._spanId=t.spanId||tr(),this._startTime=t.startTimestamp||lt(),this._links=t.links,this._attributes={},this.setAttributes({[st]:"manual",[ur]: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?hh:ZS}}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=_s(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(jt,"custom"),this}end(t){this._endTime||(this._endTime=_s(t),pP(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ur],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:e0(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[st],profile_id:this._attributes[uh],exclusive_time:this._attributes[qi],measurements:Ig(this._events),is_segment:this._isStandaloneSpan&&wt(this)===this||void 0,segment_id:this._isStandaloneSpan?wt(this).spanContext().spanId:void 0,links:QS(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){ce&&J.log("[Tracing] Adding an event to span:",t);const s=Rg(n)?n:r||lt(),i=Rg(n)?{}:n||{},o={name:t,time:_s(s),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Ee();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===wt(this)))return;if(this._isStandaloneSpan){this._sampled?vP(fP([this],t)):(ce&&J.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&&(Hc(this).scope||Me()).captureEvent(r)}_convertSpanToTransaction(){var d;if(!Ag(Re(this)))return;this._name||(ce&&J.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:t,isolationScope:n}=Hc(this),r=(d=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:d.normalizedRequest;if(this._sampled!==!0)return;const i=rc(this).filter(u=>u!==this&&!gP(u)).map(u=>Re(u)).filter(Ag),o=this._attributes[jt];delete this._attributes[bg],i.forEach(u=>{delete u.data[bg]});const a={contexts:{trace:VM(this)},spans:i.length>xg?i.sort((u,f)=>u.start_timestamp-f.start_timestamp).slice(0,xg):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:dr(this)},request:r,...o&&{transaction_info:{source:o}}},c=Ig(this._events);return c&&Object.keys(c).length&&(ce&&J.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}}function Rg(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Ag(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function gP(e){return e instanceof Al&&e.isStandaloneSpan()}function vP(e){const t=Ee();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function yP(e,t,n=()=>{},r=()=>{}){let s;try{s=e()}catch(i){throw t(i),n(),i}return _P(s,t,n,r)}function _P(e,t,n,r){return ji(e)?e.then(s=>(n(),r(s),s),s=>{throw t(s),n(),s}):(n(),r(e),e)}function bP(e,t,n){if(!fn(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=Is(s);if(i===void 0)return ce&&J.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 ce&&J.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=nwP(i)(()=>{const l=Me(),d=u0(l,i),f=e.onlyIfParent&&!d?new Hr:c0({parentSpan:d,spanArguments:r,forceTransaction:s,scope:l});return Ti(l,f),yP(()=>t(f),()=>{const{status:h}=Re(f);f.isRecording()&&(!h||h==="ok")&&f.setStatus({code:ht,message:"internal_error"})},()=>{f.end()})}))}function Vr(e){const t=vh();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=l0(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?o=>Rl(e.scope,o):s!==void 0?o=>gh(s,o):o=>o())(()=>{const o=Me(),a=u0(o,s);return e.onlyIfParent&&!a?new Hr:c0({parentSpan:a,spanArguments:n,forceTransaction:r,scope:o})})}function gh(e,t){const n=vh();return n.withActiveSpan?n.withActiveSpan(e,t):Rl(r=>(Ti(r,e||void 0),t(r)))}function c0({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!fn()){const o=new Hr;if(n||!e){const a={sampled:"false",sample_rate:"0",transaction:t.name,...dr(o)};sc(o,a)}return o}const s=Kt();let i;if(e&&!n)i=EP(e,r,t),t0(e,i);else if(e){const o=dr(e),{traceId:a,spanId:c}=e.spanContext(),l=Xr(e);i=Mg({traceId:a,parentSpanId:c,...t},r,l),sc(i,o)}else{const{traceId:o,dsc:a,parentSpanId:c,sampled:l}={...s.getPropagationContext(),...r.getPropagationContext()};i=Mg({traceId:o,parentSpanId:c,...t},r,l),a&&sc(i,a)}return hP(i),CM(i,r,s),i}function l0(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=_s(e.startTime),delete r.startTime,r}return n}function vh(){const e=Os();return zi(e)}function Mg(e,t,n){var p;const r=Ee(),s=(r==null?void 0:r.getOptions())||{},{name:i=""}=e,o={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};r==null||r.emit("beforeSampling",o,{decision:!1});const a=o.parentSampled??n,c=o.spanAttributes,l=t.getPropagationContext(),[d,u,f]=t.getScopeData().sdkProcessingMetadata[a0]?[!1]:bP(s,{name:i,parentSampled:a,attributes:c,parentSampleRate:Is((p=l.dsc)==null?void 0:p.sample_rate)},l.sampleRand),h=new Al({...e,attributes:{[jt]:"custom",[lh]:u!==void 0&&f?u:void 0,...c},sampled:d});return!d&&r&&(ce&&J.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",h),h}function EP(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[a0]?!1:Xr(e),o=i?new Al({...n,parentSpanId:r,traceId:s,sampled:i}):new Hr({traceId:s});t0(e,o);const a=Ee();return a&&(a.emit("spanStart",o),n.endTimestamp&&a.emit("spanEnd",o)),o}function u0(e,t){if(t)return t;if(t===null)return;const n=Bc(e);if(!n)return;const r=Ee();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?wt(n):n}function wP(e){return e!==void 0?t=>gh(e,t):t=>t()}const ic={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},CP="heartbeatFailed",TP="idleTimeout",kP="finalTimeout",IP="externalFinish";function d0(e,t={}){const n=new Map;let r=!1,s,i=IP,o=!t.disableAutoFinish;const a=[],{idleTimeout:c=ic.idleTimeout,finalTimeout:l=ic.finalTimeout,childSpanTimeout:d=ic.childSpanTimeout,beforeSpanEnd:u,trimIdleSpanEndTimestamp:f=!0}=t,h=Ee();if(!h||!fn()){const E=new Hr,C={sample_rate:"0",sampled:"false",...dr(E)};return sc(E,C),E}const p=Me(),m=Tt(),v=xP(e);v.end=new Proxy(v.end,{apply(E,C,I){if(u&&u(v),C instanceof Hr)return;const[A,...O]=I,T=A||lt(),P=_s(T),N=rc(v).filter(U=>U!==v),z=Re(v);if(!N.length||!f)return R(P),Reflect.apply(E,C,[P,...O]);const X=h.getOptions().ignoreSpans,q=N==null?void 0:N.reduce((U,ie)=>{const ae=Re(ie);return!ae.timestamp||X&&Vc(ae,X)?U:U?Math.max(U,ae.timestamp):ae.timestamp},void 0),D=z.start_timestamp,re=Math.min(D?D+l/1e3:1/0,Math.max(D||-1/0,Math.min(P,q||1/0)));return R(re),Reflect.apply(E,C,[re,...O])}});function g(){s&&(clearTimeout(s),s=void 0)}function y(E){g(),s=setTimeout(()=>{!r&&n.size===0&&o&&(i=TP,v.end(E))},c)}function _(E){s=setTimeout(()=>{!r&&o&&(i=CP,v.end(E))},d)}function S(E){g(),n.set(E,!0);const C=lt();_(C+d/1e3)}function M(E){if(n.has(E)&&n.delete(E),n.size===0){const C=lt();y(C+c/1e3)}}function R(E){r=!0,n.clear(),a.forEach(N=>N()),Ti(p,m);const C=Re(v),{start_timestamp:I}=C;if(!I)return;C.data[jo]||v.setAttribute(jo,i);const O=C.status;(!O||O==="unknown")&&v.setStatus({code:dh}),J.log(`[Tracing] Idle span "${C.op}" finished`);const T=rc(v).filter(N=>N!==v);let P=0;T.forEach(N=>{N.isRecording()&&(N.setStatus({code:ht,message:"cancelled"}),N.end(E),ce&&J.log("[Tracing] Cancelling span since span ended early",JSON.stringify(N,void 0,2)));const z=Re(N),{timestamp:X=0,start_timestamp:q=0}=z,D=q<=E,re=(l+c)/1e3,U=X-q<=re;if(ce){const ie=JSON.stringify(N,void 0,2);D?U||J.log("[Tracing] Discarding span since it finished after idle span final timeout",ie):J.log("[Tracing] Discarding span since it happened after idle span was finished",ie)}(!U||!D)&&(GM(v,N),P++)}),P>0&&v.setAttribute("sentry.idle_span_discarded_spans",P)}return a.push(h.on("spanStart",E=>{if(r||E===v||Re(E).timestamp||E instanceof Al&&E.isStandaloneSpan())return;rc(v).includes(E)&&S(E.spanContext().spanId)})),a.push(h.on("spanEnd",E=>{r||M(E.spanContext().spanId)})),a.push(h.on("idleSpanEnableAutoFinish",E=>{E===v&&(o=!0,y(),n.size&&_())})),t.disableAutoFinish||y(),setTimeout(()=>{r||(v.setStatus({code:ht,message:"deadline_exceeded"}),i=kP,v.end())},l),v}function xP(e){const t=Vr(e);return Ti(Me(),t),ce&&J.log("[Tracing] Started span is an idle span"),t}const Tu=0,Pg=1,Og=2;function Ml(e){return new zo(t=>{t(e)})}function yh(e){return new zo((t,n)=>{n(e)})}class zo{constructor(t){this._state=Tu,this._handlers=[],this._runExecutor(t)}then(t,n){return new zo((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 zo((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===Tu)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Pg&&n[1](this._value),this._state===Og&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,o)=>{if(this._state===Tu){if(ji(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(Pg,i)},s=i=>{n(Og,i)};try{t(r,s)}catch(i){s(i)}}}function RP(e,t,n,r=0){try{const s=Ld(t,n,e,r);return ji(s)?s:Ml(s)}catch(s){return yh(s)}}function Ld(e,t,n,r){const s=n[r];if(!e||!s)return e;const i=s({...e},t);return ce&&i===null&&J.log(`Event processor "${s.id||"?"}" dropped event`),ji(i)?i.then(o=>Ld(o,t,n,r+1)):Ld(i,t,n,r+1)}let zn,Lg,Ng,Sr;function AP(e){const t=xe._sentryDebugIds,n=xe._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(Sr&&r.length===Lg&&s.length===Ng)return Sr;Lg=r.length,Ng=s.length,Sr={},zn||(zn={});const i=(o,a)=>{for(const c of o){const l=a[c],d=zn==null?void 0:zn[c];if(d&&Sr&&l)Sr[d[0]]=l,zn&&(zn[c]=[d[0],l]);else if(l){const u=e(c);for(let f=u.length-1;f>=0;f--){const h=u[f],p=h==null?void 0:h.filename;if(p&&Sr&&zn){Sr[p]=l,zn[c]=[p,l];break}}}}};return t&&i(r,t),n&&i(s,n),Sr}function MP(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;OP(e,t),r&&DP(e,r),FP(e,n),LP(e,s),NP(e,i)}function Dg(e,t){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:d,eventProcessors:u,attachments:f,propagationContext:h,transactionName:p,span:m}=t;so(e,"extra",n),so(e,"tags",r),so(e,"attributes",s),so(e,"user",i),so(e,"contexts",o),e.sdkProcessingMetadata=ua(e.sdkProcessingMetadata,c,2),a&&(e.level=a),p&&(e.transactionName=p),m&&(e.span=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...h}}function so(e,t,n){e[t]=ua(e[t],n,1)}function PP(e,t){const n=US().getScopeData();return e&&Dg(n,e.getScopeData()),t&&Dg(n,t.getScopeData()),n}function OP(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 LP(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function NP(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function DP(e,t){e.contexts={trace:UM(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:dr(t),...e.sdkProcessingMetadata};const n=wt(t),r=Re(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function FP(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}function f0(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||tn(),timestamp:t.timestamp||Ns()},l=n.integrations||e.integrations.map(v=>v.name);$P(c,e),VP(c,l),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&BP(c,e.stackParser);const d=WP(r,n.captureContext);n.mechanism&&wi(c,n.mechanism);const u=s?s.getEventProcessors():[],f=PP(i,d),h=[...n.attachments||[],...f.attachments];h.length&&(n.attachments=h),MP(c,f);const p=[...u,...f.eventProcessors];return RP(p,c,n).then(v=>(v&&HP(v),typeof o=="number"&&o>0?UP(v,o,a):v))}function $P(e,t){var a,c;const{environment:n,release:r,dist:s,maxValueLength:i}=t;e.environment=e.environment||n||ph,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const o=e.request;o!=null&&o.url&&i&&(o.url=kd(o.url,i)),i&&((c=(a=e.exception)==null?void 0:a.values)==null||c.forEach(l=>{l.value&&(l.value=kd(l.value,i))}))}function BP(e,t){var r,s;const n=AP(t);(s=(r=e.exception)==null?void 0:r.values)==null||s.forEach(i=>{var o,a;(a=(o=i.stacktrace)==null?void 0:o.frames)==null||a.forEach(c=>{c.filename&&(c.debug_id=n[c.filename])})})}function HP(e){var r,s;const t={};if((s=(r=e.exception)==null?void 0:r.values)==null||s.forEach(i=>{var o,a;(a=(o=i.stacktrace)==null?void 0:o.frames)==null||a.forEach(c=>{c.debug_id&&(c.abs_path?t[c.abs_path]=c.debug_id:c.filename&&(t[c.filename]=c.debug_id),delete c.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(([i,o])=>{n.push({type:"sourcemap",code_file:i,debug_id:o})})}function VP(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function UP(e,t,n){var s,i;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:vn(o.data,t,n)}}))},...e.user&&{user:vn(e.user,t,n)},...e.contexts&&{contexts:vn(e.contexts,t,n)},...e.extra&&{extra:vn(e.extra,t,n)}};return(s=e.contexts)!=null&&s.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=vn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:vn(o.data,t,n)}}))),(i=e.contexts)!=null&&i.flags&&r.contexts&&(r.contexts.flags=vn(e.contexts.flags,3,n)),r}function WP(e,t){if(!t)return e;const n=e?e.clone():new Vn;return n.update(t),n}function jP(e){if(e)return zP(e)?{captureContext:e}:GP(e)?{captureContext:e}:e}function zP(e){return e instanceof Vn||typeof e=="function"}const qP=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function GP(e){return Object.keys(e).some(t=>qP.includes(t))}function Pl(e,t){return Me().captureException(e,jP(t))}function h0(e,t){return Me().captureEvent(e,t)}function KP(e,t){Kt().setContext(e,t)}function YP(e,t){Kt().setTag(e,t)}function XP(e){Kt().setUser(e)}function JP(){const e=Ee();return(e==null?void 0:e.getOptions().enabled)!==!1&&!!(e!=null&&e.getTransport())}function ZP(e){Kt().addEventProcessor(e)}function Fg(e){const t=Kt(),n=Me(),{userAgent:r}=xe.navigator||{},s=aM({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),i=t.getSession();return(i==null?void 0:i.status)==="ok"&&Ci(i,{status:"exited"}),p0(),t.setSession(s),s}function p0(){const e=Kt(),n=Me().getSession()||e.getSession();n&&cM(n),m0(),e.setSession()}function m0(){const e=Kt(),t=Ee(),n=e.getSession();n&&t&&t.captureSession(n)}function $g(e=!1){if(e){p0();return}m0()}const QP="7";function eO(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function tO(e){return`${eO(e)}${e.projectId}/envelope/`}function nO(e,t){const n={sentry_version:QP};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function rO(e,t,n){return t||`${tO(e)}?${nO(e,n)}`}const Bg=[];function sO(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 iO(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 sO(r)}function oO(e,t){const n={};return t.forEach(r=>{r&&g0(e,r,n)}),n}function Hg(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function g0(e,t,n){if(n[t.name]){ce&&J.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Bg.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),Bg.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)}ce&&J.log(`Integration installed: ${t.name}`)}function Vg(e){const t=Ee();if(!t){ce&&J.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function aO(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function cO(e,t,n,r){const s={};return t!=null&&t.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Gi(r)),Jr(s,[aO(e)])}function v0(e,t){const n=t??lO(e)??[];if(n.length===0)return;const r=e.getOptions(),s=cO(n,r._metadata,r.tunnel,e.getDsn());y0().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function lO(e){return y0().get(e)}function y0(){return Ui("clientToLogBufferMap",()=>new WeakMap)}function uO(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function dO(e,t,n,r){const s={};return t!=null&&t.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Gi(r)),Jr(s,[uO(e)])}function _0(e,t){const n=t??fO(e)??[];if(n.length===0)return;const r=e.getOptions(),s=dO(n,r._metadata,r.tunnel,e.getDsn());b0().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function fO(e){return b0().get(e)}function b0(){return Ui("clientToMetricBufferMap",()=>new WeakMap)}const _h=Symbol.for("SentryBufferFullError");function bh(e=100){const t=new Set;function n(){return t.sizer(a),()=>r(a)),a}function i(o){if(!t.size)return Ml(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return a;const c=[a,new Promise(l=>setTimeout(()=>l(!1),o))];return Promise.race(c)}return{get $(){return Array.from(t)},add:s,drain:i}}const hO=60*1e3;function pO(e,t=la()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?hO:r-t}function mO(e,t){return e[t]||e.all||0}function S0(e,t,n=la()){return mO(e,t)>n}function E0(e,{statusCode:t,headers:n},r=la()){const s={...e},i=n==null?void 0:n["x-sentry-rate-limits"],o=n==null?void 0:n["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,l,,,d]=a.split(":",5),u=parseInt(c,10),f=(isNaN(u)?60:u)*1e3;if(!l)s.all=r+f;else for(const h of l.split(";"))h==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[h]=r+f):s[h]=r+f}else o?s.all=r+pO(o,r):t===429&&(s.all=r+60*1e3);return s}const w0=64;function gO(e,t,n=bh(e.bufferSize||w0)){let r={};const s=o=>n.drain(o);function i(o){const a=[];if(Pd(o,(u,f)=>{const h=kg(f);S0(r,h)?e.recordDroppedEvent("ratelimit_backoff",h):a.push(u)}),a.length===0)return Promise.resolve({});const c=Jr(o[0],a),l=u=>{if(rP(c,["client_report"])){ce&&J.warn(`Dropping client report. Will not send outcomes (reason: ${u}).`);return}Pd(c,(f,h)=>{e.recordDroppedEvent(u,kg(h))})},d=()=>t({body:sP(c)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&ce&&J.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=E0(r,u),u),u=>{throw l("network_error"),ce&&J.error("Encountered error running transport request:",u),u});return n.add(d).then(u=>u,u=>{if(u===_h)return ce&&J.error("Skipped sending event because buffer is full."),l("queue_overflow"),Promise.resolve({});throw u})}return{send:i,flush:s}}function vO(e,t,n){const r=[{type:"client_report"},{timestamp:Ns(),discarded_events:e}];return Jr(t?{dsn:t}:{},[r])}function C0(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function yO(e){var c;const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:a}=((c=e.contexts)==null?void 0:c.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==null?void 0:o[uh],exclusive_time:o==null?void 0:o[qi],measurements:e.measurements,is_segment:!0}}function _O(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&&{[uh]:e.profile_id},...e.exclusive_time&&{[qi]:e.exclusive_time}}}},measurements:e.measurements}}const Ug="Not capturing exception because it's already been captured.",Wg="Discarded session because of missing or non-string release",T0=Symbol.for("SentryInternalError"),k0=Symbol.for("SentryDoNotSendEventError"),bO=5e3;function oc(e){return{message:e,[T0]:!0}}function ku(e){return{message:e,[k0]:!0}}function jg(e){return!!e&&typeof e=="object"&&T0 in e}function zg(e){return!!e&&typeof e=="object"&&k0 in e}function qg(e,t,n,r,s){let i=0,o,a=!1;e.on(n,()=>{i=0,clearTimeout(o),a=!1}),e.on(t,c=>{i+=r(c),i>=8e5?s(e):a||(a=!0,o=setTimeout(()=>{s(e)},bO))}),e.on("flush",()=>{s(e)})}class SO{constructor(t){var r,s,i;if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=bh(((r=t.transportOptions)==null?void 0:r.bufferSize)??w0),t.dsn?this._dsn=FM(t.dsn):ce&&J.warn("No DSN provided, client will not send events."),this._dsn){const o=rO(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:o})}this._options.enableLogs=this._options.enableLogs??((s=this._options._experiments)==null?void 0:s.enableLogs),this._options.enableLogs&&qg(this,"afterCaptureLog","flushLogs",TO,v0),(this._options.enableMetrics??((i=this._options._experiments)==null?void 0:i.enableMetrics)??!0)&&qg(this,"afterCaptureMetric","flushMetrics",CO,_0)}captureException(t,n,r){const s=tn();if(vg(t))return ce&&J.log(Ug),s;const i={event_id:s,...n};return this._process(()=>this.eventFromException(t,i).then(o=>this._captureEvent(o,i,r)).then(o=>o),"error"),i.event_id}captureMessage(t,n,r,s){const i={event_id:tn(),...r},o=ih(t)?t:String(t),a=Ei(t),c=a?this.eventFromMessage(o,n,i):this.eventFromException(t,i);return this._process(()=>c.then(l=>this._captureEvent(l,i,s)),a?"unknown":"error"),i.event_id}captureEvent(t,n,r){const s=tn();if(n!=null&&n.originalException&&vg(n.originalException))return ce&&J.log(Ug),s;const i={event_id:s,...n},o=t.sdkProcessingMetadata||{},a=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=Gg(t.type);return this._process(()=>this._captureEvent(t,i,a||r,c),l),i.event_id}captureSession(t){this.sendSession(t),Ci(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];g0(this,t,this._integrations),n||Hg(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=dP(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=nP(r,aP(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:n,environment:r=ph}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){ce&&J.warn(Wg);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){ce&&J.warn(Wg);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=uP(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}`;ce&&J.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 ce&&J.error("Error while sending envelope:",n),{}}return ce&&J.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=oO(this,t),Hg(this,t)}_updateSessionFromEvent(t,n){var c,l;let r=n.level==="fatal",s=!1;const i=(c=n.exception)==null?void 0:c.values;if(i){s=!0,r=!1;for(const d of i)if(((l=d.mechanism)==null?void 0:l.handled)===!1){r=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(Ci(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||nsetTimeout(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);return!n.integrations&&(o!=null&&o.length)&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),f0(i,t,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:vM(r),...a.contexts};const c=s0(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=Me(),s=Kt()){return ce&&Nd(t)&&J.log(`Captured error event \`${C0(t)[0]||""}\``),this._processEvent(t,n,r,s).then(i=>i.event_id,i=>{ce&&(zg(i)?J.log(i.message):jg(i)?J.warn(i.message):J.warn(i))})}_processEvent(t,n,r,s){const i=this.getOptions(),{sampleRate:o}=i,a=I0(t),c=Nd(t),d=`before send for type \`${t.type||"error"}\``,u=typeof o>"u"?void 0:Is(o);if(c&&typeof u=="number"&&Lr()>u)return this.recordDroppedEvent("sample_rate","error"),yh(ku(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const f=Gg(t.type);return this._prepareEvent(t,n,r,s).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",f),ku("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return h;const m=wO(this,i,h,n);return EO(m,d)}).then(h=>{var v;if(h===null){if(this.recordDroppedEvent("before_send",f),a){const y=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",y)}throw ku(`${d} returned \`null\`, will not send event.`)}const p=r.getSession()||s.getSession();if(c&&p&&this._updateSessionFromEvent(p,h),a){const g=((v=h.sdkProcessingMetadata)==null?void 0:v.spanCountBeforeProcessing)||0,y=h.spans?h.spans.length:0,_=g-y;_>0&&this.recordDroppedEvent("before_send","span",_)}const m=h.transaction_info;if(a&&m&&h.transaction!==t.transaction){const g="custom";h.transaction_info={...m,source:g}}return this.sendEvent(h,n),h}).then(null,h=>{throw zg(h)||jg(h)?h:(this.captureException(h,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:h}),oc(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${h}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===_h&&this.recordDroppedEvent("queue_overflow",n),r))}_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(){ce&&J.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){ce&&J.log("No outcomes to send");return}if(!this._dsn){ce&&J.log("No dsn provided, will not send outcomes");return}ce&&J.log("Sending outcomes:",t);const n=vO(t,this._options.tunnel&&Gi(this._dsn));this.sendEnvelope(n)}}function Gg(e){return e==="replay_event"?"replay":e||"error"}function EO(e,t){const n=`${t} must return \`null\` or a valid event.`;if(ji(e))return e.then(r=>{if(!Wo(r)&&r!==null)throw oc(n);return r},r=>{throw oc(`${t} rejected with ${r}`)});if(!Wo(e)&&e!==null)throw oc(n);return e}function wO(e,t,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o,ignoreSpans:a}=t;let c=n;if(Nd(c)&&s)return s(c,r);if(I0(c)){if(o||a){const l=yO(c);if(a!=null&&a.length&&Vc(l,a))return null;if(o){const d=o(l);d?c=ua(n,_O(d)):Ad()}if(c.spans){const d=[],u=c.spans;for(const h of u){if(a!=null&&a.length&&Vc(h,a)){YM(u,h);continue}if(o){const p=o(h);p?d.push(p):(Ad(),d.push(h))}else d.push(h)}const f=c.spans.length-d.length;f&&e.recordDroppedEvent("before_send","span",f),c.spans=d}}if(i){if(c.spans){const l=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return i(c,r)}}return c}function Nd(e){return e.type===void 0}function I0(e){return e.type==="transaction"}function CO(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+x0(e.attributes)}function TO(e){let t=0;return e.message&&(t+=e.message.length*2),t+x0(e.attributes)}function x0(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*Kg(n[0]):Ei(n)?t+=Kg(n):t+=100}),t}function Kg(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function kO(e){return Il(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function Yg(e){return kO(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function IO(e,t){t.debug===!0&&(ce?J.enable():yr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Me().update(t.initialScope);const r=new e(t);return xO(r),r.init(),r}function xO(e){Me().setClient(e)}const RO="thismessage:/";function Sh(e){return"isRelative"in e}function Eh(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?RO: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 AO(e){if(Sh(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 Ss(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 MO(e){return e.split(/[?#]/,1)[0]}function Nr(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),i=e.indexOf(",");let o="";if(t&&i!==-1){const a=e.slice(i+1);o=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${o?`,${o}`:""}`}return e}function PO(e,t){const n=t==null?void 0:t.getDsn(),r=t==null?void 0:t.getOptions().tunnel;return LO(e,n)||OO(e,r)}function OO(e,t){return t?Xg(e)===Xg(t):!1}function LO(e,t){const n=Eh(e);return!n||Sh(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function Xg(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function NO(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function R0(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:ys})),version:ys}),e._metadata=s}function A0(e={}){const t=e.client||Ee();if(!JP()||!t)return{};const n=Os(),r=zi(n);if(r.getTraceData)return r.getTraceData(e);const s=e.scope||Me(),i=e.span||Tt(),o=i?WM(i):DO(s),a=i?dr(i):s0(t,s),c=IM(a);if(!YS.test(o))return J.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const d={"sentry-trace":o,baggage:c};return e.propagateTraceparent&&(d.traceparent=i?jM(i):FO(s)),d}function DO(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return XS(t,r,n)}function FO(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return JS(t,r,n)}function $O(e,t,n){let r,s,i;const o=n!=null&&n.maxWait?Math.max(n.maxWait,t):0,a=(n==null?void 0:n.setTimeoutImpl)||setTimeout;function c(){return l(),r=e(),r}function l(){s!==void 0&&clearTimeout(s),i!==void 0&&clearTimeout(i),s=i=void 0}function d(){return s!==void 0||i!==void 0?c():r}function u(){return s&&clearTimeout(s),s=a(c,t),o&&i===void 0&&(i=a(c,o)),r}return u.cancel=l,u.flush=d,u}const BO=100;function Ur(e,t){const n=Ee(),r=Kt();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=BO}=n.getOptions();if(i<=0)return;const a={timestamp:Ns(),...e},c=s?yr(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}let Jg;const HO="FunctionToString",Zg=new WeakMap,VO=()=>({name:HO,setupOnce(){Jg=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=ch(this),n=Zg.has(Ee())&&t!==void 0?t:this;return Jg.apply(n,e)}}catch{}},setup(e){Zg.set(e,!0)}}),UO=VO,WO=[/^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$/],jO="EventFilters",zO=(e={})=>{let t;return{name:jO,setup(n){const r=n.getOptions();t=Qg(e,r)},processEvent(n,r,s){if(!t){const i=s.getOptions();t=Qg(e,i)}return GO(n,t)?null:n}}},qO=(e={})=>({...zO(e),name:"InboundFilters"});function Qg(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:WO],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function GO(e,t){if(e.type){if(e.type==="transaction"&&YO(e,t.ignoreTransactions))return ce&&J.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${as(e)}`),!0}else{if(KO(e,t.ignoreErrors))return ce&&J.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${as(e)}`),!0;if(QO(e))return ce&&J.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${as(e)}`),!0;if(XO(e,t.denyUrls))return ce&&J.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${as(e)}. Url: ${Uc(e)}`),!0;if(!JO(e,t.allowUrls))return ce&&J.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${as(e)}. Url: ${Uc(e)}`),!0}return!1}function KO(e,t){return t!=null&&t.length?C0(e).some(n=>er(n,t)):!1}function YO(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?er(n,t):!1}function XO(e,t){if(!(t!=null&&t.length))return!1;const n=Uc(e);return n?er(n,t):!1}function JO(e,t){if(!(t!=null&&t.length))return!0;const n=Uc(e);return n?er(n,t):!0}function ZO(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function Uc(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(i=>{var o,a,c;return((o=i.mechanism)==null?void 0:o.parent_id)===void 0&&((c=(a=i.stacktrace)==null?void 0:a.frames)==null?void 0:c.length)}),s=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return s?ZO(s):null}catch{return ce&&J.error(`Cannot extract url for event ${as(e)}`),null}}function QO(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function eL(e,t,n,r,s,i){var a;if(!((a=s.exception)!=null&&a.values)||!i||!cr(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=Dd(e,t,r,i.originalException,n,s.exception.values,o,0))}function Dd(e,t,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(cr(r[s],Error)){ev(o,a,r);const l=e(t,r[s]),d=c.length;tv(l,s,d,a),c=Dd(e,t,n,r[s],s,[l,...c],l,d)}return M0(r)&&r.errors.forEach((l,d)=>{if(cr(l,Error)){ev(o,a,r);const u=e(t,l),f=c.length;tv(u,`errors[${d}]`,f,a),c=Dd(e,t,n,l,s,[u,...c],u,f)}}),c}function M0(e){return Array.isArray(e.errors)}function ev(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...M0(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function tv(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function tL(e){const t="console";Kr(t,e),Yr(t,nL)}function nL(){"console"in xe&&$A.forEach(function(e){e in xe.console&&Wt(xe.console,e,function(t){return $c[e]=t,function(...n){dn("console",{args:n,level:e});const s=$c[e];s==null||s.apply(xe.console,n)}})})}function P0(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const rL="Dedupe",sL=()=>{let e;return{name:rL,processEvent(t){if(t.type)return t;try{if(oL(t,e))return ce&&J.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},iL=sL;function oL(e,t){return t?!!(aL(e,t)||cL(e,t)):!1}function aL(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!L0(e,t)||!O0(e,t))}function cL(e,t){const n=nv(t),r=nv(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!L0(e,t)||!O0(e,t))}function O0(e,t){let n=dg(e),r=dg(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({name:lL,setup(e){e.on("spanStart",t=>{const n=Me().getScopeData(),r=Kt().getScopeData(),s=n.conversationId||r.conversationId;s&&t.setAttribute(_M,s)})}}),dL=uL;function fL(e,t,n,r,s){if(!e.fetchData)return;const{method:i,url:o}=e.fetchData,a=fn()&&t(o);if(e.endTimestamp&&a){const h=e.fetchData.__span;if(!h)return;const p=r[h];p&&(mL(p,e),hL(p,e,s),delete r[h]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:l=!1}=typeof s=="object"?s:{spanOrigin:s},d=!!Tt(),u=a&&d?Vr(vL(o,i,c)):new Hr;if(e.fetchData.__span=u.spanContext().spanId,r[u.spanContext().spanId]=u,n(e.fetchData.url)){const h=e.args[0],p={...e.args[1]||{}},m=pL(h,p,fn()&&d?u:void 0,l);m&&(e.args[1]=p,p.headers=m)}const f=Ee();if(f){const h={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",u,h)}return u}function hL(e,t,n){var s;const r=typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0;r==null||r(e,{headers:(s=t.response)==null?void 0:s.headers,error:t.error})}function pL(e,t,n,r){const s=A0({span:n,propagateTraceparent:r}),i=s["sentry-trace"],o=s.baggage,a=s.traceparent;if(!i)return;const c=t.headers||(oh(e)?e.headers:void 0);if(c)if(gL(c)){const l=new Headers(c);if(l.get("sentry-trace")||l.set("sentry-trace",i),r&&a&&!l.get("traceparent")&&l.set("traceparent",a),o){const d=l.get("baggage");d?La(d)||l.set("baggage",`${d},${o}`):l.set("baggage",o)}return l}else if(Array.isArray(c)){const l=[...c];c.find(u=>u[0]==="sentry-trace")||l.push(["sentry-trace",i]),r&&a&&!c.find(u=>u[0]==="traceparent")&&l.push(["traceparent",a]);const d=c.find(u=>u[0]==="baggage"&&La(u[1]));return o&&!d&&l.push(["baggage",o]),l}else{const l="sentry-trace"in c?c["sentry-trace"]:void 0,d="traceparent"in c?c.traceparent:void 0,u="baggage"in c?c.baggage:void 0,f=u?Array.isArray(u)?[...u]:[u]:[],h=u&&(Array.isArray(u)?u.find(m=>La(m)):La(u));o&&!h&&f.push(o);const p={...c,"sentry-trace":l??i,baggage:f.length>0?f.join(","):void 0};return r&&a&&!d&&(p.traceparent=a),p}else return{...s}}function mL(e,t){var n,r;if(t.response){jS(e,t.response.status);const s=(r=(n=t.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(s){const i=parseInt(s);i>0&&e.setAttribute("http.response_content_length",i)}}else t.error&&e.setStatus({code:ht,message:"internal_error"});e.end()}function La(e){return e.split(",").some(t=>t.trim().startsWith(fh))}function gL(e){return typeof Headers<"u"&&cr(e,Headers)}function vL(e,t,n){if(e.startsWith("data:")){const i=Nr(e);return{name:`${t} ${i}`,attributes:rv(e,void 0,t,n)}}const r=Eh(e),s=r?AO(r):e;return{name:`${t} ${s}`,attributes:rv(e,r,t,n)}}function rv(e,t,n,r){const s={url:Nr(e),type:"fetch","http.method":n,[st]:r,[ur]:"http.client"};return t&&(Sh(t)||(s["http.url"]=Nr(t.href),s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function yL(e,t={},n=Me()){const{message:r,name:s,email:i,url:o,source:a,associatedEventId:c,tags:l}=e,d={contexts:{feedback:{contact_email:i,name:s,message:r,url:o,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:l},u=(n==null?void 0:n.getClient())||Ee();return u&&u.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}function N0(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const qo=xe;function _L(){return"history"in qo&&!!qo.history}function bL(){if(!("fetch"in qo))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Fd(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function SL(){var n;if(typeof EdgeRuntime=="string")return!0;if(!bL())return!1;if(Fd(qo.fetch))return!0;let e=!1;const t=qo.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=Fd(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){ce&&J.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function D0(e,t){const n="fetch";Kr(n,e),Yr(n,()=>F0(void 0,t))}function EL(e){const t="fetch-body-resolved";Kr(t,e),Yr(t,()=>F0(CL))}function F0(e,t=!1){t&&!SL()||Wt(xe,"fetch",function(n){return function(...r){const s=new Error,{method:i,url:o}=TL(r),a={args:r,fetchData:{method:i,url:o},startTimestamp:lt()*1e3,virtualError:s,headers:kL(r)};return e||dn("fetch",{...a}),n.apply(xe,r).then(async c=>(e?e(c):dn("fetch",{...a,endTimestamp:lt()*1e3,response:c}),c),c=>{dn("fetch",{...a,endTimestamp:lt()*1e3,error:c}),Il(c)&&c.stack===void 0&&(c.stack=s.stack,qt(c,"framesToPop",1));const l=Ee(),d=(l==null?void 0:l.getOptions().enhanceFetchErrorMessages)??"always";if(d!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const h=new URL(a.fetchData.url).host;d==="always"?c.message=`${c.message} (${h})`:qt(c,"__sentry_fetch_url_host__",h)}catch{}throw c})}})}async function wL(e,t){if(e!=null&&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 CL(e){let t;try{t=e.clone()}catch{return}wL(t,()=>{dn("fetch-body-resolved",{endTimestamp:lt()*1e3,response:e})})}function ac(e,t){return!!e&&typeof e=="object"&&!!e[t]}function sv(e){return typeof e=="string"?e:e?ac(e,"url")?e.url:e.toString?e.toString():"":""}function TL(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:sv(n),method:ac(r,"method")?String(r.method).toUpperCase():oh(n)&&ac(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:sv(t),method:ac(t,"method")?String(t.method).toUpperCase():"GET"}}function kL(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(oh(t))return new Headers(t.headers)}catch{}}function IL(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function xL(){return"npm"}function RL(){return!IL()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Wc(){return typeof window<"u"&&(!RL()||AL())}function AL(){const e=xe.process;return(e==null?void 0:e.type)==="renderer"}const _n=xe,Ue=_n.document,co=_n.navigator,$0="Report a Bug",ML="Cancel",PL="Send Bug Report",OL="Confirm",LL="Report a Bug",NL="your.email@example.org",DL="Email",FL="What's the bug? What did you expect?",$L="Description",BL="Your Name",HL="Name",VL="Thank you for your report!",UL="(required)",WL="Add a screenshot",jL="Remove screenshot",zL="Highlight",qL="Hide",GL="Remove",KL="widget",YL="api",XL=5e3,JL=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=Ee();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&Me().setTags(e.tags);const r=yL({source:YL,url:Ls(),...e},t);return new Promise((s,i)=>{const o=setTimeout(()=>i("Unable to determine if Feedback was correctly sent."),3e4),a=n.on("afterSendEvent",(c,l)=>{if(c.event_id===r)return clearTimeout(o),a(),l!=null&&l.statusCode&&l.statusCode>=200&&l.statusCode<300?s(r):(l==null?void 0:l.statusCode)===403?i("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):i("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},cc=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ZL(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(co.userAgent)||/Macintosh/i.test(co.userAgent)&&co.maxTouchPoints&&co.maxTouchPoints>1||!isSecureContext)}function Na(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{var n,r;(n=t.onFormOpen)==null||n.call(t),(r=e.onFormOpen)==null||r.call(e)},onFormClose:()=>{var n,r;(n=t.onFormClose)==null||n.call(t),(r=e.onFormClose)==null||r.call(e)},onSubmitSuccess:(n,r)=>{var s,i;(s=t.onSubmitSuccess)==null||s.call(t,n,r),(i=e.onSubmitSuccess)==null||i.call(e,n,r)},onSubmitError:n=>{var r,s;(r=t.onSubmitError)==null||r.call(t,n),(s=e.onSubmitError)==null||s.call(e,n)},onFormSubmitted:()=>{var n,r;(n=t.onFormSubmitted)==null||n.call(t),(r=e.onFormSubmitted)==null||r.call(e)},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function QL(e){const t=Ue.createElement("style");return t.textContent=` .widget__actor { position: fixed; z-index: var(--z-index); margin: var(--page-margin); inset: var(--actor-inset); display: flex; align-items: center; gap: 8px; padding: 16px; font-family: inherit; font-size: var(--font-size); font-weight: 600; line-height: 1.14em; text-decoration: none; background: var(--actor-background, var(--background)); border-radius: var(--actor-border-radius, 1.7em/50%); border: var(--actor-border, var(--border)); box-shadow: var(--actor-box-shadow, var(--box-shadow)); color: var(--actor-color, var(--foreground)); fill: var(--actor-color, var(--foreground)); cursor: pointer; opacity: 1; transition: transform 0.2s ease-in-out; transform: translate(0, 0) scale(1); } .widget__actor[aria-hidden="true"] { opacity: 0; pointer-events: none; visibility: hidden; transform: translate(0, 16px) scale(0.98); } .widget__actor:hover { background: var(--actor-hover-background, var(--background)); filter: var(--interactive-filter); } .widget__actor svg { width: 1.14em; height: 1.14em; } @media (max-width: 600px) { .widget__actor span { display: none; } } `,e&&t.setAttribute("nonce",e),t}function Jt(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const Ws=20,eN="http://www.w3.org/2000/svg";function tN(){const e=a=>_n.document.createElementNS(eN,a),t=Jt(e("svg"),{width:`${Ws}`,height:`${Ws}`,viewBox:`0 0 ${Ws} ${Ws}`,fill:"var(--actor-color, var(--foreground))"}),n=Jt(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Jt(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const s=e("defs"),i=Jt(e("clipPath"),{id:"clip0_57_80"}),o=Jt(e("rect"),{width:`${Ws}`,height:`${Ws}`,fill:"white"});return i.appendChild(o),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(o),t}function nN({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const s=Ue.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=t||e||$0,s.appendChild(tN()),e){const o=Ue.createElement("span");o.appendChild(Ue.createTextNode(e)),s.appendChild(o)}const i=QL(r);return{el:s,appendToDom(){n.appendChild(i),n.appendChild(s)},removeFromDom(){s.remove(),i.remove()},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}const B0="rgba(88, 74, 192, 1)",rN={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:B0,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},iv={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:B0,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function ov(e){return` --foreground: ${e.foreground}; --background: ${e.background}; --accent-foreground: ${e.accentForeground}; --accent-background: ${e.accentBackground}; --success-color: ${e.successColor}; --error-color: ${e.errorColor}; --border: ${e.border}; --box-shadow: ${e.boxShadow}; --outline: ${e.outline}; --interactive-filter: ${e.interactiveFilter}; `}function sN({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const s=Ue.createElement("style");return s.textContent=` :host { --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif; --font-size: 14px; --z-index: 100000; --page-margin: 16px; --inset: auto 0 0 auto; --actor-inset: var(--inset); font-family: var(--font-family); font-size: var(--font-size); ${e!=="system"?`color-scheme: only ${e};`:""} ${ov(e==="dark"?{...iv,...t}:{...rN,...n})} } ${e==="system"?` @media (prefers-color-scheme: dark) { :host { color-scheme: only dark; ${ov({...iv,...t})} } }`:""} `,r&&s.setAttribute("nonce",r),s}const iN=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:s="sentry-feedback",autoInject:i=!0,showBranding:o=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail:l=!0,showName:d=!0,enableScreenshot:u=!0,useSentryUser:f={email:"email",name:"username"},tags:h,styleNonce:p,scriptNonce:m,colorScheme:v="system",themeLight:g={},themeDark:y={},addScreenshotButtonLabel:_=WL,cancelButtonLabel:S=ML,confirmButtonLabel:M=OL,emailLabel:R=DL,emailPlaceholder:E=NL,formTitle:C=LL,isRequiredLabel:I=UL,messageLabel:A=$L,messagePlaceholder:O=FL,nameLabel:T=HL,namePlaceholder:P=BL,removeScreenshotButtonLabel:N=jL,submitButtonLabel:z=PL,successMessageText:X=VL,triggerLabel:q=$0,triggerAriaLabel:D="",highlightToolText:re=zL,hideToolText:U=qL,removeHighlightText:ie=GL,onFormOpen:ae,onFormClose:ue,onSubmitSuccess:Ce,onSubmitError:Ne,onFormSubmitted:He}={})=>{const x={id:s,autoInject:i,showBranding:o,isEmailRequired:a,isNameRequired:c,showEmail:l,showName:d,enableScreenshot:u,useSentryUser:f,tags:h,styleNonce:p,scriptNonce:m,colorScheme:v,themeDark:y,themeLight:g,triggerLabel:q,triggerAriaLabel:D,cancelButtonLabel:S,submitButtonLabel:z,confirmButtonLabel:M,formTitle:C,emailLabel:R,emailPlaceholder:E,messageLabel:A,messagePlaceholder:O,nameLabel:T,namePlaceholder:P,successMessageText:X,isRequiredLabel:I,addScreenshotButtonLabel:_,removeScreenshotButtonLabel:N,highlightToolText:re,hideToolText:U,removeHighlightText:ie,onFormClose:ue,onFormOpen:ae,onSubmitError:Ne,onSubmitSuccess:Ce,onFormSubmitted:He};let W=null,K=[];const ne=k=>{if(!W){const L=Ue.createElement("div");L.id=String(k.id),Ue.body.appendChild(L),W=L.attachShadow({mode:"open"}),W.appendChild(sN(k))}return W},ye=async k=>{const L=k.enableScreenshot&&ZL();let $,F;try{$=(t?t():await e("feedbackModalIntegration",m))(),Vg($)}catch{throw cc&&J.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const Y=L?n?n():await e("feedbackScreenshotIntegration",m):void 0;Y&&(F=Y(),Vg(F))}catch{cc&&J.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const G=$.createDialog({options:{...k,onFormClose:()=>{var Y;G==null||G.close(),(Y=k.onFormClose)==null||Y.call(k)},onFormSubmitted:()=>{var Y;G==null||G.close(),(Y=k.onFormSubmitted)==null||Y.call(k)}},screenshotIntegration:F,sendFeedback:JL,shadow:ne(k)});return G},b=(k,L={})=>{const $=Na(x,L),F=typeof k=="string"?Ue.querySelector(k):typeof k.addEventListener=="function"?k:null;if(!F)throw cc&&J.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let G=null;const Y=async()=>{G||(G=await ye({...$,onFormSubmitted:()=>{var V;G==null||G.removeFromDom(),(V=$.onFormSubmitted)==null||V.call($)}})),G.appendToDom(),G.open()};F.addEventListener("click",Y);const H=()=>{K=K.filter(V=>V!==H),G==null||G.removeFromDom(),G=null,F.removeEventListener("click",Y)};return K.push(H),H},w=(k={})=>{const L=Na(x,k),$=ne(L),F=nN({triggerLabel:L.triggerLabel,triggerAriaLabel:L.triggerAriaLabel,shadow:$,styleNonce:p});return b(F.el,{...L,onFormOpen(){F.hide()},onFormClose(){F.show()},onFormSubmitted(){F.show()}}),F};return{name:"Feedback",setupOnce(){!Wc()||!x.autoInject||(Ue.readyState==="loading"?Ue.addEventListener("DOMContentLoaded",()=>w().appendToDom()):w().appendToDom())},attachTo:b,createWidget(k={}){const L=w(Na(x,k));return L.appendToDom(),L},async createForm(k={}){return ye(Na(x,k))},remove(){var k;W&&((k=W.parentElement)==null||k.remove(),W=null),K.forEach(L=>L()),K=[]}}};var Ol,je,H0,cs,av,V0,$d,Go={},wh=[],oN=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ch=Array.isArray;function Pr(e,t){for(var n in t)e[n]=t[n];return e}function U0(e){var t=e.parentNode;t&&t.removeChild(e)}function ke(e,t,n){var r,s,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?s=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Ol.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return lc(e,o,r,s,null)}function lc(e,t,n,r,s){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++H0,__i:-1,__u:0};return s==null&&je.vnode!=null&&je.vnode(i),i}function ha(e){return e.children}function uc(e,t){this.props=e,this.context=t}function Ii(e,t){if(t==null)return e.__?Ii(e.__,e.__i+1):null;for(var n;tn?(Bd(r,t,s),s.length=r.length=0,t=void 0,cs.sort($d)):t&&je.__c&&je.__c(t,wh));t&&Bd(r,t,s),jc.__r=0}function j0(e,t,n,r,s,i,o,a,c,l,d){var u,f,h,p,m,v=r&&r.__k||wh,g=t.length;for(n.__d=c,cN(n,t,v),c=n.__d,u=0;u0?lc(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=e,s.__b=e.__b+1,a=lN(s,n,o=r+u,d),s.__i=a,i=null,a!==-1&&(d--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&u--,typeof s.type!="function"&&(s.__u|=65536)):a!==o&&(a===o+1?u++:a>o?d>c-o?u+=a-o:u--:u=a(c!=null&&!(131072&c.__u)?1:0))for(;o>=0||a=0){if((c=t[o])&&!(131072&c.__u)&&s==c.key&&i===c.type)return o;o--}if(a=n.__.length&&n.__.push({__V:dc}),n.__[e]}function us(e){return xi=1,G0(Y0,e)}function G0(e,t,n){var r=Ds(fr++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Y0(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,a);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=We,!We.u)){var s=function(a,c,l){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!i||i.call(this,a,c,l);var u=!1;return d.forEach(function(f){if(f.__N){var h=f.__[0];f.__=f.__N,f.__N=void 0,h!==f.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!i||i.call(this,a,c,l))};We.u=!0;var i=We.shouldComponentUpdate,o=We.componentWillUpdate;We.componentWillUpdate=function(a,c,l){if(this.__e){var d=i;i=void 0,s(a,c,l),i=d}o&&o.call(this,a,c,l)},We.shouldComponentUpdate=s}return r.__N||r.__}function hN(e,t){var n=Ds(fr++,3);!nt.__s&&Ih(n.__H,t)&&(n.__=e,n.i=t,We.__H.__h.push(n))}function K0(e,t){var n=Ds(fr++,4);!nt.__s&&Ih(n.__H,t)&&(n.__=e,n.i=t,We.__h.push(n))}function pN(e){return xi=5,pa(function(){return{current:e}},[])}function mN(e,t,n){xi=6,K0(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function pa(e,t){var n=Ds(fr++,7);return Ih(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function di(e,t){return xi=8,pa(function(){return e},t)}function gN(e){var t=We.context[e.__c],n=Ds(fr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(We)),t.props.value):e.__}function vN(e,t){nt.useDebugValue&&nt.useDebugValue(t?t(e):e)}function yN(e){var t=Ds(fr++,10),n=us();return t.__=e,We.componentDidCatch||(We.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function _N(){var e=Ds(fr++,11);if(!e.__){for(var t=We.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function bN(){for(var e;e=q0.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(fc),e.__H.__h.forEach(Vd),e.__H.__h=[]}catch(t){e.__H.__h=[],nt.__e(t,e.__v)}}nt.__b=function(e){We=null,hv&&hv(e)},nt.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),yv&&yv(e,t)},nt.__r=function(e){pv&&pv(e),fr=0;var t=(We=e.__c).__H;t&&(Iu===We?(t.__h=[],We.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=dc,n.__N=n.i=void 0})):(t.__h.forEach(fc),t.__h.forEach(Vd),t.__h=[],fr=0)),Iu=We},nt.diffed=function(e){mv&&mv(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(q0.push(t)!==1&&fv===nt.requestAnimationFrame||((fv=nt.requestAnimationFrame)||SN)(bN)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==dc&&(n.__=n.__V),n.i=void 0,n.__V=dc})),Iu=We=null},nt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(fc),n.__h=n.__h.filter(function(r){return!r.__||Vd(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],nt.__e(r,n.__v)}}),gv&&gv(e,t)},nt.unmount=function(e){vv&&vv(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{fc(r)}catch(s){t=s}}),n.__H=void 0,t&&nt.__e(t,n.__v))};var _v=typeof requestAnimationFrame=="function";function SN(e){var t,n=function(){clearTimeout(r),_v&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);_v&&(t=requestAnimationFrame(n))}function fc(e){var t=We,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),We=t}function Vd(e){var t=We;e.__c=e.__(),We=t}function Ih(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Y0(e,t){return typeof t=="function"?t(e):t}const EN=Object.defineProperty({__proto__:null,useCallback:di,useContext:gN,useDebugValue:vN,useEffect:hN,useErrorBoundary:yN,useId:_N,useImperativeHandle:mN,useLayoutEffect:K0,useMemo:pa,useReducer:G0,useRef:pN,useState:us},Symbol.toStringTag,{value:"Module"}),wN="http://www.w3.org/2000/svg";function CN(){const e=r=>Ue.createElementNS(wN,r),t=Jt(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Jt(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function TN({options:e}){const t=pa(()=>({__html:CN().outerHTML}),[]);return ke("h2",{class:"dialog__header"},ke("span",{class:"dialog__title"},e.formTitle),e.showBranding?ke("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function kN(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function xu(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function IN({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:s,onSubmitSuccess:i,onSubmitError:o,showEmail:a,showName:c,screenshotInput:l}){const{tags:d,addScreenshotButtonLabel:u,removeScreenshotButtonLabel:f,cancelButtonLabel:h,emailLabel:p,emailPlaceholder:m,isEmailRequired:v,isNameRequired:g,messageLabel:y,messagePlaceholder:_,nameLabel:S,namePlaceholder:M,submitButtonLabel:R,isRequiredLabel:E}=e,[C,I]=us(!1),[A,O]=us(null),[T,P]=us(!1),N=l==null?void 0:l.input,[z,X]=us(null),q=di(U=>{X(U),P(!1)},[]),D=di(U=>{const ie=kN(U,{emailLabel:p,isEmailRequired:v,isNameRequired:g,messageLabel:y,nameLabel:S});return ie.length>0?O(`Please enter in the following required fields: ${ie.join(", ")}`):O(null),ie.length===0},[p,v,g,y,S]),re=di(async U=>{I(!0);try{if(U.preventDefault(),!(U.target instanceof HTMLFormElement))return;const ie=new FormData(U.target),ae=await(l&&T?l.value():void 0),ue={name:xu(ie,"name"),email:xu(ie,"email"),message:xu(ie,"message"),attachments:ae?[ae]:void 0};if(!D(ue))return;try{const Ce=await s({name:ue.name,email:ue.email,message:ue.message,source:KL,tags:d},{attachments:ue.attachments});i(ue,Ce)}catch(Ce){cc&&J.error(Ce),O(Ce),o(Ce)}}finally{I(!1)}},[l&&T,i,o]);return ke("form",{class:"form",onSubmit:re},N&&T?ke(N,{onError:q}):null,ke("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:C},ke("div",{class:"form__top"},A?ke("div",{class:"form__error-container"},A):null,c?ke("label",{for:"name",class:"form__label"},ke(Ru,{label:S,isRequiredLabel:E,isRequired:g}),ke("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:M,required:g,type:"text"})):ke("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?ke("label",{for:"email",class:"form__label"},ke(Ru,{label:p,isRequiredLabel:E,isRequired:v}),ke("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:v,type:"email"})):ke("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),ke("label",{for:"message",class:"form__label"},ke(Ru,{label:y,isRequiredLabel:E,isRequired:!0}),ke("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:_,required:!0,rows:5})),N?ke("label",{for:"screenshot",class:"form__label"},ke("button",{class:"btn btn--default",disabled:C,type:"button",onClick:()=>{X(null),P(U=>!U)}},T?f:u),z?ke("div",{class:"form__error-container"},z.message):null):null),ke("div",{class:"btn-group"},ke("button",{class:"btn btn--primary",disabled:C,type:"submit"},R),ke("button",{class:"btn btn--default",disabled:C,type:"button",onClick:r},h))))}function Ru({label:e,isRequired:t,isRequiredLabel:n}){return ke("span",{class:"form__label__text"},e,t&&ke("span",{class:"form__label__text--required"},n))}const Fa=16,bv=17,xN="http://www.w3.org/2000/svg";function RN(){const e=c=>_n.document.createElementNS(xN,c),t=Jt(e("svg"),{width:`${Fa}`,height:`${bv}`,viewBox:`0 0 ${Fa} ${bv}`,fill:"inherit"}),n=Jt(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Jt(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),s=Jt(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(s,r);const i=e("defs"),o=Jt(e("clipPath"),{id:"clip0_57_156"}),a=Jt(e("rect"),{width:`${Fa}`,height:`${Fa}`,fill:"white",transform:"translate(0 0.5)"});return o.appendChild(a),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(a),t}function AN({open:e,onFormSubmitted:t,...n}){const r=n.options,s=pa(()=>({__html:RN().outerHTML}),[]),[i,o]=us(null),a=di(()=>{i&&(clearTimeout(i),o(null)),t()},[i]),c=di((l,d)=>{n.onSubmitSuccess(l,d),o(setTimeout(()=>{t(),o(null)},XL))},[t]);return ke(ha,null,i?ke("div",{class:"success__position",onClick:a},ke("div",{class:"success__content"},r.successMessageText,ke("span",{class:"success__icon",dangerouslySetInnerHTML:s}))):ke("dialog",{class:"dialog",onClick:r.onFormClose,open:e},ke("div",{class:"dialog__position"},ke("div",{class:"dialog__content",onClick:l=>{l.stopPropagation()}},ke(TN,{options:r}),ke(IN,{...n,onSubmitSuccess:c})))))}const MN=` .dialog { position: fixed; z-index: var(--z-index); margin: 0; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0; height: 100vh; width: 100vw; color: var(--dialog-color, var(--foreground)); fill: var(--dialog-color, var(--foreground)); line-height: 1.75em; background-color: rgba(0, 0, 0, 0.05); border: none; inset: 0; opacity: 1; transition: opacity 0.2s ease-in-out; } .dialog__position { position: fixed; z-index: var(--z-index); inset: var(--dialog-inset); padding: var(--page-margin); display: flex; max-height: calc(100vh - (2 * var(--page-margin))); } @media (max-width: 600px) { .dialog__position { inset: var(--page-margin); padding: 0; } } .dialog__position:has(.editor) { inset: var(--page-margin); padding: 0; } .dialog:not([open]) { opacity: 0; pointer-events: none; visibility: hidden; } .dialog:not([open]) .dialog__content { transform: translate(0, -16px) scale(0.98); } .dialog__content { display: flex; flex-direction: column; gap: 16px; padding: var(--dialog-padding, 24px); max-width: 100%; width: 100%; max-height: 100%; overflow: auto; background: var(--dialog-background, var(--background)); border-radius: var(--dialog-border-radius, 20px); border: var(--dialog-border, var(--border)); box-shadow: var(--dialog-box-shadow, var(--box-shadow)); transform: translate(0, 0) scale(1); transition: transform 0.2s ease-in-out; } `,PN=` .dialog__header { display: flex; gap: 4px; justify-content: space-between; font-weight: var(--dialog-header-weight, 600); margin: 0; } .dialog__title { align-self: center; width: var(--form-width, 272px); } @media (max-width: 600px) { .dialog__title { width: auto; } } .dialog__position:has(.editor) .dialog__title { width: auto; } .brand-link { display: inline-flex; } .brand-link:focus-visible { outline: var(--outline); } `,ON=` .form { display: flex; overflow: auto; flex-direction: row; gap: 16px; flex: 1 0; } .form fieldset { border: none; margin: 0; padding: 0; } .form__right { flex: 0 0 auto; display: flex; overflow: auto; flex-direction: column; justify-content: space-between; gap: 20px; width: var(--form-width, 100%); } .dialog__position:has(.editor) .form__right { width: var(--form-width, 272px); } .form__top { display: flex; flex-direction: column; gap: 8px; } .form__error-container { color: var(--error-color); fill: var(--error-color); } .form__label { display: flex; flex-direction: column; gap: 4px; margin: 0px; } .form__label__text { display: flex; gap: 4px; align-items: center; } .form__label__text--required { font-size: 0.85em; } .form__input { font-family: inherit; line-height: inherit; background: transparent; box-sizing: border-box; border: var(--input-border, var(--border)); border-radius: var(--input-border-radius, 6px); color: var(--input-color, inherit); fill: var(--input-color, inherit); font-size: var(--input-font-size, inherit); font-weight: var(--input-font-weight, 500); padding: 6px 12px; } .form__input::placeholder { opacity: 0.65; color: var(--input-placeholder-color, inherit); filter: var(--interactive-filter); } .form__input:focus-visible { outline: var(--input-focus-outline, var(--outline)); } .form__input--textarea { font-family: inherit; resize: vertical; } .error { color: var(--error-color); fill: var(--error-color); } `,LN=` .btn-group { display: grid; gap: 8px; } .btn { line-height: inherit; border: var(--button-border, var(--border)); border-radius: var(--button-border-radius, 6px); cursor: pointer; font-family: inherit; font-size: var(--button-font-size, inherit); font-weight: var(--button-font-weight, 600); padding: var(--button-padding, 6px 16px); } .btn[disabled] { opacity: 0.6; pointer-events: none; } .btn--primary { color: var(--button-primary-color, var(--accent-foreground)); fill: var(--button-primary-color, var(--accent-foreground)); background: var(--button-primary-background, var(--accent-background)); border: var(--button-primary-border, var(--border)); border-radius: var(--button-primary-border-radius, 6px); font-weight: var(--button-primary-font-weight, 500); } .btn--primary:hover { color: var(--button-primary-hover-color, var(--accent-foreground)); fill: var(--button-primary-hover-color, var(--accent-foreground)); background: var(--button-primary-hover-background, var(--accent-background)); filter: var(--interactive-filter); } .btn--primary:focus-visible { background: var(--button-primary-hover-background, var(--accent-background)); filter: var(--interactive-filter); outline: var(--button-primary-focus-outline, var(--outline)); } .btn--default { color: var(--button-color, var(--foreground)); fill: var(--button-color, var(--foreground)); background: var(--button-background, var(--background)); border: var(--button-border, var(--border)); border-radius: var(--button-border-radius, 6px); font-weight: var(--button-font-weight, 500); } .btn--default:hover { color: var(--button-color, var(--foreground)); fill: var(--button-color, var(--foreground)); background: var(--button-hover-background, var(--background)); filter: var(--interactive-filter); } .btn--default:focus-visible { background: var(--button-hover-background, var(--background)); filter: var(--interactive-filter); outline: var(--button-focus-outline, var(--outline)); } `,NN=` .success__position { position: fixed; inset: var(--dialog-inset); padding: var(--page-margin); z-index: var(--z-index); } .success__content { background: var(--success-background, var(--background)); border: var(--success-border, var(--border)); border-radius: var(--success-border-radius, 1.7em/50%); box-shadow: var(--success-box-shadow, var(--box-shadow)); font-weight: var(--success-font-weight, 600); color: var(--success-color); fill: var(--success-color); padding: 12px 24px; line-height: 1.75em; display: grid; align-items: center; grid-auto-flow: column; gap: 6px; cursor: default; } .success__icon { display: flex; } `;function DN(e){const t=Ue.createElement("style");return t.textContent=` :host { --dialog-inset: var(--inset); } ${MN} ${PN} ${ON} ${LN} ${NN} `,e&&t.setAttribute("nonce",e),t}function FN(){const e=Me().getUser(),t=Kt().getUser(),n=US().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const $N=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const s=r,i=e.useSentryUser,o=FN(),a=Ue.createElement("div"),c=DN(e.styleNonce);let l="";const d={get el(){return a},appendToDom(){!s.contains(c)&&!s.contains(a)&&(s.appendChild(c),s.appendChild(a))},removeFromDom(){a.remove(),c.remove(),Ue.body.style.overflow=l},open(){var h,p;f(!0),(h=e.onFormOpen)==null||h.call(e),(p=Ee())==null||p.emit("openFeedbackWidget"),l=Ue.body.style.overflow,Ue.body.style.overflow="hidden"},close(){f(!1),Ue.body.style.overflow=l}},u=t==null?void 0:t.createInput({h:ke,hooks:EN,dialog:d,options:e}),f=h=>{fN(ke(AN,{options:e,screenshotInput:u,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(i&&(o==null?void 0:o[i.name])||""),defaultEmail:String(i&&(o==null?void 0:o[i.email])||""),onFormClose:()=>{var p;f(!1),(p=e.onFormClose)==null||p.call(e)},onSubmit:n,onSubmitSuccess:(p,m)=>{var v;f(!1),(v=e.onSubmitSuccess)==null||v.call(e,p,m)},onSubmitError:p=>{var m;(m=e.onSubmitError)==null||m.call(e,p)},onFormSubmitted:()=>{var p;(p=e.onFormSubmitted)==null||p.call(e)},open:h}),a)};return d}});function BN({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function HN(e){const t=Ue.createElement("style"),n="#1A141F",r="#302735";return t.textContent=` .editor { display: flex; flex-grow: 1; flex-direction: column; } .editor__image-container { justify-items: center; padding: 15px; position: relative; height: 100%; border-radius: var(--menu-border-radius, 6px); background-color: ${n}; background-image: repeating-linear-gradient( -145deg, transparent, transparent 8px, ${n} 8px, ${n} 11px ), repeating-linear-gradient( -45deg, transparent, transparent 15px, ${r} 15px, ${r} 16px ); } .editor__canvas-container { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; } .editor__canvas-container > * { object-fit: contain; position: absolute; } .editor__tool-container { padding-top: 8px; display: flex; justify-content: center; } .editor__tool-bar { display: flex; gap: 8px; } .editor__tool { display: flex; padding: 8px 12px; justify-content: center; align-items: center; border: var(--button-border, var(--border)); border-radius: var(--button-border-radius, 6px); background: var(--button-background, var(--background)); color: var(--button-color, var(--foreground)); } .editor__tool--active { background: var(--button-primary-background, var(--accent-background)); color: var(--button-primary-color, var(--accent-foreground)); } .editor__rect { position: absolute; z-index: 2; } .editor__rect button { opacity: 0; position: absolute; top: -12px; right: -12px; cursor: pointer; padding: 0; z-index: 3; border: none; background: none; } .editor__rect:hover button { opacity: 1; } `,e&&t.setAttribute("nonce",e),t}function VN({h:e}){return function({action:n,setAction:r,options:s}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},s.highlightToolText),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},s.hideToolText)))}}function UN({hooks:e}){function t(){const[n,r]=e.useState(_n.devicePixelRatio??1);return e.useEffect(()=>{const s=()=>{r(_n.devicePixelRatio)},i=matchMedia(`(resolution: ${_n.devicePixelRatio}dppx)`);return i.addEventListener("change",s),()=>{i.removeEventListener("change",s)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:s,onAfterScreenshot:i,onError:o}){const a=t();e.useEffect(()=>{(async()=>{r();const l=await co.mediaDevices.getDisplayMedia({video:{width:_n.innerWidth*a,height:_n.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),d=Ue.createElement("video");await new Promise((u,f)=>{d.srcObject=l,d.onloadedmetadata=()=>{s(d,a),l.getTracks().forEach(h=>h.stop()),u()},d.play().catch(f)}),i()})().catch(o)},[])}}function WN(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function Rr(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function Au(e,t){Rr(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function Mu(e,t,n){Rr(e,{alpha:!0},(r,s)=>{n.length&&(s.fillStyle="rgba(0, 0, 0, 0.25)",s.fillRect(0,0,r.width,r.height)),n.forEach(i=>{WN(i,s,t)})})}function jN({h:e,hooks:t,outputBuffer:n,dialog:r,options:s}){const i=UN({hooks:t}),o=VN({h:e}),a=BN({h:e}),c={__html:HN(s.styleNonce).innerText},l=r.el.style,d=({screenshot:u})=>{const[f,h]=t.useState("highlight"),[p,m]=t.useState([]),v=t.useRef(null),g=t.useRef(null),y=t.useRef(null),_=t.useRef(null),[S,M]=t.useState(1),R=t.useMemo(()=>{const T=Ue.getElementById(s.id);if(!T)return"white";const P=getComputedStyle(T);return P.getPropertyValue("--button-primary-background")||P.getPropertyValue("--accent-background")},[s.id]);t.useLayoutEffect(()=>{const T=()=>{const P=v.current;P&&(Rr(u.canvas,{alpha:!1},N=>{const z=Math.min(P.clientWidth/N.width,P.clientHeight/N.height);M(z)}),(P.clientHeight===0||P.clientWidth===0)&&setTimeout(T,0))};return T(),_n.addEventListener("resize",T),()=>{_n.removeEventListener("resize",T)}},[u]);const E=t.useCallback((T,P)=>{Rr(T,{alpha:!0},(N,z)=>{z.scale(P,P),N.width=u.canvas.width,N.height=u.canvas.height})},[u]);t.useEffect(()=>{E(g.current,u.dpi),Au(g.current,u.canvas)},[u]),t.useEffect(()=>{E(y.current,u.dpi),Rr(y.current,{alpha:!0},(T,P)=>{P.clearRect(0,0,T.width,T.height)}),Mu(y.current,R,p)},[p,R]),t.useEffect(()=>{E(n,u.dpi),Au(n,u.canvas),Rr(Ue.createElement("canvas"),{alpha:!0},(T,P)=>{P.scale(u.dpi,u.dpi),T.width=u.canvas.width,T.height=u.canvas.height,Mu(T,R,p),Au(n,T)})},[p,u,R]);const C=T=>{if(!f||!_.current)return;const P=_.current.getBoundingClientRect(),N={type:f,x:T.offsetX/S,y:T.offsetY/S},z=(D,re)=>{const U=(re.clientX-P.x)/S,ie=(re.clientY-P.y)/S;return{type:D.type,x:Math.min(D.x,U),y:Math.min(D.y,ie),w:Math.abs(U-D.x),h:Math.abs(ie-D.y)}},X=D=>{Rr(y.current,{alpha:!0},(re,U)=>{U.clearRect(0,0,re.width,re.height)}),Mu(y.current,R,[...p,z(N,D)])},q=D=>{const re=z(N,D);re.w*S>=1&&re.h*S>=1&&m(U=>[...U,re]),Ue.removeEventListener("mousemove",X),Ue.removeEventListener("mouseup",q)};Ue.addEventListener("mousemove",X),Ue.addEventListener("mouseup",q)},I=t.useCallback(T=>P=>{P.preventDefault(),P.stopPropagation(),m(N=>{const z=[...N];return z.splice(T,1),z})},[]),A={width:`${u.canvas.width*S}px`,height:`${u.canvas.height*S}px`},O=T=>{T.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:v},e("canvas",{ref:g,id:"background",style:A}),e("canvas",{ref:y,id:"foreground",style:A}),e("div",{ref:_,onMouseDown:C,style:A},p.map((T,P)=>e("div",{key:P,class:"editor__rect",style:{top:`${T.y*S}px`,left:`${T.x*S}px`,width:`${T.w*S}px`,height:`${T.h*S}px`}},e("button",{"aria-label":s.removeHighlightText,onClick:I(P),onMouseDown:O,onMouseUp:O,type:"button"},e(a,null))))))),e(o,{options:s,action:f,setAction:h}))};return function({onError:f}){const[h,p]=t.useState();return i({onBeforeScreenshot:t.useCallback(()=>{l.display="none"},[]),onScreenshot:t.useCallback((m,v)=>{Rr(Ue.createElement("canvas"),{alpha:!1},(g,y)=>{y.scale(v,v),g.width=m.videoWidth,g.height=m.videoHeight,y.drawImage(m,0,0,g.width,g.height),p({canvas:g,dpi:v})}),n.width=m.videoWidth,n.height=m.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{l.display="block"},[]),onError:t.useCallback(m=>{l.display="block",f(m)},[])}),h?e(d,{screenshot:h}):e("div",null)}}const zN=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const s=Ue.createElement("canvas");return{input:jN({h:e,hooks:t,outputBuffer:s,dialog:n,options:r}),value:async()=>{const i=await new Promise(o=>{s.toBlob(o,"image/png")});if(i)return{data:new Uint8Array(await i.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),Oe=xe;let Ud=0;function X0(){return Ud>0}function qN(){Ud++,setTimeout(()=>{Ud--})}function Ri(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(ch(e))return e}catch{return e}const r=function(...s){try{const i=s.map(o=>Ri(o,t));return e.apply(this,i)}catch(i){throw qN(),Rl(o=>{o.addEventProcessor(a=>(t.mechanism&&(Id(a,void 0),wi(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Pl(i)}),i}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}$S(r,e),qt(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function xh(){const e=Ls(),{referrer:t}=Oe.document||{},{userAgent:n}=Oe.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}const GN=iN({getModalIntegration:()=>$N,getScreenshotIntegration:()=>zN});function Rh(e,t){const n=Ah(e,t),r={type:ZN(t),value:QN(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function KN(e,t,n,r){const s=Ee(),i=s==null?void 0:s.getOptions().normalizeDepth,o=sD(t),a={__serialized__:i0(t,i)};if(o)return{exception:{values:[Rh(e,o)]},extra:a};const c={exception:{values:[{type:xl(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:nD(t,{isUnhandledRejection:r})}]},extra:a};if(n){const l=Ah(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function Pu(e,t){return{exception:{values:[Rh(e,t)]}}}function Ah(e,t){const n=t.stacktrace||t.stack||"",r=XN(t),s=JN(t);try{return e(n,r,s)}catch{}return[]}const YN=/Minified React error #\d+;/i;function XN(e){return e&&YN.test(e.message)?1:0}function JN(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function J0(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function ZN(e){const t=e==null?void 0:e.name;return!t&&J0(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function QN(e){const t=e==null?void 0:e.message;return J0(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?Yg(t.error):Yg(e):"No error message"}function eD(e,t,n,r){const s=(n==null?void 0:n.syntheticException)||void 0,i=Mh(e,t,s,r);return wi(i),i.level="error",n!=null&&n.event_id&&(i.event_id=n.event_id),Ml(i)}function tD(e,t,n="info",r,s){const i=(r==null?void 0:r.syntheticException)||void 0,o=Wd(e,t,i,s);return o.level=n,r!=null&&r.event_id&&(o.event_id=r.event_id),Ml(o)}function Mh(e,t,n,r,s){let i;if(NS(t)&&t.error)return Pu(e,t.error);if(hg(t)||YA(t)){const o=t;if("stack"in t)i=Pu(e,t);else{const a=o.name||(hg(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;i=Wd(e,c,n,r),Id(i,c)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return Il(t)?Pu(e,t):Wo(t)||xl(t)?(i=KN(e,t,n,s),wi(i,{synthetic:!0}),i):(i=Wd(e,t,n,r),Id(i,`${t}`),wi(i,{synthetic:!0}),i)}function Wd(e,t,n,r){const s={};if(r&&n){const i=Ah(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]}),wi(s,{synthetic:!0})}if(ih(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 nD(e,{isUnhandledRejection:t}){const n=tM(e),r=t?"promise rejection":"exception";return NS(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:xl(e)?`Event \`${rD(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function rD(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function sD(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class iD extends SO{constructor(t){var d;const n=oD(t),r=Oe.SENTRY_SDK_SOURCE||xL();R0(n,"browser",["browser"],r),(d=n._metadata)!=null&&d.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,enableMetrics:c}=this._options,l=c??(a==null?void 0:a.enableMetrics)??!0;Oe.document&&(i||o||l)&&Oe.document.addEventListener("visibilitychange",()=>{Oe.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),o&&v0(this),l&&_0(this))}),s&&this.on("beforeSendSession",NO)}eventFromException(t,n){return eD(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return tD(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 oD(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=Oe.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const xs=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ge=xe,aD=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ma=(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=aD(t.value,n),e(t)))}},ga=(e=!0)=>{var n,r;const t=(r=(n=ge.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart{const e=ga();return(e==null?void 0:e.activationStart)??0};function Dr(e,t,n){ge.document&&ge.addEventListener(e,t,n)}function zc(e,t,n){ge.document&&ge.removeEventListener(e,t,n)}let fi=-1;const Z0=new Set,cD=()=>{var e,t;return((e=ge.document)==null?void 0:e.visibilityState)==="hidden"&&!((t=ge.document)!=null&&t.prerendering)?0:1/0},hc=e=>{if(lD(e)&&fi>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of Z0)t();isFinite(fi)||(fi=e.type==="visibilitychange"?e.timeStamp:0,zc("prerenderingchange",hc,!0))}},va=()=>{var e;if(ge.document&&fi<0){const t=Ki();fi=(ge.document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>t)[0])==null?void 0:e.startTime)??cD(),Dr("visibilitychange",hc,!0),Dr("pagehide",hc,!0),Dr("prerenderingchange",hc,!0)}return{get firstHiddenTime(){return fi},onHidden(t){Z0.add(t)}}};function lD(e){var t;return e.type==="pagehide"||((t=ge.document)==null?void 0:t.visibilityState)==="hidden"}const uD=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,ya=(e,t=-1)=>{var i,o;const n=ga();let r="navigate";return n&&((i=ge.document)!=null&&i.prerendering||Ki()>0?r="prerender":(o=ge.document)!=null&&o.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:uD(),navigationType:r}},Ou=new WeakMap;function Ph(e,t){try{return Ou.get(e)||Ou.set(e,new t),Ou.get(e)}catch{return new t}}class qc{constructor(){qc.prototype.__init.call(this),qc.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){var s;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]),(s=this._onAfterProcessingUnexpectedShift)==null||s.call(this,t)}}const Yi=(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{}},Oh=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Ll=e=>{var t;(t=ge.document)!=null&&t.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},dD=[1800,3e3],fD=(e,t={})=>{Ll(()=>{const n=va(),r=ya("FCP");let s;const o=Yi("paint",a=>{for(const c of a)c.name==="first-contentful-paint"&&(o.disconnect(),c.startTime{fD(Oh(()=>{var c;const n=ya("CLS",0);let r;const s=va(),i=Ph(t,qc),o=l=>{for(const d of l)i._processEntry(d);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},a=Yi("layout-shift",o);a&&(r=ma(e,n,hD,t.reportAllChanges),s.onHidden(()=>{o(a.takeRecords()),r(!0)}),(c=ge==null?void 0:ge.setTimeout)==null||c.call(ge,r))}))};let Q0=0,Lu=1/0,$a=0;const mD=e=>{e.forEach(t=>{t.interactionId&&(Lu=Math.min(Lu,t.interactionId),$a=Math.max($a,t.interactionId),Q0=$a?($a-Lu)/7+1:0)})};let jd;const eE=()=>jd?Q0:performance.interactionCount||0,gD=()=>{"interactionCount"in performance||jd||(jd=Yi("event",mD,{type:"event",buffered:!0,durationThreshold:0}))},Nu=10;let tE=0;const vD=()=>eE()-tE;class Gc{constructor(){Gc.prototype.__init.call(this),Gc.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){tE=eE(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(vD()/50));return this._longestInteractionList[t]}_processEntry(t){var s,i;if((s=this._onBeforeProcessingEntry)==null||s.call(this,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.lengthn._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((o,a)=>a._latency-o._latency),this._longestInteractionList.length>Nu){const o=this._longestInteractionList.splice(Nu);for(const a of o)this._longestInteractionMap.delete(a.id)}(i=this._onAfterProcessingINPCandidate)==null||i.call(this,r)}}}const nE=e=>{var n;const t=ge.requestIdleCallback||ge.setTimeout;((n=ge.document)==null?void 0:n.visibilityState)==="hidden"?e():(e=Oh(e),Dr("visibilitychange",e,{once:!0,capture:!0}),Dr("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),zc("visibilitychange",e,{capture:!0}),zc("pagehide",e,{capture:!0})}))},yD=[200,500],_D=40,bD=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=va();Ll(()=>{gD();const r=ya("INP");let s;const i=Ph(t,Gc),o=c=>{nE(()=>{for(const d of c)i._processEntry(d);const l=i._estimateP98LongestInteraction();l&&l._latency!==r.value&&(r.value=l._latency,r.entries=l.entries,s())})},a=Yi("event",o,{durationThreshold:t.durationThreshold??_D});s=ma(e,r,yD,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(a.takeRecords()),s(!0)}))})};class SD{_processEntry(t){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,t)}}const ED=[2500,4e3],wD=(e,t={})=>{Ll(()=>{const n=va(),r=ya("LCP");let s;const i=Ph(t,SD),o=c=>{t.reportAllChanges||(c=c.slice(-1));for(const l of c)i._processEntry(l),l.startTime{o(a.takeRecords()),a.disconnect(),s(!0)}),l=d=>{d.isTrusted&&(nE(c),zc(d.type,l,{capture:!0}))};for(const d of["keydown","click","visibilitychange"])Dr(d,l,{capture:!0})}})},CD=[800,1800],zd=e=>{var t,n;(t=ge.document)!=null&&t.prerendering?Ll(()=>zd(e)):((n=ge.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>zd(e),!0):setTimeout(e)},TD=(e,t={})=>{const n=ya("TTFB"),r=ma(e,n,CD,t.reportAllChanges);zd(()=>{const s=ga();s&&(n.value=Math.max(s.responseStart-Ki(),0),n.entries=[s],r(!0))})},Eo={},Kc={};let rE,sE,iE,oE;function Lh(e,t=!1){return Nl("cls",e,ID,rE,t)}function Nh(e,t=!1){return Nl("lcp",e,xD,sE,t)}function kD(e){return Nl("ttfb",e,RD,iE)}function aE(e){return Nl("inp",e,AD,oE)}function Rs(e,t){return cE(e,t),Kc[e]||(MD(e),Kc[e]=!0),lE(e,t)}function _a(e,t){const n=Eo[e];if(n!=null&&n.length)for(const r of n)try{r(t)}catch(s){xs&&J.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${ar(r)} Error:`,s)}}function ID(){return pD(e=>{_a("cls",{metric:e}),rE=e},{reportAllChanges:!0})}function xD(){return wD(e=>{_a("lcp",{metric:e}),sE=e},{reportAllChanges:!0})}function RD(){return TD(e=>{_a("ttfb",{metric:e}),iE=e})}function AD(){return bD(e=>{_a("inp",{metric:e}),oE=e})}function Nl(e,t,n,r,s=!1){cE(e,t);let i;return Kc[e]||(i=n(),Kc[e]=!0),r&&t({metric:r}),lE(e,t,s?i:void 0)}function MD(e){const t={};e==="event"&&(t.durationThreshold=0),Yi(e,n=>{_a(e,{entries:n})},t)}function cE(e,t){Eo[e]=Eo[e]||[],Eo[e].push(t)}function lE(e,t,n){return()=>{n&&n();const r=Eo[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function PD(e){return"duration"in e}const OD=e=>{const t=n=>{var r;(n.type==="pagehide"||((r=ge.document)==null?void 0:r.visibilityState)==="hidden")&&e(n)};Dr("visibilitychange",t,{capture:!0,once:!0}),Dr("pagehide",t,{capture:!0,once:!0})};function Du(e){return typeof e=="number"&&isFinite(e)}function Wr(e,t,n,{...r}){const s=Re(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),gh(e,()=>{const i=Vr({startTime:t,...r});return i&&i.end(n),i})}function Dh(e){var v;const t=Ee();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:i}=e,{release:o,environment:a,sendDefaultPii:c}=t.getOptions(),l=t.getIntegrationByName("Replay"),d=l==null?void 0:l.getReplayId(),u=Me(),f=u.getUser(),h=f!==void 0?f.email||f.id||f.ip_address:void 0;let p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}const m={release:o,environment:a,user:h||void 0,profile_id:p||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":(v=ge.navigator)==null?void 0:v.userAgent,"client.address":c?"{{auto}}":void 0,...s};return Vr({name:n,attributes:m,startTime:i,experimental:{standalone:!0}})}function ba(){return ge.addEventListener&&ge.performance}function at(e){return e/1e3}function LD(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 uE(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function dE(e,t){let n,r=!1;function s(a){!r&&n&&t(a,n),r=!0}OD(()=>{s("pagehide")});const i=e.on("beforeStartNavigationSpan",(a,c)=>{c!=null&&c.isRedirect||(s("navigation"),i(),o())}),o=e.on("afterStartPageLoadSpan",a=>{n=a.spanContext().spanId,o()})}function ND(e){let t=0,n;if(!uE("layout-shift"))return;const r=Lh(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);dE(e,(s,i)=>{DD(t,n,i,s),r()})}function DD(e,t,n,r){var l;xs&&J.log(`Sending CLS span (${e})`);const s=t?at((Gt()||0)+t.startTime):lt(),i=Me().getScopeData().transactionName,o=t?zt((l=t.sources[0])==null?void 0:l.node):"Layout shift",a={[st]:"auto.http.browser.cls",[ur]:"ui.webvital.cls",[qi]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t!=null&&t.sources&&t.sources.forEach((d,u)=>{a[`cls.source.${u+1}`]=zt(d.node)});const c=Dh({name:o,transaction:i,attributes:a,startTime:s});c&&(c.addEvent("cls",{[da]:"",[fa]:e}),c.end(s))}function FD(e){let t=0,n;if(!uE("largest-contentful-paint"))return;const r=Nh(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);dE(e,(s,i)=>{$D(t,n,i,s),r()})}function $D(e,t,n,r){xs&&J.log(`Sending LCP span (${e})`);const s=at((Gt()||0)+((t==null?void 0:t.startTime)||0)),i=Me().getScopeData().transactionName,o=t?zt(t.element):"Largest contentful paint",a={[st]:"auto.http.browser.lcp",[ur]:"ui.webvital.lcp",[qi]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=zt(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),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=Dh({name:o,transaction:i,attributes:a,startTime:s});c&&(c.addEvent("lcp",{[da]:"millisecond",[fa]:e}),c.end(s))}function on(e){return e&&((Gt()||performance.timeOrigin)+e)/1e3}function fE(e){var n;const t={};if(e.nextHopProtocol!=null){const{name:r,version:s}=LD(e.nextHopProtocol);t["network.protocol.version"]=s,t["network.protocol.name"]=r}return Gt()||(n=ba())!=null&&n.timeOrigin?BD({...t,"http.request.redirect_start":on(e.redirectStart),"http.request.redirect_end":on(e.redirectEnd),"http.request.worker_start":on(e.workerStart),"http.request.fetch_start":on(e.fetchStart),"http.request.domain_lookup_start":on(e.domainLookupStart),"http.request.domain_lookup_end":on(e.domainLookupEnd),"http.request.connect_start":on(e.connectStart),"http.request.secure_connection_start":on(e.secureConnectionStart),"http.request.connection_end":on(e.connectEnd),"http.request.request_start":on(e.requestStart),"http.request.response_start":on(e.responseStart),"http.request.response_end":on(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function BD(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const HD=2147483647;let Sv=0,yn={},Vt,ei;function VD({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=ba();if(r&&Gt()){r.mark&&ge.performance.mark("sentry-tracing-init");const s=t?FD(n):qD(),i=GD(),o=e?ND(n):zD();return()=>{s==null||s(),i(),o==null||o()}}return()=>{}}function UD(){Rs("longtask",({entries:e})=>{const t=Tt();if(!t)return;const{op:n,start_timestamp:r}=Re(t);for(const s of e){const i=at(Gt()+s.startTime),o=at(s.duration);n==="navigation"&&r&&i{const n=Tt();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=at(Gt()+r.startTime),{start_timestamp:i,op:o}=Re(n);if(o==="navigation"&&i&&s{const t=Tt();if(t){for(const n of e)if(n.name==="click"){const r=at(Gt()+n.startTime),s=at(n.duration),i={name:zt(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[st]:"auto.ui.browser.metrics"}},o=FS(n.target);o&&(i.attributes["ui.component_name"]=o),Wr(t,r,r+s,i)}}})}function zD(){return Lh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(yn.cls={value:e.value,unit:""},ei=t)},!0)}function qD(){return Nh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(yn.lcp={value:e.value,unit:"millisecond"},Vt=t)},!0)}function GD(){return kD(({metric:e})=>{e.entries[e.entries.length-1]&&(yn.ttfb={value:e.value,unit:"millisecond"})})}function KD(e,t){const n=ba(),r=Gt();if(!(n!=null&&n.getEntries)||!r)return;const s=at(r),i=n.getEntries(),{op:o,start_timestamp:a}=Re(e);i.slice(Sv).forEach(c=>{const l=at(c.startTime),d=at(Math.max(0,c.duration));if(!(o==="navigation"&&a&&s+l{mP(c,l.value,l.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",Ki()),rF(e,t)),Vt=void 0,ei=void 0,yn={}}function YD(e){if((e==null?void 0:e.entryType)==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function XD(e,t,n,r,s,i){if(YD(t)||["mark","measure"].includes(t.entryType)&&er(t.name,i))return;const o=ga(!1),a=at(o?o.requestStart:0),c=s+Math.max(n,a),l=s+n,d=l+r,u={[st]:"auto.resource.browser.metrics"};c!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=c),JD(u,t),c<=d&&Wr(e,c,d,{name:t.name,op:t.entryType,attributes:u})}function JD(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&Ei(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(Ei(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function ZD(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Ba(e,t,r,n)}),Ba(e,t,"secureConnection",n,"TLS/SSL"),Ba(e,t,"fetch",n,"cache"),Ba(e,t,"domainLookup",n,"DNS"),eF(e,t,n)}function Ba(e,t,n,r,s=n){const i=QD(n),o=t[i],a=t[`${n}Start`];!a||!o||Wr(e,r+at(a),r+at(o),{op:`browser.${s}`,name:t.name,attributes:{[st]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function QD(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function eF(e,t,n){const r=n+at(t.requestStart),s=n+at(t.responseEnd),i=n+at(t.responseStart);t.responseEnd&&(Wr(e,r,s,{op:"browser.request",name:t.name,attributes:{[st]:"auto.ui.browser.metrics"}}),Wr(e,i,s,{op:"browser.response",name:t.name,attributes:{[st]:"auto.ui.browser.metrics"}}))}function tF(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!=null&&o.includes(a))return;const c={[st]:"auto.resource.browser.metrics"},l=Ss(n);l.protocol&&(c["url.scheme"]=l.protocol.split(":").pop()),l.host&&(c["server.address"]=l.host),c["url.same_origin"]=n.includes(ge.location.origin),sF(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,...fE(t)},u=i+r,f=u+s;Wr(e,u,f,{name:n.replace(ge.location.origin,""),op:a,attributes:d})}function nF(e){const t=ge.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Du(n.rtt)&&(yn["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Du(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Du(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function rF(e,t){Vt&&t.recordLcpOnPageloadSpan&&(Vt.element&&e.setAttribute("lcp.element",zt(Vt.element)),Vt.id&&e.setAttribute("lcp.id",Vt.id),Vt.url&&e.setAttribute("lcp.url",Vt.url.trim().slice(0,200)),Vt.loadTime!=null&&e.setAttribute("lcp.loadTime",Vt.loadTime),Vt.renderTime!=null&&e.setAttribute("lcp.renderTime",Vt.renderTime),e.setAttribute("lcp.size",Vt.size)),ei!=null&&ei.sources&&t.recordClsOnPageloadSpan&&ei.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,zt(n.node)))}function sF(e,t,n){n.forEach(([r,s])=>{const i=e[r];i!=null&&(typeof i=="number"&&i{}}const aF=({entries:e})=>{const t=Tt(),n=t?wt(t):void 0,r=n?Re(n).description:Me().getScopeData().transactionName;e.forEach(s=>{var h,p;const i=s;if(!i.identifier)return;const o=i.name,a=i.renderTime,c=i.loadTime,[l,d]=c?[at(c),"load-time"]:a?[at(a),"render-time"]:[lt(),"entry-emission"],u=o==="image-paint"?at(Math.max(0,(a??0)-(c??0))):0,f={[st]:"auto.ui.browser.elementtiming",[ur]:"ui.elementtiming",[jt]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":r,"element.id":i.id,"element.type":((p=(h=i.element)==null?void 0:h.tagName)==null?void 0:p.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};SP({name:`element[${i.identifier}]`,attributes:f,startTime:l,onlyIfParent:!0},m=>{m.end(l+u)})})},cF=1e3;let Ev,qd,Gd;function hE(e){const t="dom";Kr(t,e),Yr(t,lF)}function lF(){if(!ge.document)return;const e=dn.bind(null,"dom"),t=wv(e,!0);ge.document.addEventListener("click",t,!1),ge.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var i,o;const s=(i=ge[n])==null?void 0:i.prototype;(o=s==null?void 0:s.hasOwnProperty)!=null&&o.call(s,"addEventListener")&&(Wt(s,"addEventListener",function(a){return function(c,l,d){if(c==="click"||c=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=u[c]=u[c]||{refCount:0};if(!f.handler){const h=wv(e);f.handler=h,a.call(this,c,h,d)}f.refCount++}catch{}return a.call(this,c,l,d)}}),Wt(s,"removeEventListener",function(a){return function(c,l,d){if(c==="click"||c=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},f=u[c];f&&(f.refCount--,f.refCount<=0&&(a.call(this,c,f.handler,d),f.handler=void 0,delete u[c]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,c,l,d)}}))})}function uF(e){if(e.type!==qd)return!1;try{if(!e.target||e.target._sentryId!==Gd)return!1}catch{}return!0}function dF(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function wv(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=fF(n);if(dF(n.type,r))return;qt(n,"_sentryCaptured",!0),r&&!r._sentryId&&qt(r,"_sentryId",tn());const s=n.type==="keypress"?"input":n.type;uF(n)||(e({event:n,name:s,global:t}),qd=n.type,Gd=r?r._sentryId:void 0),clearTimeout(Ev),Ev=ge.setTimeout(()=>{Gd=void 0,qd=void 0},cF)}}function fF(e){try{return e.target}catch{return null}}let Ha;function Dl(e){const t="history";Kr(t,e),Yr(t,hF)}function hF(){if(ge.addEventListener("popstate",()=>{const t=ge.location.href,n=Ha;if(Ha=t,n===t)return;dn("history",{from:n,to:t})}),!_L())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=Ha,i=pF(String(r));if(Ha=i,s===i)return t.apply(this,n);dn("history",{from:s,to:i})}return t.apply(this,n)}}Wt(ge.history,"pushState",e),Wt(ge.history,"replaceState",e)}function pF(e){try{return new URL(e,ge.location.origin).toString()}catch{return e}}const pc={};function pE(e){const t=pc[e];if(t)return t;let n=ge[e];if(Fd(n))return pc[e]=n.bind(ge);const r=ge.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!=null&&i[e]&&(n=i[e]),r.head.removeChild(s)}catch(s){xs&&J.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(pc[e]=n.bind(ge))}function mF(e){pc[e]=void 0}function Sa(...e){return pE("setTimeout")(...e)}const ds="__sentry_xhr_v3__";function mE(e){const t="xhr";Kr(t,e),Yr(t,gF)}function gF(){if(!ge.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,i=lt()*1e3,o=Qn(r[0])?r[0].toUpperCase():void 0,a=vF(r[1]);if(!o||!a)return t.apply(n,r);n[ds]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const l=n[ds];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const d={endTimestamp:lt()*1e3,startTimestamp:i,xhr:n,virtualError:s};dn("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,d,u){return c(),l.apply(d,u)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,d,u){const[f,h]=u,p=d[ds];return p&&Qn(f)&&Qn(h)&&(p.request_headers[f.toLowerCase()]=h),l.apply(d,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[ds];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const i={startTimestamp:lt()*1e3,xhr:n};return dn("xhr",i),t.apply(n,r)}})}function vF(e){if(Qn(e))return e;try{return e.toString()}catch{}}const yF=Symbol.for("sentry__originalRequestBody");function gE(e){return new URLSearchParams(e).toString()}function vE(e,t=J){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[gE(e)];if(!e)return[void 0]}catch(n){return xs&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return xs&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function yE(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][yF];return n!==void 0?n:void 0}}function _E(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return xs&&J.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r `).reduce((n,r)=>{const[s,i]=r.split(": ");return i&&(n[s.toLowerCase()]=i),n},{}):{}}const Fu=[],mc=new Map,js=new Map,_F=60;function bF(){if(ba()&&Gt()){const t=SF();return()=>{t()}}return()=>{}}const Kd={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 SF(){return aE(EF)}const EF=({metric:e})=>{if(e.value==null)return;const t=at(e.value);if(t>_F)return;const n=e.entries.find(p=>p.duration===e.value&&Kd[p.name]);if(!n)return;const{interactionId:r}=n,s=Kd[n.name],i=at(Gt()+n.startTime),o=Tt(),a=o?wt(o):void 0,c=r!=null?mc.get(r):void 0,l=(c==null?void 0:c.span)||a,d=l?Re(l).description:Me().getScopeData().transactionName,u=(c==null?void 0:c.elementName)||zt(n.target),f={[st]:"auto.http.browser.inp",[ur]:`ui.interaction.${s}`,[qi]:n.duration},h=Dh({name:u,transaction:d,attributes:f,startTime:i});h&&(h.addEvent("inp",{[da]:"millisecond",[fa]:e.value}),h.end(i+t))};function wF(){const e=Object.keys(Kd);Wc()&&e.forEach(s=>{ge.addEventListener(s,t,{capture:!0,passive:!0})});function t(s){const i=s.target;if(!i)return;const o=zt(i),a=Math.round(s.timeStamp);if(js.set(a,o),js.size>50){const c=js.keys().next().value;c!==void 0&&js.delete(c)}}function n(s){const i=Math.round(s.startTime);let o=js.get(i);if(!o)for(let a=-5;a<=5;a++){const c=js.get(i+a);if(c){o=c;break}}return o||""}const r=({entries:s})=>{const i=Tt(),o=i&&wt(i);s.forEach(a=>{if(!PD(a))return;const c=a.interactionId;if(c==null||mc.has(c))return;const l=a.target?zt(a.target):n(a);if(Fu.length>10){const d=Fu.shift();mc.delete(d)}Fu.push(c),mc.set(c,{span:o,elementName:l})})};Rs("event",r),Rs("first-input",r)}const CF=40;function TF(e,t=pE("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 mF("fetch"),c}finally{n-=o,r--}}return gO(e,s,bh(e.bufferSize||CF))}const pn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,kF=30,IF=50;function Yd(e,t,n,r){const s={filename:e,function:t===""?ks:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const xF=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,RF=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,AF=/\((\S*)(?::(\d+))(?::(\d+))\)/,MF=/at (.+?) ?\(data:(.+?),/,PF=e=>{const t=e.match(MF);if(t)return{filename:``,function:t[1]};const n=xF.exec(e);if(n){const[,s,i,o]=n;return Yd(s,ks,+i,+o)}const r=RF.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const a=AF.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[i,o]=bE(r[1]||ks,r[2]);return Yd(o,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},OF=[kF,PF],LF=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,NF=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,DF=e=>{const t=LF.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=NF.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]||ks;return[s,r]=bE(s,r),Yd(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},FF=[IF,DF],$F=[OF,FF],BF=AS(...$F),bE=(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]:ks,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Va=1024,HF="Breadcrumbs",VF=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:HF,setup(n){t.console&&tL(zF(n)),t.dom&&hE(jF(n,t.dom)),t.xhr&&mE(qF(n)),t.fetch&&D0(GF(n)),t.history&&Dl(KF(n)),t.sentry&&n.on("beforeSendEvent",WF(n))}}},UF=VF;function WF(e){return function(n){Ee()===e&&Ur({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:as(n)},{event:n})}}function jF(e,t){return function(r){if(Ee()!==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>Va&&(pn&&J.warn(`\`dom.maxStringLength\` cannot exceed ${Va}, but a value of ${a} was configured. Sentry will use ${Va} instead.`),a=Va),typeof o=="string"&&(o=[o]);try{const l=r.event,d=YF(l)?l.target:l;s=zt(d,{keyAttrs:o,maxStringLength:a}),i=FS(d)}catch{s=""}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};i&&(c.data={"ui.component_name":i}),Ur(c,{event:r.event,name:r.name,global:r.global})}}function zF(e){return function(n){if(Ee()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:P0(n.level),message:gg(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${gg(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Ur(r,{input:n.args,level:n.level})}}function qF(e){return function(n){if(Ee()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[ds];if(!r||!s||!i)return;const{method:o,url:a,status_code:c,body:l}=i,d={method:o,url:a,status_code:c},u={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:s},f={category:"xhr",data:d,type:"http",level:N0(c)};e.emit("beforeOutgoingRequestBreadcrumb",f,u),Ur(f,u)}}function GF(e){return function(n){if(Ee()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(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),Ur(a,o)}else{const i=n.response,o={...n.fetchData,status_code:i==null?void 0:i.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i==null||i.status;const a={input:n.args,response:i,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:o,type:"http",level:N0(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),Ur(c,a)}}}function KF(e){return function(n){if(Ee()!==e)return;let r=n.from,s=n.to;const i=Ss(Oe.location.href);let o=r?Ss(r):void 0;const a=Ss(s);o!=null&&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),Ur({category:"navigation",data:{from:r,to:s}})}}function YF(e){return!!e&&!!e.target}const XF=["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"],JF="BrowserApiErrors",ZF=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:JF,setupOnce(){t.setTimeout&&Wt(Oe,"setTimeout",Cv),t.setInterval&&Wt(Oe,"setInterval",Cv),t.requestAnimationFrame&&Wt(Oe,"requestAnimationFrame",e$),t.XMLHttpRequest&&"XMLHttpRequest"in Oe&&Wt(XMLHttpRequest.prototype,"send",t$);const n=t.eventTarget;n&&(Array.isArray(n)?n:XF).forEach(s=>n$(s,t))}}},QF=ZF;function Cv(e){return function(...t){const n=t[0];return t[0]=Ri(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${ar(e)}`}}),e.apply(this,t)}}function e$(e){return function(t){return e.apply(this,[Ri(t,{mechanism:{data:{handler:ar(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function t$(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&Wt(n,s,function(i){const o={mechanism:{data:{handler:ar(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},a=ch(i);return a&&(o.mechanism.data.handler=ar(a)),Ri(i,o)})}),e.apply(this,t)}}function n$(e,t){var s,i;const r=(s=Oe[e])==null?void 0:s.prototype;(i=r==null?void 0:r.hasOwnProperty)!=null&&i.call(r,"addEventListener")&&(Wt(r,"addEventListener",function(o){return function(a,c,l){try{r$(c)&&(c.handleEvent=Ri(c.handleEvent,{mechanism:{data:{handler:ar(c),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&s$(this,a,c),o.apply(this,[a,Ri(c,{mechanism:{data:{handler:ar(c),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),l])}}),Wt(r,"removeEventListener",function(o){return function(a,c,l){try{const d=c.__sentry_wrapped__;d&&o.call(this,a,d,l)}catch{}return o.call(this,a,c,l)}}))}function r$(e){return typeof e.handleEvent=="function"}function s$(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const i$=()=>({name:"BrowserSession",setupOnce(){if(typeof Oe.document>"u"){pn&&J.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Fg({ignoreDuration:!0}),$g(),Dl(({from:e,to:t})=>{e!==void 0&&e!==t&&(Fg({ignoreDuration:!0}),$g())})}}),o$="GlobalHandlers",a$=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:o$,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(l$(n),Tv("onerror")),t.onunhandledrejection&&(u$(n),Tv("onunhandledrejection"))}}},c$=a$;function l$(e){PS(t=>{const{stackParser:n,attachStacktrace:r}=SE();if(Ee()!==e||X0())return;const{msg:s,url:i,line:o,column:a,error:c}=t,l=h$(Mh(n,c||s,void 0,r,!1),i,o,a);l.level="error",h0(l,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function u$(e){OS(t=>{const{stackParser:n,attachStacktrace:r}=SE();if(Ee()!==e||X0())return;const s=d$(t),i=Ei(s)?f$(s):Mh(n,s,void 0,r,!0);i.level="error",h0(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function d$(e){if(Ei(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 f$(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function h$(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||[],l=r,d=n,u=p$(t)??Ls();return c.length===0&&c.push({colno:l,filename:u,function:ks,in_app:!0,lineno:d}),e}function Tv(e){pn&&J.log(`Global Handler attached: ${e}`)}function SE(){const e=Ee();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function p$(e){if(!(!Qn(e)||e.length===0))return e.startsWith("data:")?`<${Nr(e,!1)}>`:e}const m$=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!Oe.navigator&&!Oe.location&&!Oe.document)return;const t=xh(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}}}),g$="cause",v$=5,y$="LinkedErrors",_$=(e={})=>{const t=e.limit||v$,n=e.key||g$;return{name:y$,preprocessEvent(r,s,i){const o=i.getOptions();eL(Rh,o.stackParser,n,t,r,s)}}},b$=_$;function S$(){return E$()?(pn&&yr(()=>{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 E$(){var i;if(typeof Oe.window>"u")return!1;const e=Oe;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((i=t==null?void 0:t.runtime)!=null&&i.id))return!1;const n=Ls(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Oe===Oe.top&&r.some(o=>n.startsWith(`${o}://`)))}function EE(e){return[qO(),UO(),dL(),QF(),UF(),c$(),b$(),iL(),m$(),i$()]}function w$(e={}){const t=!e.skipBrowserExtensionCheck&&S$();let n=e.defaultIntegrations==null?EE():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:zA(e.stackParser||BF),integrations:iO({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||TF};return IO(iD,r)}const Ye=xe,Fh="sentryReplaySession",C$="replay_event",$h="Unable to send Replay",T$=3e5,k$=9e5,I$=5e3,x$=5500,R$=6e4,A$=5e3,M$=3,kv=15e4,Ua=5e3,P$=3e3,O$=300,Bh=2e7,L$=4999,N$=5e4,Iv=36e5;var D$=Object.defineProperty,F$=(e,t,n)=>t in e?D$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xv=(e,t,n)=>F$(e,typeof t!="symbol"?t+"":t,n),ut=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ut||{});function $$(e){return e.nodeType===e.ELEMENT_NODE}function wo(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function Co(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function B$(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function H$(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Yc(e){try{const t=e.rules||e.cssRules;return t?B$(Array.from(t,wE).join("")):null}catch{return null}}function V$(e){let t="";for(let n=0;nthis.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function z$(){return new CE}function Fl({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Ko({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function Ai(e){return e.toLowerCase()}function Xd(e){return e.toUpperCase()}const Rv="__rrweb_original__";function q$(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;rc!==0))return!1}return!0}function Hh(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ai(t):null}function Xc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function TE(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(r);return(s==null?void 0:s[1])??null}const Av={};function kE(e){const t=Av[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return Av[e]=r.bind(window)}function Jd(...e){return kE("setTimeout")(...e)}function IE(...e){return kE("clearTimeout")(...e)}function xE(e){try{return e.contentDocument}catch{}}let G$=1;const K$=new RegExp("[^a-z0-9-_:]"),Yo=-2;function Vh(){return G$++}function Y$(e){if(e instanceof HTMLFormElement)return"form";const t=Ai(e.tagName);return K$.test(t)?"div":t}function X$(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let zs,Mv;const J$=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Z$=/^(?:[a-z+]+:)?\/\//i,Q$=/^www\..*/i,eB=/^(data:)([^,]*),(.*)/i;function tB(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let s of n){if(s=s.trim(),!s)continue;const i=s.indexOf(":");if(i===-1){r.push(s);continue}const o=s.slice(0,i).trim();t.has(o)||r.push(s)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function Jc(e,t){return(e||"").replace(J$,(n,r,s,i,o,a)=>{const c=s||o||a,l=r||i||"";if(!c)return n;if(Z$.test(c)||Q$.test(c))return`url(${l}${c}${l})`;if(eB.test(c))return`url(${l}${c}${l})`;if(c[0]==="/")return`url(${l}${X$(t)+c}${l})`;const d=t.split("/"),u=c.split("/");d.pop();for(const f of u)f!=="."&&(f===".."?d.pop():d.push(f));return`url(${l}${d.join("/")}${l})`})}const nB=/^[^ \t\n\r\u000c]+/,rB=/^[, \t\n\r\u000c]+/;function sB(e,t){if(t.trim()==="")return t;let n=0;function r(i){let o;const a=i.exec(t.substring(n));return a?(o=a[0],n+=o.length,o):""}const s=[];for(;r(rB),!(n>=t.length);){let i=r(nB);if(i.slice(-1)===",")i=ti(e,i.substring(0,i.length-1)),s.push(i);else{let o="";i=ti(e,i);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((i+o).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((i+o).trim());break}else c==="("&&(a=!0);o+=c,n+=1}}}return s.join(", ")}const Pv=new WeakMap;function ti(e,t){return!t||t.trim()===""?t:$l(e,t)}function iB(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function $l(e,t){let n=Pv.get(e);if(n||(n=e.createElement("a"),Pv.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function RE(e,t,n,r,s,i,o){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return ti(e,r);if(n==="xlink:href"&&r[0]!=="#")return ti(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return ti(e,r);if(n==="srcset")return sB(e,r);if(n==="style"){let a=Jc(r,$l(e));return o&&o.size>0&&(a=tB(a,o)),a}else if(t==="object"&&n==="data")return ti(e,r);return typeof i=="function"?i(n,r,s):r}function AE(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function oB(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const i=e.classList[s];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function aB(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function fs(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:fs(e.parentNode,t,n,r+1)}function ni(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(aB(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Mi(e,t,n,r,s,i){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const l=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let a=-1,c=-1;if(i){if(c=fs(o,ni(r,s)),c<0)return!0;a=fs(o,ni(t,n),c>=0?c:1/0)}else{if(a=fs(o,ni(t,n)),a<0)return!1;c=fs(o,ni(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!i}catch{}return!!i}function cB(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const a=Jd(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{IE(a),s=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return Jd(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function lB(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const i=Jd(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{IE(i),r=!0,t()})}function uB(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:p={},maskTextFn:m,maskInputFn:v,dataURLOptions:g={},inlineImages:y,recordCanvas:_,keepIframeSrcFn:S,newlyAddedElement:M=!1,ignoreCSSAttributes:R}=t,E=dB(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ut.Document,childNodes:[],compatMode:e.compatMode}:{type:ut.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ut.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return hB(e,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:p,maskInputFn:v,dataURLOptions:g,inlineImages:y,recordCanvas:_,keepIframeSrcFn:S,newlyAddedElement:M,rootId:E,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,ignoreCSSAttributes:R});case e.TEXT_NODE:return fB(e,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:p,maskInputFn:v,rootId:E});case e.CDATA_SECTION_NODE:return{type:ut.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:ut.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function dB(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function fB(e,t){var g;const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:d}=t,u=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const h=u==="STYLE"?!0:void 0,p=u==="SCRIPT"?!0:void 0,m=u==="TEXTAREA"?!0:void 0;if(h&&f){try{e.nextSibling||e.previousSibling||(g=e.parentNode.sheet)!=null&&g.cssRules&&(f=Yc(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}f=Jc(f,$l(t.doc))}p&&(f="SCRIPT_PLACEHOLDER");const v=Mi(e,r,i,s,o,n);if(!h&&!p&&!m&&f&&v&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||v)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,"*")),u==="OPTION"&&f){const y=Fl({type:null,tagName:u,maskInputOptions:c});f=Ko({isMasked:Mi(e,r,i,s,o,y),element:e,value:f,maskInputFn:l})}return{type:ut.Text,textContent:f||"",isStyle:h,rootId:d}}function hB(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:d={},inlineImages:u,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:m,maskTextClass:v,unmaskTextClass:g,maskTextSelector:y,unmaskTextSelector:_,ignoreCSSAttributes:S}=t,M=oB(e,r,s,i),R=Y$(e);let E={};const C=e.attributes.length;for(let A=0;AT.href===e.href);let O=null;A&&(O=Yc(A)),O&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=Jc(O,A.href))}if(R==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=Yc(e.sheet);A&&(E._cssText=Jc(A,$l(n)))}if(R==="input"||R==="textarea"||R==="select"||R==="option"){const A=e,O=Hh(A),T=Xc(A,Xd(R),O),P=A.checked;if(O!=="submit"&&O!=="button"&&T){const N=Mi(A,v,y,g,_,Fl({type:O,tagName:Xd(R),maskInputOptions:a}));E.value=Ko({isMasked:N,element:A,value:T,maskInputFn:l})}P&&(E.checked=P)}if(R==="option"&&(e.selected&&!a.select?E.selected=!0:delete E.selected),R==="canvas"&&f){if(e.__context==="2d")q$(e)||(E.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const A=e.toDataURL(d.type,d.quality),O=n.createElement("canvas");O.width=e.width,O.height=e.height;const T=O.toDataURL(d.type,d.quality);A!==T&&(E.rr_dataURL=A)}}if(R==="img"&&u){zs||(zs=n.createElement("canvas"),Mv=zs.getContext("2d"));const A=e,O=A.currentSrc||A.getAttribute("src")||"",T=A.crossOrigin,P=()=>{A.removeEventListener("load",P);try{zs.width=A.naturalWidth,zs.height=A.naturalHeight,Mv.drawImage(A,0,0),E.rr_dataURL=zs.toDataURL(d.type,d.quality)}catch(N){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous",A.complete&&A.naturalWidth!==0?P():A.addEventListener("load",P);return}else console.warn(`Cannot inline img src=${O}! Error: ${N}`)}A.crossOrigin==="anonymous"&&(T?E.crossOrigin=T:A.removeAttribute("crossorigin"))};A.complete&&A.naturalWidth!==0?P():A.addEventListener("load",P)}if((R==="audio"||R==="video")&&(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),p||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),M){const{width:A,height:O}=e.getBoundingClientRect();E={class:E.class,rr_width:`${A}px`,rr_height:`${O}px`}}R==="iframe"&&!h(E.src)&&(!M&&!xE(e)&&(E.rr_src=E.src),delete E.src);let I;try{customElements.get(R)&&(I=!0)}catch{}return{type:ut.Element,tagName:R,attributes:E,childNodes:[],isSVG:iB(e)||void 0,needBlock:M,rootId:m,isCustom:I}}function Ge(e){return e==null?"":e.toLowerCase()}function pB(e,t){if(t.comment&&e.type===ut.Comment)return!0;if(e.type===ut.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&TE(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Ge(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Ge(e.attributes.name)==="application-name"||Ge(e.attributes.rel)==="icon"||Ge(e.attributes.rel)==="apple-touch-icon"||Ge(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Ge(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ge(e.attributes.property).match(/^(og|twitter|fb):/)||Ge(e.attributes.name).match(/^(og|twitter):/)||Ge(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Ge(e.attributes.name)==="robots"||Ge(e.attributes.name)==="googlebot"||Ge(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Ge(e.attributes.name)==="author"||Ge(e.attributes.name)==="generator"||Ge(e.attributes.name)==="framework"||Ge(e.attributes.name)==="publisher"||Ge(e.attributes.name)==="progid"||Ge(e.attributes.property).match(/^article:/)||Ge(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Ge(e.attributes.name)==="google-site-verification"||Ge(e.attributes.name)==="yandex-verification"||Ge(e.attributes.name)==="csrf-token"||Ge(e.attributes.name)==="p:domain_verify"||Ge(e.attributes.name)==="verify-v1"||Ge(e.attributes.name)==="verification"||Ge(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ri(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:p={},maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_={},inlineImages:S=!1,recordCanvas:M=!1,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:C=5e3,onBlockedImageLoad:I,onStylesheetLoad:A,stylesheetLoadTimeout:O=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:P=!1,ignoreCSSAttributes:N}=t;let{preserveWhiteSpace:z=!0}=t;const X=uB(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,dataURLOptions:_,inlineImages:S,recordCanvas:M,keepIframeSrcFn:T,newlyAddedElement:P,ignoreCSSAttributes:N});if(!X)return console.warn(e,"not serialized"),null;let q;r.hasNode(e)?q=r.getId(e):pB(X,y)||!z&&X.type===ut.Text&&!X.isStyle&&!X.textContent.replace(/^\s+|\s+$/gm,"").length?q=Yo:q=Vh();const D=Object.assign(X,{id:q});if(r.add(e,D),q===Yo)return null;R&&R(e);let re=!f;if(D.type===ut.Element){re=re&&!D.needBlock;const U=e.shadowRoot;U&&Co(U)&&(D.isShadowHost=!0)}if((D.type===ut.Document||D.type===ut.Element)&&re){y.headWhitespace&&D.type===ut.Element&&D.tagName==="head"&&(z=!1);const U={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:f,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_,inlineImages:S,recordCanvas:M,preserveWhiteSpace:z,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:C,onBlockedImageLoad:I,onStylesheetLoad:A,stylesheetLoadTimeout:O,keepIframeSrcFn:T,ignoreCSSAttributes:N},ie=e.childNodes?Array.from(e.childNodes):[];for(const ae of ie){const ue=ri(ae,U);ue&&D.childNodes.push(ue)}if($$(e)&&e.shadowRoot)for(const ae of Array.from(e.shadowRoot.childNodes)){const ue=ri(ae,U);ue&&(Co(e.shadowRoot)&&(ue.isShadow=!0),D.childNodes.push(ue))}}if(e.parentNode&&wo(e.parentNode)&&Co(e.parentNode)&&(D.isShadow=!0),D.type===ut.Element&&D.tagName==="iframe"&&!D.needBlock&&cB(e,()=>{const U=xE(e);if(U&&E){const ie=ri(U,{doc:U,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_,inlineImages:S,recordCanvas:M,preserveWhiteSpace:z,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:C,onStylesheetLoad:A,stylesheetLoadTimeout:O,keepIframeSrcFn:T,ignoreCSSAttributes:N});ie&&E(e,ie)}},C),D.type===ut.Element&&D.tagName==="img"&&!e.complete&&D.needBlock){const U=e,ie=()=>{if(U.isConnected&&!U.complete&&I)try{const ae=U.getBoundingClientRect();ae.width>0&&ae.height>0&&I(U,D,ae)}catch{}U.removeEventListener("load",ie)};U.isConnected&&U.addEventListener("load",ie)}return D.type===ut.Element&&D.tagName==="link"&&typeof D.attributes.rel=="string"&&(D.attributes.rel==="stylesheet"||D.attributes.rel==="preload"&&typeof D.attributes.href=="string"&&TE(D.attributes.href)==="css")&&lB(e,()=>{if(A){const U=ri(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_,inlineImages:S,recordCanvas:M,preserveWhiteSpace:z,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:C,onStylesheetLoad:A,stylesheetLoadTimeout:O,keepIframeSrcFn:T,ignoreCSSAttributes:N});U&&A(e,U)}},O),D.type===ut.Element&&delete D.needBlock,D}function mB(e,t){const{mirror:n=new CE,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:d=null,inlineStylesheet:u=!0,inlineImages:f=!1,recordCanvas:h=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOM:y=!1,dataURLOptions:_,preserveWhiteSpace:S,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:E,onBlockedImageLoad:C,onStylesheetLoad:I,stylesheetLoadTimeout:A,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:T=new Set([])}=t||{};return ri(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:u,maskInputOptions:p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:p===!1?{}:p,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:y==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:y===!1?{}:y,dataURLOptions:_,inlineImages:f,recordCanvas:h,preserveWhiteSpace:S,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:E,onBlockedImageLoad:C,onStylesheetLoad:I,stylesheetLoadTimeout:A,keepIframeSrcFn:O,newlyAddedElement:!1,ignoreCSSAttributes:T})}function Ft(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Xs=`Please stop import mirror directly. Instead of that,\r now you can use replayer.getMirror() to access the mirror instance of a replayer,\r or you can use record.mirror to access the mirror instance during recording.`;let Ov={map:{},getId(){return console.error(Xs),-1},getNode(){return console.error(Xs),null},removeNodeFromMap(){console.error(Xs)},has(){return console.error(Xs),!1},reset(){console.error(Xs)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ov=new Proxy(Ov,{get(e,t,n){return t==="map"&&console.error(Xs),Reflect.get(e,t,n)}}));function Xo(e,t,n={}){let r=null,s=0;return function(...i){const o=Date.now();!s&&n.leading===!1&&(s=o);const a=t-(o-s),c=this;a<=0||a>t?(r&&(EB(r),r=null),s=o,e.apply(c,i)):!r&&n.trailing!==!1&&(r=Bl(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},a))}}function ME(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(o){Bl(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>ME(e,t,i||{},!0)}function Uh(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let Zc=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Zc=()=>new Date().getTime());function PE(e){var n,r,s,i,o,a;const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(t==null?void 0:t.documentElement.scrollLeft)||((r=(n=t==null?void 0:t.body)==null?void 0:n.parentElement)==null?void 0:r.scrollLeft)||((s=t==null?void 0:t.body)==null?void 0:s.scrollLeft)||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(t==null?void 0:t.documentElement.scrollTop)||((o=(i=t==null?void 0:t.body)==null?void 0:i.parentElement)==null?void 0:o.scrollTop)||((a=t==null?void 0:t.body)==null?void 0:a.scrollTop)||0}}function OE(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function LE(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function NE(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Xt(e,t,n,r,s){if(!e)return!1;const i=NE(e);if(!i)return!1;const o=ni(t,n);if(!s){const l=r&&i.matches(r);return o(i)&&!l}const a=fs(i,o);let c=-1;return a<0?!1:(r&&(c=fs(i,ni(null,r))),a>-1&&c<0?!0:a{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function FE(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function $E(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Qd(e){return!!(e!=null&&e.shadowRoot)}class yB{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function BE(e){var n,r;let t=null;return((r=(n=e.getRootNode)==null?void 0:n.call(e))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function _B(e){let t=e,n;for(;n=BE(t);)t=n;return t}function bB(e){const t=e.ownerDocument;if(!t)return!1;const n=_B(e);return t.contains(n)}function HE(e){const t=e.ownerDocument;return t?t.contains(e)||bB(e):!1}const Lv={};function Wh(e){const t=Lv[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return Lv[e]=r.bind(window)}function SB(...e){return Wh("requestAnimationFrame")(...e)}function Bl(...e){return Wh("setTimeout")(...e)}function EB(...e){return Wh("clearTimeout")(...e)}var Te=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Te||{}),_e=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(_e||{}),Ot=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ot||{}),qn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(qn||{}),Js=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Js||{});function jh(e){try{return e.contentDocument}catch{}}function wB(e){try{return e.contentWindow}catch{}}function Nv(e){return"__ln"in e}class CB{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r`${e}@${t}`;class TB{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new CB,s=c=>{let l=c,d=Yo;for(;d===Yo;)l=l&&l.nextSibling,d=l&&this.mirror.getId(l);return d},i=c=>{if(!c.parentNode||!HE(c))return;const l=wo(c.parentNode)?this.mirror.getId(BE(c)):this.mirror.getId(c.parentNode),d=s(c);if(l===-1||d===-1)return r.addNode(c);const u=ri(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{FE(f,this.mirror)&&!Xt(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),$E(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),Qd(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,h)=>{Xt(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,h),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,h)=>{this.stylesheetManager.attachLinkElement(f,h)},onBlockedImageLoad:(f,h,{width:p,height:m})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:h.id,attributes:{style:{width:`${p}px`,height:`${m}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});u&&(t.push({parentId:l,nextId:d,node:u}),n.add(u.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Fv(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!$v(this.droppedSet,c)&&!Fv(this.removes,c,this.mirror)||$v(this.movedSet,c)?i(c):this.droppedSet.add(c);let o=null;for(;r.length;){let c=null;if(o){const l=this.mirror.getId(o.value.parentNode),d=s(o.value);l!==-1&&d!==-1&&(c=o)}if(!c){let l=r.tail;for(;l;){const d=l;if(l=l.previous,d){const u=this.mirror.getId(d.value.parentNode);if(s(d.value)===-1)continue;if(u!==-1){c=d;break}else{const h=d.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const p=h.parentNode.host;if(this.mirror.getId(p)!==-1){c=d;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}o=c.previous,r.removeNode(c.value),i(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:l}=c;if(typeof l.style=="string"){const d=JSON.stringify(c.styleDiff),u=JSON.stringify(c._unchangedStyles);d.length!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!$u(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Xt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Mi(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,NE(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const o=Hh(n),a=n.tagName;s=Xc(n,a,o);const c=Fl({maskInputOptions:this.maskInputOptions,tagName:a,type:o}),l=Mi(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=Ko({isMasked:l,element:n,value:s,maskInputFn:this.maskInputFn})}if(Xt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!jh(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!AE(n.tagName,r)&&(i.attributes[r]=RE(this.doc,Ai(n.tagName),Ai(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),l=n.style.getPropertyPriority(a);c!==o.style.getPropertyValue(a)||l!==o.style.getPropertyPriority(a)?l===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,l]:i._unchangedStyles[a]=[c,l]}for(const a of Array.from(o.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}break}case"childList":{if(Xt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=wo(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Xt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||$u(n,this.mirror)||!gB(n,this.mirror)||(this.addedSet.has(n)?(ef(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||DE(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Dv(r,s)]?ef(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:wo(t.target)&&Co(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if($u(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Dv(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Xt(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),Qd(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function ef(e,t){var n;e.delete(t),(n=t.childNodes)==null||n.forEach(r=>ef(e,r))}function Fv(e,t,n){return e.length===0?!1:kB(e,t,n)}function kB(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(i=>i.id===s))return!0;r=r.parentNode}return!1}function $v(e,t){return e.size===0?!1:VE(e,t)}function VE(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:VE(e,n):!1}let To;function IB(e){To=e}function xB(){To=void 0}const Ae=e=>To?(...n)=>{try{return e(...n)}catch(r){if(To&&To(r)===!0)return()=>{};throw r}}:e,si=[];function Ea(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function UE(e,t){var o,a;const n=new TB;si.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=(a=(o=window==null?void 0:window.Zone)==null?void 0:o.__symbol__)==null?void 0:a.call(o,"MutationObserver");s&&window[s]&&(r=window[s]);const i=new r(Ae(c=>{e.onMutation&&e.onMutation(c)===!1||n.processMutations.bind(n)(c)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function RB({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],a;const c=Xo(Ae(u=>{const f=Date.now()-a;e(o.map(h=>(h.timeOffset-=f,h)),u),o=[],a=null}),i),l=Ae(Xo(Ae(u=>{const f=Ea(u),{clientX:h,clientY:p}=Zd(u)?u.changedTouches[0]:u;a||(a=Zc()),o.push({x:h,y:p,id:r.getId(f),timeOffset:Zc()-a}),c(typeof DragEvent<"u"&&u instanceof DragEvent?_e.Drag:u instanceof MouseEvent?_e.MouseMove:_e.TouchMove)}),s,{trailing:!1})),d=[Ft("mousemove",l,n),Ft("touchmove",l,n),Ft("drag",l,n)];return Ae(()=>{d.forEach(u=>u())})}function AB({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[];let l=null;const d=u=>f=>{const h=Ea(f);if(Xt(h,r,s,i,!0))return;let p=null,m=u;if("pointerType"in f){switch(f.pointerType){case"mouse":p=qn.Mouse;break;case"touch":p=qn.Touch;break;case"pen":p=qn.Pen;break}p===qn.Touch?Ot[u]===Ot.MouseDown?m="TouchStart":Ot[u]===Ot.MouseUp&&(m="TouchEnd"):qn.Pen}else Zd(f)&&(p=qn.Touch);p!==null?(l=p,(m.startsWith("Touch")&&p===qn.Touch||m.startsWith("Mouse")&&p===qn.Mouse)&&(p=null)):Ot[u]===Ot.Click&&(p=l,l=null);const v=Zd(f)?f.changedTouches[0]:f;if(!v)return;const g=n.getId(h),{clientX:y,clientY:_}=v;Ae(e)({type:Ot[m],id:g,x:y,y:_,...p!==null&&{pointerType:p}})};return Object.keys(Ot).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&a[u]!==!1).forEach(u=>{let f=Ai(u);const h=d(u);if(window.PointerEvent)switch(Ot[u]){case Ot.MouseDown:case Ot.MouseUp:f=f.replace("mouse","pointer");break;case Ot.TouchStart:case Ot.TouchEnd:return}c.push(Ft(f,h,t))}),Ae(()=>{c.forEach(u=>u())})}function WE({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){const a=Ae(Xo(Ae(c=>{const l=Ea(c);if(!l||Xt(l,r,s,i,!0))return;const d=n.getId(l);if(l===t&&t.defaultView){const u=PE(t.defaultView);e({id:d,x:u.left,y:u.top})}else e({id:d,x:l.scrollLeft,y:l.scrollTop})}),o.scroll||100));return Ft("scroll",a,t)}function MB({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=Ae(Xo(Ae(()=>{const i=OE(),o=LE();(n!==i||r!==o)&&(e({width:Number(o),height:Number(i)}),n=i,r=o)}),200));return Ft("resize",s,t)}const PB=["INPUT","TEXTAREA","SELECT"],Bv=new WeakMap;function OB({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:d,userTriggeredOnInput:u,maskTextClass:f,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m}){function v(E){let C=Ea(E);const I=E.isTrusted,A=C&&Xd(C.tagName);if(A==="OPTION"&&(C=C.parentElement),!C||!A||PB.indexOf(A)<0||Xt(C,r,s,i,!0))return;const O=C;if(O.classList.contains(o)||a&&O.matches(a))return;const T=Hh(C);let P=Xc(O,A,T),N=!1;const z=Fl({maskInputOptions:c,tagName:A,type:T}),X=Mi(C,f,p,h,m,z);(T==="radio"||T==="checkbox")&&(N=C.checked),P=Ko({isMasked:X,element:C,value:P,maskInputFn:l}),g(C,u?{text:P,isChecked:N,userTriggered:I}:{text:P,isChecked:N});const q=C.name;T==="radio"&&q&&N&&t.querySelectorAll(`input[type="radio"][name="${q}"]`).forEach(D=>{if(D!==C){const re=Ko({isMasked:X,element:D,value:Xc(D,A,T),maskInputFn:l});g(D,u?{text:re,isChecked:!N,userTriggered:!1}:{text:re,isChecked:!N})}})}function g(E,C){const I=Bv.get(E);if(!I||I.text!==C.text||I.isChecked!==C.isChecked){Bv.set(E,C);const A=n.getId(E);Ae(e)({...C,id:A})}}const _=(d.input==="last"?["change"]:["input","change"]).map(E=>Ft(E,Ae(v),t)),S=t.defaultView;if(!S)return()=>{_.forEach(E=>E())};const M=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),R=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return M&&M.set&&_.push(...R.map(E=>ME(E[0],E[1],{set(){Ae(v)({target:this,isTrusted:!1})}},!1,S))),Ae(()=>{_.forEach(E=>E())})}function Qc(e){const t=[];function n(r,s){if(Wa("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Wa("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Wa("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Wa("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(o)}return s}return n(e,t)}function Ar(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function LB({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Ae((d,u,f)=>{const[h,p]=f,{id:m,styleId:v}=Ar(u,t,n.styleMirror);return(m&&m!==-1||v&&v!==-1)&&e({id:m,styleId:v,adds:[{rule:h,index:p}]}),d.apply(u,f)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Ae((d,u,f)=>{const[h]=f,{id:p,styleId:m}=Ar(u,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,removes:[{index:h}]}),d.apply(u,f)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:Ae((d,u,f)=>{const[h]=f,{id:p,styleId:m}=Ar(u,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,replace:h}),d.apply(u,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Ae((d,u,f)=>{const[h]=f,{id:p,styleId:m}=Ar(u,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,replaceSync:h}),d.apply(u,f)})}));const c={};ja("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(ja("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),ja("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),ja("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([d,u])=>{l[d]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=new Proxy(l[d].insertRule,{apply:Ae((f,h,p)=>{const[m,v]=p,{id:g,styleId:y}=Ar(h.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||y&&y!==-1)&&e({id:g,styleId:y,adds:[{rule:m,index:[...Qc(h),v||0]}]}),f.apply(h,p)})}),u.prototype.deleteRule=new Proxy(l[d].deleteRule,{apply:Ae((f,h,p)=>{const[m]=p,{id:v,styleId:g}=Ar(h.parentStyleSheet,t,n.styleMirror);return(v&&v!==-1||g&&g!==-1)&&e({id:v,styleId:g,removes:[{index:[...Qc(h),m]}]}),f.apply(h,p)})})}),Ae(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([d,u])=>{u.prototype.insertRule=l[d].insertRule,u.prototype.deleteRule=l[d].deleteRule})})}function jE({mirror:e,stylesheetManager:t},n){var o,a,c;let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?(o=n.defaultView)==null?void 0:o.Document:(c=(a=n.ownerDocument)==null?void 0:a.defaultView)==null?void 0:c.ShadowRoot,i=s!=null&&s.prototype?Object.getOwnPropertyDescriptor(s==null?void 0:s.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){var l;return(l=i.get)==null?void 0:l.call(this)},set(l){var u;const d=(u=i.set)==null?void 0:u.call(this,l);if(r!==null&&r!==-1)try{t.adoptStyleSheets(l,r)}catch{}return d}}),Ae(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function NB({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Ae((a,c,l)=>{var m;const[d,u,f]=l;if(n.has(d))return i.apply(c,[d,u,f]);const{id:h,styleId:p}=Ar((m=c.parentRule)==null?void 0:m.parentStyleSheet,t,r.styleMirror);return(h&&h!==-1||p&&p!==-1)&&e({id:h,styleId:p,set:{property:d,value:u,priority:f},index:Qc(c.parentRule)}),a.apply(c,l)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:Ae((a,c,l)=>{var h;const[d]=l;if(n.has(d))return o.apply(c,[d]);const{id:u,styleId:f}=Ar((h=c.parentRule)==null?void 0:h.parentStyleSheet,t,r.styleMirror);return(u&&u!==-1||f&&f!==-1)&&e({id:u,styleId:f,remove:{property:d},index:Qc(c.parentRule)}),a.apply(c,l)})}),Ae(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function DB({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const a=Ae(l=>Xo(Ae(d=>{const u=Ea(d);if(!u||Xt(u,t,n,r,!0))return;const{currentTime:f,volume:h,muted:p,playbackRate:m}=u;e({type:l,id:s.getId(u),currentTime:f,volume:h,muted:p,playbackRate:m})}),i.media||500)),c=[Ft("play",a(Js.Play),o),Ft("pause",a(Js.Pause),o),Ft("seeked",a(Js.Seeked),o),Ft("volumechange",a(Js.VolumeChange),o),Ft("ratechange",a(Js.RateChange),o)];return Ae(()=>{c.forEach(l=>l())})}function FB({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(c,l,d){const u=new i(c,l,d);return s.set(u,{family:c,buffer:typeof l!="string",descriptors:d,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),u};const o=Uh(t.fonts,"add",function(a){return function(c){return Bl(Ae(()=>{const l=s.get(c);l&&(e(l),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(o),Ae(()=>{r.forEach(a=>a())})}function $B(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let a=!0;const c=Ae(()=>{const l=t.getSelection();if(!l||a&&(l!=null&&l.isCollapsed))return;a=l.isCollapsed||!1;const d=[],u=l.rangeCount||0;for(let f=0;f{}:Uh(n.customElements,"define",function(s){return function(i,o,a){try{t({define:{name:i}})}catch{}return s.apply(this,[i,o,a])}})}function HB(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=UE(e,e.doc));const s=RB(e),i=AB(e),o=WE(e),a=MB(e,{win:n}),c=OB(e),l=DB(e);let d=()=>{},u=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(d=LB(e,{win:n}),u=jE(e,e.doc),f=NB(e,{win:n}),e.collectFonts&&(h=FB(e)));const p=$B(e),m=BB(e),v=[];for(const g of e.plugins)v.push(g.observer(g.callback,n,g.options));return Ae(()=>{si.forEach(g=>g.reset()),r==null||r.disconnect(),s(),i(),o(),a(),c(),l(),d(),u(),f(),h(),p(),m(),v.forEach(g=>g())})}function Wa(e){return typeof window[e]<"u"}function ja(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class tf{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const i=r||this.getIdToRemoteIdMap(t),o=s||this.getRemoteIdToIdMap(t);let a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),o.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=s.get(n);return i||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class VB{constructor(){this.crossOriginIframeMirror=new tf(Vh),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class UB{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new tf(Vh),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new tf(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var s,i;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((s=t.contentWindow)==null||s.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.call(this,t);const r=jh(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const i=this.transformCrossOriginEvent(s,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case Te.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const s=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(n.data.node,s),{timestamp:n.timestamp,type:Te.IncrementalSnapshot,data:{source:_e.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Te.Meta:case Te.Load:case Te.DomContentLoaded:return!1;case Te.Plugin:return n;case Te.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Te.IncrementalSnapshot:switch(n.data.source){case _e.Mutation:return n.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(s.node,i)}),n.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),n.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),n.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case _e.Drag:case _e.TouchMove:case _e.MouseMove:return n.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case _e.ViewportResize:return!1;case _e.MediaInteraction:case _e.MouseInteraction:case _e.Scroll:case _e.CanvasMutation:case _e.Input:return this.replaceIds(n.data,t,["id"]),n;case _e.StyleSheetRule:case _e.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case _e.Font:return n;case _e.Selection:return n.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),n;case _e.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)==null||r.forEach(s=>{this.replaceStyleIds(s,t,["styleId"])}),n}}return!1}replace(t,n,r,s){for(const i of s)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==ut.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class WB{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class jB{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Co(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=UE({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(WE({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Bl(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(jE({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=jh(t),r=wB(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(Uh(t.prototype,"attachShadow",function(s){return function(i){const o=s.call(this,i);return this.shadowRoot&&HE(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var Hv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var za=0;za({rule:wE(a),index:c}))})),r.styleIds.push(o)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class GB{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,SB(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let it,el;var cy;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((cy=e.contentWindow)==null?void 0:cy.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const gn=z$();function nr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:d="rr-mask",unmaskTextClass:u=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:p=!0,maskAllInputs:m,maskInputOptions:v,slimDOMOptions:g,maskAttributeFn:y,maskInputFn:_,maskTextFn:S,maxCanvasSize:M=null,packFn:R,sampling:E={},dataURLOptions:C={},mousemoveWait:I,recordDOM:A=!0,recordCanvas:O=!1,recordCrossOriginIframes:T=!1,recordAfter:P=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:N=!1,collectFonts:z=!1,inlineImages:X=!1,plugins:q,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:U,onMutation:ie,getCanvasManager:ae}=e;IB(U);const ue=T?window.parent===window:!0;let Ce=!1;if(!ue)try{window.parent.document&&(Ce=!1)}catch{Ce=!0}if(ue&&!t)throw new Error("emit function is required");if(!ue&&!Ce)return()=>{};I!==void 0&&E.mousemove===void 0&&(E.mousemove=I),gn.reset();const Ne=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:v!==void 0?v:{},He=g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:g==="all",headMetaDescKeywords:g==="all"}:g||{};vB();let x,W=0;const K=H=>{for(const V of q||[])V.eventProcessor&&(H=V.eventProcessor(H));return R&&!Ce&&(H=R(H)),H};it=(H,V)=>{var Q;const Z=H;if(Z.timestamp=Zc(),(Q=si[0])!=null&&Q.isFrozen()&&Z.type!==Te.FullSnapshot&&!(Z.type===Te.IncrementalSnapshot&&Z.data.source===_e.Mutation)&&si.forEach(oe=>oe.unfreeze()),ue)t==null||t(K(Z),V);else if(Ce){const oe={type:"rrweb",event:K(Z),origin:window.location.origin,isCheckout:V};window.parent.postMessage(oe,"*")}if(Z.type===Te.FullSnapshot)x=Z,W=0;else if(Z.type===Te.IncrementalSnapshot){if(Z.data.source===_e.Mutation&&Z.data.isAttachIframe)return;W++;const oe=r&&W>=r,te=n&&x&&Z.timestamp-x.timestamp>n;(oe||te)&&Y(!0)}};const ne=H=>{it({type:Te.IncrementalSnapshot,data:{source:_e.Mutation,...H}})},ye=H=>it({type:Te.IncrementalSnapshot,data:{source:_e.Scroll,...H}}),b=H=>it({type:Te.IncrementalSnapshot,data:{source:_e.CanvasMutation,...H}}),w=H=>it({type:Te.IncrementalSnapshot,data:{source:_e.AdoptedStyleSheet,...H}}),k=new qB({mutationCb:ne,adoptedStyleSheetCb:w}),L=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new VB:new UB({mirror:gn,mutationCb:ne,stylesheetManager:k,recordCrossOriginIframes:T,wrappedEmit:it});for(const H of q||[])H.getMirror&&H.getMirror({nodeMirror:gn,crossOriginIframeMirror:L.crossOriginIframeMirror,crossOriginIframeStyleMirror:L.crossOriginIframeStyleMirror});const $=new GB,F=YB(ae,{mirror:gn,win:window,mutationCb:H=>it({type:Te.IncrementalSnapshot,data:{source:_e.CanvasMutation,...H}}),recordCanvas:O,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:M,sampling:E.canvas,dataURLOptions:C,errorHandler:U}),G=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new WB:new jB({mutationCb:ne,scrollCb:ye,bypassOptions:{onMutation:ie,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:Ne,dataURLOptions:C,maskAttributeFn:y,maskTextFn:S,maskInputFn:_,recordCanvas:O,inlineImages:X,sampling:E,slimDOMOptions:He,iframeManager:L,stylesheetManager:k,canvasManager:F,keepIframeSrcFn:D,processedNodeManager:$,ignoreCSSAttributes:re},mirror:gn}),Y=(H=!1)=>{if(!A)return;it({type:Te.Meta,data:{href:window.location.href,width:LE(),height:OE()}},H),k.reset(),G.init(),si.forEach(Z=>Z.lock());const V=mB(document,{mirror:gn,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:p,maskAllInputs:Ne,maskAttributeFn:y,maskInputFn:_,maskTextFn:S,slimDOM:He,dataURLOptions:C,recordCanvas:O,inlineImages:X,onSerialize:Z=>{FE(Z,gn)&&L.addIframe(Z),$E(Z,gn)&&k.trackLinkElement(Z),Qd(Z)&&G.addShadowRoot(Z.shadowRoot,document)},onIframeLoad:(Z,Q)=>{L.attachIframe(Z,Q),Z.contentWindow&&F.addWindow(Z.contentWindow),G.observeAttachShadow(Z)},onStylesheetLoad:(Z,Q)=>{k.attachLinkElement(Z,Q)},onBlockedImageLoad:(Z,Q,{width:oe,height:te})=>{ne({adds:[],removes:[],texts:[],attributes:[{id:Q.id,attributes:{style:{width:`${oe}px`,height:`${te}px`}}}]})},keepIframeSrcFn:D,ignoreCSSAttributes:re});if(!V)return console.warn("Failed to snapshot the document");it({type:Te.FullSnapshot,data:{node:V,initialOffset:PE(window)}}),si.forEach(Z=>Z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&k.adoptStyleSheets(document.adoptedStyleSheets,gn.getId(document))};el=Y;try{const H=[],V=Q=>{var oe;return Ae(HB)({onMutation:ie,mutationCb:ne,mousemoveCb:(te,Ie)=>it({type:Te.IncrementalSnapshot,data:{source:Ie,positions:te}}),mouseInteractionCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.MouseInteraction,...te}}),scrollCb:ye,viewportResizeCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.ViewportResize,...te}}),inputCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.Input,...te}}),mediaInteractionCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.MediaInteraction,...te}}),styleSheetRuleCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.StyleSheetRule,...te}}),styleDeclarationCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.StyleDeclaration,...te}}),canvasMutationCb:b,fontCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.Font,...te}}),selectionCb:te=>{it({type:Te.IncrementalSnapshot,data:{source:_e.Selection,...te}})},customElementCb:te=>{it({type:Te.IncrementalSnapshot,data:{source:_e.CustomElement,...te}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:Ne,inlineStylesheet:p,sampling:E,recordDOM:A,recordCanvas:O,inlineImages:X,userTriggeredOnInput:N,collectFonts:z,doc:Q,maskAttributeFn:y,maskInputFn:_,maskTextFn:S,keepIframeSrcFn:D,blockSelector:i,unblockSelector:o,slimDOMOptions:He,dataURLOptions:C,mirror:gn,iframeManager:L,stylesheetManager:k,shadowDomManager:G,processedNodeManager:$,canvasManager:F,ignoreCSSAttributes:re,plugins:((oe=q==null?void 0:q.filter(te=>te.observer))==null?void 0:oe.map(te=>({observer:te.observer,options:te.options,callback:Ie=>it({type:Te.Plugin,data:{plugin:te.name,payload:Ie}})})))||[]},{})};L.addLoadListener(Q=>{try{H.push(V(Q.contentDocument))}catch(oe){console.warn(oe)}});const Z=()=>{Y(),H.push(V(document))};return document.readyState==="interactive"||document.readyState==="complete"?Z():(H.push(Ft("DOMContentLoaded",()=>{it({type:Te.DomContentLoaded,data:{}}),P==="DOMContentLoaded"&&Z()})),H.push(Ft("load",()=>{it({type:Te.Load,data:{}}),P==="load"&&Z()},window))),()=>{H.forEach(Q=>Q()),$.destroy(),el=void 0,xB()}}catch(H){console.warn(H)}}function KB(e){if(!el)throw new Error("please take full snapshot after start recording");el(e)}nr.mirror=gn;nr.takeFullSnapshot=KB;function YB(e,t){try{return e?e(t):new Vv}catch{return console.warn("Unable to initialize CanvasManager"),new Vv}}var Uv;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Uv||(Uv={}));const XB=3,JB=5;function zh(e){return e>9999999999?e:e*1e3}function Bu(e){return e>9999999999?e/1e3:e}function wa(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Te.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:vn(t,10,1e3)}}),t.category==="console")))}const ZB="button,a";function zE(e){return e.closest(ZB)||e}function qE(e){const t=GE(e);return!t||!(t instanceof Element)?t:zE(t)}function GE(e){return QB(e)?e.target:e}function QB(e){return typeof e=="object"&&!!e&&"target"in e}let Mr;function e5(e){return Mr||(Mr=[],t5()),Mr.push(e),()=>{const t=Mr?Mr.indexOf(e):-1;t>-1&&Mr.splice(t,1)}}function t5(){Wt(Ye,"open",function(e){return function(...t){if(Mr)try{Mr.forEach(n=>n())}catch{}return e.apply(Ye,t)}})}const n5=new Set([_e.Mutation,_e.StyleSheetRule,_e.StyleDeclaration,_e.AdoptedStyleSheet,_e.CanvasMutation,_e.Selection,_e.MediaInteraction]);function r5(e,t,n){e.handleClick(t,n)}class s5{constructor(t,n,r=wa){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=e5(()=>{this._lastMutation=Wv()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(o5(n,this._ignoreSelector)||!a5(t))return;const r={timestamp:Bu(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Bu(t)}registerScroll(t=Date.now()){this._lastScroll=Bu(t)}registerClick(t){const n=zE(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Wv();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!s,{clickCount:o,clickBreadcrumb:a}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,l=c1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:Ye.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Sa(()=>this._checkClicks(),1e3)}}const i5=["A","BUTTON","INPUT"];function o5(e,t){return!!(!i5.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function a5(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Wv(){return Date.now()/1e3}function c5(e,t){try{if(!l5(t))return;const{source:n}=t.data;if(n5.has(n)&&e.registerMutation(t.timestamp),n===_e.Scroll&&e.registerScroll(t.timestamp),u5(t)){const{type:r,id:s}=t.data,i=nr.mirror.getNode(s);i instanceof HTMLElement&&r===Ot.Click&&e.registerClick(i)}}catch{}}function l5(e){return e.type===XB}function u5(e){return e.data.source===_e.MouseInteraction}function $n(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var qh=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(qh||{});const d5=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function f5(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(d5.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const h5=e=>t=>{if(!e.isEnabled())return;const n=p5(t);if(!n)return;const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&(s!=null&&s.target)&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&r5(e.clickDetector,n,qE(t.event)),wa(e,n)};function KE(e,t){const n=nr.mirror.getId(e),r=n&&nr.mirror.getNode(n),s=r&&nr.mirror.getMeta(r),i=s&&g5(s)?s:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(o=>o.type===qh.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:f5(i.attributes)}}:{}}}function p5(e){const{target:t,message:n}=m5(e);return $n({category:`ui.${e.name}`,...KE(t,n)})}function m5(e){const t=e.name==="click";let n,r=null;try{r=t?qE(e.event):GE(e.event),n=zt(r,{maxStringLength:200})||""}catch{n=""}return{target:r,message:n}}function g5(e){return e.type===qh.Element}function v5(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=y5(t);n&&wa(e,n)}function y5(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=e;if(!o||_5(o)||!i)return null;const a=t||r||s,c=i.length===1;if(!a&&c)return null;const l=zt(o,{maxStringLength:200})||"",d=KE(o,l);return $n({category:"ui.keyDown",message:l,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}function _5(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const b5={resource:T5,paint:w5,navigation:C5};function Hu(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function S5(e){return e.map(E5).filter(Boolean)}function E5(e){const t=b5[e.entryType];return t?t(e):null}function Pi(e){return((Gt()||Ye.performance.timeOrigin)+e)/1e3}function w5(e){const{duration:t,entryType:n,name:r,startTime:s}=e,i=Pi(s);return{type:n,name:r,start:i,end:i+t,data:void 0}}function C5(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:d,loadEventEnd:u,redirectCount:f,startTime:h,transferSize:p,type:m}=e;return s===0?null:{type:`${t}.${m}`,start:Pi(h),end:Pi(i),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:u,domComplete:i,redirectCount:f}}}function T5(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Pi(i),end:Pi(s),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:a}}}function k5(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.element?[t.element]:void 0;return Gh(e,"largest-contentful-paint",n)}function I5(e){return e.sources!==void 0}function x5(e){const t=[],n=[];for(const r of e.entries)if(I5(r)){const s=[];for(const i of r.sources)if(i.node){n.push(i.node);const o=nr.mirror.getId(i.node);o&&s.push(o)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return Gh(e,"cumulative-layout-shift",n,t)}function R5(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.target?[t.target]:void 0;return Gh(e,"interaction-to-next-paint",n)}function Gh(e,t,n,r){const s=e.value,i=e.rating,o=Pi(s);return{type:"web-vital",name:t,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:n?n.map(a=>nr.mirror.getId(a)):void 0,attributions:r}}}function A5(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(Rs(s,n))}),r.push(Nh(Hu(k5,e)),Lh(Hu(x5,e)),aE(Hu(R5,e))),()=>{r.forEach(s=>s())}}const he=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,M5='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s>f]=l}else for(o=new n(i),s=0;s>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;sd&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<e))break;w+=m-(1<>=y;w>0;){var M=o[s].s;p[M]=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;oi.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function P5(){const e=new Blob([M5]);return URL.createObjectURL(e)}const jv=["log","warn","error"],gc="[Replay] ";function Vu(e,t="info"){Ur({category:"console",data:{logger:"replay"},level:t,message:`${gc}${e}`},{level:t})}function O5(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return he?(jv.forEach(r=>{n[r]=(...s)=>{J[r](gc,...s),t&&Vu(s.join(""),P0(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),J.error(gc,r),e?Pl(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Vu(r,"error")},n.infoTick=(...r)=>{J.log(gc,...r),t&&setTimeout(()=>Vu(r[0]),0)}):jv.forEach(r=>{n[r]=()=>{}}),n}const pe=O5();class Kh extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Bh}.`)}}class YE{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Bh)throw new Kh;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?zh(t):null}}class L5{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){he&&pe.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,i)=>{const o=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",o),!c.success){he&&pe.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class N5{constructor(t){this._worker=new L5(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=zh(t.timestamp);(!this._earliestTimestamp||nBh?Promise.reject(new Kh):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{he&&pe.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class D5{constructor(t){this._fallback=new YE,this._compression=new N5(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){he&&pe.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const i of t)s.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(i){he&&pe.exception(i,"Failed to add events when switching buffers.")}}}function F5({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=$5(t);if(n)return n}return he&&pe.log("Using simple buffer"),new YE}function $5(e){try{const t=e||B5();if(!t)return;he&&pe.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new D5(n)}catch(t){he&&pe.exception(t,"Failed to create compression worker")}}function B5(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?P5():""}function Yh(){try{return"sessionStorage"in Ye&&!!Ye.sessionStorage}catch{return!1}}function H5(e){V5(),e.session=void 0}function V5(){if(Yh())try{Ye.sessionStorage.removeItem(Fh)}catch{}}function XE(e){return e===void 0?!1:Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(he&&pe.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function q5(e,t){try{if(typeof t=="function"&&j5(e))return t(e)}catch(n){return he&&pe.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Jh(e){return!e.type}function rf(e){return e.type==="transaction"}function G5(e){return e.type==="replay_event"}function qv(e){return e.type==="feedback"}function K5(e){return(t,n)=>{if(!e.isEnabled()||!Jh(t)&&!rf(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(rf(t)){Y5(e,t);return}X5(e,t)}}}function Y5(e,t){var r,s;const n=e.getContext();(s=(r=t.contexts)==null?void 0:r.trace)!=null&&s.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function X5(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Sa(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function J5(e){return t=>{!e.isEnabled()||!Jh(t)||Z5(e,t)}}function Z5(e,t){var r,s,i;const n=(i=(s=(r=t.exception)==null?void 0:r.values)==null?void 0:s[0])==null?void 0:i.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const o=$n({category:"replay.hydrate-error",data:{url:Ls()}});wa(e,o)}}function Q5(e){const t=Ee();t&&t.on("beforeAddBreadcrumb",n=>e2(e,n))}function e2(e,t){if(!e.isEnabled()||!nw(t))return;const n=t2(t);n&&wa(e,n)}function t2(e){return!nw(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?n2(e):$n(e)}function n2(e){var s;const t=(s=e.data)==null?void 0:s.arguments;if(!Array.isArray(t)||t.length===0)return $n(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>Ua?(n=!0,`${i.slice(0,Ua)}…`):i;if(typeof i=="object")try{const o=vn(i,7);return JSON.stringify(o).length>Ua?(n=!0,`${JSON.stringify(o,null,2).slice(0,Ua)}…`):o}catch{}return i});return $n({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function nw(e){return!!e.category}function r2(e,t){var n,r,s;return e.type||!((r=(n=e.exception)==null?void 0:n.values)!=null&&r.length)?!1:!!((s=t.originalException)!=null&&s.__rrweb__)}function rw(){const e=Me().getPropagationContext().dsc;e&&delete e.replay_id;const t=Tt();if(t){const n=dr(t);delete n.replay_id}}function s2(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Te.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function i2(e,t){return e.recordingMode!=="buffer"||t.message===$h||!t.exception||t.type?!1:XE(e.getOptions().errorSampleRate)}function o2(e){return Object.assign((t,n)=>{var o;if(!e.isEnabled()||e.isPaused())return t;if(G5(t))return delete t.breadcrumbs,t;if(!Jh(t)&&!rf(t)&&!qv(t))return t;if(!e.checkAndHandleExpiredSession())return rw(),t;if(qv(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),s2(e,t),t;if(r2(t,n)&&!e.getOptions()._experiments.captureExceptions)return he&&pe.log("Ignoring error from rrweb internals",t),null;const s=i2(e,t);if((s||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),s&&e.recordingMode==="buffer"&&((o=e.session)==null?void 0:o.sampled)==="buffer"){const a=e.session;a.dirty=!0,e.getOptions().stickySession&&Hl(a)}return t},{id:"Replay"})}function Vl(e,t){return t.map(({type:n,start:r,end:s,name:i,data:o})=>{const a=e.throttledAddEvent({type:Te.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:s,data:o}}});return typeof a=="string"?Promise.resolve(null):a})}function a2(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function c2(e){return t=>{if(!e.isEnabled())return;const n=a2(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Vl(e,[n]),!1)))}}function l2(e,t){return he&&e.getOptions()._experiments.traceInternals?!1:PO(t,Ee())}function sw(e,t){e.isEnabled()&&t!==null&&(l2(e,t.name)||e.addUpdate(()=>(Vl(e,[t]),!0)))}function Ul(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=gE(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function iw(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function tl(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function ow(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:i,statusCode:o,request:a,response:c}}}function Jo(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Fr(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:i}=u2(n);return r.body=s,i!=null&&i.length&&(r._meta={warnings:i}),r}function sf(e,t){return Object.entries(e).reduce((n,[r,s])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=s),n},{})}function u2(e){if(!e||typeof e!="string")return{body:e};const t=e.length>kv,n=d2(e);if(t){const r=e.slice(0,kv);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function d2(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function nl(e,t){const n=f2(e);return er(n,t)}function f2(e,t=Ye.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ye.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function h2(e,t,n){try{const r=await m2(e,t,n),s=ow("resource.fetch",r);sw(n.replay,s)}catch(r){he&&pe.exception(r,"Failed to capture fetch breadcrumb")}}function p2(e,t){const{input:n,response:r}=t,s=n?yE(n):void 0,i=Ul(s),o=r?iw(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),o!==void 0&&(e.data.response_body_size=o)}async function m2(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=t,{url:o,method:a,status_code:c=0,request_body_size:l,response_body_size:d}=e.data,u=nl(o,n.networkDetailAllowUrls)&&!nl(o,n.networkDetailDenyUrls),f=u?g2(n,t.input,l):Jo(l),h=await v2(u,n,t.response,d);return{startTimestamp:s,endTimestamp:i,url:o,method:a,statusCode:c,request:f,response:h}}function g2({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?b2(n,t):{};if(!e)return Fr(s,r,void 0);const i=yE(n),[o,a]=vE(i,pe),c=Fr(s,r,o);return a?tl(c,a):c}async function v2(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==void 0)return Jo(s);const i=r?aw(r.headers,n):{};if(!r||!t&&s!==void 0)return Fr(i,s,void 0);const[o,a]=await _2(r),c=y2(o,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});return a?tl(c,a):c}function y2(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const i=e!=null&&e.length&&n===void 0?Ul(e):n;return r?t?Fr(s,i,e):Fr(s,i,void 0):Jo(i)}catch(i){return he&&pe.exception(i,"Failed to serialize response body"),Fr(s,n,void 0)}}async function _2(e){const t=S2(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await E2(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(he&&pe.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(he&&pe.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function aw(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function b2(e,t){return e.length===1&&typeof e[0]!="string"?Gv(e[0],t):e.length===2?Gv(e[1],t):{}}function Gv(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?aw(n,t):Array.isArray(n)?{}:sf(n,t):{}}function S2(e){try{return e.clone()}catch(t){he&&pe.exception(t,"Failed to clone response body")}}function E2(e){return new Promise((t,n)=>{const r=Sa(()=>n(new Error("Timeout while trying to read response body")),500);w2(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function w2(e){return await e.text()}async function C2(e,t,n){try{const r=k2(e,t,n),s=ow("resource.xhr",r);sw(n.replay,s)}catch(r){he&&pe.exception(r,"Failed to capture xhr breadcrumb")}}function T2(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Ul(r),i=n.getResponseHeader("content-length")?iw(n.getResponseHeader("content-length")):R2(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}function k2(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:a}=t,{url:c,method:l,status_code:d=0,request_body_size:u,response_body_size:f}=e.data;if(!c)return null;if(!a||!nl(c,n.networkDetailAllowUrls)||nl(c,n.networkDetailDenyUrls)){const R=Jo(u),E=Jo(f);return{startTimestamp:s,endTimestamp:i,url:c,method:l,statusCode:d,request:R,response:E}}const h=a[ds],p=h?sf(h.request_headers,n.networkRequestHeaders):{},m=sf(_E(a),n.networkResponseHeaders),[v,g]=n.networkCaptureBodies?vE(o,pe):[void 0],[y,_]=n.networkCaptureBodies?I2(a):[void 0],S=Fr(p,u,v),M=Fr(m,f,y);return{startTimestamp:s,endTimestamp:i,url:c,method:l,statusCode:d,request:g?tl(S,g):S,response:_?tl(M,_):M}}function I2(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return x2(e.response,e.responseType)}catch(n){t.push(n)}return he&&pe.warn("Failed to get xhr response body",...t),[void 0]}function x2(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return he&&pe.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return he&&pe.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function R2(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Ul(n)}catch{return}}function A2(e){const t=Ee();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(c,l)=>M2(a,c,l))}catch{}}function M2(e,t,n){if(t.data)try{P2(t)&&L2(n)&&(T2(t,n),C2(t,n,e)),O2(t)&&N2(n)&&(p2(t,n),h2(t,n,e))}catch(r){he&&pe.exception(r,"Error when enriching network breadcrumb")}}function P2(e){return e.category==="xhr"}function O2(e){return e.category==="fetch"}function L2(e){return e==null?void 0:e.xhr}function N2(e){return e==null?void 0:e.response}function D2(e){const t=Ee();hE(h5(e)),Dl(c2(e)),Q5(e),A2(e);const n=o2(e);ZP(n),t&&(t.on("beforeSendEvent",J5(e)),t.on("afterSendEvent",K5(e)),t.on("createDsc",r=>{const s=e.getSessionId();s&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=s)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,s)=>{var o;const i=e.getSessionId();s!=null&&s.includeReplay&&e.isEnabled()&&i&&((o=r.contexts)!=null&&o.feedback)&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=i)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function F2(e){try{return Promise.all(Vl(e,[$2(Ye.performance.memory)]))}catch{return[]}}function $2(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function B2(e,t,n){return $O(e,t,{...n,setTimeoutImpl:Sa})}const an=xe.navigator;function H2(){return/iPhone|iPad|iPod/i.test((an==null?void 0:an.userAgent)??"")||/Macintosh/i.test((an==null?void 0:an.userAgent)??"")&&(an!=null&&an.maxTouchPoints)&&(an==null?void 0:an.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}}function V2(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){he&&pe.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&c5(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!Xh(e,n,s))return!0;if(!s)return!1;const i=e.session;if(W2(e,s),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){const o=e.eventBuffer.getEarliestTimestamp();o&&(he&&pe.log(`Updating session start time to earliest event in buffer to ${new Date(o)}`),i.started=o,e.getOptions().stickySession&&Hl(i))}return i!=null&&i.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function U2(e){const t=e.getOptions();return{type:Te.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function W2(e,t){!t||!e.session||e.session.segmentId!==0||Xh(e,U2(e),!1)}function j2(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function z2(e,t,n,r){return Jr(o0(e,mh(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function q2({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} `;if(typeof e=="string")n=`${r}${e}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function G2({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:s};e.emit("preprocessEvent",r,i);const o=await f0(e.getOptions(),r,i,t,e,Kt());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:l,settings:d}=(a==null?void 0:a.sdk)||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0",settings:d},o}async function K2({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=q2({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:d}=r,u=Ee(),f=Me(),h=u==null?void 0:u.getTransport(),p=u==null?void 0:u.getDsn();if(!u||!h||!p||!i.sampled)return Promise.resolve({});const m={type:C$,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},v=await G2({scope:f,client:u,replayId:t,event:m});if(!v)return u.recordDroppedEvent("event_processor","replay"),he&&pe.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete v.sdkProcessingMetadata;const g=z2(v,o,p,u.getOptions().tunnel);let y;try{y=await h.send(g)}catch(S){const M=new Error($h);try{M.cause=S}catch{}throw M}const _=E0({},y);if(S0(_,"replay"))throw new Zh(_);if(typeof y.statusCode=="number"&&(y.statusCode<200||y.statusCode>=300))throw new cw(y.statusCode);return y}class cw extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Zh extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class Kv extends Error{constructor(){super("Session is too long, not sending replay")}}async function lw(e,t={count:0,interval:A$}){const{recordingData:n,onError:r}=e;if(n.length)try{return await K2(e),!0}catch(s){if(s instanceof cw||s instanceof Zh)throw s;if(KP("Replays",{_retryCount:t.count}),r&&r(s),t.count>=M$){const i=new Error(`${$h} - max retries exceeded`);try{i.cause=s}catch{}throw i}return t.interval*=++t.count,new Promise((i,o)=>{Sa(async()=>{try{await lw(e,t),i(!0)}catch(a){o(a)}},t.interval)})}}const uw="__THROTTLED",Y2="__SKIPPED";function X2(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((l,d)=>{d[...r.values()].reduce((a,c)=>a+c,0);let o=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),i()>=t){const d=o;return o=!0,d?Y2:uw}o=!1;const l=r.get(c)||0;return r.set(c,l+1),e(...a)}}class J2{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:T$,sessionIdleExpire:k$},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=B2(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=X2((o,a)=>z5(this,o,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),i=r?{threshold:Math.min(P$,r),timeout:r,scrollTimeout:O$,ignoreSelector:s?s.join(","):""}:void 0;if(i&&(this.clickDetector=new s5(this,i)),he){const o=t._experiments;pe.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}this._handleVisibilityChange=()=>{Ye.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const o=$n({category:"ui.blur"});this._doChangeToBackgroundTasks(o)},this._handleWindowFocus=()=>{const o=$n({category:"ui.focus"});this._doChangeToForegroundTasks(o)},this._handleKeyboardEvent=o=>{v5(this,o)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){he&&pe.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){he&&pe.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",he&&pe.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){he&&pe.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){he&&pe.log("Buffering is in progress, call `flush()` to save the replay");return}he&&pe.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Uu({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){he&&pe.log("Buffering is in progress, call `flush()` to save the replay");return}he&&pe.infoTick("Starting replay in buffer mode");const t=Uu({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=nr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:R$}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:V2(this),...H2(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){var r;if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{he&&pe.log(`Stopping Replay${n?` triggered by ${n}`:""}`),rw(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),(r=this.eventBuffer)==null||r.destroy(),this.eventBuffer=null,H5(this)}catch(s){this.handleException(s)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),he&&pe.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),he&&pe.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();he&&pe.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){var n,r;if(!(t&&((n=this.session)==null?void 0:n.sampled)===!1))return(r=this.session)==null?void 0:r.id}checkAndHandleExpiredSession(){if(this._lastActivity&&nf(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Ye.location.pathname}${Ye.location.hash}${Ye.location.search}`,n=`${Ye.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===uw){const s=$n({category:"replay.throttled"});this.addUpdate(()=>!Xh(this,{type:JB,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Tt(),n=t&&wt(t),s=(n&&Re(n).data||{})[jt];if(!(!n||!s||!["route","custom"].includes(s)))return Re(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=F5({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Uu({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return QE(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Ye.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ye.addEventListener("blur",this._handleWindowBlur),Ye.addEventListener("focus",this._handleWindowFocus),Ye.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(D2(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=A5(this)}_removeListeners(){try{Ye.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ye.removeEventListener("blur",this._handleWindowBlur),Ye.removeEventListener("focus",this._handleWindowFocus),Ye.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||ZE(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){he&&pe.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Te.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=S5(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(Vl(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&rthis._options.maxReplayDuration+3e4)throw new Kv;const s=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await lw({replayId:t,recordingData:o,segmentId:i,eventContext:s,session:this.session,timestamp:r,onError:a=>this.handleException(a)})}catch(r){this.handleException(r),this.stop({reason:"sendReplay"});const s=Ee();if(s){let i;r instanceof Zh?i="ratelimit_backoff":r instanceof Kv?i="invalid":i="send_error",s.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){he&&pe.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const i=sthis._options.maxReplayDuration+5e3;if(i||o){he&&pe.log(`Session duration (${Math.floor(s/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&he&&pe.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(l){this.handleException(l)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Hl(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n!=null&&n.length&&t.some(a=>{const c=j2(a.target),l=n.join(",");return c==null?void 0:c.matches(l)}))return!1;const r=t.length,s=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=s&&r>s;if(r>i||o){const a=$n({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(a)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function io(e,t){return[...e,...t].join(",")}function Z2({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const i=["base","iframe[srcdoc]:not([src])"],o=io(e,[".sentry-mask","[data-sentry-mask]"]),a=io(t,[]);return{maskTextSelector:o,unmaskTextSelector:a,blockSelector:io(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:io(r,[]),ignoreSelector:io(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function Q2({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const Yv='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',e3=["content-length","content-type","accept"],t3=Symbol.for("sentry__originalRequestBody");let Xv=!1,Jv=!1;function n3(){if(typeof Request>"u"||Jv)return;const e=Request;try{const t=function(n,r){const s=new e(n,r);return(r==null?void 0:r.body)!=null&&(s[t3]=r.body),s};t.prototype=e.prototype,xe.Request=t,Jv=!0}catch{}}const r3=e=>new s3(e);class s3{constructor({flushMinDelay:t=I$,flushMaxDelay:n=x$,minReplayDuration:r=L$,maxReplayDuration:s=Iv,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:c={},maskAllText:l=!0,maskAllInputs:d=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:f=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:v=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:S=[],mask:M=[],maskAttributes:R=["title","placeholder","aria-label"],unmask:E=[],block:C=[],unblock:I=[],ignore:A=[],maskFn:O,beforeAddRecordingEvent:T,beforeErrorSampling:P,onError:N,attachRawBodyFromRequest:z=!1}={}){this.name="Replay";const X=Z2({mask:M,unmask:E,block:C,unblock:I,ignore:A});if(this._recordingOptions={maskAllInputs:d,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(q,D,re)=>Q2({maskAttributes:R,maskAllText:l,privacyOptions:X,key:q,value:D,el:re}),...X,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:q=>{try{q.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,N$),maxReplayDuration:Math.min(s,Iv),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:u,maskAllInputs:d,maskAllText:l,mutationBreadcrumbLimit:f,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:v,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:Zv(_),networkResponseHeaders:Zv(S),beforeAddRecordingEvent:T,beforeErrorSampling:P,onError:N,attachRawBodyFromRequest:z,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Yv}`:Yv,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&Wc())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Xv}set _isInitialized(t){Xv=t}afterAllSetup(t){!Wc()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&n3(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){var n;if((n=this._replay)!=null&&n.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){var t;if((t=this._replay)!=null&&t.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=i3(this._initialOptions,t);this._replay=new J2({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function i3(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=Is(n.replaysSessionSampleRate),i=Is(n.replaysOnErrorSampleRate);return s==null&&i==null&&yr(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),i!=null&&(r.errorSampleRate=i),r}function Zv(e){return[...e3,...e.map(t=>t.toLowerCase())]}function o3(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function dw(e){try{return new URL(e,Oe.location.origin).href}catch{return}}function a3(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function fw(e){try{return new Headers(e)}catch{return}}const Qv=new WeakMap,Wu=new Map,hw={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function c3(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:l}={...hw,...t},d=typeof i=="function"?i:p=>!0,u=p=>l3(p,a),f={},h=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(p=>(p.type==="transaction"&&p.spans&&p.spans.forEach(m=>{if(m.op==="http.client"){const v=Wu.get(m.span_id);v&&(m.timestamp=v/1e3,Wu.delete(m.span_id))}}),p)),s&&EL(p=>{if(p.response){const m=Qv.get(p.response);m&&p.endTimestamp&&Wu.set(m,p.endTimestamp)}}),D0(p=>{const m=fL(p,d,u,f,{propagateTraceparent:h,onRequestSpanEnd:l});if(p.response&&p.fetchData.__span&&Qv.set(p.response,p.fetchData.__span),m){const v=dw(p.fetchData.url),g=v?Ss(v).host:void 0;m.setAttributes({"http.url":v?Nr(v):void 0,"server.address":g}),o&&ey(m),c==null||c(m,{headers:p.headers})}})),r&&mE(p=>{var v;const m=u3(p,d,u,f,h,l);m&&(o&&ey(m),c==null||c(m,{headers:fw((v=p.xhr.__sentry_xhr_v3__)==null?void 0:v.request_headers)}))})}function ey(e){const{url:t}=Re(e).data;if(!t||typeof t!="string")return;const n=Rs("resource",({entries:r})=>{r.forEach(s=>{a3(s)&&s.name.endsWith(t)&&(e.setAttributes(fE(s)),setTimeout(n))})})}function l3(e,t){const n=Ls();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?er(r.toString(),t)||i&&er(r.pathname,t):i}else{const r=!!e.match(/^\/(?!\/)/);return t?er(e,t):r}}function u3(e,t,n,r,s,i){const o=e.xhr,a=o==null?void 0:o[ds];if(!o||o.__sentry_own_request__||!a)return;const{url:c,method:l}=a,d=fn()&&t(c);if(e.endTimestamp&&d){const g=o.__sentry_xhr_span_id__;if(!g)return;const y=r[g];y&&a.status_code!==void 0&&(jS(y,a.status_code),y.end(),i==null||i(y,{headers:fw(_E(o)),error:e.error}),delete r[g]);return}const u=dw(c),f=Ss(u||c),h=Nr(MO(c)),p=!!Tt(),m=d&&p?Vr({name:`${l} ${h}`,attributes:{url:Nr(c),type:"xhr","http.method":l,"http.url":u?Nr(u):void 0,"server.address":f==null?void 0:f.host,[st]:"auto.http.browser",[ur]:"http.client",...(f==null?void 0:f.search)&&{"http.query":f==null?void 0:f.search},...(f==null?void 0:f.hash)&&{"http.fragment":f==null?void 0:f.hash}}}):new Hr;o.__sentry_xhr_span_id__=m.spanContext().spanId,r[o.__sentry_xhr_span_id__]=m,n(c)&&d3(o,fn()&&p?m:void 0,s);const v=Ee();return v&&v.emit("beforeOutgoingRequestSpan",m,e),m}function d3(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:i}=A0({span:t,propagateTraceparent:n});r&&f3(e,r,s,i)}function f3(e,t,n,r){var i;const s=(i=e.__sentry_xhr_v3__)==null?void 0:i.request_headers;if(!(s!=null&&s["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!(s!=null&&s.traceparent)&&e.setRequestHeader("traceparent",r),n){const o=s==null?void 0:s.baggage;(!o||!o3(o))&&e.setRequestHeader("baggage",n)}}catch{}}function h3(){Oe.document?Oe.document.addEventListener("visibilitychange",()=>{const e=Tt();if(!e)return;const t=wt(e);if(Oe.document.hidden&&t){const n="cancelled",{op:r,status:s}=Re(t);pn&&J.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:ht,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):pn&&J.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const p3=3600,pw="sentry_previous_trace",m3="sentry.previous_trace";function g3(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?_3():void 0;e.on("spanStart",o=>{if(wt(o)!==o)return;const a=Me().getPropagationContext();s=v3(s,o,a),r&&y3(s)});let i=!0;n&&e.on("beforeSampling",o=>{if(!s)return;const a=Me(),c=a.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(s.sampleRate),sampled:String(of(s.spanContext))},sampleRand:s.sampleRand}),o.parentSampled=of(s.spanContext),o.parentSampleRate=s.sampleRate,o.spanAttributes={...o.spanAttributes,[WS]:s.sampleRate}})}function v3(e,t,n){const r=Re(t);function s(){var a,c;try{return Number((a=n.dsc)==null?void 0:a.sample_rate)??Number((c=r.data)==null?void 0:c[lh])}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<=p3&&(pn&&J.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[yM]:"previous_trace"}}),t.setAttribute(m3,`${o.traceId}-${o.spanId}-${of(o)?1:0}`)),i)}function y3(e){try{Oe.sessionStorage.setItem(pw,JSON.stringify(e))}catch(t){pn&&J.warn("Could not store previous trace in sessionStorage",t)}}function _3(){var e;try{const t=(e=Oe.sessionStorage)==null?void 0:e.getItem(pw);return JSON.parse(t)}catch{return}}function of(e){return e.traceFlags===1}const b3="BrowserTracing",S3={...ic,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...hw},ty=(e={})=>{const t={name:void 0,source:void 0},n=Oe.document,{enableInp:r,enableElementTiming:s,enableLongTask:i,enableLongAnimationFrame:o,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:l},beforeStartSpan:d,idleTimeout:u,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:p,traceFetch:m,traceXHR:v,trackFetchStreamPerformance:g,shouldCreateSpanForRequest:y,enableHTTPTimings:_,ignoreResourceSpans:S,ignorePerformanceApiSpans:M,instrumentPageLoad:R,instrumentNavigation:E,detectRedirects:C,linkPreviousTrace:I,consistentTraceSampling:A,enableReportPageLoaded:O,onRequestSpanStart:T,onRequestSpanEnd:P}={...S3,...e};let N,z,X;function q(D,re,U=!0){const ie=re.op==="pageload",ae=re.name,ue=d?d(re):re,Ce=ue.attributes||{};if(ae!==ue.name&&(Ce[jt]="custom",ue.attributes=Ce),!U){const x=Ns();Vr({...ue,startTime:x}).end(x);return}t.name=ue.name,t.source=Ce[jt];const Ne=d0(ue,{idleTimeout:u,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:ie,beforeSpanEnd:x=>{N==null||N(),KD(x,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!l,ignoreResourceSpans:S,ignorePerformanceApiSpans:M}),ry(D,void 0);const W=Me(),K=W.getPropagationContext();W.setPropagationContext({...K,traceId:Ne.spanContext().traceId,sampled:Xr(Ne),dsc:dr(x)}),ie&&(X=void 0)},trimIdleSpanEndTimestamp:!O});ie&&O&&(X=Ne),ry(D,Ne);function He(){n&&["interactive","complete"].includes(n.readyState)&&D.emit("idleSpanEnableAutoFinish",Ne)}ie&&!O&&n&&(n.addEventListener("readystatechange",()=>{He()}),He())}return{name:b3,setup(D){if(KM(),N=VD({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:l||!1,client:D}),r&&bF(),s&&oF(),o&&xe.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?WD():i&&UD(),a&&jD(),C&&n){const U=()=>{z=lt()};addEventListener("click",U,{capture:!0}),addEventListener("keydown",U,{capture:!0,passive:!0})}function re(){const U=Zo(D);U&&!Re(U).timestamp&&(pn&&J.log(`[Tracing] Finishing current active span with op: ${Re(U).op}`),U.setAttribute(jo,"cancelled"),U.end())}D.on("startNavigationSpan",(U,ie)=>{if(Ee()!==D)return;if(ie!=null&&ie.isRedirect){pn&&J.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),q(D,{op:"navigation.redirect",...U},!1);return}z=void 0,re(),Kt().setPropagationContext({traceId:lr(),sampleRand:Math.random(),propagationSpanId:fn()?void 0:tr()});const ae=Me();ae.setPropagationContext({traceId:lr(),sampleRand:Math.random(),propagationSpanId:fn()?void 0:tr()}),ae.setSDKProcessingMetadata({normalizedRequest:void 0}),q(D,{op:"navigation",...U,parentSpan:null,forceTransaction:!0})}),D.on("startPageLoadSpan",(U,ie={})=>{if(Ee()!==D)return;re();const ae=ie.sentryTrace||ny("sentry-trace"),ue=ie.baggage||ny("baggage"),Ce=BM(ae,ue),Ne=Me();Ne.setPropagationContext(Ce),fn()||(Ne.getPropagationContext().propagationSpanId=tr()),Ne.setSDKProcessingMetadata({normalizedRequest:xh()}),q(D,{op:"pageload",...U})}),D.on("endPageloadSpan",()=>{O&&X&&(X.setAttribute(jo,"reportPageLoaded"),X.end())})},afterAllSetup(D){let re=Ls();if(I!=="off"&&g3(D,{linkPreviousTrace:I,consistentTraceSampling:A}),Oe.location){if(R){const U=Gt();E3(D,{name:Oe.location.pathname,startTime:U?U/1e3:void 0,attributes:{[jt]:"url",[st]:"auto.pageload.browser"}})}E&&Dl(({to:U,from:ie})=>{if(ie===void 0&&(re==null?void 0:re.indexOf(U))!==-1){re=void 0;return}re=void 0;const ae=Eh(U),ue=Zo(D),Ce=ue&&C&&C3(ue,z);mw(D,{name:(ae==null?void 0:ae.pathname)||Oe.location.pathname,attributes:{[jt]:"url",[st]:"auto.navigation.browser"}},{url:U,isRedirect:Ce})})}p&&h3(),a&&w3(D,u,f,h,t),r&&wF(),c3(D,{traceFetch:m,traceXHR:v,trackFetchStreamPerformance:g,tracePropagationTargets:D.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:_,onRequestSpanStart:T,onRequestSpanEnd:P})}}};function E3(e,t,n){e.emit("startPageLoadSpan",t,n),Me().setTransactionName(t.name);const r=Zo(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function mw(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const i=Me();return i.setTransactionName(t.name),r&&!s&&i.setSDKProcessingMetadata({normalizedRequest:{...xh(),url:r}}),Zo(e)}function ny(e){const t=Oe.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function w3(e,t,n,r,s){const i=Oe.document;let o;const a=()=>{const c="ui.action.click",l=Zo(e);if(l){const d=Re(l).op;if(["navigation","pageload"].includes(d)){pn&&J.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(jo,"interactionInterrupted"),o.end(),o=void 0),!s.name){pn&&J.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}o=d0({name:s.name,op:c,attributes:{[jt]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",a,{capture:!0})}const gw="_sentry_idleSpan";function Zo(e){return e[gw]}function ry(e,t){qt(e,gw,t)}const sy=1.5;function C3(e,t){const n=Re(e),r=Ns(),s=n.start_timestamp;return!(r-s>sy||t&&r-t<=sy)}const vw=["activate","mount"],yw=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,T3=/(?:^|[-_])(\w)/g,k3=e=>e.replace(T3,t=>t.toUpperCase()).replace(/[-_]/g,""),I3="",ju="",x3=(e,t)=>e.repeat(t),ko=(e,t)=>{if(!e)return ju;if(e.$root===e)return I3;if(!e.$options)return ju;const n=e.$options;let r=n.name||n._componentTag||n.__name;const s=n.__file;if(!r&&s){const i=s.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${k3(r)}>`:ju)+(s&&t!==!1?` at ${s}`:"")},R3=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const s=t[t.length-1];if(s.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[s,n],n=0)}t.push(e),e=e.$parent}return` found in ${t.map((s,i)=>`${(i===0?"---> ":x3(" ",5+i*2))+(Array.isArray(s)?`${ko(s[0])}... (${s[1]} recursive calls)`:ko(s))}`).join(` `)}`}return` (found in ${ko(e)})`},A3=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(r,s,i)=>{var l;const o=ko(s,!1),a=s?R3(s):"",c={componentName:o,lifecycleHook:i,trace:a};if((t==null?void 0:t.attachProps)!==!1&&s&&((l=s.$options)!=null&&l.propsData?c.propsData=s.$options.propsData:s.$props&&(c.propsData=s.$props)),setTimeout(()=>{Pl(r,{captureContext:{contexts:{vue:c}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,r,s,i);else throw r}},iy="ui.vue",M3={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function zu(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{var r;(r=e.$root)!=null&&r.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function P3(e,t){function n(s){return s.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(s=>n(t)===n(s))}const O3=(e={})=>{const t=(e.hooks||[]).concat(vw).filter((s,i,o)=>o.indexOf(s)===i),n={},r=e.timeout||2e3;for(const s of t){const i=M3[s];if(!i){yw&&J.warn(`Unknown hook: ${s}`);continue}for(const o of i)n[o]=function(){var f;const a=this.$root===this;a&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||Vr({name:"Application Render",op:`${iy}.render`,attributes:{[st]:"auto.ui.vue"},onlyIfParent:!0}),zu(this,lt(),r));const c=ko(this,!1);if(!(a||(Array.isArray(e.trackComponents)?P3(e.trackComponents,c):e.trackComponents))){zu(this,lt(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const d=o===i[0],u=((f=this.$root)==null?void 0:f.$_sentryRootComponentSpan)||Tt();if(d){if(u){const h=this.$_sentryComponentSpans[s];h&&h.end(),this.$_sentryComponentSpans[s]=Vr({name:`Vue ${c}`,op:`${iy}.${s}`,attributes:{[st]:"auto.ui.vue"},onlyIfParent:!0})}}else{const h=this.$_sentryComponentSpans[s];if(!h)return;h.end(),zu(this,lt(),r)}}}return n},L3=xe,N3={Vue:L3.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:vw,timeout:2e3,trackComponents:!1}},D3="Vue",F3=(e={})=>({name:D3,setup(t){const n={...N3,...t.getOptions(),...e};if(!n.Vue&&!n.app){yr(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(s=>oy(s,n)):n.Vue&&oy(n.Vue,n)}}),oy=(e,t)=>{var n;yw&&((n=e._instance)==null?void 0:n.isMounted)===!0&&yr(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&A3(e,t),fn(t)&&e.mixin(O3(t.tracingOptions))};function $3(e={}){const t={defaultIntegrations:[...EE(),F3()],...e};return R0(t,"vue"),w$(t)}function B3(e,t,n){let r=!1;e.onError(s=>Pl(s,{mechanism:{handled:!1}})),e.beforeEach((s,i,o)=>{const a=r?void 0:H3(),c={};for(const u of Object.keys(s.params))c[`url.path.parameter.${u}`]=s.params[u],c[`params.${u}`]=s.params[u];for(const u of Object.keys(s.query)){const f=s.query[u];f&&(c[`query.${u}`]=f)}let l=s.path,d="url";if(s.name&&t.routeLabel!=="path")l=s.name.toString(),d="custom";else if(s.matched.length>0){const u=s.matched.length-1;l=s.matched[u].path,d="route"}Me().setTransactionName(l),t.instrumentPageLoad&&a&&(Re(a).data[jt]!=="custom"&&(a.updateName(l),a.setAttribute(jt,d)),a.setAttributes({...c,[st]:"auto.pageload.vue"}),r=!0),t.instrumentNavigation&&!a&&n({name:l,op:"navigation",attributes:{...c,[st]:"auto.navigation.vue",[jt]:d}}),o&&o()})}function H3(){const e=Tt(),t=e&&wt(e);return t&&Re(t).op==="pageload"?t:void 0}function V3(e={}){if(!e.router)return ty(e);const t=ty({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:s=!0,routeLabel:i="name"}=e;return{...t,afterAllSetup(o){t.afterAllSetup(o),B3(n,{routeLabel:i,instrumentNavigation:r,instrumentPageLoad:s},c=>{mw(o,c)})}}}const U3=_b(),Xi=VC(DA);let is=null;$3({app:Xi,dsn:"https://2f8e5e4ec986c6077d3798ba9f683fdd@o4510762489151488.ingest.us.sentry.io/4510762503438336",sendDefaultPii:!0,integrations:[V3({router:El}),r3({maskAllText:!1,blockAllMedia:!1}),is=GN({autoInject:!1,colorScheme:"system",showBranding:!1,showName:!0,showEmail:!0,isNameRequired:!1,isEmailRequired:!1,useSentryUser:{name:"username",email:"email"},themeDark:{submitBackground:"#6200EA",submitBackgroundHover:"#7C4DFF"},themeLight:{submitBackground:"#6200EA",submitBackgroundHover:"#7C4DFF"}})],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/kv-service\.(houlang\.cloud|wuyuan\.dev)/],replaysSessionSampleRate:0,replaysOnErrorSampleRate:0,enableLogs:!0,beforeSend(e){return e}});IS().then(e=>{XP({id:e,username:e}),YP("fingerprint",e),console.log("Sentry 用户标识已设置:",e)}).catch(e=>{console.warn("设置 Sentry 用户标识失败:",e)});window.openSentryFeedback=()=>{try{if(!is)return console.warn("Sentry Feedback integration 未初始化"),!1;if(typeof is.createWidget=="function"){const e=is.createWidget();if(e&&typeof e.open=="function")return e.open(),console.log("Sentry Feedback 对话框已打开"),!0}return typeof is.openDialog=="function"?(is.openDialog(),console.log("Sentry Feedback 对话框已打开"),!0):(console.warn("无法找到打开 Feedback 的方法"),console.log("可用方法:",Object.keys(is)),!1)}catch(e){return console.error("打开 Sentry Feedback 时出错:",e),!1}};window.startSentryReplay=()=>{try{const e=Ee();if(!e)return console.warn("Sentry 客户端未初始化"),!1;const n=(e.getOptions().integrations||[]).find(r=>r&&r.name==="Replay");return n&&typeof n.start=="function"?(n.start(),console.log("Sentry Replay 已手动启动"),!0):(console.warn("无法找到 Sentry Replay integration"),!1)}catch(e){return console.error("启动 Sentry Replay 时出错:",e),!1}};hx(Xi);Xi.use(Ys);Xi.use(U3);Xi.component("GlobalMessage",rS);Xi.mount("#app");document.readyState==="complete"?ay():window.addEventListener("load",ay,{once:!0});async function ay(){try{const e=(await yt(async()=>{const{default:r}=await import("./index-ghQi_28l.js");return{default:r}},[],import.meta.url)).default;e.init("rhp8uqoc3l");const n=await IS();console.log("Visitor ID:",n),e.identify(n),e.setTag("fingerprintjs",n)}catch(e){console.warn("Clarity 加载或标识设置失败:",e)}}try{const e=()=>{document.body.classList.add("app-loaded");const t=document.getElementById("app-loader");t&&setTimeout(()=>t.remove(),220)};document.readyState==="complete"||document.readyState==="interactive"?e():window.addEventListener("DOMContentLoaded",e,{once:!0})}catch{}export{Tn as $,bn as A,E4 as B,T_ as C,ed as D,Qe as E,Ze as F,w1 as G,tA as H,ws as I,xf as J,dS as K,Fc as L,sS as M,G3 as N,q3 as O,RA as P,Cd as Q,zm as R,Uo as S,Rf as T,k4 as U,NA as V,T4 as W,Nk as X,VR as Y,zr as Z,Lb as _,mA as a,Qs as a$,SS as a0,bS as a1,we as a2,j as a3,pt as a4,px as a5,mx as a6,g4 as a7,y4 as a8,v4 as a9,As as aA,bi as aB,li as aC,ss as aD,ld as aE,nR as aF,Bi as aG,Qf as aH,vl as aI,me as aJ,Ms as aK,Pf as aL,id as aM,W3 as aN,Ff as aO,IS as aP,R4 as aQ,x4 as aR,et as aS,r4 as aT,SA as aU,ZC as aV,un as aW,i4 as aX,gs as aY,JC as aZ,Et as a_,Hx as aa,mr as ab,bx as ac,yt as ad,Se as ae,j3 as af,Bb as ag,Ut as ah,GR as ai,OR as aj,Cr as ak,ng as al,cS as am,Dc as an,b4 as ao,_4 as ap,qT as aq,Zn as ar,Of as as,Z3 as at,nS as au,ee as av,vt as aw,t4 as ax,e4 as ay,be as az,tt as b,K3 as b$,vo as b0,u4 as b1,l4 as b2,hn as b3,V_ as b4,rg as b5,od as b6,na as b7,w4 as b8,Pk as b9,Gx as bA,ER as bB,m4 as bC,hi as bD,Xp as bE,SR as bF,p4 as bG,f4 as bH,Fi as bI,dl as bJ,Ys as bK,ui as bL,J3 as bM,o4 as bN,Le as bO,TR as bP,CR as bQ,Mx as bR,Ax as bS,At as bT,Px as bU,Rx as bV,W_ as bW,X3 as bX,mt as bY,c4 as bZ,Oi as b_,Ct as ba,Q3 as bb,or as bc,QR as bd,vr as be,pb as bf,Gf as bg,qp as bh,Qb as bi,nn as bj,gr as bk,Tl as bl,Zy as bm,eh as bn,mn as bo,ia as bp,sa as bq,Br as br,yx as bs,Sx as bt,Ex as bu,vR as bv,gR as bw,YC as bx,Di as by,$i as bz,B as c,Ts as c0,sd as c1,n4 as c2,Vb as c3,jx as c4,Hb as c5,bt as c6,de as c7,Nn as c8,_f as c9,z3 as cA,h4 as cB,Cl as cC,Xf as cD,I4 as cE,Jf as cF,Gr as cG,yf as cH,pl as cI,Y_ as cJ,$r as cK,S4 as cL,OT as ca,Oo as cb,v1 as cc,Uf as cd,Y3 as ce,Ps as cf,wl as cg,Yf as ch,Kf as ci,mR as cj,t_ as ck,XC as cl,yo as cm,ZR as cn,q_ as co,s4 as cp,a4 as cq,wA as cr,OA as cs,r_ as ct,aa as cu,oa as cv,qr as cw,d4 as cx,$_ as cy,C4 as cz,Pe as d,Vi as e,Hi as f,De as g,ct as h,se as i,Dn as j,zf as k,sg as l,Mt as m,Xe as n,cn as o,le as p,iS as q,E1 as r,vx as s,Hn as t,Kk as u,ao as v,gt as w,sA as x,Yb as y,Ed as z};