const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BauE4Qmt.js","./index.BdiFjUIM.css","./B5qTw1wF.js","./B7YFPK7H.js","./CyTERNNr.js","./DvWMcTrM.js","./index.D6DxgjLo.css","./DLBMx2y9.js","./GmvRLh6p.js","./Card.2T2pfdTU.css","./CUTWxcKb.js","./PromotedCard.BzUv5CT9.css","./9sF4kbui.js","./Card.Denbp9I4.css","./BxC-bnts.js","./BuUJ-GeE.js","./C-LlctE9.js","./index.BVgdQ4sF.css","./index.DOottlET.css","./COfOHBhY.js","./kldAE1K7.js","./CrVTASIx.js","./PageHeader.Ds7yxWka.css","./CXJd328Z.js","./mwfvAOQo.js","./index.NICcyu59.css","./DuEhWYOk.js","./CW0wgO2n.js","./index.Kz7FklJm.css","./C1JyoDy0.js","./Bzk8Xjrh.js","./Form.C0wDZn4G.css","./DaSSM3Fo.js","./single.CD6o5AGD.css","./A4l5-H8z.js","./CQ862-oQ.js","./CRV-delc.js","./BgNZPjO2.js","./BM5abMOS.js","./CCNsc5X2.js","./DtdEExa6.js","./CC_VM3fJ.js","./_si9FCiX.js","./C6-7HwH7.js","./BOQPrq-S.js","./DK24660b.js","./8IWQ92o6.js","./C_oSIdIz.js","./_slug_.m-jdShxm.css","./CpZx3EB9.js","./Dh3Td1LU.js","./DQhWb7th.js","./db4aI3RS.js","./stockholm-fashion-week.CQjzFaQz.css"])))=>i.map(i=>d[i]); var TD=Object.defineProperty;var Yy=e=>{throw TypeError(e)};var $D=(e,t,n)=>t in e?TD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Be=(e,t,n)=>$D(e,typeof t!="symbol"?t+"":t,n),ID=(e,t,n)=>t.has(e)||Yy("Cannot "+n);var nc=(e,t,n)=>(ID(e,t,"read from private field"),n?n.call(e):t.get(e)),Wy=(e,t,n)=>t.has(e)?Yy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3f72aee0-6802-4a6d-b565-5c7fe98bebef",e._sentryDebugIdIdentifier="sentry-dbid-3f72aee0-6802-4a6d-b565-5c7fe98bebef")}catch{}})();{var Ei=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};Ei._sentryModuleMetadata=Ei._sentryModuleMetadata||{},Ei._sentryModuleMetadata[new Ei.Error().stack]=Object.assign({},Ei._sentryModuleMetadata[new Ei.Error().stack],{"_sentryBundlerPluginAppKey:bokabord.se":!0})}var xD=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};xD.SENTRY_RELEASE={id:"f2dc31c454ce562068abc365398fce52d6fa7899"};(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 o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/** * @vue/shared v3.5.16 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function bg(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const tt={},Yi=[],Yr=()=>{},CD=()=>!1,_l=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),wg=e=>e.startsWith("onUpdate:"),Zt=Object.assign,Sg=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},DD=Object.prototype.hasOwnProperty,rt=(e,t)=>DD.call(e,t),$e=Array.isArray,Wi=e=>Ra(e)==="[object Map]",pd=e=>Ra(e)==="[object Set]",Vy=e=>Ra(e)==="[object Date]",MD=e=>Ra(e)==="[object RegExp]",Ae=e=>typeof e=="function",bt=e=>typeof e=="string",br=e=>typeof e=="symbol",ct=e=>e!==null&&typeof e=="object",Eg=e=>(ct(e)||Ae(e))&&Ae(e.then)&&Ae(e.catch),YS=Object.prototype.toString,Ra=e=>YS.call(e),OD=e=>Ra(e).slice(8,-1),kg=e=>Ra(e)==="[object Object]",Tg=e=>bt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vi=bg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},AD=/-(\w)/g,Pn=hd(e=>e.replace(AD,(t,n)=>n?n.toUpperCase():"")),RD=/\B([A-Z])/g,As=hd(e=>e.replace(RD,"-$1").toLowerCase()),md=hd(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ec=hd(e=>e?`on${md(e)}`:""),In=(e,t)=>!Object.is(e,t),zi=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},pf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},VS=e=>{const t=bt(e)?Number(e):NaN;return isNaN(t)?e:t};let zy;const gd=()=>zy||(zy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function yr(e){if($e(e)){const t={};for(let n=0;n{if(n){const r=n.split(LD);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Re(e){let t="";if(bt(e))t=e;else if($e(e))for(let n=0;nvd(n,t))}const qS=e=>!!(e&&e.__v_isRef===!0),De=e=>bt(e)?e:e==null?"":$e(e)||ct(e)&&(e.toString===YS||!Ae(e.toString))?qS(e)?De(e.value):JSON.stringify(e,KS,2):String(e),KS=(e,t)=>qS(t)?KS(e,t.value):Wi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[_p(r,o)+" =>"]=s,n),{})}:pd(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>_p(n))}:br(t)?_p(t):ct(t)&&!$e(t)&&!kg(t)?String(t):t,_p=(e,t="")=>{var n;return br(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.16 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let ln;class GS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ln,!t&&ln&&(this.index=(ln.scopes||(ln.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&&(ln=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(Tc){let t=Tc;for(Tc=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;kc;){let t=kc;for(kc=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 QS(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function eE(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),xg(r),YD(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function $h(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(tE(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function tE(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kc)||(e.globalVersion=Kc,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$h(e))))return;e.flags|=2;const t=e.dep,n=gt,r=_r;gt=e,_r=!0;try{QS(e);const s=e.fn(e._value);(t.version===0||In(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{gt=n,_r=r,eE(e),e.flags&=-3}}function xg(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 o=n.computed.deps;o;o=o.nextDep)xg(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function YD(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let _r=!0;const nE=[];function ws(){nE.push(_r),_r=!1}function Ss(){const e=nE.pop();_r=e===void 0?!0:e}function qy(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=gt;gt=void 0;try{t()}finally{gt=n}}}let Kc=0,WD=class{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 yd{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}track(t){if(!gt||!_r||gt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==gt)n=this.activeLink=new WD(gt,this),gt.deps?(n.prevDep=gt.depsTail,gt.depsTail.nextDep=n,gt.depsTail=n):gt.deps=gt.depsTail=n,rE(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=gt.depsTail,n.nextDep=void 0,gt.depsTail.nextDep=n,gt.depsTail=n,gt.deps===n&&(gt.deps=r)}return n}trigger(t){this.version++,Kc++,this.notify(t)}notify(t){$g();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ig()}}}function rE(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)rE(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const hf=new WeakMap,Yo=Symbol(""),Ih=Symbol(""),Gc=Symbol("");function un(e,t,n){if(_r&>){let r=hf.get(e);r||hf.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new yd),s.map=r,s.key=n),s.track()}}function as(e,t,n,r,s,o){const i=hf.get(e);if(!i){Kc++;return}const a=c=>{c&&c.trigger()};if($g(),t==="clear")i.forEach(a);else{const c=$e(e),l=c&&Tg(n);if(c&&n==="length"){const u=Number(r);i.forEach((f,d)=>{(d==="length"||d===Gc||!br(d)&&d>=u)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),l&&a(i.get(Gc)),t){case"add":c?l&&a(i.get("length")):(a(i.get(Yo)),Wi(e)&&a(i.get(Ih)));break;case"delete":c||(a(i.get(Yo)),Wi(e)&&a(i.get(Ih)));break;case"set":Wi(e)&&a(i.get(Yo));break}}Ig()}function VD(e,t){const n=hf.get(e);return n&&n.get(t)}function ki(e){const t=Qe(e);return t===e?t:(un(t,"iterate",Gc),Qn(e)?t:t.map(sn))}function _d(e){return un(e=Qe(e),"iterate",Gc),e}const zD={__proto__:null,[Symbol.iterator](){return wp(this,Symbol.iterator,sn)},concat(...e){return ki(this).concat(...e.map(t=>$e(t)?ki(t):t))},entries(){return wp(this,"entries",e=>(e[1]=sn(e[1]),e))},every(e,t){return Zr(this,"every",e,t,void 0,arguments)},filter(e,t){return Zr(this,"filter",e,t,n=>n.map(sn),arguments)},find(e,t){return Zr(this,"find",e,t,sn,arguments)},findIndex(e,t){return Zr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Zr(this,"findLast",e,t,sn,arguments)},findLastIndex(e,t){return Zr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Zr(this,"forEach",e,t,void 0,arguments)},includes(...e){return Sp(this,"includes",e)},indexOf(...e){return Sp(this,"indexOf",e)},join(e){return ki(this).join(e)},lastIndexOf(...e){return Sp(this,"lastIndexOf",e)},map(e,t){return Zr(this,"map",e,t,void 0,arguments)},pop(){return rc(this,"pop")},push(...e){return rc(this,"push",e)},reduce(e,...t){return Ky(this,"reduce",e,t)},reduceRight(e,...t){return Ky(this,"reduceRight",e,t)},shift(){return rc(this,"shift")},some(e,t){return Zr(this,"some",e,t,void 0,arguments)},splice(...e){return rc(this,"splice",e)},toReversed(){return ki(this).toReversed()},toSorted(e){return ki(this).toSorted(e)},toSpliced(...e){return ki(this).toSpliced(...e)},unshift(...e){return rc(this,"unshift",e)},values(){return wp(this,"values",sn)}};function wp(e,t,n){const r=_d(e),s=r[t]();return r!==e&&!Qn(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const qD=Array.prototype;function Zr(e,t,n,r,s,o){const i=_d(e),a=i!==e&&!Qn(e),c=i[t];if(c!==qD[t]){const f=c.apply(e,o);return a?sn(f):f}let l=n;i!==e&&(a?l=function(f,d){return n.call(this,sn(f),d,e)}:n.length>2&&(l=function(f,d){return n.call(this,f,d,e)}));const u=c.call(i,l,r);return a&&s?s(u):u}function Ky(e,t,n,r){const s=_d(e);let o=n;return s!==e&&(Qn(e)?n.length>3&&(o=function(i,a,c){return n.call(this,i,a,c,e)}):o=function(i,a,c){return n.call(this,i,sn(a),c,e)}),s[t](o,...r)}function Sp(e,t,n){const r=Qe(e);un(r,"iterate",Gc);const s=r[t](...n);return(s===-1||s===!1)&&Mg(n[0])?(n[0]=Qe(n[0]),r[t](...n)):s}function rc(e,t,n=[]){ws(),$g();const r=Qe(e)[t].apply(e,n);return Ig(),Ss(),r}const KD=bg("__proto__,__v_isRef,__isVue"),sE=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(br));function GD(e){br(e)||(e=String(e));const t=Qe(this);return un(t,"has",e),t.hasOwnProperty(e)}class oE{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,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?oM:lE:o?cE:aE).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=$e(t);if(!s){let c;if(i&&(c=zD[n]))return c;if(n==="hasOwnProperty")return GD}const a=Reflect.get(t,n,ze(t)?t:r);return(br(n)?sE.has(n):KD(n))||(s||un(t,"get",n),o)?a:ze(a)?i&&Tg(n)?a:a.value:ct(a)?s?uE(a):qt(a):a}}class iE extends oE{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const c=Es(o);if(!Qn(r)&&!Es(r)&&(o=Qe(o),r=Qe(r)),!$e(t)&&ze(o)&&!ze(r))return c?!1:(o.value=r,!0)}const i=$e(t)&&Tg(n)?Number(n)e,Ul=e=>Reflect.getPrototypeOf(e);function eM(e,t,n){return function(...r){const s=this.__v_raw,o=Qe(s),i=Wi(o),a=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,l=s[e](...r),u=n?xh:t?mf:sn;return!t&&un(o,"iterate",c?Ih:Yo),{next(){const{value:f,done:d}=l.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function jl(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function tM(e,t){const n={get(s){const o=this.__v_raw,i=Qe(o),a=Qe(s);e||(In(s,a)&&un(i,"get",s),un(i,"get",a));const{has:c}=Ul(i),l=t?xh:e?mf:sn;if(c.call(i,s))return l(o.get(s));if(c.call(i,a))return l(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&un(Qe(s),"iterate",Yo),Reflect.get(s,"size",s)},has(s){const o=this.__v_raw,i=Qe(o),a=Qe(s);return e||(In(s,a)&&un(i,"has",s),un(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,c=Qe(a),l=t?xh:e?mf:sn;return!e&&un(c,"iterate",Yo),a.forEach((u,f)=>s.call(o,l(u),l(f),i))}};return Zt(n,e?{add:jl("add"),set:jl("set"),delete:jl("delete"),clear:jl("clear")}:{add(s){!t&&!Qn(s)&&!Es(s)&&(s=Qe(s));const o=Qe(this);return Ul(o).has.call(o,s)||(o.add(s),as(o,"add",s,s)),this},set(s,o){!t&&!Qn(o)&&!Es(o)&&(o=Qe(o));const i=Qe(this),{has:a,get:c}=Ul(i);let l=a.call(i,s);l||(s=Qe(s),l=a.call(i,s));const u=c.call(i,s);return i.set(s,o),l?In(o,u)&&as(i,"set",s,o):as(i,"add",s,o),this},delete(s){const o=Qe(this),{has:i,get:a}=Ul(o);let c=i.call(o,s);c||(s=Qe(s),c=i.call(o,s)),a&&a.call(o,s);const l=o.delete(s);return c&&as(o,"delete",s,void 0),l},clear(){const s=Qe(this),o=s.size!==0,i=s.clear();return o&&as(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=eM(s,e,t)}),n}function Cg(e,t){const n=tM(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(rt(n,s)&&s in r?n:r,s,o)}const nM={get:Cg(!1,!1)},rM={get:Cg(!1,!0)},sM={get:Cg(!0,!1)};const aE=new WeakMap,cE=new WeakMap,lE=new WeakMap,oM=new WeakMap;function iM(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function aM(e){return e.__v_skip||!Object.isExtensible(e)?0:iM(OD(e))}function qt(e){return Es(e)?e:Dg(e,!1,JD,nM,aE)}function ls(e){return Dg(e,!1,QD,rM,cE)}function uE(e){return Dg(e,!0,ZD,sM,lE)}function Dg(e,t,n,r,s){if(!ct(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=aM(e);if(o===0)return e;const i=s.get(e);if(i)return i;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function ms(e){return Es(e)?ms(e.__v_raw):!!(e&&e.__v_isReactive)}function Es(e){return!!(e&&e.__v_isReadonly)}function Qn(e){return!!(e&&e.__v_isShallow)}function Mg(e){return e?!!e.__v_raw:!1}function Qe(e){const t=e&&e.__v_raw;return t?Qe(t):e}function Og(e){return!rt(e,"__v_skip")&&Object.isExtensible(e)&&WS(e,"__v_skip",!0),e}const sn=e=>ct(e)?qt(e):e,mf=e=>ct(e)?uE(e):e;function ze(e){return e?e.__v_isRef===!0:!1}function pe(e){return fE(e,!1)}function Dn(e){return fE(e,!0)}function fE(e,t){return ze(e)?e:new cM(e,t)}class cM{constructor(t,n){this.dep=new yd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Qe(t),this._value=n?t:sn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Qn(t)||Es(t);t=r?t:Qe(t),In(t,n)&&(this._rawValue=t,this._value=r?t:sn(t),this.dep.trigger())}}function ohe(e){e.dep&&e.dep.trigger()}function k(e){return ze(e)?e.value:e}function dr(e){return Ae(e)?e():k(e)}const lM={get:(e,t,n)=>t==="__v_raw"?e:k(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ze(s)&&!ze(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function dE(e){return ms(e)?e:new Proxy(e,lM)}class uM{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new yd,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function pE(e){return new uM(e)}function bl(e){const t=$e(e)?new Array(e.length):{};for(const n in e)t[n]=hE(e,n);return t}class fM{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return VD(Qe(this._object),this._key)}}class dM{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 Wo(e,t,n){return ze(e)?e:Ae(e)?new dM(e):ct(e)&&arguments.length>1?hE(e,t,n):pe(e)}function hE(e,t,n){const r=e[t];return ze(r)?r:new fM(e,t,n)}class pM{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new yd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kc-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&>!==this)return ZS(this,!0),!0}get value(){const t=this.dep.track();return tE(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function hM(e,t,n=!1){let r,s;return Ae(e)?r=e:(r=e.get,s=e.set),new pM(r,s,n)}const Yl={},gf=new WeakMap;let Po;function mM(e,t=!1,n=Po){if(n){let r=gf.get(n);r||gf.set(n,r=[]),r.push(e)}}function gM(e,t,n=tt){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:c}=n,l=_=>s?_:Qn(_)||s===!1||s===0?cs(_,1):cs(_);let u,f,d,p,h=!1,m=!1;if(ze(e)?(f=()=>e.value,h=Qn(e)):ms(e)?(f=()=>l(e),h=!0):$e(e)?(m=!0,h=e.some(_=>ms(_)||Qn(_)),f=()=>e.map(_=>{if(ze(_))return _.value;if(ms(_))return l(_);if(Ae(_))return c?c(_,2):_()})):Ae(e)?t?f=c?()=>c(e,2):e:f=()=>{if(d){ws();try{d()}finally{Ss()}}const _=Po;Po=u;try{return c?c(e,3,[p]):e(p)}finally{Po=_}}:f=Yr,t&&s){const _=f,w=s===!0?1/0:s;f=()=>cs(_(),w)}const v=Rs(),g=()=>{u.stop(),v&&v.active&&Sg(v.effects,u)};if(o&&t){const _=t;t=(...w)=>{_(...w),g()}}let b=m?new Array(e.length).fill(Yl):Yl;const y=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const w=u.run();if(s||h||(m?w.some((S,E)=>In(S,b[E])):In(w,b))){d&&d();const S=Po;Po=u;try{const E=[w,b===Yl?void 0:m&&b[0]===Yl?[]:b,p];b=w,c?c(t,3,E):t(...E)}finally{Po=S}}}else u.run()};return a&&a(y),u=new XS(f),u.scheduler=i?()=>i(y,!1):y,p=_=>mM(_,!1,u),d=u.onStop=()=>{const _=gf.get(u);if(_){if(c)c(_,4);else for(const w of _)w();gf.delete(u)}},t?r?y(!0):b=u.run():i?i(y.bind(null,!0),!0):u.run(),g.pause=u.pause.bind(u),g.resume=u.resume.bind(u),g.stop=g,g}function cs(e,t=1/0,n){if(t<=0||!ct(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ze(e))cs(e.value,t,n);else if($e(e))for(let r=0;r{cs(r,t,n)});else if(kg(e)){for(const r in e)cs(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&cs(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.16 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function wl(e,t,n,r){try{return r?e(...r):e()}catch(s){Pa(s,t,n)}}function wr(e,t,n,r){if(Ae(e)){const s=wl(e,t,n,r);return s&&Eg(s)&&s.catch(o=>{Pa(o,t,n)}),s}if($e(e)){const s=[];for(let o=0;o>>1,s=_n[r],o=Xc(s);o=Xc(n)?_n.push(e):_n.splice(yM(t),0,e),e.flags|=1,gE()}}function gE(){vf||(vf=mE.then(vE))}function Ch(e){$e(e)?Ki.push(...e):Vs&&e.id===-1?Vs.splice(Ci+1,0,e):e.flags&1||(Ki.push(e),e.flags|=1),gE()}function Gy(e,t,n=Lr+1){for(;n<_n.length;n++){const r=_n[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;_n.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function yf(e){if(Ki.length){const t=[...new Set(Ki)].sort((n,r)=>Xc(n)-Xc(r));if(Ki.length=0,Vs){Vs.push(...t);return}for(Vs=t,Ci=0;Cie.id==null?e.flags&2?-1:1/0:e.id;function vE(e){try{for(Lr=0;Lr<_n.length;Lr++){const t=_n[Lr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),wl(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Lr<_n.length;Lr++){const t=_n[Lr];t&&(t.flags&=-2)}Lr=-1,_n.length=0,yf(),vf=null,(_n.length||Ki.length)&&vE()}}let Vt=null,yE=null;function _f(e){const t=Vt;return Vt=e,yE=e&&e.type.__scopeId||null,t}function _e(e,t=Vt,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&f_(-1);const o=_f(t);let i;try{i=e(...s)}finally{_f(o),r._d&&f_(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Un(e,t){if(Vt===null)return e;const n=kd(Vt),r=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,$c=e=>e&&(e.disabled||e.disabled===""),Xy=e=>e&&(e.defer||e.defer===""),Jy=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Zy=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Dh=(e,t)=>{const n=e&&e.to;return bt(n)?t?t(n):null:n},wE={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,a,c,l){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:m,createComment:v}}=l,g=$c(t.props);let{shapeFlag:b,children:y,dynamicChildren:_}=t;if(e==null){const w=t.el=m(""),S=t.anchor=m("");p(w,n,r),p(S,n,r);const E=(T,x)=>{b&16&&(s&&s.isCE&&(s.ce._teleportTarget=T),u(y,T,x,s,o,i,a,c))},$=()=>{const T=t.target=Dh(t.props,h),x=SE(T,t,m,p);T&&(i!=="svg"&&Jy(T)?i="svg":i!=="mathml"&&Zy(T)&&(i="mathml"),g||(E(T,x),Cu(t,!1)))};g&&(E(n,S),Cu(t,!0)),Xy(t.props)?(t.el.__isMounted=!1,jt(()=>{$(),delete t.el.__isMounted},o)):$()}else{if(Xy(t.props)&&e.el.__isMounted===!1){jt(()=>{wE.process(e,t,n,r,s,o,i,a,c,l)},o);return}t.el=e.el,t.targetStart=e.targetStart;const w=t.anchor=e.anchor,S=t.target=e.target,E=t.targetAnchor=e.targetAnchor,$=$c(e.props),T=$?n:S,x=$?w:E;if(i==="svg"||Jy(S)?i="svg":(i==="mathml"||Zy(S))&&(i="mathml"),_?(d(e.dynamicChildren,_,T,s,o,i,a),jg(e,t,!0)):c||f(e,t,T,x,s,o,i,a,!1),g)$?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Wl(t,n,w,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const L=t.target=Dh(t.props,h);L&&Wl(t,L,null,l,0)}else $&&Wl(t,S,E,l,1);Cu(t,g)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:i,children:a,anchor:c,targetStart:l,targetAnchor:u,target:f,props:d}=e;if(f&&(s(l),s(u)),o&&s(c),i&16){const p=o||!$c(d);for(let h=0;h{e.isMounted=!0}),Ls(()=>{e.isUnmounting=!0}),e}const Vn=[Function,Array],EE={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vn,onEnter:Vn,onAfterEnter:Vn,onEnterCancelled:Vn,onBeforeLeave:Vn,onLeave:Vn,onAfterLeave:Vn,onLeaveCancelled:Vn,onBeforeAppear:Vn,onAppear:Vn,onAfterAppear:Vn,onAppearCancelled:Vn},kE=e=>{const t=e.subTree;return t.component?kE(t.component):t},SM={name:"BaseTransition",props:EE,setup(e,{slots:t}){const n=Ht(),r=wM();return()=>{const s=t.default&&IE(t.default(),!0);if(!s||!s.length)return;const o=TE(s),i=Qe(e),{mode:a}=i;if(r.isLeaving)return Ep(o);const c=Qy(o);if(!c)return Ep(o);let l=Mh(c,i,r,n,f=>l=f);c.type!==Rt&&sa(c,l);let u=n.subTree&&Qy(n.subTree);if(u&&u.type!==Rt&&!gr(c,u)&&kE(n).type!==Rt){let f=Mh(u,i,r,n);if(sa(u,f),a==="out-in"&&c.type!==Rt)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},Ep(o);a==="in-out"&&c.type!==Rt?f.delayLeave=(d,p,h)=>{const m=$E(r,u);m[String(u.key)]=u,d[zs]=()=>{p(),d[zs]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{h(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function TE(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Rt){t=n;break}}return t}const EM=SM;function $E(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 Mh(e,t,n,r,s){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:v,onAppear:g,onAfterAppear:b,onAppearCancelled:y}=t,_=String(e.key),w=$E(n,e),S=(T,x)=>{T&&wr(T,r,9,x)},E=(T,x)=>{const L=x[1];S(T,x),$e(T)?T.every(M=>M.length<=1)&&L():T.length<=1&&L()},$={mode:i,persisted:a,beforeEnter(T){let x=c;if(!n.isMounted)if(o)x=v||c;else return;T[zs]&&T[zs](!0);const L=w[_];L&&gr(e,L)&&L.el[zs]&&L.el[zs](),S(x,[T])},enter(T){let x=l,L=u,M=f;if(!n.isMounted)if(o)x=g||l,L=b||u,M=y||f;else return;let j=!1;const q=T[Vl]=F=>{j||(j=!0,F?S(M,[T]):S(L,[T]),$.delayedLeave&&$.delayedLeave(),T[Vl]=void 0)};x?E(x,[T,q]):q()},leave(T,x){const L=String(e.key);if(T[Vl]&&T[Vl](!0),n.isUnmounting)return x();S(d,[T]);let M=!1;const j=T[zs]=q=>{M||(M=!0,x(),q?S(m,[T]):S(h,[T]),T[zs]=void 0,w[L]===e&&delete w[L])};w[L]=e,p?E(p,[T,j]):j()},clone(T){const x=Mh(T,t,n,r,s);return s&&s(x),x}};return $}function Ep(e){if(Sl(e))return e=Er(e),e.children=null,e}function Qy(e){if(!Sl(e))return bE(e.type)&&e.children?TE(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&&Ae(n.default))return n.default()}}function sa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,sa(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 IE(e,t=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;oJc(h,t&&($e(t)?t[m]:t),n,r,s));return}if(ro(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Jc(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?kd(r.component):r.el,i=s?null:o,{i:a,r:c}=e,l=t&&t.r,u=a.refs===tt?a.refs={}:a.refs,f=a.setupState,d=Qe(f),p=f===tt?()=>!1:h=>rt(d,h);if(l!=null&&l!==c&&(bt(l)?(u[l]=null,p(l)&&(f[l]=null)):ze(l)&&(l.value=null)),Ae(c))wl(c,a,12,[i,u]);else{const h=bt(c),m=ze(c);if(h||m){const v=()=>{if(e.f){const g=h?p(c)?f[c]:u[c]:c.value;s?$e(g)&&Sg(g,o):$e(g)?g.includes(o)||g.push(o):h?(u[c]=[o],p(c)&&(f[c]=u[c])):(c.value=[o],e.k&&(u[e.k]=c.value))}else h?(u[c]=i,p(c)&&(f[c]=i)):m&&(c.value=i,e.k&&(u[e.k]=i))};i?(v.id=-1,jt(v,n)):v()}}}let t_=!1;const Ti=()=>{t_||(console.error("Hydration completed but contains mismatches."),t_=!0)},kM=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",TM=e=>e.namespaceURI.includes("MathML"),zl=e=>{if(e.nodeType===1){if(kM(e))return"svg";if(TM(e))return"mathml"}},Pi=e=>e.nodeType===8;function $M(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:c,createComment:l}}=e,u=(y,_)=>{if(!_.hasChildNodes()){n(null,y,_),yf(),_._vnode=y;return}f(_.firstChild,y,null,null,null),yf(),_._vnode=y},f=(y,_,w,S,E,$=!1)=>{$=$||!!_.dynamicChildren;const T=Pi(y)&&y.data==="[",x=()=>m(y,_,w,S,E,T),{type:L,ref:M,shapeFlag:j,patchFlag:q}=_;let F=y.nodeType;_.el=y,q===-2&&($=!1,_.dynamicChildren=null);let R=null;switch(L){case so:F!==3?_.children===""?(c(_.el=s(""),i(y),y),R=y):R=x():(y.data!==_.children&&(Ti(),y.data=_.children),R=o(y));break;case Rt:b(y)?(R=o(y),g(_.el=y.content.firstChild,y,w)):F!==8||T?R=x():R=o(y);break;case xc:if(T&&(y=o(y),F=y.nodeType),F===1||F===3){R=y;const V=!_.children.length;for(let U=0;U<_.staticCount;U++)V&&(_.children+=R.nodeType===1?R.outerHTML:R.data),U===_.staticCount-1&&(_.anchor=R),R=o(R);return T?o(R):R}else x();break;case Fe:T?R=h(y,_,w,S,E,$):R=x();break;default:if(j&1)(F!==1||_.type.toLowerCase()!==y.tagName.toLowerCase())&&!b(y)?R=x():R=d(y,_,w,S,E,$);else if(j&6){_.slotScopeIds=E;const V=i(y);if(T?R=v(y):Pi(y)&&y.data==="teleport start"?R=v(y,y.data,"teleport end"):R=o(y),t(_,V,null,w,S,zl(V),$),ro(_)&&!_.type.__asyncResolved){let U;T?(U=Q(Fe),U.anchor=R?R.previousSibling:V.lastChild):U=y.nodeType===3?ci(""):Q("div"),U.el=y,_.component.subTree=U}}else j&64?F!==8?R=x():R=_.type.hydrate(y,_,w,S,E,$,e,p):j&128&&(R=_.type.hydrate(y,_,w,S,zl(i(y)),E,$,e,f))}return M!=null&&Jc(M,null,S,_),R},d=(y,_,w,S,E,$)=>{$=$||!!_.dynamicChildren;const{type:T,props:x,patchFlag:L,shapeFlag:M,dirs:j,transition:q}=_,F=T==="input"||T==="option";if(F||L!==-1){j&&Fr(_,null,w,"created");let R=!1;if(b(y)){R=zE(null,q)&&w&&w.vnode.props&&w.vnode.props.appear;const U=y.content.firstChild;if(R){const re=U.getAttribute("class");re&&(U.$cls=re),q.beforeEnter(U)}g(U,y,w),_.el=y=U}if(M&16&&!(x&&(x.innerHTML||x.textContent))){let U=p(y.firstChild,_,y,w,S,E,$);for(;U;){ql(y,1)||Ti();const re=U;U=U.nextSibling,a(re)}}else if(M&8){let U=_.children;U[0]===` `&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(U=U.slice(1)),y.textContent!==U&&(ql(y,0)||Ti(),y.textContent=_.children)}if(x){if(F||!$||L&48){const U=y.tagName.includes("-");for(const re in x)(F&&(re.endsWith("value")||re==="indeterminate")||_l(re)&&!Vi(re)||re[0]==="."||U)&&r(y,re,null,x[re],void 0,w)}else if(x.onClick)r(y,"onClick",null,x.onClick,void 0,w);else if(L&4&&ms(x.style))for(const U in x.style)x.style[U]}let V;(V=x&&x.onVnodeBeforeMount)&&$n(V,w,_),j&&Fr(_,null,w,"beforeMount"),((V=x&&x.onVnodeMounted)||j||R)&&QE(()=>{V&&$n(V,w,_),R&&q.enter(y),j&&Fr(_,null,w,"mounted")},S)}return y.nextSibling},p=(y,_,w,S,E,$,T)=>{T=T||!!_.dynamicChildren;const x=_.children,L=x.length;for(let M=0;M{const{slotScopeIds:T}=_;T&&(E=E?E.concat(T):T);const x=i(y),L=p(o(y),_,x,w,S,E,$);return L&&Pi(L)&&L.data==="]"?o(_.anchor=L):(Ti(),c(_.anchor=l("]"),x,L),L)},m=(y,_,w,S,E,$)=>{if(ql(y.parentElement,1)||Ti(),_.el=null,$){const L=v(y);for(;;){const M=o(y);if(M&&M!==L)a(M);else break}}const T=o(y),x=i(y);return a(y),n(null,_,x,T,w,S,zl(x),E),w&&(w.vnode.el=_.el,Ed(w,_.el)),T},v=(y,_="[",w="]")=>{let S=0;for(;y;)if(y=o(y),y&&Pi(y)&&(y.data===_&&S++,y.data===w)){if(S===0)return o(y);S--}return y},g=(y,_,w)=>{const S=_.parentNode;S&&S.replaceChild(y,_);let E=w;for(;E;)E.vnode.el===_&&(E.vnode.el=E.subTree.el=y),E=E.parent},b=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[u,f]}const n_="data-allow-mismatch",IM={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ql(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(n_);)e=e.parentElement;const n=e&&e.getAttribute(n_);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(IM[t])}}gd().requestIdleCallback;gd().cancelIdleCallback;function xM(e,t){if(Pi(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Pi(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const ro=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function CM(e){Ae(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:o,timeout:i,suspensible:a=!0,onError:c}=e;let l=null,u,f=0;const d=()=>(f++,l=null,p()),p=()=>{let h;return l||(h=l=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),c)return new Promise((v,g)=>{c(m,()=>v(d()),()=>g(m),f+1)});throw m}).then(m=>h!==l&&l?l:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),u=m,m)))};return ke({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(h,m,v){const g=o?()=>{const y=o(()=>{v()},_=>xM(h,_));y&&(m.bum||(m.bum=[])).push(y),(m.u||(m.u=[])).push(()=>!0)}:v;u?g():p().then(()=>!m.isUnmounted&&g())},get __asyncResolved(){return u},setup(){const h=Wt;if(Rg(h),u)return()=>kp(u,h);const m=y=>{l=null,Pa(y,h,13,!r)};if(a&&h.suspense||ia)return p().then(y=>()=>kp(y,h)).catch(y=>(m(y),()=>r?Q(r,{error:y}):null));const v=pe(!1),g=pe(),b=pe(!!s);return s&&setTimeout(()=>{b.value=!1},s),i!=null&&setTimeout(()=>{if(!v.value&&!g.value){const y=new Error(`Async component timed out after ${i}ms.`);m(y),g.value=y}},i),p().then(()=>{v.value=!0,h.parent&&Sl(h.parent.vnode)&&h.parent.update()}).catch(y=>{m(y),g.value=y}),()=>{if(v.value&&u)return kp(u,h);if(g.value&&r)return Q(r,{error:g.value});if(n&&!b.value)return Q(n)}}})}function kp(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=Q(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Sl=e=>e.type.__isKeepAlive,DM={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ht(),r=n.ctx;if(!r.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const s=new Map,o=new Set;let i=null;const a=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(b,y,_,w,S)=>{const E=b.component;l(b,y,_,0,a),c(E.vnode,b,y,_,E,a,w,b.slotScopeIds,S),jt(()=>{E.isDeactivated=!1,E.a&&zi(E.a);const $=b.props&&b.props.onVnodeMounted;$&&$n($,E.parent,b)},a)},r.deactivate=b=>{const y=b.component;wf(y.m),wf(y.a),l(b,d,null,1,a),jt(()=>{y.da&&zi(y.da);const _=b.props&&b.props.onVnodeUnmounted;_&&$n(_,y.parent,b),y.isDeactivated=!0},a)};function p(b){Tp(b),u(b,n,a,!0)}function h(b){s.forEach((y,_)=>{const w=Bh(y.type);w&&!b(w)&&m(_)})}function m(b){const y=s.get(b);y&&(!i||!gr(y,i))?p(y):i&&Tp(i),s.delete(b),o.delete(b)}xe(()=>[e.include,e.exclude],([b,y])=>{b&&h(_=>gc(b,_)),y&&h(_=>!gc(y,_))},{flush:"post",deep:!0});let v=null;const g=()=>{v!=null&&(Sf(n.subTree.type)?jt(()=>{s.set(v,Kl(n.subTree))},n.subTree.suspense):s.set(v,Kl(n.subTree)))};return en(g),DE(g),Ls(()=>{s.forEach(b=>{const{subTree:y,suspense:_}=n,w=Kl(y);if(b.type===w.type&&b.key===w.key){Tp(w);const S=w.component.da;S&&jt(S,_);return}p(b)})}),()=>{if(v=null,!t.default)return i=null;const b=t.default(),y=b[0];if(b.length>1)return i=null,b;if(!Xo(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return i=null,y;let _=Kl(y);if(_.type===Rt)return i=null,_;const w=_.type,S=Bh(ro(_)?_.type.__asyncResolved||{}:w),{include:E,exclude:$,max:T}=e;if(E&&(!S||!gc(E,S))||$&&S&&gc($,S))return _.shapeFlag&=-257,i=_,y;const x=_.key==null?w:_.key,L=s.get(x);return _.el&&(_=Er(_),y.shapeFlag&128&&(y.ssContent=_)),v=x,L?(_.el=L.el,_.component=L.component,_.transition&&sa(_,_.transition),_.shapeFlag|=512,o.delete(x),o.add(x)):(o.add(x),T&&o.size>parseInt(T,10)&&m(o.values().next().value)),_.shapeFlag|=256,i=_,Sf(y.type)?y:_}}},MM=DM;function gc(e,t){return $e(e)?e.some(n=>gc(n,t)):bt(e)?e.split(",").includes(t):MD(e)?(e.lastIndex=0,e.test(t)):!1}function Pg(e,t){xE(e,"a",t)}function Lg(e,t){xE(e,"da",t)}function xE(e,t,n=Wt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(bd(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Sl(s.parent.vnode)&&OM(r,t,n,s),s=s.parent}}function OM(e,t,n,r){const s=bd(t,e,r,!0);on(()=>{Sg(r[t],s)},n)}function Tp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Kl(e){return e.shapeFlag&128?e.ssContent:e}function bd(e,t,n=Wt,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{ws();const a=Jo(n),c=wr(t,n,e,i);return a(),Ss(),c});return r?s.unshift(o):s.push(o),o}}const Ps=e=>(t,n=Wt)=>{(!ia||e==="sp")&&bd(e,(...r)=>t(...r),n)},CE=Ps("bm"),en=Ps("m"),AM=Ps("bu"),DE=Ps("u"),Ls=Ps("bum"),on=Ps("um"),RM=Ps("sp"),PM=Ps("rtg"),LM=Ps("rtc");function ME(e,t=Wt){bd("ec",e,t)}const Ng="components",NM="directives";function pr(e,t){return Hg(Ng,e,!0,t)||e}const OE=Symbol.for("v-ndc");function Fg(e){return bt(e)?Hg(Ng,e,!1)||e:e||OE}function Ns(e){return Hg(NM,e)}function Hg(e,t,n=!0,r=!1){const s=Vt||Wt;if(s){const o=s.type;if(e===Ng){const a=Bh(o,!1);if(a&&(a===t||a===Pn(t)||a===md(Pn(t))))return o}const i=r_(s[e]||o[e],t)||r_(s.appContext[e],t);return!i&&r?o:i}}function r_(e,t){return e&&(e[t]||e[Pn(t)]||e[md(Pn(t))])}function At(e,t,n,r){let s;const o=n,i=$e(e);if(i||bt(e)){const a=i&&ms(e);let c=!1,l=!1;a&&(c=!Qn(e),l=Es(e),e=_d(e)),s=new Array(e.length);for(let u=0,f=e.length;ut(a,c,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let c=0,l=a.length;cXo(t)?!(t.type===Rt||t.type===Fe&&!AE(t.children)):!0)?e:null}function FM(e,t){const n={};for(const r in e)n[/[A-Z]/.test(r)?`on:${r}`:Ec(r)]=e[r];return n}const Oh=e=>e?rk(e)?kd(e):Oh(e.parent):null,Ic=Zt(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=>Oh(e.parent),$root:e=>Oh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>PE(e),$forceUpdate:e=>e.f||(e.f=()=>{Ag(e.update)}),$nextTick:e=>e.n||(e.n=Pt.bind(e.proxy)),$watch:e=>aO.bind(e)}),$p=(e,t)=>e!==tt&&!e.__isScriptSetup&&rt(e,t),HM={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:c}=e;let l;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if($p(r,t))return i[t]=1,r[t];if(s!==tt&&rt(s,t))return i[t]=2,s[t];if((l=e.propsOptions[0])&&rt(l,t))return i[t]=3,o[t];if(n!==tt&&rt(n,t))return i[t]=4,n[t];Ah&&(i[t]=0)}}const u=Ic[t];let f,d;if(u)return t==="$attrs"&&un(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==tt&&rt(n,t))return i[t]=4,n[t];if(d=c.config.globalProperties,rt(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return $p(s,t)?(s[t]=n,!0):r!==tt&&rt(r,t)?(r[t]=n,!0):rt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let a;return!!n[i]||e!==tt&&rt(e,i)||$p(t,i)||(a=o[0])&&rt(a,i)||rt(r,i)||rt(Ic,i)||rt(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:rt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ihe(){return BM().slots}function BM(){const e=Ht();return e.setupContext||(e.setupContext=ok(e))}function s_(e){return $e(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function UM(e){const t=Ht();let n=e();return Fh(),Eg(n)&&(n=n.catch(r=>{throw Jo(t),r})),[n,()=>Jo(t)]}let Ah=!0;function jM(e){const t=PE(e),n=e.proxy,r=e.ctx;Ah=!1,t.beforeCreate&&o_(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:c,inject:l,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:m,deactivated:v,beforeDestroy:g,beforeUnmount:b,destroyed:y,unmounted:_,render:w,renderTracked:S,renderTriggered:E,errorCaptured:$,serverPrefetch:T,expose:x,inheritAttrs:L,components:M,directives:j,filters:q}=t;if(l&&YM(l,r,null),i)for(const V in i){const U=i[V];Ae(U)&&(r[V]=U.bind(n))}if(s){const V=s.call(n,n);ct(V)&&(e.data=qt(V))}if(Ah=!0,o)for(const V in o){const U=o[V],re=Ae(U)?U.bind(n,n):Ae(U.get)?U.get.bind(n,n):Yr,G=!Ae(U)&&Ae(U.set)?U.set.bind(n):Yr,fe=B({get:re,set:G});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>fe.value,set:ae=>fe.value=ae})}if(a)for(const V in a)RE(a[V],r,n,V);if(c){const V=Ae(c)?c.call(n):c;Reflect.ownKeys(V).forEach(U=>{Mn(U,V[U])})}u&&o_(u,e,"c");function R(V,U){$e(U)?U.forEach(re=>V(re.bind(n))):U&&V(U.bind(n))}if(R(CE,f),R(en,d),R(AM,p),R(DE,h),R(Pg,m),R(Lg,v),R(ME,$),R(LM,S),R(PM,E),R(Ls,b),R(on,_),R(RM,T),$e(x))if(x.length){const V=e.exposed||(e.exposed={});x.forEach(U=>{Object.defineProperty(V,U,{get:()=>n[U],set:re=>n[U]=re})})}else e.exposed||(e.exposed={});w&&e.render===Yr&&(e.render=w),L!=null&&(e.inheritAttrs=L),M&&(e.components=M),j&&(e.directives=j),T&&Rg(e)}function YM(e,t,n=Yr){$e(e)&&(e=Rh(e));for(const r in e){const s=e[r];let o;ct(s)?"default"in s?o=yt(s.from||r,s.default,!0):o=yt(s.from||r):o=yt(s),ze(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function o_(e,t,n){wr($e(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function RE(e,t,n,r){let s=r.includes(".")?KE(n,r):()=>n[r];if(bt(e)){const o=t[e];Ae(o)&&xe(s,o)}else if(Ae(e))xe(s,e.bind(n));else if(ct(e))if($e(e))e.forEach(o=>RE(o,t,n,r));else{const o=Ae(e.handler)?e.handler.bind(n):t[e.handler];Ae(o)&&xe(s,o,e)}}function PE(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let c;return a?c=a:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(l=>bf(c,l,i,!0)),bf(c,t,i)),ct(t)&&o.set(t,c),c}function bf(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&bf(e,o,n,!0),s&&s.forEach(i=>bf(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=WM[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const WM={data:i_,props:a_,emits:a_,methods:vc,computed:vc,beforeCreate:gn,created:gn,beforeMount:gn,mounted:gn,beforeUpdate:gn,updated:gn,beforeDestroy:gn,beforeUnmount:gn,destroyed:gn,unmounted:gn,activated:gn,deactivated:gn,errorCaptured:gn,serverPrefetch:gn,components:vc,directives:vc,watch:zM,provide:i_,inject:VM};function i_(e,t){return t?e?function(){return Zt(Ae(e)?e.call(this,this):e,Ae(t)?t.call(this,this):t)}:t:e}function VM(e,t){return vc(Rh(e),Rh(t))}function Rh(e){if($e(e)){const t={};for(let n=0;n1)return n&&Ae(t)?t.call(r&&r.proxy):t}}function El(){return!!(Wt||Vt||Vo)}const NE={},FE=()=>Object.create(NE),HE=e=>Object.getPrototypeOf(e)===NE;function GM(e,t,n,r=!1){const s={},o=FE();e.propsDefaults=Object.create(null),BE(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:ls(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function XM(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=Qe(s),[c]=e.propsOptions;let l=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{c=!0;const[d,p]=UE(f,t,!0);Zt(i,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!c)return ct(e)&&r.set(e,Yi),Yi;if($e(o))for(let u=0;ue[0]==="_"||e==="$stable",Ug=e=>$e(e)?e.map(Hn):[Hn(e)],ZM=(e,t,n)=>{if(t._n)return t;const r=_e((...s)=>Ug(t(...s)),n);return r._c=!1,r},jE=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Bg(s))continue;const o=e[s];if(Ae(o))t[s]=ZM(s,o,r);else if(o!=null){const i=Ug(o);t[s]=()=>i}}},YE=(e,t)=>{const n=Ug(t);e.slots.default=()=>n},WE=(e,t,n)=>{for(const r in t)(n||!Bg(r))&&(e[r]=t[r])},QM=(e,t,n)=>{const r=e.slots=FE();if(e.vnode.shapeFlag&32){const s=t._;s?(WE(r,t,n),n&&WS(r,"_",s,!0)):jE(t,r)}else t&&YE(e,t)},eO=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=tt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:WE(s,t,n):(o=!t.$stable,jE(t,s)),i=t}else t&&(YE(e,t),i={default:1});if(o)for(const a in s)!Bg(a)&&i[a]==null&&delete s[a]},jt=QE;function tO(e){return VE(e)}function nO(e){return VE(e,$M)}function VE(e,t){const n=gd();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:c,setText:l,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=Yr,insertStaticContent:h}=e,m=(C,O,W,ne=null,ee=null,I=null,D=void 0,N=null,X=!!O.dynamicChildren)=>{if(C===O)return;C&&!gr(C,O)&&(ne=J(C),ae(C,ee,I,!0),C=null),O.patchFlag===-2&&(X=!1,O.dynamicChildren=null);const{type:K,ref:te,shapeFlag:A}=O;switch(K){case so:v(C,O,W,ne);break;case Rt:g(C,O,W,ne);break;case xc:C==null&&b(O,W,ne,D);break;case Fe:M(C,O,W,ne,ee,I,D,N,X);break;default:A&1?w(C,O,W,ne,ee,I,D,N,X):A&6?j(C,O,W,ne,ee,I,D,N,X):(A&64||A&128)&&K.process(C,O,W,ne,ee,I,D,N,X,ue)}te!=null&&ee&&Jc(te,C&&C.ref,I,O||C,!O)},v=(C,O,W,ne)=>{if(C==null)r(O.el=a(O.children),W,ne);else{const ee=O.el=C.el;O.children!==C.children&&l(ee,O.children)}},g=(C,O,W,ne)=>{C==null?r(O.el=c(O.children||""),W,ne):O.el=C.el},b=(C,O,W,ne)=>{[C.el,C.anchor]=h(C.children,O,W,ne,C.el,C.anchor)},y=({el:C,anchor:O},W,ne)=>{let ee;for(;C&&C!==O;)ee=d(C),r(C,W,ne),C=ee;r(O,W,ne)},_=({el:C,anchor:O})=>{let W;for(;C&&C!==O;)W=d(C),s(C),C=W;s(O)},w=(C,O,W,ne,ee,I,D,N,X)=>{O.type==="svg"?D="svg":O.type==="math"&&(D="mathml"),C==null?S(O,W,ne,ee,I,D,N,X):T(C,O,ee,I,D,N,X)},S=(C,O,W,ne,ee,I,D,N)=>{let X,K;const{props:te,shapeFlag:A,transition:z,dirs:de}=C;if(X=C.el=i(C.type,I,te&&te.is,te),A&8?u(X,C.children):A&16&&$(C.children,X,null,ne,ee,Ip(C,I),D,N),de&&Fr(C,null,ne,"created"),E(X,C,C.scopeId,D,ne),te){for(const We in te)We!=="value"&&!Vi(We)&&o(X,We,null,te[We],I,ne);"value"in te&&o(X,"value",null,te.value,I),(K=te.onVnodeBeforeMount)&&$n(K,ne,C)}de&&Fr(C,null,ne,"beforeMount");const ye=zE(ee,z);ye&&z.beforeEnter(X),r(X,O,W),((K=te&&te.onVnodeMounted)||ye||de)&&jt(()=>{K&&$n(K,ne,C),ye&&z.enter(X),de&&Fr(C,null,ne,"mounted")},ee)},E=(C,O,W,ne,ee)=>{if(W&&p(C,W),ne)for(let I=0;I{for(let K=X;K{const N=O.el=C.el;let{patchFlag:X,dynamicChildren:K,dirs:te}=O;X|=C.patchFlag&16;const A=C.props||tt,z=O.props||tt;let de;if(W&&Co(W,!1),(de=z.onVnodeBeforeUpdate)&&$n(de,W,O,C),te&&Fr(O,C,W,"beforeUpdate"),W&&Co(W,!0),(A.innerHTML&&z.innerHTML==null||A.textContent&&z.textContent==null)&&u(N,""),K?x(C.dynamicChildren,K,N,W,ne,Ip(O,ee),I):D||U(C,O,N,null,W,ne,Ip(O,ee),I,!1),X>0){if(X&16)L(N,A,z,W,ee);else if(X&2&&A.class!==z.class&&o(N,"class",null,z.class,ee),X&4&&o(N,"style",A.style,z.style,ee),X&8){const ye=O.dynamicProps;for(let We=0;We{de&&$n(de,W,O,C),te&&Fr(O,C,W,"updated")},ne)},x=(C,O,W,ne,ee,I,D)=>{for(let N=0;N{if(O!==W){if(O!==tt)for(const I in O)!Vi(I)&&!(I in W)&&o(C,I,O[I],null,ee,ne);for(const I in W){if(Vi(I))continue;const D=W[I],N=O[I];D!==N&&I!=="value"&&o(C,I,N,D,ee,ne)}"value"in W&&o(C,"value",O.value,W.value,ee)}},M=(C,O,W,ne,ee,I,D,N,X)=>{const K=O.el=C?C.el:a(""),te=O.anchor=C?C.anchor:a("");let{patchFlag:A,dynamicChildren:z,slotScopeIds:de}=O;de&&(N=N?N.concat(de):de),C==null?(r(K,W,ne),r(te,W,ne),$(O.children||[],W,te,ee,I,D,N,X)):A>0&&A&64&&z&&C.dynamicChildren?(x(C.dynamicChildren,z,W,ee,I,D,N),(O.key!=null||ee&&O===ee.subTree)&&jg(C,O,!0)):U(C,O,W,te,ee,I,D,N,X)},j=(C,O,W,ne,ee,I,D,N,X)=>{O.slotScopeIds=N,C==null?O.shapeFlag&512?ee.ctx.activate(O,W,ne,D,X):q(O,W,ne,ee,I,D,X):F(C,O,X)},q=(C,O,W,ne,ee,I,D)=>{const N=C.component=SO(C,ne,ee);if(Sl(C)&&(N.ctx.renderer=ue),EO(N,!1,D),N.asyncDep){if(ee&&ee.registerDep(N,R,D),!C.el){const X=N.subTree=Q(Rt);g(null,X,O,W)}}else R(N,C,O,W,ee,I,D)},F=(C,O,W)=>{const ne=O.component=C.component;if(dO(C,O,W))if(ne.asyncDep&&!ne.asyncResolved){V(ne,O,W);return}else ne.next=O,ne.update();else O.el=C.el,ne.vnode=O},R=(C,O,W,ne,ee,I,D)=>{const N=()=>{if(C.isMounted){let{next:A,bu:z,u:de,parent:ye,vnode:We}=C;{const Kt=qE(C);if(Kt){A&&(A.el=We.el,V(C,A,D)),Kt.asyncDep.then(()=>{C.isUnmounted||N()});return}}let Ke=A,ht;Co(C,!1),A?(A.el=We.el,V(C,A,D)):A=We,z&&zi(z),(ht=A.props&&A.props.onVnodeBeforeUpdate)&&$n(ht,ye,A,We),Co(C,!0);const Ct=xp(C),tn=C.subTree;C.subTree=Ct,m(tn,Ct,f(tn.el),J(tn),C,ee,I),A.el=Ct.el,Ke===null&&Ed(C,Ct.el),de&&jt(de,ee),(ht=A.props&&A.props.onVnodeUpdated)&&jt(()=>$n(ht,ye,A,We),ee)}else{let A;const{el:z,props:de}=O,{bm:ye,m:We,parent:Ke,root:ht,type:Ct}=C,tn=ro(O);if(Co(C,!1),ye&&zi(ye),!tn&&(A=de&&de.onVnodeBeforeMount)&&$n(A,Ke,O),Co(C,!0),z&&Ie){const Kt=()=>{C.subTree=xp(C),Ie(z,C.subTree,C,ee,null)};tn&&Ct.__asyncHydrate?Ct.__asyncHydrate(z,C,Kt):Kt()}else{ht.ce&&ht.ce._injectChildStyle(Ct);const Kt=C.subTree=xp(C);m(null,Kt,W,ne,C,ee,I),O.el=Kt.el}if(We&&jt(We,ee),!tn&&(A=de&&de.onVnodeMounted)){const Kt=O;jt(()=>$n(A,Ke,Kt),ee)}(O.shapeFlag&256||Ke&&ro(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&C.a&&jt(C.a,ee),C.isMounted=!0,O=W=ne=null}};C.scope.on();const X=C.effect=new XS(N);C.scope.off();const K=C.update=X.run.bind(X),te=C.job=X.runIfDirty.bind(X);te.i=C,te.id=C.uid,X.scheduler=()=>Ag(te),Co(C,!0),K()},V=(C,O,W)=>{O.component=C;const ne=C.vnode.props;C.vnode=O,C.next=null,XM(C,O.props,ne,W),eO(C,O.children,W),ws(),Gy(C),Ss()},U=(C,O,W,ne,ee,I,D,N,X=!1)=>{const K=C&&C.children,te=C?C.shapeFlag:0,A=O.children,{patchFlag:z,shapeFlag:de}=O;if(z>0){if(z&128){G(K,A,W,ne,ee,I,D,N,X);return}else if(z&256){re(K,A,W,ne,ee,I,D,N,X);return}}de&8?(te&16&&Le(K,ee,I),A!==K&&u(W,A)):te&16?de&16?G(K,A,W,ne,ee,I,D,N,X):Le(K,ee,I,!0):(te&8&&u(W,""),de&16&&$(A,W,ne,ee,I,D,N,X))},re=(C,O,W,ne,ee,I,D,N,X)=>{C=C||Yi,O=O||Yi;const K=C.length,te=O.length,A=Math.min(K,te);let z;for(z=0;zte?Le(C,ee,I,!0,!1,A):$(O,W,ne,ee,I,D,N,X,A)},G=(C,O,W,ne,ee,I,D,N,X)=>{let K=0;const te=O.length;let A=C.length-1,z=te-1;for(;K<=A&&K<=z;){const de=C[K],ye=O[K]=X?qs(O[K]):Hn(O[K]);if(gr(de,ye))m(de,ye,W,null,ee,I,D,N,X);else break;K++}for(;K<=A&&K<=z;){const de=C[A],ye=O[z]=X?qs(O[z]):Hn(O[z]);if(gr(de,ye))m(de,ye,W,null,ee,I,D,N,X);else break;A--,z--}if(K>A){if(K<=z){const de=z+1,ye=dez)for(;K<=A;)ae(C[K],ee,I,!0),K++;else{const de=K,ye=K,We=new Map;for(K=ye;K<=z;K++){const Gt=O[K]=X?qs(O[K]):Hn(O[K]);Gt.key!=null&&We.set(Gt.key,K)}let Ke,ht=0;const Ct=z-ye+1;let tn=!1,Kt=0;const Jr=new Array(Ct);for(K=0;K=Ct){ae(Gt,ee,I,!0);continue}let se;if(Gt.key!=null)se=We.get(Gt.key);else for(Ke=ye;Ke<=z;Ke++)if(Jr[Ke-ye]===0&&gr(Gt,O[Ke])){se=Ke;break}se===void 0?ae(Gt,ee,I,!0):(Jr[se-ye]=K+1,se>=Kt?Kt=se:tn=!0,m(Gt,O[se],W,null,ee,I,D,N,X),ht++)}const xo=tn?rO(Jr):Yi;for(Ke=xo.length-1,K=Ct-1;K>=0;K--){const Gt=ye+K,se=O[Gt],P=Gt+1{const{el:I,type:D,transition:N,children:X,shapeFlag:K}=C;if(K&6){fe(C.component.subTree,O,W,ne);return}if(K&128){C.suspense.move(O,W,ne);return}if(K&64){D.move(C,O,W,ue);return}if(D===Fe){r(I,O,W);for(let A=0;AN.enter(I),ee);else{const{leave:A,delayLeave:z,afterLeave:de}=N,ye=()=>{C.ctx.isUnmounted?s(I):r(I,O,W)},We=()=>{A(I,()=>{ye(),de&&de()})};z?z(I,ye,We):We()}else r(I,O,W)},ae=(C,O,W,ne=!1,ee=!1)=>{const{type:I,props:D,ref:N,children:X,dynamicChildren:K,shapeFlag:te,patchFlag:A,dirs:z,cacheIndex:de}=C;if(A===-2&&(ee=!1),N!=null&&(ws(),Jc(N,null,W,C,!0),Ss()),de!=null&&(O.renderCache[de]=void 0),te&256){O.ctx.deactivate(C);return}const ye=te&1&&z,We=!ro(C);let Ke;if(We&&(Ke=D&&D.onVnodeBeforeUnmount)&&$n(Ke,O,C),te&6)Pe(C.component,W,ne);else{if(te&128){C.suspense.unmount(W,ne);return}ye&&Fr(C,null,O,"beforeUnmount"),te&64?C.type.remove(C,O,W,ue,ne):K&&!K.hasOnce&&(I!==Fe||A>0&&A&64)?Le(K,O,W,!1,!0):(I===Fe&&A&384||!ee&&te&16)&&Le(X,O,W),ne&&Ee(C)}(We&&(Ke=D&&D.onVnodeUnmounted)||ye)&&jt(()=>{Ke&&$n(Ke,O,C),ye&&Fr(C,null,O,"unmounted")},W)},Ee=C=>{const{type:O,el:W,anchor:ne,transition:ee}=C;if(O===Fe){ve(W,ne);return}if(O===xc){_(C);return}const I=()=>{s(W),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(C.shapeFlag&1&&ee&&!ee.persisted){const{leave:D,delayLeave:N}=ee,X=()=>D(W,I);N?N(C.el,I,X):X()}else I()},ve=(C,O)=>{let W;for(;C!==O;)W=d(C),s(C),C=W;s(O)},Pe=(C,O,W)=>{const{bum:ne,scope:ee,job:I,subTree:D,um:N,m:X,a:K,parent:te,slots:{__:A}}=C;wf(X),wf(K),ne&&zi(ne),te&&$e(A)&&A.forEach(z=>{te.renderCache[z]=void 0}),ee.stop(),I&&(I.flags|=8,ae(D,C,O,W)),N&&jt(N,O),jt(()=>{C.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},Le=(C,O,W,ne=!1,ee=!1,I=0)=>{for(let D=I;D{if(C.shapeFlag&6)return J(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const O=d(C.anchor||C.el),W=O&&O[_E];return W?d(W):O};let ce=!1;const ie=(C,O,W)=>{C==null?O._vnode&&ae(O._vnode,null,null,!0):m(O._vnode||null,C,O,null,null,null,W),O._vnode=C,ce||(ce=!0,Gy(),yf(),ce=!1)},ue={p:m,um:ae,m:fe,r:Ee,mt:q,mc:$,pc:U,pbc:x,n:J,o:e};let be,Ie;return t&&([be,Ie]=t(ue)),{render:ie,hydrate:be,createApp:KM(ie,be)}}function Ip({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 Co({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function zE(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jg(e,t,n=!1){const r=e.children,s=t.children;if($e(r)&&$e(s))for(let o=0;o>1,e[n[a]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function qE(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qE(t)}function wf(e){if(e)for(let t=0;tyt(sO);function Sr(e,t){return wd(e,null,t)}function iO(e,t){return wd(e,null,{flush:"sync"})}function xe(e,t,n){return wd(e,t,n)}function wd(e,t,n=tt){const{immediate:r,deep:s,flush:o,once:i}=n,a=Zt({},n),c=t&&r||!t&&o!=="post";let l;if(ia){if(o==="sync"){const p=oO();l=p.__watcherHandles||(p.__watcherHandles=[])}else if(!c){const p=()=>{};return p.stop=Yr,p.resume=Yr,p.pause=Yr,p}}const u=Wt;a.call=(p,h,m)=>wr(p,u,h,m);let f=!1;o==="post"?a.scheduler=p=>{jt(p,u&&u.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(p,h)=>{h?p():Ag(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=gM(e,t,a);return ia&&(l?l.push(d):c&&d()),d}function aO(e,t,n){const r=this.proxy,s=bt(e)?e.includes(".")?KE(r,e):()=>r[e]:e.bind(r,r);let o;Ae(t)?o=t:(o=t.handler,n=t);const i=Jo(this),a=wd(s,o.bind(r),n);return i(),a}function KE(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{let u,f=tt,d;return iO(()=>{const p=e[s];In(u,p)&&(u=p,l())}),{get(){return c(),n.get?n.get(u):u},set(p){const h=n.set?n.set(p):p;if(!In(h,u)&&!(f!==tt&&In(p,f)))return;const m=r.vnode.props;m&&(t in m||s in m||o in m)&&(`onUpdate:${t}`in m||`onUpdate:${s}`in m||`onUpdate:${o}`in m)||(u=p,l()),r.emit(`update:${t}`,h),In(p,h)&&In(p,f)&&!In(h,d)&&l(),f=p,d=h}}});return a[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?i||tt:a,done:!1}:{done:!0}}}},a}const GE=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Pn(t)}Modifiers`]||e[`${As(t)}Modifiers`];function cO(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||tt;let s=n;const o=t.startsWith("update:"),i=o&&GE(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>bt(u)?u.trim():u)),i.number&&(s=n.map(pf)));let a,c=r[a=Ec(t)]||r[a=Ec(Pn(t))];!c&&o&&(c=r[a=Ec(As(t))]),c&&wr(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,wr(l,e,6,s)}}function XE(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!Ae(e)){const c=l=>{const u=XE(l,t,!0);u&&(a=!0,Zt(i,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!a?(ct(e)&&r.set(e,null),null):($e(o)?o.forEach(c=>i[c]=null):Zt(i,o),ct(e)&&r.set(e,i),i)}function Sd(e,t){return!e||!_l(t)?!1:(t=t.slice(2).replace(/Once$/,""),rt(e,t[0].toLowerCase()+t.slice(1))||rt(e,As(t))||rt(e,t))}function xp(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:c,render:l,renderCache:u,props:f,data:d,setupState:p,ctx:h,inheritAttrs:m}=e,v=_f(e);let g,b;try{if(n.shapeFlag&4){const _=s||r,w=_;g=Hn(l.call(w,_,u,f,p,d,h)),b=a}else{const _=t;g=Hn(_.length>1?_(f,{attrs:a,slots:i,emit:c}):_(f,null)),b=t.props?a:uO(a)}}catch(_){Cc.length=0,Pa(_,e,1),g=Q(Rt)}let y=g;if(b&&m!==!1){const _=Object.keys(b),{shapeFlag:w}=y;_.length&&w&7&&(o&&_.some(wg)&&(b=fO(b,o)),y=Er(y,b,!1,!0))}return n.dirs&&(y=Er(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&sa(y,n.transition),g=y,_f(v),g}function lO(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||_l(n))&&((t||(t={}))[n]=e[n]);return t},fO=(e,t)=>{const n={};for(const r in e)(!wg(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function dO(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:c}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?l_(r,i,l):!!i;if(c&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;let Lh=0;const pO={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,c,l){if(e==null)hO(t,n,r,s,o,i,a,c,l);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}mO(e,t,n,r,s,i,a,c,l)}},hydrate:gO,normalize:vO},JE=pO;function Zc(e,t){const n=e.props&&e.props[t];Ae(n)&&n()}function hO(e,t,n,r,s,o,i,a,c){const{p:l,o:{createElement:u}}=c,f=u("div"),d=e.suspense=ZE(e,s,r,t,f,n,o,i,a,c);l(null,d.pendingBranch=e.ssContent,f,null,r,d,o,i),d.deps>0?(Zc(e,"onPending"),Zc(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,o,i),Gi(d,e.ssFallback)):d.resolve(!1,!0)}function mO(e,t,n,r,s,o,i,a,{p:c,um:l,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:v,isHydrating:g}=f;if(m)f.pendingBranch=d,gr(d,m)?(c(m,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():v&&(g||(c(h,p,n,r,s,null,o,i,a),Gi(f,p)))):(f.pendingId=Lh++,g?(f.isHydrating=!1,f.activeBranch=m):l(m,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),v?(c(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():(c(h,p,n,r,s,null,o,i,a),Gi(f,p))):h&&gr(d,h)?(c(h,d,n,r,s,f,o,i,a),f.resolve(!0)):(c(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0&&f.resolve()));else if(h&&gr(d,h))c(h,d,n,r,s,f,o,i,a),Gi(f,d);else if(Zc(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Lh++,c(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:y}=f;b>0?setTimeout(()=>{f.pendingId===y&&f.fallback(p)},b):b===0&&f.fallback(p)}}function ZE(e,t,n,r,s,o,i,a,c,l,u=!1){const{p:f,m:d,um:p,n:h,o:{parentNode:m,remove:v}}=l;let g;const b=yO(e);b&&t&&t.pendingBranch&&(g=t.pendingId,t.deps++);const y=e.props?VS(e.props.timeout):void 0,_=o,w={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Lh++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(S=!1,E=!1){const{vnode:$,activeBranch:T,pendingBranch:x,pendingId:L,effects:M,parentComponent:j,container:q}=w;let F=!1;w.isHydrating?w.isHydrating=!1:S||(F=T&&x.transition&&x.transition.mode==="out-in",F&&(T.transition.afterLeave=()=>{L===w.pendingId&&(d(x,q,o===_?h(T):o,0),Ch(M))}),T&&(m(T.el)===q&&(o=h(T)),p(T,j,w,!0)),F||d(x,q,o,0)),Gi(w,x),w.pendingBranch=null,w.isInFallback=!1;let R=w.parent,V=!1;for(;R;){if(R.pendingBranch){R.effects.push(...M),V=!0;break}R=R.parent}!V&&!F&&Ch(M),w.effects=[],b&&t&&t.pendingBranch&&g===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),Zc($,"onResolve")},fallback(S){if(!w.pendingBranch)return;const{vnode:E,activeBranch:$,parentComponent:T,container:x,namespace:L}=w;Zc(E,"onFallback");const M=h($),j=()=>{w.isInFallback&&(f(null,S,x,M,T,null,L,a,c),Gi(w,S))},q=S.transition&&S.transition.mode==="out-in";q&&($.transition.afterLeave=j),w.isInFallback=!0,p($,T,null,!0),q||j()},move(S,E,$){w.activeBranch&&d(w.activeBranch,S,E,$),w.container=S},next(){return w.activeBranch&&h(w.activeBranch)},registerDep(S,E,$){const T=!!w.pendingBranch;T&&w.deps++;const x=S.vnode.el;S.asyncDep.catch(L=>{Pa(L,S,0)}).then(L=>{if(S.isUnmounted||w.isUnmounted||w.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:M}=S;Hh(S,L),x&&(M.el=x);const j=!x&&S.subTree.el;E(S,M,m(x||S.subTree.el),x?null:h(S.subTree),w,i,$),j&&v(j),Ed(S,M.el),T&&--w.deps===0&&w.resolve()})},unmount(S,E){w.isUnmounted=!0,w.activeBranch&&p(w.activeBranch,n,S,E),w.pendingBranch&&p(w.pendingBranch,n,S,E)}};return w}function gO(e,t,n,r,s,o,i,a,c){const l=t.suspense=ZE(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,o,i);return l.deps===0&&l.resolve(!1,!0),u}function vO(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=u_(r?n.default:n),e.ssFallback=r?u_(n.fallback):Q(Rt)}function u_(e){let t;if(Ae(e)){const n=oa&&e._c;n&&(e._d=!1,H()),e=e(),n&&(e._d=!0,t=xn,ek())}return $e(e)&&(e=lO(e)),e=Hn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function QE(e,t){t&&t.pendingBranch?$e(e)?t.effects.push(...e):t.effects.push(e):Ch(e)}function Gi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,Ed(r,s))}function yO(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Fe=Symbol.for("v-fgt"),so=Symbol.for("v-txt"),Rt=Symbol.for("v-cmt"),xc=Symbol.for("v-stc"),Cc=[];let xn=null;function H(e=!1){Cc.push(xn=e?null:[])}function ek(){Cc.pop(),xn=Cc[Cc.length-1]||null}let oa=1;function f_(e,t=!1){oa+=e,e<0&&xn&&t&&(xn.hasOnce=!0)}function tk(e){return e.dynamicChildren=oa>0?xn||Yi:null,ek(),oa>0&&xn&&xn.push(e),e}function Z(e,t,n,r,s,o){return tk(Y(e,t,n,r,s,o,!0))}function Se(e,t,n,r,s){return tk(Q(e,t,n,r,s,!0))}function Xo(e){return e?e.__v_isVNode===!0:!1}function gr(e,t){return e.type===t.type&&e.key===t.key}const nk=({key:e})=>e??null,Du=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?bt(e)||ze(e)||Ae(e)?{i:Vt,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,r=0,s=null,o=e===Fe?0:1,i=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nk(t),ref:t&&Du(t),scopeId:yE,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:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Vt};return a?(Yg(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=bt(n)?8:16),oa>0&&!i&&xn&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&xn.push(c),c}const Q=_O;function _O(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===OE)&&(e=Rt),Xo(e)){const a=Er(e,t,!0);return n&&Yg(a,n),oa>0&&!o&&xn&&(a.shapeFlag&6?xn[xn.indexOf(e)]=a:xn.push(a)),a.patchFlag=-2,a}if($O(e)&&(e=e.__vccOpts),t){t=Qc(t);let{class:a,style:c}=t;a&&!bt(a)&&(t.class=Re(a)),ct(c)&&(Mg(c)&&!$e(c)&&(c=Zt({},c)),t.style=yr(c))}const i=bt(e)?1:Sf(e)?128:bE(e)?64:ct(e)?4:Ae(e)?2:0;return Y(e,t,n,r,s,i,o,!0)}function Qc(e){return e?Mg(e)||HE(e)?Zt({},e):e:null}function Er(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:c}=e,l=t?Qt(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&nk(l),ref:t&&t.ref?n&&o?$e(o)?o.concat(Du(t)):[o,Du(t)]:Du(t):o,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!==Fe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Er(e.ssContent),ssFallback:e.ssFallback&&Er(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&sa(u,c.clone(u)),u}function ci(e=" ",t=0){return Q(so,null,e,t)}function che(e,t){const n=Q(xc,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(H(),Se(Rt,null,e)):Q(Rt,null,e)}function Hn(e){return e==null||typeof e=="boolean"?Q(Rt):$e(e)?Q(Fe,null,e.slice()):Xo(e)?qs(e):Q(so,null,String(e))}function qs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Er(e)}function Yg(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if($e(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Yg(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!HE(t)?t._ctx=Vt:s===3&&Vt&&(Vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ae(t)?(t={default:t,_ctx:Vt},n=32):(t=String(t),r&64?(n=16,t=[ci(t)]):n=8);e.children=t,e.shapeFlag|=n}function Qt(...e){const t={};for(let n=0;nWt||Vt;let Ef,Nh;{const e=gd(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Ef=t("__VUE_INSTANCE_SETTERS__",n=>Wt=n),Nh=t("__VUE_SSR_SETTERS__",n=>ia=n)}const Jo=e=>{const t=Wt;return Ef(e),e.scope.on(),()=>{e.scope.off(),Ef(t)}},Fh=()=>{Wt&&Wt.scope.off(),Ef(null)};function rk(e){return e.vnode.shapeFlag&4}let ia=!1;function EO(e,t=!1,n=!1){t&&Nh(t);const{props:r,children:s}=e.vnode,o=rk(e);GM(e,r,o,t),QM(e,s,n||t);const i=o?kO(e,t):void 0;return t&&Nh(!1),i}function kO(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,HM);const{setup:r}=n;if(r){ws();const s=e.setupContext=r.length>1?ok(e):null,o=Jo(e),i=wl(r,e,0,[e.props,s]),a=Eg(i);if(Ss(),o(),(a||e.sp)&&!ro(e)&&Rg(e),a){if(i.then(Fh,Fh),t)return i.then(c=>{Hh(e,c)}).catch(c=>{Pa(c,e,0)});e.asyncDep=i}else Hh(e,i)}else sk(e)}function Hh(e,t,n){Ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ct(t)&&(e.setupState=dE(t)),sk(e)}function sk(e,t,n){const r=e.type;e.render||(e.render=r.render||Yr);{const s=Jo(e);ws();try{jM(e)}finally{Ss(),s()}}}const TO={get(e,t){return un(e,"get",""),e[t]}};function ok(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,TO),slots:e.slots,emit:e.emit,expose:t}}function kd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(dE(Og(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ic)return Ic[n](e)},has(t,n){return n in t||n in Ic}})):e.proxy}function Bh(e,t=!0){return Ae(e)?e.displayName||e.name:e.name||t&&e.__name}function $O(e){return Ae(e)&&"__vccOpts"in e}const B=(e,t)=>hM(e,t,ia);function Lt(e,t,n){const r=arguments.length;return r===2?ct(t)&&!$e(t)?Xo(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Xo(n)&&(n=[n]),Q(e,t,n))}const IO="3.5.16";/** * @vue/runtime-dom v3.5.16 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Uh;const d_=typeof window<"u"&&window.trustedTypes;if(d_)try{Uh=d_.createPolicy("vue",{createHTML:e=>e})}catch{}const ik=Uh?e=>Uh.createHTML(e):e=>e,xO="http://www.w3.org/2000/svg",CO="http://www.w3.org/1998/Math/MathML",rs=typeof document<"u"?document:null,p_=rs&&rs.createElement("template"),DO={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"?rs.createElementNS(xO,e):t==="mathml"?rs.createElementNS(CO,e):n?rs.createElement(e,{is:n}):rs.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>rs.createTextNode(e),createComment:e=>rs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{p_.innerHTML=ik(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=p_.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[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Bs="transition",sc="animation",el=Symbol("_vtc"),ak={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},MO=Zt({},EE,ak),OO=e=>(e.displayName="Transition",e.props=MO,e),Wg=OO((e,{slots:t})=>Lt(EM,AO(e),t)),Do=(e,t=[])=>{$e(e)?e.forEach(n=>n(...t)):e&&e(...t)},h_=e=>e?$e(e)?e.some(t=>t.length>1):e.length>1:!1;function AO(e){const t={};for(const M in e)M in ak||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:l=i,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=RO(s),m=h&&h[0],v=h&&h[1],{onBeforeEnter:g,onEnter:b,onEnterCancelled:y,onLeave:_,onLeaveCancelled:w,onBeforeAppear:S=g,onAppear:E=b,onAppearCancelled:$=y}=t,T=(M,j,q,F)=>{M._enterCancelled=F,Mo(M,j?u:a),Mo(M,j?l:i),q&&q()},x=(M,j)=>{M._isLeaving=!1,Mo(M,f),Mo(M,p),Mo(M,d),j&&j()},L=M=>(j,q)=>{const F=M?E:b,R=()=>T(j,M,q);Do(F,[j,R]),m_(()=>{Mo(j,M?c:o),Qr(j,M?u:a),h_(F)||g_(j,r,m,R)})};return Zt(t,{onBeforeEnter(M){Do(g,[M]),Qr(M,o),Qr(M,i)},onBeforeAppear(M){Do(S,[M]),Qr(M,c),Qr(M,l)},onEnter:L(!1),onAppear:L(!0),onLeave(M,j){M._isLeaving=!0;const q=()=>x(M,j);Qr(M,f),M._enterCancelled?(Qr(M,d),__()):(__(),Qr(M,d)),m_(()=>{M._isLeaving&&(Mo(M,f),Qr(M,p),h_(_)||g_(M,r,v,q))}),Do(_,[M,q])},onEnterCancelled(M){T(M,!1,void 0,!0),Do(y,[M])},onAppearCancelled(M){T(M,!0,void 0,!0),Do($,[M])},onLeaveCancelled(M){x(M),Do(w,[M])}})}function RO(e){if(e==null)return null;if(ct(e))return[Cp(e.enter),Cp(e.leave)];{const t=Cp(e);return[t,t]}}function Cp(e){return VS(e)}function Qr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[el]||(e[el]=new Set)).add(t)}function Mo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[el];n&&(n.delete(t),n.size||(e[el]=void 0))}function m_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let PO=0;function g_(e,t,n,r){const s=e._endId=++PO,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:a,propCount:c}=LO(e,t);if(!i)return r();const l=i+"end";let u=0;const f=()=>{e.removeEventListener(l,d),o()},d=p=>{p.target===e&&++u>=c&&f()};setTimeout(()=>{u(n[h]||"").split(", "),s=r(`${Bs}Delay`),o=r(`${Bs}Duration`),i=v_(s,o),a=r(`${sc}Delay`),c=r(`${sc}Duration`),l=v_(a,c);let u=null,f=0,d=0;t===Bs?i>0&&(u=Bs,f=i,d=o.length):t===sc?l>0&&(u=sc,f=l,d=c.length):(f=Math.max(i,l),u=f>0?i>l?Bs:sc:null,d=u?u===Bs?o.length:c.length:0);const p=u===Bs&&/\b(transform|all)(,|$)/.test(r(`${Bs}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function v_(e,t){for(;e.lengthy_(n)+y_(e[r])))}function y_(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function __(){return document.body.offsetHeight}function NO(e,t,n){const r=e[el];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const b_=Symbol("_vod"),FO=Symbol("_vsh"),HO=Symbol(""),BO=/(^|;)\s*display\s*:/;function UO(e,t,n){const r=e.style,s=bt(n);let o=!1;if(n&&!s){if(t)if(bt(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Mu(r,a,"")}else for(const i in t)n[i]==null&&Mu(r,i,"");for(const i in n)i==="display"&&(o=!0),Mu(r,i,n[i])}else if(s){if(t!==n){const i=r[HO];i&&(n+=";"+i),r.cssText=n,o=BO.test(n)}}else t&&e.removeAttribute("style");b_ in e&&(e[b_]=o?r.display:"",e[FO]&&(r.display="none"))}const w_=/\s*!important$/;function Mu(e,t,n){if($e(n))n.forEach(r=>Mu(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=jO(e,t);w_.test(n)?e.setProperty(As(r),n.replace(w_,""),"important"):e[r]=n}}const S_=["Webkit","Moz","ms"],Dp={};function jO(e,t){const n=Dp[t];if(n)return n;let r=Pn(t);if(r!=="filter"&&r in e)return Dp[t]=r;r=md(r);for(let s=0;sMp||(zO.then(()=>Mp=0),Mp=Date.now());function KO(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;wr(GO(r,n.value),t,5,[r])};return n.value=e,n.attached=qO(),n}function GO(e,t){if($e(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 x_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,XO=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?NO(e,r,i):t==="style"?UO(e,n,r):_l(t)?wg(t)||WO(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):JO(e,t,r,i))?(T_(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&k_(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!bt(r))?T_(e,Pn(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),k_(e,t,r,i))};function JO(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&x_(t)&&Ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 x_(t)&&bt(n)?!1:t in e}const kf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return $e(t)?n=>zi(t,n):t};function ZO(e){e.target.composing=!0}function C_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Xi=Symbol("_assign"),QO={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Xi]=kf(s);const o=r||s.props&&s.props.type==="number";Ho(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=pf(a)),e[Xi](a)}),n&&Ho(e,"change",()=>{e.value=e.value.trim()}),t||(Ho(e,"compositionstart",ZO),Ho(e,"compositionend",C_),Ho(e,"change",C_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},i){if(e[Xi]=kf(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?pf(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))}},lhe={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=pd(t);Ho(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?pf(Tf(i)):Tf(i));e[Xi](e.multiple?s?new Set(o):o:o[0]),e._assigning=!0,Pt(()=>{e._assigning=!1})}),e[Xi]=kf(r)},mounted(e,{value:t}){D_(e,t)},beforeUpdate(e,t,n){e[Xi]=kf(n)},updated(e,{value:t}){e._assigning||D_(e,t)}};function D_(e,t){const n=e.multiple,r=$e(t);if(!(n&&!r&&!pd(t))){for(let s=0,o=e.options.length;sString(l)===String(a)):i.selected=jD(t,a)>-1}else i.selected=t.has(a);else if(vd(Tf(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Tf(e){return"_value"in e?e._value:e.value}const eA=["ctrl","shift","alt","meta"],tA={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)=>eA.some(n=>e[`${n}Key`]&&!t.includes(n))},Lo=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=As(s.key);if(t.some(i=>i===o||nA[i]===o))return e(s)})},ck=Zt({patchProp:XO},DO);let Dc,M_=!1;function rA(){return Dc||(Dc=tO(ck))}function sA(){return Dc=M_?Dc:nO(ck),M_=!0,Dc}const oA=(...e)=>{const t=rA().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=uk(r);if(!s)return;const o=t._component;!Ae(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,lk(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},iA=(...e)=>{const t=sA().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=uk(r);if(s)return n(s,!0,lk(s))},t};function lk(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function uk(e){return bt(e)?document.querySelector(e):e}const aA=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,cA=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,lA=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function uA(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){fA(e);return}return t}function fA(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function aa(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!lA.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(aA.test(e)||cA.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,uA)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const dA=/#/g,pA=/&/g,hA=/\//g,mA=/=/g,Vg=/\+/g,gA=/%5e/gi,vA=/%60/gi,yA=/%7c/gi,_A=/%20/gi;function bA(e){return encodeURI(""+e).replace(yA,"|")}function jh(e){return bA(typeof e=="string"?e:JSON.stringify(e)).replace(Vg,"%2B").replace(_A,"+").replace(dA,"%23").replace(pA,"%26").replace(vA,"`").replace(gA,"^").replace(hA,"%2F")}function Op(e){return jh(e).replace(mA,"%3D")}function ca(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function wA(e){return ca(e.replace(Vg," "))}function SA(e){return ca(e.replace(Vg," "))}function Td(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=wA(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=SA(r[2]||"");t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}function EA(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Op(e)}=${jh(n)}`).join("&"):`${Op(e)}=${jh(t)}`:Op(e)}function kA(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>EA(t,e[t])).filter(Boolean).join("&")}const TA=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,$A=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,IA=/^([/\\]\s*){2,}[^/\\]/,xA=/^[\s\0]*(blob|data|javascript|vbscript):$/i,CA=/\/$|\/\?|\/#/,DA=/^\.?\//;function ar(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?TA.test(e):$A.test(e)||(t.acceptRelative?IA.test(e):!1)}function MA(e){return!!e&&xA.test(e)}function Yh(e="",t){return t?CA.test(e):e.endsWith("/")}function Zo(e="",t){if(!t)return(Yh(e)?e.slice(0,-1):e)||"/";if(!Yh(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s!==-1&&(n=e.slice(0,s),r=e.slice(s));const[o,...i]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function tl(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Yh(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s!==-1&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[o,...i]=n.split("?");return o+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function OA(e=""){return e.startsWith("/")}function O_(e=""){return OA(e)?e:"/"+e}function AA(e,t){if(fk(t)||ar(e))return e;const n=Zo(t);return e.startsWith(n)?e:go(n,e)}function A_(e,t){if(fk(t))return e;const n=Zo(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function $d(e,t){const n=hk(e),r={...Td(n.search),...t};return n.search=kA(r),LA(n)}function fk(e){return!e||e==="/"}function RA(e){return e&&e!=="/"}function go(e,...t){let n=e||"";for(const r of t.filter(s=>RA(s)))if(n){const s=r.replace(DA,"");n=tl(n)+s}else n=r;return n}function dk(...e){var i,a,c,l;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const u of n)if(!(!u||u==="/")){for(const[f,d]of u.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&ar(r[0]))continue;r.pop(),s--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),s++}}let o=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!o.startsWith("/")?o="/"+o:(c=n[0])!=null&&c.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,(l=n[n.length-1])!=null&&l.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function PA(e,t){return ca(Zo(e))===ca(Zo(t))}function R_(e,t,n={}){return n.trailingSlash||(e=tl(e),t=tl(t)),n.leadingSlash||(e=O_(e),t=O_(t)),n.encoding||(e=ca(e),t=ca(t)),e===t}const pk=Symbol.for("ufo:protocolRelative");function hk(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!ar(e,{acceptRelative:!0}))return Wh(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:l,hash:u}=Wh(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:c,search:l,hash:u,[pk]:!r}}function Wh(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function LA(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[pk]?(e.protocol||"")+"//":"")+s+o+t+n+r}class NA extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function FA(e){var c,l,u,f,d;const t=((c=e.error)==null?void 0:c.message)||((l=e.error)==null?void 0:l.toString())||"",n=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${s}: ${o}${t?` ${t}`:""}`,a=new NA(i,e.error?{cause:e.error}:void 0);for(const p of["request","options","response"])Object.defineProperty(a,p,{get(){return e[p]}});for(const[p,h]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,p,{get(){return e.response&&e.response[h]}});return a}const HA=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function P_(e="GET"){return HA.has(e.toUpperCase())}function BA(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const UA=new Set(["image/svg","application/xml","application/xhtml","application/html"]),jA=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function YA(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return jA.test(t)?"json":UA.has(t)||t.startsWith("text/")?"text":"blob"}function WA(e,t,n,r){const s=VA((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,r);let o;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(o={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:o,params:o,headers:s}}function VA(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,o);return r}async function Gl(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const zA=new Set([408,409,425,429,500,502,503,504]),qA=new Set([101,204,205,304]);function mk(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let u;typeof a.options.retry=="number"?u=a.options.retry:u=P_(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):zA.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),o(a.request,{...a.options,retry:u-1})}}const l=FA(a);throw Error.captureStackTrace&&Error.captureStackTrace(l,o),l}const o=async function(c,l={}){const u={request:c,options:WA(c,l,e.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await Gl(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=AA(u.request,u.options.baseURL)),u.options.query&&(u.request=$d(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&P_(u.options.method)&&(BA(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let f;if(!u.options.signal&&u.options.timeout){const p=new r;f=setTimeout(()=>{const h=new Error("[TimeoutError]: The operation was aborted due to timeout");h.name="TimeoutError",h.code=23,p.abort(h)},u.options.timeout),u.options.signal=p.signal}try{u.response=await t(u.request,u.options)}catch(p){return u.error=p,u.options.onRequestError&&await Gl(u,u.options.onRequestError),await s(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!qA.has(u.response.status)&&u.options.method!=="HEAD"){const p=(u.options.parseResponse?"json":u.options.responseType)||YA(u.response.headers.get("content-type")||"");switch(p){case"json":{const h=await u.response.text(),m=u.options.parseResponse||aa;u.response._data=m(h);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[p]()}}return u.options.onResponse&&await Gl(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Gl(u,u.options.onResponseError),await s(u)):u.response},i=async function(c,l){return(await o(c,l))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},c={})=>mk({...e,...c,defaults:{...e.defaults,...c.defaults,...a}}),i}const $f=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),KA=$f.fetch?(...e)=>$f.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),GA=$f.Headers,XA=$f.AbortController,JA=mk({fetch:KA,Headers:GA,AbortController:XA}),ZA=JA,QA=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},If=QA().app,eR=()=>If.baseURL,tR=()=>If.buildAssetsDir,zg=(...e)=>dk(gk(),tR(),...e),gk=(...e)=>{const t=If.cdnURL||If.baseURL;return e.length?dk(t,...e):t};globalThis.__buildAssetsURL=zg,globalThis.__publicAssetsURL=gk;globalThis.$fetch||(globalThis.$fetch=ZA.create({baseURL:eR()}));"global"in globalThis||(globalThis.global=globalThis);function Vh(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Vh(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const nR={run:e=>e()},rR=()=>nR,vk=typeof console.createTask<"u"?console.createTask:rR;function sR(e,t){const n=t.shift(),r=vk(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function oR(e,t){const n=t.shift(),r=vk(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function Ap(e,t){for(const n of[...e])n(t)}class iR{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!r.allowDeprecated){let i=o.message;i||(i=`${s} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...o)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...o));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Vh(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=Vh(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(sR,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(oR,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Ap(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&Ap(this._after,s)}):(this._after&&s&&Ap(this._after,s),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function yk(){return new iR}function aR(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let s;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?s=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(s){const i=s.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=o();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>o(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return s?s.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const c=()=>{t=i},l=()=>t===i?c:void 0;zh.add(l);try{const u=s?s.run(i,a):a();return n||(t=void 0),await u}finally{zh.delete(l)}}}}function cR(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=aR({...e,...r})),t[n]}}}const xf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},L_="__unctx__",lR=xf[L_]||(xf[L_]=cR()),uR=(e,t={})=>lR.get(e,t),N_="__unctx_async_handlers__",zh=xf[N_]||(xf[N_]=new Set);function Gn(e){const t=[];for(const s of zh){const o=s();o&&t.push(o)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const F_={name:"page",mode:"out-in"},fR=!0,dR={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Hr={value:null,errorValue:null,deep:!0},pR=null,hR={},mR="#__nuxt",_k="nuxt-app",H_=36e5,gR="vite:preloadError";function bk(e=_k){return uR(e,{asyncContext:!1})}const vR="__nuxt_plugin";function yR(e){var s;let t=0;const n={_id:e.id||_k||"nuxt-app",_scope:ai(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.17.4"},get vue(){return n.vueApp.version}},payload:ls({...((s=e.ssrContext)==null?void 0:s.payload)||{},data:ls({}),state:qt({}),once:new Set,_errors:ls({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!Rs()?n._scope.run(()=>B_(n,o)):B_(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:ls({}),_payloadRevivers:{},...e};{const o=window.__NUXT__;if(o)for(const i in o)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],o[i]);break;default:n.payload[i]=o[i]}}n.hooks=yk(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const a="$"+o;Xl(n,a,i),Xl(n.vueApp.config.globalProperties,a,i)},Xl(n.vueApp,"$nuxt",n),Xl(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(gR,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Ce);const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function _R(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function bR(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function wR(e,t){const n=new Set,r=[],s=[],o=[];let i=0;async function a(c){var u;const l=((u=c.dependsOn)==null?void 0:u.filter(f=>t.some(d=>d._name===f)&&!n.has(f)))??[];if(l.length>0)r.push([new Set(l),c]);else{const f=bR(e,c).then(async()=>{c._name&&(n.add(c._name),await Promise.all(r.map(async([d,p])=>{d.has(c._name)&&(d.delete(c._name),d.size===0&&(i++,await a(p)))})))});c.parallel?s.push(f.catch(d=>o.push(d))):await f}}for(const c of t)_R(e,c);for(const c of t)await a(c);if(await Promise.all(s),i)for(let c=0;c{}),e,{[vR]:!0,_name:t})}const SR=xt;function B_(e,t,n){const r=()=>t();return bk(e._id).set(e),e.vueApp.runWithContext(r)}function wk(e){var n;let t;return El()&&(t=(n=Ht())==null?void 0:n.appContext.app.$nuxt),t||(t=bk(e).tryUse()),t||null}function Ce(e){const t=wk(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function dn(e){return Ce().$config}function Xl(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function ER(e,t){return{ctx:{table:e},matchAll:n=>Ek(n,e)}}function Sk(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,Sk(s)])):new Map(Object.entries(e[n]));return t}function kR(e){return ER(Sk(e))}function Ek(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,i]of U_(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(i);for(const[o,i]of U_(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(...Ek(a,i))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function U_(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Rp(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function qh(e,t,n=".",r){if(!Rp(t))return qh(e,{},n,r);const s=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(r&&r(s,o,i,n)||(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:Rp(i)&&Rp(s[o])?s[o]=qh(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function TR(e){return(...t)=>t.reduce((n,r)=>qh(n,r,"",e),{})}const kk=TR();function $R(e,t){try{return t in e}catch{return!1}}class Kh extends Error{constructor(n,r={}){super(n,r);Be(this,"statusCode",500);Be(this,"fatal",!1);Be(this,"unhandled",!1);Be(this,"statusMessage");Be(this,"data");Be(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:Gh(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=Tk(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}Be(Kh,"__h3_error__",!0);function IR(e){if(typeof e=="string")return new Kh(e);if(xR(e))return e;const t=new Kh(e.message??e.statusMessage??"",{cause:e.cause||e});if($R(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Gh(e.statusCode,t.statusCode):e.status&&(t.statusCode=Gh(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Tk(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function xR(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const CR=/[^\u0009\u0020-\u007E]/g;function Tk(e=""){return e.replace(CR,"")}function Gh(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const DR=Symbol("layout-meta"),Id=Symbol("route"),lt=()=>{var e;return(e=Ce())==null?void 0:e.$router},Et=()=>El()?yt(Id,Ce()._route):Ce()._route;function uhe(e){return e}const MR=(e,t,n={})=>{const r=Ce(),s=n.global||!1,o=t;if(!o){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}s?r._middleware.global.push(o):r._middleware.named[e]=o},OR=()=>{try{if(Ce()._processingMiddleware)return!0}catch{return!1}return!1},Mt=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?Xh(e):lt().resolve(e).href;if(t!=null&&t.open){const{target:c="_blank",windowFeatures:l={}}=t.open,u=Object.entries(l).filter(([f,d])=>d!==void 0).map(([f,d])=>`${f.toLowerCase()}=${d}`).join(", ");return open(n,c,u),Promise.resolve()}const r=ar(n,{acceptRelative:!0}),s=(t==null?void 0:t.external)||r;if(s){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:c}=new URL(n,window.location.href);if(c&&MA(c))throw new Error(`Cannot navigate to a URL with '${c}' protocol.`)}const o=OR();if(!s&&o){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:c,search:l,hash:u}=hk(e);return{path:c,...l&&{query:Td(l)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const i=lt(),a=Ce();return s?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function Xh(e){return $d(e.path||"",e.query||{})+(e.hash||"")}const $k="__nuxt_error",xd=()=>Wo(Ce().payload,"error"),No=e=>{const t=oo(e);try{const n=Ce(),r=xd();n.hooks.callHook("app:error",t),r.value||(r.value=t)}catch{throw t}return t},Ik=async(e={})=>{const t=Ce(),n=xd();t.callHook("app:error:cleared",e),e.redirect&&await lt().replace(e.redirect),n.value=pR},xk=e=>!!e&&typeof e=="object"&&$k in e,oo=e=>{const t=IR(e);return Object.defineProperty(t,$k,{value:!0,configurable:!1,writable:!1}),t},AR={trailing:!0};function RR(e,t=25,n={}){if(n={...AR,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,s,o=[],i,a;const c=(l,u)=>(i=PR(e,l,u),i.finally(()=>{if(i=null,n.trailing&&a&&!s){const f=c(l,a);return a=null,f}}),i);return function(...l){return i?(n.trailing&&(a=l),i):new Promise(u=>{const f=!s&&n.leading;clearTimeout(s),s=setTimeout(()=>{s=null;const d=n.leading?r:c(this,l);for(const p of o)p(d);o=[]},t),f?(r=c(this,l),u(r)):o.push(u)})}}async function PR(e,t,n){return await e.apply(t,n)}/*! * pinia v3.0.2 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Ck;const kl=e=>Ck=e,Dk=Symbol();function Jh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mc;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mc||(Mc={}));function LR(){const e=ai(!0),t=e.run(()=>pe({}));let n=[],r=[];const s=Og({install(o){kl(s),s._a=o,o.provide(Dk,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return this._a?n.push(o):r.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Mk=()=>{};function j_(e,t,n,r=Mk){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&Rs()&&bs(s),s}function $i(e,...t){e.slice().forEach(n=>{n(...t)})}const NR=e=>e(),Y_=Symbol(),Pp=Symbol();function Zh(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];Jh(s)&&Jh(r)&&e.hasOwnProperty(n)&&!ze(r)&&!ms(r)?e[n]=Zh(s,r):e[n]=r}return e}const FR=Symbol();function HR(e){return!Jh(e)||!Object.prototype.hasOwnProperty.call(e,FR)}const{assign:Ys}=Object;function BR(e){return!!(ze(e)&&e.effect)}function UR(e,t,n,r){const{state:s,actions:o,getters:i}=t,a=n.state.value[e];let c;function l(){a||(n.state.value[e]=s?s():{});const u=bl(n.state.value[e]);return Ys(u,o,Object.keys(i||{}).reduce((f,d)=>(f[d]=Og(B(()=>{kl(n);const p=n._s.get(e);return i[d].call(p,p)})),f),{}))}return c=Ok(e,l,t,n,r,!0),c}function Ok(e,t,n={},r,s,o){let i;const a=Ys({actions:{}},n),c={deep:!0};let l,u,f=[],d=[],p;const h=r.state.value[e];!o&&!h&&(r.state.value[e]={}),pe({});let m;function v($){let T;l=u=!1,typeof $=="function"?($(r.state.value[e]),T={type:Mc.patchFunction,storeId:e,events:p}):(Zh(r.state.value[e],$),T={type:Mc.patchObject,payload:$,storeId:e,events:p});const x=m=Symbol();Pt().then(()=>{m===x&&(l=!0)}),u=!0,$i(f,T,r.state.value[e])}const g=o?function(){const{state:T}=n,x=T?T():{};this.$patch(L=>{Ys(L,x)})}:Mk;function b(){i.stop(),f=[],d=[],r._s.delete(e)}const y=($,T="")=>{if(Y_ in $)return $[Pp]=T,$;const x=function(){kl(r);const L=Array.from(arguments),M=[],j=[];function q(V){M.push(V)}function F(V){j.push(V)}$i(d,{args:L,name:x[Pp],store:w,after:q,onError:F});let R;try{R=$.apply(this&&this.$id===e?this:w,L)}catch(V){throw $i(j,V),V}return R instanceof Promise?R.then(V=>($i(M,V),V)).catch(V=>($i(j,V),Promise.reject(V))):($i(M,R),R)};return x[Y_]=!0,x[Pp]=T,x},_={_p:r,$id:e,$onAction:j_.bind(null,d),$patch:v,$reset:g,$subscribe($,T={}){const x=j_(f,$,T.detached,()=>L()),L=i.run(()=>xe(()=>r.state.value[e],M=>{(T.flush==="sync"?u:l)&&$({storeId:e,type:Mc.direct,events:p},M)},Ys({},c,T)));return x},$dispose:b},w=qt(_);r._s.set(e,w);const E=(r._a&&r._a.runWithContext||NR)(()=>r._e.run(()=>(i=ai()).run(()=>t({action:y}))));for(const $ in E){const T=E[$];if(ze(T)&&!BR(T)||ms(T))o||(h&&HR(T)&&(ze(T)?T.value=h[$]:Zh(T,h[$])),r.state.value[e][$]=T);else if(typeof T=="function"){const x=y(T,$);E[$]=x,a.actions[$]=T}}return Ys(w,E),Ys(Qe(w),E),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:$=>{v(T=>{Ys(T,$)})}}),r._p.forEach($=>{Ys(w,i.run(()=>$({store:w,app:r._a,pinia:r,options:a})))}),h&&o&&n.hydrate&&n.hydrate(w.$state,h),l=!0,u=!0,w}/*! #__NO_SIDE_EFFECTS__ */function qg(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function o(i,a){const c=El();return i=i||(c?yt(Dk,null):null),i&&kl(i),i=Ck,i._s.has(e)||(s?Ok(e,t,r,i):UR(e,r,i)),i._s.get(e)}return o.$id=e,o}function W_(e){const t=YR(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let s=0;s>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const WR=-1,VR=-2,zR=-3,qR=-4,KR=-5,GR=-6;function XR(e,t){return JR(JSON.parse(e),t)}function JR(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(o,i=!1){if(o===WR)return;if(o===zR)return NaN;if(o===qR)return 1/0;if(o===KR)return-1/0;if(o===GR)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const a=n[o];if(!a||typeof a!="object")r[o]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const c=a[0],l=t==null?void 0:t[c];if(l)return r[o]=l(s(a[1]));switch(c){case"Date":r[o]=new Date(a[1]);break;case"Set":const u=new Set;r[o]=u;for(let p=1;p`${r}:${String(s)}`).join(",")}`}function Cf(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let s;if(t&&(s=t(n,e)),Array.isArray(s))return s.map(o=>Cf(o,t));if((s==null?void 0:s.constructor)===Object){const o={};for(const i of Object.keys(s))o[i]=Cf(s[i],t,i);return o}return s}function iP(e,t){const n=e==="style"?new Map:new Set;function r(s){const o=s.trim();if(o)if(e==="style"){const[i,...a]=o.split(":").map(c=>c.trim());i&&a.length&&n.set(i,a.join(":"))}else o.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,o])=>{o&&o!=="false"&&(e==="style"?n.set(s.trim(),o):r(s))}),n}function Rk(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=iP(n,r);return}if(nP.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let i=t.type;if(t.type||(i="application/json"),!(i!=null&&i.endsWith("json"))&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(r)}else e[n]=r;return}const s=String(r),o=n.startsWith("data-");s==="true"||s===""?e.props[n]=o?s:!0:!r&&o&&s==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e}function aP(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=Rk({tag:e,props:{}},n);return r.key&&ZR.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function cP(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,o)=>{for(let i=0;i{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(aP(s,i))}),r.flat()}const em=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,q_={base:-10,title:10},lP={critical:-8,high:-1,low:2},K_={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},uP=/@import/,oc=e=>e===""||e===!0;function fP(e,t){var o;if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=lP[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:K_;if(t.tag in q_)n=q_[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=K_.meta[i])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?oc(t.props.async)?n=s.script.async:t.props.src&&!oc(t.props.defer)&&!oc(t.props.async)&&t.props.type!=="module"&&!((o=t.props.type)!=null&&o.endsWith("json"))?n=s.script.sync:oc(t.props.defer)&&t.props.src&&!oc(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&uP.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function G_(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function dP(e={}){var a;const t=yk();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=[],i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:c=>G_(i,c),push(c,l){const u={...l||{}};delete u.head;const f=u._index??i._entryCount++,d={_i:f,input:c,options:u},p={_poll(h=!1){i.dirty=!0,!h&&o.push(f),t.callHook("entries:updated",i)},dispose(){r.delete(f)&&p._poll(!0)},patch(h){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(d.input=h,r.set(f,d),p._poll())}};return p.patch(c),p},async resolveTags(){var p;const c={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",c);o.length;){const h=o.shift(),m=r.get(h);if(m){const v={tags:cP(m.input,e.propResolvers||[]).map(g=>Object.assign(g,m.options)),entry:m};await t.callHook("entries:normalize",v),m._tags=v.tags.map((g,b)=>(g._w=fP(i,g),g._p=(m._i<<10)+b,g._d=Qh(g),g))}}let l=!1;c.entries.flatMap(h=>(h._tags||[]).map(m=>({...m,props:{...m.props}}))).sort(em).reduce((h,m)=>{const v=String(m._d||m._p);if(!h.has(v))return h.set(v,m);const g=h.get(v);if(((m==null?void 0:m.tagDuplicateStrategy)||(rP.has(m.tag)?"merge":null)||(m.key&&m.key===g.key?"merge":null))==="merge"){const y={...g.props};Object.entries(m.props).forEach(([_,w])=>y[_]=_==="style"?new Map([...g.props.style||new Map,...w]):_==="class"?new Set([...g.props.class||new Set,...w]):w),h.set(v,{...m,props:y})}else m._p>>10===g._p>>10&&m.tag==="meta"&&Ak(v)?(h.set(v,Object.assign([...Array.isArray(g)?g:[g],m],m)),l=!0):(m._w===g._w?m._p>g._p:(m==null?void 0:m._w)<(g==null?void 0:g._w))&&h.set(v,m);return h},c.tagMap);const u=c.tagMap.get("title"),f=c.tagMap.get("titleTemplate");if(i._title=u==null?void 0:u.textContent,f){const h=f==null?void 0:f.textContent;if(i._titleTemplate=h,h){let m=typeof h=="function"?h(u==null?void 0:u.textContent):h;typeof m=="string"&&!i.plugins.has("template-params")&&(m=m.replace("%s",(u==null?void 0:u.textContent)||"")),u?m===null?c.tagMap.delete("title"):c.tagMap.set("title",{...u,textContent:m}):(f.tag="title",f.textContent=m)}}c.tags=Array.from(c.tagMap.values()),l&&(c.tags=c.tags.flat().sort(em)),await t.callHook("tags:beforeResolve",c),await t.callHook("tags:resolve",c),await t.callHook("tags:afterResolve",c);const d=[];for(const h of c.tags){const{innerHTML:m,tag:v,props:g}=h;if(eP.has(v)&&!(Object.keys(g).length===0&&!h.innerHTML&&!h.textContent)&&!(v==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(v==="script"&&m){if((p=g.type)!=null&&p.endsWith("json")){const b=typeof m=="string"?m:JSON.stringify(m);h.innerHTML=b.replace(/G_(i,c)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(c=>c&&i.push(c)),i}const Ks="%separator",pP=new RegExp(`${Ks}(?:\\s*${Ks})*`,"g");function hP(e,t,n=!1){var s;let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const o=t.indexOf(".");r=(s=e[t.substring(0,o)])==null?void 0:s[t.substring(o+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/{if(a===Ks||!o.includes(a))return a;const c=hP(t,a.slice(1),r);return c!==void 0?c:a}).trim(),i&&(e.endsWith(Ks)&&(e=e.slice(0,-Ks.length)),e.startsWith(Ks)&&(e=e.slice(Ks.length)),e=e.replace(pP,n||"").trim()),e}const X_=e=>e.includes(":key")?e:e.split(":").join(":key:"),mP={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const s=String(r);if(s.startsWith("before:")){const o=X_(s.slice(7)),i=e.tagMap.get(o);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p-1,t=!0)}else if(s.startsWith("after:")){const o=X_(s.slice(6)),i=e.tagMap.get(o);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p+1,t=!0)}}t&&(e.tags=e.tags.sort(em))}}},gP={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function tm(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>tm(n)));if((e==null?void 0:e.constructor)===Object){const n={};for(const r of Object.keys(e))n[r]=await tm(e[r]);return n}return e}const vP={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(tm(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},yP={meta:"content",link:"href",htmlAttrs:"lang"},_P=["innerHTML","textContent"],bP=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var r,s,o;const n=((s=(r=t.tags.filter(i=>i.tag==="templateParams"&&i.mode==="server"))==null?void 0:r[0])==null?void 0:s.props)||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...((o=e._ssrPayload)==null?void 0:o.templateParams)||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{var o;const r=((o=t.get("templateParams"))==null?void 0:o.props)||{},s=r.separator||"|";delete r.separator,r.pageTitle=Jl(r.pageTitle||e._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const a=yP[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=Jl(i.props[a],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const c of _P)typeof i[c]=="string"&&(i[c]=Jl(i[c],r,s,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=r,e._separator=s},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n!=null&&n.textContent&&n.processTemplateParams!==!1&&(n.textContent=Jl(n.textContent,e._templateParams,e._separator))}}}),wP=(e,t)=>ze(t)?dr(t):t,Kg="usehead";function SP(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Kg,e)}}.install}function EP(){if(El()){const e=yt(Kg);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function kP(e,t={}){const n=t.head||EP();return n.ssr?n.push(e||{},t):TP(n,e,t)}function TP(e,t,n={}){const r=pe(!1);let s;return Sr(()=>{const i=r.value?{}:Cf(t,wP);s?s.patch(i):s=e.push(i,n)}),Ht()&&(Ls(()=>{s.dispose()}),Lg(()=>{r.value=!0}),Pg(()=>{r.value=!1})),s}function $P(e){var n;const t=e||wk();return((n=t==null?void 0:t.ssrContext)==null?void 0:n.head)||(t==null?void 0:t.runWithContext(()=>{if(El())return yt(Kg)}))}function Pk(e,t={}){const n=$P(t.nuxt);if(n)return kP(e,{head:n,...t})}const IP="modulepreload",xP=function(e,t){return new URL(e,t).href},J_={},le=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let i=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const a=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),l=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));s=i(n.map(u=>{if(u=xP(u,r),u in J_)return;J_[u]=!0;const f=u.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let m=a.length-1;m>=0;m--){const v=a[m];if(v.href===u&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":IP,f||(h.as="script"),h.crossOrigin="",h.href=u,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((m,v)=>{h.addEventListener("load",m),h.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};let Ou,Au;function CP(){return Ou=$fetch(zg(`builds/meta/${dn().app.buildId}.json`),{responseType:"json"}),Ou.then(e=>{Au=kR(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Ou}function Cd(){return Ou||CP()}async function Gg(e){const t=typeof e=="string"?e:e.path;if(await Cd(),!Au)return console.error("[nuxt] Error creating app manifest matcher.",Au),{};try{return kk({},...Au.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Z_(e,t={}){if(!await Nk(e))return null;const r=await MP(e,t);return await Lk(r)||null}const DP="_payload.json";async function MP(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||ar(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=dn(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await Nk(e)?o:r.app.baseURL;return go(i,n.pathname,DP+(s?`?${s}`:""))}async function Lk(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(Fk));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Nk(e=Et().path){const t=Ce();return e=Zo(e),(await Cd()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await Gg({path:e});return!!r.prerender&&!r.redirect})}let Oo=null;async function OP(){var r;if(Oo)return Oo;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Fk(e.textContent||""),n=e.dataset.src?await Lk(e.dataset.src):void 0;return Oo={...t,...n,...window.__NUXT__},(r=Oo.config)!=null&&r.public&&(Oo.config.public=qt(Oo.config.public)),Oo}async function Fk(e){return await XR(e,Ce()._payloadRevivers)}function Hk(e,t){Ce()._payloadRevivers[e]=t}const AP=SR(()=>{Hk("skipHydrate",e=>{})}),RP=[["NuxtError",e=>oo(e)],["EmptyShallowRef",e=>Dn(e==="_"?void 0:e==="0n"?BigInt(0):aa(e))],["EmptyRef",e=>pe(e==="_"?void 0:e==="0n"?BigInt(0):aa(e))],["ShallowRef",e=>Dn(e)],["ShallowReactive",e=>ls(e)],["Ref",e=>pe(e)],["Reactive",e=>qt(e)]],PP=xt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of RP)Hk(r,s);Object.assign(e.payload,([t,n]=Gn(()=>e.runWithContext(OP)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function Xg(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{var p;const o=new Map,i=new Promise(h=>{e.resolveTags().then(m=>{h(m.map(v=>{const g=o.get(v._d)||0,b={tag:v,id:(g?`${v._d}:${g}`:v._d)||z_(v),shouldRender:!0};return v._d&&Ak(v._d)&&o.set(v._d,g+1),b}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const h of["body","head"]){const m=(p=n[h])==null?void 0:p.children;for(const v of m){const g=v.tagName.toLowerCase();if(!V_.has(g))continue;const b=Rk({tag:g,props:{}},{innerHTML:v.innerHTML,...v.getAttributeNames().reduce((y,_)=>(y[_]=v.getAttribute(_),y),{})||{}});if(b.key=v.getAttribute("data-hid")||void 0,b._d=Qh(b)||z_(b),a.elMap.has(b._d)){let y=1,_=b._d;for(;a.elMap.has(_);)_=`${b._d}:${y++}`;a.elMap.set(_,v)}else a.elMap.set(b._d,v)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function c(h,m,v){const g=`${h}:${m}`;a.sideEffects[g]=v,delete a.pendingSideEffects[g]}function l({id:h,$el:m,tag:v}){const g=v.tag.endsWith("Attrs");a.elMap.set(h,m),g||(v.textContent&&v.textContent!==m.textContent&&(m.textContent=v.textContent),v.innerHTML&&v.innerHTML!==m.innerHTML&&(m.innerHTML=v.innerHTML),c(h,"el",()=>{m==null||m.remove(),a.elMap.delete(h)}));for(const b in v.props){if(!Object.prototype.hasOwnProperty.call(v.props,b))continue;const y=v.props[b];if(b.startsWith("on")&&typeof y=="function"){const w=m==null?void 0:m.dataset;if(w&&w[`${b}fired`]){const S=b.slice(0,-5);y.call(m,new Event(S.substring(2)))}m.getAttribute(`data-${b}`)!==""&&((v.tag==="bodyAttrs"?n.defaultView:m).addEventListener(b.substring(2),y.bind(m)),m.setAttribute(`data-${b}`,""));continue}const _=`attr:${b}`;if(b==="class"){if(!y)continue;for(const w of y)g&&c(h,`${_}:${w}`,()=>m.classList.remove(w)),!m.classList.contains(w)&&m.classList.add(w)}else if(b==="style"){if(!y)continue;for(const[w,S]of y)c(h,`${_}:${w}`,()=>{m.style.removeProperty(w)}),m.style.setProperty(w,S)}else y!==!1&&y!==null&&(m.getAttribute(b)!==y&&m.setAttribute(b,y===!0?"":String(y)),g&&c(h,_,()=>m.removeAttribute(b)))}}const u=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const h of d){const{tag:m,shouldRender:v,id:g}=h;if(v){if(m.tag==="title"){n.title=m.textContent,c("title","",()=>n.title=a.title);continue}h.$el=h.$el||a.elMap.get(g),h.$el?l(h):V_.has(m.tag)&&u.push(h)}}for(const h of u){const m=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),l(h),f[m]=f[m]||n.createDocumentFragment(),f[m].appendChild(h.$el)}for(const h of d)await e.hooks.callHook("dom:renderTag",h,n,c);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const h in a.pendingSideEffects)a.pendingSideEffects[h]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function LP(e={}){var r,s,o;const t=((r=e.domOptions)==null?void 0:r.render)||Xg;e.document=e.document||(typeof window<"u"?document:void 0);const n=((o=(s=e.document)==null?void 0:s.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return dP({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function NP(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function FP(e={}){const t=LP({domOptions:{render:NP(()=>Xg(t),n=>setTimeout(n,0))},...e});return t.install=SP(t),t}const HP={disableDefaults:!0,disableCapoSorting:!1,plugins:[gP,vP,bP,mP]},BP=xt({name:"nuxt:head",enforce:"pre",setup(e){const t=FP(HP);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Xg(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */const Di=typeof document<"u";function Bk(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function UP(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Bk(e.default)}const nt=Object.assign;function Lp(e,t){const n={};for(const r in t){const s=t[r];n[r]=kr(s)?s.map(e):e(s)}return n}const Oc=()=>{},kr=Array.isArray,Uk=/#/g,jP=/&/g,YP=/\//g,WP=/=/g,VP=/\?/g,jk=/\+/g,zP=/%5B/g,qP=/%5D/g,Yk=/%5E/g,KP=/%60/g,Wk=/%7B/g,GP=/%7C/g,Vk=/%7D/g,XP=/%20/g;function Jg(e){return encodeURI(""+e).replace(GP,"|").replace(zP,"[").replace(qP,"]")}function JP(e){return Jg(e).replace(Wk,"{").replace(Vk,"}").replace(Yk,"^")}function nm(e){return Jg(e).replace(jk,"%2B").replace(XP,"+").replace(Uk,"%23").replace(jP,"%26").replace(KP,"`").replace(Wk,"{").replace(Vk,"}").replace(Yk,"^")}function ZP(e){return nm(e).replace(WP,"%3D")}function QP(e){return Jg(e).replace(Uk,"%23").replace(VP,"%3F")}function eL(e){return e==null?"":QP(e).replace(YP,"%2F")}function nl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const tL=/\/$/,nL=e=>e.replace(tL,"");function Np(e,t,n="/"){let r,s={},o="",i="";const a=t.indexOf("#");let c=t.indexOf("?");return a=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,a>-1?a:t.length),s=e(o)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=iL(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:nl(i)}}function rL(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Q_(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function sL(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&la(t.matched[r],n.matched[s])&&zk(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function la(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zk(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!oL(e[n],t[n]))return!1;return!0}function oL(e,t){return kr(e)?eb(e,t):kr(t)?eb(t,e):e===t}function eb(e,t){return kr(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function iL(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 o=n.length-1,i,a;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const zn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rl;(function(e){e.pop="pop",e.push="push"})(rl||(rl={}));var Ac;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ac||(Ac={}));function aL(e){if(!e)if(Di){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),nL(e)}const cL=/^[^#]+#/;function lL(e,t){return e.replace(cL,"#")+t}function uL(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 Dd=()=>({left:window.scrollX,top:window.scrollY});function fL(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=uL(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 tb(e,t){return(history.state?history.state.position-t:-1)+e}const rm=new Map;function dL(e,t){rm.set(e,t)}function pL(e){const t=rm.get(e);return rm.delete(e),t}let hL=()=>location.protocol+"//"+location.host;function qk(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(a);return c[0]!=="/"&&(c="/"+c),Q_(c,"")}return Q_(n,e)+r+s}function mL(e,t,n,r){let s=[],o=[],i=null;const a=({state:d})=>{const p=qk(e,location),h=n.value,m=t.value;let v=0;if(d){if(n.value=p,t.value=d,i&&i===h){i=null;return}v=m?d.position-m.position:0}else r(p);s.forEach(g=>{g(n.value,h,{delta:v,type:rl.pop,direction:v?v>0?Ac.forward:Ac.back:Ac.unknown})})};function c(){i=n.value}function l(d){s.push(d);const p=()=>{const h=s.indexOf(d);h>-1&&s.splice(h,1)};return o.push(p),p}function u(){const{history:d}=window;d.state&&d.replaceState(nt({},d.state,{scroll:Dd()}),"")}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:l,destroy:f}}function nb(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Dd():null}}function gL(e){const{history:t,location:n}=window,r={value:qk(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,l,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:hL()+e+c;try{t[u?"replaceState":"pushState"](l,"",d),s.value=l}catch(p){console.error(p),n[u?"replace":"assign"](d)}}function i(c,l){const u=nt({},t.state,nb(s.value.back,c,s.value.forward,!0),l,{position:s.value.position});o(c,u,!0),r.value=c}function a(c,l){const u=nt({},s.value,t.state,{forward:c,scroll:Dd()});o(u.current,u,!0);const f=nt({},nb(r.value,c,null),{position:u.position+1},l);o(c,f,!1),r.value=c}return{location:r,state:s,push:a,replace:i}}function vL(e){e=aL(e);const t=gL(e),n=mL(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=nt({location:"",base:e,go:r,createHref:lL.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}function yL(e){return typeof e=="string"||e&&typeof e=="object"}function Kk(e){return typeof e=="string"||typeof e=="symbol"}const Gk=Symbol("");var rb;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(rb||(rb={}));function ua(e,t){return nt(new Error,{type:e,[Gk]:!0},t)}function Pr(e,t){return e instanceof Error&&Gk in e&&(t==null||!!(e.type&t))}const sb="[^/]+?",_L={sensitive:!1,strict:!1,start:!0,end:!0},bL=/[.+*?^${}()[\]/\\]/g;function wL(e,t){const n=nt({},_L,t),r=[];let s=n.start?"^":"";const o=[];for(const l of e){const u=l.length?[]:[90];n.strict&&!l.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function Xk(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const EL={type:0,value:""},kL=/[a-zA-Z0-9_]/;function TL(e){if(!e)return[[]];if(e==="/")return[[EL]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${l}": ${p}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let a=0,c,l="",u="";function f(){l&&(n===0?o.push({type:0,value:l}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:l,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),l="")}function d(){l+=c}for(;a{i(y)}:Oc}function i(f){if(Kk(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return n}function c(f){const d=DL(f,n);n.splice(d,0,f),f.record.name&&!cb(f)&&r.set(f.record.name,f)}function l(f,d){let p,h={},m,v;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw ua(1,{location:f});v=p.record.name,h=nt(ib(d.params,p.keys.filter(y=>!y.optional).concat(p.parent?p.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),f.params&&ib(f.params,p.keys.map(y=>y.name))),m=p.stringify(h)}else if(f.path!=null)m=f.path,p=n.find(y=>y.re.test(m)),p&&(h=p.parse(m),v=p.record.name);else{if(p=d.name?r.get(d.name):n.find(y=>y.re.test(d.path)),!p)throw ua(1,{location:f,currentLocation:d});v=p.record.name,h=nt({},d.params,f.params),m=p.stringify(h)}const g=[];let b=p;for(;b;)g.unshift(b.record),b=b.parent;return{name:v,path:m,params:h,matched:g,meta:CL(g)}}e.forEach(f=>o(f));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:l,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function ib(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ab(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:xL(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 xL(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 cb(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function CL(e){return e.reduce((t,n)=>nt(t,n.meta),{})}function lb(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function DL(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;Xk(e,t[o])<0?r=o:n=o+1}const s=ML(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function ML(e){let t=e;for(;t=t.parent;)if(Jk(t)&&Xk(e,t)===0)return t}function Jk({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function OL(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&nm(o)):[r&&nm(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function AL(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=kr(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const RL=Symbol(""),fb=Symbol(""),Zg=Symbol(""),Zk=Symbol(""),sm=Symbol("");function ic(){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 Gs(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,c)=>{const l=d=>{d===!1?c(ua(4,{from:n,to:t})):d instanceof Error?c(d):yL(d)?c(ua(2,{from:t,to:d})):(i&&r.enterCallbacks[s]===i&&typeof d=="function"&&i.push(d),a())},u=o(()=>e.call(r&&r.instances[s],t,n,l));let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(d=>c(d))})}function Fp(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const a in i.components){let c=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Bk(c)){const u=(c.__vccOpts||c)[t];u&&o.push(Gs(u,n,r,i,a,s))}else{let l=c();o.push(()=>l.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const f=UP(u)?u.default:u;i.mods[a]=u,i.components[a]=f;const p=(f.__vccOpts||f)[t];return p&&Gs(p,n,r,i,a,s)()}))}}return o}function db(e){const t=yt(Zg),n=yt(Zk),r=B(()=>{const c=k(e.to);return t.resolve(c)}),s=B(()=>{const{matched:c}=r.value,{length:l}=c,u=c[l-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(la.bind(null,u));if(d>-1)return d;const p=pb(c[l-2]);return l>1&&pb(u)===p&&f[f.length-1].path!==p?f.findIndex(la.bind(null,c[l-2])):d}),o=B(()=>s.value>-1&&HL(n.params,r.value.params)),i=B(()=>s.value>-1&&s.value===n.matched.length-1&&zk(n.params,r.value.params));function a(c={}){if(FL(c)){const l=t[k(e.replace)?"replace":"push"](k(e.to)).catch(Oc);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:o,isExactActive:i,navigate:a}}function PL(e){return e.length===1?e[0]:e}const LL=ke({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:db,setup(e,{slots:t}){const n=qt(db(e)),{options:r}=yt(Zg),s=B(()=>({[hb(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[hb(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&PL(t.default(n));return e.custom?o:Lt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),NL=LL;function FL(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 HL(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(!kr(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function pb(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const hb=(e,t,n)=>e??t??n,BL=ke({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=yt(sm),s=B(()=>e.route||r.value),o=yt(fb,0),i=B(()=>{let l=k(o);const{matched:u}=s.value;let f;for(;(f=u[l])&&!f.components;)l++;return l}),a=B(()=>s.value.matched[i.value]);Mn(fb,B(()=>i.value+1)),Mn(RL,a),Mn(sm,s);const c=pe();return xe(()=>[c.value,a.value,e.name],([l,u,f],[d,p,h])=>{u&&(u.instances[f]=l,p&&p!==u&&l&&l===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),l&&u&&(!p||!la(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(m=>m(l))},{flush:"post"}),()=>{const l=s.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return mb(n.default,{Component:d,route:l});const p=f.props[u],h=p?p===!0?l.params:typeof p=="function"?p(l):p:null,v=Lt(d,nt({},h,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[u]=null)},ref:c}));return mb(n.default,{Component:v,route:l})||v}}});function mb(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Qk=BL;function UL(e){const t=IL(e.routes,e),n=e.parseQuery||OL,r=e.stringifyQuery||ub,s=e.history,o=ic(),i=ic(),a=ic(),c=Dn(zn);let l=zn;Di&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Lp.bind(null,J=>""+J),f=Lp.bind(null,eL),d=Lp.bind(null,nl);function p(J,ce){let ie,ue;return Kk(J)?(ie=t.getRecordMatcher(J),ue=ce):ue=J,t.addRoute(ue,ie)}function h(J){const ce=t.getRecordMatcher(J);ce&&t.removeRoute(ce)}function m(){return t.getRoutes().map(J=>J.record)}function v(J){return!!t.getRecordMatcher(J)}function g(J,ce){if(ce=nt({},ce||c.value),typeof J=="string"){const O=Np(n,J,ce.path),W=t.resolve({path:O.path},ce),ne=s.createHref(O.fullPath);return nt(O,W,{params:d(W.params),hash:nl(O.hash),redirectedFrom:void 0,href:ne})}let ie;if(J.path!=null)ie=nt({},J,{path:Np(n,J.path,ce.path).path});else{const O=nt({},J.params);for(const W in O)O[W]==null&&delete O[W];ie=nt({},J,{params:f(O)}),ce.params=f(ce.params)}const ue=t.resolve(ie,ce),be=J.hash||"";ue.params=u(d(ue.params));const Ie=rL(r,nt({},J,{hash:JP(be),path:ue.path})),C=s.createHref(Ie);return nt({fullPath:Ie,hash:be,query:r===ub?AL(J.query):J.query||{}},ue,{redirectedFrom:void 0,href:C})}function b(J){return typeof J=="string"?Np(n,J,c.value.path):nt({},J)}function y(J,ce){if(l!==J)return ua(8,{from:ce,to:J})}function _(J){return E(J)}function w(J){return _(nt(b(J),{replace:!0}))}function S(J){const ce=J.matched[J.matched.length-1];if(ce&&ce.redirect){const{redirect:ie}=ce;let ue=typeof ie=="function"?ie(J):ie;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=b(ue):{path:ue},ue.params={}),nt({query:J.query,hash:J.hash,params:ue.path!=null?{}:J.params},ue)}}function E(J,ce){const ie=l=g(J),ue=c.value,be=J.state,Ie=J.force,C=J.replace===!0,O=S(ie);if(O)return E(nt(b(O),{state:typeof O=="object"?nt({},be,O.state):be,force:Ie,replace:C}),ce||ie);const W=ie;W.redirectedFrom=ce;let ne;return!Ie&&sL(r,ue,ie)&&(ne=ua(16,{to:W,from:ue}),fe(ue,ue,!0,!1)),(ne?Promise.resolve(ne):x(W,ue)).catch(ee=>Pr(ee)?Pr(ee,2)?ee:G(ee):U(ee,W,ue)).then(ee=>{if(ee){if(Pr(ee,2))return E(nt({replace:C},b(ee.to),{state:typeof ee.to=="object"?nt({},be,ee.to.state):be,force:Ie}),ce||W)}else ee=M(W,ue,!0,C,be);return L(W,ue,ee),ee})}function $(J,ce){const ie=y(J,ce);return ie?Promise.reject(ie):Promise.resolve()}function T(J){const ce=ve.values().next().value;return ce&&typeof ce.runWithContext=="function"?ce.runWithContext(J):J()}function x(J,ce){let ie;const[ue,be,Ie]=jL(J,ce);ie=Fp(ue.reverse(),"beforeRouteLeave",J,ce);for(const O of ue)O.leaveGuards.forEach(W=>{ie.push(Gs(W,J,ce))});const C=$.bind(null,J,ce);return ie.push(C),Le(ie).then(()=>{ie=[];for(const O of o.list())ie.push(Gs(O,J,ce));return ie.push(C),Le(ie)}).then(()=>{ie=Fp(be,"beforeRouteUpdate",J,ce);for(const O of be)O.updateGuards.forEach(W=>{ie.push(Gs(W,J,ce))});return ie.push(C),Le(ie)}).then(()=>{ie=[];for(const O of Ie)if(O.beforeEnter)if(kr(O.beforeEnter))for(const W of O.beforeEnter)ie.push(Gs(W,J,ce));else ie.push(Gs(O.beforeEnter,J,ce));return ie.push(C),Le(ie)}).then(()=>(J.matched.forEach(O=>O.enterCallbacks={}),ie=Fp(Ie,"beforeRouteEnter",J,ce,T),ie.push(C),Le(ie))).then(()=>{ie=[];for(const O of i.list())ie.push(Gs(O,J,ce));return ie.push(C),Le(ie)}).catch(O=>Pr(O,8)?O:Promise.reject(O))}function L(J,ce,ie){a.list().forEach(ue=>T(()=>ue(J,ce,ie)))}function M(J,ce,ie,ue,be){const Ie=y(J,ce);if(Ie)return Ie;const C=ce===zn,O=Di?history.state:{};ie&&(ue||C?s.replace(J.fullPath,nt({scroll:C&&O&&O.scroll},be)):s.push(J.fullPath,be)),c.value=J,fe(J,ce,ie,C),G()}let j;function q(){j||(j=s.listen((J,ce,ie)=>{if(!Pe.listening)return;const ue=g(J),be=S(ue);if(be){E(nt(be,{replace:!0,force:!0}),ue).catch(Oc);return}l=ue;const Ie=c.value;Di&&dL(tb(Ie.fullPath,ie.delta),Dd()),x(ue,Ie).catch(C=>Pr(C,12)?C:Pr(C,2)?(E(nt(b(C.to),{force:!0}),ue).then(O=>{Pr(O,20)&&!ie.delta&&ie.type===rl.pop&&s.go(-1,!1)}).catch(Oc),Promise.reject()):(ie.delta&&s.go(-ie.delta,!1),U(C,ue,Ie))).then(C=>{C=C||M(ue,Ie,!1),C&&(ie.delta&&!Pr(C,8)?s.go(-ie.delta,!1):ie.type===rl.pop&&Pr(C,20)&&s.go(-1,!1)),L(ue,Ie,C)}).catch(Oc)}))}let F=ic(),R=ic(),V;function U(J,ce,ie){G(J);const ue=R.list();return ue.length?ue.forEach(be=>be(J,ce,ie)):console.error(J),Promise.reject(J)}function re(){return V&&c.value!==zn?Promise.resolve():new Promise((J,ce)=>{F.add([J,ce])})}function G(J){return V||(V=!J,q(),F.list().forEach(([ce,ie])=>J?ie(J):ce()),F.reset()),J}function fe(J,ce,ie,ue){const{scrollBehavior:be}=e;if(!Di||!be)return Promise.resolve();const Ie=!ie&&pL(tb(J.fullPath,0))||(ue||!ie)&&history.state&&history.state.scroll||null;return Pt().then(()=>be(J,ce,Ie)).then(C=>C&&fL(C)).catch(C=>U(C,J,ce))}const ae=J=>s.go(J);let Ee;const ve=new Set,Pe={currentRoute:c,listening:!0,addRoute:p,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:m,resolve:g,options:e,push:_,replace:w,go:ae,back:()=>ae(-1),forward:()=>ae(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:R.add,isReady:re,install(J){const ce=this;J.component("RouterLink",NL),J.component("RouterView",Qk),J.config.globalProperties.$router=ce,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>k(c)}),Di&&!Ee&&c.value===zn&&(Ee=!0,_(s.location).catch(be=>{}));const ie={};for(const be in zn)Object.defineProperty(ie,be,{get:()=>c.value[be],enumerable:!0});J.provide(Zg,ce),J.provide(Zk,ls(ie)),J.provide(sm,c);const ue=J.unmount;ve.add(J),J.unmount=function(){ve.delete(J),ve.size<1&&(l=zn,j&&j(),j=null,c.value=zn,Ee=!1,V=!1),ue()}}};function Le(J){return J.reduce((ce,ie)=>ce.then(()=>T(ie)),Promise.resolve())}return Pe}function jL(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;ila(l,a))?r.push(a):n.push(a));const c=e.matched[i];c&&(t.matched.find(l=>la(l,c))||s.push(c))}return[n,r,s]}const YL=/(:\w+)\([^)]+\)/g,WL=/(:\w+)[?+*]/g,VL=/:\w+/g,zL=(e,t)=>t.path.replace(YL,"$1").replace(WL,"$1").replace(VL,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),om=(e,t)=>{const n=e.route.matched.find(s=>{var o;return((o=s.components)==null?void 0:o.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&zL(e.route,n));return typeof r=="function"?r(e.route):r},qL=(e,t)=>({default:()=>e?Lt(MM,e===!0?{}:e,t):t});function Qg(e){return Array.isArray(e)?e:[e]}const Hp=[{name:"start",path:"/",component:()=>le(()=>import("./BauE4Qmt.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"all",path:"/:all(.*)*",component:()=>le(()=>import("./Bho6Bf-p.js"),[],import.meta.url)},{name:"fat",path:"/lediga-bord",meta:{middleware:"fat"},component:()=>le(()=>import("./B5qTw1wF.js"),__vite__mapDeps([2,3,4,5,6]),import.meta.url)},{name:"city",path:"/city",component:()=>le(()=>import("./DLBMx2y9.js"),__vite__mapDeps([7,8,9,10,11,12,13,14,15,4,16,17,18]),import.meta.url)},{name:"auth-log-in",path:"/logga-in",component:()=>le(()=>import("./BaAKfFox.js"),[],import.meta.url)},{name:"auth-verify",path:"/verifiera",component:()=>le(()=>import("./D2fFl_Yf.js"),[],import.meta.url)},{name:"posts",path:"/posts",component:()=>le(()=>import("./COfOHBhY.js"),__vite__mapDeps([19,20,21,22,10,11,8,9]),import.meta.url)},{name:"auth-log-out",path:"/logga-ut",component:()=>le(()=>import("./BUYbTJuq.js"),[],import.meta.url)},{name:"events",path:"/evenemang",component:()=>le(()=>import("./CXJd328Z.js"),__vite__mapDeps([23,20,21,22,24,3,15,4,25]),import.meta.url)},{name:"offers",path:"/erbjudanden",meta:{middleware:"offers"},component:()=>le(()=>import("./DuEhWYOk.js"),__vite__mapDeps([26,20,21,22,27,3,14,12,13,28]),import.meta.url)},{name:"posts-single",path:"/posts/single",component:()=>le(()=>import("./C1JyoDy0.js"),__vite__mapDeps([29,21,8,9,14,4,16,17,30,3,31,32,33]),import.meta.url)},{name:"search",path:"/sok",component:()=>le(()=>import("./A4l5-H8z.js"),__vite__mapDeps([34,20,21,22,5,4]),import.meta.url)},{name:"user-profile",path:"/profil",component:()=>le(()=>import("./Dd3iOerp.js"),[],import.meta.url)},{name:"events-city",path:"/evenemang/:city()",component:()=>le(()=>import("./CQ862-oQ.js"),__vite__mapDeps([35,20,21,22,24,3,15,4,25]),import.meta.url)},{name:"offers-city",path:"/erbjudanden/:city()",meta:{middleware:"offers"},component:()=>le(()=>import("./CRV-delc.js"),__vite__mapDeps([36,20,21,22,27,3,14,12,13,28]),import.meta.url)},{name:"res-req",path:"/bokningsforfragan",component:()=>le(()=>import("./BgNZPjO2.js"),__vite__mapDeps([37,30,4,3,31]),import.meta.url)},{name:"campaigns",path:"/exclusive",component:()=>le(()=>import("./DaCh1xSs.js"),[],import.meta.url)},{name:"giftcards",path:"/presentkort",component:()=>le(()=>import("./BM5abMOS.js"),__vite__mapDeps([38,20,21,22,39,3,32,4,40]),import.meta.url)},{name:"giftcards-city",path:"/presentkort/:city()",component:()=>le(()=>import("./CC_VM3fJ.js"),__vite__mapDeps([41,20,21,22,39,3,32,4,40]),import.meta.url)},{name:"restaurants-city-tag",path:"/restauranger/:city()/:tag()",component:()=>le(()=>import("./_si9FCiX.js"),__vite__mapDeps([42,20,21,22,43,44,3,32,4,40]),import.meta.url)},{name:"restaurants",path:"/restauranger",component:()=>le(()=>import("./DK24660b.js"),__vite__mapDeps([45,20,21,22,44,3,32,4,40]),import.meta.url)},{name:"restaurants-city",path:"/restauranger/:city()",component:()=>le(()=>import("./8IWQ92o6.js"),__vite__mapDeps([46,20,21,22,43,44,3,32,4,40]),import.meta.url)},{name:"restaurants-slug",path:"/restaurang/:slug()",component:()=>le(()=>import("./C_oSIdIz.js"),__vite__mapDeps([47,21,3,32,4,48]),import.meta.url)},{name:"campaigns-skaldjursveckorna",path:"/erbjudanden/skaldjursveckorna",component:()=>le(()=>import("./CpZx3EB9.js"),__vite__mapDeps([49,50]),import.meta.url)},{name:"campaigns-stockholm-food-weeks",path:"/erbjudanden/stockholm-food-weeks",component:()=>le(()=>import("./DQhWb7th.js"),__vite__mapDeps([51,50]),import.meta.url)},{name:"campaigns-stockholm-fashion-week",path:"/erbjudanden/stockholm-fashion-week",meta:{middleware:"stockholm-fashion-week"},component:()=>le(()=>import("./db4aI3RS.js"),__vite__mapDeps([52,3,4,53]),import.meta.url)}],KL=(e,t)=>({default:()=>{var n;return e?Lt(Wg,e===!0?{}:e,t):(n=t.default)==null?void 0:n.call(t)}}),GL=/(:\w+)\([^)]+\)/g,XL=/(:\w+)[?+*]/g,JL=/:\w+/g;function gb(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(GL,"$1").replace(XL,"$1").replace(JL,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function ZL(e,t){return e===t||t===zn?!1:gb(e)!==gb(t)?!0:!e.matched.every((r,s)=>{var o,i;return r.components&&r.components.default===((i=(o=t.matched[s])==null?void 0:o.components)==null?void 0:i.default)})}const QL={scrollBehavior(e,t,n){var c;const r=Ce(),s=((c=lt().options)==null?void 0:c.scrollBehaviorType)??"auto";if(e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:eT(e.hash),behavior:s}:!1;if((typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;let i=n||void 0;!i&&ZL(e,t)&&(i={left:0,top:0});const a=r._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(l=>{if(t===zn){l(vb(e,"instant",i));return}r.hooks.hookOnce(a,()=>{requestAnimationFrame(()=>l(vb(e,"instant",i)))})})}};function eT(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function vb(e,t,n){return n||(e.hash?{el:e.hash,top:eT(e.hash),behavior:t}:{left:0,top:0,behavior:t})}const eN={hashMode:!1,scrollBehaviorType:"auto"},Or={...eN,...QL},tN=async(e,t)=>{var i;let n,r;if(!((i=e.meta)!=null&&i.validate))return;const s=([n,r]=Gn(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(s===!0)return;const o=oo({fatal:!0,statusCode:s&&s.statusCode||404,statusMessage:s&&s.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),o},cr=qg("app",{persist:!1,state:()=>({uts:null,pageviews:0,lockScroll:!1}),getters:{initialLoad(){return this.pageviews===0},config(){return Ce().$configData},categories(){const e=Ce().$configData;return e==null?void 0:e.categories},tags(){var t;const e=Ce().$configData;return(t=e==null?void 0:e.wa)==null?void 0:t.tags},cities(){var t;const e=Ce().$configData;return(t=e==null?void 0:e.wa)==null?void 0:t.cities},meals(){var t;const e=Ce().$configData;return(t=e==null?void 0:e.wa)==null?void 0:t.meals}},actions:{addPageview(){this.pageviews++},updateUts(){this.uts=Math.floor(Date.now()/1e3)}}});function im(e){return typeof e=="string"?`'${e}'`:new nN().serialize(e)}const nN=function(){var t;class e{constructor(){Wy(this,t,new Map)}compare(r,s){const o=typeof r,i=typeof s;return o==="string"&&i==="string"?r.localeCompare(s):o==="number"&&i==="number"?r-s:String.prototype.localeCompare.call(this.serialize(r,!0),this.serialize(s,!0))}serialize(r,s){if(r===null)return"null";switch(typeof r){case"string":return s?r:`'${r}'`;case"bigint":return`${r}n`;case"object":return this.$object(r);case"function":return this.$function(r)}return String(r)}serializeObject(r){const s=Object.prototype.toString.call(r);if(s!=="[object Object]")return this.serializeBuiltInType(s.length<10?`unknown:${s}`:s.slice(8,-1),r);const o=r.constructor,i=o===Object||o===void 0?"":o.name;if(i!==""&&globalThis[i]===o)return this.serializeBuiltInType(i,r);if(typeof r.toJSON=="function"){const a=r.toJSON();return i+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(i,Object.entries(r))}serializeBuiltInType(r,s){const o=this["$"+r];if(o)return o.call(this,s);if(typeof(s==null?void 0:s.entries)=="function")return this.serializeObjectEntries(r,s.entries());throw new Error(`Cannot serialize ${r}`)}serializeObjectEntries(r,s){const o=Array.from(s).sort((a,c)=>this.compare(a[0],c[0]));let i=`${r}{`;for(let a=0;athis.compare(s,o)))}`}$Map(r){return this.serializeObjectEntries("Map",r.entries())}}t=new WeakMap;for(const n of["Error","RegExp","URL"])e.prototype["$"+n]=function(r){return`${n}(${r})`};for(const n of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+n]=function(r){return`${n}[${r.join(",")}]`};for(const n of["BigInt64Array","BigUint64Array"])e.prototype["$"+n]=function(r){return`${n}[${r.join("n,")}${r.length>0?"n":""}]`};return e}();function rN(e,t){return e===t||im(e)===im(t)}const sN=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],oN=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],iN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Ao=[];class aN{constructor(){Be(this,"_data",new Li);Be(this,"_hash",new Li([...sN]));Be(this,"_nDataBytes",0);Be(this,"_minBufferSize",0)}finalize(t){t&&this._append(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,n){const r=this._hash.words;let s=r[0],o=r[1],i=r[2],a=r[3],c=r[4],l=r[5],u=r[6],f=r[7];for(let d=0;d<64;d++){if(d<16)Ao[d]=t[n+d]|0;else{const y=Ao[d-15],_=(y<<25|y>>>7)^(y<<14|y>>>18)^y>>>3,w=Ao[d-2],S=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;Ao[d]=_+Ao[d-7]+S+Ao[d-16]}const p=c&l^~c&u,h=s&o^s&i^o&i,m=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),v=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),g=f+v+p+oN[d]+Ao[d],b=m+h;f=u,u=l,l=c,c=a+g|0,a=i,i=o,o=s,s=g+b|0}r[0]=r[0]+s|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0,r[5]=r[5]+l|0,r[6]=r[6]+u|0,r[7]=r[7]+f|0}_append(t){typeof t=="string"&&(t=Li.fromUtf8(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){let n,r=this._data.sigBytes/64;t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const s=r*16,o=Math.min(s*4,this._data.sigBytes);if(s){for(let i=0;i>>2]|=(n.charCodeAt(o)&255)<<24-o%4*8;return new Li(s,r)}toBase64(){const t=[];for(let n=0;n>>2]>>>24-n%4*8&255,s=this.words[n+1>>>2]>>>24-(n+1)%4*8&255,o=this.words[n+2>>>2]>>>24-(n+2)%4*8&255,i=r<<16|s<<8|o;for(let a=0;a<4&&n*8+a*6>>6*(3-a)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let n=0;n>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n>>2]=t.words[n>>>2];this.sigBytes+=t.sigBytes}}function cN(e){return new aN().finalize(e).toBase64()}function Mi(e){return cN(im(e))}const tT=Symbol.for("nuxt:client-only"),lN=ke({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=Dn(!1);en(()=>{r.value=!0});const s=Ht();return s&&(s._nuxtClientOnly=!0),Mn(tT,!0),()=>{var c;if(r.value){const l=(c=t.default)==null?void 0:c.call(t);return l&&l.length===1?[Er(l[0],n)]:l}const o=t.fallback||t.placeholder;if(o)return o();const i=e.fallback||e.placeholder||"",a=e.fallbackTag||e.placeholderTag||"span";return Z(a,n,i)}}}),am=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),uN=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Md=e=>{const t=Ce();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{am(()=>e())}):am(()=>e())},fN=e=>e==="defer"||e===!1;function dN(...e){var p;const t=typeof e[e.length-1]=="string"?e.pop():void 0;pN(e[0],e[1])&&e.unshift(t);let[n,r,s={}]=e;const o=B(()=>dr(n));if(typeof o.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const i=Ce();s.server??(s.server=!0),s.default??(s.default=mN),s.getCachedData??(s.getCachedData=rT),s.lazy??(s.lazy=!1),s.immediate??(s.immediate=!0),s.deep??(s.deep=Hr.deep),s.dedupe??(s.dedupe="cancel"),s._functionName,i._asyncData[o.value];const a={cause:"initial",dedupe:s.dedupe};(p=i._asyncData[o.value])!=null&&p._init||(a.cachedData=s.getCachedData(o.value,i,{cause:"initial"}),i._asyncData[o.value]=yb(i,o.value,r,s,a.cachedData));const c=i._asyncData[o.value];c._deps++;const l=()=>i._asyncData[o.value].execute(a),u=s.server!==!1&&i.payload.serverRendered;{let h=function(y){const _=i._asyncData[y];_!=null&&_._deps&&(_._deps--,_._deps===0&&(_==null||_._off()))};const m=Ht();if(m&&u&&s.immediate&&!m.sp&&(m.sp=[]),m&&!m._nuxtOnBeforeMountCbs){m._nuxtOnBeforeMountCbs=[];const y=m._nuxtOnBeforeMountCbs;CE(()=>{y.forEach(_=>{_()}),y.splice(0,y.length)}),on(()=>y.splice(0,y.length))}const v=m&&(m._nuxtClientOnly||yt(tT,!1));u&&i.isHydrating&&(c.error.value||c.data.value!=null)?(c.pending.value=!1,c.status.value=c.error.value?"error":"success"):m&&(!v&&i.payload.serverRendered&&i.isHydrating||s.lazy)&&s.immediate?m._nuxtOnBeforeMountCbs.push(l):s.immediate&&l();const g=Rs();if(s.watch){const y=xe(s.watch,()=>{c._execute({cause:"watch",dedupe:s.dedupe})},{flush:"post"});g&&bs(()=>y())}const b=xe(o,(y,_)=>{var E,$;const w=((E=i._asyncData[_])==null?void 0:E.data.value)!==Hr.value;_&&h(_);const S={cause:"initial",dedupe:s.dedupe};($=i._asyncData[y])!=null&&$._init||(S.cachedData=s.getCachedData(y,i,{cause:"initial"}),i._asyncData[y]=yb(i,y,r,s,S.cachedData)),i._asyncData[y]._deps++,(s.immediate||w)&&i._asyncData[y].execute(S)},{flush:"sync"});g&&bs(()=>{b(),h(o.value)})}const f={data:Zl(()=>{var h;return(h=i._asyncData[o.value])==null?void 0:h.data}),pending:Zl(()=>{var h;return(h=i._asyncData[o.value])==null?void 0:h.pending}),status:Zl(()=>{var h;return(h=i._asyncData[o.value])==null?void 0:h.status}),error:Zl(()=>{var h;return(h=i._asyncData[o.value])==null?void 0:h.error}),refresh:(...h)=>i._asyncData[o.value].execute(...h),execute:(...h)=>i._asyncData[o.value].execute(...h),clear:()=>nT(i,o.value)},d=Promise.resolve(i._asyncDataPromises[o.value]).then(()=>f);return Object.assign(d,f),d}function Zl(e){return B({get(){var t;return(t=e())==null?void 0:t.value},set(t){const n=e();n&&(n.value=t)}})}function pN(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function fhe(e){const t=Ce();if(e in t.payload.data||(t.payload.data[e]=Hr.value),t._asyncData[e]){const n=t._asyncData[e];n._deps++,Rs()&&bs(()=>{n._deps--,n._deps===0&&(n==null||n._off())})}return{data:B({get(){var n;return((n=t._asyncData[e])==null?void 0:n.data.value)??t.payload.data[e]},set(n){t._asyncData[e]?t._asyncData[e].data.value=n:t.payload.data[e]=n}})}}function nT(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=Hr.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=Hr.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function hN(e,t){const n={};for(const r of t)n[r]=e[r];return n}function yb(e,t,n,r,s){var f;(f=e.payload._errors)[t]??(f[t]=Hr.errorValue);const o=r.getCachedData!==rT,i=n,a=r.deep?pe:Dn,c=s!=null,l=e.hook("app:data:refresh",async d=>{(!d||d.includes(t))&&await u.execute({cause:"refresh:hook"})}),u={data:a(c?s:r.default()),pending:Dn(!c),error:Wo(e.payload._errors,t),status:Dn("idle"),execute:(d={})=>{if(e._asyncDataPromises[t]){if(fN(d.dedupe??r.dedupe))return e._asyncDataPromises[t];e._asyncDataPromises[t].cancelled=!0}if(d.cause==="initial"||e.isHydrating){const h="cachedData"in d?d.cachedData:r.getCachedData(t,e,{cause:d.cause??"refresh:manual"});if(h!=null)return e.payload.data[t]=u.data.value=h,u.error.value=Hr.errorValue,u.status.value="success",Promise.resolve(h)}u.pending.value=!0,u.status.value="pending";const p=new Promise((h,m)=>{try{h(i(e))}catch(v){m(v)}}).then(async h=>{if(p.cancelled)return e._asyncDataPromises[t];let m=h;r.transform&&(m=await r.transform(h)),r.pick&&(m=hN(m,r.pick)),e.payload.data[t]=m,u.data.value=m,u.error.value=Hr.errorValue,u.status.value="success"}).catch(h=>{if(p.cancelled)return e._asyncDataPromises[t];u.error.value=oo(h),u.data.value=k(r.default()),u.status.value="error"}).finally(()=>{p.cancelled||(u.pending.value=!1,delete e._asyncDataPromises[t])});return e._asyncDataPromises[t]=p,e._asyncDataPromises[t]},_execute:RR((...d)=>u.execute(...d),0,{leading:!0}),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{l(),u._init=!1,o||Pt(()=>{u._init||(nT(e,t),u.execute=()=>Promise.resolve(),u.data.value=Hr.value)})}};return u}const mN=()=>Hr.value,rT=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]},gN="$s";function Od(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=gN+n,o=Ce(),i=Wo(o.payload.state,s);if(i.value===void 0&&r){const a=r();if(ze(a))return o.payload.state[s]=a,a;i.value=a}return i}function vN(e,t,n){const[r={},s]=typeof t=="string"?[{},t]:[t,n],o=B(()=>dr(e)),i=B(()=>dr(r.key)||"$f"+Mi([s,typeof o.value=="string"?o.value:"",...yN(r)]));if(!r.baseURL&&typeof o.value=="string"&&o.value[0]==="/"&&o.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:a,lazy:c,default:l,transform:u,pick:f,watch:d,immediate:p,getCachedData:h,deep:m,dedupe:v,...g}=r,b=qt({...hR,...g,cache:typeof r.cache=="boolean"?void 0:r.cache}),y={server:a,lazy:c,default:l,transform:u,pick:f,immediate:p,getCachedData:h,deep:m,dedupe:v,watch:d===!1?[]:[...d||[],b]};if(!p){let S=function(){y.immediate=!0};xe(i,S,{flush:"sync",once:!0}),xe([...d||[],b],S,{flush:"sync",once:!0})}let _;return dN(d===!1?i.value:i,()=>{var T;(T=_==null?void 0:_.abort)==null||T.call(_,new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),_=typeof AbortController<"u"?new AbortController:{};const S=dr(r.timeout);let E;return S&&(E=setTimeout(()=>_.abort(new DOMException("Request aborted due to timeout.","AbortError")),S),_.signal.onabort=()=>clearTimeout(E)),(r.$fetch||globalThis.$fetch)(o.value,{signal:_.signal,...b}).finally(()=>{clearTimeout(E)})},y)}function yN(e){var n;const t=[((n=dr(e.method))==null?void 0:n.toUpperCase())||"GET",dr(e.baseURL)];for(const r of[e.params||e.query]){const s=dr(r);if(!s)continue;const o={};for(const[i,a]of Object.entries(s))o[dr(i)]=dr(a);t.push(o)}if(e.body){const r=dr(e.body);if(!r)t.push(Mi(r));else if(r instanceof ArrayBuffer)t.push(Mi(Object.fromEntries([...new Uint8Array(r).entries()].map(([s,o])=>[s,o.toString()]))));else if(r instanceof FormData){const s={};for(const o of r.entries()){const[i,a]=o;s[i]=a instanceof File?a.name:a}t.push(Mi(s))}else if(kg(r))t.push(Mi(qt(r)));else try{t.push(Mi(r))}catch{console.warn("[useFetch] Failed to hash body",r)}}return t}function _N(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},r=t||{},s=r.decode||bN;let o=0;for(;oaa(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},eu=window.cookieStore;function cm(e,t){var l;const n={...EN,...t};n.filter??(n.filter=u=>u===e);const r=bb(n)||{};let s;n.maxAge!==void 0?s=n.maxAge*1e3:n.expires&&(s=n.expires.getTime()-Date.now());const o=s!==void 0&&s<=0,i=o||r[e]===void 0||r[e]===null,a=ur(o?void 0:r[e]??((l=n.default)==null?void 0:l.call(n))),c=s&&!o?$N(a,s,n.watch&&n.watch!=="shallow"):pe(a);{let u=null;try{!eu&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const f=(m=!1)=>{!m&&(n.readonly||rN(c.value,r[e]))||(TN(e,c.value,n),r[e]=ur(c.value),u==null||u.postMessage({value:n.encode(c.value)}))},d=m=>{var g;const v=m.refresh?(g=bb(n))==null?void 0:g[e]:n.decode(m.value);p=!0,c.value=v,r[e]=ur(v),Pt(()=>{p=!1})};let p=!1;const h=!!Rs();if(h&&bs(()=>{p=!0,f(),u==null||u.close()}),eu){const m=v=>{const g=v.changed.find(y=>y.name===e),b=v.deleted.find(y=>y.name===e);g&&d({value:g.value}),b&&d({value:null})};eu.addEventListener("change",m),h&&bs(()=>eu.removeEventListener("change",m))}else u&&(u.onmessage=({data:m})=>d(m));n.watch&&xe(c,()=>{p||f()},{deep:n.watch!=="shallow"}),i&&f(i)}return c}function bb(e={}){return _N(document.cookie,e)}function kN(e,t,n={}){return t==null?_b(e,t,{...n,maxAge:-1}):_b(e,t,n)}function TN(e,t,n={}){document.cookie=kN(e,t,n)}const wb=2147483647;function $N(e,t,n){let r,s,o=0;const i=n?pe(e):{value:e};return Rs()&&bs(()=>{s==null||s(),clearTimeout(r)}),pE((a,c)=>{n&&(s=xe(i,c));function l(){o=0,clearTimeout(r);const u=t-o,f=u{if(o+=f,o4)return Promise.all(s).then(()=>sT(e,t));t._routePreloaded.add(n);const o=r.map(i=>{var a;return(a=i.components)==null?void 0:a.default}).filter(i=>typeof i=="function");for(const i of o){const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}function xN(e={}){const t=e.path||window.location.pathname;let n={};try{n=aa(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)e.find(t=>t!==void 0);function MN(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function r(o,i,a){const c=a??e.trailingSlash;if(!o||c!=="append"&&c!=="remove")return o;if(typeof o=="string")return tu(o,c);const l="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:tu(l,c)}}function s(o){const i=lt(),a=dn(),c=B(()=>!!o.target&&o.target!=="_self"),l=B(()=>{const v=o.to||o.href||"";return typeof v=="string"&&ar(v,{acceptRelative:!0})}),u=pr("RouterLink"),f=u&&typeof u!="string"?u.useLink:void 0,d=B(()=>{if(o.external)return!0;const v=o.to||o.href||"";return typeof v=="object"?!1:v===""||l.value}),p=B(()=>{const v=o.to||o.href||"";return d.value?v:r(v,i.resolve,o.trailingSlash)}),h=d.value||f==null?void 0:f({...o,to:p}),m=B(()=>{var g;const v=o.trailingSlash??e.trailingSlash;if(!p.value||l.value||n(p.value))return p.value;if(d.value){const b=typeof p.value=="object"&&"path"in p.value?Xh(p.value):p.value,y=typeof b=="object"?i.resolve(b).href:b;return tu(y,v)}return typeof p.value=="object"?((g=i.resolve(p.value))==null?void 0:g.href)??null:tu(go(a.app.baseURL,p.value),v)});return{to:p,hasTarget:c,isAbsoluteUrl:l,isExternal:d,href:m,isActive:(h==null?void 0:h.isActive)??B(()=>p.value===i.currentRoute.value.path),isExactActive:(h==null?void 0:h.isExactActive)??B(()=>p.value===i.currentRoute.value.path),route:(h==null?void 0:h.route)??B(()=>i.resolve(p.value)),async navigate(v){await Mt(m.value,{replace:o.replace,external:d.value||c.value})}}}return ke({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(o,{slots:i}){const a=lt(),{to:c,href:l,navigate:u,isExternal:f,hasTarget:d,isAbsoluteUrl:p}=s(o),h=Dn(!1),m=pe(null),v=y=>{var _;m.value=o.custom?(_=y==null?void 0:y.$el)==null?void 0:_.nextElementSibling:y==null?void 0:y.$el};function g(y){var _,w;return!h.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===y:((_=o.prefetchOn)==null?void 0:_[y])??((w=e.prefetchOn)==null?void 0:w[y]))&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!RN()}async function b(y=Ce()){if(h.value)return;h.value=!0;const _=typeof c.value=="string"?c.value:f.value?Xh(c.value):a.resolve(c.value).fullPath,w=f.value?new URL(_,window.location.href).href:_;await Promise.all([y.hooks.callHook("link:prefetch",w).catch(()=>{}),!f.value&&!d.value&&sT(c.value,a).catch(()=>{})])}if(g("visibility")){const y=Ce();let _,w=null;en(()=>{const S=ON();Md(()=>{_=am(()=>{var E;(E=m==null?void 0:m.value)!=null&&E.tagName&&(w=S.observe(m.value,async()=>{w==null||w(),w=null,await b(y)}))})})}),Ls(()=>{_&&uN(_),w==null||w(),w=null})}return()=>{var w;if(!f.value&&!d.value&&!n(c.value)){const S={ref:v,to:c.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(g("interaction")&&(S.onPointerenter=b.bind(null,void 0),S.onFocus=b.bind(null,void 0)),h.value&&(S.class=o.prefetchedClass||e.prefetchedClass),S.rel=o.rel||void 0),Lt(pr("RouterLink"),S,i.default)}const y=o.target||null,_=DN(o.noRel?"":o.rel,e.externalRelAttribute,p.value||d.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:l.value,navigate:u,prefetch:b,get route(){if(!l.value)return;const S=new URL(l.value,window.location.href);return{path:S.pathname,fullPath:S.pathname,get query(){return Td(S.search)},hash:S.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l.value}},rel:_,target:y,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:Lt("a",{ref:m,href:l.value||null,rel:_,target:y},(w=i.default)==null?void 0:w.call(i))}}})}const La=MN(dR);function tu(e,t){const n=t==="append"?tl:Zo;return ar(e)&&!e.startsWith("http")?e:n(e,!0)}function ON(){const e=Ce();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,i)=>(t||(t=new IntersectionObserver(a=>{for(const c of a){const l=n.get(c.target);(c.isIntersecting||c.intersectionRatio>0)&&l&&l()}})),n.set(o,i),t.observe(o),()=>{n.delete(o),t==null||t.unobserve(o),n.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:r}}const AN=/2g/;function RN(){const e=navigator.connection;return!!(e&&(e.saveData||AN.test(e.effectiveType)))}function PN(e){return{getItem:t=>cm(t,{...e??dn().public.piniaPluginPersistedstate.cookieOptions??{},decode:(e==null?void 0:e.decode)??decodeURIComponent,readonly:!0}).value,setItem:(t,n)=>cm(t,{...e??dn().public.piniaPluginPersistedstate.cookieOptions??{},encode:(e==null?void 0:e.encode)??encodeURIComponent}).value=n}}function LN(){return{getItem:e=>window.localStorage.getItem(e),setItem:(e,t)=>window.localStorage.setItem(e,t)}}function NN(){return{getItem:e=>window.sessionStorage.getItem(e),setItem:(e,t)=>window.sessionStorage.setItem(e,t)}}const Rc={cookies:PN,localStorage:LN,sessionStorage:NN};function FN(){return new Promise((e,t)=>{HN(n=>{n.type==="success"?e(n):t(n)})})}function HN(e){"geolocation"in navigator?navigator.geolocation.getCurrentPosition(t=>{e({type:"success",latitude:t.coords.latitude,longitude:t.coords.longitude})},t=>{console.error("Error getting Position from User:",t.message),e({type:"error",message:t.message})}):(console.error("Geolocation is not available"),e({type:"error",message:"Geolocation is not available"}))}function dhe(e,t){const n=e.lng,r=e.lat,s=t.lng,o=t.lat,i=6371,a=(o-r)*(Math.PI/180),c=(s-n)*(Math.PI/180),l=Math.sin(a/2)*Math.sin(a/2)+Math.cos(r*(Math.PI/180))*Math.cos(o*(Math.PI/180))*Math.sin(c/2)*Math.sin(c/2),u=2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l));return i*u}const Ad=qg("user",{persist:{storage:Rc.cookies({maxAge:60*60*24*365})},state:()=>({id:null,token:null,email:null,phone:null,firstName:null,lastName:null,allowLocation:null,latitude:null,longitude:null}),getters:{authed(){return!!this.id&&!!this.token},hasLocation(){return this.allowLocation&&!!this.latitude&&!!this.longitude}},actions:{reset(){this.$reset()},logOut(){const e=this.email;this.$reset(),this.email=e},resetLocation(){this.allowLocation=null,this.latitude=null,this.longitude=null},async getLocation(){try{const e=await FN();this.allowLocation=!0,this.latitude=e.latitude,this.longitude=e.longitude}catch(e){console.error("Error getting location:",e.message||e),this.allowLocation=!1,this.latitude=null,this.longitude=null}return!0}}});function an(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ru={exports:{}},BN=Ru.exports,Sb;function oT(){return Sb||(Sb=1,function(e,t){(function(n,r){e.exports=r()})(BN,function(){var n=1e3,r=6e4,s=36e5,o="millisecond",i="second",a="minute",c="hour",l="day",u="week",f="month",d="quarter",p="year",h="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(q){var F=["th","st","nd","rd"],R=q%100;return"["+q+(F[(R-20)%10]||F[R]||F[0])+"]"}},y=function(q,F,R){var V=String(q);return!V||V.length>=F?q:""+Array(F+1-V.length).join(R)+q},_={s:y,z:function(q){var F=-q.utcOffset(),R=Math.abs(F),V=Math.floor(R/60),U=R%60;return(F<=0?"+":"-")+y(V,2,"0")+":"+y(U,2,"0")},m:function q(F,R){if(F.date()1)return q(G[0])}else{var fe=F.name;S[fe]=F,U=fe}return!V&&U&&(w=U),U||!V&&w},x=function(q,F){if($(q))return q.clone();var R=typeof F=="object"?F:{};return R.date=q,R.args=arguments,new M(R)},L=_;L.l=T,L.i=$,L.w=function(q,F){return x(q,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var M=function(){function q(R){this.$L=T(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[E]=!0}var F=q.prototype;return F.parse=function(R){this.$d=function(V){var U=V.date,re=V.utc;if(U===null)return new Date(NaN);if(L.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var G=U.match(v);if(G){var fe=G[2]-1||0,ae=(G[7]||"0").substring(0,3);return re?new Date(Date.UTC(G[1],fe,G[3]||1,G[4]||0,G[5]||0,G[6]||0,ae)):new Date(G[1],fe,G[3]||1,G[4]||0,G[5]||0,G[6]||0,ae)}}return new Date(U)}(R),this.init()},F.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},F.$utils=function(){return L},F.isValid=function(){return this.$d.toString()!==m},F.isSame=function(R,V){var U=x(R);return this.startOf(V)<=U&&U<=this.endOf(V)},F.isAfter=function(R,V){return x(R)0,S<=w.r||!w.r){S<=1&&_>0&&(w=b[_-1]);var E=g[w.l];p&&(S=p(""+S)),m=typeof E=="string"?E.replace("%d",S):E(S,u,w.l,v);break}}if(u)return m;var $=v?g.future:g.past;return typeof $=="function"?$(m):$.replace("%s",m)},o.to=function(l,u){return a(l,u,this,!0)},o.from=function(l,u){return a(l,u,this)};var c=function(l){return l.$u?s.utc():s()};o.toNow=function(l){return this.to(c(this),l)},o.fromNow=function(l){return this.from(c(this),l)}}})}(Hu)),Hu.exports}var n2=t2();const r2=an(n2);var Bu={exports:{}},s2=Bu.exports,xb;function o2(){return xb||(xb=1,function(e,t){(function(n,r){e.exports=r()})(s2,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(o,i,a){var c=i.prototype;a.utc=function(m){var v={date:m,utc:!0,args:arguments};return new i(v)},c.utc=function(m){var v=a(this.toDate(),{locale:this.$L,utc:!0});return m?v.add(this.utcOffset(),n):v},c.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var l=c.parse;c.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),l.call(this,m)};var u=c.init;c.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else u.call(this)};var f=c.utcOffset;c.utcOffset=function(m,v){var g=this.$utils().u;if(g(m))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof m=="string"&&(m=function(w){w===void 0&&(w="");var S=w.match(r);if(!S)return null;var E=(""+S[0]).match(s)||["-",0,0],$=E[0],T=60*+E[1]+ +E[2];return T===0?0:$==="+"?T:-T}(m),m===null))return this;var b=Math.abs(m)<=16?60*m:m,y=this;if(v)return y.$offset=b,y.$u=m===0,y;if(m!==0){var _=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(y=this.local().add(b+_,n)).$offset=b,y.$x.$localOffset=_}else y=this.utc();return y};var d=c.format;c.format=function(m){var v=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,v)},c.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var p=c.toDate;c.toDate=function(m){return m==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var h=c.diff;c.diff=function(m,v,g){if(m&&this.$u===m.$u)return h.call(this,m,v,g);var b=this.local(),y=a(m).local();return h.call(b,y,v,g)}}})}(Bu)),Bu.exports}var i2=o2();const a2=an(i2);var Uu={exports:{}},c2=Uu.exports,Cb;function l2(){return Cb||(Cb=1,function(e,t){(function(n,r){e.exports=r()})(c2,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(s,o,i){var a,c=function(d,p,h){h===void 0&&(h={});var m=new Date(d),v=function(g,b){b===void 0&&(b={});var y=b.timeZoneName||"short",_=g+"|"+y,w=r[_];return w||(w=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:g,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:y}),r[_]=w),w}(p,h);return v.formatToParts(m)},l=function(d,p){for(var h=c(d,p),m=[],v=0;v=0&&(m[_]=parseInt(y,10))}var w=m[3],S=w===24?0:w,E=m[0]+"-"+m[1]+"-"+m[2]+" "+S+":"+m[4]+":"+m[5]+":000",$=+d;return(i.utc(E).valueOf()-($-=$%1e3))/6e4},u=o.prototype;u.tz=function(d,p){d===void 0&&(d=a);var h,m=this.utcOffset(),v=this.toDate(),g=v.toLocaleString("en-US",{timeZone:d}),b=Math.round((v-new Date(g))/1e3/60),y=15*-Math.round(v.getTimezoneOffset()/15)-b;if(!Number(y))h=this.utcOffset(0,p);else if(h=i(g,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(y,!0),p){var _=h.utcOffset();h=h.add(m-_,"minute")}return h.$x.$timezone=d,h},u.offsetName=function(d){var p=this.$x.$timezone||i.tz.guess(),h=c(this.valueOf(),p,{timeZoneName:d}).find(function(m){return m.type.toLowerCase()==="timezonename"});return h&&h.value};var f=u.startOf;u.startOf=function(d,p){if(!this.$x||!this.$x.$timezone)return f.call(this,d,p);var h=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return f.call(h,d,p).tz(this.$x.$timezone,!0)},i.tz=function(d,p,h){var m=h&&p,v=h||p||a,g=l(+i(),v);if(typeof d!="string")return i(d).tz(v);var b=function(S,E,$){var T=S-60*E*1e3,x=l(T,$);if(E===x)return[T,E];var L=l(T-=60*(x-E)*1e3,$);return x===L?[T,x]:[S-60*Math.min(x,L)*1e3,Math.max(x,L)]}(i.utc(d,m).valueOf(),g,v),y=b[0],_=b[1],w=i(y).utcOffset(_);return w.$x.$timezone=v,w},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(d){a=d}}})}(Uu)),Uu.exports}var u2=l2();const f2=an(u2);var ju={exports:{}},d2=ju.exports,Db;function p2(){return Db||(Db=1,function(e,t){(function(n,r){e.exports=r()})(d2,function(){return function(n,r){r.prototype.weekday=function(s){var o=this.$locale().weekStart||0,i=this.$W,a=(i25){var u=i(this).startOf(r).add(1,r).date(l),f=i(this).endOf(n);if(u.isBefore(f))return 1}var d=i(this).startOf(r).date(l).startOf(n).subtract(1,"millisecond"),p=this.diff(d,n,!0);return p<0?i(this).startOf("week").week():Math.ceil(p)},a.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})}(Yu)),Yu.exports}var y2=v2();const _2=an(y2);var Wu={exports:{}},b2=Wu.exports,Ob;function w2(){return Ob||(Ob=1,function(e,t){(function(n,r){e.exports=r()})(b2,function(){var n="day";return function(r,s,o){var i=function(l){return l.add(4-l.isoWeekday(),n)},a=s.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(l){if(!this.$utils().u(l))return this.add(7*(l-this.isoWeek()),n);var u,f,d,p,h=i(this),m=(u=this.isoWeekYear(),f=this.$u,d=(f?o.utc:o)().year(u).startOf("year"),p=4-d.isoWeekday(),d.isoWeekday()>4&&(p+=7),d.add(p,n));return h.diff(m,"week")+1},a.isoWeekday=function(l){return this.$utils().u(l)?this.day()||7:this.day(this.day()%7?l:l-7)};var c=a.startOf;a.startOf=function(l,u){var f=this.$utils(),d=!!f.u(u)||u;return f.p(l)==="isoweek"?d?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(l,u)}}})}(Wu)),Wu.exports}var S2=w2();const E2=an(S2);var Vu={exports:{}},k2=Vu.exports,Ab;function T2(){return Ab||(Ab=1,function(e,t){(function(n,r){e.exports=r()})(k2,function(){return function(n,r){var s=r.prototype,o=s.format;s.format=function(i){var a=this,c=this.$locale();if(!this.isValid())return o.bind(this)(i);var l=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return c.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return c.ordinal(a.week(),"W");case"w":case"ww":return l.s(a.week(),f==="w"?1:2,"0");case"W":case"WW":return l.s(a.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return l.s(String(a.$H===0?24:a.$H),f==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return f}});return o.bind(this)(u)}}})}(Vu)),Vu.exports}var $2=T2();const I2=an($2);var zu={exports:{}},x2=zu.exports,Rb;function C2(){return Rb||(Rb=1,function(e,t){(function(n,r){e.exports=r()})(x2,function(){return function(n,r,s){r.prototype.isToday=function(){var o="YYYY-MM-DD",i=s();return this.format(o)===i.format(o)}}})}(zu)),zu.exports}var D2=C2();const M2=an(D2);var qu={exports:{}},O2=qu.exports,Pb;function A2(){return Pb||(Pb=1,function(e,t){(function(n,r){e.exports=r()})(O2,function(){return function(n,r,s){r.prototype.isTomorrow=function(){var o="YYYY-MM-DD",i=s().add(1,"day");return this.format(o)===i.format(o)}}})}(qu)),qu.exports}var R2=A2();const P2=an(R2);var Ku={exports:{}},L2=Ku.exports,Lb;function N2(){return Lb||(Lb=1,function(e,t){(function(n,r){e.exports=r()})(L2,function(){return function(n,r){r.prototype.isSameOrAfter=function(s,o){return this.isSame(s,o)||this.isAfter(s,o)}}})}(Ku)),Ku.exports}var F2=N2();const H2=an(F2);var Gu={exports:{}},B2=Gu.exports,Nb;function U2(){return Nb||(Nb=1,function(e,t){(function(n,r){e.exports=r()})(B2,function(){return function(n,r){r.prototype.isSameOrBefore=function(s,o){return this.isSame(s,o)||this.isBefore(s,o)}}})}(Gu)),Gu.exports}var j2=U2();const Y2=an(j2);var Xu={exports:{}},W2=Xu.exports,Fb;function V2(){return Fb||(Fb=1,function(e,t){(function(n,r){e.exports=r()})(W2,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,o=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,c={},l=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(g){this[v]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var b=g.match(/([+-]|\d\d)/g),y=60*b[1]+(+b[2]||0);return y===0?0:b[0]==="+"?-y:y}(v)}],d=function(v){var g=c[v];return g&&(g.indexOf?g:g.s.concat(g.f))},p=function(v,g){var b,y=c.meridiem;if(y){for(var _=1;_<=24;_+=1)if(v.indexOf(y(_,0,g))>-1){b=_>12;break}}else b=v===(g?"pm":"PM");return b},h={A:[a,function(v){this.afternoon=p(v,!1)}],a:[a,function(v){this.afternoon=p(v,!0)}],Q:[s,function(v){this.month=3*(v-1)+1}],S:[s,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[o,u("day")],Do:[a,function(v){var g=c.ordinal,b=v.match(/\d+/);if(this.day=b[0],g)for(var y=1;y<=31;y+=1)g(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],w:[i,u("week")],ww:[o,u("week")],M:[i,u("month")],MM:[o,u("month")],MMM:[a,function(v){var g=d("months"),b=(d("monthsShort")||g.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[a,function(v){var g=d("months").indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function m(v){var g,b;g=v,b=c&&c.formats;for(var y=(v=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,L,M){var j=M&&M.toUpperCase();return L||b[M]||n[M]||b[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,F,R){return F||R.slice(1)})})).match(r),_=y.length,w=0;w<_;w+=1){var S=y[w],E=h[S],$=E&&E[0],T=E&&E[1];y[w]=T?{regex:$,parser:T}:S.replace(/^\[|\]$/g,"")}return function(x){for(var L={},M=0,j=0;M<_;M+=1){var q=y[M];if(typeof q=="string")j+=q.length;else{var F=q.regex,R=q.parser,V=x.slice(j),U=F.exec(V)[0];R.call(L,U),x=x.replace(U,"")}}return function(re){var G=re.afternoon;if(G!==void 0){var fe=re.hours;G?fe<12&&(re.hours+=12):fe===12&&(re.hours=0),delete re.afternoon}}(L),L}}return function(v,g,b){b.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(l=v.parseTwoDigitYear);var y=g.prototype,_=y.parse;y.parse=function(w){var S=w.date,E=w.utc,$=w.args;this.$u=E;var T=$[1];if(typeof T=="string"){var x=$[2]===!0,L=$[3]===!0,M=x||L,j=$[2];L&&(j=$[2]),c=this.$locale(),!x&&j&&(c=b.Ls[j]),this.$d=function(V,U,re,G){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*V);var fe=m(U)(V),ae=fe.year,Ee=fe.month,ve=fe.day,Pe=fe.hours,Le=fe.minutes,J=fe.seconds,ce=fe.milliseconds,ie=fe.zone,ue=fe.week,be=new Date,Ie=ve||(ae||Ee?1:be.getDate()),C=ae||be.getFullYear(),O=0;ae&&!Ee||(O=Ee>0?Ee-1:be.getMonth());var W,ne=Pe||0,ee=Le||0,I=J||0,D=ce||0;return ie?new Date(Date.UTC(C,O,Ie,ne,ee,I,D+60*ie.offset*1e3)):re?new Date(Date.UTC(C,O,Ie,ne,ee,I,D)):(W=new Date(C,O,Ie,ne,ee,I,D),ue&&(W=G(W).week(ue).toDate()),W)}catch{return new Date("")}}(S,T,E,b),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),M&&S!=this.format(T)&&(this.$d=new Date("")),c={}}else if(T instanceof Array)for(var q=T.length,F=1;F<=q;F+=1){$[1]=T[F-1];var R=b.apply(this,$);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}F===q&&(this.$d=new Date(""))}else _.call(this,w)}}})}(Xu)),Xu.exports}var z2=V2();const q2=an(z2);var Ju={exports:{}},K2=Ju.exports,Hb;function G2(){return Hb||(Hb=1,function(e,t){(function(n,r){e.exports=r()})(K2,function(){return function(n,r,s){r.prototype.isBetween=function(o,i,a,c){var l=s(o),u=s(i),f=(c=c||"()")[0]==="(",d=c[1]===")";return(f?this.isAfter(l,a):!this.isBefore(l,a))&&(d?this.isBefore(u,a):!this.isAfter(u,a))||(f?this.isBefore(l,a):!this.isAfter(l,a))&&(d?this.isAfter(u,a):!this.isBefore(u,a))}}})}(Ju)),Ju.exports}var X2=G2();const J2=an(X2);Bt.extend(VN);Bt.extend(QN);Bt.extend(r2);Bt.extend(a2);Bt.extend(f2);Bt.extend(m2);Bt.extend(_2);Bt.extend(E2);Bt.extend(I2);Bt.extend(M2);Bt.extend(P2);Bt.extend(H2);Bt.extend(Y2);Bt.extend(q2);Bt.extend(J2);Bt.tz.setDefault("Europe/Stockholm");Bt.updateLocale("sv");Bt.locale("sv");function us(){return Bt}function ev(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let li=ev();function iT(e){li=e}const aT=/[&<>"']/,Z2=new RegExp(aT.source,"g"),cT=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Q2=new RegExp(cT.source,"g"),eF={"&":"&","<":"<",">":">",'"':""","'":"'"},Bb=e=>eF[e];function Nn(e,t){if(t){if(aT.test(e))return e.replace(Z2,Bb)}else if(cT.test(e))return e.replace(Q2,Bb);return e}const tF=/(^|[^\[])\^/g;function ut(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(s,o)=>{let i=typeof o=="string"?o:o.source;return i=i.replace(tF,"$1"),n=n.replace(s,i),r},getRegex:()=>new RegExp(n,t)};return r}function Ub(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Pc={exec:()=>null};function jb(e,t){const n=e.replace(/\|/g,(o,i,a)=>{let c=!1,l=i;for(;--l>=0&&a[l]==="\\";)c=!c;return c?"|":" |"}),r=n.split(/ \|/);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length{const o=s.match(/^\s+/);if(o===null)return s;const[i]=o;return i.length>=r.length?s.slice(r.length):s}).join(` `)}class Df{constructor(t){Be(this,"options");Be(this,"rules");Be(this,"lexer");this.options=t||li}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:ac(r,` `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],s=rF(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const s=ac(r,"#");(this.options.pedantic||!s||/ $/.test(s))&&(r=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:ac(n[0],` `)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=ac(n[0],` `).split(` `),s="",o="";const i=[];for(;r.length>0;){let a=!1;const c=[];let l;for(l=0;l/.test(r[l]))c.push(r[l]),a=!0;else if(!a)c.push(r[l]);else break;r=r.slice(l);const u=c.join(` `),f=u.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` $1`).replace(/^ {0,3}>[ \t]?/gm,"");s=s?`${s} ${u}`:u,o=o?`${o} ${f}`:f;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,i,!0),this.lexer.state.top=d,r.length===0)break;const p=i[i.length-1];if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){const h=p,m=h.raw+` `+r.join(` `),v=this.blockquote(m);i[i.length-1]=v,s=s.substring(0,s.length-h.raw.length)+v.raw,o=o.substring(0,o.length-h.text.length)+v.text;break}else if((p==null?void 0:p.type)==="list"){const h=p,m=h.raw+` `+r.join(` `),v=this.list(m);i[i.length-1]=v,s=s.substring(0,s.length-p.raw.length)+v.raw,o=o.substring(0,o.length-h.raw.length)+v.raw,r=m.substring(i[i.length-1].raw.length).split(` `);continue}}return{type:"blockquote",raw:s,tokens:i,text:o}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const s=r.length>1,o={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const i=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let a=!1;for(;t;){let c=!1,l="",u="";if(!(n=i.exec(t))||this.rules.block.hr.test(t))break;l=n[0],t=t.substring(l.length);let f=n[2].split(` `,1)[0].replace(/^\t+/,g=>" ".repeat(3*g.length)),d=t.split(` `,1)[0],p=!f.trim(),h=0;if(this.options.pedantic?(h=2,u=f.trimStart()):p?h=n[1].length+1:(h=n[2].search(/[^ ]/),h=h>4?1:h,u=f.slice(h),h+=n[1].length),p&&/^[ \t]*$/.test(d)&&(l+=d+` `,t=t.substring(d.length+1),c=!0),!c){const g=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),b=new RegExp(`^ {0,${Math.min(3,h-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),y=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:\`\`\`|~~~)`),_=new RegExp(`^ {0,${Math.min(3,h-1)}}#`),w=new RegExp(`^ {0,${Math.min(3,h-1)}}<(?:[a-z].*>|!--)`,"i");for(;t;){const S=t.split(` `,1)[0];let E;if(d=S,this.options.pedantic?(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),E=d):E=d.replace(/\t/g," "),y.test(d)||_.test(d)||w.test(d)||g.test(d)||b.test(d))break;if(E.search(/[^ ]/)>=h||!d.trim())u+=` `+E.slice(h);else{if(p||f.replace(/\t/g," ").search(/[^ ]/)>=4||y.test(f)||_.test(f)||b.test(f))break;u+=` `+d}!p&&!d.trim()&&(p=!0),l+=S+` `,t=t.substring(S.length+1),f=E.slice(h)}}o.loose||(a?o.loose=!0:/\n[ \t]*\n[ \t]*$/.test(l)&&(a=!0));let m=null,v;this.options.gfm&&(m=/^\[[ xX]\] /.exec(u),m&&(v=m[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),o.items.push({type:"list_item",raw:l,task:!!m,checked:v,loose:!1,text:u,tokens:[]}),o.raw+=l}o.items[o.items.length-1].raw=o.items[o.items.length-1].raw.trimEnd(),o.items[o.items.length-1].text=o.items[o.items.length-1].text.trimEnd(),o.raw=o.raw.trimEnd();for(let c=0;cf.type==="space"),u=l.length>0&&l.some(f=>/\n.*\n/.test(f.raw));o.loose=u}if(o.loose)for(let c=0;c$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:s,title:o}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const r=jb(n[1]),s=n[2].replace(/^\||\| *$/g,"").split("|"),o=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(` `):[],i={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const a of s)/^ *-+: *$/.test(a)?i.align.push("right"):/^ *:-+: *$/.test(a)?i.align.push("center"):/^ *:-+ *$/.test(a)?i.align.push("left"):i.align.push(null);for(let a=0;a({text:c,tokens:this.lexer.inline(c),header:!1,align:i.align[l]})));return i}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===` `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Nn(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const i=ac(r.slice(0,-1),"\\");if((r.length-i.length)%2===0)return}else{const i=nF(n[2],"()");if(i>-1){const c=(n[0].indexOf("!")===0?5:4)+n[1].length+i;n[2]=n[2].substring(0,i),n[0]=n[0].substring(0,c).trim(),n[3]=""}}let s=n[2],o="";if(this.options.pedantic){const i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);i&&(s=i[1],o=i[3])}else o=n[3]?n[3].slice(1,-1):"";return s=s.trim(),/^$/.test(r)?s=s.slice(1):s=s.slice(1,-1)),Yb(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const s=(r[2]||r[1]).replace(/\s+/g," "),o=n[s.toLowerCase()];if(!o){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return Yb(r,o,r[0],this.lexer)}}emStrong(t,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!s||s[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const i=[...s[0]].length-1;let a,c,l=i,u=0;const f=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+i);(s=f.exec(n))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(c=[...a].length,s[3]||s[4]){l+=c;continue}else if((s[5]||s[6])&&i%3&&!((i+c)%3)){u+=c;continue}if(l-=c,l>0)continue;c=Math.min(c,c+l+u);const d=[...s[0]][0].length,p=t.slice(0,i+s.index+d+c);if(Math.min(i,c)%2){const m=p.slice(1,-1);return{type:"em",raw:p,text:m,tokens:this.lexer.inlineTokens(m)}}const h=p.slice(2,-2);return{type:"strong",raw:p,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const s=/[^ ]/.test(r),o=/^ /.test(r)&&/ $/.test(r);return s&&o&&(r=r.substring(1,r.length-1)),r=Nn(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,s;return n[2]==="@"?(r=Nn(n[1]),s="mailto:"+r):(r=Nn(n[1]),s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let s,o;if(n[2]==="@")s=Nn(n[0]),o="mailto:"+s;else{let i;do i=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(i!==n[0]);s=Nn(n[0]),n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Nn(n[0]),{type:"text",raw:n[0],text:r}}}}const sF=/^(?:[ \t]*(?:\n|$))+/,oF=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,iF=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Tl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,aF=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,lT=/(?:[*+-]|\d{1,9}[.)])/,uT=ut(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,lT).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),tv=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,cF=/^[^\n]+/,nv=/(?!\s*\])(?:\\.|[^\[\]\\])+/,lF=ut(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",nv).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),uF=ut(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,lT).getRegex(),Rd="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",rv=/|$))/,fF=ut("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",rv).replace("tag",Rd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fT=ut(tv).replace("hr",Tl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Rd).getRegex(),dF=ut(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",fT).getRegex(),sv={blockquote:dF,code:oF,def:lF,fences:iF,heading:aF,hr:Tl,html:fF,lheading:uT,list:uF,newline:sF,paragraph:fT,table:Pc,text:cF},Wb=ut("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Tl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Rd).getRegex(),pF={...sv,table:Wb,paragraph:ut(tv).replace("hr",Tl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Rd).getRegex()},hF={...sv,html:ut(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",rv).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Pc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ut(tv).replace("hr",Tl).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",uT).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},dT=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mF=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,pT=/^( {2,}|\\)\n(?!\s*$)/,gF=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,_F=ut(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,$l).getRegex(),bF=ut("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,$l).getRegex(),wF=ut("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,$l).getRegex(),SF=ut(/\\([punct])/,"gu").replace(/punct/g,$l).getRegex(),EF=ut(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),kF=ut(rv).replace("(?:-->|$)","-->").getRegex(),TF=ut("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",kF).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Mf=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$F=ut(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Mf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),hT=ut(/^!?\[(label)\]\[(ref)\]/).replace("label",Mf).replace("ref",nv).getRegex(),mT=ut(/^!?\[(ref)\](?:\[\])?/).replace("ref",nv).getRegex(),IF=ut("reflink|nolink(?!\\()","g").replace("reflink",hT).replace("nolink",mT).getRegex(),ov={_backpedal:Pc,anyPunctuation:SF,autolink:EF,blockSkip:yF,br:pT,code:mF,del:Pc,emStrongLDelim:_F,emStrongRDelimAst:bF,emStrongRDelimUnd:wF,escape:dT,link:$F,nolink:mT,punctuation:vF,reflink:hT,reflinkSearch:IF,tag:TF,text:gF,url:Pc},xF={...ov,link:ut(/^!?\[(label)\]\((.*?)\)/).replace("label",Mf).getRegex(),reflink:ut(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Mf).getRegex()},lm={...ov,escape:ut(dT).replace("])","~|])").getRegex(),url:ut(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\(s=a.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))){if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length),s.raw.length===1&&n.length>0?n[n.length-1].raw+=` `:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length),o=n[n.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=` `+s.raw,o.text+=` `+s.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length),o=n[n.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=` `+s.raw,o.text+=` `+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(i=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const c=t.slice(1);let l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},c),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(i=t.substring(0,a+1))}if(this.state.top&&(s=this.tokenizer.paragraph(i))){o=n[n.length-1],r&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=` `+s.raw,o.text+=` `+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(s),r=i.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length),o=n[n.length-1],o&&o.type==="text"?(o.raw+=` `+s.raw,o.text+=` `+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(s);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,s,o,i=t,a,c,l;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,a.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(c||(l=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(r=u.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&r.type==="text"&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),s=n[n.length-1],s&&r.type==="text"&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,i,l)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(o=t,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const f=t.slice(1);let d;this.options.extensions.startInline.forEach(p=>{d=p.call({lexer:this},f),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(o=t.substring(0,u+1))}if(r=this.tokenizer.inlineText(o)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(l=r.raw.slice(-1)),c=!0,s=n[n.length-1],s&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return n}}class Of{constructor(t){Be(this,"options");Be(this,"parser");this.options=t||li}space(t){return""}code({text:t,lang:n,escaped:r}){var i;const s=(i=(n||"").match(/^\S*/))==null?void 0:i[0],o=t.replace(/\n$/,"")+` `;return s?'
'+(r?o:Nn(o,!0))+`
`:"
"+(r?o:Nn(o,!0))+`
`}blockquote({tokens:t}){return`
${this.parser.parse(t)}
`}html({text:t}){return t}heading({tokens:t,depth:n}){return`${this.parser.parseInline(t)} `}hr(t){return`
`}list(t){const n=t.ordered,r=t.start;let s="";for(let a=0;a `+s+" `}listitem(t){let n="";if(t.task){const r=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&t.tokens[0].type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" "}):n+=r+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`
  • ${n}
  • `}checkbox({checked:t}){return"'}paragraph({tokens:t}){return`

    ${this.parser.parseInline(t)}

    `}table(t){let n="",r="";for(let o=0;o${s}`),` `+n+` `+s+`
    `}tablerow({text:t}){return` ${t} `}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+` `}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${t}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:n,tokens:r}){const s=this.parser.parseInline(r),o=Ub(t);if(o===null)return s;t=o;let i='
    ",i}image({href:t,title:n,text:r}){const s=Ub(t);if(s===null)return r;t=s;let o=`${r}{const l=a[c].flat(1/0);r=r.concat(this.walkTokens(l,n))}):a.tokens&&(r=r.concat(this.walkTokens(a.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const i=n.renderers[o.name];i?n.renderers[o.name]=function(...a){let c=o.renderer.apply(this,a);return c===!1&&(c=i.apply(this,a)),c}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=n[o.level];i?i.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),s.extensions=n),r.renderer){const o=this.defaults.renderer||new Of(this.defaults);for(const i in r.renderer){if(!(i in o))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;const a=i,c=r.renderer[a],l=o[a];o[a]=(...u)=>{let f=c.apply(o,u);return f===!1&&(f=l.apply(o,u)),f||""}}s.renderer=o}if(r.tokenizer){const o=this.defaults.tokenizer||new Df(this.defaults);for(const i in r.tokenizer){if(!(i in o))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const a=i,c=r.tokenizer[a],l=o[a];o[a]=(...u)=>{let f=c.apply(o,u);return f===!1&&(f=l.apply(o,u)),f}}s.tokenizer=o}if(r.hooks){const o=this.defaults.hooks||new Lc;for(const i in r.hooks){if(!(i in o))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;const a=i,c=r.hooks[a],l=o[a];Lc.passThroughHooks.has(i)?o[a]=u=>{if(this.defaults.async)return Promise.resolve(c.call(o,u)).then(d=>l.call(o,d));const f=c.call(o,u);return l.call(o,f)}:o[a]=(...u)=>{let f=c.apply(o,u);return f===!1&&(f=l.apply(o,u)),f}}s.hooks=o}if(r.walkTokens){const o=this.defaults.walkTokens,i=r.walkTokens;s.walkTokens=function(a){let c=[];return c.push(i.call(this,a)),o&&(c=c.concat(o.call(this,a))),c}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Xn.lex(t,n??this.defaults)}parser(t,n){return Jn.parse(t,n??this.defaults)}parseMarkdown(t){return(r,s)=>{const o={...s},i={...this.defaults,...o},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&o.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=t);const c=i.hooks?i.hooks.provideLexer():t?Xn.lex:Xn.lexInline,l=i.hooks?i.hooks.provideParser():t?Jn.parse:Jn.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(r):r).then(u=>c(u,i)).then(u=>i.hooks?i.hooks.processAllTokens(u):u).then(u=>i.walkTokens?Promise.all(this.walkTokens(u,i.walkTokens)).then(()=>u):u).then(u=>l(u,i)).then(u=>i.hooks?i.hooks.postprocess(u):u).catch(a);try{i.hooks&&(r=i.hooks.preprocess(r));let u=c(r,i);i.hooks&&(u=i.hooks.processAllTokens(u)),i.walkTokens&&this.walkTokens(u,i.walkTokens);let f=l(u,i);return i.hooks&&(f=i.hooks.postprocess(f)),f}catch(u){return a(u)}}}onError(t,n){return r=>{if(r.message+=` Please report this to https://github.com/markedjs/marked.`,t){const s="

    An error occurred:

    "+Nn(r.message+"",!0)+"
    ";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}}const Qo=new DF;function ot(e,t){return Qo.parse(e,t)}ot.options=ot.setOptions=function(e){return Qo.setOptions(e),ot.defaults=Qo.defaults,iT(ot.defaults),ot};ot.getDefaults=ev;ot.defaults=li;ot.use=function(...e){return Qo.use(...e),ot.defaults=Qo.defaults,iT(ot.defaults),ot};ot.walkTokens=function(e,t){return Qo.walkTokens(e,t)};ot.parseInline=Qo.parseInline;ot.Parser=Jn;ot.parser=Jn.parse;ot.Renderer=Of;ot.TextRenderer=iv;ot.Lexer=Xn;ot.lexer=Xn.lex;ot.Tokenizer=Df;ot.Hooks=Lc;ot.parse=ot;ot.options;ot.setOptions;ot.use;ot.walkTokens;ot.parseInline;Jn.parse;Xn.lex;function Pd(e=null){const t=dn().public;return e?t[e]:{...t}}function MF(e){return new Promise(t=>setTimeout(t,e))}function Zu(e=""){const t=CN();return`${t.protocol}//${t.host}${e}`}function phe(e=""){return e.charAt(0).toUpperCase()+e.slice(1)}function zr(e){const t=Et();lt().push({query:{...t.query,...e}})}function hhe(e){return/\S+@\S+\.\S+/.test(e)}function OF(e){const t=[];for(const n in e)if(e.hasOwnProperty(n)&&e[n]!==void 0){const r=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(r)}`)}return t.join("&")}function fa(e=""){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/['`´]/g,"").toLowerCase().replace(/ /g,"-")}function Vb(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/['`´]/g,"").toLowerCase()}function AF(e,t){if(!(e!=null&&e.length)||!e[0]||!e[0][t])return[];const n=new Set;return e.filter(r=>{const s=r[t];return n.has(s)?!1:(n.add(s),!0)})}function mhe(e){return ot.parse(e)}function zb(e){const t=us(),n=typeof e=="number"?t.unix(e):t(e),r=t.tz.guess();return n.tz(r)}function ghe(e,t=0){console.log("scrollToSection",e);const n=fa(e),r=document.getElementById(n);if(console.log("id",n),console.log("el",r),console.log("yOffset",t),r){const s=r.getBoundingClientRect().top+window.pageYOffset+t;window.scrollTo({top:s,behavior:"smooth"})}}const pn=qg("fat",{persist:{storage:Rc.cookies({maxAge:60*60*24*365})},state:()=>({status:"pending",total:0,date:new Date().toISOString().split("T")[0],amount:2,cityId:null,excludeEmpty:!0,startTime:null,endTime:null,preferredTime:null,latitude:null,longitude:null,distance:3e3,mealTypeIds:[],tagIds:[],restaurantIds:[],s:""}),getters:{pending(){return this.status==="pending"},timeRange(){return this.startTime&&this.endTime?`${this.startTime}-${this.endTime}`:null},city(){var t;const e=Ce().$configData;return(t=e==null?void 0:e.wa)==null?void 0:t.cities.find(n=>n.id===this.cityId)},cityIds(){var n;const e=Ce().$configData,t=(n=e==null?void 0:e.wa)==null?void 0:n.cities.find(r=>r.id===this.cityId);return t!=null&&t.relatedCityIds?[this.cityId,...t==null?void 0:t.relatedCityIds]:[this.cityId]},cityParts(){var r,s,o,i;const e=Ce().$configData,t=(r=e==null?void 0:e.wa)==null?void 0:r.tags,n=((s=this.city)==null?void 0:s.slug)==="stockholm"?8:((o=this.city)==null?void 0:o.slug)==="goteborg"?9:((i=this.city)==null?void 0:i.slug)==="malmo"?10:null;return t.filter(a=>a.groupId===n)},meal(){var t;const e=Ce().$configData;return(t=e==null?void 0:e.wa)==null?void 0:t.meals.find(n=>n.startTime===this.startTime&&n.endTime===this.endTime)},mealSlug(){var e;return((e=this.meal)==null?void 0:e.slug)||void 0},mealType(){var e;return((e=this.meal)==null?void 0:e.type)||void 0},defaultMealTypes(){return[0,1,2,3,4,5]},location(){return this.latitude&&this.longitude&&this.distance?`${this.latitude},${this.longitude},${this.distance}`:void 0},hasLocation(){return!!this.location},hasUserLocation(){const e=Ad();return this.hasLocation&&this.longitude===e.longitude&&this.latitude===e.latitude},mealTypes(){return this.tagIds.includes(176)?4:[1100,1101,1102,1103].some(e=>this.tagIds.includes(e))?11:this.mealTypeIds.length?this.mealTypeIds.join(","):this.defaultMealTypes.join(",")},altTypes(){const e=us();if(this.mealTypes===11){if(e(this.date).isBefore(e().add(7,"days"))&&this.tagIds.includes(1101))return 1;if(e(this.date).isToday()&&this.tagIds.includes(1102))return 2;if(e(this.date).isToday()&&this.tagIds.includes(1103))return 3}},tagIdsQuery(){var o,i,a,c,l,u,f,d,p,h;const e=cr(),t=(i=(o=e.tags)==null?void 0:o.filter(m=>m.groupId===7))==null?void 0:i.map(m=>m.id),n=(c=(a=e.tags)==null?void 0:a.filter(m=>m.groupId===2))==null?void 0:c.map(m=>m.id),r=(f=(u=(l=e.tags)==null?void 0:l.filter(m=>m.id!==176))==null?void 0:u.filter(m=>m.groupId===1))==null?void 0:f.map(m=>m.id),s=(p=(d=e.tags)==null?void 0:d.filter(m=>[8,9,10].includes(m.groupId)))==null?void 0:p.map(m=>m.id);if((h=this.tagIds)!=null&&h.length)return[this.tagIds.filter(m=>t.includes(m)).join(";"),this.tagIds.filter(m=>n.includes(m)).join(","),this.tagIds.filter(m=>r.includes(m)).join(","),this.tagIds.filter(m=>s.includes(m)).join(",")].filter(m=>!!m).join(";")},minDate(){return us()().format("YYYY-MM-DD")},maxDate(){return us()().add(90,"day").format("YYYY-MM-DD")}},actions:{resetTags(){zr({tagIds:void 0}),this.tagIds=[]},initFromConfig(){var r;const e=Ce().$configData,n=(((r=e==null?void 0:e.wa)==null?void 0:r.meals)??[]).find(s=>s.slug==="dinner");n&&!this.startTime&&!this.endTime&&(this.startTime=n.startTime,this.endTime=n.endTime,this.preferredTime=n.preferredTime)},setTimeRange(e,t){var n,r;this.startTime=e,this.endTime=t,(n=this.meal)!=null&&n.preferredTime&&(this.preferredTime=(r=this.meal)==null?void 0:r.preferredTime)},setPreferredTime(e){this.preferredTime=e},setPreferredTimeWithOffset(e,t=0){const n=us();this.preferredTime=e,t&&(this.startTime=n(e,"HH:mm").add(-t,"minutes").format("HH:mm"),this.endTime=n(e,"HH:mm").add(t,"minutes").format("HH:mm"))},setMealBySlug(e){var r,s;const t=Ce().$configData,n=(s=(r=t==null?void 0:t.wa)==null?void 0:r.meals)==null?void 0:s.find(o=>o.slug===e);this.setTimeRange(n==null?void 0:n.startTime,n==null?void 0:n.endTime),this.setPreferredTime(n==null?void 0:n.preferredTime)},setLocation(e=null,t=null,n=3e3){this.latitude=e,this.longitude=t,this.distance=n?parseInt(n):this.distance}}});/*! * shared v10.0.7 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */const Af=typeof window<"u",vo=(e,t=!1)=>t?Symbol.for(e):Symbol(e),RF=(e,t,n)=>PF({l:e,k:t,s:n}),PF=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ft=e=>typeof e=="number"&&isFinite(e),LF=e=>Nd(e)==="[object Date]",Rf=e=>Nd(e)==="[object RegExp]",Ld=e=>Je(e)&&Object.keys(e).length===0,wt=Object.assign,NF=Object.create,at=(e=null)=>NF(e);let qb;const av=()=>qb||(qb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:at());function Kb(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const FF=Object.prototype.hasOwnProperty;function vr(e,t){return FF.call(e,t)}const Ot=Array.isArray,ft=e=>typeof e=="function",he=e=>typeof e=="string",$t=e=>typeof e=="boolean",et=e=>e!==null&&typeof e=="object",HF=e=>et(e)&&ft(e.then)&&ft(e.catch),gT=Object.prototype.toString,Nd=e=>gT.call(e),Je=e=>Nd(e)==="[object Object]",BF=e=>e==null?"":Ot(e)||Je(e)&&e.toString===gT?JSON.stringify(e,null,2):String(e);function cv(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function UF(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ru=e=>!et(e)||Ot(e);function Ji(e,t){if(ru(e)||ru(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(et(r[o])&&!et(s[o])&&(s[o]=Array.isArray(r[o])?[]:at()),ru(s[o])||ru(r[o])?s[o]=r[o]:n.push({src:r[o],des:s[o]}))})}}/*! * message-compiler v10.0.7 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function jF(e,t,n){return{line:e,column:t,offset:n}}function um(e,t,n){return{start:e,end:t}}const st={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},YF=17;function Fd(e,t,n={}){const{domain:r,messages:s,args:o}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=r,a}function WF(e){throw e}const es=" ",VF="\r",yn=` `,zF="\u2028",qF="\u2029";function KF(e){const t=e;let n=0,r=1,s=1,o=0;const i=E=>t[E]===VF&&t[E+1]===yn,a=E=>t[E]===yn,c=E=>t[E]===qF,l=E=>t[E]===zF,u=E=>i(E)||a(E)||c(E)||l(E),f=()=>n,d=()=>r,p=()=>s,h=()=>o,m=E=>i(E)||c(E)||l(E)?yn:t[E],v=()=>m(n),g=()=>m(n+o);function b(){return o=0,u(n)&&(r++,s=0),i(n)&&n++,n++,s++,t[n]}function y(){return i(n+o)&&o++,o++,t[n+o]}function _(){n=0,r=1,s=1,o=0}function w(E=0){o=E}function S(){const E=n+o;for(;E!==n;)b();o=0}return{index:f,line:d,column:p,peekOffset:h,charAt:m,currentChar:v,currentPeek:g,next:b,peek:y,reset:_,resetPeek:w,skipToPeek:S}}const Us=void 0,GF=".",Gb="'",XF="tokenizer";function JF(e,t={}){const n=t.location!==!1,r=KF(e),s=()=>r.index(),o=()=>jF(r.line(),r.column(),r.index()),i=o(),a=s(),c={currentType:13,offset:a,startLoc:i,endLoc:i,lastType:13,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:u}=t;function f(I,D,N,...X){const K=l();if(D.column+=N,D.offset+=N,u){const te=n?um(K.startLoc,D):null,A=Fd(I,te,{domain:XF,args:X});u(A)}}function d(I,D,N){I.endLoc=o(),I.currentType=D;const X={type:D};return n&&(X.loc=um(I.startLoc,I.endLoc)),N!=null&&(X.value=N),X}const p=I=>d(I,13);function h(I,D){return I.currentChar()===D?(I.next(),D):(f(st.EXPECTED_TOKEN,o(),0,D),"")}function m(I){let D="";for(;I.currentPeek()===es||I.currentPeek()===yn;)D+=I.currentPeek(),I.peek();return D}function v(I){const D=m(I);return I.skipToPeek(),D}function g(I){if(I===Us)return!1;const D=I.charCodeAt(0);return D>=97&&D<=122||D>=65&&D<=90||D===95}function b(I){if(I===Us)return!1;const D=I.charCodeAt(0);return D>=48&&D<=57}function y(I,D){const{currentType:N}=D;if(N!==2)return!1;m(I);const X=g(I.currentPeek());return I.resetPeek(),X}function _(I,D){const{currentType:N}=D;if(N!==2)return!1;m(I);const X=I.currentPeek()==="-"?I.peek():I.currentPeek(),K=b(X);return I.resetPeek(),K}function w(I,D){const{currentType:N}=D;if(N!==2)return!1;m(I);const X=I.currentPeek()===Gb;return I.resetPeek(),X}function S(I,D){const{currentType:N}=D;if(N!==7)return!1;m(I);const X=I.currentPeek()===".";return I.resetPeek(),X}function E(I,D){const{currentType:N}=D;if(N!==8)return!1;m(I);const X=g(I.currentPeek());return I.resetPeek(),X}function $(I,D){const{currentType:N}=D;if(!(N===7||N===11))return!1;m(I);const X=I.currentPeek()===":";return I.resetPeek(),X}function T(I,D){const{currentType:N}=D;if(N!==9)return!1;const X=()=>{const te=I.currentPeek();return te==="{"?g(I.peek()):te==="@"||te==="|"||te===":"||te==="."||te===es||!te?!1:te===yn?(I.peek(),X()):L(I,!1)},K=X();return I.resetPeek(),K}function x(I){m(I);const D=I.currentPeek()==="|";return I.resetPeek(),D}function L(I,D=!0){const N=(K=!1,te="")=>{const A=I.currentPeek();return A==="{"||A==="@"||!A?K:A==="|"?!(te===es||te===yn):A===es?(I.peek(),N(!0,es)):A===yn?(I.peek(),N(!0,yn)):!0},X=N();return D&&I.resetPeek(),X}function M(I,D){const N=I.currentChar();return N===Us?Us:D(N)?(I.next(),N):null}function j(I){const D=I.charCodeAt(0);return D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===95||D===36}function q(I){return M(I,j)}function F(I){const D=I.charCodeAt(0);return D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===95||D===36||D===45}function R(I){return M(I,F)}function V(I){const D=I.charCodeAt(0);return D>=48&&D<=57}function U(I){return M(I,V)}function re(I){const D=I.charCodeAt(0);return D>=48&&D<=57||D>=65&&D<=70||D>=97&&D<=102}function G(I){return M(I,re)}function fe(I){let D="",N="";for(;D=U(I);)N+=D;return N}function ae(I){let D="";for(;;){const N=I.currentChar();if(N==="{"||N==="}"||N==="@"||N==="|"||!N)break;if(N===es||N===yn)if(L(I))D+=N,I.next();else{if(x(I))break;D+=N,I.next()}else D+=N,I.next()}return D}function Ee(I){v(I);let D="",N="";for(;D=R(I);)N+=D;return I.currentChar()===Us&&f(st.UNTERMINATED_CLOSING_BRACE,o(),0),N}function ve(I){v(I);let D="";return I.currentChar()==="-"?(I.next(),D+=`-${fe(I)}`):D+=fe(I),I.currentChar()===Us&&f(st.UNTERMINATED_CLOSING_BRACE,o(),0),D}function Pe(I){return I!==Gb&&I!==yn}function Le(I){v(I),h(I,"'");let D="",N="";for(;D=M(I,Pe);)D==="\\"?N+=J(I):N+=D;const X=I.currentChar();return X===yn||X===Us?(f(st.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),X===yn&&(I.next(),h(I,"'")),N):(h(I,"'"),N)}function J(I){const D=I.currentChar();switch(D){case"\\":case"'":return I.next(),`\\${D}`;case"u":return ce(I,D,4);case"U":return ce(I,D,6);default:return f(st.UNKNOWN_ESCAPE_SEQUENCE,o(),0,D),""}}function ce(I,D,N){h(I,D);let X="";for(let K=0;K{const X=I.currentChar();return X==="{"||X==="@"||X==="|"||X==="("||X===")"||!X||X===es?N:(N+=X,I.next(),D(N))};return D("")}function C(I){v(I);const D=h(I,"|");return v(I),D}function O(I,D){let N=null;switch(I.currentChar()){case"{":return D.braceNest>=1&&f(st.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),I.next(),N=d(D,2,"{"),v(I),D.braceNest++,N;case"}":return D.braceNest>0&&D.currentType===2&&f(st.EMPTY_PLACEHOLDER,o(),0),I.next(),N=d(D,3,"}"),D.braceNest--,D.braceNest>0&&v(I),D.inLinked&&D.braceNest===0&&(D.inLinked=!1),N;case"@":return D.braceNest>0&&f(st.UNTERMINATED_CLOSING_BRACE,o(),0),N=W(I,D)||p(D),D.braceNest=0,N;default:{let K=!0,te=!0,A=!0;if(x(I))return D.braceNest>0&&f(st.UNTERMINATED_CLOSING_BRACE,o(),0),N=d(D,1,C(I)),D.braceNest=0,D.inLinked=!1,N;if(D.braceNest>0&&(D.currentType===4||D.currentType===5||D.currentType===6))return f(st.UNTERMINATED_CLOSING_BRACE,o(),0),D.braceNest=0,ne(I,D);if(K=y(I,D))return N=d(D,4,Ee(I)),v(I),N;if(te=_(I,D))return N=d(D,5,ve(I)),v(I),N;if(A=w(I,D))return N=d(D,6,Le(I)),v(I),N;if(!K&&!te&&!A)return N=d(D,12,ue(I)),f(st.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,N.value),v(I),N;break}}return N}function W(I,D){const{currentType:N}=D;let X=null;const K=I.currentChar();switch((N===7||N===8||N===11||N===9)&&(K===yn||K===es)&&f(st.INVALID_LINKED_FORMAT,o(),0),K){case"@":return I.next(),X=d(D,7,"@"),D.inLinked=!0,X;case".":return v(I),I.next(),d(D,8,".");case":":return v(I),I.next(),d(D,9,":");default:return x(I)?(X=d(D,1,C(I)),D.braceNest=0,D.inLinked=!1,X):S(I,D)||$(I,D)?(v(I),W(I,D)):E(I,D)?(v(I),d(D,11,be(I))):T(I,D)?(v(I),K==="{"?O(I,D)||X:d(D,10,Ie(I))):(N===7&&f(st.INVALID_LINKED_FORMAT,o(),0),D.braceNest=0,D.inLinked=!1,ne(I,D))}}function ne(I,D){let N={type:13};if(D.braceNest>0)return O(I,D)||p(D);if(D.inLinked)return W(I,D)||p(D);switch(I.currentChar()){case"{":return O(I,D)||p(D);case"}":return f(st.UNBALANCED_CLOSING_BRACE,o(),0),I.next(),d(D,3,"}");case"@":return W(I,D)||p(D);default:{if(x(I))return N=d(D,1,C(I)),D.braceNest=0,D.inLinked=!1,N;if(L(I))return d(D,0,ae(I));break}}return N}function ee(){const{currentType:I,offset:D,startLoc:N,endLoc:X}=c;return c.lastType=I,c.lastOffset=D,c.lastStartLoc=N,c.lastEndLoc=X,c.offset=s(),c.startLoc=o(),r.currentChar()===Us?d(c,13):ne(r,c)}return{nextToken:ee,currentOffset:s,currentPosition:o,context:l}}const ZF="parser",QF=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function e3(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function t3(e={}){const t=e.location!==!1,{onError:n}=e;function r(g,b,y,_,...w){const S=g.currentPosition();if(S.offset+=_,S.column+=_,n){const E=t?um(y,S):null,$=Fd(b,E,{domain:ZF,args:w});n($)}}function s(g,b,y){const _={type:g};return t&&(_.start=b,_.end=b,_.loc={start:y,end:y}),_}function o(g,b,y,_){t&&(g.end=b,g.loc&&(g.loc.end=y))}function i(g,b){const y=g.context(),_=s(3,y.offset,y.startLoc);return _.value=b,o(_,g.currentOffset(),g.currentPosition()),_}function a(g,b){const y=g.context(),{lastOffset:_,lastStartLoc:w}=y,S=s(5,_,w);return S.index=parseInt(b,10),g.nextToken(),o(S,g.currentOffset(),g.currentPosition()),S}function c(g,b){const y=g.context(),{lastOffset:_,lastStartLoc:w}=y,S=s(4,_,w);return S.key=b,g.nextToken(),o(S,g.currentOffset(),g.currentPosition()),S}function l(g,b){const y=g.context(),{lastOffset:_,lastStartLoc:w}=y,S=s(9,_,w);return S.value=b.replace(QF,e3),g.nextToken(),o(S,g.currentOffset(),g.currentPosition()),S}function u(g){const b=g.nextToken(),y=g.context(),{lastOffset:_,lastStartLoc:w}=y,S=s(8,_,w);return b.type!==11?(r(g,st.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),S.value="",o(S,_,w),{nextConsumeToken:b,node:S}):(b.value==null&&r(g,st.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ar(b)),S.value=b.value||"",o(S,g.currentOffset(),g.currentPosition()),{node:S})}function f(g,b){const y=g.context(),_=s(7,y.offset,y.startLoc);return _.value=b,o(_,g.currentOffset(),g.currentPosition()),_}function d(g){const b=g.context(),y=s(6,b.offset,b.startLoc);let _=g.nextToken();if(_.type===8){const w=u(g);y.modifier=w.node,_=w.nextConsumeToken||g.nextToken()}switch(_.type!==9&&r(g,st.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ar(_)),_=g.nextToken(),_.type===2&&(_=g.nextToken()),_.type){case 10:_.value==null&&r(g,st.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ar(_)),y.key=f(g,_.value||"");break;case 4:_.value==null&&r(g,st.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ar(_)),y.key=c(g,_.value||"");break;case 5:_.value==null&&r(g,st.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ar(_)),y.key=a(g,_.value||"");break;case 6:_.value==null&&r(g,st.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ar(_)),y.key=l(g,_.value||"");break;default:{r(g,st.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const w=g.context(),S=s(7,w.offset,w.startLoc);return S.value="",o(S,w.offset,w.startLoc),y.key=S,o(y,w.offset,w.startLoc),{nextConsumeToken:_,node:y}}}return o(y,g.currentOffset(),g.currentPosition()),{node:y}}function p(g){const b=g.context(),y=b.currentType===1?g.currentOffset():b.offset,_=b.currentType===1?b.endLoc:b.startLoc,w=s(2,y,_);w.items=[];let S=null;do{const T=S||g.nextToken();switch(S=null,T.type){case 0:T.value==null&&r(g,st.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ar(T)),w.items.push(i(g,T.value||""));break;case 5:T.value==null&&r(g,st.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ar(T)),w.items.push(a(g,T.value||""));break;case 4:T.value==null&&r(g,st.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ar(T)),w.items.push(c(g,T.value||""));break;case 6:T.value==null&&r(g,st.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ar(T)),w.items.push(l(g,T.value||""));break;case 7:{const x=d(g);w.items.push(x.node),S=x.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const E=b.currentType===1?b.lastOffset:g.currentOffset(),$=b.currentType===1?b.lastEndLoc:g.currentPosition();return o(w,E,$),w}function h(g,b,y,_){const w=g.context();let S=_.items.length===0;const E=s(1,b,y);E.cases=[],E.cases.push(_);do{const $=p(g);S||(S=$.items.length===0),E.cases.push($)}while(w.currentType!==13);return S&&r(g,st.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),o(E,g.currentOffset(),g.currentPosition()),E}function m(g){const b=g.context(),{offset:y,startLoc:_}=b,w=p(g);return b.currentType===13?w:h(g,y,_,w)}function v(g){const b=JF(g,wt({},e)),y=b.context(),_=s(0,y.offset,y.startLoc);return t&&_.loc&&(_.loc.source=g),_.body=m(b),e.onCacheKey&&(_.cacheKey=e.onCacheKey(g)),y.currentType!==13&&r(b,st.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,g[y.offset]||""),o(_,b.currentOffset(),b.currentPosition()),_}return{parse:v}}function Ar(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function n3(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function Xb(e,t){for(let n=0;nJb(n)),e}function Jb(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;ni;function c(m,v){i.code+=m}function l(m,v=!0){const g=v?r:"";c(s?g+" ".repeat(m):g)}function u(m=!0){const v=++i.indentLevel;m&&l(v)}function f(m=!0){const v=--i.indentLevel;m&&l(v)}function d(){l(i.indentLevel)}return{context:a,push:c,indent:u,deindent:f,newline:d,helper:m=>`_${m}`,needIndent:()=>i.needIndent}}function i3(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),da(e,t.key),t.modifier?(e.push(", "),da(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function a3(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let o=0;o1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let o=0;o{const n=he(t.mode)?t.mode:"normal",r=he(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` `,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],a=o3(e,{filename:r,breakLineCode:s,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),i.length>0&&(a.push(`const { ${cv(i.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),da(a,e),a.deindent(o),a.push("}"),delete e.helpers;const{code:c,map:l}=a.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function f3(e,t={}){const n=wt({},t),r=!!n.jit,s=!!n.minify,o=n.optimize==null?!0:n.optimize,a=t3(n).parse(e);return r?(o&&s3(a),s&&Oi(a),{ast:a,code:""}):(r3(a,n),u3(a,n))}/*! * core-base v10.0.7 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function d3(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(av().__INTLIFY_PROD_DEVTOOLS__=!1)}function Wr(e){return et(e)&&uv(e)===0&&(vr(e,"b")||vr(e,"body"))}const vT=["b","body"];function p3(e){return yo(e,vT)}const yT=["c","cases"];function h3(e){return yo(e,yT,[])}const _T=["s","static"];function m3(e){return yo(e,_T)}const bT=["i","items"];function g3(e){return yo(e,bT,[])}const wT=["t","type"];function uv(e){return yo(e,wT)}const ST=["v","value"];function su(e,t){const n=yo(e,ST);if(n!=null)return n;throw sl(t)}const ET=["m","modifier"];function v3(e){return yo(e,ET)}const kT=["k","key"];function y3(e){const t=yo(e,kT);if(t)return t;throw sl(6)}function yo(e,t,n){for(let r=0;r_3(n,e)}function _3(e,t){const n=p3(t);if(n==null)throw sl(0);if(uv(n)===1){const o=h3(n);return e.plural(o.reduce((i,a)=>[...i,Zb(e,a)],[]))}else return Zb(e,n)}function Zb(e,t){const n=m3(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=g3(t).reduce((s,o)=>[...s,fm(e,o)],[]);return e.normalize(r)}}function fm(e,t){const n=uv(t);switch(n){case 3:return su(t,n);case 9:return su(t,n);case 4:{const r=t;if(vr(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(vr(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw sl(n)}case 5:{const r=t;if(vr(r,"i")&&Ft(r.i))return e.interpolate(e.list(r.i));if(vr(r,"index")&&Ft(r.index))return e.interpolate(e.list(r.index));throw sl(n)}case 6:{const r=t,s=v3(r),o=y3(r);return e.linked(fm(e,o),s?fm(e,s):void 0,e.type)}case 7:return su(t,n);case 8:return su(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const b3=e=>e;let ou=at();function w3(e,t={}){let n=!1;const r=t.onError||WF;return t.onError=s=>{n=!0,r(s)},{...f3(e,t),detectError:n}}function S3(e,t){if(he(e)){$t(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||b3)(e),s=ou[r];if(s)return s;const{ast:o,detectError:i}=w3(e,{...t,location:!1,jit:!0}),a=Bp(o);return i?a:ou[r]=a}else{const n=e.cacheKey;if(n){const r=ou[n];return r||(ou[n]=Bp(e))}else return Bp(e)}}let ol=null;function E3(e){ol=e}function k3(e,t,n){ol&&ol.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const T3=$3("function:translate");function $3(e){return t=>ol&&ol.emit(e,t)}const fs={INVALID_ARGUMENT:YF,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},I3=24;function ds(e){return Fd(e,null,void 0)}function fv(e,t){return t.locale!=null?Qb(t.locale):Qb(e.locale)}let Up;function Qb(e){if(he(e))return e;if(ft(e)){if(e.resolvedOnce&&Up!=null)return Up;if(e.constructor.name==="Function"){const t=e();if(HF(t))throw ds(fs.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Up=t}else throw ds(fs.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ds(fs.NOT_SUPPORT_LOCALE_TYPE)}function x3(e,t,n){return[...new Set([n,...Ot(t)?t:et(t)?Object.keys(t):he(t)?[t]:[n]])]}function $T(e,t,n){const r=he(n)?n:Pf,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let o=s.__localeChainCache.get(r);if(!o){o=[];let i=[n];for(;Ot(i);)i=e0(o,i,t);const a=Ot(t)||!Je(t)?t:t.default?t.default:null;i=he(a)?[a]:a,Ot(i)&&e0(o,i,!1),s.__localeChainCache.set(r,o)}return o}function e0(e,t,n){let r=!0;for(let s=0;s{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,i===void 0||(i=P3(i),i===!1))return!1;d[1]()}};function p(){const h=e[n+1];if(r===5&&h==="'"||r===6&&h==='"')return n++,a="\\"+h,d[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(c=R3(o),f=_o[r],l=f[c]||f.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=d[l[1]],u&&(a=o,u()===!1))))return;if(r===7)return t}}const t0=new Map;function N3(e,t){return et(e)?e[t]:null}function F3(e,t){if(!et(e))return null;let n=t0.get(t);if(n||(n=L3(t),n&&t0.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;o`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function B3(){return{upper:(e,t)=>t==="text"&&he(e)?e.toUpperCase():t==="vnode"&&et(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&he(e)?e.toLowerCase():t==="vnode"&&et(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&he(e)?r0(e):t==="vnode"&&et(e)&&"__v_isVNode"in e?r0(e.children):e}}let IT;function U3(e){IT=e}let xT;function j3(e){xT=e}let CT;function Y3(e){CT=e}let DT=null;const W3=e=>{DT=e},V3=()=>DT;let MT=null;const s0=e=>{MT=e},z3=()=>MT;let o0=0;function q3(e={}){const t=ft(e.onWarn)?e.onWarn:UF,n=he(e.version)?e.version:H3,r=he(e.locale)||ft(e.locale)?e.locale:Pf,s=ft(r)?Pf:r,o=Ot(e.fallbackLocale)||Je(e.fallbackLocale)||he(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,i=Je(e.messages)?e.messages:jp(s),a=Je(e.datetimeFormats)?e.datetimeFormats:jp(s),c=Je(e.numberFormats)?e.numberFormats:jp(s),l=wt(at(),e.modifiers,B3()),u=e.pluralRules||at(),f=ft(e.missing)?e.missing:null,d=$t(e.missingWarn)||Rf(e.missingWarn)?e.missingWarn:!0,p=$t(e.fallbackWarn)||Rf(e.fallbackWarn)?e.fallbackWarn:!0,h=!!e.fallbackFormat,m=!!e.unresolving,v=ft(e.postTranslation)?e.postTranslation:null,g=Je(e.processor)?e.processor:null,b=$t(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,_=ft(e.messageCompiler)?e.messageCompiler:IT,w=ft(e.messageResolver)?e.messageResolver:xT||N3,S=ft(e.localeFallbacker)?e.localeFallbacker:CT||x3,E=et(e.fallbackContext)?e.fallbackContext:void 0,$=e,T=et($.__datetimeFormatters)?$.__datetimeFormatters:new Map,x=et($.__numberFormatters)?$.__numberFormatters:new Map,L=et($.__meta)?$.__meta:{};o0++;const M={version:n,cid:o0,locale:r,fallbackLocale:o,messages:i,modifiers:l,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:p,fallbackFormat:h,unresolving:m,postTranslation:v,processor:g,warnHtmlMessage:b,escapeParameter:y,messageCompiler:_,messageResolver:w,localeFallbacker:S,fallbackContext:E,onWarn:t,__meta:L};return M.datetimeFormats=a,M.numberFormats=c,M.__datetimeFormatters=T,M.__numberFormatters=x,__INTLIFY_PROD_DEVTOOLS__&&k3(M,n,L),M}const jp=e=>({[e]:at()});function dv(e,t,n,r,s){const{missing:o,onWarn:i}=e;if(o!==null){const a=o(e,n,t,s);return he(a)?a:t}else return t}function lc(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function K3(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function G3(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{OT.includes(c)?i[c]=n[c]:o[c]=n[c]}),he(r)?o.locale=r:Je(r)&&(i=r),Je(s)&&(i=s),[o.key||"",a,o,i]}function a0(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function c0(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:a}=e,[c,l,u,f]=pm(...t),d=$t(u.missingWarn)?u.missingWarn:e.missingWarn;$t(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,h=fv(e,u),m=i(e,s,h);if(!he(c)||c==="")return new Intl.NumberFormat(h,f).format(l);let v={},g,b=null;const y="number format";for(let S=0;S{AT.includes(c)?i[c]=n[c]:o[c]=n[c]}),he(r)?o.locale=r:Je(r)&&(i=r),Je(s)&&(i=s),[o.key||"",a,o,i]}function l0(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const X3=e=>e,J3=e=>"",Z3="text",Q3=e=>e.length===0?"":cv(e),eH=BF;function u0(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function tH(e){const t=Ft(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ft(e.named.count)||Ft(e.named.n))?Ft(e.named.count)?e.named.count:Ft(e.named.n)?e.named.n:t:t}function nH(e,t){t.count||(t.count=e),t.n||(t.n=e)}function rH(e={}){const t=e.locale,n=tH(e),r=et(e.pluralRules)&&he(t)&&ft(e.pluralRules[t])?e.pluralRules[t]:u0,s=et(e.pluralRules)&&he(t)&&ft(e.pluralRules[t])?u0:void 0,o=g=>g[r(n,g.length,s)],i=e.list||[],a=g=>i[g],c=e.named||at();Ft(e.pluralIndex)&&nH(n,c);const l=g=>c[g];function u(g,b){const y=ft(e.messages)?e.messages(g,!!b):et(e.messages)?e.messages[g]:!1;return y||(e.parent?e.parent.message(g):J3)}const f=g=>e.modifiers?e.modifiers[g]:X3,d=Je(e.processor)&&ft(e.processor.normalize)?e.processor.normalize:Q3,p=Je(e.processor)&&ft(e.processor.interpolate)?e.processor.interpolate:eH,h=Je(e.processor)&&he(e.processor.type)?e.processor.type:Z3,v={list:a,named:l,plural:o,linked:(g,...b)=>{const[y,_]=b;let w="text",S="";b.length===1?et(y)?(S=y.modifier||S,w=y.type||w):he(y)&&(S=y||S):b.length===2&&(he(y)&&(S=y||S),he(_)&&(w=_||w));const E=u(g,!0)(v),$=w==="vnode"&&Ot(E)&&S?E[0]:E;return S?f(S)($,w):$},message:u,type:h,interpolate:p,normalize:d,values:wt(at(),i,c)};return v}const f0=()=>"",qn=e=>ft(e);function d0(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:i,messages:a}=e,[c,l]=hm(...t),u=$t(l.missingWarn)?l.missingWarn:e.missingWarn,f=$t(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,d=$t(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,h=he(l.default)||$t(l.default)?$t(l.default)?o?c:()=>c:l.default:n?o?c:()=>c:null,m=n||h!=null&&(he(h)||ft(h)),v=fv(e,l);d&&sH(l);let[g,b,y]=p?[c,v,a[v]||at()]:RT(e,c,v,i,f,u),_=g,w=c;if(!p&&!(he(_)||Wr(_)||qn(_))&&m&&(_=h,w=_),!p&&(!(he(_)||Wr(_)||qn(_))||!he(b)))return s?Hd:c;let S=!1;const E=()=>{S=!0},$=qn(_)?_:PT(e,c,b,_,w,E);if(S)return _;const T=aH(e,b,y,l),x=rH(T),L=oH(e,$,x),M=r?r(L,c):L;if(__INTLIFY_PROD_DEVTOOLS__){const j={timestamp:Date.now(),key:he(c)?c:qn(_)?_.key:"",locale:b||(qn(_)?_.locale:""),format:he(_)?_:qn(_)?_.source:"",message:M};j.meta=wt({},e.__meta,V3()||{}),T3(j)}return M}function sH(e){Ot(e.list)?e.list=e.list.map(t=>he(t)?Kb(t):t):et(e.named)&&Object.keys(e.named).forEach(t=>{he(e.named[t])&&(e.named[t]=Kb(e.named[t]))})}function RT(e,t,n,r,s,o){const{messages:i,onWarn:a,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n);let f=at(),d,p=null;const h="translate";for(let m=0;mr;return l.locale=n,l.key=t,l}const c=i(r,iH(e,n,s,r,a,o));return c.locale=n,c.key=t,c.source=r,c}function oH(e,t,n){return t(n)}function hm(...e){const[t,n,r]=e,s=at();if(!he(t)&&!Ft(t)&&!qn(t)&&!Wr(t))throw ds(fs.INVALID_ARGUMENT);const o=Ft(t)?String(t):(qn(t),t);return Ft(n)?s.plural=n:he(n)?s.default=n:Je(n)&&!Ld(n)?s.named=n:Ot(n)&&(s.list=n),Ft(r)?s.plural=r:he(r)?s.default=r:Je(r)&&wt(s,r),[o,s]}function iH(e,t,n,r,s,o){return{locale:t,key:n,warnHtmlMessage:s,onError:i=>{throw o&&o(i),i},onCacheKey:i=>RF(t,n,i)}}function aH(e,t,n,r){const{modifiers:s,pluralRules:o,messageResolver:i,fallbackLocale:a,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:s,pluralRules:o,messages:(p,h)=>{let m=i(n,p);if(m==null&&(u||h)){const[,,v]=RT(u||e,p,t,a,c,l);m=i(v,p)}if(he(m)||Wr(m)){let v=!1;const b=PT(e,p,t,m,p,()=>{v=!0});return v?f0:b}else return qn(m)?m:f0}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ft(r.plural)&&(d.pluralIndex=r.plural),d}d3();/*! * vue-i18n v10.0.7 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */const cH="10.0.7";function lH(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(av().__INTLIFY_PROD_DEVTOOLS__=!1)}const rr={UNEXPECTED_RETURN_TYPE:I3,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Tr(e,...t){return Fd(e,null,void 0)}const mm=vo("__translateVNode"),gm=vo("__datetimeParts"),vm=vo("__numberParts"),uH=vo("__setPluralRules"),fH=vo("__injectWithOption"),ym=vo("__dispose");function il(e){if(!et(e)||Wr(e))return e;for(const t in e)if(vr(e,t))if(!t.includes("."))et(e[t])&&il(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,o=!1;for(let i=0;i{if("locale"in a&&"resource"in a){const{locale:c,resource:l}=a;c?(i[c]=i[c]||at(),Ji(l,i[c])):Ji(l,i)}else he(a)&&Ji(JSON.parse(a),i)}),s==null&&o)for(const a in i)vr(i,a)&&il(i[a]);return i}function NT(e){return e.type}function dH(e,t,n){let r=et(t.messages)?t.messages:at();"__i18nGlobal"in n&&(r=LT(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(et(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(et(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function p0(e){return Q(so,null,e,0)}const h0="__INTLIFY_META__",m0=()=>[],pH=()=>!1;let g0=0;function v0(e){return(t,n,r,s)=>e(n,r,Ht()||void 0,s)}const hH=()=>{const e=Ht();let t=null;return e&&(t=NT(e)[h0])?{[h0]:t}:null};function FT(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,o=Af?pe:Dn;let i=$t(e.inheritLocale)?e.inheritLocale:!0;const a=o(t&&i?t.locale.value:he(e.locale)?e.locale:Pf),c=o(t&&i?t.fallbackLocale.value:he(e.fallbackLocale)||Ot(e.fallbackLocale)||Je(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),l=o(LT(a.value,e)),u=o(Je(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=o(Je(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:$t(e.missingWarn)||Rf(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:$t(e.fallbackWarn)||Rf(e.fallbackWarn)?e.fallbackWarn:!0,h=t?t.fallbackRoot:$t(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,v=ft(e.missing)?e.missing:null,g=ft(e.missing)?v0(e.missing):null,b=ft(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:$t(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const w=t?t.modifiers:Je(e.modifiers)?e.modifiers:{};let S=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&s0(null);const A={version:cH,locale:a.value,fallbackLocale:c.value,messages:l.value,modifiers:w,pluralRules:S,missing:g===null?void 0:g,missingWarn:d,fallbackWarn:p,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:y,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};A.datetimeFormats=u.value,A.numberFormats=f.value,A.__datetimeFormatters=Je(E)?E.__datetimeFormatters:void 0,A.__numberFormatters=Je(E)?E.__numberFormatters:void 0;const z=q3(A);return r&&s0(z),z})(),lc(E,a.value,c.value);function T(){return[a.value,c.value,l.value,u.value,f.value]}const x=B({get:()=>a.value,set:A=>{a.value=A,E.locale=a.value}}),L=B({get:()=>c.value,set:A=>{c.value=A,E.fallbackLocale=c.value,lc(E,a.value,A)}}),M=B(()=>l.value),j=B(()=>u.value),q=B(()=>f.value);function F(){return ft(b)?b:null}function R(A){b=A,E.postTranslation=A}function V(){return v}function U(A){A!==null&&(g=v0(A)),v=A,E.missing=g}const re=(A,z,de,ye,We,Ke)=>{T();let ht;try{__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=t?z3():void 0),ht=A(E)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=void 0)}if(de!=="translate exists"&&Ft(ht)&&ht===Hd||de==="translate exists"&&!ht){const[Ct,tn]=z();return t&&h?ye(t):We(Ct)}else{if(Ke(ht))return ht;throw Tr(rr.UNEXPECTED_RETURN_TYPE)}};function G(...A){return re(z=>Reflect.apply(d0,null,[z,...A]),()=>hm(...A),"translate",z=>Reflect.apply(z.t,z,[...A]),z=>z,z=>he(z))}function fe(...A){const[z,de,ye]=A;if(ye&&!et(ye))throw Tr(rr.INVALID_ARGUMENT);return G(z,de,wt({resolvedMessage:!0},ye||{}))}function ae(...A){return re(z=>Reflect.apply(i0,null,[z,...A]),()=>dm(...A),"datetime format",z=>Reflect.apply(z.d,z,[...A]),()=>n0,z=>he(z))}function Ee(...A){return re(z=>Reflect.apply(c0,null,[z,...A]),()=>pm(...A),"number format",z=>Reflect.apply(z.n,z,[...A]),()=>n0,z=>he(z))}function ve(A){return A.map(z=>he(z)||Ft(z)||$t(z)?p0(String(z)):z)}const Le={normalize:ve,interpolate:A=>A,type:"vnode"};function J(...A){return re(z=>{let de;const ye=z;try{ye.processor=Le,de=Reflect.apply(d0,null,[ye,...A])}finally{ye.processor=null}return de},()=>hm(...A),"translate",z=>z[mm](...A),z=>[p0(z)],z=>Ot(z))}function ce(...A){return re(z=>Reflect.apply(c0,null,[z,...A]),()=>pm(...A),"number format",z=>z[vm](...A),m0,z=>he(z)||Ot(z))}function ie(...A){return re(z=>Reflect.apply(i0,null,[z,...A]),()=>dm(...A),"datetime format",z=>z[gm](...A),m0,z=>he(z)||Ot(z))}function ue(A){S=A,E.pluralRules=S}function be(A,z){return re(()=>{if(!A)return!1;const de=he(z)?z:a.value,ye=O(de),We=E.messageResolver(ye,A);return Wr(We)||qn(We)||he(We)},()=>[A],"translate exists",de=>Reflect.apply(de.te,de,[A,z]),pH,de=>$t(de))}function Ie(A){let z=null;const de=$T(E,c.value,a.value);for(let ye=0;ye{i&&(a.value=A,E.locale=A,lc(E,a.value,c.value))}),xe(t.fallbackLocale,A=>{i&&(c.value=A,E.fallbackLocale=A,lc(E,a.value,c.value))}));const te={id:g0,locale:x,fallbackLocale:L,get inheritLocale(){return i},set inheritLocale(A){i=A,A&&t&&(a.value=t.locale.value,c.value=t.fallbackLocale.value,lc(E,a.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:M,get modifiers(){return w},get pluralRules(){return S||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(A){d=A,E.missingWarn=d},get fallbackWarn(){return p},set fallbackWarn(A){p=A,E.fallbackWarn=p},get fallbackRoot(){return h},set fallbackRoot(A){h=A},get fallbackFormat(){return m},set fallbackFormat(A){m=A,E.fallbackFormat=m},get warnHtmlMessage(){return y},set warnHtmlMessage(A){y=A,E.warnHtmlMessage=A},get escapeParameter(){return _},set escapeParameter(A){_=A,E.escapeParameter=A},t:G,getLocaleMessage:O,setLocaleMessage:W,mergeLocaleMessage:ne,getPostTranslationHandler:F,setPostTranslationHandler:R,getMissingHandler:V,setMissingHandler:U,[uH]:ue};return te.datetimeFormats=j,te.numberFormats=q,te.rt=fe,te.te=be,te.tm=C,te.d=ae,te.n=Ee,te.getDateTimeFormat=ee,te.setDateTimeFormat=I,te.mergeDateTimeFormat=D,te.getNumberFormat=N,te.setNumberFormat=X,te.mergeNumberFormat=K,te[fH]=n,te[mm]=J,te[gm]=ie,te[vm]=ce,te}const pv={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function mH({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===Fe?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},at())}function HT(){return Fe}const gH=ke({name:"i18n-t",props:wt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ft(e)||!isNaN(e)}},pv),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||bo({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),i=at();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=he(e.plural)?+e.plural:e.plural);const a=mH(t,o),c=s[mm](e.keypath,a,i),l=wt(at(),r),u=he(e.tag)||et(e.tag)?e.tag:HT();return Lt(u,l,c)}}}),y0=gH;function vH(e){return Ot(e)&&!he(e[0])}function BT(e,t,n,r){const{slots:s,attrs:o}=t;return()=>{const i={part:!0};let a=at();e.locale&&(i.locale=e.locale),he(e.format)?i.key=e.format:et(e.format)&&(he(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,p)=>n.includes(p)?wt(at(),d,{[p]:e.format[p]}):d,at()));const c=r(e.value,i,a);let l=[i.key];Ot(c)?l=c.map((d,p)=>{const h=s[d.type],m=h?h({[d.type]:d.value,index:p,parts:c}):[d.value];return vH(m)&&(m[0].key=`${d.type}-${p}`),m}):he(c)&&(l=[c]);const u=wt(at(),o),f=he(e.tag)||et(e.tag)?e.tag:HT();return Lt(f,u,l)}}const yH=ke({name:"i18n-n",props:wt({value:{type:Number,required:!0},format:{type:[String,Object]}},pv),setup(e,t){const n=e.i18n||bo({useScope:e.scope,__useComponent:!0});return BT(e,t,AT,(...r)=>n[vm](...r))}}),_0=yH,_H=ke({name:"i18n-d",props:wt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pv),setup(e,t){const n=e.i18n||bo({useScope:e.scope,__useComponent:!0});return BT(e,t,OT,(...r)=>n[gm](...r))}}),b0=_H;function bH(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function wH(e){const t=i=>{const{instance:a,value:c}=i;if(!a||!a.$)throw Tr(rr.UNEXPECTED_ERROR);const l=bH(e,a.$),u=w0(c);return[Reflect.apply(l.t,l,[...S0(u)]),l]};return{created:(i,a)=>{const[c,l]=t(a);Af&&e.global===l&&(i.__i18nWatcher=xe(l.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=l,i.textContent=c},unmounted:i=>{Af&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const c=i.__composer,l=w0(a);i.textContent=Reflect.apply(c.t,c,[...S0(l)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function w0(e){if(he(e))return{path:e};if(Je(e)){if(!("path"in e))throw Tr(rr.REQUIRED_VALUE,"path");return e}else throw Tr(rr.INVALID_VALUE)}function S0(e){const{path:t,locale:n,args:r,choice:s,plural:o}=e,i={},a=r||{};return he(n)&&(i.locale=n),Ft(s)&&(i.plural=s),Ft(o)&&(i.plural=o),[t,a,i]}function SH(e,t,...n){const r=Je(n[0])?n[0]:{};($t(r.globalInstall)?r.globalInstall:!0)&&([y0.name,"I18nT"].forEach(o=>e.component(o,y0)),[_0.name,"I18nN"].forEach(o=>e.component(o,_0)),[b0.name,"I18nD"].forEach(o=>e.component(o,b0))),e.directive("t",wH(t))}const EH=vo("global-vue-i18n");function kH(e={},t){const n=$t(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,o]=TH(e),i=vo("");function a(f){return r.get(f)||null}function c(f,d){r.set(f,d)}function l(f){r.delete(f)}const u={get mode(){return"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=i,f.provide(f.__VUE_I18N_SYMBOL__,u),Je(d[0])){const m=d[0];u.__composerExtend=m.__composerExtend,u.__vueI18nExtend=m.__vueI18nExtend}let p=null;n&&(p=AH(f,u.global)),SH(f,u,...d);const h=f.unmount;f.unmount=()=>{p&&p(),u.dispose(),h()}},get global(){return o},dispose(){s.stop()},__instances:r,__getInstance:a,__setInstance:c,__deleteInstance:l};return u}function bo(e={}){const t=Ht();if(t==null)throw Tr(rr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Tr(rr.NOT_INSTALLED);const n=$H(t),r=xH(n),s=NT(t),o=IH(e,s);if(o==="global")return dH(r,e,s),r;if(o==="parent"){let c=CH(n,t,e.__useComponent);return c==null&&(c=r),c}const i=n;let a=i.__getInstance(t);if(a==null){const c=wt({},e);"__i18n"in s&&(c.__i18n=s.__i18n),r&&(c.__root=r),a=FT(c),i.__composerExtend&&(a[ym]=i.__composerExtend(a)),MH(i,t,a),i.__setInstance(t,a)}return a}function TH(e,t,n){const r=ai(),s=r.run(()=>FT(e));if(s==null)throw Tr(rr.UNEXPECTED_ERROR);return[r,s]}function $H(e){const t=yt(e.isCE?EH:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Tr(e.isCE?rr.NOT_INSTALLED_WITH_PROVIDE:rr.UNEXPECTED_ERROR);return t}function IH(e,t){return Ld(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function xH(e){return e.mode==="composition"?e.global:e.global.__composer}function CH(e,t,n=!1){let r=null;const s=t.root;let o=DH(t,n);for(;o!=null;){const i=e;if(e.mode==="composition"&&(r=i.__getInstance(o)),r!=null||s===o)break;o=o.parent}return r}function DH(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function MH(e,t,n){en(()=>{},t),on(()=>{const r=n;e.__deleteInstance(t);const s=r[ym];s&&(s(),delete r[ym])},t)}const OH=["locale","fallbackLocale","availableLocales"],E0=["t","rt","d","n","tm","te"];function AH(e,t){const n=Object.create(null);return OH.forEach(s=>{const o=Object.getOwnPropertyDescriptor(t,s);if(!o)throw Tr(rr.UNEXPECTED_ERROR);const i=ze(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,s,i)}),e.config.globalProperties.$i18n=n,E0.forEach(s=>{const o=Object.getOwnPropertyDescriptor(t,s);if(!o||!o.value)throw Tr(rr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,o)}),()=>{delete e.config.globalProperties.$i18n,E0.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}lH();U3(S3);j3(F3);Y3($T);if(__INTLIFY_PROD_DEVTOOLS__){const e=av();e.__INTLIFY__=!0,E3(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function UT(e){var r;const t=Ce().$configData,n=(r=t==null?void 0:t.wa)==null?void 0:r.cities;return n==null?void 0:n.find(s=>s.id===e)}function RH(e){var r;const t=Ce().$configData,n=(r=t==null?void 0:t.wa)==null?void 0:r.cities;return n==null?void 0:n.find(s=>fa(s.name)===e)}function vhe(e){const{t}=bo();return`${["öland","gotland","österlen","käringön","gräddö","hönö","fårö","eckerö","ulvön","orust","klädesholmen"].some(s=>s===(e==null?void 0:e.toLowerCase()))?t("shared.at"):t("shared.in")} ${e}`}const PH=(e,t)=>{var i,a,c,l,u,f,d,p,h,m,v;const n=cr(),r=pn(),s=e.params.all&&((i=e.params.all)==null?void 0:i.length)===1?(a=n.cities.find(g=>g.slug.includes(e.params.all[0])))==null?void 0:a.slug:e.params.all&&e.params.all[1]?(c=n.cities.find(g=>g.slug.includes(e.params.all[1])))==null?void 0:c.slug:(l=e.params)==null?void 0:l.city,o=RH(s);if(s&&zb().isAfter(r.date,"day")&&(console.log("Update FAT date"),r.date=zb().format("YYYY-MM-DD")),(o==null?void 0:o.id)>0&&((u=r.city)==null?void 0:u.slug)!==s&&(r.cityId=o.id),e.name==="start"&&((f=e.query)==null?void 0:f.cityId)==="null"&&(r.cityId=null),e.name==="start"&&r.cityId&&((d=e.query)==null?void 0:d.cityId)!=="null")return Mt({path:`/${(p=r.city)==null?void 0:p.slug}`,query:e.query});if((h=e.query)!=null&&h.paged&&((m=e.params)==null?void 0:m.city)!==((v=t.params)==null?void 0:v.city))return Mt({path:e.path,query:{...e.query,paged:void 0}})},LH={en:[],sv:[{code:301,newPath:"/restauranger",oldPaths:["/restaurang"]},{code:301,newPath:"/erbjudanden",oldPaths:["/exclusive"]},{code:301,newPath:"/erbjudanden/stockholm-fashion-week",oldPaths:["/stockholm-fashion-week","/exclusive/stockholm-fashion-week"]},{code:301,newPath:"/erbjudanden/skaldjursveckorna",oldPaths:["/skaldjursveckorna","/exclusive/skaldjursveckorna"]},{code:301,newPath:"/erbjudanden/stockholm-food-weeks",oldPaths:["/stockholm-food-weeks","/exclusive/stockholm-food-weeks"]}]},NH=(e,t)=>{var s,o,i,a,c;const n=Pd("locale"),r=LH[n].find(l=>l.oldPaths.includes(e.path.replace(/\/$/,"")));if(r)return console.log(`Redirect to ${r.newPath}`),Mt({path:r.newPath},{redirectCode:r.code});if(/[A-Z]/.test(e.path))return console.log("Redirect any request containing uppercases"),Mt({path:e.path.toLowerCase(),query:{...e.query,paged:void 0}},{});if(((s=e.query)==null?void 0:s.paged)==="1")return console.log("Redirect query param sida=1 to no pagination"),Mt({query:{...e.query,paged:void 0}},{});if((o=e.query)!=null&&o.sida)return console.log(`Redirect query param sida=${(i=e.query)==null?void 0:i.sida} to paged=${(a=e.query)==null?void 0:a.sida}`),Mt({query:{...e.query,paged:(c=e.query)==null?void 0:c.sida,sida:void 0}},{});if(e.path.endsWith("/")&&e.path!=="/")return console.log(`Remove trailing slash from ${e.path}`),Mt(e.path.slice(0,-1),{})},FH=e=>{const t=Ad();if(e.name.startsWith("user")&&!t.authed)return Mt({name:"auth-log-in",query:{returnUrl:Zu(e.fullPath),...e.query}})},HH=async e=>{let t,n;const r=([t,n]=Gn(()=>Gg({path:e.path})),t=await t,n(),t);if(r.redirect)return ar(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},BH=[tN,PH,NH,FH,HH],Nc={fat:()=>le(()=>import("./Ce8otBE1.js"),[],import.meta.url),offers:()=>le(()=>import("./D5k3uG15.js"),[],import.meta.url),"stockholm-fashion-week":()=>le(()=>import("./tJ04qzhB.js"),[],import.meta.url)};function UH(e,t,n){const{pathname:r,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){const l=o.includes(e.slice(i))?e.slice(i).length:1;let u=o.slice(l);return u[0]!=="/"&&(u="/"+u),A_(u,"")}const a=A_(r,e),c=!n||PA(a,n)?a:n;return c+(c.includes("?")?"":s)+o}const jH=xt({name:"nuxt:router",enforce:"pre",async setup(e){var v;let t,n,r=dn().app.baseURL;const s=((v=Or.history)==null?void 0:v.call(Or,r))??vL(r),o=Or.routes?([t,n]=Gn(()=>Or.routes(Hp)),t=await t,n(),t??Hp):Hp;let i;const a=UL({...Or,scrollBehavior:(g,b,y)=>{if(b===zn){i=y;return}if(Or.scrollBehavior){if(a.options.scrollBehavior=Or.scrollBehavior,"scrollRestoration"in window.history){const _=a.beforeEach(()=>{_(),window.history.scrollRestoration="manual"})}return Or.scrollBehavior(g,zn,i||y)}},history:s,routes:o});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const c=Dn(a.currentRoute.value);a.afterEach((g,b)=>{c.value=b}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const l=UH(r,window.location,e.payload.path),u=Dn(a.currentRoute.value),f=()=>{u.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((g,b)=>{var y,_,w,S;((_=(y=g.matched[0])==null?void 0:y.components)==null?void 0:_.default)===((S=(w=b.matched[0])==null?void 0:w.components)==null?void 0:S.default)&&f()});const d={};for(const g in u.value)Object.defineProperty(d,g,{get:()=>u.value[g],enumerable:!0});e._route=ls(d),e._middleware||(e._middleware={global:[],named:{}});const p=xd();a.afterEach(async(g,b,y)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(Ik),y&&await e.callHook("page:loading:end")});try{[t,n]=Gn(()=>a.isReady()),await t,n()}catch(g){[t,n]=Gn(()=>e.runWithContext(()=>No(g))),await t,n()}const h=l!==a.currentRoute.value.fullPath?a.resolve(l):a.currentRoute.value;f();const m=e.payload.state._layout;return a.beforeEach(async(g,b)=>{var y;await e.callHook("page:loading:start"),g.meta=qt(g.meta),e.isHydrating&&m&&!Es(g.meta.layout)&&(g.meta.layout=m),e._processingMiddleware=!0;{const _=new Set([...BH,...e._middleware.global]);for(const w of g.matched){const S=w.meta.middleware;if(S)for(const E of Qg(S))_.add(E)}{const w=await e.runWithContext(()=>Gg({path:g.path}));if(w.appMiddleware)for(const S in w.appMiddleware)w.appMiddleware[S]?_.add(S):_.delete(S)}for(const w of _){const S=typeof w=="string"?e._middleware.named[w]||await((y=Nc[w])==null?void 0:y.call(Nc).then(E=>E.default||E)):w;if(!S)throw new Error(`Unknown route middleware: '${w}'.`);try{const E=await e.runWithContext(()=>S(g,b));if(!e.payload.serverRendered&&e.isHydrating&&(E===!1||E instanceof Error)){const $=E||oo({statusCode:404,statusMessage:`Page Not Found: ${l}`});return await e.runWithContext(()=>No($)),!1}if(E===!0)continue;if(E===!1)return E;if(E)return xk(E)&&E.fatal&&await e.runWithContext(()=>No(E)),E}catch(E){const $=oo(E);return $.fatal&&await e.runWithContext(()=>No($)),$}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(async(g,b)=>{g.matched.length===0&&await e.runWithContext(()=>No(oo({statusCode:404,fatal:!1,statusMessage:`Page not found: ${g.fullPath}`,data:{path:g.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in h&&(h.name=void 0),await a.replace({...h,force:!0}),a.options.scrollBehavior=Or.scrollBehavior}catch(g){await e.runWithContext(()=>No(g))}}),{provide:{router:a}}}}),YH=xt({name:"nuxt:payload",setup(e){const t=new Set;lt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await Z_(n.path);if(s){for(const o of t)delete e.static.data[o];for(const o in s.data)o in e.static.data||t.add(o),e.static.data[o]=s.data[o]}}),Md(()=>{var n;e.hooks.hook("link:prefetch",async r=>{const{hostname:s}=new URL(r,window.location.href);s===window.location.hostname&&await Z_(r).catch(()=>{console.warn("[nuxt] Error preloading payload for",r)})}),((n=navigator.connection)==null?void 0:n.effectiveType)!=="slow-2g"&&setTimeout(Cd,1e3)})}}),WH=xt(()=>{const e=lt();Md(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),VH=xt(e=>{let t;async function n(){const r=await Cd();t&&clearTimeout(t),t=setTimeout(n,H_);try{const s=await $fetch(zg("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}Md(()=>{t=setTimeout(n,H_)})}),zH=xt({name:"nuxt:chunk-reload",setup(e){const t=lt(),n=dn(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const a="href"in o&&o.href[0]==="#"?n.app.baseURL+o.href:go(n.app.baseURL,o.fullPath);xN({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),qH=xt({name:"pinia",setup(e){const t=LR();return e.vueApp.use(t),kl(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),io=[],_m={},KH=[()=>le(()=>import("./BHtkm5go.js"),[],import.meta.url)],Bd=[],jT="@nuxtjs/i18n",GH=!1,XH="i18n_redirected",JH="nuxtI18nInternal",k0="nuxt-i18n-slp";function Ud(e){return he(e)?e:e!=null?e.toString():"(null)"}function T0(e,t,n){const{defaultLocale:r,strategy:s,routesNameSeparator:o,defaultLocaleRouteNameSuffix:i,differentDomains:a}=n,c=s!=="no_prefix"||a,l=Ud(e)+(c?o+t:"");return t===r&&s==="prefix_and_default"?l+o+i:l}function ZH(e,t){const n=[];for(const[r,s]of t.entries()){const o=e.find(i=>{var a;return((a=i.language)==null?void 0:a.toLowerCase())===s.toLowerCase()});if(o){n.push({code:o.code,score:1-r/t.length});break}}for(const[r,s]of t.entries()){const o=s.split("-")[0].toLowerCase(),i=e.find(a=>{var c;return((c=a.language)==null?void 0:c.split("-")[0].toLowerCase())===o});if(i){n.push({code:i.code,score:.999-r/t.length});break}}return n}function QH(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function eB(e,t){const n=e.map(s=>({code:s.code,language:s.language||s.code})),r=ZH(n,t);return r.length===0?"":(r.length>1&&r.sort(QH),r[0].code)}function YT(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}const tB=`(${io.join("|")})`,bm=YT(io);function nB(){const{routesNameSeparator:e,defaultLocaleRouteNameSuffix:t}=dn().public.i18n,n=`(?:${e}${t})?`,r=new RegExp(`${e}${tB}${n}$`,"i");return s=>{var o,i,a;return he(s)?((o=s.match(bm))==null?void 0:o[1])??"":s.name?((i=Ud(s.name).match(r))==null?void 0:i[1])??"":s.path?((a=s.path.match(bm))==null?void 0:a[1])??"":""}}function rB(e){return e!=null&&"global"in e&&"mode"in e}function sB(e){return e!=null&&!("__composer"in e)&&"locale"in e&&ze(e.locale)}function WT(e){return e!=null&&"__composer"in e}function Lf(e){return rB(e)?e.global:e}function yc(e){const t=Lf(e);return sB(t)?t:WT(t)?t.__composer:t}function jd(){return window.location.host}function oB(e,t,n){var a,c,l;const r=jd();if(!r)return r;const s=he(n)?n:n.path,o=e.filter(u=>u.domain?(ar(u.domain)?u.domain.replace(/(http|https):\/\//,""):u.domain)===r:Ot(u==null?void 0:u.domains)?u.domains.includes(r):!1);if(o.length===0)return"";if(o.length===1)return((a=o[0])==null?void 0:a.code)??"";if(t==="no_prefix")return console.warn(qT("Multiple matching domains found! This is not supported for no_prefix strategy in combination with differentDomains!")),((c=o[0])==null?void 0:c.code)??"";if(n&&s){const u=(l=s.match(YT(o.map(f=>f.code))))==null?void 0:l.at(1);if(u){const f=o.find(d=>d.code===u);return(f==null?void 0:f.code)??""}}const i=o.find(u=>{var f;return((f=u.defaultForDomains)==null?void 0:f.includes(r))??u.domainDefault});return(i==null?void 0:i.code)??""}function VT(e){var i,a;Ce();const t=jd(),{domainLocales:n}=dn().public.i18n,r=Bd.find(c=>c.code===e),s=((i=n==null?void 0:n[e])==null?void 0:i.domain)||(r==null?void 0:r.domain)||((a=r==null?void 0:r.domains)==null?void 0:a.find(c=>c===t));if(!s){console.warn(qT("Could not find domain name for locale "+e));return}return ar(s,{strict:!0})?s:new URL(window.location.origin).protocol+"//"+s}function iB(e,t){const{multiDomainLocales:n,strategy:r,routesNameSeparator:s,defaultLocaleRouteNameSuffix:o}=e;if(!n||!(r==="prefix_except_default"||r==="prefix_and_default"))return;const i=lt(),a=[s,o].join("");for(const c of i.getRoutes()){const l=Ud(c.name);if(l.endsWith(a)){i.removeRoute(l);continue}const u=l.split(s)[1];u===t&&i.addRoute({...c,path:c.path===`/${u}`?"/":c.path.replace(`/${u}`,"")})}}function aB(e){const{locales:t,defaultLocale:n,multiDomainLocales:r}=e;if(!r)return n||"";const s=jd();if(t.some(o=>!he(o)&&o.defaultForDomains!=null)){const o=t.find(i=>{var a;return!he(i)&&!!((a=i.defaultForDomains)!=null&&a.includes(s))});return(o==null?void 0:o.code)??""}return n||""}const Fc=new Map;async function cB(e,t){const n={messages:{}};for(const r of e){const{default:s}=await r(),o=ft(s)?await t.runWithContext(()=>s()):s;Ji(o,n)}return n}function zT(e,t){if(e===!1)return[];if(Ot(e))return e;let n=[];if(he(e))return t.every(s=>s!==e)&&n.push(e),n;const r=[...t,"default"];for(const s of r)s in e&&(n=[...n,...e[s].filter(Boolean)]);return n}const lB=e=>Nd(e)==="[object Module]";async function uB(e,{key:t,load:n},r){let s=null;try{const o=await n().then(i=>lB(i)?i.default:i);ft(o)?s=await r.runWithContext(()=>o(e)):(s=o,s!=null&&Fc&&Fc.set(t,s))}catch(o){console.error("Failed locale loading: "+o.message)}return s}async function wm(e,t,n,r){const s=t[e];if(s==null)return;const o={};for(const i of s){let a=null;Fc&&Fc.has(i.key)&&i.cache?a=Fc.get(i.key):a=await r.runWithContext(()=>uB(e,i,r)),a!=null&&Ji(a,o)}n(e,o)}function pa(e,t){const n=k(t),r=et(n)?n==null?void 0:n.name:n;if(!(n==null||!r))return Ud(r).split(e.runtimeConfig.public.i18n.routesNameSeparator)[0]}function hv(e,t,n){var s;if(he(t)&&ar(t,{acceptRelative:!0}))return t;const r=mv(e,t,n);return r==null?"":((s=r.redirectedFrom)==null?void 0:s.fullPath)||r.fullPath}function Yd(e,t,n){return mv(e,t,n)??void 0}function fB(e){if(!he(e))return wt({},e);if(e[0]==="/"){const{pathname:t,search:n,hash:r}=Wh(e);return{path:t,query:Td(n),hash:r}}return{name:e}}const dB=e=>!!e.path&&!e.name;function pB(e,t,n){const r=e.runtimeConfig.public.i18n;if(dB(t)){const o=mB(e,t,n),i=pa(e,o);return i?(o.name=T0(i,n,r),o):(!r.differentDomains&&yB(n,r.defaultLocale,r.strategy)&&(t.path="/"+n+t.path),t.path=(r.trailingSlash?tl:Zo)(t.path,!0),t)}t.name||(t.name=pa(e,e.router.currentRoute.value));const s=T0(t.name,n,r);return e.router.hasRoute(s)&&(t.name=s),t}function mv(e,t,n){try{const r=n||k(Lf(e.i18n).locale),s=fB(t),o=e.router.resolve(pB(e,s,r));return o.name?o:e.router.resolve(t)}catch(r){if(Pr(r,1))return null}}function hB(e,t){var r;if(e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR)return k(e.metaState.value);const n=t.meta||{};return((r=k(n))==null?void 0:r[JH])||{}}function gv(e,t,n){const r=n??e.router.currentRoute.value,s=pa(e,r);if(!s)return"";const o=hB(e,r)[t],i={name:s,params:wt({},r.params,o),fullPath:r.fullPath,query:r.query,hash:r.hash,path:r.path,meta:r.meta},a=hv(e,i,t);if(e.runtimeConfig.public.i18n.differentDomains){const c=VT(t);return c&&go(c,a)||a}return a}function mB(e,t,n){if(e.runtimeConfig.public.i18n.strategy==="no_prefix")return t;if(e.runtimeConfig.public.i18n.strategy!=="prefix")return e.router.resolve(t);const r=t.path.slice(1),s=t.path[0]+n+(r&&"/"+r),o=e.router.options.routes.find(i=>i.path===s);return o==null?t:e.router.resolve(wt({},t,o,{path:s}))}function qT(e){return`[${jT}]: ${e}`}function KT(e){return{i18n:e??Ce().$i18n,router:lt(),runtimeConfig:dn(),metaState:Od("nuxt-i18n-meta",()=>({}))}}async function GT(e,t=!1){const n=Ce(),{differentDomains:r,skipSettingLocaleOnNavigate:s}=n.$config.public.i18n,o=Il(),i=k(n.$i18n.locale),a=k(n.$i18n.localeCodes);function c(d=i){o===!1||!o.useCookie||s||n.$i18n.setLocaleCookie(d)}const l=await n.$i18n.onBeforeLanguageSwitch(i,e,t,n);if(l&&a.includes(l)){if(i===l)return c(),!1;e=l}if(!e||!t&&r||i===e)return c(),!1;const u=k(n.$i18n.fallbackLocale),f=n.$i18n.mergeLocaleMessage.bind(n.$i18n);if(u){const d=zT(u,[e]);await Promise.all(d.map(p=>wm(p,_m,f,n)))}return await wm(e,_m,f,n),s?!1:(c(e),n._vueI18n.__setLocale(e),await n.$i18n.onLanguageSwitched(i,e),!0)}function gB(e,t,n,r){const s=Ce(),{strategy:o,defaultLocale:i,differentDomains:a,multiDomainLocales:c}=s.$config.public.i18n,l=Il(),u=kB(e,r,n);if(u.locale&&u.from!=null&&io.includes(u.locale))return u.locale;let f="";a||c?f||(f=oB(Bd,o,e)):o!=="no_prefix"&&(f||(f=t));const d=(io.includes(u.locale)||r&&io.includes(r))&&l&&l.useCookie&&r;return f||(f=d||n||i||""),f}function XT({to:e,from:t,locale:n,routeLocale:r},s=!1){if(r===n||Ce().$i18n.strategy==="no_prefix")return"";const o=KT();let i=gv(o,n,e);return s&&!i&&(i=hv(o,e.fullPath,n)),R_(i,e.fullPath)||t&&R_(i,t.fullPath)?"":i}const vB=()=>Od(jT+":redirect",()=>"");async function JT({nuxt:e,locale:t,route:n,redirectPath:r},s=!1){const{rootRedirect:o,differentDomains:i,multiDomainLocales:a,skipSettingLocaleOnNavigate:c,locales:l,strategy:u}=e.$config.public.i18n;if(n.path==="/"&&o)return he(o)?r="/"+o:(r="/"+o.path,o.statusCode),r=e.$localePath(r,t),Mt(r,{});if(!(c&&(e._vueI18n.__pendingLocale=t,e._vueI18n.__pendingLocalePromise=new Promise(f=>{e._vueI18n.__resolvePendingLocalePromise=()=>f()}),!s))){if(a&&u==="prefix_except_default"){const f=jd(),d=l.find(h=>{var m;if(!he(h))return(m=h.defaultForDomains)==null?void 0:m.find(v=>v===f)}),p=he(d)||d==null?void 0:d.code;if(n.path.startsWith(`/${p}`))return Mt(n.path.replace(`/${p}`,""));if(!n.path.startsWith(`/${t}`)&&t!==p){const h=e._vueI18n.__localeFromRoute(n.path);return Mt(h!==""?`/${t+n.path.replace(`/${h}`,"")}`:`/${t+(n.path==="/"?"":n.path)}`)}return r&&n.path!==r?Mt(r):void 0}if(i){const f=vB();f.value&&f.value!==r&&(f.value="",window.location.assign(r))}else if(r)return Mt(r)}}function yB(e,t,n){return n!=="no_prefix"&&!(e===t&&(n==="prefix_and_default"||n==="prefix_except_default"))}function _B(e){const{baseUrl:t,defaultLocale:n,differentDomains:r}=e.$config.public.i18n;if(ft(t))return()=>t(e);const s=ft(n)?n():n;return()=>{if(r&&s){const o=VT(s);if(o)return o}return t??""}}function bB(e){return Ot(e)?e:[e]}function ei(e,t=KT()){return(...n)=>e(t,...n)}function wB(){const e=navigator.languages;return eB(Bd,e)||void 0}function SB(){const e=Il(),t=e&&e.cookieKey||XH,n=new Date,r={path:"/",readonly:!1,expires:new Date(n.setDate(n.getDate()+365)),sameSite:e&&e.cookieCrossOrigin?"none":"lax",domain:e&&e.cookieDomain||void 0,secure:e&&e.cookieCrossOrigin||e&&e.cookieSecure};return cm(t,r)}function EB(e,t,n){if(t===!1||!t.useCookie)return;const r=e.value??void 0;if(r!=null){if(io.includes(r))return r;if(n)return e.value=n,n;e.value=void 0}}function kB(e,t,n=""){const r=Il();if(!r)return{locale:"",error:"disabled"};const s=Ce(),o=s.$i18n.strategy;if(!s._vueI18n.__firstAccess)return{locale:o==="no_prefix"?n:"",error:"first_access_only"};if(o!=="no_prefix"){const l=he(e)?e:e.path;if(r.redirectOn==="root"&&l!=="/")return{locale:"",error:"not_redirect_on_root"};if(r.redirectOn==="no prefix"&&!r.alwaysRedirect&&l.match(bm))return{locale:"",error:"not_redirect_on_no_prefix"}}const a=r.useCookie&&t||void 0;if(a)return{locale:a,from:"cookie"};const c=s.$i18n.getBrowserLocale();return c?{locale:c,from:"navigator_or_header"}:{locale:r.fallbackLocale||"",from:"fallback"}}function Il(e=dn().public.i18n){return(e==null?void 0:e.detectBrowserLanguage)===!1?!1:e==null?void 0:e.detectBrowserLanguage}function TB(e){const t=Ce(),n=k(t.$i18n.locale),r=k(t.$i18n.locales).map(a=>he(a)?{code:a}:a),s=r.find(a=>a.code===n)||{code:n},o=go(k(yc(t.$i18n).baseUrl),t.$config.app.baseURL),i=t.$config.public.i18n;return o||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),{dir:e.dir,lang:e.lang,key:e.key,seo:e.seo,locale:n,locales:r,currentDir:s.dir||i.defaultDirection,currentLocale:s,currentLanguage:s.language,baseUrl:o,runtimeI18n:i}}function $B(e,{dir:t=!0,lang:n=!0,seo:r=!0,key:s="hid"}){return IB(e,{dir:t,lang:n,seo:r,key:s})}function IB(e,t){const n={htmlAttrs:{},link:[],meta:[]},r=TB(t);return r.baseUrl==null||(r.dir&&(n.htmlAttrs.dir=r.currentDir),r.lang&&r.currentLanguage&&(n.htmlAttrs.lang=r.currentLanguage),r.seo&&(n.link=n.link.concat(xB(e,r),CB(e,r)),n.meta=n.meta.concat(DB(e,r),MB(r),OB(r)))),n}function xB(e,t){const{defaultLocale:n,strategy:r,differentDomains:s}=t.runtimeI18n,o=[];if(r==="no_prefix"&&!s)return o;const i=new Map;for(const l of t.locales){if(!l.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[u,f]=l.language.split("-");u&&f&&(l.isCatchallLocale||!i.has(u))&&i.set(u,l),i.set(l.language,l)}const a=t.runtimeI18n.experimental.alternateLinkCanonicalQueries===!0,c=a?e.router.resolve({query:{}}):void 0;!t.runtimeI18n.experimental.switchLocalePathLinkSSR&&a&&(c.meta=e.router.currentRoute.value.meta);for(const[l,u]of i.entries()){const f=gv(e,u.code,c);if(!f)continue;const d=s&&u.domain?f:go(t.baseUrl,f),p=$d(d,a?QT(e,t):{});o.push({[t.key]:`i18n-alt-${l}`,rel:"alternate",href:p,hreflang:l}),n&&n===u.code&&o.unshift({[t.key]:"i18n-xd",rel:"alternate",href:p,hreflang:"x-default"})}return o}function ZT(e,t){const n=e.router.currentRoute.value,r=Yd(e,wt({},n,{path:void 0,name:pa(e,n)}));return r?$d(go(t.baseUrl,r.path),QT(e,t)):""}function CB(e,t){const n=ZT(e,t);return n?[{[t.key]:"i18n-can",rel:"canonical",href:n}]:[]}function QT(e,t){var a;const n=e.router.currentRoute.value,r=Yd(e,wt({},n,{path:void 0,name:pa(e,n)})),s=et(t.seo)&&((a=t.seo)==null?void 0:a.canonicalQueries)||[],o=(r==null?void 0:r.query)||{},i={};for(const c of s.filter(l=>l in o)){i[c]??(i[c]=[]);for(const l of bB(o[c]))i[c].push(l||"")}return i}function DB(e,t){const n=ZT(e,t);return n?[{[t.key]:"i18n-og-url",property:"og:url",content:n}]:[]}function MB(e){return e.currentLanguage?[{[e.key]:"i18n-og",property:"og:locale",content:e$(e.currentLanguage)}]:[]}function OB(e){return e.locales.filter(n=>n.language&&n.language!==e.currentLanguage).map(n=>({[e.key]:`i18n-og-alt-${n.language}`,property:"og:locale:alternate",content:e$(n.language)}))}function e$(e=""){return e.replace(/-/g,"_")}function AB(){return ei(pa)}function RB(){return ei(hv)}function PB(){return ei(Yd)}function LB(){return ei(Yd)}function t$(){return ei(gv)}const NB=xt({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(){const e=Ce();if(e.$config.public.i18n.experimental.switchLocalePathLinkSSR!==!0)return;const t=t$(),n=new RegExp([``,".+?",``].join(""),"g");e.hook("app:rendered",r=>{var s;((s=r.renderResult)==null?void 0:s.html)!=null&&(r.renderResult.html=r.renderResult.html.replaceAll(n,(o,i)=>o.replace(/href="([^"]+)"/,`href="${encodeURI(t(i??""))}"`)))})}}),FB=xt({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(){let e,t;const n=Ce(),r=n.$router.currentRoute;async function s(i){let a=gB(i,n._vueI18n.__localeFromRoute(i),k(n.$i18n.locale),n.$i18n.getLocaleCookie());if(n._vueI18n.__firstAccess){n._vueI18n.__setLocale(a);const l=zT(k(n._vueI18n.global.fallbackLocale),[a]);await Promise.all(l.map(u=>n.$i18n.loadLocaleMessages(u))),await n.$i18n.loadLocaleMessages(a)}return await n.runWithContext(()=>GT(a,n._vueI18n.__firstAccess))&&(a=k(n.$i18n.locale)),a}[e,t]=Gn(()=>s(r.value)),await e,t(),MR("locale-changing",async(i,a)=>{let c,l;const u=([c,l]=Gn(()=>n.runWithContext(()=>s(i))),c=await c,l(),c),f=([c,l]=Gn(()=>n.runWithContext(()=>XT({to:i,from:a,locale:u,routeLocale:n._vueI18n.__localeFromRoute(i)},!0))),c=await c,l(),c);return n._vueI18n.__firstAccess=!1,[c,l]=Gn(()=>n.runWithContext(()=>JT({nuxt:n,redirectPath:f,locale:u,route:i}))),c=await c,l(),c},{global:!0})}});function HB(e,{extendComposer:t,extendComposerInstance:n}){const r=ai(),s=e.install.bind(e);e.install=(o,...i)=>{const a=wt({},i[0]);a.__composerExtend=l=>(n(l,yc(e)),()=>{}),e.mode==="legacy"&&(a.__vueI18nExtend=l=>(n(l,yc(l)),()=>{})),Reflect.apply(s,e,[o,a]);const c=yc(e);if(r.run(()=>{t(c),e.mode==="legacy"&&WT(e.global)&&n(e.global,yc(e.global))}),e.mode==="composition"&&o.config.globalProperties.$i18n!=null&&n(o.config.globalProperties.$i18n,c),o.unmount){const l=o.unmount.bind(o);o.unmount=()=>{r.stop(),l()}}}}const BB=xt({name:"i18n:plugin",parallel:GH,async setup(e){var f;let t,n;Object.defineProperty(e.versions,"nuxtI18n",{get:()=>"9.5.4"});const r=Ce(),s=r.$config.public.i18n,o=aB(s);iB(s,o),r.$config.public.i18n.defaultLocale=o;const i={...s,defaultLocale:o,baseUrl:_B(r)},a=([t,n]=Gn(()=>cB(KH,Ce())),t=await t,n(),t);a.messages||(a.messages={}),a.fallbackLocale??(a.fallbackLocale=!1),o&&(a.locale=o);for(const d of io)(f=a.messages)[d]??(f[d]={});const c=kH(a);r._vueI18n=c,c.__localeFromRoute=nB(),c.__firstAccess=!0,c.__setLocale=d=>{const p=Lf(c);ze(p.locale)?p.locale.value=d:p.locale=d};const l=SB(),u=Il();return HB(c,{extendComposer(d){const p=pe(i.locales);d.locales=B(()=>p.value);const h=pe(io);d.localeCodes=B(()=>h.value);const m=pe(i.baseUrl());d.baseUrl=B(()=>m.value),xe(d.locale,()=>m.value=i.baseUrl()),d.strategy=i.strategy,d.localeProperties=B(()=>Bd.find(v=>v.code===d.locale.value)||{code:d.locale.value}),d.setLocale=async v=>{if(await GT(v,c.__firstAccess),d.strategy==="no_prefix"){await d.loadLocaleMessages(v),c.__setLocale(v);return}const g=r.$router.currentRoute.value,b=await r.runWithContext(()=>XT({to:g,locale:v,routeLocale:c.__localeFromRoute(g)}));await r.runWithContext(()=>JT({nuxt:r,redirectPath:b,locale:v,route:g},!0))},d.loadLocaleMessages=async v=>await wm(v,_m,d.mergeLocaleMessage.bind(d),r),d.differentDomains=i.differentDomains,d.defaultLocale=i.defaultLocale,d.getBrowserLocale=()=>wB(),d.getLocaleCookie=()=>EB(l,u,d.defaultLocale),d.setLocaleCookie=v=>{!u||!u.useCookie||(l.value=v)},d.onBeforeLanguageSwitch=(v,g,b,y)=>r.callHook("i18n:beforeLocaleSwitch",{oldLocale:v,newLocale:g,initialSetup:b,context:y}),d.onLanguageSwitched=(v,g)=>r.callHook("i18n:localeSwitched",{oldLocale:v,newLocale:g}),d.finalizePendingLocaleChange=async()=>{var v;c.__pendingLocale&&(c.__setLocale(c.__pendingLocale),(v=c.__resolvePendingLocalePromise)==null||v.call(c),c.__pendingLocale=void 0)},d.waitForPendingLocaleChange=async()=>{c.__pendingLocale&&c.__pendingLocalePromise&&await c.__pendingLocalePromise}},extendComposerInstance(d,p){const h=[["locales",()=>p.locales],["localeCodes",()=>p.localeCodes],["baseUrl",()=>p.baseUrl],["strategy",()=>p.strategy],["localeProperties",()=>p.localeProperties],["setLocale",()=>async m=>Reflect.apply(p.setLocale,p,[m])],["loadLocaleMessages",()=>async m=>Reflect.apply(p.loadLocaleMessages,p,[m])],["differentDomains",()=>p.differentDomains],["defaultLocale",()=>p.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(p.getBrowserLocale,p,[])],["getLocaleCookie",()=>()=>Reflect.apply(p.getLocaleCookie,p,[])],["setLocaleCookie",()=>m=>Reflect.apply(p.setLocaleCookie,p,[m])],["onBeforeLanguageSwitch",()=>(m,v,g,b)=>Reflect.apply(p.onBeforeLanguageSwitch,p,[m,v,g,b])],["onLanguageSwitched",()=>(m,v)=>Reflect.apply(p.onLanguageSwitched,p,[m,v])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(p.finalizePendingLocaleChange,p,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(p.waitForPendingLocaleChange,p,[])]];for(const[m,v]of h)Object.defineProperty(d,m,{get:v})}}),r.vueApp.use(c),Object.defineProperty(r,"$i18n",{get:()=>Lf(c)}),{provide:{localeHead:ei($B),localePath:RB(),localeRoute:PB(),getRouteBaseName:AB(),switchLocalePath:t$(),resolveRoute:ei(mv),localeLocation:LB()}}}}),UB=CM(()=>le(()=>import("./BtbZZJ6x.js"),[],import.meta.url).then(e=>e.default||e.default||e)),jB=[["NuxtIcon",UB]],YB=xt({name:"nuxt:global-components",setup(e){for(const[t,n]of jB)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),iu={},WB=xt({name:"nuxt:prefetch",setup(e){const t=lt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var s;const r=(s=n==null?void 0:n.meta)==null?void 0:s.layout;r&&typeof iu[r]=="function"&&await iu[r]()})}),e.hooks.hook("link:prefetch",n=>{if(ar(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let o=Qg(r.meta.middleware);o=o.filter(i=>typeof i=="string");for(const i of o)typeof Nc[i]=="function"&&Nc[i]();typeof s=="string"&&s in iu&&IN(iu[s])})}});var VB;function zB(){return VB}function qB(e){return typeof e=="function"?e():k(e)}function Sm(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t=qB(e);if(!e||!t)return t;if(Array.isArray(t))return t.map(n=>Sm(n));if(typeof t=="object"){const n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(r==="titleTemplate"||r[0]==="o"&&r[1]==="n"){n[r]=k(t[r]);continue}n[r]=Sm(t[r])}return n}return t}var KB="usehead",$0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},I0="__unhead_injection_handler__";function GB(){return I0 in $0?$0[I0]():yt(KB)||zB()}function XB(e,t={}){const n=t.head||GB();if(n)return n.ssr?n.push(e,t):JB(n,e,t)}function JB(e,t,n={}){const r=pe(!1),s=pe({});Sr(()=>{s.value=r.value?{}:Sm(t)});const o=e.push(s.value,n);return xe(s,a=>{o.patch(a)}),Ht()&&(Ls(()=>{o.dispose()}),Lg(()=>{r.value=!0}),Pg(()=>{r.value=!1})),o}var ZB={install(e){e.mixin({created(){var n;if(typeof((n=this.$options)==null?void 0:n.jsonld)!="function")return;const t=B(()=>this.$options.jsonld.call(this));XB(()=>({script:[{type:"application/ld+json",innerHTML:t.value?JSON.stringify(t.value,null,""):void 0}]}))}})}},QB=xt(e=>{e.vueApp.use(ZB)}),On="top",sr="bottom",or="right",An="left",vv="auto",xl=[On,sr,or,An],ha="start",al="end",e8="clippingParents",n$="viewport",uc="popper",t8="reference",x0=xl.reduce(function(e,t){return e.concat([t+"-"+ha,t+"-"+al])},[]),r$=[].concat(xl,[vv]).reduce(function(e,t){return e.concat([t,t+"-"+ha,t+"-"+al])},[]),n8="beforeRead",r8="read",s8="afterRead",o8="beforeMain",i8="main",a8="afterMain",c8="beforeWrite",l8="write",u8="afterWrite",f8=[n8,r8,s8,o8,i8,a8,c8,l8,u8];function qr(e){return e?(e.nodeName||"").toLowerCase():null}function Yn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ti(e){var t=Yn(e).Element;return e instanceof t||e instanceof Element}function er(e){var t=Yn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yv(e){if(typeof ShadowRoot>"u")return!1;var t=Yn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function d8(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!er(o)||!qr(o)||(Object.assign(o.style,r),Object.keys(s).forEach(function(i){var a=s[i];a===!1?o.removeAttribute(i):o.setAttribute(i,a===!0?"":a)}))})}function p8(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var s=t.elements[r],o=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=i.reduce(function(c,l){return c[l]="",c},{});!er(s)||!qr(s)||(Object.assign(s.style,a),Object.keys(o).forEach(function(c){s.removeAttribute(c)}))})}}const h8={name:"applyStyles",enabled:!0,phase:"write",fn:d8,effect:p8,requires:["computeStyles"]};function Vr(e){return e.split("-")[0]}var zo=Math.max,Nf=Math.min,ma=Math.round;function Em(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function s$(){return!/^((?!chrome|android).)*safari/i.test(Em())}function ga(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,o=1;t&&er(e)&&(s=e.offsetWidth>0&&ma(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ma(r.height)/e.offsetHeight||1);var i=ti(e)?Yn(e):window,a=i.visualViewport,c=!s$()&&n,l=(r.left+(c&&a?a.offsetLeft:0))/s,u=(r.top+(c&&a?a.offsetTop:0))/o,f=r.width/s,d=r.height/o;return{width:f,height:d,top:u,right:l+f,bottom:u+d,left:l,x:l,y:u}}function _v(e){var t=ga(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function o$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ks(e){return Yn(e).getComputedStyle(e)}function m8(e){return["table","td","th"].indexOf(qr(e))>=0}function wo(e){return((ti(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wd(e){return qr(e)==="html"?e:e.assignedSlot||e.parentNode||(yv(e)?e.host:null)||wo(e)}function C0(e){return!er(e)||ks(e).position==="fixed"?null:e.offsetParent}function g8(e){var t=/firefox/i.test(Em()),n=/Trident/i.test(Em());if(n&&er(e)){var r=ks(e);if(r.position==="fixed")return null}var s=Wd(e);for(yv(s)&&(s=s.host);er(s)&&["html","body"].indexOf(qr(s))<0;){var o=ks(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function Cl(e){for(var t=Yn(e),n=C0(e);n&&m8(n)&&ks(n).position==="static";)n=C0(n);return n&&(qr(n)==="html"||qr(n)==="body"&&ks(n).position==="static")?t:n||g8(e)||t}function bv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hc(e,t,n){return zo(e,Nf(t,n))}function v8(e,t,n){var r=Hc(e,t,n);return r>n?n:r}function i$(){return{top:0,right:0,bottom:0,left:0}}function a$(e){return Object.assign({},i$(),e)}function c$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var y8=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,a$(typeof t!="number"?t:c$(t,xl))};function _8(e){var t,n=e.state,r=e.name,s=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Vr(n.placement),c=bv(a),l=[An,or].indexOf(a)>=0,u=l?"height":"width";if(!(!o||!i)){var f=y8(s.padding,n),d=_v(o),p=c==="y"?On:An,h=c==="y"?sr:or,m=n.rects.reference[u]+n.rects.reference[c]-i[c]-n.rects.popper[u],v=i[c]-n.rects.reference[c],g=Cl(o),b=g?c==="y"?g.clientHeight||0:g.clientWidth||0:0,y=m/2-v/2,_=f[p],w=b-d[u]-f[h],S=b/2-d[u]/2+y,E=Hc(_,S,w),$=c;n.modifiersData[r]=(t={},t[$]=E,t.centerOffset=E-S,t)}}function b8(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||o$(t.elements.popper,s)&&(t.elements.arrow=s))}const w8={name:"arrow",enabled:!0,phase:"main",fn:_8,effect:b8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function va(e){return e.split("-")[1]}var S8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function E8(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:ma(n*s)/s||0,y:ma(r*s)/s||0}}function D0(e){var t,n=e.popper,r=e.popperRect,s=e.placement,o=e.variation,i=e.offsets,a=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=i.x,p=d===void 0?0:d,h=i.y,m=h===void 0?0:h,v=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var g=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=An,_=On,w=window;if(l){var S=Cl(n),E="clientHeight",$="clientWidth";if(S===Yn(n)&&(S=wo(n),ks(S).position!=="static"&&a==="absolute"&&(E="scrollHeight",$="scrollWidth")),S=S,s===On||(s===An||s===or)&&o===al){_=sr;var T=f&&S===w&&w.visualViewport?w.visualViewport.height:S[E];m-=T-r.height,m*=c?1:-1}if(s===An||(s===On||s===sr)&&o===al){y=or;var x=f&&S===w&&w.visualViewport?w.visualViewport.width:S[$];p-=x-r.width,p*=c?1:-1}}var L=Object.assign({position:a},l&&S8),M=u===!0?E8({x:p,y:m},Yn(n)):{x:p,y:m};if(p=M.x,m=M.y,c){var j;return Object.assign({},L,(j={},j[_]=b?"0":"",j[y]=g?"0":"",j.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",j))}return Object.assign({},L,(t={},t[_]=b?m+"px":"",t[y]=g?p+"px":"",t.transform="",t))}function k8(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,o=n.adaptive,i=o===void 0?!0:o,a=n.roundOffsets,c=a===void 0?!0:a,l={placement:Vr(t.placement),variation:va(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,D0(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,D0(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const T8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:k8,data:{}};var au={passive:!0};function $8(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,o=s===void 0?!0:s,i=r.resize,a=i===void 0?!0:i,c=Yn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(u){u.addEventListener("scroll",n.update,au)}),a&&c.addEventListener("resize",n.update,au),function(){o&&l.forEach(function(u){u.removeEventListener("scroll",n.update,au)}),a&&c.removeEventListener("resize",n.update,au)}}const I8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$8,data:{}};var x8={left:"right",right:"left",bottom:"top",top:"bottom"};function Qu(e){return e.replace(/left|right|bottom|top/g,function(t){return x8[t]})}var C8={start:"end",end:"start"};function M0(e){return e.replace(/start|end/g,function(t){return C8[t]})}function wv(e){var t=Yn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Sv(e){return ga(wo(e)).left+wv(e).scrollLeft}function D8(e,t){var n=Yn(e),r=wo(e),s=n.visualViewport,o=r.clientWidth,i=r.clientHeight,a=0,c=0;if(s){o=s.width,i=s.height;var l=s$();(l||!l&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:o,height:i,x:a+Sv(e),y:c}}function M8(e){var t,n=wo(e),r=wv(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=zo(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),i=zo(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-r.scrollLeft+Sv(e),c=-r.scrollTop;return ks(s||n).direction==="rtl"&&(a+=zo(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:i,x:a,y:c}}function Ev(e){var t=ks(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function l$(e){return["html","body","#document"].indexOf(qr(e))>=0?e.ownerDocument.body:er(e)&&Ev(e)?e:l$(Wd(e))}function Bc(e,t){var n;t===void 0&&(t=[]);var r=l$(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=Yn(r),i=s?[o].concat(o.visualViewport||[],Ev(r)?r:[]):r,a=t.concat(i);return s?a:a.concat(Bc(Wd(i)))}function km(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function O8(e,t){var n=ga(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function O0(e,t,n){return t===n$?km(D8(e,n)):ti(t)?O8(t,n):km(M8(wo(e)))}function A8(e){var t=Bc(Wd(e)),n=["absolute","fixed"].indexOf(ks(e).position)>=0,r=n&&er(e)?Cl(e):e;return ti(r)?t.filter(function(s){return ti(s)&&o$(s,r)&&qr(s)!=="body"}):[]}function R8(e,t,n,r){var s=t==="clippingParents"?A8(e):[].concat(t),o=[].concat(s,[n]),i=o[0],a=o.reduce(function(c,l){var u=O0(e,l,r);return c.top=zo(u.top,c.top),c.right=Nf(u.right,c.right),c.bottom=Nf(u.bottom,c.bottom),c.left=zo(u.left,c.left),c},O0(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function u$(e){var t=e.reference,n=e.element,r=e.placement,s=r?Vr(r):null,o=r?va(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(s){case On:c={x:i,y:t.y-n.height};break;case sr:c={x:i,y:t.y+t.height};break;case or:c={x:t.x+t.width,y:a};break;case An:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var l=s?bv(s):null;if(l!=null){var u=l==="y"?"height":"width";switch(o){case ha:c[l]=c[l]-(t[u]/2-n[u]/2);break;case al:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function cl(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,o=n.strategy,i=o===void 0?e.strategy:o,a=n.boundary,c=a===void 0?e8:a,l=n.rootBoundary,u=l===void 0?n$:l,f=n.elementContext,d=f===void 0?uc:f,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,v=m===void 0?0:m,g=a$(typeof v!="number"?v:c$(v,xl)),b=d===uc?t8:uc,y=e.rects.popper,_=e.elements[h?b:d],w=R8(ti(_)?_:_.contextElement||wo(e.elements.popper),c,u,i),S=ga(e.elements.reference),E=u$({reference:S,element:y,placement:s}),$=km(Object.assign({},y,E)),T=d===uc?$:S,x={top:w.top-T.top+g.top,bottom:T.bottom-w.bottom+g.bottom,left:w.left-T.left+g.left,right:T.right-w.right+g.right},L=e.modifiersData.offset;if(d===uc&&L){var M=L[s];Object.keys(x).forEach(function(j){var q=[or,sr].indexOf(j)>=0?1:-1,F=[On,sr].indexOf(j)>=0?"y":"x";x[j]+=M[F]*q})}return x}function P8(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,o=n.rootBoundary,i=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?r$:c,u=va(r),f=u?a?x0:x0.filter(function(h){return va(h)===u}):xl,d=f.filter(function(h){return l.indexOf(h)>=0});d.length===0&&(d=f);var p=d.reduce(function(h,m){return h[m]=cl(e,{placement:m,boundary:s,rootBoundary:o,padding:i})[Vr(m)],h},{});return Object.keys(p).sort(function(h,m){return p[h]-p[m]})}function L8(e){if(Vr(e)===vv)return[];var t=Qu(e);return[M0(e),t,M0(t)]}function N8(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,i=n.altAxis,a=i===void 0?!0:i,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,m=n.allowedAutoPlacements,v=t.options.placement,g=Vr(v),b=g===v,y=c||(b||!h?[Qu(v)]:L8(v)),_=[v].concat(y).reduce(function(ve,Pe){return ve.concat(Vr(Pe)===vv?P8(t,{placement:Pe,boundary:u,rootBoundary:f,padding:l,flipVariations:h,allowedAutoPlacements:m}):Pe)},[]),w=t.rects.reference,S=t.rects.popper,E=new Map,$=!0,T=_[0],x=0;x<_.length;x++){var L=_[x],M=Vr(L),j=va(L)===ha,q=[On,sr].indexOf(M)>=0,F=q?"width":"height",R=cl(t,{placement:L,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),V=q?j?or:An:j?sr:On;w[F]>S[F]&&(V=Qu(V));var U=Qu(V),re=[];if(o&&re.push(R[M]<=0),a&&re.push(R[V]<=0,R[U]<=0),re.every(function(ve){return ve})){T=L,$=!1;break}E.set(L,re)}if($)for(var G=h?3:1,fe=function(Pe){var Le=_.find(function(J){var ce=E.get(J);if(ce)return ce.slice(0,Pe).every(function(ie){return ie})});if(Le)return T=Le,"break"},ae=G;ae>0;ae--){var Ee=fe(ae);if(Ee==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const F8={name:"flip",enabled:!0,phase:"main",fn:N8,requiresIfExists:["offset"],data:{_skip:!1}};function A0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function R0(e){return[On,or,sr,An].some(function(t){return e[t]>=0})}function H8(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,i=cl(t,{elementContext:"reference"}),a=cl(t,{altBoundary:!0}),c=A0(i,r),l=A0(a,s,o),u=R0(c),f=R0(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const B8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:H8};function U8(e,t,n){var r=Vr(e),s=[An,On].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=o[0],a=o[1];return i=i||0,a=(a||0)*s,[An,or].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function j8(e){var t=e.state,n=e.options,r=e.name,s=n.offset,o=s===void 0?[0,0]:s,i=r$.reduce(function(u,f){return u[f]=U8(f,t.rects,o),u},{}),a=i[t.placement],c=a.x,l=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=i}const Y8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:j8};function W8(e){var t=e.state,n=e.name;t.modifiersData[n]=u$({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const V8={name:"popperOffsets",enabled:!0,phase:"read",fn:W8,data:{}};function z8(e){return e==="x"?"y":"x"}function q8(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,o=s===void 0?!0:s,i=n.altAxis,a=i===void 0?!1:i,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=d===void 0?!0:d,h=n.tetherOffset,m=h===void 0?0:h,v=cl(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),g=Vr(t.placement),b=va(t.placement),y=!b,_=bv(g),w=z8(_),S=t.modifiersData.popperOffsets,E=t.rects.reference,$=t.rects.popper,T=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,x=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(S){if(o){var j,q=_==="y"?On:An,F=_==="y"?sr:or,R=_==="y"?"height":"width",V=S[_],U=V+v[q],re=V-v[F],G=p?-$[R]/2:0,fe=b===ha?E[R]:$[R],ae=b===ha?-$[R]:-E[R],Ee=t.elements.arrow,ve=p&&Ee?_v(Ee):{width:0,height:0},Pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:i$(),Le=Pe[q],J=Pe[F],ce=Hc(0,E[R],ve[R]),ie=y?E[R]/2-G-ce-Le-x.mainAxis:fe-ce-Le-x.mainAxis,ue=y?-E[R]/2+G+ce+J+x.mainAxis:ae+ce+J+x.mainAxis,be=t.elements.arrow&&Cl(t.elements.arrow),Ie=be?_==="y"?be.clientTop||0:be.clientLeft||0:0,C=(j=L==null?void 0:L[_])!=null?j:0,O=V+ie-C-Ie,W=V+ue-C,ne=Hc(p?Nf(U,O):U,V,p?zo(re,W):re);S[_]=ne,M[_]=ne-V}if(a){var ee,I=_==="x"?On:An,D=_==="x"?sr:or,N=S[w],X=w==="y"?"height":"width",K=N+v[I],te=N-v[D],A=[On,An].indexOf(g)!==-1,z=(ee=L==null?void 0:L[w])!=null?ee:0,de=A?K:N-E[X]-$[X]-z+x.altAxis,ye=A?N+E[X]+$[X]-z-x.altAxis:te,We=p&&A?v8(de,N,ye):Hc(p?de:K,N,p?ye:te);S[w]=We,M[w]=We-N}t.modifiersData[r]=M}}const K8={name:"preventOverflow",enabled:!0,phase:"main",fn:q8,requiresIfExists:["offset"]};function G8(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function X8(e){return e===Yn(e)||!er(e)?wv(e):G8(e)}function J8(e){var t=e.getBoundingClientRect(),n=ma(t.width)/e.offsetWidth||1,r=ma(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Z8(e,t,n){n===void 0&&(n=!1);var r=er(t),s=er(t)&&J8(t),o=wo(t),i=ga(e,s,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((qr(t)!=="body"||Ev(o))&&(a=X8(t)),er(t)?(c=ga(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Sv(o))),{x:i.left+a.scrollLeft-c.x,y:i.top+a.scrollTop-c.y,width:i.width,height:i.height}}function Q8(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&s(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),r}function eU(e){var t=Q8(e);return f8.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function tU(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function nU(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var P0={placement:"bottom",modifiers:[],strategy:"absolute"};function L0(){for(var e=arguments.length,t=new Array(e),n=0;nt in e?iU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Te=(e,t,n)=>(aU(e,typeof t!="symbol"?t+"":t,n),n),cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cU=Object.prototype,lU=cU.hasOwnProperty;function uU(e,t){return e!=null&&lU.call(e,t)}var fU=uU,dU=Array.isArray,Ir=dU,pU=typeof cu=="object"&&cu&&cu.Object===Object&&cu,d$=pU,hU=d$,mU=typeof self=="object"&&self&&self.Object===Object&&self,gU=hU||mU||Function("return this")(),Gr=gU,vU=Gr,yU=vU.Symbol,Vd=yU,N0=Vd,p$=Object.prototype,_U=p$.hasOwnProperty,bU=p$.toString,fc=N0?N0.toStringTag:void 0;function wU(e){var t=_U.call(e,fc),n=e[fc];try{e[fc]=void 0;var r=!0}catch{}var s=bU.call(e);return r&&(t?e[fc]=n:delete e[fc]),s}var SU=wU,EU=Object.prototype,kU=EU.toString;function TU(e){return kU.call(e)}var $U=TU,F0=Vd,IU=SU,xU=$U,CU="[object Null]",DU="[object Undefined]",H0=F0?F0.toStringTag:void 0;function MU(e){return e==null?e===void 0?DU:CU:H0&&H0 in Object(e)?IU(e):xU(e)}var Xr=MU;function OU(e){return e!=null&&typeof e=="object"}var xr=OU,AU=Xr,RU=xr,PU="[object Symbol]";function LU(e){return typeof e=="symbol"||RU(e)&&AU(e)==PU}var kv=LU,NU=Ir,FU=kv,HU=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,BU=/^\w*$/;function UU(e,t){if(NU(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||FU(e)?!0:BU.test(e)||!HU.test(e)||t!=null&&e in Object(t)}var Tv=UU;function jU(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fs=jU,YU=Xr,WU=Fs,VU="[object AsyncFunction]",zU="[object Function]",qU="[object GeneratorFunction]",KU="[object Proxy]";function GU(e){if(!WU(e))return!1;var t=YU(e);return t==zU||t==qU||t==VU||t==KU}var ui=GU,XU=Gr,JU=XU["__core-js_shared__"],ZU=JU,Yp=ZU,B0=function(){var e=/[^.]+$/.exec(Yp&&Yp.keys&&Yp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function QU(e){return!!B0&&B0 in e}var ej=QU,tj=Function.prototype,nj=tj.toString;function rj(e){if(e!=null){try{return nj.call(e)}catch{}try{return e+""}catch{}}return""}var h$=rj,sj=ui,oj=ej,ij=Fs,aj=h$,cj=/[\\^$.*+?()[\]{}|]/g,lj=/^\[object .+?Constructor\]$/,uj=Function.prototype,fj=Object.prototype,dj=uj.toString,pj=fj.hasOwnProperty,hj=RegExp("^"+dj.call(pj).replace(cj,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mj(e){if(!ij(e)||oj(e))return!1;var t=sj(e)?hj:lj;return t.test(aj(e))}var gj=mj;function vj(e,t){return e==null?void 0:e[t]}var yj=vj,_j=gj,bj=yj;function wj(e,t){var n=bj(e,t);return _j(n)?n:void 0}var fi=wj,Sj=fi,Ej=Sj(Object,"create"),zd=Ej,U0=zd;function kj(){this.__data__=U0?U0(null):{},this.size=0}var Tj=kj;function $j(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ij=$j,xj=zd,Cj="__lodash_hash_undefined__",Dj=Object.prototype,Mj=Dj.hasOwnProperty;function Oj(e){var t=this.__data__;if(xj){var n=t[e];return n===Cj?void 0:n}return Mj.call(t,e)?t[e]:void 0}var Aj=Oj,Rj=zd,Pj=Object.prototype,Lj=Pj.hasOwnProperty;function Nj(e){var t=this.__data__;return Rj?t[e]!==void 0:Lj.call(t,e)}var Fj=Nj,Hj=zd,Bj="__lodash_hash_undefined__";function Uj(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Hj&&t===void 0?Bj:t,this}var jj=Uj,Yj=Tj,Wj=Ij,Vj=Aj,zj=Fj,qj=jj;function Na(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var u4=l4,f4=qd;function d4(e,t){var n=this.__data__,r=f4(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var p4=d4,h4=Xj,m4=s4,g4=a4,v4=u4,y4=p4;function Ha(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=DY}var Mv=MY,OY=kv;function AY(e){if(typeof e=="string"||OY(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Xd=AY,RY=v$,PY=Cv,LY=Ir,NY=Dv,FY=Mv,HY=Xd;function BY(e,t,n){t=RY(t,e);for(var r=-1,s=t.length,o=!1;++ra))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,p=n&Y6?new H6:void 0;for(o.set(e,t),o.set(t,e);++f0){if(++t>=Y9)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var q9=z9,K9=j9,G9=q9,X9=G9(K9),J9=X9,Z9=Lv,Q9=L9,eq=J9;function tq(e,t){return eq(Q9(e,t,Z9),e+"")}var Fv=tq;function nq(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var rq=nq,sq=Fs,oq=Rv,iq=rq,aq=Object.prototype,cq=aq.hasOwnProperty;function lq(e){if(!sq(e))return iq(e);var t=oq(e),n=[];for(var r in e)r=="constructor"&&(t||!cq.call(e,r))||n.push(r);return n}var uq=lq,fq=T$,dq=uq,pq=Dl;function hq(e){return pq(e)?fq(e,!0):dq(e)}var Hv=hq,mq=Fv,gq=Fa,vq=Nv,yq=Hv,F$=Object.prototype,_q=F$.hasOwnProperty,bq=mq(function(e,t){e=Object(e);var n=-1,r=t.length,s=r>2?t[2]:void 0;for(s&&vq(t[0],t[1],s)&&(r=1);++n1?n[s-1]:void 0,i=s>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,i&&R7(n[0],n[1],i)&&(o=s<3?void 0:o,s=1),t=Object(t);++rObject.prototype.toString.call(e).slice(8,-1),Zi=e=>e6(e)&&!isNaN(e.getTime()),Ts=e=>K7(e)==="Object",q$=b$,Tw=(e,t)=>l9(t,n=>b$(e,n)),it=(e,t,n="0")=>{for(e=e!=null?String(e):"",t=t||2;e.lengthArray.isArray(e),ps=e=>tr(e)&&e.length>0,Bf=e=>e==null?null:document&&Br(e)?document.querySelector(e):e.$el??e,to=(e,t,n,r=void 0)=>{e.removeEventListener(t,n,r)},no=(e,t,n,r=void 0)=>(e.addEventListener(t,n,r),()=>to(e,t,n,r)),ef=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),uu=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},K$=(e,...t)=>{const n={};let r;for(r in e)t.includes(r)||(n[r]=e[r]);return n},G$=(e,t)=>{const n={};return t.forEach(r=>{r in e&&(n[r]=e[r])}),n};function G7(e,t,n){return Math.min(Math.max(e,t),n)}var Uf={},X7={get exports(){return Uf},set exports(e){Uf=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var s=Number(r);return isNaN(s)?s:s<0?Math.ceil(s):Math.floor(s)}e.exports=t.default})(X7,Uf);const J7=f$(Uf);var jf={},Z7={get exports(){return jf},set exports(e){jf=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var s=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return s.setUTCFullYear(r.getFullYear()),r.getTime()-s.getTime()}e.exports=t.default})(Z7,jf);const $w=f$(jf);function Q7(e,t){var n=rK(t);return n.formatToParts?tK(n,e):nK(n,e)}var eK={year:0,month:1,day:2,hour:3,minute:4,second:5};function tK(e,t){try{for(var n=e.formatToParts(t),r=[],s=0;s=0&&(r[o]=parseInt(n[s].value,10))}return r}catch(i){if(i instanceof RangeError)return[NaN];throw i}}function nK(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var zp={};function rK(e){if(!zp[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";zp[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return zp[e]}function X$(e,t,n,r,s,o,i){var a=new Date(0);return a.setUTCFullYear(e,t,n),a.setUTCHours(r,s,o,i),a}var Iw=36e5,sK=6e4,qp={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function oK(e,t,n){var r,s;if(!e||(r=qp.timezoneZ.exec(e),r))return 0;var o;if(r=qp.timezoneHH.exec(e),r)return o=parseInt(r[1],10),xw(o)?-(o*Iw):NaN;if(r=qp.timezoneHHMM.exec(e),r){o=parseInt(r[1],10);var i=parseInt(r[2],10);return xw(o,i)?(s=Math.abs(o)*Iw+i*sK,o>0?-s:s):NaN}if(cK(e)){t=new Date(t||Date.now());var a=iK(t),c=Dm(a,e),l=aK(t,c,e);return-l}return NaN}function iK(e){return X$(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Dm(e,t){var n=Q7(e,t),r=X$(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),s=e.getTime(),o=s%1e3;return s-=o>=0?o:1e3+o,r-s}function aK(e,t,n){var r=e.getTime(),s=r-t,o=Dm(new Date(s),n);if(t===o)return t;s-=o-t;var i=Dm(new Date(s),n);return o===i?o:Math.max(o,i)}function xw(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var Cw={};function cK(e){if(Cw[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Cw[e]=!0,!0}catch{return!1}}var lK=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const uK=lK;var Kp=36e5,Dw=6e4,fK=2,wn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:uK};function dK(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?fK:J7(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var s=pK(e),o=hK(s.date,r),i=o.year,a=o.restDateString,c=mK(a,i);if(isNaN(c))return new Date(NaN);if(c){var l=c.getTime(),u=0,f;if(s.time&&(u=gK(s.time),isNaN(u)))return new Date(NaN);if(s.timeZone||n.timeZone){if(f=oK(s.timeZone||n.timeZone,new Date(l+u)),isNaN(f))return new Date(NaN)}else f=$w(new Date(l+u)),f=$w(new Date(l+u+f));return new Date(l+u+f)}else return new Date(NaN)}function pK(e){var t={},n=wn.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=wn.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var s=wn.timeZone.exec(r);s?(t.time=r.replace(s[1],""),t.timeZone=s[1].trim()):t.time=r}return t}function hK(e,t){var n=wn.YYY[t],r=wn.YYYYY[t],s;if(s=wn.YYYY.exec(e)||r.exec(e),s){var o=s[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(s=wn.YY.exec(e)||n.exec(e),s){var i=s[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}return{year:null}}function mK(e,t){if(t===null)return null;var n,r,s,o;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=wn.MM.exec(e),n)return r=new Date(0),s=parseInt(n[1],10)-1,Ow(t,s)?(r.setUTCFullYear(t,s),r):new Date(NaN);if(n=wn.DDD.exec(e),n){r=new Date(0);var i=parseInt(n[1],10);return _K(t,i)?(r.setUTCFullYear(t,0,i),r):new Date(NaN)}if(n=wn.MMDD.exec(e),n){r=new Date(0),s=parseInt(n[1],10)-1;var a=parseInt(n[2],10);return Ow(t,s,a)?(r.setUTCFullYear(t,s,a),r):new Date(NaN)}if(n=wn.Www.exec(e),n)return o=parseInt(n[1],10)-1,Aw(t,o)?Mw(t,o):new Date(NaN);if(n=wn.WwwD.exec(e),n){o=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return Aw(t,o,c)?Mw(t,o,c):new Date(NaN)}return null}function gK(e){var t,n,r;if(t=wn.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Gp(n)?n%24*Kp:NaN;if(t=wn.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Gp(n,r)?n%24*Kp+r*Dw:NaN;if(t=wn.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var s=parseFloat(t[3].replace(",","."));return Gp(n,r,s)?n%24*Kp+r*Dw+s*1e3:NaN}return null}function Mw(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var s=r.getUTCDay()||7,o=t*7+n+1-s;return r.setUTCDate(r.getUTCDate()+o),r}var vK=[31,28,31,30,31,30,31,31,30,31,30,31],yK=[31,29,31,30,31,30,31,31,30,31,30,31];function J$(e){return e%400===0||e%4===0&&e%100!==0}function Ow(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=J$(e);if(r&&n>yK[t]||!r&&n>vK[t])return!1}return!0}function _K(e,t){if(t<1)return!1;var n=J$(e);return!(n&&t>366||!n&&t>365)}function Aw(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Gp(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function hn(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function tf(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tf=function(n){return typeof n}:tf=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tf(e)}function Hs(e){hn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||tf(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ya(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var bK={};function Bv(){return bK}function ni(e,t){var n,r,s,o,i,a,c,l;hn(1,arguments);var u=Bv(),f=Ya((n=(r=(s=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(a=i.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&s!==void 0?s:u.weekStartsOn)!==null&&r!==void 0?r:(c=u.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Hs(e),p=d.getDay(),h=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(f+1,0,p),h.setHours(0,0,0,0);var m=ni(h,t),v=new Date(0);v.setFullYear(f,0,p),v.setHours(0,0,0,0);var g=ni(v,t);return u.getTime()>=m.getTime()?f+1:u.getTime()>=g.getTime()?f:f-1}function IK(e,t){var n,r,s,o,i,a,c,l;hn(1,arguments);var u=Bv(),f=Ya((n=(r=(s=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(a=i.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&s!==void 0?s:u.firstWeekContainsDate)!==null&&r!==void 0?r:(c=u.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:1),d=$K(e,t),p=new Date(0);p.setFullYear(d,0,f),p.setHours(0,0,0,0);var h=ni(p,t);return h}var xK=6048e5;function CK(e,t){hn(1,arguments);var n=Hs(e),r=ni(n,t).getTime()-IK(n,t).getTime();return Math.round(r/xK)+1}function Yf(e){return hn(1,arguments),ni(e,{weekStartsOn:1})}function DK(e){hn(1,arguments);var t=Hs(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var s=Yf(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var i=Yf(o);return t.getTime()>=s.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function MK(e){hn(1,arguments);var t=DK(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Yf(n);return r}var OK=6048e5;function AK(e){hn(1,arguments);var t=Hs(e),n=Yf(t).getTime()-MK(t).getTime();return Math.round(n/OK)+1}function bn(e,t){hn(2,arguments);var n=Hs(e),r=Ya(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Wf(e,t){hn(2,arguments);var n=Hs(e),r=Ya(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var s=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var i=o.getDate();return s>=i?o:(n.setFullYear(o.getFullYear(),o.getMonth(),s),n)}function Pw(e,t){hn(2,arguments);var n=Ya(t);return Wf(e,n*12)}const RK={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function PK({monthComps:e,prevMonthComps:t,nextMonthComps:n},r){const s=[],{firstDayOfWeek:o,firstWeekday:i,isoWeeknumbers:a,weeknumbers:c,numDays:l,numWeeks:u}=e,f=i+(i{const c=Math.floor(a/7);let l=o[c];return l||(l={id:`week-${c+1}`,title:"",week:i.week,weekPosition:i.weekPosition,weeknumber:i.weeknumber,isoWeeknumber:i.isoWeeknumber,weeknumberDisplay:t?i.weeknumber:n?i.isoWeeknumber:void 0,days:[]},o[c]=l),l.days.push(i),o},Array(e.length/cn));return s.forEach(o=>{const i=o.days[0],a=o.days[o.days.length-1];i.month===a.month?o.title=`${r.formatDate(i.date,"MMMM YYYY")}`:i.year===a.year?o.title=`${r.formatDate(i.date,"MMM")} - ${r.formatDate(a.date,"MMM YYYY")}`:o.title=`${r.formatDate(i.date,"MMM YYYY")} - ${r.formatDate(a.date,"MMM YYYY")}`}),s}function NK(e,t){return e.days.map(n=>({label:t.formatDate(n.date,t.masks.weekdays),weekday:n.weekday}))}function FK(e,t){return`${t}.${it(e,2)}`}function Z$(e,t,n){return G$(n.getDateParts(n.toDate(e)),RK[t])}function Q$({day:e,week:t,month:n,year:r},s,o,i){if(o==="daily"&&e){const a=new Date(r,n-1,e),c=bn(a,s);return{day:c.getDate(),month:c.getMonth()+1,year:c.getFullYear()}}else if(o==="weekly"&&t){const c=i.getMonthParts(n,r).firstDayOfMonth,l=bn(c,(t-1+s)*7),u=i.getDateParts(l);return{week:u.week,month:u.month,year:u.year}}else{const a=new Date(r,n-1,1),c=Wf(a,s);return{month:c.getMonth()+1,year:c.getFullYear()}}}function Ur(e){return e!=null&&e.month!=null&&e.year!=null}function Mm(e,t){return!Ur(e)||!Ur(t)?!1:(e=e,t=t,e.year!==t.year?e.yeart.year:e.month&&t.month&&e.month!==t.month?e.month>t.month:e.week&&t.week&&e.week!==t.week?e.week>t.week:e.day&&t.day&&e.day!==t.day?e.day>t.day:!1)}function HK(e,t,n){return(e||!1)&&!Mm(e,t)&&!Vf(e,n)}function BK(e,t){return!e&&t||e&&!t?!1:!e&&!t?!0:(e=e,t=t,e.year===t.year&&e.month===t.month&&e.week===t.week&&e.day===t.day)}function UK(e,t,n,r){if(!Ur(e)||!Ur(t))return[];const s=[];for(;!Vf(e,t);)s.push(e),e=Q$(e,1,n,r);return s}function eI(e){const{day:t,week:n,month:r,year:s}=e;let o=`${s}-${it(r,2)}`;return n&&(o=`${o}-w${n}`),t&&(o=`${o}-${it(t,2)}`),o}function jK(e,t){const{month:n,year:r,showWeeknumbers:s,showIsoWeeknumbers:o}=e,i=new Date(r,n-1,15),a=t.getMonthParts(n,r),c=t.getPrevMonthParts(n,r),l=t.getNextMonthParts(n,r),u=PK({monthComps:a,prevMonthComps:c,nextMonthComps:l},t),f=LK(u,s,o,t),d=NK(f[0],t);return{id:eI(e),month:n,year:r,monthTitle:t.formatDate(i,t.masks.title),shortMonthLabel:t.formatDate(i,"MMM"),monthLabel:t.formatDate(i,"MMMM"),shortYearLabel:r.toString().substring(2),yearLabel:r.toString(),monthComps:a,prevMonthComps:c,nextMonthComps:l,days:u,weeks:f,weekdays:d}}function YK(e,t){const{day:n,week:r,view:s,trimWeeks:o}=e,i={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(s){case"daily":{let a=i.days.find(l=>l.inMonth);n?a=i.days.find(l=>l.day===n&&l.inMonth)||a:r&&(a=i.days.find(l=>l.week===r&&l.inMonth));const c=i.weeks[a.week-1];i.viewWeeks=[c],i.viewDays=[a],i.week=a.week,i.weekTitle=c.title,i.day=a.day,i.dayTitle=a.ariaLabel,i.title=i.dayTitle;break}case"weekly":{i.week=r||1;const a=i.weeks[i.week-1];i.viewWeeks=[a],i.viewDays=a.days,i.weekTitle=a.title,i.title=i.weekTitle;break}default:{i.title=i.monthTitle,i.viewWeeks=i.weeks.slice(0,o?i.monthComps.numWeeks:void 0),i.viewDays=i.days;break}}return i}class Lw{constructor(t,n,r){Te(this,"keys",[]),Te(this,"store",{}),this.size=t,this.createKey=n,this.createItem=r}get(...t){const n=this.createKey(...t);return this.store[n]}getOrSet(...t){const n=this.createKey(...t);if(this.store[n])return this.store[n];const r=this.createItem(...t);if(this.keys.length>=this.size){const s=this.keys.shift();s!=null&&delete this.store[s]}return this.keys.push(n),this.store[n]=r,r}}class Qi{constructor(t,n=new zf){Te(this,"order"),Te(this,"locale"),Te(this,"start",null),Te(this,"end",null),Te(this,"repeat",null);var r;this.locale=n;const{start:s,end:o,span:i,order:a,repeat:c}=t;Zi(s)&&(this.start=n.getDateParts(s)),Zi(o)?this.end=n.getDateParts(o):this.start!=null&&i&&(this.end=n.getDateParts(bn(this.start.date,i-1))),this.order=a??0,c&&(this.repeat=new qf({from:(r=this.start)==null?void 0:r.date,...c},{locale:this.locale}))}static fromMany(t,n){return(tr(t)?t:[t]).filter(r=>r).map(r=>Qi.from(r,n))}static from(t,n){if(t instanceof Qi)return t;const r={start:null,end:null};return t!=null&&(tr(t)?(r.start=t[0]??null,r.end=t[1]??null):Ts(t)?Object.assign(r,t):(r.start=t,r.end=t)),r.start!=null&&(r.start=new Date(r.start)),r.end!=null&&(r.end=new Date(r.end)),new Qi(r,n)}get opts(){const{order:t,locale:n}=this;return{order:t,locale:n}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:t,end:n}=this;return t&&n&&t.year===n.year&&t.month===n.month&&t.day===n.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(t){var n,r;return((n=this.start)==null?void 0:n.dayIndex)===t.dayIndex||!!((r=this.repeat)!=null&&r.passes(t))}intersectsDay(t){return this.intersectsDayRange(t,t)}intersectsRange(t){var n,r;return this.intersectsDayRange(((n=t.start)==null?void 0:n.dayIndex)??-1/0,((r=t.end)==null?void 0:r.dayIndex)??1/0)}intersectsDayRange(t,n){return!(this.start&&this.start.dayIndex>n||this.end&&this.end.dayIndex{var d,p;if(n.startsOnDay(f)){const h=n.daySpan<1/0?n.daySpan:1;c={startDay:f.dayIndex,startTime:((d=n.start)==null?void 0:d.time)??0,endDay:f.dayIndex+h-1,endTime:((p=n.end)==null?void 0:p.time)??nf},this.getRangeRecords(t).push(c)}}):n.intersectsDayRange(l,u)&&(c={startDay:((s=n.start)==null?void 0:s.dayIndex)??-1/0,startTime:((o=n.start)==null?void 0:o.time)??-1/0,endDay:((i=n.end)==null?void 0:i.dayIndex)??1/0,endTime:((a=n.end)==null?void 0:a.time)??1/0},this.getRangeRecords(t).push(c)),c}getRangeRecords(t){let n=this.records[t.key];return n||(n={ranges:[],data:t},this.records[t.key]=n),n.ranges}getCell(t,n){return this.getCells(n).find(o=>o.data.key===t)}cellExists(t,n){const r=this.records[t];return r==null?!1:r.ranges.some(s=>s.startDay<=n&&s.endDay>=n)}getCells(t){const n=Object.values(this.records),r=[],{dayIndex:s}=t;return n.forEach(({data:o,ranges:i})=>{i.filter(a=>a.startDay<=s&&a.endDay>=s).forEach(a=>{const c=s===a.startDay,l=s===a.endDay,u=c?a.startTime:0,f=new Date(t.startDate.getTime()+u),d=l?a.endTime:nf,p=new Date(t.endDate.getTime()+d),h=u===0&&d===nf,m=o.order||0;r.push({...a,data:o,onStart:c,onEnd:l,startTime:u,startDate:f,endTime:d,endDate:p,allDay:h,order:m})})}),r.sort((o,i)=>o.order-i.order),r}}const $s={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};$s.en=$s["en-US"];$s.es=$s["es-ES"];$s.no=$s.nb;$s.zh=$s["zh-CN"];const VK=Object.entries($s).reduce((e,[t,{dow:n,L:r}])=>(e[t]={id:t,firstDayOfWeek:n,masks:{L:r}},e),{}),zK="MMMM YYYY",qK="W",KK="MMM",GK="h A",XK=["L","YYYY-MM-DD","YYYY/MM/DD"],JK=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],ZK=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],QK=["h:mm A"],eG=["HH:mm"],tG="WWW, MMM D, YYYY",nG=["L","YYYY-MM-DD","YYYY/MM/DD"],rG="iso",sG="YYYY-MM-DDTHH:mm:ss.SSSZ",oG={title:zK,weekdays:qK,navMonths:KK,hours:GK,input:XK,inputDateTime:JK,inputDateTime24hr:ZK,inputTime:QK,inputTime24hr:eG,dayPopover:tG,data:nG,model:rG,iso:sG},iG=300,aG=60,cG=80,lG={maxSwipeTime:iG,minHorizontalSwipeDistance:aG,maxVerticalSwipeDistance:cG},uG={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:lG,masks:oG,locales:VK,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},ea=qt(uG),fG=B(()=>O9(ea.locales,e=>(e.masks=_a(e.masks,ea.masks),e))),lo=e=>typeof window<"u"&&q$(window.__vcalendar__,e)?Bo(window.__vcalendar__,e):Bo(ea,e),dG=(e,t)=>(e.config.globalProperties.$VCalendar=ea,Object.assign(ea,_a(t,ea))),pG=12,hG=5;function mG(e,t){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let r;Br(e)?r=e:q$(e,"id")&&(r=e.id),r=(r||n).toLowerCase();const s=Object.keys(t),o=c=>s.find(l=>l.toLowerCase()===c);r=o(r)||o(r.substring(0,2))||n;const i={...t["en-IE"],...t[r],id:r,monthCacheSize:pG,pageCacheSize:hG};return Ts(e)?_a(e,i):i}class zf{constructor(t=void 0,n){Te(this,"id"),Te(this,"daysInWeek"),Te(this,"firstDayOfWeek"),Te(this,"masks"),Te(this,"timezone"),Te(this,"hourLabels"),Te(this,"dayNames"),Te(this,"dayNamesShort"),Te(this,"dayNamesShorter"),Te(this,"dayNamesNarrow"),Te(this,"monthNames"),Te(this,"monthNamesShort"),Te(this,"relativeTimeNames"),Te(this,"amPm",["am","pm"]),Te(this,"monthCache"),Te(this,"pageCache");const{id:r,firstDayOfWeek:s,masks:o,monthCacheSize:i,pageCacheSize:a}=mG(t,fG.value);this.monthCache=new Lw(i,NG,FG),this.pageCache=new Lw(a,eI,jK),this.id=r,this.daysInWeek=cn,this.firstDayOfWeek=G7(s,1,cn),this.masks=o,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=Xp("long",this.id),this.dayNamesShort=Xp("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(c=>c.substring(0,2)),this.dayNamesNarrow=Xp("narrow",this.id),this.monthNames=jw("long",this.id),this.monthNamesShort=jw("short",this.id),this.relativeTimeNames=UG(this.id)}formatDate(t,n){return zG(t,n,this)}parseDate(t,n){return Yw(t,n,this)}toDate(t,n={}){const r=new Date(NaN);let s=r;const{fillDate:o,mask:i,patch:a,rules:c}=n;if($r(t)?(n.type="number",s=new Date(+t)):Br(t)?(n.type="string",s=t?Yw(t,i||"iso",this):r):Zi(t)?(n.type="date",s=new Date(t.getTime())):Uv(t)&&(n.type="object",s=this.getDateFromParts(t)),s&&(a||c)){let l=this.getDateParts(s);if(a&&o!=null){const u=this.getDateParts(this.toDate(o));l=this.getDateParts(this.toDate({...u,...G$(l,IG[a])}))}c&&(l=VG(l,c)),s=this.getDateFromParts(l)}return s||r}toDateOrNull(t,n={}){const r=this.toDate(t,n);return isNaN(r.getTime())?null:r}fromDate(t,{type:n,mask:r}={}){switch(n){case"number":return t?t.getTime():NaN;case"string":return t?this.formatDate(t,r||"iso"):"";case"object":return t?this.getDateParts(t):null;default:return t?new Date(t):null}}range(t){return Qi.from(t,this)}ranges(t){return Qi.fromMany(t,this)}getDateParts(t){return LG(t,this)}getDateFromParts(t){return fI(t,this.timezone)}getDateFromParams(t,n,r,s,o,i,a){return this.getDateFromParts({year:t,month:n,day:r,hours:s,minutes:o,seconds:i,milliseconds:a})}getPage(t){const n=this.pageCache.getOrSet(t,this);return YK(t,n)}getMonthParts(t,n){const{firstDayOfWeek:r}=this;return this.monthCache.getOrSet(t,n,r)}getThisMonthParts(){const t=new Date;return this.getMonthParts(t.getMonth()+1,t.getFullYear())}getPrevMonthParts(t,n){return t===1?this.getMonthParts(12,n-1):this.getMonthParts(t-1,n)}getNextMonthParts(t,n){return t===12?this.getMonthParts(1,n+1):this.getMonthParts(t+1,n)}getHourLabels(){return BG().map(t=>this.formatDate(t,this.masks.hours))}getDayId(t){return this.formatDate(t,"YYYY-MM-DD")}}var Ai=(e=>(e.Any="any",e.All="all",e))(Ai||{}),tI=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(tI||{}),nI=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(nI||{}),rI=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(rI||{});class gG{constructor(t,n,r){Te(this,"validated",!0),this.type=t,this.interval=n,this.from=r,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(t){if(!this.validated)return!0;const{date:n}=t;switch(this.type){case"days":return jv(this.from.date,n)%this.interval===0;case"weeks":return RG(this.from.date,n)%this.interval===0;case"months":return PG(this.from.date,n)%this.interval===0;case"years":return uI(this.from.date,n)%this.interval===0;default:return!1}}}class Wa{constructor(t,n,r,s){Te(this,"components",[]),this.type=t,this.validator=r,this.getter=s,this.components=this.normalizeComponents(n)}static create(t,n){switch(t){case"days":return new vG(n);case"weekdays":return new yG(n);case"weeks":return new _G(n);case"months":return new bG(n);case"years":return new wG(n)}}normalizeComponents(t){if(this.validator(t))return[t];if(!tr(t))return[];const n=[];return t.forEach(r=>{if(!this.validator(r)){console.error(`Component value ${r} in invalid for "${this.type}" rule. This rule will be skipped.`);return}n.push(r)}),n}passes(t){return this.getter(t).some(s=>this.components.includes(s))}}class vG extends Wa{constructor(t){super("days",t,kG,({day:n,dayFromEnd:r})=>[n,-r])}}class yG extends Wa{constructor(t){super("weekdays",t,Om,({weekday:n})=>[n])}}class _G extends Wa{constructor(t){super("weeks",t,TG,({week:n,weekFromEnd:r})=>[n,-r])}}class bG extends Wa{constructor(t){super("months",t,$G,({month:n})=>[n])}}class wG extends Wa{constructor(t){super("years",t,$r,({year:n})=>[n])}}class SG{constructor(t,n){Te(this,"components"),this.type=t,this.components=this.normalizeComponents(n)}normalizeArrayConfig(t){const n=[];return t.forEach((r,s)=>{if($r(r)){if(s===0)return;if(!Nw(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!Om(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],r])}else tr(r)&&n.push(...this.normalizeArrayConfig(r))}),n}normalizeComponents(t){const n=[];return t.forEach((r,s)=>{if($r(r)){if(s===0)return;if(!Nw(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!Om(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],r])}else tr(r)&&n.push(...this.normalizeArrayConfig(r))}),n}passes(t){const{weekday:n,weekdayOrdinal:r,weekdayOrdinalFromEnd:s}=t;return this.components.some(([o,i])=>(o===r||o===-s)&&n===i)}}class EG{constructor(t){Te(this,"type","function"),Te(this,"validated",!0),this.fn=t,ui(t)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(t){return this.validated?this.fn(t):!0}}class qf{constructor(t,n={},r){Te(this,"validated",!0),Te(this,"config"),Te(this,"type",Ai.Any),Te(this,"from"),Te(this,"until"),Te(this,"rules",[]),Te(this,"locale",new zf),this.parent=r,n.locale&&(this.locale=n.locale),this.config=t,ui(t)?(this.type=Ai.All,this.rules=[new EG(t)]):tr(t)?(this.type=Ai.Any,this.rules=t.map(s=>new qf(s,n,this))):Ts(t)?(this.type=Ai.All,this.from=t.from?this.locale.getDateParts(t.from):r==null?void 0:r.from,this.until=t.until?this.locale.getDateParts(t.until):r==null?void 0:r.until,this.rules=this.getObjectRules(t)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(t){const n=[];if(t.every&&(Br(t.every)&&(t.every=[1,`${t.every}s`]),tr(t.every))){const[r=1,s=tI.Days]=t.every;n.push(new gG(s,r,this.from))}return Object.values(nI).forEach(r=>{r in t&&n.push(Wa.create(r,t[r]))}),Object.values(rI).forEach(r=>{r in t&&n.push(new SG(r,t[r]))}),t.on!=null&&(tr(t.on)||(t.on=[t.on]),n.push(new qf(t.on,{locale:this.locale},this.parent))),n}passes(t){return this.validated?this.from&&t.dayIndex<=this.from.dayIndex||this.until&&t.dayIndex>=this.until.dayIndex?!1:this.type===Ai.Any?this.rules.some(n=>n.passes(t)):this.rules.every(n=>n.passes(t)):!0}}function kG(e){return $r(e)?e>=1&&e<=31:!1}function Om(e){return $r(e)?e>=1&&e<=7:!1}function TG(e){return $r(e)?e>=-6&&e<=-1||e>=1&&e<=6:!1}function $G(e){return $r(e)?e>=1&&e<=12:!1}function Nw(e){return!(!$r(e)||e<-5||e>5||e===0)}const IG={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},cn=7,xG=6,sI=1e3,oI=sI*60,iI=oI*60,nf=iI*24,CG=[31,28,31,30,31,30,31,31,30,31,30,31],DG=["L","iso"],_c={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},aI=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,MG=/\[([^]*?)\]/gm,Fw={D(e){return e.day},DD(e){return it(e.day,2)},d(e){return e.weekday-1},dd(e){return it(e.weekday-1,2)},W(e,t){return t.dayNamesNarrow[e.weekday-1]},WW(e,t){return t.dayNamesShorter[e.weekday-1]},WWW(e,t){return t.dayNamesShort[e.weekday-1]},WWWW(e,t){return t.dayNames[e.weekday-1]},M(e){return e.month},MM(e){return it(e.month,2)},MMM(e,t){return t.monthNamesShort[e.month-1]},MMMM(e,t){return t.monthNames[e.month-1]},YY(e){return String(e.year).substr(2)},YYYY(e){return it(e.year,4)},h(e){return e.hours%12||12},hh(e){return it(e.hours%12||12,2)},H(e){return e.hours},HH(e){return it(e.hours,2)},m(e){return e.minutes},mm(e){return it(e.minutes,2)},s(e){return e.seconds},ss(e){return it(e.seconds,2)},S(e){return Math.round(e.milliseconds/100)},SS(e){return it(Math.round(e.milliseconds/10),2)},SSS(e){return it(e.milliseconds,3)},a(e,t){return e.hours<12?t.amPm[0]:t.amPm[1]},A(e,t){return e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${it(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${it(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${it(Math.floor(Math.abs(t)/60),2)}:${it(Math.abs(t)%60,2)}`}},js=/\d\d?/,OG=/\d{3}/,AG=/\d{4}/,dc=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Hw=()=>{},Bw=e=>(t,n,r)=>{const s=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~s&&(t.month=s)},dt={D:[js,(e,t)=>{e.day=t}],Do:[new RegExp(js.source+dc.source),(e,t)=>{e.day=parseInt(t,10)}],d:[js,Hw],W:[dc,Hw],M:[js,(e,t)=>{e.month=t-1}],MMM:[dc,Bw("monthNamesShort")],MMMM:[dc,Bw("monthNames")],YY:[js,(e,t)=>{const r=+new Date().getFullYear().toString().substr(0,2);e.year=+`${t>68?r-1:r}${t}`}],YYYY:[AG,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=t*100}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=t*10}],SSS:[OG,(e,t)=>{e.milliseconds=t}],h:[js,(e,t)=>{e.hours=t}],m:[js,(e,t)=>{e.minutes=t}],s:[js,(e,t)=>{e.seconds=t}],a:[dc,(e,t,n)=>{const r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const n=`${t}`.match(/([+-]|\d\d)/gi);if(n){const r=+n[1]*60+parseInt(n[2],10);e.timezoneOffset=n[0]==="+"?r:-r}}]};dt.DD=dt.D;dt.dd=dt.d;dt.WWWW=dt.WWW=dt.WW=dt.W;dt.MM=dt.M;dt.mm=dt.m;dt.hh=dt.H=dt.HH=dt.h;dt.ss=dt.s;dt.A=dt.a;dt.ZZZZ=dt.ZZZ=dt.ZZ=dt.Z;function cI(e,t){return(ps(e)&&e||[Br(e)&&e||"YYYY-MM-DD"]).map(n=>DG.reduce((r,s)=>r.replace(s,t.masks[s]||""),n))}function Uv(e){return Ts(e)&&"year"in e&&"month"in e&&"day"in e}function Uw(e,t=1){const n=e.getDay()+1,r=n>=t?t-n:-(7-(t-n));return bn(e,r)}function lI(e,t,n){const r=Date.UTC(e,t-1,n);return jv(new Date(0),new Date(r))}function jv(e,t){return Math.round((t.getTime()-e.getTime())/nf)}function RG(e,t){return Math.ceil(jv(Uw(e),Uw(t))/7)}function uI(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function PG(e,t){return uI(e,t)*12+(t.getMonth()-e.getMonth())}function fI(e,t=""){const n=new Date,{year:r=n.getFullYear(),month:s=n.getMonth()+1,day:o=n.getDate(),hours:i=0,minutes:a=0,seconds:c=0,milliseconds:l=0}=e;if(t){const u=`${it(r,4)}-${it(s,2)}-${it(o,2)}T${it(i,2)}:${it(a,2)}:${it(c,2)}.${it(l,3)}`;return dK(u,{timeZone:t})}return new Date(r,s-1,o,i,a,c,l)}function LG(e,t){let n=new Date(e.getTime());t.timezone&&(n=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),n.setMilliseconds(e.getMilliseconds()));const r=n.getMilliseconds(),s=n.getSeconds(),o=n.getMinutes(),i=n.getHours(),a=r+s*sI+o*oI+i*iI,c=n.getMonth()+1,l=n.getFullYear(),u=t.getMonthParts(c,l),f=n.getDate(),d=u.numDays-f+1,p=n.getDay()+1,h=Math.floor((f-1)/7+1),m=Math.floor((u.numDays-f)/7+1),v=Math.ceil((f+Math.abs(u.firstWeekday-u.firstDayOfWeek))/7),g=u.numWeeks-v+1,b=u.weeknumbers[v],y=lI(l,c,f);return{milliseconds:r,seconds:s,minutes:o,hours:i,time:a,day:f,dayFromEnd:d,weekday:p,weekdayOrdinal:h,weekdayOrdinalFromEnd:m,week:v,weekFromEnd:g,weeknumber:b,month:c,year:l,date:n,dateTime:n.getTime(),dayIndex:y,timezoneOffset:0,isValid:!0}}function NG(e,t,n){return`${t}-${e}-${n}`}function FG(e,t,n){const r=t%4===0&&t%100!==0||t%400===0,s=new Date(t,e-1,1),o=s.getDay()+1,i=e===2&&r?29:CG[e-1],a=n-1,c=TK(s,{weekStartsOn:a}),l=[],u=[];for(let f=0;fn.format(r))}function BG(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}function UG(e=void 0){const t=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(e);return t.reduce((r,s)=>{const o=n.formatToParts(100,s);return r[s]=o[1].unit,r},{})}function dI(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function jw(e,t=void 0){const n=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return dI().map(r=>n.format(r))}function jG(e,t,n){return $r(t)?t===e:tr(t)?t.includes(e):ui(t)?t(e,n):!(t.min!=null&&t.min>e||t.max!=null&&t.max{if(a.disabled)return i;if(isNaN(i))return a.value;const c=Math.abs(i-n);return Math.abs(a.value-n){const o=_c[r],i=e[r];n[r]=WG(e,o,i,s)}),n}function Yw(e,t,n){return cI(t,n).map(s=>{if(typeof s!="string")throw new Error("Invalid mask");let o=e;if(o.length>1e3)return!1;let i=!0;const a={};if(s.replace(aI,u=>{if(dt[u]){const f=dt[u],d=o.search(f[0]);~d?o.replace(f[0],p=>(f[1](a,p,n),o=o.substr(d+p.length),p)):i=!1}return dt[u]?"":u.slice(1,u.length-1)}),!i)return!1;const c=new Date;a.hours!=null&&(a.isPm===!0&&+a.hours!=12?a.hours=+a.hours+12:a.isPm===!1&&+a.hours==12&&(a.hours=0));let l;return a.timezoneOffset!=null?(a.minutes=+(a.minutes||0)-+a.timezoneOffset,l=new Date(Date.UTC(a.year||c.getFullYear(),a.month||0,a.day||1,a.hours||0,a.minutes||0,a.seconds||0,a.milliseconds||0))):l=n.getDateFromParts({year:a.year||c.getFullYear(),month:(a.month||0)+1,day:a.day||1,hours:a.hours||0,minutes:a.minutes||0,seconds:a.seconds||0,milliseconds:a.milliseconds||0}),l}).find(s=>s)||new Date(e)}function zG(e,t,n){if(e==null)return"";let r=cI(t,n)[0];/Z$/.test(r)&&(n.timezone="utc");const s=[];r=r.replace(MG,(i,a)=>(s.push(a),"??"));const o=n.getDateParts(e);return r=r.replace(aI,i=>i in Fw?Fw[i](o,n):i.slice(1,i.length-1)),r.replace(/\?\?/g,()=>s.shift())}let qG=0;class pI{constructor(t,n,r){Te(this,"key",""),Te(this,"hashcode",""),Te(this,"highlight",null),Te(this,"content",null),Te(this,"dot",null),Te(this,"bar",null),Te(this,"event",null),Te(this,"popover",null),Te(this,"customData",null),Te(this,"ranges"),Te(this,"hasRanges",!1),Te(this,"order",0),Te(this,"pinPage",!1),Te(this,"maxRepeatSpan",0),Te(this,"locale");const{dates:s}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},t);this.key||(this.key=++qG),this.locale=r,n.normalizeGlyphs(this),this.ranges=r.ranges(s??[]),this.hasRanges=!!ps(this.ranges),this.maxRepeatSpan=this.ranges.filter(o=>o.hasRepeat).map(o=>o.daySpan).reduce((o,i)=>Math.max(o,i),0)}intersectsRange({start:t,end:n}){if(t==null||n==null)return!1;const r=this.ranges.filter(i=>!i.hasRepeat);for(const i of r)if(i.intersectsDayRange(t.dayIndex,n.dayIndex))return!0;const s=this.ranges.filter(i=>i.hasRepeat);if(!s.length)return!1;let o=t;for(this.maxRepeatSpan>1&&(o=this.locale.getDateParts(bn(o.date,-this.maxRepeatSpan)));o.dayIndex<=n.dayIndex;){for(const i of s)if(i.startsOnDay(o))return!0;o=this.locale.getDateParts(bn(o.date,1))}return!1}}function Am(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function ul(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function hI(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function mI(e){const{visibility:t}=e,n=t==="click",r=t==="hover",s=t==="hover-focus",o=t==="focus";e.autoHide=!n;let i=!1,a=!1;const c=h=>{n&&(hI({...e,target:e.target||h.currentTarget}),h.stopPropagation())},l=h=>{i||(i=!0,(r||s)&&Am({...e,target:e.target||h.currentTarget}))},u=()=>{i&&(i=!1,(r||s&&!a)&&ul(e))},f=h=>{a||(a=!0,(o||s)&&Am({...e,target:e.target||h.currentTarget}))},d=h=>{a&&!ef(h.currentTarget,h.relatedTarget)&&(a=!1,(o||s&&!i)&&ul(e))},p={};switch(e.visibility){case"click":p.click=c;break;case"hover":p.mousemove=l,p.mouseleave=u;break;case"focus":p.focusin=f,p.focusout=d;break;case"hover-focus":p.mousemove=l,p.mouseleave=u,p.focusin=f,p.focusout=d;break}return p}const Ww=e=>{const t=Bf(e);if(t==null)return;const n=t.popoverHandlers;!n||!n.length||(n.forEach(r=>r()),delete t.popoverHandlers)},Vw=(e,t)=>{const n=Bf(e);if(n==null)return;const r=[],s=mI(t);Object.entries(s).forEach(([o,i])=>{r.push(no(n,o,i))}),n.popoverHandlers=r},gI={mounted(e,t){const{value:n}=t;n&&Vw(e,n)},updated(e,t){const{oldValue:n,value:r}=t,s=n==null?void 0:n.visibility,o=r==null?void 0:r.visibility;s!==o&&(s&&(Ww(e),o||ul(n)),o&&Vw(e,r))},unmounted(e){Ww(e)}},KG=(e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:s})=>{if(!e||!e.addEventListener||!ui(t))return null;let o=0,i=0,a=null,c=!1;function l(f){const d=f.changedTouches[0];o=d.screenX,i=d.screenY,a=new Date().getTime(),c=!0}function u(f){if(!c||!a)return;c=!1;const d=f.changedTouches[0],p=d.screenX-o,h=d.screenY-i;if(new Date().getTime()-a=r&&Math.abs(h)<=s){const v={toLeft:!1,toRight:!1};p<0?v.toLeft=!0:v.toRight=!0,t(v)}}return no(e,"touchstart",l,{passive:!0}),no(e,"touchend",u,{passive:!0}),()=>{to(e,"touchstart",l),to(e,"touchend",u)}},rf={},GG=(e,t=10)=>{rf[e]=Date.now()+t},XG=(e,t)=>{if(e in rf){const n=rf[e];if(Date.now()t.value?"dark":"light");let r,s;function o(p){t.value=p.matches}function i(){JG("matchMedia")&&(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",o),t.value=r.matches)}function a(){const{selector:p=":root",darkClass:h="dark"}=e.value,m=document.querySelector(p);t.value=m.classList.contains(h)}function c(p){const{selector:h=":root",darkClass:m="dark"}=p;if(vI()&&h&&m){const v=document.querySelector(h);v&&(s=new MutationObserver(a),s.observe(v,{attributes:!0,attributeFilter:["class"]}),t.value=v.classList.contains(m))}}function l(){f();const p=typeof e.value;p==="string"&&e.value.toLowerCase()==="system"?i():p==="object"?c(e.value):t.value=!!e.value}const u=xe(()=>e.value,()=>l(),{immediate:!0});function f(){r&&(r.removeEventListener("change",o),r=void 0),s&&(s.disconnect(),s=void 0)}function d(){f(),u()}return on(()=>d()),{isDark:t,displayMode:n,cleanup:d}}const QG=["base","start","end","startEnd"],eX=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],tX={base:{},start:{},end:{}};function Yv(e,t,n=tX){let r=e,s={};t===!0||Br(t)?(r=Br(t)?t:r,s={...n}):Ts(t)&&(Tw(t,QG)?s={...t}:s={base:{...t},start:{...t},end:{...t}});const o=_a(s,{start:s.startEnd,end:s.startEnd},n);return Object.entries(o).forEach(([i,a])=>{let c=r;a===!0||Br(a)?(c=Br(a)?a:c,o[i]={color:c}):Ts(a)&&(Tw(a,eX)?o[i]={...a}:o[i]={}),_a(o[i],{color:c})}),o}class nX{constructor(){Te(this,"type","highlight")}normalizeConfig(t,n){return Yv(t,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(t){t.highlights=[],t.content||(t.content=[])}render({data:t,onStart:n,onEnd:r},s){const{key:o,highlight:i}=t;if(!i)return;const{highlights:a}=s,{base:c,start:l,end:u}=i;n&&r?a.push({...l,key:o,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]}):n?(a.push({...c,key:`${o}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${c.fillMode}`,c.class]}),a.push({...l,key:o,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]})):r?(a.push({...c,key:`${o}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${c.fillMode}`,c.class]}),a.push({...u,key:o,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-bg-${u.fillMode}`,u.class],contentClass:[`vc-attr vc-highlight-content-${u.fillMode} vc-${u.color}`,u.contentClass]})):a.push({...c,key:`${o}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${c.fillMode}`,c.class],contentClass:[`vc-attr vc-highlight-content-${c.fillMode} vc-${c.color}`,c.contentClass]})}}class Wv{constructor(t,n){Te(this,"type",""),Te(this,"collectionType",""),this.type=t,this.collectionType=n}normalizeConfig(t,n){return Yv(t,n)}prepareRender(t){t[this.collectionType]=[]}render({data:t,onStart:n,onEnd:r},s){const{key:o}=t,i=t[this.type];if(!o||!i)return;const a=s[this.collectionType],{base:c,start:l,end:u}=i;n?a.push({...l,key:o,class:[`vc-${this.type} vc-${this.type}-start vc-${l.color} vc-attr`,l.class]}):r?a.push({...u,key:o,class:[`vc-${this.type} vc-${this.type}-end vc-${u.color} vc-attr`,u.class]}):a.push({...c,key:o,class:[`vc-${this.type} vc-${this.type}-base vc-${c.color} vc-attr`,c.class]})}}class rX extends Wv{constructor(){super("content","content")}normalizeConfig(t,n){return Yv("base",n)}}class sX extends Wv{constructor(){super("dot","dots")}}class oX extends Wv{constructor(){super("bar","bars")}}class iX{constructor(t){Te(this,"color"),Te(this,"renderers",[new rX,new nX,new sX,new oX]),this.color=t}normalizeGlyphs(t){this.renderers.forEach(n=>{const r=n.type;t[r]!=null&&(t[r]=n.normalizeConfig(this.color,t[r]))})}prepareRender(t={}){return this.renderers.forEach(n=>{n.prepareRender(t)}),t}render(t,n){this.renderers.forEach(r=>{r.render(t,n)})}}const yI=Symbol("__vc_base_context__"),_I={color:{type:String,default:()=>lo("color")},isDark:{type:[Boolean,String,Object],default:()=>lo("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function bI(e){const t=B(()=>e.color??""),n=B(()=>e.isDark??!1),{displayMode:r}=ZG(n),s=B(()=>new iX(t.value)),o=B(()=>{if(e.locale instanceof zf)return e.locale;const d=Ts(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new zf(d,e.timezone)}),i=B(()=>o.value.masks),a=B(()=>e.minDate),c=B(()=>e.maxDate),l=B(()=>{const d=e.disabledDates?[...e.disabledDates]:[];return a.value!=null&&d.push({start:null,end:bn(o.value.toDate(a.value),-1)}),c.value!=null&&d.push({start:bn(o.value.toDate(c.value),1),end:null}),o.value.ranges(d)}),u=B(()=>new pI({key:"disabled",dates:l.value,order:100},s.value,o.value)),f={color:t,isDark:n,displayMode:r,theme:s,locale:o,masks:i,minDate:a,maxDate:c,disabledDates:l,disabledAttribute:u};return Mn(yI,f),f}function aX(e){return yt(yI,()=>bI(e),!0)}function wI(e){return`__vc_slot_${e}__`}function SI(e,t={}){Object.keys(e).forEach(n=>{Mn(wI(t[n]??n),e[n])})}function EI(e){return yt(wI(e),null)}const cX={..._I,view:{type:String,default:"monthly",validator(e){return["daily","weekly","monthly"].includes(e)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>lo("titlePosition")},navVisibility:{type:String,default:()=>lo("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},lX=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],kI=Symbol("__vc_calendar_context__");function uX(e,{slots:t,emit:n}){const r=pe(null),s=pe(null),o=pe(new Date().getDate()),i=pe(!1),a=pe(Symbol()),c=pe(Symbol()),l=pe(e.view),u=pe([]),f=pe("");let d=null,p=null;SI(t);const{theme:h,color:m,displayMode:v,locale:g,masks:b,minDate:y,maxDate:_,disabledAttribute:w,disabledDates:S}=aX(e),E=B(()=>e.rows*e.columns),$=B(()=>e.step||E.value),T=B(()=>z$(u.value)??null),x=B(()=>Ni(u.value)??null),L=B(()=>e.minPage||(y.value?ae(y.value):null)),M=B(()=>e.maxPage||(_.value?ae(_.value):null)),j=B(()=>e.navVisibility),q=B(()=>!!e.showWeeknumbers),F=B(()=>!!e.showIsoWeeknumbers),R=B(()=>l.value==="monthly"),V=B(()=>l.value==="weekly"),U=B(()=>l.value==="daily"),re=()=>{i.value=!0,n("transition-start")},G=()=>{i.value=!1,n("transition-end"),d&&(d.resolve(!0),d=null)},fe=(se,P,oe=l.value)=>Q$(se,P,oe,g.value),ae=se=>Z$(se,l.value,g.value),Ee=se=>{!w.value||!ie.value||(se.isDisabled=ie.value.cellExists(w.value.key,se.dayIndex))},ve=se=>{se.isFocusable=se.inMonth&&se.day===o.value},Pe=(se,P)=>{for(const oe of se)for(const ge of oe.days)if(P(ge)===!1)return},Le=B(()=>u.value.reduce((se,P)=>(se.push(...P.viewDays),se),[])),J=B(()=>{const se=[];return(e.attributes||[]).forEach((P,oe)=>{!P||!P.dates||se.push(new pI({...P,order:P.order||0},h.value,g.value))}),w.value&&se.push(w.value),se}),ce=B(()=>ps(J.value)),ie=B(()=>{const se=new WK;return J.value.forEach(P=>{P.ranges.forEach(oe=>{se.render(P,oe,Le.value)})}),se}),ue=B(()=>Le.value.reduce((se,P)=>(se[P.dayIndex]={day:P,cells:[]},se[P.dayIndex].cells.push(...ie.value.getCells(P)),se),{})),be=(se,P)=>{const oe=e.showWeeknumbers||e.showIsoWeeknumbers;return oe==null?"":h9(oe)?oe?"left":"":oe.startsWith("right")?P>1?"right":oe:se>1?"left":oe},Ie=()=>{var se,P;if(!ce.value)return null;const oe=J.value.find(Tt=>Tt.pinPage)||J.value[0];if(!oe||!oe.hasRanges)return null;const[ge]=oe.ranges,je=((se=ge.start)==null?void 0:se.date)||((P=ge.end)==null?void 0:P.date);return je?ae(je):null},C=()=>{if(Ur(T.value))return T.value;const se=Ie();return Ur(se)?se:ae(new Date)},O=(se,P={})=>{const{view:oe=l.value,position:ge=1,force:je}=P,Tt=ge>0?1-ge:-(E.value+ge);let mn=fe(se,Tt,oe),Ln=fe(mn,E.value-1,oe);return je||(Mm(mn,L.value)?mn=L.value:Vf(Ln,M.value)&&(mn=fe(M.value,1-E.value)),Ln=fe(mn,E.value-1)),{fromPage:mn,toPage:Ln}},W=(se,P,oe="")=>{if(oe==="none"||oe==="fade")return oe;if((se==null?void 0:se.view)!==(P==null?void 0:P.view))return"fade";const ge=Vf(P,se),je=Mm(P,se);return!ge&&!je?"fade":oe==="slide-v"?je?"slide-down":"slide-up":je?"slide-right":"slide-left"},ne=(se={})=>new Promise((P,oe)=>{const{position:ge=1,force:je=!1,transition:Tt}=se,mn=Ur(se.page)?se.page:C(),{fromPage:Ln}=O(mn,{position:ge,force:je}),wi=[];for(let Si=0;Si{const P=T.value??ae(new Date);return fe(P,se)},I=(se,P={})=>{const oe=Ur(se)?se:ae(se);return Object.assign(P,O(oe,{...P,force:!0})),UK(P.fromPage,P.toPage,l.value,g.value).map(je=>HK(je,L.value,M.value)).some(je=>je)},D=(se,P={})=>I(ee(se),P),N=B(()=>D(-$.value)),X=B(()=>D($.value)),K=async(se,P={})=>!P.force&&!I(se,P)?!1:(P.fromPage&&!BK(P.fromPage,T.value)&&(ul({id:a.value,hideDelay:0}),P.view&&(GG("view",10),l.value=P.view),await ne({...P,page:P.fromPage,position:1,force:!0}),n("did-move",u.value)),!0),te=(se,P={})=>K(ee(se),P),A=()=>te(-$.value),z=()=>te($.value),de=se=>{const P=R.value?".in-month":"",oe=`.id-${g.value.getDayId(se)}${P}`,ge=`${oe}.vc-focusable, ${oe} .vc-focusable`,je=r.value;if(je){const Tt=je.querySelector(ge);if(Tt)return Tt.focus(),!0}return!1},ye=async(se,P={})=>de(se)?!0:(await K(se,P),de(se)),We=(se,P)=>{o.value=se.day,n("dayclick",se,P)},Ke=(se,P)=>{n("daymouseenter",se,P)},ht=(se,P)=>{n("daymouseleave",se,P)},Ct=(se,P)=>{o.value=se.day,s.value=se,se.isFocused=!0,n("dayfocusin",se,P)},tn=(se,P)=>{s.value=null,se.isFocused=!1,n("dayfocusout",se,P)},Kt=(se,P)=>{n("daykeydown",se,P);const oe=se.noonDate;let ge=null;switch(P.key){case"ArrowLeft":{ge=bn(oe,-1);break}case"ArrowRight":{ge=bn(oe,1);break}case"ArrowUp":{ge=bn(oe,-7);break}case"ArrowDown":{ge=bn(oe,7);break}case"Home":{ge=bn(oe,-se.weekdayPosition+1);break}case"End":{ge=bn(oe,se.weekdayPositionFromEnd);break}case"PageUp":{P.altKey?ge=Pw(oe,-1):ge=Wf(oe,-1);break}case"PageDown":{P.altKey?ge=Pw(oe,1):ge=Wf(oe,1);break}}ge&&(P.preventDefault(),ye(ge).catch())},Jr=se=>{const P=s.value;P!=null&&Kt(P,se)},xo=(se,P)=>{n("weeknumberclick",se,P)};ne({page:e.initialPage,position:e.initialPagePosition}),en(()=>{!e.disablePageSwipe&&r.value&&(p=KG(r.value,({toLeft:se=!1,toRight:P=!1})=>{se?z():P&&A()},lo("touch")))}),on(()=>{u.value=[],p&&p()}),xe(()=>g.value,()=>{ne()}),xe(()=>E.value,()=>ne()),xe(()=>e.view,()=>l.value=e.view),xe(()=>l.value,()=>{XG("view",()=>{ne()}),n("update:view",l.value)}),xe(()=>o.value,()=>{Pe(u.value,se=>ve(se))}),Sr(()=>{n("update:pages",u.value),Pe(u.value,se=>{Ee(se),ve(se)})});const Gt={emit:n,containerRef:r,focusedDay:s,inTransition:i,navPopoverId:a,dayPopoverId:c,view:l,pages:u,transitionName:f,theme:h,color:m,displayMode:v,locale:g,masks:b,attributes:J,disabledAttribute:w,disabledDates:S,attributeContext:ie,days:Le,dayCells:ue,count:E,step:$,firstPage:T,lastPage:x,canMovePrev:N,canMoveNext:X,minPage:L,maxPage:M,isMonthly:R,isWeekly:V,isDaily:U,navVisibility:j,showWeeknumbers:q,showIsoWeeknumbers:F,getDateAddress:ae,canMove:I,canMoveBy:D,move:K,moveBy:te,movePrev:A,moveNext:z,onTransitionBeforeEnter:re,onTransitionAfterEnter:G,tryFocusDate:de,focusDate:ye,onKeydown:Jr,onDayKeydown:Kt,onDayClick:We,onDayMouseenter:Ke,onDayMouseleave:ht,onDayFocusin:Ct,onDayFocusout:tn,onWeeknumberClick:xo};return Mn(kI,Gt),Gt}function di(){const e=yt(kI);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const fX=ke({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(e,{emit:t}){let n;const r=pe();let s=null,o=null;const i=qt({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function a(G){G&&(i.direction=G.split("-")[0])}function c({placement:G,options:fe}){a(G||(fe==null?void 0:fe.placement))}const l=B(()=>({placement:i.placement,strategy:i.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:c},...i.modifiers||[]],onFirstUpdate:c})),u=B(()=>{const G=i.direction==="left"||i.direction==="right";let fe="";if(i.placement){const ae=i.placement.split("-");ae.length>1&&(fe=ae[1])}return["start","top","left"].includes(fe)?G?"top":"left":["end","bottom","right"].includes(fe)?G?"bottom":"right":G?"middle":"center"});function f(){o&&(o.destroy(),o=null)}function d(){Pt(()=>{const G=Bf(i.target);!G||!r.value||(o&&o.state.elements.reference!==G&&f(),o?o.update():o=oU(G,r.value,l.value))})}function p(G){Object.assign(i,K$(G,"force"))}function h(G,fe){clearTimeout(n),G>0?n=setTimeout(fe,G):fe()}function m(G){return!G||!o?!1:Bf(G)===o.state.elements.reference}async function v(G={}){i.force||(G.force&&(i.force=!0),h(G.showDelay??e.showDelay,()=>{i.isVisible&&(i.force=!1),p({...G,isVisible:!0}),d()}))}function g(G={}){o&&(G.target&&!m(G.target)||i.force||(G.force&&(i.force=!0),h(G.hideDelay??e.hideDelay,()=>{i.isVisible||(i.force=!1),i.isVisible=!1})))}function b(G={}){G.target!=null&&(i.isVisible&&m(G.target)?g(G):v(G))}function y(G){if(!o)return;const fe=o.state.elements.reference;if(!r.value||!fe)return;const ae=G.target;ef(r.value,ae)||ef(fe,ae)||g({force:!0})}function _(G){(G.key==="Esc"||G.key==="Escape")&&g()}function w({detail:G}){!G.id||G.id!==e.id||v(G)}function S({detail:G}){!G.id||G.id!==e.id||g(G)}function E({detail:G}){!G.id||G.id!==e.id||b(G)}function $(){no(document,"keydown",_),no(document,"click",y),no(document,"show-popover",w),no(document,"hide-popover",S),no(document,"toggle-popover",E)}function T(){to(document,"keydown",_),to(document,"click",y),to(document,"show-popover",w),to(document,"hide-popover",S),to(document,"toggle-popover",E)}function x(G){t("before-show",G)}function L(G){i.force=!1,t("after-show",G)}function M(G){t("before-hide",G)}function j(G){i.force=!1,f(),t("after-hide",G)}function q(G){G.stopPropagation()}function F(){i.isHovered=!0,i.isInteractive&&["hover","hover-focus"].includes(i.visibility)&&v()}function R(){if(i.isHovered=!1,!o)return;const G=o.state.elements.reference;i.autoHide&&!i.isFocused&&(!G||G!==document.activeElement)&&["hover","hover-focus"].includes(i.visibility)&&g()}function V(){i.isFocused=!0,i.isInteractive&&["focus","hover-focus"].includes(i.visibility)&&v()}function U(G){["focus","hover-focus"].includes(i.visibility)&&(!G.relatedTarget||!ef(r.value,G.relatedTarget))&&(i.isFocused=!1,!i.isHovered&&i.autoHide&&g())}function re(){s!=null&&(s.disconnect(),s=null)}return xe(()=>r.value,G=>{re(),G&&(s=new ResizeObserver(()=>{o&&o.update()}),s.observe(G))}),xe(()=>i.placement,a,{immediate:!0}),en(()=>{$()}),on(()=>{f(),re(),T()}),{...bl(i),popoverRef:r,alignment:u,hide:g,setupPopper:d,beforeEnter:x,afterEnter:L,beforeLeave:M,afterLeave:j,onClick:q,onMouseOver:F,onMouseLeave:R,onFocusIn:V,onFocusOut:U}}}),So=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function dX(e,t,n,r,s,o){return H(),Z("div",{class:Re(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...i)=>e.onClick&&e.onClick(...i)),onMouseover:t[1]||(t[1]=(...i)=>e.onMouseOver&&e.onMouseOver(...i)),onMouseleave:t[2]||(t[2]=(...i)=>e.onMouseLeave&&e.onMouseLeave(...i)),onFocusin:t[3]||(t[3]=(...i)=>e.onFocusIn&&e.onFocusIn(...i)),onFocusout:t[4]||(t[4]=(...i)=>e.onFocusOut&&e.onFocusOut(...i))},[Q(Wg,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:_e(()=>[e.isVisible?(H(),Z("div",Qt({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[St(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[ci(De(e.data),1)]),Y("span",{class:Re(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):we("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const Vv=So(fX,[["render",dX]]),pX={class:"vc-day-popover-row"},hX={key:0,class:"vc-day-popover-row-indicator"},mX={class:"vc-day-popover-row-label"},gX=ke({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,n=B(()=>{const{content:r,highlight:s,dot:o,bar:i,popover:a}=t.attribute;return a&&a.hideIndicator?null:r?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${r.base.color}`}:s?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${s.base.color}`}:o?{class:`vc-dot vc-attr vc-${o.base.color}`}:i?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${i.base.color}`}:null});return(r,s)=>(H(),Z("div",pX,[k(n)?(H(),Z("div",hX,[Y("span",{class:Re(k(n).class)},null,2)])):we("",!0),Y("div",mX,[St(r.$slots,"default",{},()=>[ci(De(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),vX={inheritAttrs:!1},Zn=ke({...vX,__name:"CalendarSlot",props:{name:null},setup(e){const n=EI(e.name);return(r,s)=>k(n)?(H(),Se(Fg(k(n)),qi(Qt({key:0},r.$attrs)),null,16)):St(r.$slots,"default",{key:1})}}),yX={class:"vc-day-popover-container"},_X={key:0,class:"vc-day-popover-header"},bX=ke({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:n,color:r,masks:s,locale:o}=di();function i(c,l){return o.value.formatDate(c,l)}function a(c){return o.value.formatDate(c.date,s.value.dayPopover)}return(c,l)=>(H(),Se(Vv,{id:k(t),class:Re([`vc-${k(r)}`,`vc-${k(n)}`])},{default:_e(({data:{day:u,attributes:f},hide:d})=>[Q(Zn,{name:"day-popover",day:u,"day-title":a(u),attributes:f,format:i,masks:k(s),hide:d},{default:_e(()=>[Y("div",yX,[k(s).dayPopover?(H(),Z("div",_X,De(a(u)),1)):we("",!0),(H(!0),Z(Fe,null,At(f,p=>(H(),Se(gX,{key:p.key,attribute:p},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),wX={},SX={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},EX=Y("polyline",{points:"9 18 15 12 9 6"},null,-1),kX=[EX];function TX(e,t){return H(),Z("svg",SX,kX)}const $X=So(wX,[["render",TX]]),IX={},xX={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},CX=Y("polyline",{points:"15 18 9 12 15 6"},null,-1),DX=[CX];function MX(e,t){return H(),Z("svg",xX,DX)}const OX=So(IX,[["render",MX]]),AX={},RX={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},PX=Y("polyline",{points:"6 9 12 15 18 9"},null,-1),LX=[PX];function NX(e,t){return H(),Z("svg",RX,LX)}const FX=So(AX,[["render",NX]]),HX={},BX={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},UX=Y("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),jX=[UX];function YX(e,t){return H(),Z("svg",BX,jX)}const WX=So(HX,[["render",YX]]),VX=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:FX,IconChevronLeft:OX,IconChevronRight:$X,IconClock:WX},Symbol.toStringTag,{value:"Module"})),ba=ke({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(e){const t=e,n=B(()=>t.width||t.size),r=B(()=>t.height||t.size),s=B(()=>VX[`Icon${t.name}`]);return(o,i)=>(H(),Se(Fg(k(s)),{width:k(n),height:k(r),class:"vc-base-icon"},null,8,["width","height"]))}}),zX=["disabled"],qX={key:1,class:"vc-title-wrapper"},KX={type:"button",class:"vc-title"},GX=["disabled"],TI=ke({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(e){const t=e,{navPopoverId:n,navVisibility:r,canMovePrev:s,movePrev:o,canMoveNext:i,moveNext:a}=di(),c=B(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),l=B(()=>{const{page:m}=t;return{id:n.value,visibility:r.value,placement:c.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:m},isInteractive:!0}}),u=B(()=>t.page.titlePosition.includes("left")),f=B(()=>t.page.titlePosition.includes("right")),d=B(()=>t.layout?t.layout:u.value?"tu-pn":f.value?"pn-tu":"p-tu-n;"),p=B(()=>({prev:d.value.includes("p")&&!t.hideArrows,title:d.value.includes("t")&&!t.hideTitle,next:d.value.includes("n")&&!t.hideArrows})),h=B(()=>({gridTemplateColumns:d.value.split("").map(v=>{switch(v){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(m,v)=>(H(),Z("div",{class:Re(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:yr(k(h))},[k(p).prev?(H(),Z("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!k(s),onClick:v[0]||(v[0]=(...g)=>k(o)&&k(o)(...g)),onKeydown:v[1]||(v[1]=ss((...g)=>k(o)&&k(o)(...g),["space","enter"]))},[Q(Zn,{name:"header-prev-button",disabled:!k(s)},{default:_e(()=>[Q(ba,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,zX)):we("",!0),k(p).title?(H(),Z("div",qX,[Q(Zn,{name:"header-title-wrapper"},{default:_e(()=>[Un((H(),Z("button",KX,[Q(Zn,{name:"header-title",title:e.page.title},{default:_e(()=>[Y("span",null,De(e.page.title),1)]),_:1},8,["title"])])),[[k(gI),k(l)]])]),_:1})])):we("",!0),k(p).next?(H(),Z("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!k(i),onClick:v[2]||(v[2]=(...g)=>k(a)&&k(a)(...g)),onKeydown:v[3]||(v[3]=ss((...g)=>k(a)&&k(a)(...g),["space","enter"]))},[Q(Zn,{name:"header-next-button",disabled:!k(i)},{default:_e(()=>[Q(ba,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,GX)):we("",!0)],6))}}),$I=Symbol("__vc_page_context__");function XX(e){const{locale:t,getDateAddress:n,canMove:r}=di();function s(a,c){const{month:l,year:u}=n(new Date);return dI().map((f,d)=>{const p=d+1;return{month:p,year:a,id:FK(p,a),label:t.value.formatDate(f,c),ariaLabel:t.value.formatDate(f,"MMMM"),isActive:p===e.value.month&&a===e.value.year,isCurrent:p===l&&a===u,isDisabled:!r({month:p,year:a},{position:e.value.position})}})}function o(a,c){const{year:l}=n(new Date),{position:u}=e.value,f=[];for(let d=a;d<=c;d+=1){const p=[...Array(12).keys()].some(h=>r({month:h+1,year:d},{position:u}));f.push({year:d,id:d.toString(),label:d.toString(),ariaLabel:d.toString(),isActive:d===e.value.year,isCurrent:d===l,isDisabled:!p})}return f}const i={page:e,getMonthItems:s,getYearItems:o};return Mn($I,i),i}function II(){const e=yt($I);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const JX={class:"vc-nav-header"},ZX=["disabled"],QX=["disabled"],eJ={class:"vc-nav-items"},tJ=["data-id","aria-label","disabled","onClick","onKeydown"],nJ=ke({__name:"CalendarNav",setup(e){const{masks:t,move:n}=di(),{page:r,getMonthItems:s,getYearItems:o}=II(),i=pe(!0),a=12,c=pe(r.value.year),l=pe(d(r.value.year)),u=pe(null);function f(){setTimeout(()=>{if(u.value==null)return;const ae=u.value.querySelector(".vc-nav-item:not(:disabled)");ae&&ae.focus()},10)}function d(ae){return Math.floor(ae/a)}function p(){i.value=!i.value}function h(ae){return ae*a}function m(ae){return a*(ae+1)-1}function v(){V.value&&(i.value&&b(),_())}function g(){U.value&&(i.value&&y(),w())}function b(){c.value--}function y(){c.value++}function _(){l.value--}function w(){l.value++}const S=B(()=>s(c.value,t.value.navMonths).map(ae=>({...ae,click:()=>n({month:ae.month,year:ae.year},{position:r.value.position})}))),E=B(()=>s(c.value-1,t.value.navMonths)),$=B(()=>E.value.some(ae=>!ae.isDisabled)),T=B(()=>s(c.value+1,t.value.navMonths)),x=B(()=>T.value.some(ae=>!ae.isDisabled)),L=B(()=>o(h(l.value),m(l.value)).map(ae=>({...ae,click:()=>{c.value=ae.year,i.value=!0,f()}}))),M=B(()=>o(h(l.value-1),m(l.value-1))),j=B(()=>M.value.some(ae=>!ae.isDisabled)),q=B(()=>o(h(l.value+1),m(l.value+1))),F=B(()=>q.value.some(ae=>!ae.isDisabled)),R=B(()=>i.value?S.value:L.value),V=B(()=>i.value?$.value:j.value),U=B(()=>i.value?x.value:F.value),re=B(()=>z$(L.value.map(ae=>ae.year))),G=B(()=>Ni(L.value.map(ae=>ae.year))),fe=B(()=>i.value?c.value:`${re.value} - ${G.value}`);return Sr(()=>{c.value=r.value.year,f()}),xe(()=>c.value,ae=>l.value=d(ae)),en(()=>f()),(ae,Ee)=>(H(),Z("div",{class:"vc-nav-container",ref_key:"navContainer",ref:u},[Y("div",JX,[Y("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!k(V),onClick:v,onKeydown:Ee[0]||(Ee[0]=ve=>k(uu)(ve,v))},[Q(Zn,{name:"nav-prev-button",move:v,disabled:!k(V)},{default:_e(()=>[Q(ba,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,ZX),Y("button",{type:"button",class:"vc-nav-title vc-focus",onClick:p,onKeydown:Ee[1]||(Ee[1]=ve=>k(uu)(ve,p))},De(k(fe)),33),Y("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!k(U),onClick:g,onKeydown:Ee[2]||(Ee[2]=ve=>k(uu)(ve,g))},[Q(Zn,{name:"nav-next-button",move:g,disabled:!k(U)},{default:_e(()=>[Q(ba,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,QX)]),Y("div",eJ,[(H(!0),Z(Fe,null,At(k(R),ve=>(H(),Z("button",{key:ve.label,type:"button","data-id":ve.id,"aria-label":ve.ariaLabel,class:Re(["vc-nav-item vc-focus",[ve.isActive?"is-active":ve.isCurrent?"is-current":""]]),disabled:ve.isDisabled,onClick:ve.click,onKeydown:Pe=>k(uu)(Pe,ve.click)},De(ve.label),43,tJ))),128))])],512))}}),xI=ke({__name:"CalendarPageProvider",props:{page:null},setup(e){return XX(Wo(e,"page")),(n,r)=>St(n.$slots,"default")}}),rJ=ke({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:n,displayMode:r}=di();return(s,o)=>(H(),Se(Vv,{id:k(t),class:Re(["vc-nav-popover-container",`vc-${k(n)}`,`vc-${k(r)}`])},{default:_e(({data:i})=>[Q(xI,{page:i.page},{default:_e(()=>[Q(Zn,{name:"nav"},{default:_e(()=>[Q(nJ)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),sJ=ke({directives:{popover:gI},components:{CalendarSlot:Zn},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:n,attributeContext:r,dayPopoverId:s,onDayClick:o,onDayMouseenter:i,onDayMouseleave:a,onDayFocusin:c,onDayFocusout:l,onDayKeydown:u}=di(),f=B(()=>e.day),d=B(()=>r.value.getCells(f.value)),p=B(()=>d.value.map(F=>F.data)),h=B(()=>({...f.value,attributes:p.value,attributeCells:d.value}));function m({data:F},{popovers:R}){const{key:V,customData:U,popover:re}=F;if(!re)return;const G=vw({key:V,customData:U,attribute:F},{...re},{visibility:re.label?"hover":"click",placement:"bottom",isInteractive:!re.label});R.splice(0,0,G)}const v=B(()=>{const F={...n.value.prepareRender({}),popovers:[]};return d.value.forEach(R=>{n.value.render(R,F),m(R,F)}),F}),g=B(()=>v.value.highlights),b=B(()=>!!ps(g.value)),y=B(()=>v.value.content),_=B(()=>v.value.dots),w=B(()=>!!ps(_.value)),S=B(()=>v.value.bars),E=B(()=>!!ps(S.value)),$=B(()=>v.value.popovers),T=B(()=>$.value.map(F=>F.attribute)),x=EI("day-content"),L=B(()=>["vc-day",...f.value.classes,{"vc-day-box-center-center":!x},{"is-not-in-month":!e.day.inMonth}]),M=B(()=>{let F;f.value.isFocusable?F="0":F="-1";const R=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":f.value.isDisabled},Bo(Ni(g.value),"contentClass"),Bo(Ni(y.value),"class")||""],V={...Bo(Ni(g.value),"contentStyle"),...Bo(Ni(y.value),"style")};return{class:R,style:V,tabindex:F,"aria-label":f.value.ariaLabel,"aria-disabled":!!f.value.isDisabled,role:"button"}}),j=B(()=>({click(F){o(h.value,F)},mouseenter(F){i(h.value,F)},mouseleave(F){a(h.value,F)},focusin(F){c(h.value,F)},focusout(F){l(h.value,F)},keydown(F){u(h.value,F)}})),q=B(()=>ps($.value)?vw({id:s.value,data:{day:f,attributes:T.value}},...$.value):null);return{attributes:p,attributeCells:d,bars:S,dayClasses:L,dayContentProps:M,dayContentEvents:j,dayPopover:q,glyphs:v,dots:_,hasDots:w,hasBars:E,highlights:g,hasHighlights:b,locale:t,popovers:$}}}),oJ={key:0,class:"vc-highlights vc-day-layer"},iJ={key:1,class:"vc-day-layer vc-day-box-center-bottom"},aJ={class:"vc-dots"},cJ={key:2,class:"vc-day-layer vc-day-box-center-bottom"},lJ={class:"vc-bars"};function uJ(e,t,n,r,s,o){const i=pr("CalendarSlot"),a=Ns("popover");return H(),Z("div",{class:Re(e.dayClasses)},[e.hasHighlights?(H(),Z("div",oJ,[(H(!0),Z(Fe,null,At(e.highlights,({key:c,wrapperClass:l,class:u,style:f})=>(H(),Z("div",{key:c,class:Re(l)},[Y("div",{class:Re(u),style:yr(f)},null,6)],2))),128))])):we("",!0),Q(i,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:_e(()=>[Un((H(),Z("div",Qt(e.dayContentProps,FM(e.dayContentEvents,!0)),[ci(De(e.day.label),1)],16)),[[a,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(H(),Z("div",iJ,[Y("div",aJ,[(H(!0),Z(Fe,null,At(e.dots,({key:c,class:l,style:u})=>(H(),Z("span",{key:c,class:Re(l),style:yr(u)},null,6))),128))])])):we("",!0),e.hasBars?(H(),Z("div",cJ,[Y("div",lJ,[(H(!0),Z(Fe,null,At(e.bars,({key:c,class:l,style:u})=>(H(),Z("span",{key:c,class:Re(l),style:yr(u)},null,6))),128))])])):we("",!0)],2)}const fJ=So(sJ,[["render",uJ]]),dJ={class:"vc-weekdays"},pJ=["onClick"],hJ={inheritAttrs:!1},mJ=ke({...hJ,__name:"CalendarPage",setup(e){const{page:t}=II(),{onWeeknumberClick:n}=di();return(r,s)=>(H(),Z("div",{class:Re(["vc-pane",`row-${k(t).row}`,`row-from-end-${k(t).rowFromEnd}`,`column-${k(t).column}`,`column-from-end-${k(t).columnFromEnd}`]),ref:"pane"},[Q(TI,{page:k(t),"is-lg":"","hide-arrows":""},null,8,["page"]),Y("div",{class:Re(["vc-weeks",{[`vc-show-weeknumbers-${k(t).weeknumberPosition}`]:k(t).weeknumberPosition}])},[Y("div",dJ,[(H(!0),Z(Fe,null,At(k(t).weekdays,({weekday:o,label:i},a)=>(H(),Z("div",{key:a,class:Re(`vc-weekday vc-weekday-${o}`)},De(i),3))),128))]),(H(!0),Z(Fe,null,At(k(t).viewWeeks,o=>(H(),Z("div",{key:`weeknumber-${o.weeknumber}`,class:"vc-week"},[k(t).weeknumberPosition?(H(),Z("div",{key:0,class:Re(["vc-weeknumber",`is-${k(t).weeknumberPosition}`])},[Y("span",{class:Re(["vc-weeknumber-content"]),onClick:i=>k(n)(o,i)},De(o.weeknumberDisplay),9,pJ)],2)):we("",!0),(H(!0),Z(Fe,null,At(o.days,i=>(H(),Se(fJ,{key:i.id,day:i},null,8,["day"]))),128))]))),128))],2)],2))}}),gJ=ke({components:{CalendarHeader:TI,CalendarPage:mJ,CalendarNavPopover:rJ,CalendarDayPopover:bX,CalendarPageProvider:xI,CalendarSlot:Zn},props:cX,emit:lX,setup(e,{emit:t,slots:n}){return uX(e,{emit:t,slots:n})}}),vJ={class:"vc-pane-header-wrapper"};function yJ(e,t,n,r,s,o){const i=pr("CalendarHeader"),a=pr("CalendarPage"),c=pr("CalendarSlot"),l=pr("CalendarPageProvider"),u=pr("CalendarDayPopover"),f=pr("CalendarNavPopover");return H(),Z(Fe,null,[Y("div",Qt({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},e.$attrs,{class:["vc-container",`vc-${e.view}`,`vc-${e.color}`,`vc-${e.displayMode}`,{"vc-expanded":e.expanded,"vc-bordered":!e.borderless,"vc-transparent":e.transparent}],onMouseup:t[0]||(t[0]=Lo(()=>{},["prevent"])),ref:"containerRef"}),[Y("div",{class:Re(["vc-pane-container",{"in-transition":e.inTransition}])},[Y("div",vJ,[e.firstPage?(H(),Se(i,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):we("",!0)]),Q(Wg,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:_e(()=>[(H(),Z("div",{key:e.pages[0].id,class:"vc-pane-layout",style:yr({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(H(!0),Z(Fe,null,At(e.pages,d=>(H(),Se(l,{key:d.id,page:d},{default:_e(()=>[Q(c,{name:"page",page:d},{default:_e(()=>[Q(a)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),Q(c,{name:"footer"})],2)],16),Q(u),Q(f)],64)}const _J=So(gJ,[["render",yJ]]),CI=Symbol("__vc_date_picker_context__"),bJ={..._I,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>lo("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>lo("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},wJ=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function SJ(e,{emit:t,slots:n}){SI(n,{footer:"dp-footer"});const r=bI(e),{locale:s,masks:o,disabledAttribute:i}=r,a=pe(!1),c=pe(Symbol()),l=pe(null),u=pe(null),f=pe(["",""]),d=pe(null),p=pe(null);let h,m,v=!0;const g=B(()=>e.isRange||e.modelModifiers.range===!0),b=B(()=>g.value&&l.value!=null?l.value.start:null),y=B(()=>g.value&&l.value!=null?l.value.end:null),_=B(()=>e.mode.toLowerCase()==="date"),w=B(()=>e.mode.toLowerCase()==="datetime"),S=B(()=>e.mode.toLowerCase()==="time"),E=B(()=>!!u.value),$=B(()=>{let P="date";e.modelModifiers.number&&(P="number"),e.modelModifiers.string&&(P="string");const oe=o.value.modelValue||"iso";return Ee({type:P,mask:oe})}),T=B(()=>D(u.value??l.value)),x=B(()=>S.value?e.is24hr?o.value.inputTime24hr:o.value.inputTime:w.value?e.is24hr?o.value.inputDateTime24hr:o.value.inputDateTime:o.value.input),L=B(()=>/[Hh]/g.test(x.value)),M=B(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(x.value)),j=B(()=>{if(L.value&&M.value)return"dateTime";if(M.value)return"date";if(L.value)return"time"}),q=B(()=>{var P;const oe=((P=d.value)==null?void 0:P.$el.previousElementSibling)??void 0;return _a({},e.popover,lo("datePicker.popover"),{target:oe})}),F=B(()=>mI({...q.value,id:c.value})),R=B(()=>g.value?{start:f.value[0],end:f.value[1]}:f.value[0]),V=B(()=>{const P=["start","end"].map(oe=>({input:ne(oe),change:ee(oe),keyup:I,...e.popover&&F.value}));return g.value?{start:P[0],end:P[1]}:P[0]}),U=B(()=>{if(!J(l.value))return null;const P={key:"select-drag",...e.selectAttribute,dates:l.value,pinPage:!0},{dot:oe,bar:ge,highlight:je,content:Tt}=P;return!oe&&!ge&&!je&&!Tt&&(P.highlight=!0),P}),re=B(()=>{if(!g.value||!J(u.value))return null;const P={key:"select-drag",...e.dragAttribute,dates:u.value},{dot:oe,bar:ge,highlight:je,content:Tt}=P;return!oe&&!ge&&!je&&!Tt&&(P.highlight={startEnd:{fillMode:"outline"}}),P}),G=B(()=>{const P=tr(e.attributes)?[...e.attributes]:[];return re.value?P.unshift(re.value):U.value&&P.unshift(U.value),P}),fe=B(()=>Ee(e.rules==="auto"?ae():e.rules??{}));function ae(){const P={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},oe=_.value?0:e.timeAccuracy;return[0,1].map(ge=>{switch(oe){case 0:return{hours:P.hr[ge],minutes:P.min[ge],seconds:P.sec[ge],milliseconds:P.ms[ge]};case 1:return{minutes:P.min[ge],seconds:P.sec[ge],milliseconds:P.ms[ge]};case 3:return{milliseconds:P.ms[ge]};case 4:return{};default:return{seconds:P.sec[ge],milliseconds:P.ms[ge]}}})}function Ee(P){return tr(P)?P.length===1?[P[0],P[0]]:P:[P,P]}function ve(P){return Ee(P).map((oe,ge)=>({...oe,rules:fe.value[ge]}))}function Pe(P){return P==null?!1:$r(P)?!isNaN(P):Zi(P)?!isNaN(P.getTime()):Br(P)?P!=="":Uv(P)}function Le(P){return Ts(P)&&"start"in P&&"end"in P&&Pe(P.start??null)&&Pe(P.end??null)}function J(P){return Le(P)||Pe(P)}function ce(P,oe){if(P==null&&oe==null)return!0;if(P==null||oe==null)return!1;const ge=Zi(P),je=Zi(oe);return ge&&je?P.getTime()===oe.getTime():ge||je?!1:ce(P.start,oe.start)&&ce(P.end,oe.end)}function ie(P){return!J(P)||!i.value?!1:i.value.intersectsRange(s.value.range(P))}function ue(P,oe,ge,je){if(!J(P))return null;if(Le(P)){const Tt=s.value.toDate(P.start,{...oe[0],fillDate:b.value??void 0,patch:ge}),mn=s.value.toDate(P.end,{...oe[1],fillDate:y.value??void 0,patch:ge});return tn({start:Tt,end:mn},je)}return s.value.toDateOrNull(P,{...oe[0],fillDate:l.value,patch:ge})}function be(P,oe){return Le(P)?{start:s.value.fromDate(P.start,oe[0]),end:s.value.fromDate(P.end,oe[1])}:g.value?null:s.value.fromDate(P,oe[0])}function Ie(P,oe={}){return clearTimeout(h),new Promise(ge=>{const{debounce:je=0,...Tt}=oe;je>0?h=window.setTimeout(()=>{ge(C(P,Tt))},je):ge(C(P,Tt))})}function C(P,{config:oe=$.value,patch:ge="dateTime",clearIfEqual:je=!1,formatInput:Tt=!0,hidePopover:mn=!1,dragging:Ln=E.value,targetPriority:wi,moveToValue:Si=!1}={}){const vp=ve(oe);let kn=ue(P,vp,ge,wi);if(ie(kn)){if(Ln)return null;kn=l.value,mn=!1}else kn==null&&e.isRequired?kn=l.value:kn!=null&&ce(l.value,kn)&&je&&(kn=null);const Bl=Ln?u:l,ec=!ce(Bl.value,kn);Bl.value=kn,Ln||(u.value=null);const tc=be(kn,$.value);return ec&&(v=!1,t(Ln?"drag":"update:modelValue",tc),Pt(()=>v=!0)),mn&&!Ln&&ht(),Tt&&O(),Si&&Pt(()=>xo(wi??"start")),tc}function O(){Pt(()=>{const P=ve({type:"string",mask:x.value}),oe=be(u.value??l.value,P);g.value?f.value=[oe&&oe.start,oe&&oe.end]:f.value=[oe,""]})}function W(P,oe,ge){f.value.splice(oe==="start"?0:1,1,P);const je=g.value?{start:f.value[0],end:f.value[1]||f.value[0]}:P,Tt={type:"string",mask:x.value};Ie(je,{...ge,config:Tt,patch:j.value,targetPriority:oe,moveToValue:!0})}function ne(P){return oe=>{e.updateOnInput&&W(oe.currentTarget.value,P,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function ee(P){return oe=>{W(oe.currentTarget.value,P,{formatInput:!0,hidePopover:!1})}}function I(P){P.key==="Escape"&&Ie(l.value,{formatInput:!0,hidePopover:!0})}function D(P){return g.value?[P&&P.start?s.value.getDateParts(P.start):null,P&&P.end?s.value.getDateParts(P.end):null]:[P?s.value.getDateParts(P):null]}function N(){u.value=null,O()}function X(P){t("popover-will-show",P)}function K(P){t("popover-did-show",P)}function te(P){N(),t("popover-will-hide",P)}function A(P){t("popover-did-hide",P)}function z(P){const oe={patch:"date",formatInput:!0,hidePopover:!0};if(g.value){const ge=!E.value;ge?m={start:P.startDate,end:P.endDate}:m!=null&&(m.end=P.date),Ie(m,{...oe,dragging:ge})}else Ie(P.date,{...oe,clearIfEqual:!e.isRequired})}function de(P,oe){z(P),t("dayclick",P,oe)}function ye(P,oe){switch(oe.key){case" ":case"Enter":{z(P),oe.preventDefault();break}case"Escape":ht()}t("daykeydown",P,oe)}function We(P,oe){!E.value||m==null||(m.end=P.date,Ie(tn(m),{patch:"date",formatInput:!0}))}function Ke(P={}){Am({...q.value,...P,isInteractive:!0,id:c.value})}function ht(P={}){ul({hideDelay:10,force:!0,...q.value,...P,id:c.value})}function Ct(P){hI({...q.value,...P,isInteractive:!0,id:c.value})}function tn(P,oe){const{start:ge,end:je}=P;if(ge>je)switch(oe){case"start":return{start:ge,end:ge};case"end":return{start:je,end:je};default:return{start:je,end:ge}}return{start:ge,end:je}}async function Kt(P,oe={}){return p.value==null?!1:p.value.move(P,oe)}async function Jr(P,oe={}){return p.value==null?!1:p.value.moveBy(P,oe)}async function xo(P,oe={}){const ge=l.value;if(p.value==null||!J(ge))return!1;const je=P!=="end",Tt=je?1:-1,mn=Le(ge)?je?ge.start:ge.end:ge,Ln=Z$(mn,"monthly",s.value);return p.value.move(Ln,{position:Tt,...oe})}xe(()=>e.isRange,P=>{P&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),xe(()=>g.value,()=>{C(null,{formatInput:!0})}),xe(()=>x.value,()=>O()),xe(()=>e.modelValue,P=>{v&&C(P,{formatInput:!0,hidePopover:!1})}),xe(()=>fe.value,()=>{Ts(e.rules)&&C(e.modelValue,{formatInput:!0,hidePopover:!1})}),xe(()=>e.timezone,()=>{C(l.value,{formatInput:!0})});const Gt=Ee($.value);l.value=ue(e.modelValue??null,Gt,"dateTime"),en(()=>{C(e.modelValue,{formatInput:!0,hidePopover:!1})}),Pt(()=>a.value=!0);const se={...r,showCalendar:a,datePickerPopoverId:c,popoverRef:d,popoverEvents:F,calendarRef:p,isRange:g,isTimeMode:S,isDateTimeMode:w,is24hr:Wo(e,"is24hr"),hideTimeHeader:Wo(e,"hideTimeHeader"),timeAccuracy:Wo(e,"timeAccuracy"),isDragging:E,inputValue:R,inputEvents:V,dateParts:T,attributes:G,rules:fe,move:Kt,moveBy:Jr,moveToValue:xo,updateValue:Ie,showPopover:Ke,hidePopover:ht,togglePopover:Ct,onDayClick:de,onDayKeydown:ye,onDayMouseEnter:We,onPopoverBeforeShow:X,onPopoverAfterShow:K,onPopoverBeforeHide:te,onPopoverAfterHide:A};return Mn(CI,se),se}function zv(){const e=yt(CI);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const EJ=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],kJ=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function TJ(e){const t=zv(),{locale:n,isRange:r,isTimeMode:s,dateParts:o,rules:i,is24hr:a,hideTimeHeader:c,timeAccuracy:l,updateValue:u}=t;function f(M){M=Object.assign(p.value,M);let j=null;if(r.value){const q=d.value?M:o.value[0],F=d.value?o.value[1]:M;j={start:q,end:F}}else j=M;u(j,{patch:"time",targetPriority:d.value?"start":"end",moveToValue:!0})}const d=B(()=>e.position===0),p=B(()=>o.value[e.position]||{isValid:!1}),h=B(()=>Uv(p.value)),m=B(()=>!!p.value.isValid),v=B(()=>!c.value&&m.value),g=B(()=>{if(!h.value)return null;let M=n.value.toDate(p.value);return p.value.hours===24&&(M=new Date(M.getTime()-1)),M}),b=B({get(){return p.value.hours},set(M){f({hours:M})}}),y=B({get(){return p.value.minutes},set(M){f({minutes:M})}}),_=B({get(){return p.value.seconds},set(M){f({seconds:M})}}),w=B({get(){return p.value.milliseconds},set(M){f({milliseconds:M})}}),S=B({get(){return p.value.hours<12},set(M){M=String(M).toLowerCase()=="true";let j=b.value;M&&j>=12?j-=12:!M&&j<12&&(j+=12),f({hours:j})}}),E=B(()=>YG(p.value,i.value[e.position])),$=B(()=>EJ.filter(M=>E.value.hours.some(j=>j.value===M.value))),T=B(()=>kJ.filter(M=>E.value.hours.some(j=>j.value===M.value))),x=B(()=>a.value?E.value.hours:S.value?$.value:T.value),L=B(()=>{const M=[];return ps($.value)&&M.push({value:!0,label:"AM"}),ps(T.value)&&M.push({value:!1,label:"PM"}),M});return{...t,showHeader:v,timeAccuracy:l,parts:p,isValid:m,date:g,hours:b,minutes:y,seconds:_,milliseconds:w,options:E,hourOptions:x,isAM:S,isAMOptions:L,is24hr:a}}const $J=["value"],IJ=["value","disabled"],xJ={key:1,class:"vc-base-sizer","aria-hidden":"true"},CJ={inheritAttrs:!1},pc=ke({...CJ,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,n=B(()=>{const r=t.options.find(s=>s.value===t.modelValue);return r==null?void 0:r.label});return(r,s)=>(H(),Z("div",{class:Re(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[Y("select",Qt(r.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:s[0]||(s[0]=o=>r.$emit("update:modelValue",o.target.value))}),[(H(!0),Z(Fe,null,At(e.options,o=>(H(),Z("option",{key:o.value,value:o.value,disabled:o.disabled},De(o.label),9,IJ))),128))],16,$J),e.showIcon?(H(),Se(ba,{key:0,name:"ChevronDown",size:"18"})):we("",!0),e.fitContent?(H(),Z("div",xJ,De(k(n)),1)):we("",!0)],2))}}),DJ={key:0,class:"vc-time-header"},MJ={class:"vc-time-weekday"},OJ={class:"vc-time-month"},AJ={class:"vc-time-day"},RJ={class:"vc-time-year"},PJ={class:"vc-time-select-group"},LJ=Y("span",{class:"vc-time-colon"},":",-1),NJ=Y("span",{class:"vc-time-colon"},":",-1),FJ=Y("span",{class:"vc-time-decimal"},".",-1),zw=ke({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const r=TJ(e);t(r);const{locale:s,isValid:o,date:i,hours:a,minutes:c,seconds:l,milliseconds:u,options:f,hourOptions:d,isTimeMode:p,isAM:h,isAMOptions:m,is24hr:v,showHeader:g,timeAccuracy:b}=r;return(y,_)=>(H(),Z("div",{class:Re(["vc-time-picker",[{"vc-invalid":!k(o),"vc-attached":!k(p)}]])},[Q(Zn,{name:"time-header"},{default:_e(()=>[k(g)&&k(i)?(H(),Z("div",DJ,[Y("span",MJ,De(k(s).formatDate(k(i),"WWW")),1),Y("span",OJ,De(k(s).formatDate(k(i),"MMM")),1),Y("span",AJ,De(k(s).formatDate(k(i),"D")),1),Y("span",RJ,De(k(s).formatDate(k(i),"YYYY")),1)])):we("",!0)]),_:1}),Y("div",PJ,[Q(ba,{name:"Clock",size:"17"}),Q(pc,{modelValue:k(a),"onUpdate:modelValue":_[0]||(_[0]=w=>ze(a)?a.value=w:null),modelModifiers:{number:!0},options:k(d),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),k(b)>1?(H(),Z(Fe,{key:0},[LJ,Q(pc,{modelValue:k(c),"onUpdate:modelValue":_[1]||(_[1]=w=>ze(c)?c.value=w:null),modelModifiers:{number:!0},options:k(f).minutes,class:"vc-time-select-minutes","align-left":k(b)===2},null,8,["modelValue","options","align-left"])],64)):we("",!0),k(b)>2?(H(),Z(Fe,{key:1},[NJ,Q(pc,{modelValue:k(l),"onUpdate:modelValue":_[2]||(_[2]=w=>ze(l)?l.value=w:null),modelModifiers:{number:!0},options:k(f).seconds,class:"vc-time-select-seconds","align-left":k(b)===3},null,8,["modelValue","options","align-left"])],64)):we("",!0),k(b)>3?(H(),Z(Fe,{key:2},[FJ,Q(pc,{modelValue:k(u),"onUpdate:modelValue":_[3]||(_[3]=w=>ze(u)?u.value=w:null),modelModifiers:{number:!0},options:k(f).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):we("",!0),k(v)?we("",!0):(H(),Se(pc,{key:3,modelValue:k(h),"onUpdate:modelValue":_[4]||(_[4]=w=>ze(h)?h.value=w:null),options:k(m)},null,8,["modelValue","options"]))])],2))}}),DI=ke({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:n,color:r,displayMode:s,isDateTimeMode:o,isTimeMode:i,isRange:a,onDayClick:c,onDayMouseEnter:l,onDayKeydown:u}=zv(),f=a.value?[0,1]:[0];return(d,p)=>k(i)?(H(),Z("div",{key:0,class:Re(`vc-container vc-bordered vc-${k(r)} vc-${k(s)}`)},[(H(!0),Z(Fe,null,At(k(f),h=>(H(),Se(zw,{key:h,position:h},null,8,["position"]))),128))],2)):(H(),Se(_J,{key:1,attributes:k(t),ref_key:"calendarRef",ref:n,onDayclick:k(c),onDaymouseenter:k(l),onDaykeydown:k(u)},{footer:_e(()=>[k(o)?(H(!0),Z(Fe,{key:0},At(k(f),h=>(H(),Se(zw,{key:h,position:h},null,8,["position"]))),128)):we("",!0),Q(Zn,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),HJ={inheritAttrs:!1},BJ=ke({...HJ,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:n,displayMode:r,popoverRef:s,onPopoverBeforeShow:o,onPopoverAfterShow:i,onPopoverBeforeHide:a,onPopoverAfterHide:c}=zv();return(l,u)=>(H(),Se(Vv,{id:k(t),placement:"bottom-start",class:Re(`vc-date-picker-content vc-${k(n)} vc-${k(r)}`),ref_key:"popoverRef",ref:s,onBeforeShow:k(o),onAfterShow:k(i),onBeforeHide:k(a),onAfterHide:k(c)},{default:_e(()=>[Q(DI,qi(Qc(l.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),UJ=ke({inheritAttrs:!1,emits:wJ,props:bJ,components:{DatePickerBase:DI,DatePickerPopover:BJ},setup(e,t){const n=SJ(e,t),r=qt(K$(n,"calendarRef","popoverRef"));return{...n,slotCtx:r}}});function jJ(e,t,n,r,s,o){const i=pr("DatePickerPopover"),a=pr("DatePickerBase");return e.$slots.default?(H(),Z(Fe,{key:0},[St(e.$slots,"default",qi(Qc(e.slotCtx))),Q(i,qi(Qc(e.$attrs)),null,16)],64)):(H(),Se(a,qi(Qt({key:1},e.$attrs)),null,16))}const yhe=So(UJ,[["render",jJ]]),YJ=xt(e=>{const t=e.$config.public.vcalendar;e.vueApp.use(dG,t||{})}),MI=new Set,Rn=new WeakMap,wa=new WeakMap,ri=new WeakMap,Rm=new WeakMap,WJ=new WeakMap,Sa=new WeakMap,Kf=new WeakMap,wc=new WeakSet;let uo,qv=0,Kv=0;const hs="__aa_tgt",fl="__aa_del",Gf="__aa_new",VJ=e=>{const t=JJ(e);t&&t.forEach(n=>ZJ(n))},zJ=e=>{e.forEach(t=>{t.target===uo&&KJ(),Rn.has(t.target)&&pi(t.target)})};function qJ(e){const t=Rm.get(e);t==null||t.disconnect();let n=Rn.get(e),r=0;const s=5;n||(n=Ea(e),Rn.set(e,n));const{offsetWidth:o,offsetHeight:i}=uo,c=[n.top-s,o-(n.left+s+n.width),i-(n.top+s+n.height),n.left-s].map(u=>`${-1*Math.floor(u)}px`).join(" "),l=new IntersectionObserver(()=>{++r>1&&pi(e)},{root:uo,threshold:1,rootMargin:c});l.observe(e),Rm.set(e,l)}function pi(e){clearTimeout(Kf.get(e));const t=Zd(e),n=dl(t)?500:t.duration;Kf.set(e,setTimeout(async()=>{const r=ri.get(e);try{await(r==null?void 0:r.finished),Rn.set(e,Ea(e)),qJ(e)}catch{}},n))}function KJ(){clearTimeout(Kf.get(uo)),Kf.set(uo,setTimeout(()=>{MI.forEach(e=>PI(e,t=>OI(()=>pi(t))))},100))}function GJ(e){setTimeout(()=>{WJ.set(e,setInterval(()=>OI(pi.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function OI(e){typeof requestIdleCallback=="function"?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}let Pm,Fi;const XJ=typeof window<"u"&&"ResizeObserver"in window;XJ&&(uo=document.documentElement,Pm=new MutationObserver(VJ),Fi=new ResizeObserver(zJ),window.addEventListener("scroll",()=>{Kv=window.scrollY,qv=window.scrollX}),Fi.observe(uo));function JJ(e){return e.reduce((r,s)=>[...r,...Array.from(s.addedNodes),...Array.from(s.removedNodes)],[]).every(r=>r.nodeName==="#comment")?!1:e.reduce((r,s)=>{if(r===!1)return!1;if(s.target instanceof Element){if(Jp(s.target),!r.has(s.target)){r.add(s.target);for(let o=0;on(e,Sa.has(e)));for(let n=0;ns(r,Sa.has(r)))}}function Xv(e){return Array.isArray(e)?e:[e]}function dl(e){return typeof e=="function"}function eZ(e){const t=Rn.get(e),n=Ea(e);if(!Gv(e))return Rn.set(e,n);let r;if(!t)return;const s=Zd(e);if(typeof s!="function"){const o=t.left-n.left,i=t.top-n.top,[a,c,l,u]=AI(e,t,n),f={transform:`translate(${o}px, ${i}px)`},d={transform:"translate(0, 0)"};a!==c&&(f.width=`${a}px`,d.width=`${c}px`),l!==u&&(f.height=`${l}px`,d.height=`${u}px`),r=e.animate([f,d],{duration:s.duration,easing:s.easing})}else{const[o]=Xv(s(e,"remain",t,n));r=new Animation(o),r.play()}ri.set(e,r),Rn.set(e,n),r.addEventListener("finish",pi.bind(null,e))}function qw(e){Gf in e&&delete e[Gf];const t=Ea(e);Rn.set(e,t);const n=Zd(e);if(!Gv(e))return;let r;if(typeof n!="function")r=e.animate([{transform:"scale(.98)",opacity:0},{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:n.duration*1.5,easing:"ease-in"});else{const[s]=Xv(n(e,"add",t));r=new Animation(s),r.play()}ri.set(e,r),r.addEventListener("finish",pi.bind(null,e))}function Kw(e,t){var n;e.remove(),Rn.delete(e),wa.delete(e),ri.delete(e),(n=Rm.get(e))===null||n===void 0||n.disconnect(),setTimeout(()=>{if(fl in e&&delete e[fl],Object.defineProperty(e,Gf,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(const r in t)e.style[r]=""},0)}function tZ(e){var t;if(!wa.has(e)||!Rn.has(e))return;const[n,r]=wa.get(e);Object.defineProperty(e,fl,{value:!0,configurable:!0});const s=window.scrollX,o=window.scrollY;if(r&&r.parentNode&&r.parentNode instanceof Element?r.parentNode.insertBefore(e,r):n&&n.parentNode?n.parentNode.appendChild(e):(t=RI(e))===null||t===void 0||t.appendChild(e),!Gv(e))return Kw(e);const[i,a,c,l]=rZ(e),u=Zd(e),f=Rn.get(e);(s!==qv||o!==Kv)&&nZ(e,s,o,u);let d,p={position:"absolute",top:`${i}px`,left:`${a}px`,width:`${c}px`,height:`${l}px`,margin:"0",pointerEvents:"none",transformOrigin:"center",zIndex:"100"};if(!dl(u))Object.assign(e.style,p),d=e.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}],{duration:u.duration,easing:"ease-out"});else{const[h,m]=Xv(u(e,"remove",f));(m==null?void 0:m.styleReset)!==!1&&(p=(m==null?void 0:m.styleReset)||p,Object.assign(e.style,p)),d=new Animation(h),d.play()}ri.set(e,d),d.addEventListener("finish",Kw.bind(null,e,p))}function nZ(e,t,n,r){const s=qv-t,o=Kv-n,i=document.documentElement.style.scrollBehavior;if(getComputedStyle(uo).scrollBehavior==="smooth"&&(document.documentElement.style.scrollBehavior="auto"),window.scrollTo(window.scrollX+s,window.scrollY+o),!e.parentElement)return;const c=e.parentElement;let l=c.clientHeight,u=c.clientWidth;const f=performance.now();function d(){requestAnimationFrame(()=>{if(!dl(r)){const p=l-c.clientHeight,h=u-c.clientWidth;f+r.duration>performance.now()?(window.scrollTo({left:window.scrollX-h,top:window.scrollY-p}),l=c.clientHeight,u=c.clientWidth,d()):document.documentElement.style.scrollBehavior=i}})}d()}function rZ(e){const t=Rn.get(e),[n,,r]=AI(e,t,Ea(e));let s=e.parentElement;for(;s&&(getComputedStyle(s).position==="static"||s instanceof HTMLBodyElement);)s=s.parentElement;s||(s=document.body);const o=getComputedStyle(s),i=Rn.get(s)||Ea(s),a=Math.round(t.top-i.top)-Nr(o.borderTopWidth),c=Math.round(t.left-i.left)-Nr(o.borderLeftWidth);return[a,c,n,r]}function sZ(e,t={}){return Pm&&Fi&&(window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!dl(t)&&!t.disrespectUserMotionPreference||(wc.add(e),getComputedStyle(e).position==="static"&&Object.assign(e.style,{position:"relative"}),PI(e,pi,GJ,s=>Fi==null?void 0:Fi.observe(s)),dl(t)?Sa.set(e,t):Sa.set(e,{duration:250,easing:"ease-in-out",...t}),Pm.observe(e,{childList:!0}),MI.add(e))),Object.freeze({parent:e,enable:()=>{wc.add(e)},disable:()=>{wc.delete(e)},isEnabled:()=>wc.has(e)})}const oZ={mounted:(e,t)=>{sZ(e,t.value||{})},getSSRProps:()=>({})},iZ=oZ,aZ=xt(e=>{e.vueApp.directive("auto-animate",iZ)});function cZ(e,t){if(e==null)return;let n=e;for(let r=0;r1&&(t=Jv(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function LI(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const n={};for(const r in e)n[r]=e[r];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const n={};for(const r in e)n[r]=e[r];return n}return Jv(e,LI(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function NI(e,t){return t.map(n=>n.split(".")).map(n=>[n,cZ(e,n)]).filter(n=>n[1]!==void 0).reduce((n,r)=>Jv(n,r[1],r[0]),{})}function FI(e,t){return t.map(n=>n.split(".")).reduce((n,r)=>LI(n,r),e)}function Gw(e,{storage:t,serializer:n,key:r,debug:s,pick:o,omit:i,beforeHydrate:a,afterHydrate:c},l,u=!0){try{u&&(a==null||a(l));const f=t.getItem(r);if(f){const d=n.deserialize(f),p=o?NI(d,o):d,h=i?FI(p,i):p;e.$patch(h)}u&&(c==null||c(l))}catch(f){s&&console.error("[pinia-plugin-persistedstate]",f)}}function Xw(e,{storage:t,serializer:n,key:r,debug:s,pick:o,omit:i}){try{const a=o?NI(e,o):e,c=i?FI(a,i):a,l=n.serialize(c);t.setItem(r,l)}catch(a){s&&console.error("[pinia-plugin-persistedstate]",a)}}function lZ(e,t,n){const{pinia:r,store:s,options:{persist:o=n}}=e;if(!o)return;if(!(s.$id in r.state.value)){const c=r._s.get(s.$id.replace("__hot:",""));c&&Promise.resolve().then(()=>c.$persist());return}const a=(Array.isArray(o)?o:o===!0?[{}]:[o]).map(t);s.$hydrate=({runHooks:c=!0}={})=>{a.forEach(l=>{Gw(s,l,e,c)})},s.$persist=()=>{a.forEach(c=>{Xw(s.$state,c)})},a.forEach(c=>{Gw(s,c,e),s.$subscribe((l,u)=>Xw(u,c),{detached:!0})})}function uZ(e){const n=dn().public.piniaPluginPersistedstate;lZ(e,r=>({key:n.key?n.key.replace(/%id/g,r.key??e.store.$id):r.key??e.store.$id,debug:r.debug??n.debug??!1,serializer:r.serializer??{serialize:s=>JSON.stringify(s),deserialize:s=>aa(s)},storage:r.storage??(n.storage?n.storage==="cookies"?Rc.cookies(n.cookieOptions):Rc[n.storage]():Rc.cookies()),beforeHydrate:r.beforeHydrate,afterHydrate:r.afterHydrate,pick:r.pick,omit:r.omit}),n.auto??!1)}const fZ=xt({name:"pinia-plugin-persistedstate",setup({$pinia:e}){e.use(uZ)}}),dZ=xt(async e=>e.provide("dayjs",Bt)),pZ=xt(async e=>{let t,n;const r=dn(),{data:s}=([t,n]=Gn(()=>vN(`${r.public.cmsBase}/config`,"$Y3VfX7ofFY")),t=await t,n(),t);e.provide("configData",s.value)}),Ye=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,gs="8.55.0",qe=globalThis;function Qd(e,t,n){const r=n||qe,s=r.__SENTRY__=r.__SENTRY__||{},o=s[gs]=s[gs]||{};return o[e]||(o[e]=t())}const Eo=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,hZ="Sentry Logger ",Lm=["debug","info","warn","error","log","assert","trace"],Xf={};function Cr(e){if(!("console"in qe))return e();const t=qe.console,n={},r=Object.keys(Xf);r.forEach(s=>{const o=Xf[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function mZ(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Eo?Lm.forEach(n=>{t[n]=(...r)=>{e&&Cr(()=>{qe.console[n](`${hZ}[${n}]:`,...r)})}}):Lm.forEach(n=>{t[n]=()=>{}}),t}const me=Qd("logger",mZ),HI=50,si="?",Jw=/\(error: (.*)\)/,Zw=/captureMessage|captureException/;function BI(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(` `);for(let a=r;a1024)continue;const l=Jw.test(c)?c.replace(Jw,"$1"):c;if(!l.match(/\S*Error: /)){for(const u of t){const f=u(l);if(f){o.push(f);break}}if(o.length>=HI+s)break}}return vZ(o.slice(s))}}function gZ(e){return Array.isArray(e)?BI(...e):e}function vZ(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(fu(t).function||"")&&t.pop(),t.reverse(),Zw.test(fu(t).function||"")&&(t.pop(),Zw.test(fu(t).function||"")&&t.pop()),t.slice(0,HI).map(n=>({...n,filename:n.filename||fu(t).filename,function:n.function||si}))}function fu(e){return e[e.length-1]||{}}const Zp="";function Is(e){try{return!e||typeof e!="function"?Zp:e.name||Zp}catch{return Zp}}function Nm(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const sf={},Qw={};function ko(e,t){sf[e]=sf[e]||[],sf[e].push(t)}function To(e,t){if(!Qw[e]){Qw[e]=!0;try{t()}catch(n){Eo&&me.error(`Error while instrumenting ${e}`,n)}}}function nr(e,t){const n=e&&sf[e];if(n)for(const r of n)try{r(t)}catch(s){Eo&&me.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${Is(r)} Error:`,s)}}let Qp=null;function UI(e){const t="error";ko(t,e),To(t,yZ)}function yZ(){Qp=qe.onerror,qe.onerror=function(e,t,n,r,s){return nr("error",{column:r,error:s,line:n,msg:e,url:t}),Qp?Qp.apply(this,arguments):!1},qe.onerror.__SENTRY_INSTRUMENTED__=!0}let eh=null;function jI(e){const t="unhandledrejection";ko(t,e),To(t,_Z)}function _Z(){eh=qe.onunhandledrejection,qe.onunhandledrejection=function(e){return nr("unhandledrejection",e),eh?eh.apply(this,arguments):!0},qe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function hi(){return Zv(qe),qe}function Zv(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||gs,t[gs]=t[gs]||{}}const YI=Object.prototype.toString;function Qv(e){switch(YI.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return xs(e,Error)}}function Va(e,t){return YI.call(e)===`[object ${t}]`}function WI(e){return Va(e,"ErrorEvent")}function e1(e){return Va(e,"DOMError")}function bZ(e){return Va(e,"DOMException")}function vs(e){return Va(e,"String")}function ey(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ty(e){return e===null||ey(e)||typeof e!="object"&&typeof e!="function"}function ka(e){return Va(e,"Object")}function ep(e){return typeof Event<"u"&&xs(e,Event)}function wZ(e){return typeof Element<"u"&&xs(e,Element)}function SZ(e){return Va(e,"RegExp")}function tp(e){return!!(e&&e.then&&typeof e.then=="function")}function EZ(e){return ka(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function xs(e,t){try{return e instanceof t}catch{return!1}}function VI(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const ta=qe,kZ=80;function Cs(e,t={}){if(!e)return"";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||kZ;for(;n&&o++1&&i+s.length*c+l.length>=f));)s.push(l),i+=l.length,n=n.parentNode;return s.reverse().join(a)}catch{return""}}function TZ(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(ta.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&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s&&s.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&vs(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function zI(){try{return ta.document.location.href}catch{return""}}function $Z(e){return ta.document&&ta.document.querySelector?ta.document.querySelector(e):null}function qI(e){if(!ta.HTMLElement)return null;let t=e;const n=5;for(let r=0;rIZ(e,r,n))}function Cn(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&KI(s,r);try{e[t]=s}catch{Eo&&me.log(`Failed to replace method "${t}" in object`,e)}}function ir(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Eo&&me.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function KI(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,ir(e,"__sentry_original__",t)}catch{}}function ny(e){return e.__sentry_original__}function GI(e){if(Qv(e))return{message:e.message,name:e.name,stack:e.stack,...r1(e)};if(ep(e)){const t={type:e.type,target:n1(e.target),currentTarget:n1(e.currentTarget),...r1(e)};return typeof CustomEvent<"u"&&xs(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function n1(e){try{return wZ(e)?Cs(e):Object.prototype.toString.call(e)}catch{return""}}function r1(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 xZ(e,t=40){const n=Object.keys(GI(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return na(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:na(o,t)}return""}function zt(e){return Fm(e,new Map)}function Fm(e,t){if(CZ(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=Fm(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Fm(s,t))}),r}return e}function CZ(e){if(!ka(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const XI=1e3;function Ml(){return Date.now()/XI}function DZ(){const{performance:e}=qe;if(!e||!e.now)return Ml;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/XI}const fn=DZ(),En=(()=>{const{performance:e}=qe;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=sMath.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function JI(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Xs(e){const{message:t,event_id:n}=e;if(t)return t;const r=JI(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Hm(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type="Error")}function Ta(e,t){const n=JI(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}function s1(e){if(MZ(e))return!0;try{ir(e,"__sentry_captured__",!0)}catch{}return!1}function MZ(e){try{return e.__sentry_captured__}catch{}}var os;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(os||(os={}));function Ds(e){return new Kn(t=>{t(e)})}function Jf(e){return new Kn((t,n)=>{n(e)})}class Kn{constructor(t){Kn.prototype.__init.call(this),Kn.prototype.__init2.call(this),Kn.prototype.__init3.call(this),Kn.prototype.__init4.call(this),this._state=os.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Kn((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Kn((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(os.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(os.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===os.PENDING){if(tp(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===os.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===os.RESOLVED&&n[1](this._value),this._state===os.REJECTED&&n[2](this._value),n[0]=!0)})}}}function OZ(e){const t=fn(),n={sid:jn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>RZ(n)};return e&&$a(n,e),n}function $a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||fn(),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:jn()),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 AZ(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),$a(e,n)}function RZ(e){return zt({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 fo(){return jn()}function po(){return jn().substring(16)}function np(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=np(r[s],t[s],n-1));return r}const Bm="_sentrySpan";function pl(e,t){t?ir(e,Bm,t):delete e[Bm]}function Zf(e){return e[Bm]}const PZ=100;class ry{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:fo(),spanId:po()}}clone(){const t=new ry;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,pl(t,Zf(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&&$a(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,s]=n instanceof ho?[n.getScopeData(),n.getRequestSession()]:ka(n)?[t,t.requestSession]:[],{tags:o,extra:i,user:a,contexts:c,level:l,fingerprint:u=[],propagationContext:f}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),u.length&&(this._fingerprint=u),f&&(this._propagationContext=f),s&&(this._requestSession=s),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,pl(this,void 0),this._attachments=[],this.setPropagationContext({traceId:fo()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:PZ;if(r<=0)return this;const s={timestamp:Ml(),...t};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Zf(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=np(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:po(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:jn();if(!this._client)return me.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&&r.event_id?r.event_id:jn();if(!this._client)return me.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:jn();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(me.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)}}const ho=ry;function LZ(){return Qd("defaultCurrentScope",()=>new ho)}function NZ(){return Qd("defaultIsolationScope",()=>new ho)}class FZ{constructor(t,n){let r;t?r=t:r=new ho;let s;n?s=n:s=new ho,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 tp(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 Ia(){const e=hi(),t=Zv(e);return t.stack=t.stack||new FZ(LZ(),NZ())}function HZ(e){return Ia().withScope(e)}function BZ(e,t){const n=Ia();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function o1(e){return Ia().withScope(()=>e(Ia().getIsolationScope()))}function UZ(){return{withIsolationScope:o1,withScope:HZ,withSetScope:BZ,withSetIsolationScope:(e,t)=>o1(t),getCurrentScope:()=>Ia().getScope(),getIsolationScope:()=>Ia().getIsolationScope()}}function za(e){const t=Zv(e);return t.acs?t.acs:UZ()}function pt(){const e=hi();return za(e).getCurrentScope()}function Dr(){const e=hi();return za(e).getIsolationScope()}function jZ(){return Qd("globalScope",()=>new ho)}function sy(...e){const t=hi(),n=za(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function Ge(){return pt().getClient()}function YZ(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:s}=t;return zt({trace_id:n,span_id:r,parent_span_id:s})}const WZ="_sentryMetrics";function Um(e){const t=e[WZ];if(!t)return;const n={};for(const[,[r,s]]of t)(n[r]||(n[r]=[])).push(zt(s));return n}const Bn="sentry.source",ZI="sentry.sample_rate",oi="sentry.op",It="sentry.origin",jm="sentry.idle_span_finish_reason",rp="sentry.measurement_unit",sp="sentry.measurement_value",i1="sentry.custom_span_name",VZ="sentry.profile_id",oy="sentry.exclusive_time",zZ=0,QI=1,Xt=2;function qZ(e){if(e<400&&e>=100)return{code:QI};if(e>=400&&e<500)switch(e){case 401:return{code:Xt,message:"unauthenticated"};case 403:return{code:Xt,message:"permission_denied"};case 404:return{code:Xt,message:"not_found"};case 409:return{code:Xt,message:"already_exists"};case 413:return{code:Xt,message:"failed_precondition"};case 429:return{code:Xt,message:"resource_exhausted"};case 499:return{code:Xt,message:"cancelled"};default:return{code:Xt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Xt,message:"unimplemented"};case 503:return{code:Xt,message:"unavailable"};case 504:return{code:Xt,message:"deadline_exceeded"};default:return{code:Xt,message:"internal_error"}}return{code:Xt,message:"unknown_error"}}function ex(e,t){e.setAttribute("http.response.status_code",t);const n=qZ(t);n.message!=="unknown_error"&&e.setStatus(n)}const iy="sentry-",KZ=/^sentry-/,GZ=8192;function tx(e){const t=JZ(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(KZ)){const i=s.slice(iy.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function XZ(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${iy}${r}`]=s),n),{});return ZZ(t)}function JZ(e){if(!(!e||!vs(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=a1(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):a1(e)}function a1(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function ZZ(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>GZ?(Eo&&me.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}const nx=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function QZ(e){if(!e)return;const t=e.match(nx);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 eQ(e,t){const n=QZ(e),r=tx(t);if(!n||!n.traceId)return{traceId:fo(),spanId:po()};const{traceId:s,parentSpanId:o,parentSampled:i}=n,a=po();return{traceId:s,parentSpanId:o,spanId:a,sampled:i,dsc:r||{}}}function rx(e=fo(),t=po(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const sx=0,ox=1;let c1=!1;function tQ(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=Ze(e);return zt({parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a})}function nQ(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:Ze(e).parent_span_id,o=r?po():t;return zt({parent_span_id:s,span_id:o,trace_id:n})}function rQ(e){const{traceId:t,spanId:n}=e.spanContext(),r=mi(e);return rx(t,n,r)}function qo(e){return typeof e=="number"?l1(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?l1(e.getTime()):fn()}function l1(e){return e>9999999999?e/1e3:e}function Ze(e){if(oQ(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(sQ(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=e;return zt({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:qo(s),timestamp:qo(i)||void 0,status:ix(c),op:r[oi],origin:r[It],_metrics_summary:Um(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function sQ(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function oQ(e){return typeof e.getSpanJSON=="function"}function mi(e){const{traceFlags:t}=e.spanContext();return t===ox}function ix(e){if(!(!e||e.code===zZ))return e.code===QI?"ok":e.message||"unknown_error"}const Ko="_sentryChildSpans",Ym="_sentryRootSpan";function ax(e,t){const n=e[Ym]||e;ir(t,Ym,n),e[Ko]?e[Ko].add(t):ir(e,Ko,new Set([t]))}function iQ(e,t){e[Ko]&&e[Ko].delete(t)}function of(e){const t=new Set;function n(r){if(!t.has(r)&&mi(r)){t.add(r);const s=r[Ko]?Array.from(r[Ko]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function Jt(e){return e[Ym]||e}function Ut(){const e=hi(),t=za(e);return t.getActiveSpan?t.getActiveSpan():Zf(pt())}function cx(){c1||(Cr(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),c1=!0)}let u1=!1;function aQ(){u1||(u1=!0,UI(Wm),jI(Wm))}function Wm(){const e=Ut(),t=e&&Jt(e);if(t){const n="internal_error";Ye&&me.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:Xt,message:n})}}Wm.tag="sentry_tracingErrorCallback";const lx="_sentryScope",ux="_sentryIsolationScope";function cQ(e,t,n){e&&(ir(e,ux,n),ir(e,lx,t))}function f1(e){return{scope:e[lx],isolationScope:e[ux]}}function Ms(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Ge(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class qa{constructor(t={}){this._traceId=t.traceId||fo(),this._spanId=t.spanId||po()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:sx}}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){}}const ay="production",fx="_frozenDsc";function d1(e,t){ir(e,fx,t)}function dx(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=zt({environment:n.environment||ay,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function px(e,t){const n=t.getPropagationContext();return n.dsc||dx(n.traceId,e)}function gi(e){const t=Ge();if(!t)return{};const n=Jt(e),r=n[fx];if(r)return r;const s=n.spanContext().traceState,o=s&&s.get("sentry.dsc"),i=o&&tx(o);if(i)return i;const a=dx(e.spanContext().traceId,t),c=Ze(n),l=c.data||{},u=l[ZI];u!=null&&(a.sample_rate=`${u}`);const f=l[Bn],d=c.description;return f!=="url"&&d&&(a.transaction=d),Ms()&&(a.sampled=String(mi(n))),t.emit("createDsc",a,n),a}function lQ(e){if(!Ye)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Ze(e),{spanId:s}=e.spanContext(),o=mi(e),i=Jt(e),a=i===e,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&l.push(`parent ID: ${r}`),!a){const{op:u,description:f}=Ze(i);l.push(`root ID: ${i.spanContext().spanId}`),u&&l.push(`root op: ${u}`),f&&l.push(`root description: ${f}`)}me.log(`${c} ${l.join(` `)}`)}function uQ(e){if(!Ye)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Ze(e),{spanId:r}=e.spanContext(),o=Jt(e)===e,i=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;me.log(i)}function Qf(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){Ye&&me.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function fQ(e,t){if(!Ms(e))return[!1];const n=Dr().getScopeData().sdkProcessingMetadata.normalizedRequest,r={...t,normalizedRequest:t.normalizedRequest||n};let s;typeof e.tracesSampler=="function"?s=e.tracesSampler(r):r.parentSampled!==void 0?s=r.parentSampled:typeof e.tracesSampleRate<"u"?s=e.tracesSampleRate:s=1;const o=Qf(s);return o===void 0?(Ye&&me.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):o?Math.random(){console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const f=l.match(/^\d+/);f&&(l=f[0])}return hx({host:o,pass:s,path:c,projectId:l,port:i,protocol:n,publicKey:r})}function hx(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function mQ(e){if(!Eo)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(me.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?pQ(r)?t&&isNaN(parseInt(t,10))?(me.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(me.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(me.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function gQ(e){const t=typeof e=="string"?hQ(e):hx(e);if(!(!t||!mQ(t)))return t}function vQ(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let o=0;on?mx(e,t-1,n):r}function Vm(e,t,n=1/0,r=1/0,s=vQ()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=yQ(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(o(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const p=l.toJSON();return Vm("",p,c-1,r,s)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const d=GI(t);for(const p in d){if(!Object.prototype.hasOwnProperty.call(d,p))continue;if(f>=r){u[p]="[MaxProperties ~]";break}const h=d[p];u[p]=Vm(p,h,c-1,r,s),f++}return i(t),u}function yQ(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(VI(t))return"[VueViewModel]";if(EZ(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Is(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=_Q(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function _Q(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function bQ(e){return~-encodeURI(e).split(/%..|./).length}function wQ(e){return bQ(JSON.stringify(e))}function vi(e,t=[]){return[e,t]}function SQ(e,t){const[n,r]=e;return[n,[...r,t]]}function zm(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 qm(e){return qe.__SENTRY__&&qe.__SENTRY__.encodePolyfill?qe.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function EQ(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[qm(r),o]:r.push(typeof o=="string"?qm(o):o)}for(const o of n){const[i,a]=o;if(s(` ${JSON.stringify(i)} `),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(fr(a))}s(c)}}return typeof r=="string"?r:kQ(r)}function kQ(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function TQ(e){return[{type:"span"},e]}function $Q(e){const t=typeof e.data=="string"?qm(e.data):e.data;return[zt({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const IQ={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",statsd:"metric_bucket",raw_security:"security"};function p1(e){return IQ[e]}function cy(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function gx(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ol(r)},...s&&{trace:zt({...s})}}}function xQ(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function CQ(e,t,n,r){const s=cy(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Ol(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return vi(o,[i])}function DQ(e,t,n,r){const s=cy(n),o=e.type&&e.type!=="replay_event"?e.type:"event";xQ(e,n&&n.sdk);const i=gx(e,s,r,t);return delete e.sdkProcessingMetadata,vi(i,[[{type:o},e]])}function MQ(e,t){function n(u){return!!u.trace_id&&!!u.public_key}const r=gi(e[0]),s=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:Ol(s)}},a=t&&t.getOptions().beforeSendSpan,c=a?u=>{const f=a(Ze(u));return f||cx(),f}:u=>Ze(u),l=[];for(const u of e){const f=c(u);f&&l.push(TQ(f))}return vi(i,l)}function OQ(e,t,n,r=Ut()){const s=r&&Jt(r);s&&(Ye&&me.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[sp]:t,[rp]:n}))}function h1(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[rp],o=r[sp];typeof s=="string"&&typeof o=="number"&&(t[n.name]={value:o,unit:s})}),t}const m1=1e3;class ly{constructor(t={}){this._traceId=t.traceId||fo(),this._spanId=t.spanId||po(),this._startTime=t.startTimestamp||fn(),this._attributes={},this.setAttributes({[It]:"manual",[oi]: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}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?ox:sx}}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=qo(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Bn,"custom"),this}end(t){this._endTime||(this._endTime=qo(t),uQ(this),this._onSpanEnded())}getSpanJSON(){return zt({data:this._attributes,description:this._name,op:this._attributes[oi],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:ix(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[It],_metrics_summary:Um(this),profile_id:this._attributes[VZ],exclusive_time:this._attributes[oy],measurements:h1(this._events),is_segment:this._isStandaloneSpan&&Jt(this)===this||void 0,segment_id:this._isStandaloneSpan?Jt(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){Ye&&me.log("[Tracing] Adding an event to span:",t);const s=g1(n)?n:r||fn(),o=g1(n)?{}:n||{},i={name:t,time:qo(s),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Ge();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Jt(this)))return;if(this._isStandaloneSpan){this._sampled?RQ(MQ([this],t)):(Ye&&me.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&&(f1(this).scope||pt()).captureEvent(r)}_convertSpanToTransaction(){if(!v1(Ze(this)))return;this._name||(Ye&&me.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:t,isolationScope:n}=f1(this),s=(t||pt()).getClient()||Ge();if(this._sampled!==!0){Ye&&me.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),s&&s.recordDroppedEvent("sample_rate","transaction");return}const i=of(this).filter(f=>f!==this&&!AQ(f)).map(f=>Ze(f)).filter(v1),a=this._attributes[Bn];delete this._attributes[i1],i.forEach(f=>{f.data&&delete f.data[i1]});const c={contexts:{trace:tQ(this)},spans:i.length>m1?i.sort((f,d)=>f.start_timestamp-d.start_timestamp).slice(0,m1):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...zt({dynamicSamplingContext:gi(this)})},_metrics_summary:Um(this),...a&&{transaction_info:{source:a}}},l=h1(this._events);return l&&Object.keys(l).length&&(Ye&&me.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}}function g1(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function v1(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function AQ(e){return e instanceof ly&&e.isStandaloneSpan()}function RQ(e){const t=Ge();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}const vx="__SENTRY_SUPPRESS_TRACING__";function ii(e){const t=_x();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=LQ(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?i=>sy(e.scope,i):s!==void 0?i=>yx(s,i):i=>i())(()=>{const i=pt(),a=FQ(i);return e.onlyIfParent&&!a?new qa:PQ({parentSpan:a,spanArguments:n,forceTransaction:r,scope:i})})}function yx(e,t){const n=_x();return n.withActiveSpan?n.withActiveSpan(e,t):sy(r=>(pl(r,e||void 0),t(r)))}function PQ({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Ms())return new qa;const s=Dr();let o;if(e&&!n)o=NQ(e,r,t),ax(e,o);else if(e){const i=gi(e),{traceId:a,spanId:c}=e.spanContext(),l=mi(e);o=y1({traceId:a,parentSpanId:c,...t},r,l),d1(o,i)}else{const{traceId:i,dsc:a,parentSpanId:c,sampled:l}={...s.getPropagationContext(),...r.getPropagationContext()};o=y1({traceId:i,parentSpanId:c,...t},r,l),a&&d1(o,a)}return lQ(o),cQ(o,r,s),o}function LQ(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=qo(e.startTime),delete r.startTime,r}return n}function _x(){const e=hi();return za(e)}function y1(e,t,n){const r=Ge(),s=r&&r.getOptions()||{},{name:o="",attributes:i}=e,[a,c]=t.getScopeData().sdkProcessingMetadata[vx]?[!1]:fQ(s,{name:o,parentSampled:n,attributes:i,transactionContext:{name:o,parentSampled:n}}),l=new ly({...e,attributes:{[Bn]:"custom",...e.attributes},sampled:a});return c!==void 0&&l.setAttribute(ZI,c),r&&r.emit("spanStart",l),l}function NQ(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),o=t.getScopeData().sdkProcessingMetadata[vx]?!1:mi(e),i=o?new ly({...n,parentSpanId:r,traceId:s,sampled:o}):new qa({traceId:s});ax(e,i);const a=Ge();return a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i)),i}function FQ(e){const t=Zf(e);if(!t)return;const n=Ge();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Jt(t):t}const af={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},HQ="heartbeatFailed",BQ="idleTimeout",UQ="finalTimeout",jQ="externalFinish";function bx(e,t={}){const n=new Map;let r=!1,s,o=jQ,i=!t.disableAutoFinish;const a=[],{idleTimeout:c=af.idleTimeout,finalTimeout:l=af.finalTimeout,childSpanTimeout:u=af.childSpanTimeout,beforeSpanEnd:f}=t,d=Ge();if(!d||!Ms())return new qa;const p=pt(),h=Ut(),m=YQ(e);m.end=new Proxy(m.end,{apply(S,E,$){f&&f(m);const[T,...x]=$,L=T||fn(),M=qo(L),j=of(m).filter(U=>U!==m);if(!j.length)return w(M),Reflect.apply(S,E,[M,...x]);const q=j.map(U=>Ze(U).timestamp).filter(U=>!!U),F=q.length?Math.max(...q):void 0,R=Ze(m).start_timestamp,V=Math.min(R?R+l/1e3:1/0,Math.max(R||-1/0,Math.min(M,F||1/0)));return w(V),Reflect.apply(S,E,[V,...x])}});function v(){s&&(clearTimeout(s),s=void 0)}function g(S){v(),s=setTimeout(()=>{!r&&n.size===0&&i&&(o=BQ,m.end(S))},c)}function b(S){s=setTimeout(()=>{!r&&i&&(o=HQ,m.end(S))},u)}function y(S){v(),n.set(S,!0);const E=fn();b(E+u/1e3)}function _(S){if(n.has(S)&&n.delete(S),n.size===0){const E=fn();g(E+c/1e3)}}function w(S){r=!0,n.clear(),a.forEach(M=>M()),pl(p,h);const E=Ze(m),{start_timestamp:$}=E;if(!$)return;(E.data||{})[jm]||m.setAttribute(jm,o),me.log(`[Tracing] Idle span "${E.op}" finished`);const x=of(m).filter(M=>M!==m);let L=0;x.forEach(M=>{M.isRecording()&&(M.setStatus({code:Xt,message:"cancelled"}),M.end(S),Ye&&me.log("[Tracing] Cancelling span since span ended early",JSON.stringify(M,void 0,2)));const j=Ze(M),{timestamp:q=0,start_timestamp:F=0}=j,R=F<=S,V=(l+c)/1e3,U=q-F<=V;if(Ye){const re=JSON.stringify(M,void 0,2);R?U||me.log("[Tracing] Discarding span since it finished after idle span final timeout",re):me.log("[Tracing] Discarding span since it happened after idle span was finished",re)}(!U||!R)&&(iQ(m,M),L++)}),L>0&&m.setAttribute("sentry.idle_span_discarded_spans",L)}return a.push(d.on("spanStart",S=>{if(r||S===m||Ze(S).timestamp)return;of(m).includes(S)&&y(S.spanContext().spanId)})),a.push(d.on("spanEnd",S=>{r||_(S.spanContext().spanId)})),a.push(d.on("idleSpanEnableAutoFinish",S=>{S===m&&(i=!0,g(),n.size&&b())})),t.disableAutoFinish||g(),setTimeout(()=>{r||(m.setStatus({code:Xt,message:"deadline_exceeded"}),o=UQ,m.end())},l),m}function YQ(e){const t=ii(e);return pl(pt(),t),Ye&&me.log("[Tracing] Started span is an idle span"),t}function Km(e,t,n,r=0){return new Kn((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);Ye&&i.id&&a===null&&me.log(`Event processor "${i.id}" dropped event`),tp(a)?a.then(c=>Km(e,c,n,r+1).then(s)).then(null,o):Km(e,a,n,r+1).then(s).then(null,o)}})}let du,_1,pu;function WQ(e){const t=qe._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return pu&&n.length===_1||(_1=n.length,pu=n.reduce((r,s)=>{du||(du={});const o=du[s];if(o)r[o[0]]=o[1];else{const i=e(s);for(let a=i.length-1;a>=0;a--){const c=i[a],l=c&&c.filename,u=t[s];if(l&&u){r[l]=u,du[s]=[l,u];break}}}return r},{})),pu}function VQ(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;zQ(e,t),r&&GQ(e,r),XQ(e,n),qQ(e,s),KQ(e,o)}function b1(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:f,propagationContext:d,transactionName:p,span:h}=t;hu(e,"extra",n),hu(e,"tags",r),hu(e,"user",s),hu(e,"contexts",o),e.sdkProcessingMetadata=np(e.sdkProcessingMetadata,a,2),i&&(e.level=i),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...d}}function hu(e,t,n){e[t]=np(e[t],n,1)}function zQ(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,c=zt(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=zt(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=zt(s);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=zt(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function qQ(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function KQ(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function GQ(e,t){e.contexts={trace:nQ(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:gi(t),...e.sdkProcessingMetadata};const n=Jt(t),r=Ze(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function XQ(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function wx(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||jn(),timestamp:t.timestamp||Ml()},l=n.integrations||e.integrations.map(v=>v.name);JQ(c,e),eee(c,l),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&ZQ(c,e.stackParser);const u=nee(r,n.captureContext);n.mechanism&&Ta(c,n.mechanism);const f=s?s.getEventProcessors():[],d=jZ().getScopeData();if(o){const v=o.getScopeData();b1(d,v)}if(u){const v=u.getScopeData();b1(d,v)}const p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),VQ(c,d);const h=[...f,...d.eventProcessors];return Km(h,c,n).then(v=>(v&&QQ(v),typeof i=="number"&&i>0?tee(v,i,a):v))}function JQ(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||ay,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s),e.message&&(e.message=na(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=na(i.value,o));const a=e.request;a&&a.url&&(a.url=na(a.url,o))}function ZQ(e,t){const n=WQ(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{n&&s.filename&&(s.debug_id=n[s.filename])})})}catch{}}function QQ(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function eee(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function tee(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:fr(s.data,t,n)}}))},...e.user&&{user:fr(e.user,t,n)},...e.contexts&&{contexts:fr(e.contexts,t,n)},...e.extra&&{extra:fr(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=fr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:fr(s.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=fr(e.contexts.flags,3,n)),r}function nee(e,t){if(!t)return e;const n=e?e.clone():new ho;return n.update(t),n}function ree(e){if(e)return see(e)?{captureContext:e}:iee(e)?{captureContext:e}:e}function see(e){return e instanceof ho||typeof e=="function"}const oee=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function iee(e){return Object.keys(e).some(t=>oee.includes(t))}function op(e,t){return pt().captureException(e,ree(t))}function Sx(e,t){return pt().captureEvent(e,t)}function aee(e,t){Dr().setContext(e,t)}function cee(){const e=Ge();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function lee(e){Dr().addEventProcessor(e)}function w1(e){const t=Ge(),n=Dr(),r=pt(),{release:s,environment:o=ay}=t&&t.getOptions()||{},{userAgent:i}=qe.navigator||{},a=OZ({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&$a(c,{status:"exited"}),Ex(),n.setSession(a),r.setSession(a),a}function Ex(){const e=Dr(),t=pt(),n=t.getSession()||e.getSession();n&&AZ(n),kx(),e.setSession(),t.setSession()}function kx(){const e=Dr(),t=pt(),n=Ge(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function S1(e=!1){if(e){Ex();return}kx()}const uee="7";function fee(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function dee(e){return`${fee(e)}${e.projectId}/envelope/`}function pee(e,t){const n={sentry_version:uee};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function hee(e,t,n){return t||`${dee(e)}?${pee(e,n)}`}const E1=[];function mee(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 gee(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;const s=mee(r),o=s.findIndex(i=>i.name==="Debug");if(o>-1){const[i]=s.splice(o,1);s.push(i)}return s}function vee(e,t){const n={};return t.forEach(r=>{r&&Tx(e,r,n)}),n}function k1(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Tx(e,t,n){if(n[t.name]){Ye&&me.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,E1.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),E1.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,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}Ye&&me.log(`Integration installed: ${t.name}`)}function yee(e,t,n){const r=[{type:"client_report"},{timestamp:Ml(),discarded_events:e}];return vi(t?{dsn:t}:{},[r])}class hr extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}const T1="Not capturing exception because it's already been captured.";class _ee{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=gQ(t.dsn):Ye&&me.warn("No DSN provided, client will not send events."),this._dsn){const s=hee(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:s})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(s=>s in t&&t[s]==null);r&&Cr(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,r){const s=jn();if(s1(t))return Ye&&me.log(T1),s;const o={event_id:s,...n};return this._process(this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r))),o.event_id}captureMessage(t,n,r,s){const o={event_id:jn(),...r},i=ey(t)?t:String(t),a=ty(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(a.then(c=>this._captureEvent(c,o,s))),o.event_id}captureEvent(t,n,r){const s=jn();if(n&&n.originalException&&s1(n.originalException))return Ye&&me.log(T1),s;const o={event_id:s,...n},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,a||r)),o.event_id}captureSession(t){typeof t.release!="string"?Ye&&me.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),$a(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):Ds(!0)}close(t){return this.flush(t).then(n=>(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];Tx(this,t,this._integrations),n||k1(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=DQ(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=SQ(r,$Q(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=CQ(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,o=`${t}:${n}`;Ye&&me.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Ye&&me.error("Error while sending envelope:",n),n)):(Ye&&me.error("Transport disabled"),Ds({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=vee(this,t),k1(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const o=n.exception&&n.exception.values;if(o){s=!0;for(const c of o){const l=c.mechanism;if(l&&l.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&($a(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Kn(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r=pt(),s=Dr()){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),wx(o,t,n,r,this,s).then(a=>{if(a===null)return a;a.contexts={trace:YZ(r),...a.contexts};const c=px(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{Ye&&(s instanceof hr&&s.logLevel==="log"?me.log(s.message):me.warn(s))})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=Ix(t),a=$x(t),c=t.type||"error",l=`before send for type \`${c}\``,u=typeof o>"u"?void 0:Qf(o);if(a&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),Jf(new hr(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const f=c==="replay_event"?"replay":c,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",f,t),new hr("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return h;const v=wee(this,s,h,n);return bee(v,l)}).then(h=>{if(h===null){if(this.recordDroppedEvent("before_send",f,t),i){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw new hr(`${l} returned \`null\`, will not send event.`,"log")}const m=r&&r.getSession();if(!i&&m&&this._updateSessionFromEvent(m,h),i){const g=h.sdkProcessingMetadata&&h.sdkProcessingMetadata.spanCountBeforeProcessing||0,b=h.spans?h.spans.length:0,y=g-b;y>0&&this.recordDroppedEvent("before_send","span",y)}const v=h.transaction_info;if(i&&v&&h.transaction!==t.transaction){const g="custom";h.transaction_info={...v,source:g}}return this.sendEvent(h,n),h}).then(null,h=>{throw h instanceof hr?h:(this.captureException(h,{data:{__sentry__:!0},originalException:h}),new hr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${h}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){Ye&&me.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Ye&&me.log("No outcomes to send");return}if(!this._dsn){Ye&&me.log("No dsn provided, will not send outcomes");return}Ye&&me.log("Sending outcomes:",t);const n=yee(t,this._options.tunnel&&Ol(this._dsn));this.sendEnvelope(n)}}function bee(e,t){const n=`${t} must return \`null\` or a valid event.`;if(tp(e))return e.then(r=>{if(!ka(r)&&r!==null)throw new hr(n);return r},r=>{throw new hr(`${t} rejected with ${r}`)});if(!ka(e)&&e!==null)throw new hr(n);return e}function wee(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i}=t;if($x(n)&&s)return s(n,r);if(Ix(n)){if(n.spans&&i){const a=[];for(const c of n.spans){const l=i(c);l?a.push(l):(cx(),e.recordDroppedEvent("before_send","span"))}n.spans=a}if(o){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(n,r)}}return n}function $x(e){return e.type===void 0}function Ix(e){return e.type==="transaction"}function See(e,t){t.debug===!0&&(Ye?me.enable():Cr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),pt().update(t.initialScope);const r=new e(t);return Eee(r),r.init(),r}function Eee(e){pt().setClient(e)}function kee(e){const t=[];function n(){return e===void 0||t.lengthr(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new Kn((a,c)=>{let l=t.length;if(!l)return a(!0);const u=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(f=>{Ds(f).then(()=>{--l||(clearTimeout(u),a(!0))},c)})})}return{$:t,add:s,drain:o}}const Tee=60*1e3;function $ee(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Tee:r-t}function Iee(e,t){return e[t]||e.all||0}function xx(e,t,n=Date.now()){return Iee(e,t)>n}function Cx(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,l,,,u]=a.split(":",5),f=parseInt(c,10),d=(isNaN(f)?60:f)*1e3;if(!l)s.all=r+d;else for(const p of l.split(";"))p==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(s[p]=r+d):s[p]=r+d}else i?s.all=r+$ee(i,r):t===429&&(s.all=r+60*1e3);return s}const xee=64;function Cee(e,t,n=kee(e.bufferSize||xee)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(zm(i,(f,d)=>{const p=p1(d);if(xx(r,p)){const h=$1(f,d);e.recordDroppedEvent("ratelimit_backoff",p,h)}else a.push(f)}),a.length===0)return Ds({});const c=vi(i[0],a),l=f=>{zm(c,(d,p)=>{const h=$1(d,p);e.recordDroppedEvent(f,p1(p),h)})},u=()=>t({body:EQ(c)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&Ye&&me.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Cx(r,f),f),f=>{throw l("network_error"),f});return n.add(u).then(f=>f,f=>{if(f instanceof hr)return Ye&&me.error("Skipped sending event because buffer is full."),l("queue_overflow"),Ds({});throw f})}return{send:o,flush:s}}function $1(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Dee(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return Oee(e,n)||Mee(e,r)}function Mee(e,t){return t?I1(e)===I1(t):!1}function Oee(e,t){return t?e.includes(t.host):!1}function I1(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Aee(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:gs})),version:gs}),e._metadata=s}function Dx(e={}){const t=Ge();if(!cee()||!t)return{};const n=hi(),r=za(n);if(r.getTraceData)return r.getTraceData(e);const s=pt(),o=e.span||Ut(),i=o?rQ(o):Ree(s),a=o?gi(o):px(t,s),c=XZ(a);return nx.test(i)?{"sentry-trace":i,baggage:c}:(me.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function Ree(e){const{traceId:t,sampled:n,spanId:r}=e.getPropagationContext();return rx(t,r,n)}const Pee=100;function mo(e,t){const n=Ge(),r=Dr();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Pee}=n.getOptions();if(o<=0)return;const a={timestamp:Ml(),...e},c=s?Cr(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}let x1;const Lee="FunctionToString",C1=new WeakMap,Nee=()=>({name:Lee,setupOnce(){x1=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=ny(this),n=C1.has(Ge())&&t!==void 0?t:this;return x1.apply(n,e)}}catch{}},setup(e){C1.set(e,!0)}}),Fee=Nee,Hee=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`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+$/],Bee="InboundFilters",Uee=(e={})=>({name:Bee,processEvent(t,n,r){const s=r.getOptions(),o=Yee(e,s);return Wee(t,o)?null:t}}),jee=Uee;function Yee(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Hee],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Wee(e,t){return t.ignoreInternal&&Xee(e)?(Ye&&me.warn(`Event dropped due to being internal Sentry Error. Event: ${Xs(e)}`),!0):Vee(e,t.ignoreErrors)?(Ye&&me.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${Xs(e)}`),!0):Zee(e)?(Ye&&me.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${Xs(e)}`),!0):zee(e,t.ignoreTransactions)?(Ye&&me.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${Xs(e)}`),!0):qee(e,t.denyUrls)?(Ye&&me.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${Xs(e)}. Url: ${ed(e)}`),!0):Kee(e,t.allowUrls)?!1:(Ye&&me.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${Xs(e)}. Url: ${ed(e)}`),!0)}function Vee(e,t){return e.type||!t||!t.length?!1:Gee(e).some(n=>ao(n,t))}function zee(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?ao(n,t):!1}function qee(e,t){if(!t||!t.length)return!1;const n=ed(e);return n?ao(n,t):!1}function Kee(e,t){if(!t||!t.length)return!0;const n=ed(e);return n?ao(n,t):!0}function Gee(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function Xee(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Jee(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 ed(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Jee(t):null}catch{return Ye&&me.error(`Cannot extract url for event ${Xs(e)}`),null}}function Zee(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function Qee(e,t,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!xs(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=ete(Gm(e,t,s,i.originalException,r,o.exception.values,a,0),n))}function Gm(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(xs(r[s],Error)){D1(i,a);const l=e(t,r[s]),u=c.length;M1(l,s,u,a),c=Gm(e,t,n,r[s],s,[l,...c],l,u)}return Array.isArray(r.errors)&&r.errors.forEach((l,u)=>{if(xs(l,Error)){D1(i,a);const f=e(t,l),d=c.length;M1(f,`errors[${u}]`,d,a),c=Gm(e,t,n,l,s,[f,...c],f,d)}}),c}function D1(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function M1(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function ete(e,t){return e.map(n=>(n.value&&(n.value=na(n.value,t)),n))}const Mx=new Map,O1=new Set;function tte(e){if(qe._sentryModuleMetadata)for(const t of Object.keys(qe._sentryModuleMetadata)){const n=qe._sentryModuleMetadata[t];if(O1.has(t))continue;O1.add(t);const r=e(t);for(const s of r.reverse())if(s.filename){Mx.set(s.filename,n);break}}}function nte(e,t){return tte(e),Mx.get(t)}function rte(e,t){try{t.exception.values.forEach(n=>{if(n.stacktrace)for(const r of n.stacktrace.frames||[]){if(!r.filename||r.module_metadata)continue;const s=nte(e,r.filename);s&&(r.module_metadata=s)}})}catch{}}function ste(e){try{e.exception.values.forEach(t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[])delete n.module_metadata})}catch{}}function Go(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 ote(e){const t="console";ko(t,e),To(t,ite)}function ite(){"console"in qe&&Lm.forEach(function(e){e in qe.console&&Cn(qe.console,e,function(t){return Xf[e]=t,function(...n){nr("console",{args:n,level:e});const s=Xf[e];s&&s.apply(qe.console,n)}})})}function Ox(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const ate="Dedupe",cte=()=>{let e;return{name:ate,processEvent(t){if(t.type)return t;try{if(ute(t,e))return Ye&&me.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},lte=cte;function ute(e,t){return t?!!(fte(e,t)||dte(e,t)):!1}function fte(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Rx(e,t)||!Ax(e,t))}function dte(e,t){const n=A1(t),r=A1(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Rx(e,t)||!Ax(e,t))}function Ax(e,t){let n=Nm(e),r=Nm(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:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{zm(n,(r,s)=>{if(s==="event"){const o=Array.isArray(r)?r[1]:void 0;o&&(ste(o),r[1]=o)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;rte(r,n)})},processEvent(t){const n=hte(t);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](o=>!o.some(i=>e.filterKeys.includes(i)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function hte(e){const t=Nm(e);if(t)return t.filter(n=>!!n.filename).map(n=>n.module_metadata?Object.keys(n.module_metadata).filter(r=>r.startsWith(R1)).map(r=>r.slice(R1.length)):[])}const R1="_sentryBundlerPluginAppKey:";function mte(e,t,n,r,s="auto.http.browser"){if(!e.fetchData)return;const o=Ms()&&t(e.fetchData.url);if(e.endTimestamp&&o){const d=e.fetchData.__span;if(!d)return;const p=r[d];p&&(yte(p,e),delete r[d]);return}const{method:i,url:a}=e.fetchData,c=vte(a),l=c?Go(c).host:void 0,u=!!Ut(),f=o&&u?ii({name:`${i} ${a}`,attributes:{url:a,type:"fetch","http.method":i,"http.url":c,"server.address":l,[It]:s,[oi]:"http.client"}}):new qa;if(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){const d=e.args[0],p=e.args[1]||{},h=gte(d,p,Ms()&&u?f:void 0);h&&(e.args[1]=p,p.headers=h)}return f}function gte(e,t,n){const r=Dx({span:n}),s=r["sentry-trace"],o=r.baggage;if(!s)return;const i=t.headers||(_te(e)?e.headers:void 0);if(i)if(bte(i)){const a=new Headers(i);if(a.set("sentry-trace",s),o){const c=a.get("baggage");if(c){const l=mu(c);a.set("baggage",l?`${l},${o}`:o)}else a.set("baggage",o)}return a}else if(Array.isArray(i)){const a=[...i.filter(c=>!(Array.isArray(c)&&c[0]==="sentry-trace")).map(c=>{if(Array.isArray(c)&&c[0]==="baggage"&&typeof c[1]=="string"){const[l,u,...f]=c;return[l,mu(u),...f]}else return c}),["sentry-trace",s]];return o&&a.push(["baggage",o]),a}else{const a="baggage"in i?i.baggage:void 0;let c=[];return Array.isArray(a)?c=a.map(l=>typeof l=="string"?mu(l):l).filter(l=>l===""):a&&c.push(mu(a)),o&&c.push(o),{...i,"sentry-trace":s,baggage:c.length>0?c.join(","):void 0}}else return{...r}}function vte(e){try{return new URL(e).href}catch{return}}function yte(e,t){if(t.response){ex(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Xt,message:"internal_error"});e.end()}function mu(e){return e.split(",").filter(t=>!t.split("=")[0].startsWith(iy)).join(",")}function _te(e){return typeof Request<"u"&&xs(e,Request)}function bte(e){return typeof Headers<"u"&&xs(e,Headers)}function Px(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Xm=qe;function Lx(){if(!("fetch"in Xm))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Jm(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function wte(){if(typeof EdgeRuntime=="string")return!0;if(!Lx())return!1;if(Jm(Xm.fetch))return!0;let e=!1;const t=Xm.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Jm(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Eo&&me.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Nx(e,t){const n="fetch";ko(n,e),To(n,()=>Fx(void 0,t))}function Ste(e){const t="fetch-body-resolved";ko(t,e),To(t,()=>Fx(kte))}function Fx(e,t=!1){t&&!wte()||Cn(qe,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=Tte(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:fn()*1e3,virtualError:s};return e||nr("fetch",{...a}),n.apply(qe,r).then(async c=>(e?e(c):nr("fetch",{...a,endTimestamp:fn()*1e3,response:c}),c),c=>{throw nr("fetch",{...a,endTimestamp:fn()*1e3,error:c}),Qv(c)&&c.stack===void 0&&(c.stack=s.stack,ir(c,"framesToPop",1)),c})}})}async function Ete(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function kte(e){let t;try{t=e.clone()}catch{return}Ete(t,()=>{nr("fetch-body-resolved",{endTimestamp:fn()*1e3,response:e})})}function Zm(e,t){return!!e&&typeof e=="object"&&!!e[t]}function P1(e){return typeof e=="string"?e:e?Zm(e,"url")?e.url:e.toString?e.toString():"":""}function Tte(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:P1(n),method:Zm(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:P1(t),method:Zm(t,"method")?String(t.method).toUpperCase():"GET"}}function $te(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Ite(){return"npm"}function xte(){return!$te()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function L1(){return typeof window<"u"&&(!xte()||Cte())}function Cte(){const e=qe.process;return!!e&&e.type==="renderer"}const gu=qe;function Dte(){const e=gu.chrome,t=e&&e.app&&e.app.runtime,n="history"in gu&&!!gu.history.pushState&&!!gu.history.replaceState;return!t&&n}function Mte(e,t){return e??t()}function cf(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}const Ue=qe;let Qm=0;function Hx(){return Qm>0}function Ote(){Qm++,setTimeout(()=>{Qm--})}function xa(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(ny(e))return e}catch{return e}const r=function(...s){try{const o=s.map(i=>xa(i,t));return e.apply(this,o)}catch(o){throw Ote(),sy(i=>{i.addEventProcessor(a=>(t.mechanism&&(Hm(a,void 0),Ta(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),op(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}KI(r,e),ir(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Kr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function uy(e,t){const n=fy(e,t),r={type:Nte(t),value:Fte(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Ate(e,t,n,r){const s=Ge(),o=s&&s.getOptions().normalizeDepth,i=Yte(t),a={__serialized__:mx(t,o)};if(i)return{exception:{values:[uy(e,i)]},extra:a};const c={exception:{values:[{type:ep(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Ute(t,{isUnhandledRejection:r})}]},extra:a};if(n){const l=fy(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function th(e,t){return{exception:{values:[uy(e,t)]}}}function fy(e,t){const n=t.stacktrace||t.stack||"",r=Pte(t),s=Lte(t);try{return e(n,r,s)}catch{}return[]}const Rte=/Minified React error #\d+;/i;function Pte(e){return e&&Rte.test(e.message)?1:0}function Lte(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Bx(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Nte(e){const t=e&&e.name;return!t&&Bx(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Fte(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Bx(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function Hte(e,t,n,r){const s=n&&n.syntheticException||void 0,o=dy(e,t,s,r);return Ta(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Ds(o)}function Bte(e,t,n="info",r,s){const o=r&&r.syntheticException||void 0,i=eg(e,t,o,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),Ds(i)}function dy(e,t,n,r,s){let o;if(WI(t)&&t.error)return th(e,t.error);if(e1(t)||bZ(t)){const i=t;if("stack"in t)o=th(e,t);else{const a=i.name||(e1(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=eg(e,c,n,r),Hm(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return Qv(t)?th(e,t):ka(t)||ep(t)?(o=Ate(e,t,n,s),Ta(o,{synthetic:!0}),o):(o=eg(e,t,n,r),Hm(o,`${t}`),Ta(o,{synthetic:!0}),o)}function eg(e,t,n,r){const s={};if(r&&n){const o=fy(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]}),Ta(s,{synthetic:!0})}if(ey(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function Ute(e,{isUnhandledRejection:t}){const n=xZ(e),r=t?"promise rejection":"exception";return WI(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ep(e)?`Event \`${jte(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function jte(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Yte(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function Wte(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Ol(r)}},o=Vte(e);return vi(s,[o])}function Vte(e){return[{type:"user_report"},e]}class zte extends _ee{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=Ue.SENTRY_SDK_SOURCE||Ite();Aee(n,"browser",["browser"],r),super(n),n.sendClientReports&&Ue.document&&Ue.document.addEventListener("visibilitychange",()=>{Ue.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Hte(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Bte(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Kr&&me.warn("SDK not enabled, will not capture user feedback.");return}const n=Wte(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const py=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qte=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Ka=(e,t,n,r)=>{let s,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(s||0),(o||s===void 0)&&(s=t.value,t.delta=o,t.rating=qte(t.value,n),e(t)))}},Me=qe,Kte=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Al=(e=!0)=>{const t=Me.performance&&Me.performance.getEntriesByType&&Me.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart{const e=Al();return e&&e.activationStart||0},Ga=(e,t)=>{const n=Al();let r="navigate";return n&&(Me.document&&Me.document.prerendering||Rl()>0?r="prerender":Me.document&&Me.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Kte(),navigationType:r}},yi=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Xa=e=>{const t=n=>{(n.type==="pagehide"||Me.document&&Me.document.visibilityState==="hidden")&&e(n)};Me.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ip=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Uc=-1;const Gte=()=>Me.document.visibilityState==="hidden"&&!Me.document.prerendering?0:1/0,td=e=>{Me.document.visibilityState==="hidden"&&Uc>-1&&(Uc=e.type==="visibilitychange"?e.timeStamp:0,Jte())},Xte=()=>{addEventListener("visibilitychange",td,!0),addEventListener("prerenderingchange",td,!0)},Jte=()=>{removeEventListener("visibilitychange",td,!0),removeEventListener("prerenderingchange",td,!0)},ap=()=>(Me.document&&Uc<0&&(Uc=Gte(),Xte()),{get firstHiddenTime(){return Uc}}),Pl=e=>{Me.document&&Me.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Zte=[1800,3e3],Qte=(e,t={})=>{Pl(()=>{const n=ap(),r=Ga("FCP");let s;const i=yi("paint",a=>{a.forEach(c=>{c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime{Qte(ip(()=>{const n=Ga("CLS",0);let r,s=0,o=[];const i=c=>{c.forEach(l=>{if(!l.hadRecentInput){const u=o[0],f=o[o.length-1];s&&u&&f&&l.startTime-f.startTime<1e3&&l.startTime-u.startTime<5e3?(s+=l.value,o.push(l)):(s=l.value,o=[l])}}),s>n.value&&(n.value=s,n.entries=o,r())},a=yi("layout-shift",i);a&&(r=Ka(e,n,ene,t.reportAllChanges),Xa(()=>{i(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},nne=[100,300],rne=(e,t={})=>{Pl(()=>{const n=ap(),r=Ga("FID");let s;const o=c=>{c.startTime{c.forEach(o)},a=yi("first-input",i);s=Ka(e,r,nne,t.reportAllChanges),a&&Xa(ip(()=>{i(a.takeRecords()),a.disconnect()}))})};let Ux=0,nh=1/0,vu=0;const sne=e=>{e.forEach(t=>{t.interactionId&&(nh=Math.min(nh,t.interactionId),vu=Math.max(vu,t.interactionId),Ux=vu?(vu-nh)/7+1:0)})};let tg;const one=()=>tg?Ux:performance.interactionCount||0,ine=()=>{"interactionCount"in performance||tg||(tg=yi("event",sne,{type:"event",buffered:!0,durationThreshold:0}))},is=[],rh=new Map,ane=40;let cne=0;const lne=()=>one()-cne,une=()=>{const e=Math.min(is.length-1,Math.floor(lne()/50));return is[e]},sh=10,fne=[],dne=e=>{if(fne.forEach(r=>r(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=is[is.length-1],n=rh.get(e.interactionId);if(n||is.lengtht.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};rh.set(r.id,r),is.push(r)}is.sort((r,s)=>s.latency-r.latency),is.length>sh&&is.splice(sh).forEach(r=>rh.delete(r.id))}},jx=e=>{const t=Me.requestIdleCallback||Me.setTimeout;let n=-1;return e=ip(e),Me.document&&Me.document.visibilityState==="hidden"?e():(n=t(e),Xa(e)),n},pne=[200,500],hne=(e,t={})=>{"PerformanceEventTiming"in Me&&"interactionId"in PerformanceEventTiming.prototype&&Pl(()=>{ine();const n=Ga("INP");let r;const s=i=>{jx(()=>{i.forEach(dne);const a=une();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())})},o=yi("event",s,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:ane});r=Ka(e,n,pne,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),Xa(()=>{s(o.takeRecords()),r(!0)}))})},mne=[2500,4e3],N1={},gne=(e,t={})=>{Pl(()=>{const n=ap(),r=Ga("LCP");let s;const o=a=>{t.reportAllChanges||(a=a.slice(-1)),a.forEach(c=>{c.startTime{N1[r.id]||(o(i.takeRecords()),i.disconnect(),N1[r.id]=!0,s(!0))});["keydown","click"].forEach(c=>{Me.document&&addEventListener(c,()=>jx(a),{once:!0,capture:!0})}),Xa(a)}})},vne=[800,1800],ng=e=>{Me.document&&Me.document.prerendering?Pl(()=>ng(e)):Me.document&&Me.document.readyState!=="complete"?addEventListener("load",()=>ng(e),!0):setTimeout(e,0)},yne=(e,t={})=>{const n=Ga("TTFB"),r=Ka(e,n,vne,t.reportAllChanges);ng(()=>{const s=Al();s&&(n.value=Math.max(s.responseStart-Rl(),0),n.entries=[s],r(!0))})},jc={},nd={};let Yx,Wx,Vx,zx,qx;function hy(e,t=!1){return Ll("cls",e,bne,Yx,t)}function Kx(e,t=!1){return Ll("lcp",e,Sne,Vx,t)}function Gx(e){return Ll("fid",e,wne,Wx)}function _ne(e){return Ll("ttfb",e,Ene,zx)}function Xx(e){return Ll("inp",e,kne,qx)}function Ca(e,t){return Jx(e,t),nd[e]||(Tne(e),nd[e]=!0),Zx(e,t)}function Ja(e,t){const n=jc[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(s){py&&me.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${Is(r)} Error:`,s)}}function bne(){return tne(e=>{Ja("cls",{metric:e}),Yx=e},{reportAllChanges:!0})}function wne(){return rne(e=>{Ja("fid",{metric:e}),Wx=e})}function Sne(){return gne(e=>{Ja("lcp",{metric:e}),Vx=e},{reportAllChanges:!0})}function Ene(){return yne(e=>{Ja("ttfb",{metric:e}),zx=e})}function kne(){return hne(e=>{Ja("inp",{metric:e}),qx=e})}function Ll(e,t,n,r,s=!1){Jx(e,t);let o;return nd[e]||(o=n(),nd[e]=!0),r&&t({metric:r}),Zx(e,t,s?o:void 0)}function Tne(e){const t={};e==="event"&&(t.durationThreshold=0),yi(e,n=>{Ja(e,{entries:n})},t)}function Jx(e,t){jc[e]=jc[e]||[],jc[e].push(t)}function Zx(e,t,n){return()=>{n&&n();const r=jc[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function $ne(e){return"duration"in e}function oh(e){return typeof e=="number"&&isFinite(e)}function Os(e,t,n,{...r}){const s=Ze(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),yx(e,()=>{const o=ii({startTime:t,...r});return o&&o.end(n),o})}function Qx(e){const t=Ge();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:o}=e,{release:i,environment:a}=t.getOptions(),c=t.getIntegrationByName("Replay"),l=c&&c.getReplayId(),u=pt(),f=u.getUser(),d=f!==void 0?f.email||f.id||f.ip_address:void 0;let p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}const h={release:i,environment:a,user:d||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":Me.navigator&&Me.navigator.userAgent,...s};return ii({name:n,attributes:h,startTime:o,experimental:{standalone:!0}})}function my(){return Me&&Me.addEventListener&&Me.performance}function Nt(e){return e/1e3}function eC(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 Ine(){let e=0,t,n;if(!Cne())return;let r=!1;function s(){r||(r=!0,n&&xne(e,t,n),o())}const o=hy(({metric:i})=>{const a=i.entries[i.entries.length-1];a&&(e=i.value,t=a)},!0);Xa(()=>{s()}),setTimeout(()=>{const i=Ge();if(!i)return;const a=i.on("startNavigationSpan",()=>{s(),a&&a()}),c=Ut(),l=c&&Jt(c),u=l&&Ze(l);u&&u.op==="pageload"&&(n=l.spanContext().spanId)},0)}function xne(e,t,n){py&&me.log(`Sending CLS span (${e})`);const r=Nt((En||0)+(t&&t.startTime||0)),s=pt().getScopeData().transactionName,o=t?Cs(t.sources[0]&&t.sources[0].node):"Layout shift",i=zt({[It]:"auto.http.browser.cls",[oi]:"ui.webvital.cls",[oy]:t&&t.duration||0,"sentry.pageload.span_id":n}),a=Qx({name:o,transaction:s,attributes:i,startTime:r});a&&(a.addEvent("cls",{[rp]:"",[sp]:e}),a.end(r))}function Cne(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const Dne=2147483647;let F1=0,rn={},Tn,Yc;function Mne({recordClsStandaloneSpans:e}){const t=my();if(t&&En){t.mark&&Me.performance.mark("sentry-tracing-init");const n=Nne(),r=Lne(),s=Fne(),o=e?Ine():Pne();return()=>{n(),r(),s(),o&&o()}}return()=>{}}function One(){Ca("longtask",({entries:e})=>{const t=Ut();if(!t)return;const{op:n,start_timestamp:r}=Ze(t);for(const s of e){const o=Nt(En+s.startTime),i=Nt(s.duration);n==="navigation"&&r&&o{const n=Ut();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=Nt(En+r.startTime),{start_timestamp:o,op:i}=Ze(n);if(i==="navigation"&&o&&s{const t=Ut();if(t){for(const n of e)if(n.name==="click"){const r=Nt(En+n.startTime),s=Nt(n.duration),o={name:Cs(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[It]:"auto.ui.browser.metrics"}},i=qI(n.target);i&&(o.attributes["ui.component_name"]=i),Os(t,r,r+s,o)}}})}function Pne(){return hy(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(rn.cls={value:e.value,unit:""},Yc=t)},!0)}function Lne(){return Kx(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(rn.lcp={value:e.value,unit:"millisecond"},Tn=t)},!0)}function Nne(){return Gx(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Nt(En),r=Nt(t.startTime);rn.fid={value:e.value,unit:"millisecond"},rn["mark.fid"]={value:n+r,unit:"second"}})}function Fne(){return _ne(({metric:e})=>{e.entries[e.entries.length-1]&&(rn.ttfb={value:e.value,unit:"millisecond"})})}function Hne(e,t){const n=my();if(!n||!n.getEntries||!En)return;const r=Nt(En),s=n.getEntries(),{op:o,start_timestamp:i}=Ze(e);if(s.slice(F1).forEach(a=>{const c=Nt(a.startTime),l=Nt(Math.max(0,a.duration));if(!(o==="navigation"&&i&&r+c{OQ(c,l.value,l.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",Rl()),zne(e)}Tn=void 0,Yc=void 0,rn={}}function Bne(e,t,n,r,s){const o=Al(!1),i=Nt(o?o.requestStart:0),a=s+Math.max(n,i),c=s+n,l=c+r,u={[It]:"auto.resource.browser.metrics"};return a!==c&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=a),Os(e,a,l,{name:t.name,op:t.entryType,attributes:u}),a}function Une(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{yu(e,t,r,n)}),yu(e,t,"secureConnection",n,"TLS/SSL"),yu(e,t,"fetch",n,"cache"),yu(e,t,"domainLookup",n,"DNS"),Yne(e,t,n)}function yu(e,t,n,r,s=n){const o=jne(n),i=t[o],a=t[`${n}Start`];!a||!i||Os(e,r+Nt(a),r+Nt(i),{op:`browser.${s}`,name:t.name,attributes:{[It]:"auto.ui.browser.metrics"}})}function jne(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Yne(e,t,n){const r=n+Nt(t.requestStart),s=n+Nt(t.responseEnd),o=n+Nt(t.responseStart);t.responseEnd&&(Os(e,r,s,{op:"browser.request",name:t.name,attributes:{[It]:"auto.ui.browser.metrics"}}),Os(e,o,s,{op:"browser.response",name:t.name,attributes:{[It]:"auto.ui.browser.metrics"}}))}function Wne(e,t,n,r,s,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const i=Go(n),a={[It]:"auto.resource.browser.metrics"};ih(a,t,"transferSize","http.response_transfer_size"),ih(a,t,"encodedBodySize","http.response_content_length"),ih(a,t,"decodedBodySize","http.decoded_response_content_length");const c=t.deliveryType;c!=null&&(a["http.response_delivery_type"]=c);const l=t.renderBlockingStatus;l&&(a["resource.render_blocking_status"]=l),i.protocol&&(a["url.scheme"]=i.protocol.split(":").pop()),i.host&&(a["server.address"]=i.host),a["url.same_origin"]=n.includes(Me.location.origin);const{name:u,version:f}=eC(t.nextHopProtocol);a["network.protocol.name"]=u,a["network.protocol.version"]=f;const d=o+r,p=d+s;Os(e,d,p,{name:n.replace(Me.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})}function Vne(e){const t=Me.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),oh(n.rtt)&&(rn["connection.rtt"]={value:n.rtt,unit:"millisecond"})),oh(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),oh(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function zne(e){Tn&&(Tn.element&&e.setAttribute("lcp.element",Cs(Tn.element)),Tn.id&&e.setAttribute("lcp.id",Tn.id),Tn.url&&e.setAttribute("lcp.url",Tn.url.trim().slice(0,200)),Tn.loadTime!=null&&e.setAttribute("lcp.loadTime",Tn.loadTime),Tn.renderTime!=null&&e.setAttribute("lcp.renderTime",Tn.renderTime),e.setAttribute("lcp.size",Tn.size)),Yc&&Yc.sources&&Yc.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,Cs(t.node)))}function ih(e,t,n,r){const s=t[n];s!=null&&s{const s=Me[n],o=s&&s.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(Cn(o,"addEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=u[a]=u[a]||{refCount:0};if(!f.handler){const d=B1(e);f.handler=d,i.call(this,a,d,l)}f.refCount++}catch{}return i.call(this,a,c,l)}}),Cn(o,"removeEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},f=u[a];f&&(f.refCount--,f.refCount<=0&&(i.call(this,a,f.handler,l),f.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,l)}}))})}function Xne(e){if(e.type!==rg)return!1;try{if(!e.target||e.target._sentryId!==sg)return!1}catch{}return!0}function Jne(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function B1(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Zne(n);if(Jne(n.type,r))return;ir(n,"_sentryCaptured",!0),r&&!r._sentryId&&ir(r,"_sentryId",jn());const s=n.type==="keypress"?"input":n.type;Xne(n)||(e({event:n,name:s,global:t}),rg=n.type,sg=r?r._sentryId:void 0),clearTimeout(H1),H1=Me.setTimeout(()=>{sg=void 0,rg=void 0},Kne)}}function Zne(e){try{return e.target}catch{return null}}let _u;function cp(e){const t="history";ko(t,e),To(t,Qne)}function Qne(){if(!Dte())return;const e=Me.onpopstate;Me.onpopstate=function(...n){const r=Me.location.href,s=_u;if(_u=r,nr("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=_u,i=String(s);_u=i,nr("history",{from:o,to:i})}return n.apply(this,r)}}Cn(Me.history,"pushState",t),Cn(Me.history,"replaceState",t)}const lf={};function nC(e){const t=lf[e];if(t)return t;let n=Me[e];if(Jm(n))return lf[e]=n.bind(Me);const r=Me.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){py&&me.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(lf[e]=n.bind(Me))}function U1(e){lf[e]=void 0}function Da(...e){return nC("setTimeout")(...e)}const Uo="__sentry_xhr_v3__";function rC(e){const t="xhr";ko(t,e),To(t,ere)}function ere(){if(!Me.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=fn()*1e3,i=vs(r[0])?r[0].toUpperCase():void 0,a=tre(r[1]);if(!i||!a)return t.apply(n,r);n[Uo]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const l=n[Uo];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const u={endTimestamp:fn()*1e3,startTimestamp:o,xhr:n,virtualError:s};nr("xhr",u)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,u,f){return c(),l.apply(u,f)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,u,f){const[d,p]=f,h=u[Uo];return h&&vs(d)&&vs(p)&&(h.request_headers[d.toLowerCase()]=p),l.apply(u,f)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[Uo];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:fn()*1e3,xhr:n};return nr("xhr",o),t.apply(n,r)}})}function tre(e){if(vs(e))return e;try{return e.toString()}catch{}}const ah=[],uf=new Map;function nre(){if(my()&&En){const t=rre();return()=>{t()}}return()=>{}}const j1={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 rre(){return Xx(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(h=>h.duration===e.value&&j1[h.name]);if(!t)return;const{interactionId:n}=t,r=j1[t.name],s=Nt(En+t.startTime),o=Nt(e.value),i=Ut(),a=i?Jt(i):void 0,l=(n!=null?uf.get(n):void 0)||a,u=l?Ze(l).description:pt().getScopeData().transactionName,f=Cs(t.target),d=zt({[It]:"auto.http.browser.inp",[oi]:`ui.interaction.${r}`,[oy]:t.duration}),p=Qx({name:f,transaction:u,attributes:d,startTime:s});p&&(p.addEvent("inp",{[rp]:"millisecond",[sp]:e.value}),p.end(s+o))})}function sre(e){const t=({entries:n})=>{const r=Ut(),s=r&&Jt(r);n.forEach(o=>{if(!$ne(o)||!s)return;const i=o.interactionId;if(i!=null&&!uf.has(i)){if(ah.length>10){const a=ah.shift();uf.delete(a)}ah.push(i),uf.set(i,s)}})};Ca("event",t),Ca("first-input",t)}function ore(e,t=nC("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return U1("fetch"),Jf("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return U1("fetch"),n-=i,r--,Jf(c)}}return Cee(e,s)}const ire=30,are=50;function og(e,t,n,r){const s={filename:e,function:t===""?si:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const cre=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,lre=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ure=/\((\S*)(?::(\d+))(?::(\d+))\)/,fre=e=>{const t=cre.exec(e);if(t){const[,r,s,o]=t;return og(r,si,+s,+o)}const n=lre.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=ure.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=sC(n[1]||si,n[2]);return og(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},dre=[ire,fre],pre=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,hre=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,mre=e=>{const t=pre.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=hre.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||si;return[s,r]=sC(s,r),og(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},gre=[are,mre],vre=[dre,gre],yre=BI(...vre),sC=(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]:si,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},bu=1024,_re="Breadcrumbs",bre=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:_re,setup(n){t.console&&ote(kre(n)),t.dom&&tC(Ere(n,t.dom)),t.xhr&&rC(Tre(n)),t.fetch&&Nx($re(n)),t.history&&cp(Ire(n)),t.sentry&&n.on("beforeSendEvent",Sre(n))}}},wre=bre;function Sre(e){return function(n){Ge()===e&&mo({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Xs(n)},{event:n})}}function Ere(e,t){return function(r){if(Ge()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>bu&&(Kr&&me.warn(`\`dom.maxStringLength\` cannot exceed ${bu}, but a value of ${a} was configured. Sentry will use ${bu} instead.`),a=bu),typeof i=="string"&&(i=[i]);try{const l=r.event,u=xre(l)?l.target:l;s=Cs(u,{keyAttrs:i,maxStringLength:a}),o=qI(u)}catch{s=""}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),mo(c,{event:r.event,name:r.name,global:r.global})}}function kre(e){return function(n){if(Ge()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Ox(n.level),message:t1(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${t1(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;mo(r,{input:n.args,level:n.level})}}function Tre(e){return function(n){if(Ge()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[Uo];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:l}=o,u={method:i,url:a,status_code:c},f={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:s},d=Px(c);mo({category:"xhr",data:u,type:"http",level:d},f)}}function $re(e){return function(n){if(Ge()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};mo({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=n.response,i={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c=Px(i.status_code);mo({category:"fetch",data:i,type:"http",level:c},a)}}}function Ire(e){return function(n){if(Ge()!==e)return;let r=n.from,s=n.to;const o=Go(Ue.location.href);let i=r?Go(r):void 0;const a=Go(s);(!i||!i.path)&&(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),mo({category:"navigation",data:{from:r,to:s}})}}function xre(e){return!!e&&!!e.target}const Cre=["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"],Dre="BrowserApiErrors",Mre=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Dre,setupOnce(){t.setTimeout&&Cn(Ue,"setTimeout",Y1),t.setInterval&&Cn(Ue,"setInterval",Y1),t.requestAnimationFrame&&Cn(Ue,"requestAnimationFrame",Are),t.XMLHttpRequest&&"XMLHttpRequest"in Ue&&Cn(XMLHttpRequest.prototype,"send",Rre);const n=t.eventTarget;n&&(Array.isArray(n)?n:Cre).forEach(Pre)}}},Ore=Mre;function Y1(e){return function(...t){const n=t[0];return t[0]=xa(n,{mechanism:{data:{function:Is(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Are(e){return function(t){return e.apply(this,[xa(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Is(e)},handled:!1,type:"instrument"}})])}}function Rre(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&Cn(n,s,function(o){const i={mechanism:{data:{function:s,handler:Is(o)},handled:!1,type:"instrument"}},a=ny(o);return a&&(i.mechanism.data.handler=Is(a)),xa(o,i)})}),e.apply(this,t)}}function Pre(e){const n=Ue[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Cn(r,"addEventListener",function(s){return function(o,i,a){try{Lre(i)&&(i.handleEvent=xa(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Is(i),target:e},handled:!1,type:"instrument"}}))}catch{}return s.apply(this,[o,xa(i,{mechanism:{data:{function:"addEventListener",handler:Is(i),target:e},handled:!1,type:"instrument"}}),a])}}),Cn(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function Lre(e){return typeof e.handleEvent=="function"}const Nre=()=>({name:"BrowserSession",setupOnce(){if(typeof Ue.document>"u"){Kr&&me.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}w1({ignoreDuration:!0}),S1(),cp(({from:e,to:t})=>{e!==void 0&&e!==t&&(w1({ignoreDuration:!0}),S1())})}}),Fre="GlobalHandlers",Hre=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Fre,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Ure(n),W1("onerror")),t.onunhandledrejection&&(jre(n),W1("onunhandledrejection"))}}},Bre=Hre;function Ure(e){UI(t=>{const{stackParser:n,attachStacktrace:r}=oC();if(Ge()!==e||Hx())return;const{msg:s,url:o,line:i,column:a,error:c}=t,l=Vre(dy(n,c||s,void 0,r,!1),o,i,a);l.level="error",Sx(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function jre(e){jI(t=>{const{stackParser:n,attachStacktrace:r}=oC();if(Ge()!==e||Hx())return;const s=Yre(t),o=ty(s)?Wre(s):dy(n,s,void 0,r,!0);o.level="error",Sx(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Yre(e){if(ty(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 Wre(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Vre(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],l=r,u=n,f=vs(t)&&t.length>0?t:zI();return c.length===0&&c.push({colno:l,filename:f,function:si,in_app:!0,lineno:u}),e}function W1(e){Kr&&me.log(`Global Handler attached: ${e}`)}function oC(){const e=Ge();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const zre=()=>({name:"HttpContext",preprocessEvent(e){if(!Ue.navigator&&!Ue.location&&!Ue.document)return;const t=e.request&&e.request.url||Ue.location&&Ue.location.href,{referrer:n}=Ue.document||{},{userAgent:r}=Ue.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}}),qre="cause",Kre=5,Gre="LinkedErrors",Xre=(e={})=>{const t=e.limit||Kre,n=e.key||qre;return{name:Gre,preprocessEvent(r,s,o){const i=o.getOptions();Qee(uy,i.stackParser,i.maxValueLength,n,t,r,s)}}},Jre=Xre;function iC(e){const t=[jee(),Fee(),Ore(),wre(),Bre(),Jre(),lte(),zre()];return e.autoSessionTracking!==!1&&t.push(Nre()),t}function Zre(e={}){const t={defaultIntegrations:iC(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Ue.SENTRY_RELEASE&&Ue.SENTRY_RELEASE.id?Ue.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function Qre(){const e=typeof Ue.window<"u"&&Ue;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,s=Ue.location&&Ue.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&Ue===Ue.top&&o.some(c=>s.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!i&&!a}function ese(e={}){const t=Zre(e);if(!t.skipBrowserExtensionCheck&&Qre()){Cr(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Kr&&(Lx()||me.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:gZ(t.stackParser||yre),integrations:gee(t),transport:t.transport||ore};return See(zte,n)}const vt=qe,gy="sentryReplaySession",tse="replay_event",vy="Unable to send Replay",nse=3e5,rse=9e5,sse=5e3,ose=5500,ise=6e4,ase=5e3,cse=3,V1=15e4,wu=5e3,lse=3e3,use=300,yy=2e7,fse=4999,dse=15e3,z1=36e5;function ig(e,t){return e??t()}function hl(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}var Yt;(function(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"})(Yt||(Yt={}));function pse(e){return e.nodeType===e.ELEMENT_NODE}function Wc(e){const t=hl([e,"optionalAccess",n=>n.host]);return hl([t,"optionalAccess",n=>n.shadowRoot])===e}function Vc(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function hse(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 mse(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 rd(e){try{const t=e.rules||e.cssRules;return t?hse(Array.from(t,aC).join("")):null}catch{return null}}function gse(e){let t="";for(let n=0;nr.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return ig(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.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 bse(){return new cC}function lp({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 ml({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function Ma(e){return e.toLowerCase()}function ag(e){return e.toUpperCase()}const q1="__rrweb_original__";function wse(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;rc!==0))return!1}return!0}function _y(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ma(t):null}function sd(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function lC(e,t){let n;try{n=new URL(e,ig(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(r);return ig(hl([s,"optionalAccess",o=>o[1]]),()=>null)}const K1={};function uC(e){const t=K1[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 o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return K1[e]=r.bind(window)}function cg(...e){return uC("setTimeout")(...e)}function fC(...e){return uC("clearTimeout")(...e)}function dC(e){try{return e.contentDocument}catch{}}let Sse=1;const Ese=new RegExp("[^a-z0-9-_:]"),gl=-2;function by(){return Sse++}function kse(e){if(e instanceof HTMLFormElement)return"form";const t=Ma(e.tagName);return Ese.test(t)?"div":t}function Tse(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Ii,G1;const $se=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ise=/^(?:[a-z+]+:)?\/\//i,xse=/^www\..*/i,Cse=/^(data:)([^,]*),(.*)/i;function od(e,t){return(e||"").replace($se,(n,r,s,o,i,a)=>{const c=s||i||a,l=r||o||"";if(!c)return n;if(Ise.test(c)||xse.test(c))return`url(${l}${c}${l})`;if(Cse.test(c))return`url(${l}${c}${l})`;if(c[0]==="/")return`url(${l}${Tse(t)+c}${l})`;const u=t.split("/"),f=c.split("/");u.pop();for(const d of f)d!=="."&&(d===".."?u.pop():u.push(d));return`url(${l}${u.join("/")}${l})`})}const Dse=/^[^ \t\n\r\u000c]+/,Mse=/^[, \t\n\r\u000c]+/;function Ose(e,t){if(t.trim()==="")return t;let n=0;function r(o){let i;const a=o.exec(t.substring(n));return a?(i=a[0],n+=i.length,i):""}const s=[];for(;r(Mse),!(n>=t.length);){let o=r(Dse);if(o.slice(-1)===",")o=Hi(e,o.substring(0,o.length-1)),s.push(o);else{let i="";o=Hi(e,o);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((o+i).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((o+i).trim());break}else c==="("&&(a=!0);i+=c,n+=1}}}return s.join(", ")}const X1=new WeakMap;function Hi(e,t){return!t||t.trim()===""?t:up(e,t)}function Ase(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function up(e,t){let n=X1.get(e);if(n||(n=e.createElement("a"),X1.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function pC(e,t,n,r,s,o){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?Hi(e,r):n==="srcset"?Ose(e,r):n==="style"?od(r,up(e)):t==="object"&&n==="data"?Hi(e,r):typeof o=="function"?o(n,r,s):r)}function hC(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Rse(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 o=e.classList[s];if(t.test(o))return!0}if(n)return e.matches(n)}catch{}return!1}function Pse(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function jo(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:jo(e.parentNode,t,n,r+1)}function Bi(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(Pse(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Oa(e,t,n,r,s,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){const l=i.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(o){if(c=jo(i,Bi(r,s)),c<0)return!0;a=jo(i,Bi(t,n),c>=0?c:1/0)}else{if(a=jo(i,Bi(t,n)),a<0)return!1;c=jo(i,Bi(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!o}catch{}return!!o}function Lse(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const a=cg(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{fC(a),s=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return cg(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Nse(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const o=cg(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{fC(o),r=!0,t()})}function Fse(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:v,dataURLOptions:g={},inlineImages:b,recordCanvas:y,keepIframeSrcFn:_,newlyAddedElement:w=!1}=t,S=Hse(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Yt.Document,childNodes:[],compatMode:e.compatMode}:{type:Yt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Yt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return Use(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:v,dataURLOptions:g,inlineImages:b,recordCanvas:y,keepIframeSrcFn:_,newlyAddedElement:w,rootId:S,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d});case e.TEXT_NODE:return Bse(e,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:h,maskInputFn:v,rootId:S});case e.CDATA_SECTION_NODE:return{type:Yt.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:Yt.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function Hse(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function Bse(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,f=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const p=f==="STYLE"?!0:void 0,h=f==="SCRIPT"?!0:void 0,m=f==="TEXTAREA"?!0:void 0;if(p&&d){try{e.nextSibling||e.previousSibling||hl([e,"access",g=>g.parentNode,"access",g=>g.sheet,"optionalAccess",g=>g.cssRules])&&(d=rd(e.parentNode.sheet))}catch(g){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${g}`,e)}d=od(d,up(t.doc))}h&&(d="SCRIPT_PLACEHOLDER");const v=Oa(e,r,o,s,i,n);if(!p&&!h&&!m&&d&&v&&(d=a?a(d,e.parentElement):d.replace(/[\S]/g,"*")),m&&d&&(c.textarea||v)&&(d=l?l(d,e.parentNode):d.replace(/[\S]/g,"*")),f==="OPTION"&&d){const g=lp({type:null,tagName:f,maskInputOptions:c});d=ml({isMasked:Oa(e,r,o,s,i,g),element:e,value:d,maskInputFn:l})}return{type:Yt.Text,textContent:d||"",isStyle:p,rootId:u}}function Use(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskTextClass:v,unmaskTextClass:g,maskTextSelector:b,unmaskTextSelector:y}=t,_=Rse(e,r,s,o),w=kse(e);let S={};const E=e.attributes.length;for(let T=0;TL.href===e.href);let x=null;T&&(x=rd(T)),x&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=od(x,T.href))}if(w==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const T=rd(e.sheet);T&&(S._cssText=od(T,up(n)))}if(w==="input"||w==="textarea"||w==="select"||w==="option"){const T=e,x=_y(T),L=sd(T,ag(w),x),M=T.checked;if(x!=="submit"&&x!=="button"&&L){const j=Oa(T,v,b,g,y,lp({type:x,tagName:ag(w),maskInputOptions:a}));S.value=ml({isMasked:j,element:T,value:L,maskInputFn:l})}M&&(S.checked=M)}if(w==="option"&&(e.selected&&!a.select?S.selected=!0:delete S.selected),w==="canvas"&&d){if(e.__context==="2d")wse(e)||(S.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const T=e.toDataURL(u.type,u.quality),x=n.createElement("canvas");x.width=e.width,x.height=e.height;const L=x.toDataURL(u.type,u.quality);T!==L&&(S.rr_dataURL=T)}}if(w==="img"&&f){Ii||(Ii=n.createElement("canvas"),G1=Ii.getContext("2d"));const T=e,x=T.currentSrc||T.getAttribute("src")||"",L=T.crossOrigin,M=()=>{T.removeEventListener("load",M);try{Ii.width=T.naturalWidth,Ii.height=T.naturalHeight,G1.drawImage(T,0,0),S.rr_dataURL=Ii.toDataURL(u.type,u.quality)}catch(j){if(T.crossOrigin!=="anonymous"){T.crossOrigin="anonymous",T.complete&&T.naturalWidth!==0?M():T.addEventListener("load",M);return}else console.warn(`Cannot inline img src=${x}! Error: ${j}`)}T.crossOrigin==="anonymous"&&(L?S.crossOrigin=L:T.removeAttribute("crossorigin"))};T.complete&&T.naturalWidth!==0?M():T.addEventListener("load",M)}if((w==="audio"||w==="video")&&(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),_){const{width:T,height:x}=e.getBoundingClientRect();S={class:S.class,rr_width:`${T}px`,rr_height:`${x}px`}}w==="iframe"&&!p(S.src)&&(!_&&!dC(e)&&(S.rr_src=S.src),delete S.src);let $;try{customElements.get(w)&&($=!0)}catch{}return{type:Yt.Element,tagName:w,attributes:S,childNodes:[],isSVG:Ase(e)||void 0,needBlock:_,rootId:m,isCustom:$}}function mt(e){return e==null?"":e.toLowerCase()}function jse(e,t){if(t.comment&&e.type===Yt.Comment)return!0;if(e.type===Yt.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"&&lC(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(mt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||mt(e.attributes.name)==="application-name"||mt(e.attributes.rel)==="icon"||mt(e.attributes.rel)==="apple-touch-icon"||mt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&mt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(mt(e.attributes.property).match(/^(og|twitter|fb):/)||mt(e.attributes.name).match(/^(og|twitter):/)||mt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(mt(e.attributes.name)==="robots"||mt(e.attributes.name)==="googlebot"||mt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(mt(e.attributes.name)==="author"||mt(e.attributes.name)==="generator"||mt(e.attributes.name)==="framework"||mt(e.attributes.name)==="publisher"||mt(e.attributes.name)==="progid"||mt(e.attributes.property).match(/^article:/)||mt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(mt(e.attributes.name)==="google-site-verification"||mt(e.attributes.name)==="yandex-verification"||mt(e.attributes.name)==="csrf-token"||mt(e.attributes.name)==="p:domain_verify"||mt(e.attributes.name)==="verify-v1"||mt(e.attributes.name)==="verification"||mt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ui(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:b,dataURLOptions:y={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:$=5e3,onStylesheetLoad:T,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:L=()=>!1,newlyAddedElement:M=!1}=t;let{preserveWhiteSpace:j=!0}=t;const q=Fse(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,dataURLOptions:y,inlineImages:_,recordCanvas:w,keepIframeSrcFn:L,newlyAddedElement:M});if(!q)return console.warn(e,"not serialized"),null;let F;r.hasNode(e)?F=r.getId(e):jse(q,b)||!j&&q.type===Yt.Text&&!q.isStyle&&!q.textContent.replace(/^\s+|\s+$/gm,"").length?F=gl:F=by();const R=Object.assign(q,{id:F});if(r.add(e,R),F===gl)return null;S&&S(e);let V=!d;if(R.type===Yt.Element){V=V&&!R.needBlock,delete R.needBlock;const U=e.shadowRoot;U&&Vc(U)&&(R.isShadowHost=!0)}if((R.type===Yt.Document||R.type===Yt.Element)&&V){b.headWhitespace&&R.type===Yt.Element&&R.tagName==="head"&&(j=!1);const U={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:b,dataURLOptions:y,inlineImages:_,recordCanvas:w,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:$,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:L};for(const re of Array.from(e.childNodes)){const G=Ui(re,U);G&&R.childNodes.push(G)}if(pse(e)&&e.shadowRoot)for(const re of Array.from(e.shadowRoot.childNodes)){const G=Ui(re,U);G&&(Vc(e.shadowRoot)&&(G.isShadow=!0),R.childNodes.push(G))}}return e.parentNode&&Wc(e.parentNode)&&Vc(e.parentNode)&&(R.isShadow=!0),R.type===Yt.Element&&R.tagName==="iframe"&&Lse(e,()=>{const U=dC(e);if(U&&E){const re=Ui(U,{doc:U,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:b,dataURLOptions:y,inlineImages:_,recordCanvas:w,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:$,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:L});re&&E(e,re)}},$),R.type===Yt.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&lC(R.attributes.href)==="css")&&Nse(e,()=>{if(T){const U=Ui(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:b,dataURLOptions:y,inlineImages:_,recordCanvas:w,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:$,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:L});U&&T(e,U)}},x),R}function Yse(e,t){const{mirror:n=new cC,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOM:b=!1,dataURLOptions:y,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:$,stylesheetLoadTimeout:T,keepIframeSrcFn:x=()=>!1}=t||{};return Ui(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:h===!1?{}:h,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:b==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:b===!1?{}:b,dataURLOptions:y,inlineImages:d,recordCanvas:p,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:$,stylesheetLoadTimeout:T,keepIframeSrcFn:x,newlyAddedElement:!1})}function Js(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}function Sn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Ri=`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 J1={map:{},getId(){return console.error(Ri),-1},getNode(){return console.error(Ri),null},removeNodeFromMap(){console.error(Ri)},has(){return console.error(Ri),!1},reset(){console.error(Ri)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(J1=new Proxy(J1,{get(e,t,n){return t==="map"&&console.error(Ri),Reflect.get(e,t,n)}}));function vl(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();!s&&n.leading===!1&&(s=i);const a=t-(i-s),c=this;a<=0||a>t?(r&&(Xse(r),r=null),s=i,e.apply(c,o)):!r&&n.trailing!==!1&&(r=fp(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,o)},a))}}function mC(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(i){fp(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>mC(e,t,o||{},!0)}function wy(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 id=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(id=()=>new Date().getTime());function gC(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Js([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Js([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Js([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Js([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Js([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Js([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function vC(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function yC(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function _C(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Fn(e,t,n,r,s){if(!e)return!1;const o=_C(e);if(!o)return!1;const i=Bi(t,n);if(!s){const l=r&&o.matches(r);return i(o)&&!l}const a=jo(o,i);let c=-1;return a<0?!1:(r&&(c=jo(o,Bi(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 wC(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function SC(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function ug(e){return!!Js([e,"optionalAccess",t=>t.shadowRoot])}class zse{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return Mte(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 EC(e){let t=null;return Js([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function qse(e){let t=e,n;for(;n=EC(t);)t=n;return t}function Kse(e){const t=e.ownerDocument;if(!t)return!1;const n=qse(e);return t.contains(n)}function kC(e){const t=e.ownerDocument;return t?t.contains(e)||Kse(e):!1}const Z1={};function Sy(e){const t=Z1[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 o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return Z1[e]=r.bind(window)}function Gse(...e){return Sy("requestAnimationFrame")(...e)}function fp(...e){return Sy("setTimeout")(...e)}function Xse(...e){return Sy("clearTimeout")(...e)}var Ve=(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))(Ve||{}),He=(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))(He||{}),vn=(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))(vn||{}),ns=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ns||{}),Q1;(function(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"})(Q1||(Q1={}));var eS;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(eS||(eS={}));function Ey(e){try{return e.contentDocument}catch{}}function Jse(e){try{return e.contentWindow}catch{}}function Zse(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}function tS(e){return"__ln"in e}class Qse{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;rs.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&tS(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&tS(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const nS=(e,t)=>`${e}@${t}`;class eoe{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 Qse,s=c=>{let l=c,u=gl;for(;u===gl;)l=l&&l.nextSibling,u=l&&this.mirror.getId(l);return u},o=c=>{if(!c.parentNode||!kC(c))return;const l=Wc(c.parentNode)?this.mirror.getId(EC(c)):this.mirror.getId(c.parentNode),u=s(c);if(l===-1||u===-1)return r.addNode(c);const f=Ui(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:d=>{wC(d,this.mirror)&&!Fn(d,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(d),SC(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),ug(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(d,p)=>{Fn(d,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(d,p),d.contentWindow&&this.canvasManager.addWindow(d.contentWindow),this.shadowDomManager.observeAttachShadow(d))},onStylesheetLoad:(d,p)=>{this.stylesheetManager.attachLinkElement(d,p)}});f&&(t.push({parentId:l,nextId:u,node:f}),n.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)rS(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of this.addedSet)!sS(this.droppedSet,c)&&!rS(this.removes,c,this.mirror)||sS(this.movedSet,c)?o(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const l=this.mirror.getId(i.value.parentNode),u=s(i.value);l!==-1&&u!==-1&&(c=i)}if(!c){let l=r.tail;for(;l;){const u=l;if(l=l.previous,u){const f=this.mirror.getId(u.value.parentNode);if(s(u.value)===-1)continue;if(f!==-1){c=u;break}else{const p=u.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=p.parentNode.host;if(this.mirror.getId(h)!==-1){c=u;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),o(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 u=JSON.stringify(c.styleDiff),f=JSON.stringify(c._unchangedStyles);u.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(!ch(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Fn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Oa(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,_C(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 i=_y(n),a=n.tagName;s=sd(n,a,i);const c=lp({maskInputOptions:this.maskInputOptions,tagName:a,type:i}),l=Oa(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=ml({isMasked:l,element:n,value:s,maskInputFn:this.maskInputFn})}if(Fn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let o=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!Ey(n))r="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!hC(n.tagName,r)&&(o.attributes[r]=pC(this.doc,Ma(n.tagName),Ma(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),l=n.style.getPropertyPriority(a);c!==i.style.getPropertyValue(a)||l!==i.style.getPropertyPriority(a)?l===""?o.styleDiff[a]=c:o.styleDiff[a]=[c,l]:o._unchangedStyles[a]=[c,l]}for(const a of Array.from(i.style))n.style.getPropertyValue(a)===""&&(o.styleDiff[a]=!1)}break}case"childList":{if(Fn(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=Wc(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Fn(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ch(n,this.mirror)||!Wse(n,this.mirror)||(this.addedSet.has(n)?(fg(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||bC(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[nS(r,s)]?fg(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:Wc(t.target)&&Vc(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(ch(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[nS(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Fn(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),ug(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"].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 fg(e,t){e.delete(t),t.childNodes.forEach(n=>fg(e,n))}function rS(e,t,n){return e.length===0?!1:toe(e,t,n)}function toe(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(o=>o.id===s))return!0;r=r.parentNode}return!1}function sS(e,t){return e.size===0?!1:TC(e,t)}function TC(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:TC(e,n):!1}let zc;function noe(e){zc=e}function roe(){zc=void 0}const Xe=e=>zc?(...n)=>{try{return e(...n)}catch(r){if(zc&&zc(r)===!0)return()=>{};throw r}}:e;function mr(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}const ji=[];function Nl(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 $C(e,t){const n=new eoe;ji.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=mr([window,"optionalAccess",i=>i.Zone,"optionalAccess",i=>i.__symbol__,"optionalCall",i=>i("MutationObserver")]);s&&window[s]&&(r=window[s]);const o=new r(Xe(i=>{e.onMutation&&e.onMutation(i)===!1||n.processMutations.bind(n)(i)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function soe({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],a;const c=vl(Xe(f=>{const d=Date.now()-a;e(i.map(p=>(p.timeOffset-=d,p)),f),i=[],a=null}),o),l=Xe(vl(Xe(f=>{const d=Nl(f),{clientX:p,clientY:h}=lg(f)?f.changedTouches[0]:f;a||(a=id()),i.push({x:p,y:h,id:r.getId(d),timeOffset:id()-a}),c(typeof DragEvent<"u"&&f instanceof DragEvent?He.Drag:f instanceof MouseEvent?He.MouseMove:He.TouchMove)}),s,{trailing:!1})),u=[Sn("mousemove",l,n),Sn("touchmove",l,n),Sn("drag",l,n)];return Xe(()=>{u.forEach(f=>f())})}function ooe({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const a=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,c=[];let l=null;const u=f=>d=>{const p=Nl(d);if(Fn(p,r,s,o,!0))return;let h=null,m=f;if("pointerType"in d){switch(d.pointerType){case"mouse":h=ns.Mouse;break;case"touch":h=ns.Touch;break;case"pen":h=ns.Pen;break}h===ns.Touch?vn[f]===vn.MouseDown?m="TouchStart":vn[f]===vn.MouseUp&&(m="TouchEnd"):ns.Pen}else lg(d)&&(h=ns.Touch);h!==null?(l=h,(m.startsWith("Touch")&&h===ns.Touch||m.startsWith("Mouse")&&h===ns.Mouse)&&(h=null)):vn[f]===vn.Click&&(h=l,l=null);const v=lg(d)?d.changedTouches[0]:d;if(!v)return;const g=n.getId(p),{clientX:b,clientY:y}=v;Xe(e)({type:vn[m],id:g,x:b,y,...h!==null&&{pointerType:h}})};return Object.keys(vn).filter(f=>Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1).forEach(f=>{let d=Ma(f);const p=u(f);if(window.PointerEvent)switch(vn[f]){case vn.MouseDown:case vn.MouseUp:d=d.replace("mouse","pointer");break;case vn.TouchStart:case vn.TouchEnd:return}c.push(Sn(d,p,t))}),Xe(()=>{c.forEach(f=>f())})}function IC({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){const a=Xe(vl(Xe(c=>{const l=Nl(c);if(!l||Fn(l,r,s,o,!0))return;const u=n.getId(l);if(l===t&&t.defaultView){const f=gC(t.defaultView);e({id:u,x:f.left,y:f.top})}else e({id:u,x:l.scrollLeft,y:l.scrollTop})}),i.scroll||100));return Sn("scroll",a,t)}function ioe({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=Xe(vl(Xe(()=>{const o=vC(),i=yC();(n!==o||r!==i)&&(e({width:Number(i),height:Number(o)}),n=o,r=i)}),200));return Sn("resize",s,t)}const aoe=["INPUT","TEXTAREA","SELECT"],oS=new WeakMap;function coe({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function v(E){let $=Nl(E);const T=E.isTrusted,x=$&&ag($.tagName);if(x==="OPTION"&&($=$.parentElement),!$||!x||aoe.indexOf(x)<0||Fn($,r,s,o,!0))return;const L=$;if(L.classList.contains(i)||a&&L.matches(a))return;const M=_y($);let j=sd(L,x,M),q=!1;const F=lp({maskInputOptions:c,tagName:x,type:M}),R=Oa($,d,h,p,m,F);(M==="radio"||M==="checkbox")&&(q=$.checked),j=ml({isMasked:R,element:$,value:j,maskInputFn:l}),g($,f?{text:j,isChecked:q,userTriggered:T}:{text:j,isChecked:q});const V=$.name;M==="radio"&&V&&q&&t.querySelectorAll(`input[type="radio"][name="${V}"]`).forEach(U=>{if(U!==$){const re=ml({isMasked:R,element:U,value:sd(U,x,M),maskInputFn:l});g(U,f?{text:re,isChecked:!q,userTriggered:!1}:{text:re,isChecked:!q})}})}function g(E,$){const T=oS.get(E);if(!T||T.text!==$.text||T.isChecked!==$.isChecked){oS.set(E,$);const x=n.getId(E);Xe(e)({...$,id:x})}}const y=(u.input==="last"?["change"]:["input","change"]).map(E=>Sn(E,Xe(v),t)),_=t.defaultView;if(!_)return()=>{y.forEach(E=>E())};const w=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),S=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&y.push(...S.map(E=>mC(E[0],E[1],{set(){Xe(v)({target:this,isTrusted:!1})}},!1,_))),Xe(()=>{y.forEach(E=>E())})}function ad(e){const t=[];function n(r,s){if(Su("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Su("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Su("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Su("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(i)}return s}return n(e,t)}function Zs(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function loe({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:Xe((u,f,d)=>{const[p,h]=d,{id:m,styleId:v}=Zs(f,t,n.styleMirror);return(m&&m!==-1||v&&v!==-1)&&e({id:m,styleId:v,adds:[{rule:p,index:h}]}),u.apply(f,d)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:Xe((u,f,d)=>{const[p]=d,{id:h,styleId:m}=Zs(f,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:p}]}),u.apply(f,d)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Xe((u,f,d)=>{const[p]=d,{id:h,styleId:m}=Zs(f,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:p}),u.apply(f,d)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Xe((u,f,d)=>{const[p]=d,{id:h,styleId:m}=Zs(f,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:p}),u.apply(f,d)})}));const c={};Eu("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Eu("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Eu("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Eu("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([u,f])=>{l[u]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(l[u].insertRule,{apply:Xe((d,p,h)=>{const[m,v]=h,{id:g,styleId:b}=Zs(p.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||b&&b!==-1)&&e({id:g,styleId:b,adds:[{rule:m,index:[...ad(p),v||0]}]}),d.apply(p,h)})}),f.prototype.deleteRule=new Proxy(l[u].deleteRule,{apply:Xe((d,p,h)=>{const[m]=h,{id:v,styleId:g}=Zs(p.parentStyleSheet,t,n.styleMirror);return(v&&v!==-1||g&&g!==-1)&&e({id:v,styleId:g,removes:[{index:[...ad(p),m]}]}),d.apply(p,h)})})}),Xe(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([u,f])=>{f.prototype.insertRule=l[u].insertRule,f.prototype.deleteRule=l[u].deleteRule})})}function xC({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?mr([n,"access",i=>i.defaultView,"optionalAccess",i=>i.Document]):mr([n,"access",i=>i.ownerDocument,"optionalAccess",i=>i.defaultView,"optionalAccess",i=>i.ShadowRoot]),o=mr([s,"optionalAccess",i=>i.prototype])?Object.getOwnPropertyDescriptor(mr([s,"optionalAccess",i=>i.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return mr([o,"access",i=>i.get,"optionalAccess",i=>i.call,"call",i=>i(this)])},set(i){const a=mr([o,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,i)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(i,r)}catch{}return a}}),Xe(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function uoe({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:Xe((a,c,l)=>{const[u,f,d]=l;if(n.has(u))return o.apply(c,[u,f,d]);const{id:p,styleId:h}=Zs(mr([c,"access",m=>m.parentRule,"optionalAccess",m=>m.parentStyleSheet]),t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,set:{property:u,value:f,priority:d},index:ad(c.parentRule)}),a.apply(c,l)})});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Xe((a,c,l)=>{const[u]=l;if(n.has(u))return i.apply(c,[u]);const{id:f,styleId:d}=Zs(mr([c,"access",p=>p.parentRule,"optionalAccess",p=>p.parentStyleSheet]),t,r.styleMirror);return(f&&f!==-1||d&&d!==-1)&&e({id:f,styleId:d,remove:{property:u},index:ad(c.parentRule)}),a.apply(c,l)})}),Xe(()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i})}function foe({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=Xe(l=>vl(Xe(u=>{const f=Nl(u);if(!f||Fn(f,t,n,r,!0))return;const{currentTime:d,volume:p,muted:h,playbackRate:m}=f;e({type:l,id:s.getId(f),currentTime:d,volume:p,muted:h,playbackRate:m})}),o.media||500)),c=[Sn("play",a(0),i),Sn("pause",a(1),i),Sn("seeked",a(2),i),Sn("volumechange",a(3),i),Sn("ratechange",a(4),i)];return Xe(()=>{c.forEach(l=>l())})}function doe({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(c,l,u){const f=new o(c,l,u);return s.set(f,{family:c,buffer:typeof l!="string",descriptors:u,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),f};const i=wy(t.fonts,"add",function(a){return function(c){return fp(Xe(()=>{const l=s.get(c);l&&(e(l),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=o}),r.push(i),Xe(()=>{r.forEach(a=>a())})}function poe(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const c=Xe(()=>{const l=t.getSelection();if(!l||a&&mr([l,"optionalAccess",d=>d.isCollapsed]))return;a=l.isCollapsed||!1;const u=[],f=l.rangeCount||0;for(let d=0;d{}:wy(n.customElements,"define",function(s){return function(o,i,a){try{t({define:{name:o}})}catch{}return s.apply(this,[o,i,a])}})}function moe(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=$C(e,e.doc));const s=soe(e),o=ooe(e),i=IC(e),a=ioe(e,{win:n}),c=coe(e),l=foe(e);let u=()=>{},f=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=loe(e,{win:n}),f=xC(e,e.doc),d=uoe(e,{win:n}),e.collectFonts&&(p=doe(e)));const h=poe(e),m=hoe(e),v=[];for(const g of e.plugins)v.push(g.observer(g.callback,n,g.options));return Xe(()=>{ji.forEach(g=>g.reset()),mr([r,"optionalAccess",g=>g.disconnect,"call",g=>g()]),s(),o(),i(),a(),c(),l(),u(),f(),d(),p(),h(),m(),v.forEach(g=>g())})}function Su(e){return typeof window[e]<"u"}function Eu(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class dg{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const o=r||this.getIdToRemoteIdMap(t),i=s||this.getRemoteIdToIdMap(t);let a=o.get(n);return a||(a=this.generateIdFn(),o.set(n,a),i.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(o=>this.getId(t,o,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const o=s.get(n);return o||-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}}function iS(e){let t,n=e[0],r=1;for(;rn.call(t,...i)),t=void 0)}return n}class goe{constructor(){this.crossOriginIframeMirror=new dg(by),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class voe{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new dg(by),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new dg(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){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),iS([this,"access",s=>s.loadListener,"optionalCall",s=>s(t)]);const r=Ey(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 o=this.transformCrossOriginEvent(s,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Ve.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:Ve.IncrementalSnapshot,data:{source:He.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ve.Meta:case Ve.Load:case Ve.DomContentLoaded:return!1;case Ve.Plugin:return n;case Ve.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ve.IncrementalSnapshot:switch(n.data.source){case He.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case He.Drag:case He.TouchMove:case He.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case He.ViewportResize:return!1;case He.MediaInteraction:case He.MouseInteraction:case He.Scroll:case He.CanvasMutation:case He.Input:return this.replaceIds(n.data,t,["id"]),n;case He.StyleSheetRule:case He.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case He.Font:return n;case He.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case He.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),iS([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(s=>{this.replaceStyleIds(s,t,["styleId"])})]),n}}return!1}replace(t,n,r,s){for(const o of s)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=t.getIds(r,n[o]):n[o]=t.getId(r,n[o]));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!==Yt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class yoe{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class _oe{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(!Vc(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=$C({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(IC({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),fp(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(xC({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=Ey(t),r=Jse(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(wy(t.prototype,"attachShadow",function(s){return function(o){const i=s.call(this,o);return this.shadowRoot&&kC(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class aS{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class boe{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new zse,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const o of t){let i;this.styleMirror.has(o)?i=this.styleMirror.getId(o):(i=this.styleMirror.add(o),s.push({styleId:i,rules:Array.from(o.rules||CSSRule,(a,c)=>({rule:aC(a),index:c}))})),r.styleIds.push(i)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class woe{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,Gse(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let Dt,cd;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=cf([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const lr=bse();function ys(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:v,slimDOMOptions:g,maskAttributeFn:b,maskInputFn:y,maskTextFn:_,maxCanvasSize:w=null,packFn:S,sampling:E={},dataURLOptions:$={},mousemoveWait:T,recordDOM:x=!0,recordCanvas:L=!1,recordCrossOriginIframes:M=!1,recordAfter:j=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:q=!1,collectFonts:F=!1,inlineImages:R=!1,plugins:V,keepIframeSrcFn:U=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:G,onMutation:fe,getCanvasManager:ae}=e;noe(G);const Ee=M?window.parent===window:!0;let ve=!1;if(!Ee)try{window.parent.document&&(ve=!1)}catch{ve=!0}if(Ee&&!t)throw new Error("emit function is required");if(!Ee&&!ve)return()=>{};T!==void 0&&E.mousemove===void 0&&(E.mousemove=T),lr.reset();const Pe=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:{},Le=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||{};Vse();let J,ce=0;const ie=N=>{for(const X of V||[])X.eventProcessor&&(N=X.eventProcessor(N));return S&&!ve&&(N=S(N)),N};Dt=(N,X)=>{const K=N;if(K.timestamp=id(),cf([ji,"access",te=>te[0],"optionalAccess",te=>te.isFrozen,"call",te=>te()])&&K.type!==Ve.FullSnapshot&&!(K.type===Ve.IncrementalSnapshot&&K.data.source===He.Mutation)&&ji.forEach(te=>te.unfreeze()),Ee)cf([t,"optionalCall",te=>te(ie(K),X)]);else if(ve){const te={type:"rrweb",event:ie(K),origin:window.location.origin,isCheckout:X};window.parent.postMessage(te,"*")}if(K.type===Ve.FullSnapshot)J=K,ce=0;else if(K.type===Ve.IncrementalSnapshot){if(K.data.source===He.Mutation&&K.data.isAttachIframe)return;ce++;const te=r&&ce>=r,A=n&&J&&K.timestamp-J.timestamp>n;(te||A)&&D(!0)}};const ue=N=>{Dt({type:Ve.IncrementalSnapshot,data:{source:He.Mutation,...N}})},be=N=>Dt({type:Ve.IncrementalSnapshot,data:{source:He.Scroll,...N}}),Ie=N=>Dt({type:Ve.IncrementalSnapshot,data:{source:He.CanvasMutation,...N}}),C=N=>Dt({type:Ve.IncrementalSnapshot,data:{source:He.AdoptedStyleSheet,...N}}),O=new boe({mutationCb:ue,adoptedStyleSheetCb:C}),W=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new goe:new voe({mirror:lr,mutationCb:ue,stylesheetManager:O,recordCrossOriginIframes:M,wrappedEmit:Dt});for(const N of V||[])N.getMirror&&N.getMirror({nodeMirror:lr,crossOriginIframeMirror:W.crossOriginIframeMirror,crossOriginIframeStyleMirror:W.crossOriginIframeStyleMirror});const ne=new woe,ee=Eoe(ae,{mirror:lr,win:window,mutationCb:N=>Dt({type:Ve.IncrementalSnapshot,data:{source:He.CanvasMutation,...N}}),recordCanvas:L,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:w,sampling:E.canvas,dataURLOptions:$,errorHandler:G}),I=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new yoe:new _oe({mutationCb:ue,scrollCb:be,bypassOptions:{onMutation:fe,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:Pe,dataURLOptions:$,maskAttributeFn:b,maskTextFn:_,maskInputFn:y,recordCanvas:L,inlineImages:R,sampling:E,slimDOMOptions:Le,iframeManager:W,stylesheetManager:O,canvasManager:ee,keepIframeSrcFn:U,processedNodeManager:ne},mirror:lr}),D=(N=!1)=>{if(!x)return;Dt({type:Ve.Meta,data:{href:window.location.href,width:yC(),height:vC()}},N),O.reset(),I.init(),ji.forEach(K=>K.lock());const X=Yse(document,{mirror:lr,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:Pe,maskAttributeFn:b,maskInputFn:y,maskTextFn:_,slimDOM:Le,dataURLOptions:$,recordCanvas:L,inlineImages:R,onSerialize:K=>{wC(K,lr)&&W.addIframe(K),SC(K,lr)&&O.trackLinkElement(K),ug(K)&&I.addShadowRoot(K.shadowRoot,document)},onIframeLoad:(K,te)=>{W.attachIframe(K,te),K.contentWindow&&ee.addWindow(K.contentWindow),I.observeAttachShadow(K)},onStylesheetLoad:(K,te)=>{O.attachLinkElement(K,te)},keepIframeSrcFn:U});if(!X)return console.warn("Failed to snapshot the document");Dt({type:Ve.FullSnapshot,data:{node:X,initialOffset:gC(window)}}),ji.forEach(K=>K.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&O.adoptStyleSheets(document.adoptedStyleSheets,lr.getId(document))};cd=D;try{const N=[],X=te=>Xe(moe)({onMutation:fe,mutationCb:ue,mousemoveCb:(A,z)=>Dt({type:Ve.IncrementalSnapshot,data:{source:z,positions:A}}),mouseInteractionCb:A=>Dt({type:Ve.IncrementalSnapshot,data:{source:He.MouseInteraction,...A}}),scrollCb:be,viewportResizeCb:A=>Dt({type:Ve.IncrementalSnapshot,data:{source:He.ViewportResize,...A}}),inputCb:A=>Dt({type:Ve.IncrementalSnapshot,data:{source:He.Input,...A}}),mediaInteractionCb:A=>Dt({type:Ve.IncrementalSnapshot,data:{source:He.MediaInteraction,...A}}),styleSheetRuleCb:A=>Dt({type:Ve.IncrementalSnapshot,data:{source:He.StyleSheetRule,...A}}),styleDeclarationCb:A=>Dt({type:Ve.IncrementalSnapshot,data:{source:He.StyleDeclaration,...A}}),canvasMutationCb:Ie,fontCb:A=>Dt({type:Ve.IncrementalSnapshot,data:{source:He.Font,...A}}),selectionCb:A=>{Dt({type:Ve.IncrementalSnapshot,data:{source:He.Selection,...A}})},customElementCb:A=>{Dt({type:Ve.IncrementalSnapshot,data:{source:He.CustomElement,...A}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,maskInputOptions:Pe,inlineStylesheet:h,sampling:E,recordDOM:x,recordCanvas:L,inlineImages:R,userTriggeredOnInput:q,collectFonts:F,doc:te,maskAttributeFn:b,maskInputFn:y,maskTextFn:_,keepIframeSrcFn:U,blockSelector:o,unblockSelector:i,slimDOMOptions:Le,dataURLOptions:$,mirror:lr,iframeManager:W,stylesheetManager:O,shadowDomManager:I,processedNodeManager:ne,canvasManager:ee,ignoreCSSAttributes:re,plugins:cf([V,"optionalAccess",A=>A.filter,"call",A=>A(z=>z.observer),"optionalAccess",A=>A.map,"call",A=>A(z=>({observer:z.observer,options:z.options,callback:de=>Dt({type:Ve.Plugin,data:{plugin:z.name,payload:de}})}))])||[]},{});W.addLoadListener(te=>{try{N.push(X(te.contentDocument))}catch(A){console.warn(A)}});const K=()=>{D(),N.push(X(document))};return document.readyState==="interactive"||document.readyState==="complete"?K():(N.push(Sn("DOMContentLoaded",()=>{Dt({type:Ve.DomContentLoaded,data:{}}),j==="DOMContentLoaded"&&K()})),N.push(Sn("load",()=>{Dt({type:Ve.Load,data:{}}),j==="load"&&K()},window))),()=>{N.forEach(te=>te()),ne.destroy(),cd=void 0,roe()}}catch(N){console.warn(N)}}function Soe(e){if(!cd)throw new Error("please take full snapshot after start recording");cd(e)}ys.mirror=lr;ys.takeFullSnapshot=Soe;function Eoe(e,t){try{return e?e(t):new aS}catch{return console.warn("Unable to initialize CanvasManager"),new aS}}const koe=3,Toe=5;function ky(e){return e>9999999999?e:e*1e3}function lh(e){return e>9999999999?e/1e3:e}function Fl(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Ve.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:fr(t,10,1e3)}}),t.category==="console")))}const $oe="button,a";function CC(e){return e.closest($oe)||e}function DC(e){const t=MC(e);return!t||!(t instanceof Element)?t:CC(t)}function MC(e){return Ioe(e)?e.target:e}function Ioe(e){return typeof e=="object"&&!!e&&"target"in e}let Qs;function xoe(e){return Qs||(Qs=[],Coe()),Qs.push(e),()=>{const t=Qs?Qs.indexOf(e):-1;t>-1&&Qs.splice(t,1)}}function Coe(){Cn(vt,"open",function(e){return function(...t){if(Qs)try{Qs.forEach(n=>n())}catch{}return e.apply(vt,t)}})}const Doe=new Set([He.Mutation,He.StyleSheetRule,He.StyleDeclaration,He.AdoptedStyleSheet,He.CanvasMutation,He.Selection,He.MediaInteraction]);function Moe(e,t,n){e.handleClick(t,n)}class Ooe{constructor(t,n,r=Fl){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=xoe(()=>{this._lastMutation=cS()});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(Roe(n,this._ignoreSelector)||!Poe(t))return;const r={timestamp:lh(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=lh(t)}registerScroll(t=Date.now()){this._lastScroll=lh(t)}registerClick(t){const n=CC(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=cS();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,o=!r&&!s,{clickCount:i,clickBreadcrumb:a}=t;if(o){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:vt.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Da(()=>this._checkClicks(),1e3)}}const Aoe=["A","BUTTON","INPUT"];function Roe(e,t){return!!(!Aoe.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 Poe(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function cS(){return Date.now()/1e3}function Loe(e,t){try{if(!Noe(t))return;const{source:n}=t.data;if(Doe.has(n)&&e.registerMutation(t.timestamp),n===He.Scroll&&e.registerScroll(t.timestamp),Foe(t)){const{type:r,id:s}=t.data,o=ys.mirror.getNode(s);o instanceof HTMLElement&&r===vn.Click&&e.registerClick(o)}}catch{}}function Noe(e){return e.type===koe}function Foe(e){return e.data.source===He.MouseInteraction}function jr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var ld;(function(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"})(ld||(ld={}));const Hoe=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Boe(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(Hoe.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const Uoe=e=>t=>{if(!e.isEnabled())return;const n=joe(t);if(!n)return;const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&Moe(e.clickDetector,n,DC(t.event)),Fl(e,n)};function OC(e,t){const n=ys.mirror.getId(e),r=n&&ys.mirror.getNode(n),s=r&&ys.mirror.getMeta(r),o=s&&Woe(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(i=>i.type===ld.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:Boe(o.attributes)}}:{}}}function joe(e){const{target:t,message:n}=Yoe(e);return jr({category:`ui.${e.name}`,...OC(t,n)})}function Yoe(e){const t=e.name==="click";let n,r=null;try{r=t?DC(e.event):MC(e.event),n=Cs(r,{maxStringLength:200})||""}catch{n=""}return{target:r,message:n}}function Woe(e){return e.type===ld.Element}function Voe(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=zoe(t);n&&Fl(e,n)}function zoe(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=e;if(!i||qoe(i)||!o)return null;const a=t||r||s,c=o.length===1;if(!a&&c)return null;const l=Cs(i,{maxStringLength:200})||"",u=OC(i,l);return jr({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}function qoe(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const Koe={resource:Qoe,paint:Joe,navigation:Zoe};function ku(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function Goe(e){return e.map(Xoe).filter(Boolean)}function Xoe(e){const t=Koe[e.entryType];return t?t(e):null}function Aa(e){return((En||vt.performance.timeOrigin)+e)/1e3}function Joe(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=Aa(s);return{type:n,name:r,start:o,end:o+t,data:void 0}}function Zoe(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:f,redirectCount:d,startTime:p,transferSize:h,type:m}=e;return s===0?null:{type:`${t}.${m}`,start:Aa(p),end:Aa(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:f,domComplete:o,redirectCount:d}}}function Qoe(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Aa(o),end:Aa(s),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:a}}}function eie(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return dp(e,"largest-contentful-paint",n)}function tie(e){return e.sources!==void 0}function nie(e){const t=[],n=[];for(const r of e.entries)if(tie(r)){const s=[];for(const o of r.sources)if(o.node){n.push(o.node);const i=ys.mirror.getId(o.node);i&&s.push(i)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return dp(e,"cumulative-layout-shift",n,t)}function rie(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return dp(e,"first-input-delay",n)}function sie(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return dp(e,"interaction-to-next-paint",n)}function dp(e,t,n,r){const s=e.value,o=e.rating,i=Aa(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map(a=>ys.mirror.getId(a)):void 0,attributions:r}}}function oie(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(Ca(s,n))}),r.push(Kx(ku(eie,e)),hy(ku(nie,e)),Gx(ku(rie,e)),Xx(ku(sie,e))),()=>{r.forEach(s=>s())}}const Oe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,iie='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]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=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,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,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=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},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,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}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 a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,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=p,P=g,Q=y,R=w;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;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),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(a[j+Q]==a[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|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),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(a),32768),this.s.z=n.length-a+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}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;oi.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function aie(){const e=new Blob([iie]);return URL.createObjectURL(e)}const lS=["info","warn","error","log"],ff="[Replay] ";function uh(e,t="info"){mo({category:"console",data:{logger:"replay"},level:t,message:`${ff}${e}`},{level:t})}function cie(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return Oe?(lS.forEach(r=>{n[r]=(...s)=>{me[r](ff,...s),t&&uh(s.join(""),Ox(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),me.error(ff,r),e?op(r):t&&uh(r,"error")},n.infoTick=(...r)=>{me.info(ff,...r),t&&setTimeout(()=>uh(r[0]),0)}):lS.forEach(r=>{n[r]=()=>{}}),n}const Ne=cie();class Ty extends Error{constructor(){super(`Event buffer exceeded maximum size of ${yy}.`)}}class AC{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>yy)throw new Ty;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?ky(t):null}}class lie{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(){Oe&&Ne.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,o)=>{const i=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",i),!c.success){Oe&&Ne.error("Error in compression worker: ",c.response),o(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class uie{constructor(t){this._worker=new lie(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=ky(t.timestamp);(!this._earliestTimestamp||nyy?Promise.reject(new Ty):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{Oe&&Ne.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 fie{constructor(t){this._fallback=new AC,this._compression=new uie(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){Oe&&Ne.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 o of t)s.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(o){Oe&&Ne.exception(o,"Failed to add events when switching buffers.")}}}function die({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=pie(t);if(n)return n}return Oe&&Ne.info("Using simple buffer"),new AC}function pie(e){try{const t=e||hie();if(!t)return;Oe&&Ne.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new fie(n)}catch(t){Oe&&Ne.exception(t,"Failed to create compression worker")}}function hie(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?aie():""}function $y(){try{return"sessionStorage"in vt&&!!vt.sessionStorage}catch{return!1}}function mie(e){gie(),e.session=void 0}function gie(){if($y())try{vt.sessionStorage.removeItem(gy)}catch{}}function RC(e){return e===void 0?!1:Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Oe&&Ne.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function wie(e,t){try{if(typeof t=="function"&&_ie(e))return t(e)}catch(n){return Oe&&Ne.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Cy(e){return!e.type}function hg(e){return e.type==="transaction"}function Sie(e){return e.type==="replay_event"}function fS(e){return e.type==="feedback"}function Eie(e){return(t,n)=>{if(!e.isEnabled()||!Cy(t)&&!hg(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(hg(t)){kie(e,t);return}Tie(e,t)}}}function kie(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function Tie(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)||Da(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function $ie(e){return t=>{!e.isEnabled()||!Cy(t)||Iie(e,t)}}function Iie(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].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 r=jr({category:"replay.hydrate-error",data:{url:zI()}});Fl(e,r)}}function xie(e){const t=Ge();t&&t.on("beforeAddBreadcrumb",n=>Cie(e,n))}function Cie(e,t){if(!e.isEnabled()||!BC(t))return;const n=Die(t);n&&Fl(e,n)}function Die(e){return!BC(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?Mie(e):jr(e)}function Mie(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return jr(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>wu?(n=!0,`${s.slice(0,wu)}…`):s;if(typeof s=="object")try{const o=fr(s,7);return JSON.stringify(o).length>wu?(n=!0,`${JSON.stringify(o,null,2).slice(0,wu)}…`):o}catch{}return s});return jr({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function BC(e){return!!e.category}function Oie(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function UC(){const e=pt().getPropagationContext().dsc;e&&delete e.replay_id;const t=Ut();if(t){const n=gi(t);delete n.replay_id}}function Aie(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ve.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 Rie(e,t){return e.recordingMode!=="buffer"||t.message===vy||!t.exception||t.type?!1:RC(e.getOptions().errorSampleRate)}function Pie(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:Sie(t)?(delete t.breadcrumbs,t):!Cy(t)&&!hg(t)&&!fS(t)?t:e.checkAndHandleExpiredSession()?fS(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),Aie(e,t),t):Oie(t,n)&&!e.getOptions()._experiments.captureExceptions?(Oe&&Ne.log("Ignoring error from rrweb internals",t),null):((Rie(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(UC(),t),{id:"Replay"})}function pp(e,t){return t.map(({type:n,start:r,end:s,name:o,data:i})=>{const a=e.throttledAddEvent({type:Ve.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:s,data:i}}});return typeof a=="string"?Promise.resolve(null):a})}function Lie(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 Nie(e){return t=>{if(!e.isEnabled())return;const n=Lie(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(pp(e,[n]),!1)))}}function Fie(e,t){return Oe&&e.getOptions()._experiments.traceInternals?!1:Dee(t,Ge())}function jC(e,t){e.isEnabled()&&t!==null&&(Fie(e,t.name)||e.addUpdate(()=>(pp(e,[t]),!0)))}function hp(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=zC(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function YC(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function WC(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[zC(e)];if(!e)return[void 0]}catch(t){return Oe&&Ne.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Oe&&Ne.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ud(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 VC(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:zt({method:o,statusCode:i,request:a,response:c})}}function yl(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function co(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:o}=Hie(n);return r.body=s,o&&o.length>0&&(r._meta={warnings:o}),r}function mg(e,t){return Object.entries(e).reduce((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n},{})}function zC(e){return new URLSearchParams(e).toString()}function Hie(e){if(!e||typeof e!="string")return{body:e};const t=e.length>V1,n=Bie(e);if(t){const r=e.slice(0,V1);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 Bie(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function fd(e,t){const n=Uie(e);return ao(n,t)}function Uie(e,t=vt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(vt.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 jie(e,t,n){try{const r=await Wie(e,t,n),s=VC("resource.fetch",r);jC(n.replay,s)}catch(r){Oe&&Ne.exception(r,"Failed to capture fetch breadcrumb")}}function Yie(e,t){const{input:n,response:r}=t,s=n?qC(n):void 0,o=hp(s),i=r?YC(r.headers.get("content-length")):void 0;o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}async function Wie(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,f=fd(i,n.networkDetailAllowUrls)&&!fd(i,n.networkDetailDenyUrls),d=f?Vie(n,t.input,l):yl(l),p=await zie(f,n,t.response,u);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:d,response:p}}function Vie({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?Gie(n,t):{};if(!e)return co(s,r,void 0);const o=qC(n),[i,a]=WC(o),c=co(s,r,i);return a?ud(c,a):c}async function zie(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==void 0)return yl(s);const o=r?KC(r.headers,n):{};if(!r||!t&&s!==void 0)return co(o,s,void 0);const[i,a]=await Kie(r),c=qie(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});return a?ud(c,a):c}function qie(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e&&e.length&&n===void 0?hp(e):n;return r?t?co(s,o,e):co(s,o,void 0):yl(o)}catch(o){return Oe&&Ne.exception(o,"Failed to serialize response body"),co(s,n,void 0)}}async function Kie(e){const t=Xie(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await Jie(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(Oe&&Ne.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Oe&&Ne.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function qC(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function KC(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function Gie(e,t){return e.length===1&&typeof e[0]!="string"?dS(e[0],t):e.length===2?dS(e[1],t):{}}function dS(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?KC(n,t):Array.isArray(n)?{}:mg(n,t):{}}function Xie(e){try{return e.clone()}catch(t){Oe&&Ne.exception(t,"Failed to clone response body")}}function Jie(e){return new Promise((t,n)=>{const r=Da(()=>n(new Error("Timeout while trying to read response body")),500);Zie(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function Zie(e){return await e.text()}async function Qie(e,t,n){try{const r=tae(e,t,n),s=VC("resource.xhr",r);jC(n.replay,s)}catch(r){Oe&&Ne.exception(r,"Failed to capture xhr breadcrumb")}}function eae(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=hp(r),o=n.getResponseHeader("content-length")?YC(n.getResponseHeader("content-length")):oae(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),o!==void 0&&(e.data.response_body_size=o)}function tae(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=t,{url:c,method:l,status_code:u=0,request_body_size:f,response_body_size:d}=e.data;if(!c)return null;if(!a||!fd(c,n.networkDetailAllowUrls)||fd(c,n.networkDetailDenyUrls)){const S=yl(f),E=yl(d);return{startTimestamp:s,endTimestamp:o,url:c,method:l,statusCode:u,request:S,response:E}}const p=a[Uo],h=p?mg(p.request_headers,n.networkRequestHeaders):{},m=mg(nae(a),n.networkResponseHeaders),[v,g]=n.networkCaptureBodies?WC(i):[void 0],[b,y]=n.networkCaptureBodies?rae(a):[void 0],_=co(h,f,v),w=co(m,d,b);return{startTimestamp:s,endTimestamp:o,url:c,method:l,statusCode:u,request:g?ud(_,g):_,response:y?ud(w,y):w}}function nae(e){const t=e.getAllResponseHeaders();return t?t.split(`\r `).reduce((n,r)=>{const[s,o]=r.split(": ");return o&&(n[s.toLowerCase()]=o),n},{}):{}}function rae(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return sae(e.response,e.responseType)}catch(n){t.push(n)}return Oe&&Ne.warn("Failed to get xhr response body",...t),[void 0]}function sae(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 Oe&&Ne.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Oe&&Ne.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function oae(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return hp(n)}catch{return}}function iae(e){const t=Ge();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(c,l)=>aae(a,c,l))}catch{}}function aae(e,t,n){if(t.data)try{cae(t)&&uae(n)&&(eae(t,n),Qie(t,n,e)),lae(t)&&fae(n)&&(Yie(t,n),jie(t,n,e))}catch(r){Oe&&Ne.exception(r,"Error when enriching network breadcrumb")}}function cae(e){return e.category==="xhr"}function lae(e){return e.category==="fetch"}function uae(e){return e&&e.xhr}function fae(e){return e&&e.response}function dae(e){const t=Ge();tC(Uoe(e)),cp(Nie(e)),xie(e),iae(e);const n=Pie(e);lee(n),t&&(t.on("beforeSendEvent",$ie(e)),t.on("afterSendEvent",Eie(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",(r,s)=>{const o=e.getSessionId();s&&s.includeReplay&&e.isEnabled()&&o&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=o)}))}async function pae(e){try{return Promise.all(pp(e,[hae(vt.performance.memory)]))}catch{return[]}}function hae(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 mae(e,t,n){let r,s,o;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){s!==void 0&&clearTimeout(s),o!==void 0&&clearTimeout(o),s=o=void 0}function l(){return s!==void 0||o!==void 0?a():r}function u(){return s&&clearTimeout(s),s=Da(a,t),i&&o===void 0&&(o=Da(a,i)),r}return u.cancel=c,u.flush=l,u}const Ro=qe.navigator;function gae(){return/iPhone|iPad|iPod/i.test(Ro&&Ro.userAgent||"")||/Macintosh/i.test(Ro&&Ro.userAgent||"")&&Ro&&Ro.maxTouchPoints&&Ro.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function vae(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){Oe&&Ne.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&Loe(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!xy(e,n,s))return!0;if(!s)return!1;const o=e.session;if(_ae(e,s),e.recordingMode==="buffer"&&o&&e.eventBuffer){const i=e.eventBuffer.getEarliestTimestamp();i&&(Oe&&Ne.info(`Updating session start time to earliest event in buffer to ${new Date(i)}`),o.started=i,e.getOptions().stickySession&&Iy(o))}return o&&o.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function yae(e){const t=e.getOptions();return{type:Ve.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 _ae(e,t){!t||!e.session||e.session.segmentId!==0||xy(e,yae(e),!1)}function bae(e,t,n,r){return vi(gx(e,cy(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function wae({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} `;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function Sae({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,o={event_id:n,integrations:s};e.emit("preprocessEvent",r,o);const i=await wx(e.getOptions(),r,o,t,e,Dr());if(!i)return null;i.platform=i.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:l}=a&&a.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0"},i}async function Eae({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=wae({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:u}=r,f=Ge(),d=pt(),p=f&&f.getTransport(),h=f&&f.getDsn();if(!f||!p||!h||!o.sampled)return Ds({});const m={type:tse,replay_start_timestamp:u/1e3,timestamp:s/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},v=await Sae({scope:d,client:f,replayId:t,event:m});if(!v)return f.recordDroppedEvent("event_processor","replay",m),Oe&&Ne.info("An event processor returned `null`, will not send event."),Ds({});delete v.sdkProcessingMetadata;const g=bae(v,i,h,f.getOptions().tunnel);let b;try{b=await p.send(g)}catch(_){const w=new Error(vy);try{w.cause=_}catch{}throw w}if(typeof b.statusCode=="number"&&(b.statusCode<200||b.statusCode>=300))throw new GC(b.statusCode);const y=Cx({},b);if(xx(y,"replay"))throw new Dy(y);return b}class GC extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Dy extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function XC(e,t={count:0,interval:ase}){const{recordingData:n,onError:r}=e;if(n.length)try{return await Eae(e),!0}catch(s){if(s instanceof GC||s instanceof Dy)throw s;if(aee("Replays",{_retryCount:t.count}),r&&r(s),t.count>=cse){const o=new Error(`${vy} - max retries exceeded`);try{o.cause=s}catch{}throw o}return t.interval*=++t.count,new Promise((o,i)=>{Da(async()=>{try{await XC(e,t),o(!0)}catch(a){i(a)}},t.interval)})}}const JC="__THROTTLED",kae="__SKIPPED";function Tae(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((l,u)=>{u[...r.values()].reduce((a,c)=>a+c,0);let i=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),o()>=t){const u=i;return i=!0,u?kae:JC}i=!1;const l=r.get(c)||0;return r.set(c,l+1),e(...a)}}class eo{constructor({options:t,recordingOptions:n}){eo.prototype.__init.call(this),eo.prototype.__init2.call(this),eo.prototype.__init3.call(this),eo.prototype.__init4.call(this),eo.prototype.__init5.call(this),eo.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:nse,sessionIdleExpire:rse},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=mae(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Tae((i,a)=>bie(this,i,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),o=r?{threshold:Math.min(lse,r),timeout:r,scrollTimeout:use,ignoreSelector:s?s.join(","):""}:void 0;if(o&&(this.clickDetector=new Ooe(this,o)),Oe){const i=t._experiments;Ne.setConfig({captureExceptions:!!i.captureExceptions,traceInternals:!!i.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){Oe&&Ne.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){Oe&&Ne.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",Oe&&Ne.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){Oe&&Ne.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){Oe&&Ne.info("Buffering is in progress, call `flush()` to save the replay");return}Oe&&Ne.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=fh({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){Oe&&Ne.info("Buffering is in progress, call `flush()` to save the replay");return}Oe&&Ne.infoTick("Starting replay in buffer mode");const t=fh({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=ys({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:ise}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:vae(this),...gae(),onMutation:this._onMutationHandler,...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}={}){if(this._isEnabled){this._isEnabled=!1;try{Oe&&Ne.info(`Stopping Replay${n?` triggered by ${n}`:""}`),UC(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,mie(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Oe&&Ne.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Oe&&Ne.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Oe&&Ne.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&pg(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${vt.location.pathname}${vt.location.hash}${vt.location.search}`,n=`${vt.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===JC){const s=jr({category:"replay.throttled"});this.addUpdate(()=>!xy(this,{type:Toe,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Ut(),n=t&&Jt(t),s=(n&&Ze(n).data||{})[Bn];if(!(!n||!s||!["route","custom"].includes(s)))return Ze(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=die({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=fh({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 NC(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{vt.document.addEventListener("visibilitychange",this._handleVisibilityChange),vt.addEventListener("blur",this._handleWindowBlur),vt.addEventListener("focus",this._handleWindowFocus),vt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(dae(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=oie(this)}_removeListeners(){try{vt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),vt.removeEventListener("blur",this._handleWindowBlur),vt.removeEventListener("focus",this._handleWindowFocus),vt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{vt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=jr({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=jr({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{Voe(this,t)}}_doChangeToBackgroundTasks(t){!this.session||LC(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()){Oe&&Ne.info("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:Ve.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=Goe(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(pp(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 Error("Session is too long, not sending replay");const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await XC({replayId:t,recordingData:o,segmentId:s,eventContext:r,session:this.session,timestamp:n,onError:i=>this.handleException(i)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Ge();if(r){const s=n instanceof Dy?"ratelimit_backoff":"send_error";r.recordDroppedEvent(s,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){Oe&&Ne.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 o=sthis._options.maxReplayDuration+5e3;if(o||i){Oe&&Ne.info(`Session duration (${Math.floor(s/1e3)}s) is too ${o?"short":"long"}, not sending replay.`),o&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&Oe&&Ne.info("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&&Iy(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,o=r&&n>r;if(n>s||o){const i=jr({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(i)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function hc(e,t){return[...e,...t].join(",")}function $ae({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const o=["base","iframe[srcdoc]:not([src])"],i=hc(e,[".sentry-mask","[data-sentry-mask]"]),a=hc(t,[]);return{maskTextSelector:i,unmaskTextSelector:a,blockSelector:hc(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:hc(r,[]),ignoreSelector:hc(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function Iae({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const pS='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',xae=["content-length","content-type","accept"];let hS=!1;const Cae=e=>new mp(e);class mp{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=sse,flushMaxDelay:n=ose,minReplayDuration:r=fse,maxReplayDuration:s=z1,stickySession:o=!0,useCompression:i=!0,workerUrl:a,_experiments:c={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:f=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:v=[],networkDetailDenyUrls:g=[],networkCaptureBodies:b=!0,networkRequestHeaders:y=[],networkResponseHeaders:_=[],mask:w=[],maskAttributes:S=["title","placeholder"],unmask:E=[],block:$=[],unblock:T=[],ignore:x=[],maskFn:L,beforeAddRecordingEvent:M,beforeErrorSampling:j,onError:q}={}){this.name=mp.id;const F=$ae({mask:w,unmask:E,block:$,unblock:T,ignore:x});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:L,maskInputFn:L,maskAttributeFn:(R,V,U)=>Iae({maskAttributes:S,maskAllText:l,privacyOptions:F,key:R,value:V,el:U}),...F,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:R=>{try{R.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,dse),maxReplayDuration:Math.min(s,z1),stickySession:o,useCompression:i,workerUrl:a,blockAllMedia:f,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:v,networkDetailDenyUrls:g,networkCaptureBodies:b,networkRequestHeaders:mS(y),networkResponseHeaders:mS(_),beforeAddRecordingEvent:M,beforeErrorSampling:j,onError:q,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${pS}`:pS),this._isInitialized&&L1())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return hS}set _isInitialized(t){hS=t}afterAllSetup(t){!L1()||this._replay||(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(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}getRecordingMode(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=Dae(this._initialOptions,t);this._replay=new eo({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}mp.__initStatic();function Dae(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...zt(e)},s=Qf(n.replaysSessionSampleRate),o=Qf(n.replaysOnErrorSampleRate);return s==null&&o==null&&Cr(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),o!=null&&(r.errorSampleRate=o),r}function mS(e){return[...xae,...e.map(t=>t.toLowerCase())]}const gS=new WeakMap,dh=new Map,df={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Mae(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:o,enableHTTPTimings:i,tracePropagationTargets:a}={traceFetch:df.traceFetch,traceXHR:df.traceXHR,trackFetchStreamPerformance:df.trackFetchStreamPerformance,...t},c=typeof o=="function"?o:f=>!0,l=f=>Rae(f,a),u={};n&&(e.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(d=>{if(d.op==="http.client"){const p=dh.get(d.span_id);p&&(d.timestamp=p/1e3,dh.delete(d.span_id))}}),f)),s&&Ste(f=>{if(f.response){const d=gS.get(f.response);d&&f.endTimestamp&&dh.set(d,f.endTimestamp)}}),Nx(f=>{const d=mte(f,c,l,u);if(f.response&&f.fetchData.__span&&gS.set(f.response,f.fetchData.__span),d){const p=ZC(f.fetchData.url),h=p?Go(p).host:void 0;d.setAttributes({"http.url":p,"server.address":h})}i&&d&&vS(d)})),r&&rC(f=>{const d=Pae(f,c,l,u);i&&d&&vS(d)})}function Oae(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function vS(e){const{url:t}=Ze(e).data||{};if(!t||typeof t!="string")return;const n=Ca("resource",({entries:r})=>{r.forEach(s=>{Oae(s)&&s.name.endsWith(t)&&(Aae(s).forEach(i=>e.setAttribute(...i)),setTimeout(n))})})}function Rr(e=0){return((En||performance.timeOrigin)+e)/1e3}function Aae(e){const{name:t,version:n}=eC(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),En?[...r,["http.request.redirect_start",Rr(e.redirectStart)],["http.request.fetch_start",Rr(e.fetchStart)],["http.request.domain_lookup_start",Rr(e.domainLookupStart)],["http.request.domain_lookup_end",Rr(e.domainLookupEnd)],["http.request.connect_start",Rr(e.connectStart)],["http.request.secure_connection_start",Rr(e.secureConnectionStart)],["http.request.connection_end",Rr(e.connectEnd)],["http.request.request_start",Rr(e.requestStart)],["http.request.response_start",Rr(e.responseStart)],["http.request.response_end",Rr(e.responseEnd)]]:r}function Rae(e,t){const n=Ue.location&&Ue.location.href;if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const o=r.origin===s;return t?ao(r.toString(),t)||o&&ao(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?ao(e,t):r}}function Pae(e,t,n,r){const s=e.xhr,o=s&&s[Uo];if(!s||s.__sentry_own_request__||!o)return;const i=Ms()&&t(o.url);if(e.endTimestamp&&i){const f=s.__sentry_xhr_span_id__;if(!f)return;const d=r[f];d&&o.status_code!==void 0&&(ex(d,o.status_code),d.end(),delete r[f]);return}const a=ZC(o.url),c=a?Go(a).host:void 0,l=!!Ut(),u=i&&l?ii({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":a,url:o.url,"server.address":c,[It]:"auto.http.browser",[oi]:"http.client"}}):new qa;return s.__sentry_xhr_span_id__=u.spanContext().spanId,r[s.__sentry_xhr_span_id__]=u,n(o.url)&&Lae(s,Ms()&&l?u:void 0),u}function Lae(e,t){const{"sentry-trace":n,baggage:r}=Dx({span:t});n&&Nae(e,n,r)}function Nae(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch{}}function ZC(e){try{return new URL(e,Ue.location.origin).href}catch{return}}function Fae(){Ue&&Ue.document?Ue.document.addEventListener("visibilitychange",()=>{const e=Ut();if(!e)return;const t=Jt(e);if(Ue.document.hidden&&t){const n="cancelled",{op:r,status:s}=Ze(t);Kr&&me.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:Xt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Kr&&me.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Hae="BrowserTracing",Bae={...af,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...df},yS=(e={})=>{aQ();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:s,enableStandaloneClsSpans:o},beforeStartSpan:i,idleTimeout:a,finalTimeout:c,childSpanTimeout:l,markBackgroundSpan:u,traceFetch:f,traceXHR:d,trackFetchStreamPerformance:p,shouldCreateSpanForRequest:h,enableHTTPTimings:m,instrumentPageLoad:v,instrumentNavigation:g}={...Bae,...e},b=Mne({recordClsStandaloneSpans:o||!1});t&&nre(),r&&qe.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Ane():n&&One(),s&&Rne();const y={name:void 0,source:void 0};function _(w,S){const E=S.op==="pageload",$=i?i(S):S,T=$.attributes||{};S.name!==$.name&&(T[Bn]="custom",$.attributes=T),y.name=$.name,y.source=T[Bn];const x=bx($,{idleTimeout:a,finalTimeout:c,childSpanTimeout:l,disableAutoFinish:E,beforeSpanEnd:M=>{b(),Hne(M,{recordClsOnPageloadSpan:!o})}});function L(){["interactive","complete"].includes(Ue.document.readyState)&&w.emit("idleSpanEnableAutoFinish",x)}return E&&Ue.document&&(Ue.document.addEventListener("readystatechange",()=>{L()}),L()),x}return{name:Hae,afterAllSetup(w){let S,E=Ue.location&&Ue.location.href;function $(){S&&!Ze(S).timestamp&&(Kr&&me.log(`[Tracing] Finishing current active span with op: ${Ze(S).op}`),S.end())}w.on("startNavigationSpan",T=>{Ge()===w&&($(),S=_(w,{op:"navigation",...T}))}),w.on("startPageLoadSpan",(T,x={})=>{if(Ge()!==w)return;$();const L=x.sentryTrace||_S("sentry-trace"),M=x.baggage||_S("baggage"),j=eQ(L,M);pt().setPropagationContext(j),S=_(w,{op:"pageload",...T})}),w.on("spanEnd",T=>{const x=Ze(T).op;if(T!==Jt(T)||x!=="navigation"&&x!=="pageload")return;const L=pt(),M=L.getPropagationContext();L.setPropagationContext({...M,sampled:M.sampled!==void 0?M.sampled:mi(T),dsc:M.dsc||gi(T)})}),Ue.location&&(v&&Uae(w,{name:Ue.location.pathname,startTime:En?En/1e3:void 0,attributes:{[Bn]:"url",[It]:"auto.pageload.browser"}}),g&&cp(({to:T,from:x})=>{if(x===void 0&&E&&E.indexOf(T)!==-1){E=void 0;return}x!==T&&(E=void 0,QC(w,{name:Ue.location.pathname,attributes:{[Bn]:"url",[It]:"auto.navigation.browser"}}))})),u&&Fae(),s&&jae(a,c,l,y),t&&sre(),Mae(w,{traceFetch:f,traceXHR:d,trackFetchStreamPerformance:p,tracePropagationTargets:w.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:h,enableHTTPTimings:m})}}};function Uae(e,t,n){e.emit("startPageLoadSpan",t,n),pt().setTransactionName(t.name);const r=Ut();return(r&&Ze(r).op)==="pageload"?r:void 0}function QC(e,t){Dr().setPropagationContext({traceId:fo()}),pt().setPropagationContext({traceId:fo()}),e.emit("startNavigationSpan",t),pt().setTransactionName(t.name);const n=Ut();return(n&&Ze(n).op)==="navigation"?n:void 0}function _S(e){const t=$Z(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function jae(e,t,n,r){let s;const o=()=>{const i="ui.action.click",a=Ut(),c=a&&Jt(a);if(c){const l=Ze(c).op;if(["navigation","pageload"].includes(l)){Kr&&me.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(jm,"interactionInterrupted"),s.end(),s=void 0),!r.name){Kr&&me.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}s=bx({name:r.name,op:i,attributes:{[Bn]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};Ue.document&&addEventListener("click",o,{once:!1,capture:!0})}const eD=["activate","mount","update"],tD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Yae=/(?:^|[-_])(\w)/g,Wae=e=>e.replace(Yae,t=>t.toUpperCase()).replace(/[-_]/g,""),Vae="",ph="",zae=(e,t)=>e.repeat(t),qc=(e,t)=>{if(!e)return ph;if(e.$root===e)return Vae;if(!e.$options)return ph;const n=e.$options;let r=n.name||n._componentTag||n.__name;const s=n.__file;if(!r&&s){const o=s.match(/([^/\\]+)\.vue$/);o&&(r=o[1])}return(r?`<${Wae(r)}>`:ph)+(s&&t!==!1?` at ${s}`:"")},qae=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,o)=>`${(o===0?"---> ":zae(" ",5+o*2))+(Array.isArray(s)?`${qc(s[0])}... (${s[1]} recursive calls)`:qc(s))}`).join(` `)}`}return` (found in ${qc(e)})`},Kae=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:s}=e.config;e.config.errorHandler=(o,i,a)=>{const c=qc(i,!1),l=i?qae(i):"",u={componentName:c,lifecycleHook:a,trace:l};if(t.attachProps&&i&&(i.$options&&i.$options.propsData?u.propsData=i.$options.propsData:i.$props&&(u.propsData=i.$props)),setTimeout(()=>{op(o,{captureContext:{contexts:{vue:u}},mechanism:{handled:!!n,type:"vue"}})}),typeof n=="function"&&e.config.errorHandler&&n.call(e,o,i,a),n){if(t.logErrors){const f=typeof console<"u",d=`Error in ${a}: "${o&&o.toString()}"`;r?r.call(null,d,i,l):f&&!s&&Cr(()=>{console.error(`[Vue warn]: ${d}${l}`)})}}else throw o}},bS="ui.vue",Gae={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Xae(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.end(t),e.$root.$_sentryRootSpan=void 0)},n)}function Jae(e,t){function n(s){return s.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(s=>n(t)===n(s))}const Zae=e=>{const t=(e.hooks||[]).concat(eD).filter((r,s,o)=>o.indexOf(r)===s),n={};for(const r of t){const s=Gae[r];if(!s){tD&&me.warn(`Unknown hook: ${r}`);continue}for(const o of s)n[o]=function(){const i=this.$root===this;i&&(this.$_sentryRootSpan=this.$_sentryRootSpan||ii({name:"Application Render",op:`${bS}.render`,attributes:{[It]:"auto.ui.vue"},onlyIfParent:!0}));const a=qc(this,!1),c=Array.isArray(e.trackComponents)?Jae(e.trackComponents,a):e.trackComponents;if(!(!i&&!c))if(this.$_sentrySpans=this.$_sentrySpans||{},o==s[0]){if(this.$root&&this.$root.$_sentryRootSpan||Ut()){const u=this.$_sentrySpans[r];u&&u.end(),this.$_sentrySpans[r]=ii({name:`Vue ${a}`,op:`${bS}.${r}`,attributes:{[It]:"auto.ui.vue"},onlyIfParent:!0})}}else{const l=this.$_sentrySpans[r];if(!l)return;l.end(),Xae(this,fn(),e.timeout)}}}return n},Qae=qe,ece={Vue:Qae.Vue,attachProps:!0,logErrors:!0,attachErrorHandler:!0,hooks:eD,timeout:2e3,trackComponents:!1},tce="Vue",nce=(e={})=>({name:tce,setup(t){const n={...ece,...t.getOptions(),...e};if(!n.Vue&&!n.app){Cr(()=>{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=>wS(s,n)):n.Vue&&wS(n.Vue,n)}}),wS=(e,t)=>{if(tD){const n=e;(n._instance&&n._instance.isMounted)===!0&&Cr(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")})}t.attachErrorHandler&&Kae(e,t),Ms(t)&&e.mixin(Zae({...t,...t.tracingOptions}))};function rce(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:gs}],version:gs}},defaultIntegrations:[...iC(e),nce()],...e};return ese(t)}function sce(e,t,n){let r=!0;e.onError(s=>op(s,{mechanism:{handled:!1}})),e.beforeEach((s,o,i)=>{const a=o.name==null&&o.matched.length===0||o.name===void 0&&r;r&&(r=!1);const c={[It]:"auto.navigation.vue"};for(const f of Object.keys(s.params))c[`params.${f}`]=s.params[f];for(const f of Object.keys(s.query)){const d=s.query[f];d&&(c[`query.${f}`]=d)}let l=s.path,u="url";if(s.name&&t.routeLabel!=="path")l=s.name.toString(),u="custom";else if(s.matched.length>0){const f=s.matched.length-1;l=s.matched[f].path,u="route"}if(pt().setTransactionName(l),t.instrumentPageLoad&&a){const f=oce();f&&((Ze(f).data||{})[Bn]!=="custom"&&(f.updateName(l),f.setAttribute(Bn,u)),f.setAttributes({...c,[It]:"auto.pageload.vue"}))}t.instrumentNavigation&&!a&&(c[Bn]=u,c[It]="auto.navigation.vue",n({name:l,op:"navigation",attributes:c})),i&&i()})}function oce(){const e=Ut(),t=e&&Jt(e);if(!t)return;const n=Ze(t).op;return n==="navigation"||n==="pageload"?t:void 0}function ice(e={}){if(!e.router)return yS(e);const t=yS({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:s=!0,routeLabel:o="name"}=e;return{...t,afterAllSetup(i){t.afterAllSetup(i),sce(n,{routeLabel:o,instrumentNavigation:r,instrumentPageLoad:s},c=>{QC(i,c)})}}}const ace=xt(e=>{const t=lt(),{public:{sentry:n}}=dn();n.dsn&&rce({app:e.vueApp,dsn:n.dsn,environment:n.environment,integrations:[ice({router:t}),Cae({maskAllText:!1,blockAllMedia:!1}),pte({behaviour:"apply-tag-if-exclusively-contains-third-party-frames",filterKeys:["bokabord.se"]})],tracesSampleRate:n.tracesSampleRate,tracePropagationTargets:["localhost","https://bokabord.se"],replaysSessionSampleRate:n.replaysSessionSampleRate,replaysOnErrorSampleRate:n.replaysOnErrorSampleRate})});var SS=/^(GTM|G)-[0-9A-Z]+$/;function hh(e){if(typeof e!="string"||!SS.test(e)){let t=String(e).toUpperCase().replace(/.*-|[^0-9A-Z]/g,""),n=t.length===0?"":` Did you mean 'GTM-${t}' or 'G-${t}'?`;throw new Error(`'${e}' is not a valid GTM-ID (${SS}).${n}`)}}function Sc(e,t="dataLayer"){return e[t]||(e[t]=[]),e[t]}function ra(e,t){let n=document,r=n.createElement("script"),s=l=>{var u;(u=t.onReady)==null||u.call(t,{id:e,script:r}),r.removeEventListener("load",s)};r.addEventListener("load",s);let o=t.dataLayerName??"dataLayer";if(Sc(window,o).push({event:"gtm.js","gtm.start":new Date().getTime()}),!e)return r;r.async=!t.defer,r.defer=!!(t.defer||t.compatibility),t.nonce&&r.setAttribute("nonce",t.nonce),t.scriptType&&(r.type=t.scriptType);let i=new URLSearchParams({id:e,...t.dataLayerName?{l:t.dataLayerName}:{},...t.queryParams??{}}),a=t.source??"https://www.googletagmanager.com/gtm.js";r.src=`${a}?${i}`;let c=t.parentElement??n.body;if(typeof(c==null?void 0:c.appendChild)!="function")throw new Error("parentElement must be a DOM element");return c.appendChild(r),r}function cce(e="https://www.googletagmanager.com/gtm.js"){return Array.from(document.getElementsByTagName("script")).some(t=>t.src.includes(e))}var lce=class{constructor(e){Be(this,"id");Be(this,"options");Be(this,"scriptElements",[]);Be(this,"isInBrowserContext",()=>typeof window<"u");if(Array.isArray(e.id))for(let t of e.id)hh(typeof t=="string"?t:t.id);else hh(e.id);this.id=e.id,this.options={enabled:!0,debug:!1,loadScript:!0,defer:!1,compatibility:!1,dataLayerName:"dataLayer",...e},delete this.options.id}enabled(){return this.options.enabled??!0}enable(e=!0,t){if(this.options.enabled=e,this.isInBrowserContext()&&e&&!cce(t)&&this.options.loadScript)if(Array.isArray(this.id))this.id.forEach(n=>{let r;typeof n=="string"?r=ra(n,{...this.options}):r=ra(n.id,{...this.options,queryParams:n.queryParams}),this.scriptElements.push(r)});else{let n=ra(this.id,{...this.options});this.scriptElements.push(n)}}debugEnabled(){return this.options.debug??!1}debug(e){this.options.debug=e}dataLayer(){return this.isInBrowserContext()&&this.options.enabled?Sc(window,this.options.dataLayerName):!1}trackView(e,t,n={}){let r=this.isInBrowserContext()&&(this.options.enabled??!1);this.options.debug&&console.log(`[GTM-Support${r?"":"(disabled)"}]: Dispatching TrackView`,{screenName:e,path:t}),r&&Sc(window,this.options.dataLayerName).push({...n,event:this.options.trackViewEventProperty??"content-view","content-name":t,"content-view-name":e})}trackEvent({event:e,category:t=null,action:n=null,label:r=null,value:s=null,noninteraction:o=!1,...i}={}){let a=this.isInBrowserContext()&&(this.options.enabled??!1);this.options.debug&&console.log(`[GTM-Support${a?"":"(disabled)"}]: Dispatching event`,{event:e,category:t,action:n,label:r,value:s,...i}),a&&Sc(window,this.options.dataLayerName).push({event:e??"interaction",target:t,action:n,"target-properties":r,value:s,"interaction-type":o,...i})}push(e){let t=this.isInBrowserContext()&&(this.options.enabled??!1);this.options.debug&&console.log(`[GTM-Support${t?"":"(disabled)"}]: Dispatching event`,e),t&&Sc(window,this.options.dataLayerName).push(e)}},nn;function uce(e,t={id:""}){t={trackOnNextTick:!1,...t},nn=new lce(t),e.config.globalProperties.$gtm=nn,nn.isInBrowserContext()&&(t.vueRouter&&fce(e,t.vueRouter,t.ignoredViews,t.trackOnNextTick,t.vueRouterAdditionalEventData),nn.options.enabled&&nn.options.loadScript&&(Array.isArray(t.id)?t.id.forEach(n=>{if(typeof n=="string")ra(n,t);else{let r={...t};n.queryParams!=null&&(r.queryParams={...r.queryParams,...n.queryParams}),ra(n.id,r)}}):ra(t.id,t))),e.provide("gtm",t)}function fce(e,t,n=[],r,s=()=>({})){function o(i,a){return i instanceof Error?!!(i.type&a):!1}t.afterEach(async(i,a,c)=>{var d,p,h;if(typeof i.name!="string"||Array.isArray(n)&&n.includes(i.name)||typeof n=="function"&&n(i,a))return;let l=i.meta&&typeof i.meta.gtm=="string"&&i.meta.gtm?i.meta.gtm:i.name;o(c,4)?nn!=null&&nn.debugEnabled()&&console.log(`[VueGtm]: '${l}' not tracked due to navigation aborted`):o(c,8)&&(nn!=null&&nn.debugEnabled())&&console.log(`[VueGtm]: '${l}' not tracked due to navigation cancelled`);let u={...await s(i,a),...(d=i.meta)==null?void 0:d.gtmAdditionalEventData},f=((h=(p=t.options)==null?void 0:p.history)==null?void 0:h.base)??"";f.endsWith("/")||(f+="/"),f+=i.fullPath.startsWith("/")?i.fullPath.substring(1):i.fullPath,r?Pt(()=>{nn==null||nn.trackView(l,f,u)}):nn==null||nn.trackView(l,f,u)})}function dce(e){return{install:t=>uce(t,e)}}const pce=xt(e=>{const t=dn(),n=t.public.nodeEnv,r=t.public.gtmCode?t.public.gtmCode:"GTM-XXXXXXX";e.vueApp.use(dce({id:r,defer:!1,compatibility:!1,enabled:!!r&&n==="production",debug:!1,loadScript:!0,vueRouter:lt(),trackOnNextTick:!1}))}),hce=xt({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(){Ce()}}),mce=[AP,PP,BP,jH,YH,WH,VH,zH,qH,NB,FB,BB,YB,WB,QB,YJ,aZ,fZ,dZ,pZ,ace,pce,hce];function gce(e,t){const n=t/e*100;return 2/Math.PI*100*Math.atan(n/50)}function vce(e={}){const{duration:t=2e3,throttle:n=200,hideDelay:r=500,resetDelay:s=400}=e,o=e.estimatedProgress||gce,i=Ce(),a=Dn(0),c=Dn(!1),l=Dn(!1);let u=!1,f,d,p,h;const m=(E={})=>{y(),l.value=!1,v(0,E)};function v(E=0,$={}){if(i.isHydrating)return;if(E>=100)return b({force:$.force});_(),a.value=E<0?0:E;const T=$.force?0:n;T?d=setTimeout(()=>{c.value=!0,w()},T):(c.value=!0,w())}function g(){p=setTimeout(()=>{c.value=!1,h=setTimeout(()=>{a.value=0},s)},r)}function b(E={}){a.value=100,u=!0,_(),y(),E.error&&(l.value=!0),E.force?(a.value=0,c.value=!1):g()}function y(){clearTimeout(p),clearTimeout(h)}function _(){clearTimeout(d),cancelAnimationFrame(f)}function w(){u=!1;let E;function $(T){if(u)return;E??(E=T);const x=T-E;a.value=Math.max(0,Math.min(100,o(t,x))),f=requestAnimationFrame($)}f=requestAnimationFrame($)}let S=()=>{};{const E=i.hook("page:loading:start",()=>{m()}),$=i.hook("page:loading:end",()=>{b()}),T=i.hook("vue:error",()=>b());S=()=>{T(),E(),$(),_()}}return{_cleanup:S,progress:B(()=>a.value),isLoading:B(()=>c.value),error:B(()=>l.value),start:m,set:v,finish:b,clear:_}}function yce(e={}){const t=Ce(),n=t._loadingIndicator||(t._loadingIndicator=vce(e));return Rs()&&(t._loadingIndicatorDeps||(t._loadingIndicatorDeps=0),t._loadingIndicatorDeps++,bs(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(n._cleanup(),delete t._loadingIndicator)})),n}const _ce=ke({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:n}){const{progress:r,isLoading:s,error:o,start:i,finish:a,clear:c}=yce({duration:e.duration,throttle:e.throttle,hideDelay:e.hideDelay,resetDelay:e.resetDelay,estimatedProgress:e.estimatedProgress});return n({progress:r,isLoading:s,error:o,start:i,finish:a,clear:c}),()=>Lt("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:s.value?1:0,background:o.value?e.errorColor:e.color||void 0,backgroundSize:`${100/r.value*100}% auto`,transform:`scaleX(${r.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}}),gg=Symbol("head-component"),My={body:{type:Boolean,default:void 0},tagPosition:{type:String}},Hl=e=>{const t=Object.fromEntries(Object.entries(e).filter(([n,r])=>r!==void 0));return typeof t.body<"u"&&(t.tagPosition=t.body?"bodyClose":"head"),typeof t.renderPriority<"u"&&(t.tagPriority=t.renderPriority),t};function _i(){return yt(gg,nD,!0)}function nD(){const e=yt(gg,null);if(e)return e;const t=qt({}),n=Pk(t),r={input:t,entry:n};return Mn(gg,r),r}const Za={accesskey:String,autocapitalize:String,autofocus:{type:Boolean,default:void 0},class:{type:[String,Object,Array],default:void 0},contenteditable:{type:Boolean,default:void 0},contextmenu:String,dir:String,draggable:{type:Boolean,default:void 0},enterkeyhint:String,exportparts:String,hidden:{type:Boolean,default:void 0},id:String,inputmode:String,is:String,itemid:String,itemprop:String,itemref:String,itemscope:String,itemtype:String,lang:String,nonce:String,part:String,slot:String,spellcheck:{type:Boolean,default:void 0},style:{type:[String,Object,Array],default:void 0},tabindex:String,title:String,translate:String,renderPriority:[String,Number],tagPriority:{type:[String,Number]}};({...Za,...My});const bce=ke({name:"Link",inheritAttrs:!1,props:{...Za,...My,as:String,crossorigin:String,disabled:Boolean,fetchpriority:String,href:String,hreflang:String,imagesizes:String,imagesrcset:String,integrity:String,media:String,prefetch:{type:Boolean,default:void 0},referrerpolicy:String,rel:String,sizes:String,title:String,type:String,methods:String,target:String},setup(e){const{input:t}=_i();t.link||(t.link=[]);const n=t.link.push({})-1;return on(()=>t.link[n]=null),()=>(t.link[n]=Hl(e),null)}});({...Za});const wce=ke({name:"Title",inheritAttrs:!1,setup(e,{slots:t}){const{input:n}=_i();return on(()=>n.title=null),()=>{var s,o,i;const r=(s=t.default)==null?void 0:s.call(t);return n.title=(o=r==null?void 0:r[0])!=null&&o.children?String((i=r==null?void 0:r[0])==null?void 0:i.children):void 0,null}}}),Sce=ke({name:"Meta",inheritAttrs:!1,props:{...Za,charset:String,content:String,httpEquiv:String,name:String,property:String},setup(e){const{input:t}=_i();t.meta||(t.meta=[]);const n=t.meta.push({})-1;return on(()=>t.meta[n]=null),()=>{const r={"http-equiv":e.httpEquiv,...Hl(e)};return"httpEquiv"in r&&delete r.httpEquiv,t.meta[n]=r,null}}});({...Za,...My});const Ece=ke({name:"Head",inheritAttrs:!1,setup:(e,t)=>(nD(),()=>{var n,r;return(r=(n=t.slots).default)==null?void 0:r.call(n)})});({...Za});const kce=["innerHTML"],Tce=ke({__name:"nuxt-icon",props:{name:{},filled:{type:Boolean,default:!1}},async setup(e){let t,n;const r=e,s=pe("");let o=!1;async function i(){try{const c=await Object.assign({"/assets/icons/arrow-down-a-z.svg":()=>le(()=>import("./Dkc7XUJ0.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/arrow-down-wide-short.svg":()=>le(()=>import("./BOMXhAcn.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/arrow-up-a-z.svg":()=>le(()=>import("./BJAj7t2K.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/arrow-up-right-from-square.svg":()=>le(()=>import("./CwI0NqWb.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/arrow-up-wide-short.svg":()=>le(()=>import("./DAYu_-NP.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/badge-percent.svg":()=>le(()=>import("./Drm9mkQg.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/bars.svg":()=>le(()=>import("./BtcLRd2L.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/bb-logo-name.svg":()=>le(()=>import("./C3hg8lT-.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/bb-logo.svg":()=>le(()=>import("./znjABz7x.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/browser.svg":()=>le(()=>import("./BGV0SBuS.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/calendar.svg":()=>le(()=>import("./CprHR3o2.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/check.svg":()=>le(()=>import("./C5qjgMhm.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/chevron-down.svg":()=>le(()=>import("./DLm0sKxI.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/chevron-left.svg":()=>le(()=>import("./Br1tRkrn.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/chevron-right.svg":()=>le(()=>import("./Bfj25xUz.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/chevron-up.svg":()=>le(()=>import("./DMjbHAIO.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-arrow-left.svg":()=>le(()=>import("./UGMZSq3e.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-arrow-right.svg":()=>le(()=>import("./CEGuVxkF.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-caret-down.svg":()=>le(()=>import("./BiLcdXHc.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-caret-left.svg":()=>le(()=>import("./VqM6TXF9.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-caret-right.svg":()=>le(()=>import("./bOJzXlcU.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-caret-up.svg":()=>le(()=>import("./evxIN4g6.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-check.svg":()=>le(()=>import("./D9xIzKoG.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-chevron-down.svg":()=>le(()=>import("./CsqP3m9G.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-chevron-left.svg":()=>le(()=>import("./C_rl7tM9.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-chevron-right.svg":()=>le(()=>import("./C4CTCO0O.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-chevron-up.svg":()=>le(()=>import("./COat086o.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-info.svg":()=>le(()=>import("./D-0Xkjh7.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-minus.svg":()=>le(()=>import("./q8I4CE_x.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-plus.svg":()=>le(()=>import("./DPYKDus8.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-question.svg":()=>le(()=>import("./CH1Pu1f6.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-user.svg":()=>le(()=>import("./DmsbAg2p.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/circle-xmark.svg":()=>le(()=>import("./lpjFeWls.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/city.svg":()=>le(()=>import("./CNufleJK.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/clipboard-list.svg":()=>le(()=>import("./CX50lPOe.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/clipboard.svg":()=>le(()=>import("./ByiIyhi2.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/clock.svg":()=>le(()=>import("./CsjwCVyw.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/credit-card-blank.svg":()=>le(()=>import("./C-O8BxKj.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/envelope.svg":()=>le(()=>import("./D2PSFHJF.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/facebook.svg":()=>le(()=>import("./uOsBh_zI.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/file-lines.svg":()=>le(()=>import("./DRxifRB3.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/file-pdf.svg":()=>le(()=>import("./DFlE2AFt.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/gear.svg":()=>le(()=>import("./C5LROshO.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/gift.svg":()=>le(()=>import("./BF62VFkK.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/hat-chef.svg":()=>le(()=>import("./DH-Vy3n9.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/heart-solid.svg":()=>le(()=>import("./Cms22ftP.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/heart.svg":()=>le(()=>import("./vsAAw3al.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/hourglass-clock.svg":()=>le(()=>import("./DAmFs5Wf.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/house-blank.svg":()=>le(()=>import("./B8gBogdT.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/images.svg":()=>le(()=>import("./BQXBpmsj.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/instagram.svg":()=>le(()=>import("./B-3tFe9L.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/list.svg":()=>le(()=>import("./CAtt53oY.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/location-arrow.svg":()=>le(()=>import("./EMSQTMjK.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/location-dot-solid.svg":()=>le(()=>import("./DkZmFo1t.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/location-dot.svg":()=>le(()=>import("./DOJlMYxv.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/magnifying-glass.svg":()=>le(()=>import("./B3obcrYe.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/map-location.svg":()=>le(()=>import("./Dt0OCMtk.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/martini-glass.svg":()=>le(()=>import("./B6AHcIDG.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/mobile.svg":()=>le(()=>import("./Bk43MkTX.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/pen-clip.svg":()=>le(()=>import("./wcMCXfKS.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/plate-utensils.svg":()=>le(()=>import("./CB6RqWp7.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/sliders.svg":()=>le(()=>import("./D4_YIxXW.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/spotify.svg":()=>le(()=>import("./Pe5_SDDp.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/user-chef.svg":()=>le(()=>import("./CVoiNo91.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/user-group.svg":()=>le(()=>import("./Dje0Hiyo.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/users.svg":()=>le(()=>import("./q-ESpK1t.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/utensils.svg":()=>le(()=>import("./Dc5TzfyA.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/wine-glass.svg":()=>le(()=>import("./BjsgGSGw.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/xmark-large.svg":()=>le(()=>import("./B0XCzxUa.js"),[],import.meta.url).then(l=>l.default),"/assets/icons/xmark.svg":()=>le(()=>import("./Crr50MWm.js"),[],import.meta.url).then(l=>l.default)})[`/assets/icons/${r.name}.svg`]();c.includes("stroke")&&(o=!0),s.value=c}catch{console.error(`[nuxt-icons] Icon '${r.name}' doesn't exist in 'assets/icons'`)}}return[t,n]=UM(()=>i()),await t,n(),Sr(i),(a,c)=>(H(),Z("span",{class:Re(["nuxt-icon",{"nuxt-icon--fill":!a.filled,"nuxt-icon--stroke":k(o)&&!a.filled}]),innerHTML:k(s)},null,10,kce))}}),kt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},$ce={class:"icon"},Ice={__name:"Icon",props:{name:{type:String,default:null}},setup(e){return(t,n)=>{const r=Tce;return H(),Z("div",$ce,[Q(r,{name:e.name,filled:""},null,8,["name"])])}}},Wn=kt(Ice,[["__scopeId","data-v-3739514c"]]),xce={key:0,class:"sticky z-20 top-0 left-0 w-full bg-ocean text-white flex justify-center"},Cce={class:"text-xs"},Dce={__name:"FatDate",setup(e){const t=us(),n=Et(),r=lt(),s=pn(),o=B(()=>t(s.date).isBefore(t(),"day")),i=()=>{s.date=t().format("YYYY-MM-DD"),r.push({name:"fat"})};return(a,c)=>{const l=Wn;return k(o)&&k(n).name==="fat"?(H(),Z("div",xce,[Y("div",{class:"inline-flex items-center gap-2 px-2 py-1 cursor-pointer",onClick:i},[Q(l,{name:"circle-info",class:"text-sm"}),Y("div",Cce,De(a.$t("fat.banners.oldDate",{date:a.$dayjs(k(s).date).format("dddd D MMMM")})),1)])])):we("",!0)}}},Mce={},Oce={class:"sticky z-40 top-2 left-0 w-full px-[4vw]"};function Ace(e,t){const n=Dce;return H(),Z("div",Oce,[Q(n,{class:"rounded overflow-hidden mb-2"})])}const Rce=kt(Mce,[["render",Ace]]),Pce={class:"text-coral flex items-end gap-2"},Lce="/",Nce={__name:"Logo",setup(e){return pn(),(t,n)=>{const r=Wn,s=La;return H(),Se(s,{to:Lce},{default:_e(()=>[Y("div",Pce,[Q(r,{name:"bb-logo-name"})])]),_:1})}}},rD=kt(Nce,[["__scopeId","data-v-4a425b28"]]),Fce={class:"w-5 h-5 flex items-center justify-center bg-sky text-ocean rounded-full"},Hce={class:"font-medium whitespace-nowrap"},Bce=["innerHTML"],Uce=["innerHTML"],jce=["innerHTML"],Yce=["innerHTML"],sD={__name:"Location",setup(e){const t=Et(),n=pn();return(r,s)=>{var a;const o=Wn,i=Ns("auto-animate");return H(),Z("button",{class:"flex items-center gap-2",onClick:s[0]||(s[0]=c=>("useUpdateQuery"in r?r.useUpdateQuery:k(zr))({locationModal:!0}))},[Y("div",Fce,[Q(o,{name:"chevron-down",class:"text-sm"})]),Un((H(),Z("div",Hce,[k(n).cityId?k(n).hasUserLocation&&k(t).name.startsWith("fat")?(H(),Z("div",{key:1,innerHTML:r.$t("fat.location.nearMe")},null,8,Uce)):k(n).hasLocation&&k(t).name.startsWith("fat")?(H(),Z("div",{key:2,innerHTML:r.$t("fat.location.onMap")},null,8,jce)):(H(),Z("div",{key:3,innerHTML:(a=k(n).city)==null?void 0:a.name},null,8,Yce)):(H(),Z("div",{key:0,innerHTML:r.$t("shared.sweden")},null,8,Bce))])),[[i]])])}}},mh=[{id:1,title:"Start",type:"",path:"/{citySlug}",url:null},{id:2,title:"Restauranger",type:null,path:"/restauranger/{citySlug}",url:null},{id:3,title:"Guider",type:"guides",path:"/guider/{citySlug}",url:null},{id:4,title:"Artiklar",type:"articles",path:"/artiklar/{citySlug}",url:null},{id:5,title:"Evenemang",type:null,path:"/evenemang/{citySlug}",url:null},{id:6,title:"Erbjudanden",type:null,path:"/erbjudanden/{citySlug}",url:null},{id:7,title:"Stora sällskap",type:null,path:"/bokningsforfragan",url:null},{id:8,title:"Presentkort",type:null,path:"/presentkort/{citySlug}",url:null},{id:9,title:"Appen",type:"",path:"/appen",url:null}],Wce={key:0},Vce={class:"navigation__icon"},zce=["innerHTML"],qce={key:1},Kce=["innerHTML"],Gce={__name:"Items",setup(e){const t=Et(),n=pn(),r=cr(),s=B(()=>{var i,a;return(a=(i=mh==null?void 0:mh.filter(c=>{var l;return((l=n.city)==null?void 0:l.restaurants)>2||!["/bokningsforfragan"].includes(c.path)}))==null?void 0:i.filter(c=>{var l,u;return!(c!=null&&c.type)||((u=(l=n.city)==null?void 0:l.sections)==null?void 0:u.includes(c==null?void 0:c.type))}))==null?void 0:a.map(c=>{var l,u,f,d,p,h;return{...c,active:(l=t.params)!=null&&l.all?(f=c==null?void 0:c.path)==null?void 0:f.startsWith("/"+((u=t.params)==null?void 0:u.all[0])):!1,path:(p=c==null?void 0:c.path)==null?void 0:p.replace("{citySlug}",fa((d=n.city)==null?void 0:d.name)),url:(h=c==null?void 0:c.url)==null?void 0:h.replace("{prodUrl}",Pd("prodUrl")),icon:o[fa(c.title)]}})}),o={start:"house-blank",restauranger:"utensils",guider:"file-lines",artiklar:"pen-clip",evenemang:"calendar",erbjudanden:"badge-percent","stora-sallskap":"user-group",presentkort:"gift",appen:"mobile"};return(i,a)=>{var f;const c=Wn,l=La,u=Ns("auto-animate");return Un((H(),Z("div",{class:"navigation",key:(f=k(s))==null?void 0:f.length},[k(n).cityId?(H(),Z("div",Wce,[(H(!0),Z(Fe,null,At(k(s),d=>(H(),Se(l,{to:d.url?d.url:{path:d.path,query:d.query},key:d.id,class:Re({"is-active":d==null?void 0:d.active})},{default:_e(()=>[Y("div",Vce,[Q(c,{name:d.icon},null,8,["name"])]),Y("div",{class:"navigation__text",innerHTML:d.title},null,8,zce)]),_:2},1032,["to","class"]))),128))])):we("",!0),k(n).cityId?we("",!0):(H(),Z("div",qce,[(H(!0),Z(Fe,null,At(k(r).cities.filter(d=>d==null?void 0:d.sections),d=>(H(),Se(l,{to:`/${d.slug}`,key:d.id},{default:_e(()=>[Y("div",{class:"navigation__text",innerHTML:d.name},null,8,Kce)]),_:2},1032,["to"]))),128))]))])),[[u]])}}},Xce=kt(Gce,[["__scopeId","data-v-b6767570"]]),Jce={class:"app-nav"},Zce={class:"grid gap-3 mb-0"},Qce={class:"overflow-y-auto no-scrollbar py-4 md:py-8"},ele={class:"flex flex-col gap-4"},tle={key:0},nle={class:"border bg-mist/50 px-3 py-2 rounded text-sm text-[#888] relative flex items-center gap-2"},rle={class:"text-sm"},sle={key:1},ole={__name:"index",setup(e){const t=Et(),n=lt(),r=()=>{n.push({name:"fat"})};return(s,o)=>{const i=rD,a=sD,c=Xce,l=Wn,u=La,f=Ns("auto-animate");return H(),Z("div",Jce,[Y("div",Zce,[Q(i,{class:"text-[2.25rem]"}),Q(a)]),Y("div",Qce,[Q(c)]),Un((H(),Z("div",ele,[k(t).name!=="search"||k(t).query.drawer?(H(),Z("div",tle,[Q(u,{to:{name:"search"}},{default:_e(()=>[Y("div",nle,[Q(l,{name:"magnifying-glass",class:"my-1"}),Y("span",rle,De(s.$t("shared.searchRestaurant")),1)])]),_:1})])):we("",!0),!["fat"].includes(k(t).name)||k(t).query.drawer?(H(),Z("div",sle,[Y("button",{class:"button-coral w-full",onClick:r},De(s.$t("shared.searchFreeTable")),1)])):we("",!0)])),[[f]])])}}},oD=kt(ole,[["__scopeId","data-v-cac560e1"]]),ile={class:"app-header__topbar"},ale={class:"app-header__brand"},cle={class:"app-header__actions"},lle={class:"flex items-center gap-4"},ule=["innerHTML"],fle=["innerHTML"],dle={class:"app-header__sidebar"},ple={__name:"index",setup(e){const t=cr(),n=Et(),r=lt(),s=()=>{r.push({name:"fat"})},o=()=>{var c;zr({drawer:(c=n.query)!=null&&c.drawer?void 0:!0})},i=B(()=>n.name==="start"),a=B(()=>{var c;return(c=t.cities)==null?void 0:c.find(l=>"/"+l.slug===n.path)});return(c,l)=>{const u=rD,f=sD,d=Wn,p=La,h=oD,m=Ns("auto-animate");return H(),Z("div",{class:Re(["app-header",{hidden:k(i)}])},[Y("div",ile,[Y("div",ale,[Q(u,{class:"text-[1.5rem] sm:text-[1.625rem]"})]),Y("div",cle,[Un((H(),Z("div",lle,[k(a)||["fat"].includes(k(n).name)?(H(),Se(f,{key:0})):we("",!0),k(n).name!=="search"?(H(),Se(p,{key:1,to:{name:"search"},class:"p-2 -mx-2"},{default:_e(()=>[Q(d,{name:"magnifying-glass"})]),_:1})):we("",!0),!k(a)&&!["fat"].includes(k(n).name)?(H(),Z("button",{key:2,class:"button-coral text-sm !px-4 !py-1",onClick:s},[Y("div",{class:"md:hidden",innerHTML:c.$t("shared.book")},null,8,ule),Y("div",{class:"max-md:hidden",innerHTML:c.$t("shared.searchTable")},null,8,fle)])):we("",!0)])),[[m]]),Y("button",{class:"border border-sand hover:bg-mist w-8 h-8 rounded flex items-center justify-center duration-300",onClick:l[0]||(l[0]=v=>o())},[Q(d,{name:"bars",class:"relative top-px"})])])]),Y("div",dle,[Q(h)])],2)}}},hle=kt(ple,[["__scopeId","data-v-36c7c0ee"]]),mle={class:"flex items-center gap-2 px-2 py-1 bg-black/60 rounded-md opacity-80 transition-all duration-300 md:hover:opacity-100"},gle={class:"text-sm text-white"},vle={class:"drawer__scrollable"},yle={__name:"index",setup(e){const t=Et(),n=cr(),r=B(()=>{var o;return!!((o=t.query)!=null&&o.drawer)}),s=()=>{var o;zr({drawer:(o=t.query)!=null&&o.drawer?void 0:!0})};return xe(()=>t.query,()=>{var o;n.lockScroll=!!((o=t.query)!=null&&o.drawer)}),(o,i)=>{const a=oD;return H(),Z("div",{class:Re(["drawer",{"is-open":k(r)}])},[Y("div",{class:Re(["drawer__content",{"is-open":k(r)}])},[Y("button",{onClick:i[0]||(i[0]=c=>s()),class:"fixed z-50 top-6 right-8"},[Y("div",mle,[Y("span",gle,De(o.$t("shared.close")),1)])]),Y("div",vle,[Q(a)])],2),Y("div",{class:Re(["drawer__backdrop",{"is-open":k(r)}]),onClick:i[1]||(i[1]=c=>s())},null,2)],2)}}},_le=kt(yle,[["__scopeId","data-v-bbcb208e"]]),ble={class:"flex items-center justify-between mb-2"},wle={class:"flex items-center gap-2"},Sle=["innerHTML"],Ele={class:"tags"},kle=["onClick"],Tle=["innerHTML"],$le={__name:"Tags",props:{heading:String,groupId:Number},setup(e){const t=e,n=cr(),r=pn(),s=pe(!0),o=B(()=>{var c;return(c=n.tags)==null?void 0:c.filter(l=>l.groupId===t.groupId)}),i=B(()=>{var c,l;return(l=(c=o.value)==null?void 0:c.map(u=>({...u,active:r.tagIds.includes(u.id)})))==null?void 0:l.filter(u=>s.value?!0:u.isFeatured||u.active)}),a=c=>{var l;r.tagIds.includes(c)?r.tagIds=r.tagIds.filter(u=>u!==c):r.tagIds.push(parseInt(c)),zr({tagIds:((l=r.tagIds)==null?void 0:l.join(","))||void 0})};return(c,l)=>{const u=Ns("auto-animate");return H(),Z("div",null,[Y("div",ble,[Y("div",wle,[Y("div",{class:"font-medium text-lg",innerHTML:e.heading},null,8,Sle)])]),Un((H(),Z("div",Ele,[(H(!0),Z(Fe,null,At(k(i),f=>(H(),Z("div",{key:f.id},[Y("button",{class:Re(["tags__button",{active:k(r).tagIds.includes(f.id)}]),onClick:d=>a(f.id)},[Y("span",{innerHTML:f.label},null,8,Tle)],10,kle)]))),128))])),[[u]])])}}},Ile=kt($le,[["__scopeId","data-v-d60bfa98"]]),xle={class:"grid gap-2"},Cle={class:"grid gap-6"},Dle={__name:"index",setup(e){const t=pn(),n=B(()=>t.hasLocation||t.hasUserLocation?null:t.cityId===86915?8:t.cityId===86855?9:t.cityId===86887?10:null);return(r,s)=>{const o=Ile,i=Ns("auto-animate");return H(),Z("div",xle,[Un((H(),Z("div",Cle,[k(n)?(H(),Se(o,{key:0,groupId:k(n),heading:r.$t("fat.filters.regions.heading")},null,8,["groupId","heading"])):we("",!0),Q(o,{groupId:2,heading:r.$t("fat.filters.cuisines.heading")},null,8,["heading"]),Q(o,{groupId:7,heading:r.$t("fat.filters.amenities.heading")},null,8,["heading"]),Q(o,{groupId:1,heading:r.$t("fat.filters.dishes.heading")},null,8,["heading"])])),[[i]])])}}},ES=us();function Mle(){const e=Od("fat-drawer",()=>!1);return{isOpen:e,toggleDrawer:()=>{e.value=!e.value},openDrawer:()=>{e.value=!0},closeDrawer:()=>{e.value=!1}}}function _he(){const e=Od("fat-time-settings",()=>!1);return{isOpen:e,toggleTimeSettings:()=>{e.value=!e.value}}}function bhe(){const e=cr(),t=pn(),n=us(),r=Et(),s=B(()=>{var c,l,u;return((u=(l=(c=r.query)==null?void 0:c.tagIds)==null?void 0:l.split(","))==null?void 0:u.map(Number))??[]}),o=c=>{s.value.includes(c)?a(c):i(c)},i=c=>{const l={},u=[1100,1101,1102,1103,176],f=u.includes(c)?s.value.filter(p=>!u.includes(p)):s.value,d=[...new Set([...f,c])];if([1100,1101,1102,1103].some(p=>d.includes(p))){const p=e.meals.find(h=>h.slug==="dinner");l.timeRange=`${p.startTime}-${p.endTime}`,n(t.date).isAfter(n().add(7,"days"))&&(l.date=n().format("YYYY-MM-DD"))}c===1103&&(l.date=n().format("YYYY-MM-DD")),c===176&&(l.timeRange="11:00-16:00"),zr({tagIds:(d==null?void 0:d.join(","))||void 0,...l})},a=c=>{const l=s.value.filter(u=>u!==c);zr({tagIds:(l==null?void 0:l.join(","))||void 0})};return{toggleTagId:o,addTagId:i,removeTagId:a}}function whe(e=[],t="19:00",n=3){if(!(e!=null&&e.length))return[];const[r,s]=(t||"19:00").split(":").map(Number),o=ES().hour(r).minute(s).second(0),i=e.flatMap(l=>l.timeslots.map(u=>{const[f,d]=u.time.split(":").map(Number),p=ES().hour(f).minute(d).second(0);return{...u,diff:Math.abs(p.diff(o,"minute"))}}));return AF(i,"time").sort((l,u)=>l.diff-u.diff).slice(0,n).sort((l,u)=>l.timestamp-u.timestamp)}const Ole={class:"flex items-center gap-2 px-2 py-1 bg-black/60 rounded-md opacity-80 transition-all duration-300 md:hover:opacity-100"},Ale={class:"text-sm text-white"},Rle={class:"fat-drawer__scrollable"},Ple={class:"py-6 sticky z-20 top-0 bg-white"},Lle={class:"font-heading font-medium text-2xl md:text-3xl lg:text-4xl"},Nle={key:0,class:"py-6 sticky z-20 bottom-0 bg-white"},Fle={class:"flex items-center gap-2 justify-center"},Hle=["innerHTML"],Ble={__name:"index",setup(e){const t=cr(),n=pn(),{isOpen:r,toggleDrawer:s}=Mle(),o=()=>{console.log("resetTags"),n.resetTags(),s()};return xe(()=>r.value,()=>{t.lockScroll=r.value}),(i,a)=>{var u,f;const c=Dle,l=Wn;return H(),Z("div",{class:Re(["fat-drawer",{"is-open":k(r)}])},[Y("div",{class:Re(["fat-drawer__content",{"is-open":k(r)}])},[Y("button",{onClick:a[0]||(a[0]=d=>k(s)()),class:"fixed z-50 top-6 right-[4vw] md:right-8"},[Y("div",Ole,[Y("span",Ale,De(i.$t("shared.close")),1)])]),Y("div",Rle,[Y("div",Ple,[Y("p",Lle,De(i.$t("fat.filter.heading",k(n).tagIds.length)),1)]),Q(c,{class:"relative z-10"}),(u=k(n).tagIds)!=null&&u.length?(H(),Z("div",Nle,[Y("button",{class:"button-coral-outline w-full",onClick:o},[Y("div",Fle,[Q(l,{name:"circle-xmark",class:"text-sm"}),Y("span",{class:"text-sm",innerHTML:i.$t("fat.filters.clear",{count:(f=k(n).tagIds)==null?void 0:f.length})},null,8,Hle)])])])):we("",!0)])],2),Y("div",{class:Re(["fat-drawer__backdrop",{"is-open":k(r)}]),onClick:a[1]||(a[1]=d=>k(s)())},null,2)],2)}}},Ule=kt(Ble,[["__scopeId","data-v-5832630a"]]),iD=(e="RouteProvider")=>ke({name:e,props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,s={};for(const o in t.route)Object.defineProperty(s,o,{get:()=>n===t.renderKey?t.route[o]:r[o],enumerable:!0});return Mn(Id,ls(s)),()=>Lt(t.vnode,{ref:t.vnodeRef})}}),jle=iD(),kS=new WeakMap,Yle=ke({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const s=Ce(),o=pe(),i=yt(Id,null);let a;r({pageRef:o});const c=yt(DR,null);let l;const u=s.deferHydration();if(s.isHydrating){const d=s.hooks.hookOnce("app:error",u);lt().beforeEach(d)}e.pageKey&&xe(()=>e.pageKey,(d,p)=>{d!==p&&s.callHook("page:loading:start")});let f=!1;{const d=lt().beforeResolve(()=>{f=!1});Ls(()=>{d()})}return()=>Lt(Qk,{name:e.name,route:e.route,...t},{default:d=>{const p=Vle(i,d.route,d.Component),h=i&&i.matched.length===d.route.matched.length;if(!d.Component){if(l&&!h)return l;u();return}if(l&&c&&!c.isCurrent(d.route))return l;if(p&&i&&(!c||c!=null&&c.isCurrent(i)))return h?l:null;const m=om(d,e.pageKey),v=zle(i,d.route,d.Component);!s.isHydrating&&a===m&&!v&&Pt(()=>{f=!0,s.callHook("page:loading:end")}),a=m;const g=!!(e.transition??d.route.meta.pageTransition??F_),b=g&&Wle([e.transition,d.route.meta.pageTransition,F_,{onBeforeLeave(){s._runningTransition=!0},onAfterLeave(){delete s._runningTransition,s.callHook("page:transition:finish",d.Component)}}]),y=e.keepalive??d.route.meta.keepalive??fR;return l=KL(g&&b,qL(y,Lt(JE,{suspensible:!0,onPending:()=>s.callHook("page:start",d.Component),onResolve:()=>{Pt(()=>s.callHook("page:finish",d.Component).then(()=>{if(!f&&!v)return f=!0,s.callHook("page:loading:end")}).finally(u))}},{default:()=>{const _={key:m||void 0,vnode:n.default?qle(n.default,d):d.Component,route:d.route,renderKey:m||void 0,trackRootNodes:g,vnodeRef:o};if(!y)return Lt(jle,_);const w=d.Component.type,S=w;let E=kS.get(S);return E||(E=iD(w.name||w.__name),kS.set(S,E)),Lt(E,_)}}))).default(),l}})}});function Wle(e){const t=e.filter(Boolean).map(n=>({...n,onAfterLeave:n.onAfterLeave?Qg(n.onAfterLeave):void 0}));return kk(...t)}function Vle(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>{var o;return((o=s.components)==null?void 0:o.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((s,o)=>{var i,a,c;return((i=s.components)==null?void 0:i.default)!==((c=(a=e.matched[o])==null?void 0:a.components)==null?void 0:c.default)})||n&&om({route:t,Component:n})!==om({route:e,Component:n})}function zle(e,t,n){return e?t.matched.findIndex(s=>{var o;return((o=s.components)==null?void 0:o.default)===(n==null?void 0:n.type)})= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n= start date");let r=this.numberFormatter.formatToParts(t),s=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...s.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!vg&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!dd&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=Kle(t,n),this.options=n}}function Kle(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!dd){var r;let{unit:i,unitDisplay:a="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=aD[i])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let s=e+(t?Object.entries(t).sort((i,a)=>i[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let s=e.format(-n),o=e.format(n),i=s.replace(o,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),s.replace(o,"!!!").replace(i,"+").replace("!!!",o)}else return e.format(n)}}const Xle=new RegExp("^.*\\(.*\\).*$"),Jle=["latn","arab","hanidec","deva","beng"];class lD{parse(t){return vh(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return vh(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return vh(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const TS=new Map;function vh(e,t,n){let r=$S(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let s of Jle)if(s!==r.options.numberingSystem){let o=$S(e+(e.includes("-u-")?"-nu-":"-u-nu-")+s,t);if(o.isValidPartialNumber(n))return o}}return r}function $S(e,t){let n=e+(t?Object.entries(t).sort((s,o)=>s[0]-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var s,o;let i={...this.options,style:"decimal",minimumFractionDigits:Math.min(((s=this.options.minimumFractionDigits)!==null&&s!==void 0?s:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new lD(this.locale,i).parse(new cD(this.locale,i).format(r))}return this.options.currencySign==="accounting"&&Xle.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=mc(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=mc(t," ",this.symbols.group),t=mc(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=mc(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=eue(t,this.formatter,this.options,n);var r,s;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const IS=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Qle=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function eue(e,t,n,r){var s,o,i,a;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),l=c.formatToParts(-10000.111),u=c.formatToParts(10000.111),f=Qle.map(x=>c.formatToParts(x));var d;let p=(d=(s=l.find(x=>x.type==="minusSign"))===null||s===void 0?void 0:s.value)!==null&&d!==void 0?d:"-",h=(o=u.find(x=>x.type==="plusSign"))===null||o===void 0?void 0:o.value;!h&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(h="+");let v=(i=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(x=>x.type==="decimal"))===null||i===void 0?void 0:i.value,g=(a=l.find(x=>x.type==="group"))===null||a===void 0?void 0:a.value,b=l.filter(x=>!IS.has(x.type)).map(x=>xS(x.value)),y=f.flatMap(x=>x.filter(L=>!IS.has(L.type)).map(L=>xS(L.value))),_=[...new Set([...b,...y])].sort((x,L)=>L.length-x.length),w=_.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${_.join("|")}|[\\p{White_Space}]`,"gu"),S=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),E=new Map(S.map((x,L)=>[x,L])),$=new RegExp(`[${S.join("")}]`,"g");return{minusSign:p,plusSign:h,decimal:v,group:g,literals:w,numeral:$,index:x=>String(E.get(x))}}function mc(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function xS(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Oy(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[s=>{const o=yt(r,s);if(o||o===null)return o;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},s=>(Mn(r,s),s)]}function uD(e,t,n){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(s)}function tue(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function Tu(e,t){let n=e;const r=t.toString(),s=r.indexOf("."),o=s>=0?r.length-s:0;if(o>0){const i=10**o;n=Math.round(n*i)/i}return n}function nue(e,t,n,r){t=Number(t),n=Number(n);const s=(e-(Number.isNaN(t)?0:t))%r;let o=Tu(Math.abs(s)*2>=r?e+Math.sign(s)*(r-Math.abs(s)):e-s,r);return Number.isNaN(t)?!Number.isNaN(n)&&o>n&&(o=Math.floor(Tu(n/r,r))*r):on&&(o=t+Math.floor(Tu((n-t)/r,r))*r),o=Tu(o,r),o}function fD(e){return Rs()?(bs(e),!0):!1}function rue(e){let t=!1,n;const r=ai(!0);return(...s)=>(t||(n=r.run(()=>e(...s)),t=!0),n)}function sue(e){let t=0,n,r;const s=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...o)=>(t+=1,n||(r=ai(!0),n=r.run(()=>e(...o))),fD(s),n)}function gp(e){return typeof e=="function"?e():k(e)}function oue(e){if(!ze(e))return qt(e);const t=new Proxy({},{get(n,r,s){return k(Reflect.get(e.value,r,s))},set(n,r,s){return ze(e.value[r])&&!ze(s)?e.value[r].value=s:e.value[r]=s,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return qt(t)}function dD(e){return oue(B(e))}const bi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const iue=e=>typeof e<"u",aue=Object.prototype.toString,cue=e=>aue.call(e)==="[object Object]",lue=()=>{},CS=uue();function uue(){var e,t;return bi&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function fue(e){return Ht()}function due(e,t){fue()&&Ls(e,t)}function Qa(e){var t;const n=gp(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ay=bi?window:void 0;function pD(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=Ay):[t,n,r,s]=e,!t)return lue;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(u=>u()),o.length=0},a=(u,f,d,p)=>(u.addEventListener(f,d,p),()=>u.removeEventListener(f,d,p)),c=xe(()=>[Qa(t),gp(s)],([u,f])=>{if(i(),!u)return;const d=cue(f)?{...f}:f;o.push(...n.flatMap(p=>r.map(h=>a(u,p,h,d))))},{immediate:!0,flush:"post"}),l=()=>{c(),i()};return fD(l),l}function pue(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function hue(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=Ay,eventName:o="keydown",passive:i=!1,dedupe:a=!1}=r,c=pue(t);return pD(s,o,l=>{l.repeat&&gp(a)||c(l)&&n(l)},i)}function mue(){const e=pe(!1),t=Ht();return t&&en(()=>{e.value=!0},t),e}function gue(e){return JSON.parse(JSON.stringify(e))}function hD(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:c=!1,eventName:l,deep:u=!1,defaultValue:f,shouldEmit:d}=r,p=Ht(),h=n||(p==null?void 0:p.emit)||((s=p==null?void 0:p.$emit)==null?void 0:s.bind(p))||((i=(o=p==null?void 0:p.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(p==null?void 0:p.proxy));let m=l;t||(t="modelValue"),m=m||`update:${t.toString()}`;const v=y=>a?typeof a=="function"?a(y):gue(y):y,g=()=>iue(e[t])?v(e[t]):f,b=y=>{d?d(y)&&h(m,y):h(m,y)};if(c){const y=g(),_=pe(y);let w=!1;return xe(()=>e[t],S=>{w||(w=!0,_.value=v(S),Pt(()=>w=!1))}),xe(_,S=>{!w&&(S!==e[t]||u)&&b(S)},{deep:u}),_}else return B({get(){return g()},set(y){b(y)}})}function Ry(e){return e?e.flatMap(t=>t.type===Fe?Ry(t.children):[t]):[]}function _s(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function yh(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function yg(e,t,n=".",r){if(!yh(t))return yg(e,{},n);const s=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:yh(i)&&yh(s[o])?s[o]=yg(i,s[o],(n?`${n}.`:"")+o.toString()):s[o]=i)}return s}function vue(e){return(...t)=>t.reduce((n,r)=>yg(n,r,""),{})}const yue=vue(),[mD,She]=Oy("ConfigProvider");let _ue="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",bue=(e=21)=>{let t="",n=e;for(;n--;)t+=_ue[Math.random()*64|0];return t};const wue=sue(()=>{const e=pe(new Map),t=pe(),n=B(()=>{for(const i of e.value.values())if(i)return!0;return!1}),r=mD({scrollBody:pe(!0)});let s=null;const o=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",CS&&(s==null||s()),t.value=void 0};return xe(n,(i,a)=>{var c;if(!bi)return;if(!i){a&&o();return}t.value===void 0&&(t.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,u={padding:l,margin:0},f=(c=r.scrollBody)!=null&&c.value?typeof r.scrollBody.value=="object"?yue({padding:r.scrollBody.value.padding===!0?l:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?l:r.scrollBody.value.margin},u):u:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof f.padding=="number"?`${f.padding}px`:String(f.padding),document.body.style.marginRight=typeof f.margin=="number"?`${f.margin}px`:String(f.margin),document.body.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),CS&&(s=pD(document,"touchmove",d=>Eue(d),{passive:!1})),Pt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function Sue(e){const t=bue(6),n=wue();n.value.set(t,e);const r=B({get:()=>n.value.get(t)??!1,set:s=>n.value.set(t,s)});return due(()=>{n.value.delete(t)}),r}function gD(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function Py(e){const t=Ht(),n=t==null?void 0:t.type.emits,r={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(s=>{r[Ec(Pn(s))]=(...o)=>e(s,...o)}),r}function kue(e){return B(()=>{var t;return gp(e)?!!((t=Qa(e))!=null&&t.closest("form")):!0})}function Mr(){const e=Ht(),t=pe(),n=B(()=>{var i,a;return["#text","#comment"].includes((i=t.value)==null?void 0:i.$el.nodeName)?(a=t.value)==null?void 0:a.$el.nextElementSibling:Qa(t)}),r=Object.assign({},e.exposed),s={};for(const i in e.props)Object.defineProperty(s,i,{enumerable:!0,configurable:!0,get:()=>e.props[i]});if(Object.keys(r).length>0)for(const i in r)Object.defineProperty(s,i,{enumerable:!0,configurable:!0,get:()=>r[i]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function o(i){t.value=i,i&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>i instanceof Element?i:i.$el}),e.exposed=s)}return{forwardRef:o,currentRef:t,currentElement:n}}var Tue=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xi=new WeakMap,$u=new WeakMap,Iu={},_h=0,vD=function(e){return e&&(e.host||vD(e.parentNode))},$ue=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=vD(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Iue=function(e,t,n,r){var s=$ue(t,Array.isArray(e)?e:[e]);Iu[n]||(Iu[n]=new WeakMap);var o=Iu[n],i=[],a=new Set,c=new Set(s),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};s.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))u(d);else try{var p=d.getAttribute(r),h=p!==null&&p!=="false",m=(xi.get(d)||0)+1,v=(o.get(d)||0)+1;xi.set(d,m),o.set(d,v),i.push(d),m===1&&h&&$u.set(d,!0),v===1&&d.setAttribute(n,"true"),h||d.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return u(t),a.clear(),_h++,function(){i.forEach(function(f){var d=xi.get(f)-1,p=o.get(f)-1;xi.set(f,d),o.set(f,p),d||($u.has(f)||f.removeAttribute(r),$u.delete(f)),p||f.removeAttribute(n)}),_h--,_h||(xi=new WeakMap,xi=new WeakMap,$u=new WeakMap,Iu={})}},xue=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=Tue(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),Iue(r,s,n,"aria-hidden")):function(){return null}};function Cue(e){let t;xe(()=>Qa(e),n=>{n?t=xue(n):t&&t()}),on(()=>{t&&t()})}let Due=0;function DS(e,t="radix"){const n=mD({useId:void 0});return e_?`${t}-${e_()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++Due}`}function Mue(e,t){const n=pe(e);function r(s){return t[n.value][s]??n.value}return{state:n,dispatch:s=>{n.value=r(s)}}}const Oue=ke({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var r,s;if(!n.default)return null;const o=Ry(n.default()),i=o.findIndex(u=>u.type!==Rt);if(i===-1)return o;const a=o[i];(r=a.props)==null||delete r.ref;const c=a.props?Qt(t,a.props):t;t.class&&(s=a.props)!=null&&s.class&&delete a.props.class;const l=Er(a,c);for(const u in c)u.startsWith("on")&&(l.props||(l.props={}),l.props[u]=c[u]);return o.length===1?l:(o[i]=l,o)}}}),$o=ke({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const r=e.asChild?"template":e.as;return typeof r=="string"&&["area","img","input"].includes(r)?()=>Lt(r,t):r!=="template"?()=>Lt(e.as,t,{default:n.default}):()=>Lt(Oue,t,{default:n.default})}});function yD(){const e=pe(),t=B(()=>{var n,r;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(r=e.value)==null?void 0:r.$el.nextElementSibling:Qa(e)});return{primitiveElement:e,currentElement:t}}function Aue(e,t){var n;const r=pe({}),s=pe("none"),o=pe(e),i=e.value?"mounted":"unmounted";let a;const c=((n=t.value)==null?void 0:n.ownerDocument.defaultView)??Ay,{state:l,dispatch:u}=Mue(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),f=v=>{var g;if(bi){const b=new CustomEvent(v,{bubbles:!1,cancelable:!1});(g=t.value)==null||g.dispatchEvent(b)}};xe(e,async(v,g)=>{var b;const y=g!==v;if(await Pt(),y){const _=s.value,w=xu(t.value);v?(u("MOUNT"),f("enter"),w==="none"&&f("after-enter")):w==="none"||((b=r.value)==null?void 0:b.display)==="none"?(u("UNMOUNT"),f("leave"),f("after-leave")):g&&_!==w?(u("ANIMATION_OUT"),f("leave")):(u("UNMOUNT"),f("after-leave"))}},{immediate:!0});const d=v=>{const g=xu(t.value),b=g.includes(v.animationName),y=l.value==="mounted"?"enter":"leave";if(v.target===t.value&&b&&(f(`after-${y}`),u("ANIMATION_END"),!o.value)){const _=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",a=c==null?void 0:c.setTimeout(()=>{var w;((w=t.value)==null?void 0:w.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=_)})}v.target===t.value&&g==="none"&&u("ANIMATION_END")},p=v=>{v.target===t.value&&(s.value=xu(t.value))},h=xe(t,(v,g)=>{v?(r.value=getComputedStyle(v),v.addEventListener("animationstart",p),v.addEventListener("animationcancel",d),v.addEventListener("animationend",d)):(u("ANIMATION_END"),a!==void 0&&(c==null||c.clearTimeout(a)),g==null||g.removeEventListener("animationstart",p),g==null||g.removeEventListener("animationcancel",d),g==null||g.removeEventListener("animationend",d))},{immediate:!0}),m=xe(l,()=>{const v=xu(t.value);s.value=l.value==="mounted"?v:"none"});return on(()=>{h(),m()}),{isPresent:B(()=>["mounted","unmountSuspended"].includes(l.value))}}function xu(e){return e&&getComputedStyle(e).animationName||"none"}const _D=ke({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var r;const{present:s,forceMount:o}=bl(e),i=pe(),{isPresent:a}=Aue(s,i);n({present:a});let c=t.default({present:a});c=Ry(c||[]);const l=Ht();if(c&&(c==null?void 0:c.length)>1){const u=(r=l==null?void 0:l.parent)!=null&&r.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>` - ${f}`).join(` `)].join(` `))}return()=>o.value||s.value||a.value?Lt(t.default({present:a})[0],{ref:u=>{const f=Qa(u);return typeof(f==null?void 0:f.hasAttribute)>"u"||(f!=null&&f.hasAttribute("data-radix-popper-content-wrapper")?i.value=f.firstElementChild:i.value=f),f}}):null}}),[Io,Rue]=Oy("DialogRoot"),Ly=ke({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=hD(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),s=pe(),o=pe(),{modal:i}=bl(n);return Rue({open:r,modal:i,openModal:()=>{r.value=!0},onOpenChange:a=>{r.value=a},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:s,contentElement:o}),(a,c)=>St(a.$slots,"default",{open:k(r)})}}),Pue=ke({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=mue();return(n,r)=>k(t)||n.forceMount?(H(),Se(bM,{key:0,to:n.to,disabled:n.disabled},[St(n.$slots,"default")],8,["to","disabled"])):we("",!0)}}),Ny=ke({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(H(),Se(k(Pue),qi(Qc(t)),{default:_e(()=>[St(n.$slots,"default")]),_:3},16))}}),Lue="dismissableLayer.pointerDownOutside",Nue="dismissableLayer.focusOutside";function bD(e,t){const n=t.closest("[data-dismissable-layer]"),r=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&r===n||s.indexOf(r){});return Sr(i=>{if(!bi)return;const a=async l=>{const u=l.target;if(t!=null&&t.value){if(bD(t.value,u)){s.value=!1;return}if(l.target&&!s.value){let f=function(){uD(Lue,e,d)};const d={originalEvent:l};l.pointerType==="touch"?(r.removeEventListener("click",o.value),o.value=f,r.addEventListener("click",o.value,{once:!0})):f()}else r.removeEventListener("click",o.value);s.value=!1}},c=window.setTimeout(()=>{r.addEventListener("pointerdown",a)},0);i(()=>{window.clearTimeout(c),r.removeEventListener("pointerdown",a),r.removeEventListener("click",o.value)})}),{onPointerDownCapture:()=>s.value=!0}}function Hue(e,t){var n;const r=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),s=pe(!1);return Sr(o=>{if(!bi)return;const i=async a=>{t!=null&&t.value&&(await Pt(),!(!t.value||bD(t.value,a.target))&&a.target&&!s.value&&uD(Nue,e,{originalEvent:a}))};r.addEventListener("focusin",i),o(()=>r.removeEventListener("focusin",i))}),{onFocusCapture:()=>s.value=!0,onBlurCapture:()=>s.value=!1}}const ts=qt({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bue=ke({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:s,currentElement:o}=Mr(),i=B(()=>{var h;return((h=o.value)==null?void 0:h.ownerDocument)??globalThis.document}),a=B(()=>ts.layersRoot),c=B(()=>o.value?Array.from(a.value).indexOf(o.value):-1),l=B(()=>ts.layersWithOutsidePointerEventsDisabled.size>0),u=B(()=>{const h=Array.from(a.value),[m]=[...ts.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(m);return c.value>=v}),f=Fue(async h=>{const m=[...ts.branches].some(v=>v==null?void 0:v.contains(h.target));!u.value||m||(r("pointerDownOutside",h),r("interactOutside",h),await Pt(),h.defaultPrevented||r("dismiss"))},o),d=Hue(h=>{[...ts.branches].some(m=>m==null?void 0:m.contains(h.target))||(r("focusOutside",h),r("interactOutside",h),h.defaultPrevented||r("dismiss"))},o);hue("Escape",h=>{c.value===a.value.size-1&&(r("escapeKeyDown",h),h.defaultPrevented||r("dismiss"))});let p;return Sr(h=>{o.value&&(n.disableOutsidePointerEvents&&(ts.layersWithOutsidePointerEventsDisabled.size===0&&(p=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),ts.layersWithOutsidePointerEventsDisabled.add(o.value)),a.value.add(o.value),h(()=>{n.disableOutsidePointerEvents&&ts.layersWithOutsidePointerEventsDisabled.size===1&&(i.value.body.style.pointerEvents=p)}))}),Sr(h=>{h(()=>{o.value&&(a.value.delete(o.value),ts.layersWithOutsidePointerEventsDisabled.delete(o.value))})}),(h,m)=>(H(),Se(k($o),{ref:k(s),"as-child":h.asChild,as:h.as,"data-dismissable-layer":"",style:yr({pointerEvents:l.value?u.value?"auto":"none":void 0}),onFocusCapture:k(d).onFocusCapture,onBlurCapture:k(d).onBlurCapture,onPointerdownCapture:k(f).onPointerDownCapture},{default:_e(()=>[St(h.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),bh="focusScope.autoFocusOnMount",wh="focusScope.autoFocusOnUnmount",MS={bubbles:!1,cancelable:!0};function Uue(e,{select:t=!1}={}){const n=_s();for(const r of e)if(Ws(r,{select:t}),_s()!==n)return!0}function jue(e){const t=wD(e),n=OS(t,e),r=OS(t.reverse(),e);return[n,r]}function wD(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function OS(e,t){for(const n of e)if(!Yue(n,{upTo:t}))return n}function Yue(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Wue(e){return e instanceof HTMLInputElement&&"select"in e}function Ws(e,{select:t=!1}={}){if(e&&e.focus){const n=_s();e.focus({preventScroll:!0}),e!==n&&Wue(e)&&t&&e.select()}}const Vue=rue(()=>pe([]));function zue(){const e=Vue();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=AS(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=AS(e.value,t),(n=e.value[0])==null||n.resume()}}}function AS(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function que(e){return e.filter(t=>t.tagName!=="A")}const Kue=ke({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,r=t,{currentRef:s,currentElement:o}=Mr(),i=pe(null),a=zue(),c=qt({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Sr(u=>{if(!bi)return;const f=o.value;if(!n.trapped)return;function d(v){if(c.paused||!f)return;const g=v.target;f.contains(g)?i.value=g:Ws(i.value,{select:!0})}function p(v){if(c.paused||!f)return;const g=v.relatedTarget;g!==null&&(f.contains(g)||Ws(i.value,{select:!0}))}function h(v){f.contains(i.value)||Ws(f)}document.addEventListener("focusin",d),document.addEventListener("focusout",p);const m=new MutationObserver(h);f&&m.observe(f,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",p),m.disconnect()})}),Sr(async u=>{const f=o.value;if(await Pt(),!f)return;a.add(c);const d=_s();if(!f.contains(d)){const p=new CustomEvent(bh,MS);f.addEventListener(bh,h=>r("mountAutoFocus",h)),f.dispatchEvent(p),p.defaultPrevented||(Uue(que(wD(f)),{select:!0}),_s()===d&&Ws(f))}u(()=>{f.removeEventListener(bh,m=>r("mountAutoFocus",m));const p=new CustomEvent(wh,MS),h=m=>{r("unmountAutoFocus",m)};f.addEventListener(wh,h),f.dispatchEvent(p),setTimeout(()=>{p.defaultPrevented||Ws(d??document.body,{select:!0}),f.removeEventListener(wh,h),a.remove(c)},0)})});function l(u){if(!n.loop&&!n.trapped||c.paused)return;const f=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,d=_s();if(f&&d){const p=u.currentTarget,[h,m]=jue(p);h&&m?!u.shiftKey&&d===m?(u.preventDefault(),n.loop&&Ws(h,{select:!0})):u.shiftKey&&d===h&&(u.preventDefault(),n.loop&&Ws(m,{select:!0})):d===p&&u.preventDefault()}}return(u,f)=>(H(),Se(k($o),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:l},{default:_e(()=>[St(u.$slots,"default")]),_:3},8,["as-child","as"]))}});function Gue(e){return e?"open":"closed"}const SD=ke({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=Io(),{forwardRef:o,currentElement:i}=Mr();return s.titleId||(s.titleId=DS(void 0,"radix-vue-dialog-title")),s.descriptionId||(s.descriptionId=DS(void 0,"radix-vue-dialog-description")),en(()=>{s.contentElement=i,_s()!==document.body&&(s.triggerElement.value=_s())}),(a,c)=>(H(),Se(k(Kue),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:c[5]||(c[5]=l=>r("openAutoFocus",l)),onUnmountAutoFocus:c[6]||(c[6]=l=>r("closeAutoFocus",l))},{default:_e(()=>[Q(k(Bue),Qt({id:k(s).contentId,ref:k(o),as:a.as,"as-child":a.asChild,"disable-outside-pointer-events":a.disableOutsidePointerEvents,role:"dialog","aria-describedby":k(s).descriptionId,"aria-labelledby":k(s).titleId,"data-state":k(Gue)(k(s).open.value)},a.$attrs,{onDismiss:c[0]||(c[0]=l=>k(s).onOpenChange(!1)),onEscapeKeyDown:c[1]||(c[1]=l=>r("escapeKeyDown",l)),onFocusOutside:c[2]||(c[2]=l=>r("focusOutside",l)),onInteractOutside:c[3]||(c[3]=l=>r("interactOutside",l)),onPointerDownOutside:c[4]||(c[4]=l=>r("pointerDownOutside",l))}),{default:_e(()=>[St(a.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Xue=ke({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=Io(),o=Py(r),{forwardRef:i,currentElement:a}=Mr();return Cue(a),(c,l)=>(H(),Se(SD,Qt({...n,...k(o)},{ref:k(i),"trap-focus":k(s).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:l[0]||(l[0]=u=>{var f;u.defaultPrevented||(u.preventDefault(),(f=k(s).triggerElement.value)==null||f.focus())}),onPointerDownOutside:l[1]||(l[1]=u=>{const f=u.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0;(f.button===2||d)&&u.preventDefault()}),onFocusOutside:l[2]||(l[2]=u=>{u.preventDefault()})}),{default:_e(()=>[St(c.$slots,"default")]),_:3},16,["trap-focus"]))}}),Jue=ke({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=Py(t);Mr();const s=Io(),o=pe(!1),i=pe(!1);return(a,c)=>(H(),Se(SD,Qt({...n,...k(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=l=>{var u;l.defaultPrevented||(o.value||(u=k(s).triggerElement.value)==null||u.focus(),l.preventDefault()),o.value=!1,i.value=!1}),onInteractOutside:c[1]||(c[1]=l=>{var u;l.defaultPrevented||(o.value=!0,l.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const f=l.target;(u=k(s).triggerElement.value)!=null&&u.contains(f)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.value&&l.preventDefault()})}),{default:_e(()=>[St(a.$slots,"default")]),_:3},16))}}),Fy=ke({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,s=Io(),o=Py(r),{forwardRef:i}=Mr();return(a,c)=>(H(),Se(k(_D),{present:a.forceMount||k(s).open.value},{default:_e(()=>[k(s).modal.value?(H(),Se(Xue,Qt({key:0,ref:k(i)},{...n,...k(o),...a.$attrs}),{default:_e(()=>[St(a.$slots,"default")]),_:3},16)):(H(),Se(Jue,Qt({key:1,ref:k(i)},{...n,...k(o),...a.$attrs}),{default:_e(()=>[St(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Zue=ke({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(e){const t=Io();return Sue(!0),Mr(),(n,r)=>(H(),Se(k($o),{as:n.as,"as-child":n.asChild,"data-state":k(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:_e(()=>[St(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Hy=ke({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=Io(),{forwardRef:n}=Mr();return(r,s)=>{var o;return(o=k(t))!=null&&o.modal.value?(H(),Se(k(_D),{key:0,present:r.forceMount||k(t).open.value},{default:_e(()=>[Q(Zue,Qt(r.$attrs,{ref:k(n),as:r.as,"as-child":r.asChild}),{default:_e(()=>[St(r.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):we("",!0)}}}),By=ke({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(e){const t=e,n=Io();return Mr(),(r,s)=>(H(),Se(k($o),Qt(t,{id:k(n).titleId}),{default:_e(()=>[St(r.$slots,"default")]),_:3},16,["id"]))}}),Uy=ke({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(e){const t=e;Mr();const n=Io();return(r,s)=>(H(),Se(k($o),Qt(t,{id:k(n).descriptionId}),{default:_e(()=>[St(r.$slots,"default")]),_:3},16,["id"]))}}),jy=ke({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return Mr(),(t,n)=>(H(),Se(k($o),{as:t.as,"as-child":t.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:_e(()=>[St(t.$slots,"default")]),_:3},8,["as","as-child"]))}});function RS(e,t=pe({})){return dD(()=>new cD(e.value,t.value))}function Que(e,t=pe({})){return dD(()=>new lD(e.value,t.value))}function PS(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const s=t.toString().split("."),o=n.toString().split("."),i=s[1]&&s[1].length||0,a=o[1]&&o[1].length||0,c=10**Math.max(i,a);t=Math.round(t*c),n=Math.round(n*c),r=e==="+"?t+n:t-n,r/=c}return r}const efe=["value","name","disabled","required"],[tfe,nfe]=Oy("NumberFieldRoot"),Ehe=ke({inheritAttrs:!1,__name:"NumberFieldRoot",props:{defaultValue:{default:void 0},modelValue:{},min:{},max:{},step:{default:1},formatOptions:{},locale:{default:"en-US"},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},asChild:{type:Boolean},as:{default:"div"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{disabled:s,min:o,max:i,step:a,locale:c,formatOptions:l,id:u}=bl(n),f=hD(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),{primitiveElement:d,currentElement:p}=yD(),h=kue(p),m=pe(),v=B(()=>j(f.value)===o.value||(o.value&&!isNaN(f.value)?PS("-",f.value,a.value)j(f.value)===i.value||(i.value&&!isNaN(f.value)?PS("+",f.value,a.value)>i.value:!1));function b(F,R=1){var V;const U=E.parse(((V=m.value)==null?void 0:V.value)??"");n.disabled||(isNaN(U)?f.value=o.value??0:F==="increase"?f.value=j(U+(a.value??1)*R):f.value=j(U-(a.value??1)*R))}function y(F=1){b("increase",F)}function _(F=1){b("decrease",F)}function w(F){F==="min"&&o.value!==void 0?f.value=j(o.value):F==="max"&&i.value!==void 0&&(f.value=j(i.value))}const S=RS(c,l),E=Que(c,l),$=B(()=>S.resolvedOptions().maximumFractionDigits>0?"decimal":"numeric"),T=RS(c,l),x=B(()=>isNaN(f.value)?"":T.format(f.value));function L(F){return E.isValidPartialNumber(F,o.value,i.value)}function M(F){m.value&&(m.value.value=F)}function j(F){let R;return a.value===void 0||isNaN(a.value)?R=tue(F,o.value,i.value):R=nue(F,o.value,i.value,a.value),R=E.parse(S.format(R)),R}function q(F){const R=E.parse(F);return f.value=j(R),F.length?M(x.value):M(F)}return nfe({modelValue:f,handleDecrease:_,handleIncrease:y,handleMinMaxValue:w,inputMode:$,inputEl:m,onInputElement:F=>m.value=F,textValue:x,validate:L,applyInputValue:q,disabled:s,max:i,min:o,isDecreaseDisabled:v,isIncreaseDisabled:g,id:u}),(F,R)=>(H(),Z(Fe,null,[Q(k($o),Qt(F.$attrs,{ref_key:"primitiveElement",ref:d,role:"group",as:F.as,"as-child":F.asChild,"data-disabled":k(s)?"":void 0}),{default:_e(()=>[St(F.$slots,"default",{modelValue:k(f),textValue:x.value})]),_:3},16,["as","as-child","data-disabled"]),k(h)?(H(),Z("input",{key:0,type:"text",tabindex:"-1","aria-hidden":"true",value:k(f),name:n.name,disabled:n.disabled,required:n.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,efe)):we("",!0)],64))}}),khe=ke({__name:"NumberFieldInput",props:{asChild:{type:Boolean},as:{default:"input"}},setup(e){const t=e,{primitiveElement:n,currentElement:r}=yD(),s=tfe();function o(c){c.target===_s()&&(Math.abs(c.deltaY)<=Math.abs(c.deltaX)||(c.preventDefault(),c.deltaY>0?s.handleIncrease():c.deltaY<0&&s.handleDecrease()))}en(()=>{s.onInputElement(r.value)});const i=pe(s.textValue.value);xe(()=>s.textValue.value,()=>{i.value=s.textValue.value},{immediate:!0,deep:!0});function a(){requestAnimationFrame(()=>{i.value=s.textValue.value})}return(c,l)=>(H(),Se(k($o),Qt(t,{id:k(s).id.value,ref_key:"primitiveElement",ref:n,value:i.value,role:"spinbutton",type:"text",tabindex:"0",inputmode:k(s).inputMode.value,disabled:k(s).disabled.value?"":void 0,"data-disabled":k(s).disabled.value?"":void 0,autocomplete:"off",autocorrect:"off",spellcheck:"false","aria-roledescription":"Number field","aria-valuenow":k(s).modelValue.value,"aria-valuemin":k(s).min.value,"aria-valuemax":k(s).max.value,onKeydown:[l[0]||(l[0]=ss(Lo(u=>k(s).handleIncrease(),["prevent"]),["up"])),l[1]||(l[1]=ss(Lo(u=>k(s).handleDecrease(),["prevent"]),["down"])),l[2]||(l[2]=ss(Lo(u=>k(s).handleIncrease(10),["prevent"]),["page-up"])),l[3]||(l[3]=ss(Lo(u=>k(s).handleDecrease(10),["prevent"]),["page-down"])),l[4]||(l[4]=ss(Lo(u=>k(s).handleMinMaxValue("min"),["prevent"]),["home"])),l[5]||(l[5]=ss(Lo(u=>k(s).handleMinMaxValue("max"),["prevent"]),["end"])),l[8]||(l[8]=ss(u=>{var f;return k(s).applyInputValue((f=u.target)==null?void 0:f.value)},["enter"]))],onWheel:o,onBeforeinput:l[6]||(l[6]=u=>{const f=u.target;let d=f.value.slice(0,f.selectionStart??void 0)+(u.data??"")+f.value.slice(f.selectionEnd??void 0);k(s).validate(d)||u.preventDefault()}),onInput:l[7]||(l[7]=u=>{const f=u.target;i.value=f.value}),onChange:a,onBlur:l[9]||(l[9]=u=>{var f;return k(s).applyInputValue((f=u.target)==null?void 0:f.value)})}),{default:_e(()=>[St(c.$slots,"default")]),_:3},16,["id","value","inputmode","disabled","data-disabled","aria-valuenow","aria-valuemin","aria-valuemax"]))}});function rfe(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}rfe();var Sh={exports:{}},Eh={exports:{}},LS;function sfe(){return LS||(LS=1,function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],s=0,o=0;s>>5]|=n[s]<<24-o%32;return r},wordsToBytes:function(n){for(var r=[],s=0;s>>5]>>>24-s%32&255);return r},bytesToHex:function(n){for(var r=[],s=0;s>>4).toString(16)),r.push((n[s]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],s=0;s>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],s=0,o=0;s>>6-o*2);return r}};Eh.exports=t}()),Eh.exports}var kh,NS;function FS(){if(NS)return kh;NS=1;var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],r=0;r * @license MIT */var Th,HS;function ofe(){if(HS)return Th;HS=1,Th=function(n){return n!=null&&(e(n)||t(n)||!!n._isBuffer)};function e(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function t(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&e(n.slice(0,0))}return Th}var BS;function ife(){return BS||(BS=1,function(){var e=sfe(),t=FS().utf8,n=ofe(),r=FS().bin,s=function(o,i){o.constructor==String?i&&i.encoding==="binary"?o=r.stringToBytes(o):o=t.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var a=e.bytesToWords(o),c=o.length*8,l=1732584193,u=-271733879,f=-1732584194,d=271733878,p=0;p>>24)&16711935|(a[p]<<24|a[p]>>>8)&4278255360;a[c>>>5]|=128<>>9<<4)+14]=c;for(var h=s._ff,m=s._gg,v=s._hh,g=s._ii,p=0;p>>0,u=u+y>>>0,f=f+_>>>0,d=d+w>>>0}return e.endian([l,u,f,d])};s._ff=function(o,i,a,c,l,u,f){var d=o+(i&a|~i&c)+(l>>>0)+f;return(d<>>32-u)+i},s._gg=function(o,i,a,c,l,u,f){var d=o+(i&c|a&~c)+(l>>>0)+f;return(d<>>32-u)+i},s._hh=function(o,i,a,c,l,u,f){var d=o+(i^a^c)+(l>>>0)+f;return(d<>>32-u)+i},s._ii=function(o,i,a,c,l,u,f){var d=o+(a^(i|~c))+(l>>>0)+f;return(d<>>32-u)+i},s._blocksize=16,s._digestsize=16,Sh.exports=function(o,i){if(o==null)throw new Error("Illegal argument "+o);var a=e.wordsToBytes(s(o,i));return i&&i.asBytes?a:i&&i.asString?r.bytesToString(a):e.bytesToHex(a)}}()),Sh.exports}var afe=ife();const cfe=an(afe);function lfe(e,t,n,r,s=void 0){const o="https://app.bokabord.se/reservation/?",i={amount:n,app_type:"bokabord",date:r,from_url:"bokabord_fat",hash:e,is_bokabord_web:"Y",mealid:t,time:s,hd_meal:t?cfe(t):void 0};return`${o}${OF(i)}`}function ufe(e,t,n,r,s=void 0){return[e,t,n,r,s].filter(o=>o).join(";")}function ffe(e=null){const t=(e==null?void 0:e.split(";"))??[];return{hash:t[0]||void 0,mealid:t[1]||void 0,amount:t[2]||void 0,date:t[3]||void 0,time:t[4]||void 0}}function _g(e,t,n,r,s=void 0){const o=Et(),i=lt(),a=ufe(e,t,n,r,s);i.push({query:{...o.query,widget:a}})}function dfe(){const e=Et();lt().push({query:{...e.query,widget:void 0}})}const pfe=["src"],hfe={__name:"index",setup(e){const t=Et();lt();const n=pe(!1),r=B(()=>{var c;const a=ffe((c=t.query)==null?void 0:c.widget);return lfe(a.hash,a.mealid,a.amount,a.date,a.time)}),s=()=>{n.value=!0},o=()=>{n.value=!1,dfe()},i=a=>{a.data==="closeWaiteraidFrame"&&o()};return en(()=>{var a;(a=t.query)!=null&&a.widget&&s(),window.addEventListener("message",i,!1),Ls(()=>{window.removeEventListener("message",i)})}),xe(()=>{var a;return(a=t.query)==null?void 0:a.widget},()=>{var a;(a=t.query)!=null&&a.widget&&s()}),xe(()=>n.value,()=>{var a;(a=t.query)!=null&&a.widget&&n.value===!1&&o()}),(a,c)=>{const l=By,u=Uy,f=jy,d=Fy,p=Hy,h=Ny,m=Ly;return H(),Se(m,{open:k(n),"onUpdate:open":c[0]||(c[0]=v=>ze(n)?n.value=v:null)},{default:_e(()=>[Q(h,null,{default:_e(()=>[Q(d,{class:"modal-content"},{default:_e(()=>[Q(f,null,{default:_e(()=>[Q(l,{as:"p"}),Q(u)]),_:1}),Y("iframe",{src:k(r),frameborder:"0",height:"100%",scrolling:"auto",title:"Boka bord",width:"100%"},null,8,pfe)]),_:1}),Q(p,{class:"modal-overlay"})]),_:1})]),_:1},8,["open"])}}},mfe=kt(hfe,[["__scopeId","data-v-761fef51"]]),gfe=["src","alt"],vfe={__name:"Image",props:{src:String,alt:String},setup(e){return(t,n)=>(H(),Z("img",{class:"block w-full h-full object-cover",src:e.src,alt:e.alt,width:"auto",height:"auto",loading:"lazy"},null,8,gfe))}},yfe={class:"bg-mist rounded p-4 grid gap-2 md:gap-2 md:flex md:items-center"},_fe={class:"grid gap-2 flex-1"},bfe={class:"grid gap-1"},wfe=["innerHTML"],Sfe=["innerHTML"],Efe={class:"text-sm"},kfe={__name:"Meal",props:{restaurant:{type:Object,default:()=>{}},meal:{type:Object,default:()=>{}}},setup(e){return(t,n)=>(H(),Z("div",yfe,[Y("div",_fe,[Y("div",bfe,[Y("p",{class:"font-bold text-lg md:text-xl",innerHTML:e.meal.name},null,8,wfe),Y("div",{class:"text-sm md:text-base line-clamp-3",innerHTML:e.meal.description},null,8,Sfe)])]),Y("div",Efe,[Y("button",{class:"button-coral",onClick:n[0]||(n[0]=r=>("useOpenWidget"in t?t.useOpenWidget:k(_g))(e.restaurant.hash,e.meal.id))},De(t.$t("shared.bookTable")),1)])]))}},Tfe={class:"rounded-sm grid gap-2"},$fe={__name:"Meals",props:{restaurant:{type:Object,default:()=>{}}},setup(e){const t=Et(),n=us();pn();const r=e,s=B(()=>{var i,a;return(a=(i=t.query)==null?void 0:i.mealIds)==null?void 0:a.split(",")}),o=B(()=>{var i,a,c,l,u,f;return(f=(u=(l=(c=(a=(i=r.restaurant)==null?void 0:i.meals)==null?void 0:a.filter(d=>(d==null?void 0:d.type)!==8))==null?void 0:c.filter(d=>s.value?s.value.includes(d.id.toString()):!0))==null?void 0:l.filter(d=>d==null?void 0:d.name))==null?void 0:u.filter(d=>!(d!=null&&d.startDate)||n(d==null?void 0:d.startDate).diff(n(),"days")<42))==null?void 0:f.slice(0,15)});return(i,a)=>{const c=kfe;return H(),Z("div",{class:"meal",key:e.restaurant.id},[Y("div",Tfe,[(H(!0),Z(Fe,null,At(k(o),l=>(H(),Se(c,{key:l.id,restaurant:e.restaurant,meal:l},null,8,["restaurant","meal"]))),128))])])}}},Ife=kt($fe,[["__scopeId","data-v-08d9e87e"]]),xfe={key:0,class:"text-sm opacity-60"},Cfe={key:1,class:"opening-hours__list"},Dfe={key:0},Mfe={key:1},Ofe=["innerHTML"],Afe={key:3,class:"text-right"},Rfe=["innerHTML"],Pfe={__name:"OpeningHours",props:{restaurant:{type:Object,default:()=>{}}},setup(e){const{t}=bo(),n=e,r=o=>o.filter(a=>a.times.length).length?o.filter(a=>a.day).sort((a,c)=>a.day-c.day).reduce((a,c)=>{const l=a.slice(-1)[0],u=(a==null?void 0:a.length)-1;return JSON.stringify(l==null?void 0:l.times)!==JSON.stringify(c==null?void 0:c.times)?a.push({from:c.day,until:c.day,open:c.times.length,times:c.times,time:c.times.map(f=>f.open+" - "+(f.close||t("restaurant.openingHours.late")))}):a[u]={...l,until:c.day},a},[]):!1,s=B(()=>r(n.restaurant.openingHours));return(o,i)=>(H(),Z("div",{class:"opening-hours",key:e.restaurant.id},[k(s)?we("",!0):(H(),Z("div",xfe,De(o.$t("restaurant.openingHours.noData",e.restaurant)),1)),k(s)?(H(),Z("div",Cfe,[(H(!0),Z(Fe,null,At(k(s),a=>(H(),Z("div",{key:a.from,class:"opening-hours__row"},[a.from===a.until?(H(),Z("div",Dfe,De(o.$t(`shared.days.${a.from}`)),1)):(H(),Z("div",Mfe,De(o.$t(`shared.days.${a.from}`).slice(0,3))+"-"+De(o.$t(`shared.days.${a.until}`).slice(0,3)),1)),a.open?(H(),Z("div",Afe,[(H(!0),Z(Fe,null,At(a.time,c=>(H(),Z("div",{key:c,innerHTML:c},null,8,Rfe))),128))])):(H(),Z("div",{key:2,class:"text-right",innerHTML:o.$t("restaurant.openingHours.closed")},null,8,Ofe))]))),128))])):we("",!0)]))}},Lfe=kt(Pfe,[["__scopeId","data-v-b637005e"]]),Nfe={class:"map"},Ffe=["href"],Hfe=["src"],Bfe={__name:"Map",props:{lat:Number,lon:Number,pin:{type:Boolean,default:!0},zoom:{type:Number,default:14},opacity:{type:Number,default:100}},setup(e){const t=e,n=Pd("locale"),r=`${t.lat},${t.lon}`,s=B(()=>`https://maps.google.com/maps?q=${r}&hl=${n}&z=${t.zoom}&output=embed`),o=B(()=>`https://www.google.com/maps/place/${r}`);return(i,a)=>{const c=Wn;return H(),Z("div",Nfe,[e.pin?(H(),Z("a",{key:0,class:"map__pin",href:k(o),target:"_blank"},[Q(c,{class:"map__icon",name:"location-dot-solid"}),a[0]||(a[0]=Y("div",{class:"map__fill"},null,-1))],8,Ffe)):we("",!0),Y("iframe",{class:"map__iframe",style:yr({opacity:e.opacity}),width:"100%",height:"100%",src:k(s),frameborder:"0",scrolling:"no",marginheight:"0",marginwidth:"0"},null,12,Hfe)])}}},ED=kt(Bfe,[["__scopeId","data-v-ce93b256"]]),Ufe={class:"aspect-square sm:aspect-video bg-sand text-coral rounded overflow-hidden"},jfe={class:"absolute z-10 bottom-4 right-4 bg-white rounded"},Yfe=["href"],Wfe={__name:"Map",props:{restaurant:{type:Object,default:()=>{}}},setup(e){var s,o,i,a;const t=e,n=`${(o=(s=t.restaurant)==null?void 0:s.location)==null?void 0:o.lat},${(a=(i=t.restaurant)==null?void 0:i.location)==null?void 0:a.lon}`,r=B(()=>`https://www.google.com/maps/place/${n}`);return(c,l)=>{var f,d;const u=ED;return H(),Z("div",{class:"relative",key:e.restaurant.id},[Y("div",Ufe,[Q(u,{lat:(f=e.restaurant.location)==null?void 0:f.lat,lon:(d=e.restaurant.location)==null?void 0:d.lon,zoom:14},null,8,["lat","lon"])]),Y("div",jfe,[Y("a",{class:"button-coral text-xs",href:k(r),target:"_blank"},De(c.$t("restaurant.map.button")),9,Yfe)])])}}},Vfe={class:"contact"},zfe={class:"contact__list"},qfe=["href"],Kfe={class:"grid gap-2 leading-6"},Gfe={class:"text-sm md:text-base font-medium"},Xfe={class:"text-sm md:text-base"},Jfe={class:"text-sm md:text-base"},Zfe={class:"grid gap-3"},Qfe=["href"],ede={class:"text-sm md:text-base"},tde=["href"],nde={class:"text-sm md:text-base"},rde=["href"],sde={class:"text-sm md:text-base"},ode={class:"grid gap-3"},ide=["href"],ade=["href"],cde=["href"],lde={__name:"Contact",props:{restaurant:{type:Object,default:()=>{}}},setup(e){var u,f,d,p;const t=e,n=`${(f=(u=t.restaurant)==null?void 0:u.location)==null?void 0:f.lat},${(p=(d=t.restaurant)==null?void 0:d.location)==null?void 0:p.lon}`,r=B(()=>`https://www.google.com/maps/place/${n}`),s=B(()=>{var h,m,v,g;return(m=(h=t.restaurant)==null?void 0:h.email)!=null&&m.trim()?`mailto:${(g=(v=t.restaurant)==null?void 0:v.email)==null?void 0:g.trim()}`:""}),o=B(()=>{var h,m,v,g;return(m=(h=t.restaurant)==null?void 0:h.phone)!=null&&m.trim()?`tel:${(g=(v=t.restaurant)==null?void 0:v.phone.replace(/ /g,""))==null?void 0:g.trim()}`:""}),i=B(()=>{var h,m,v,g;return(m=(h=t.restaurant)==null?void 0:h.website)!=null&&m.trim()?(g=(v=t.restaurant)==null?void 0:v.website)==null?void 0:g.trim():""}),a=B(()=>{var h,m,v,g,b,y;return(v=(m=(h=t.restaurant)==null?void 0:h.socialMedia)==null?void 0:m.instagram)!=null&&v.trim()?`${(y=(b=(g=t.restaurant)==null?void 0:g.socialMedia)==null?void 0:b.instagram)==null?void 0:y.trim()}`:""}),c=B(()=>{var h,m,v,g,b,y;return(v=(m=(h=t.restaurant)==null?void 0:h.socialMedia)==null?void 0:m.facebook)!=null&&v.trim()?`${(y=(b=(g=t.restaurant)==null?void 0:g.socialMedia)==null?void 0:b.facebook)==null?void 0:y.trim()}`:""}),l=B(()=>{var h,m,v,g,b;return(v=(m=(h=t.restaurant)==null?void 0:h.socialMedia)==null?void 0:m.spotify)!=null&&v.trim()?`https://open.spotify.com/playlist/${(b=(g=t.restaurant)==null?void 0:g.socialMedia)==null?void 0:b.spotify.trim()}`:""});return(h,m)=>{const v=Wn;return H(),Z("div",Vfe,[Y("div",zfe,[Y("a",{href:k(r),class:"contact__item",target:"_blank"},[Q(v,{name:"location-dot",class:"text-lg w-6 text-coral"}),Y("span",Kfe,[Y("span",Gfe,De(e.restaurant.name),1),Y("span",Xfe,De(e.restaurant.address),1),Y("span",Jfe,De(e.restaurant.city),1)])],8,qfe),Y("div",Zfe,[k(s)?(H(),Z("a",{key:0,href:k(s),class:"contact__item",target:"_blank"},[Q(v,{name:"envelope",class:"text-lg w-6 text-coral"}),Y("span",ede,De(e.restaurant.email),1)],8,Qfe)):we("",!0),k(o)?(H(),Z("a",{key:1,href:k(o),class:"contact__item",target:"_blank"},[Q(v,{name:"mobile",class:"text-lg w-6 text-coral"}),Y("span",nde,De(e.restaurant.phone),1)],8,tde)):we("",!0),k(i)?(H(),Z("a",{key:2,href:k(i),class:"contact__item",target:"_blank"},[Q(v,{name:"browser",class:"text-lg w-6 text-coral"}),Y("span",sde,De(e.restaurant.website),1)],8,rde)):we("",!0)]),Y("div",ode,[k(a)?(H(),Z("a",{key:0,href:k(a),class:"contact__item",target:"_blank"},[Q(v,{name:"instagram",class:"text-lg w-6 text-coral"}),m[0]||(m[0]=Y("span",{class:"text-sm md:text-base"},"Instagram",-1))],8,ide)):we("",!0),k(c)?(H(),Z("a",{key:1,href:k(c),class:"contact__item",target:"_blank"},[Q(v,{name:"facebook",class:"text-lg w-6 text-coral"}),m[1]||(m[1]=Y("span",{class:"text-sm md:text-base"},"Facebook",-1))],8,ade)):we("",!0),k(l)?(H(),Z("a",{key:2,href:k(l),class:"contact__item",target:"_blank"},[Q(v,{name:"spotify",class:"text-lg w-6 text-coral"}),m[2]||(m[2]=Y("span",{class:"text-sm md:text-base"},"Spotify",-1))],8,cde)):we("",!0)])])])}}},ude=kt(lde,[["__scopeId","data-v-fd95d8d4"]]),fde={class:"flex flex-col h-full"},dde={class:"flex items-center gap-2 px-2 py-1 bg-black/60 rounded-md opacity-80 transition-all duration-300 md:hover:opacity-100"},pde={class:"text-sm text-white"},hde={class:"flex-1 overflow-y-auto no-scrollbar relative z-10"},mde=ke({__name:"Modal",setup(e){const t=Et(),n=lt(),r=pe(!1);return en(()=>{var s;r.value=!!((s=t.query)!=null&&s.restId)}),xe(()=>t.query,()=>{var s;r.value=!!((s=t.query)!=null&&s.restId)}),xe(()=>r.value,()=>{r.value||n.push({query:{...t.query,restId:void 0,mealIds:void 0,mealTypes:void 0}})}),(s,o)=>{const i=By,a=Uy,c=jy,l=Fy,u=Hy,f=Ny,d=Ly;return H(),Z("div",null,[Q(d,{open:k(r),"onUpdate:open":o[1]||(o[1]=p=>ze(r)?r.value=p:null)},{default:_e(()=>[Q(f,null,{default:_e(()=>[Q(l,{class:"modal-content"},{default:_e(()=>[Q(c,null,{default:_e(()=>[Q(i,{as:"p"}),Q(a)]),_:1}),Y("div",fde,[Y("div",{class:"absolute z-20 top-2 right-2 text-white",onClick:o[0]||(o[0]=p=>r.value=!1)},[Y("button",dde,[Y("span",pde,De(s.$t("shared.close")),1)])]),Y("div",hde,[St(s.$slots,"default",{},void 0,!0)])])]),_:3}),Q(u,{class:"modal-overlay"})]),_:3})]),_:3},8,["open"])])}}}),gde=kt(mde,[["__scopeId","data-v-0bb5f4cb"]]);function The(e,t=void 0){const n=Et();Mt({query:{...n.query,restId:e,mealIds:t}})}function vde(e,t,n,r="fill",s="upload"){const o="https://res.cloudinary.com/foodfriends/image",i="f_auto",a="q_auto",c=s==="upload"?`restaurant/${e}`:e,l=t&&n?`w_${t},h_${n}`:t?`w_${t}`:n?`h_${n}`:"";return`${o}/${s}/${l},c_${r},${i},${a}/${c}`}function yde(e){var t;return(t=e[0])!=null&&t.tags?e==null?void 0:e.flatMap(n=>n.tags.map(r=>({...r,groupId:n.id}))):e}function $he(e,t=3){const n=yde(e),r=n.filter(i=>i.groupId===2)||[],s=(r==null?void 0:r.filter(i=>i.id!==83))||[],o=n.filter(i=>i.groupId===3)||[];return[...s==null?void 0:s.slice(0,1),...o].slice(0,t)}function Ihe(e,t){const n=Vb(t||""),r=Vb((e==null?void 0:e.name)||""),s=e.rank;return n.length,n.length===1?r.startsWith(n):n.length===2?r.includes(n)&&s>120||r.startsWith(n):r.includes(n)}function xhe(e,t){return e!==t?`${e}-${t}`:e}function Che(e,t){const{t:n}=bo();return e!==t?`${e}-${t} ${n("shared.amount")}`:n("shared.amount",t)}function Dhe(e){var o,i,a,c,l,u;const{t}=bo(),n=[1,2,3,4,5,6,7].filter(f=>!(e!=null&&e.includes(f)));if(!e)return;if(e.length===0)return t("shared.allDays");if(e.length===6)return t(`shared.days.${n[0]}`);if(e.length===1&&![1,2].includes(e[0])){const f=(o=t(`shared.days.${e[0]}`))==null?void 0:o.toLowerCase();t("shared.allDaysExcept",{day:f})}const r={7:"1-6",1:"2-7","6,7":"1-5","1,7":"2-6","1,2,3,4,5":"6-7","1,2,3,4":"5-7","5,6,7":"1-4","3,4,5,6,7":"1-2","4,5,6,7":"1-3","1,2,3,7":"2-6","1,2,7":"3-6"},s=(i=e.sort((f,d)=>f-d))==null?void 0:i.join(",");return r[s]?(l=(c=(a=r[s])==null?void 0:a.split("-"))==null?void 0:c.map(f=>t(`shared.days.${f}`)))==null?void 0:l.join("-"):(u=n==null?void 0:n.map(f=>t(`shared.days.${f}`)))==null?void 0:u.join(", ")}const _de={key:0},bde={class:"aspect-video bg-sand relative z-40"},wde={class:"p-4 md:px-6 grid gap-8"},Sde={class:"grid gap-2"},Ede={class:"grid gap-1"},kde=["innerHTML"],Tde={class:"flex items-center gap-2"},$de={key:0,class:"bg-mist px-2 rounded-full text-xs py-0.5 border"},Ide=["innerHTML"],xde=["innerHTML"],Cde=["innerHTML"],Dde={key:2,class:"mt-4"},Mde={class:"flex items-center gap-4 text-sm max-w-sm"},Ode={class:"text-sm flex items-center gap-2 mt-4"},Ade={class:"grid gap-8"},Rde={__name:"index",setup(e){const t=Et(),n=pe(null),r=pe(null),s=pe(null),o=()=>{var a,c;n.value=parseInt((a=t.query)==null?void 0:a.restId)||void 0,r.value=((c=t.query)==null?void 0:c.mealIds)??void 0},i=async()=>{if(n.value){const a=await $fetch(`/restaurants/${n.value}`,{key:"preview-payload",baseURL:Pd("apiBase"),mealTypes:B(()=>{var c;return((c=t.query)==null?void 0:c.mealTypes)||void 0})});s.value=a==null?void 0:a.data}};return en(()=>{o(),i()}),xe(()=>t.query,()=>{var l,u,f,d;const a=((l=t.query)==null?void 0:l.restId)&&parseInt((u=t.query)==null?void 0:u.restId)!==n.value,c=((f=t.query)==null?void 0:f.mealIds)&&((d=t.query)==null?void 0:d.mealIds)!==r.value;(a||c)&&(o(),i())}),(a,c)=>{const l=vfe,u=Wn,f=La,d=Ife,p=Lfe,h=Wfe,m=ude,v=gde;return H(),Se(v,null,{default:_e(()=>{var g,b,y;return[((g=k(s))==null?void 0:g.id)===k(n)&&((b=k(s))!=null&&b.name)?(H(),Z("div",_de,[Y("div",bde,[Q(l,{class:"object-cover",src:("useCloudinaryImage"in a?a.useCloudinaryImage:k(vde))(k(s).cover,900,600),alt:k(s).name},null,8,["src","alt"])]),Y("div",wde,[Y("div",Sde,[Y("div",Ede,[Y("h2",{class:"font-heading font-medium text-2xl md:text-3xl lg:text-4xl",innerHTML:k(s).name},null,8,kde),Y("div",Tde,[Q(u,{name:"location-dot",class:"text-coral"}),k(s).distance?(H(),Z("p",$de,De(k(s).distance)+"km",1)):we("",!0),Y("p",{class:"text-sm opacity-60 line-clamp-1",innerHTML:[k(s).address,k(s).city].join(", ")},null,8,Ide)])]),k(s).shortDescription?(H(),Z("p",{key:0,class:"font-bold leading-tight",innerHTML:k(s).shortDescription},null,8,xde)):we("",!0),k(r)?we("",!0):(H(),Z("p",{key:1,class:"text-sm",innerHTML:k(s).longDescription},null,8,Cde)),k(r)?we("",!0):(H(),Z("div",Dde,[Y("div",Mde,[Y("button",{class:"button-coral w-1/2",onClick:c[0]||(c[0]=_=>("useOpenWidget"in a?a.useOpenWidget:k(_g))(k(s).hash))},De(a.$t("shared.bookTable")),1),!k(r)&&((y=k(s).settings)!=null&&y.giftcardsEnabled)?(H(),Z("button",{key:0,class:"button-coral-outline w-1/2",onClick:c[1]||(c[1]=_=>("useOpenWidget"in a?a.useOpenWidget:k(_g))(k(s).hash))},De(a.$t("shared.buyGiftcard")),1)):we("",!0)])])),Y("p",Ode,[Q(u,{name:"circle-chevron-right",class:"text-coral"}),Q(f,{class:"underline decoration-coral",to:{name:"restaurants-slug",params:{slug:k(s).slug}}},{default:_e(()=>{var _;return[ci(De(a.$t("shared.moreAboutRest",{name:(_=k(s))==null?void 0:_.name})),1)]}),_:1},8,["to"])])]),Y("div",Ade,[Q(d,{restaurant:k(s)},null,8,["restaurant"]),k(r)?we("",!0):(H(),Se(p,{key:0,restaurant:k(s)},null,8,["restaurant"])),k(r)?we("",!0):(H(),Se(h,{key:1,restaurant:k(s)},null,8,["restaurant"])),k(r)?we("",!0):(H(),Se(m,{key:2,restaurant:k(s)},null,8,["restaurant"]))])])])):we("",!0)]}),_:1})}}},Pde=kt(Rde,[["__scopeId","data-v-7ada5e71"]]),Lde={},Nde={role:"status",class:"spinner"};function Fde(e,t){return H(),Z("div",Nde,t[0]||(t[0]=[Y("svg",{"aria-hidden":"true",class:"icon",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Y("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),Y("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),Y("span",{class:"text"},"Loading",-1)]))}const Hde=kt(Lde,[["render",Fde],["__scopeId","data-v-47a48417"]]),Bde={__name:"Switch",props:{active:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},spinner:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const r=Hde;return H(),Z("div",{class:Re(["switch",{active:e.active}])},[Y("div",{class:Re(["switch__pill",{active:e.active}])},[e.spinner?(H(),Se(r,{key:0,class:Re(["switch__spinner",{loading:e.loading,active:e.active,coral:e.active,white:!e.active}])},null,8,["class"])):we("",!0)],2)],2)}}},Ude=kt(Bde,[["__scopeId","data-v-d1dc754c"]]),jde={__name:"Location",setup(e){const t=Et();lt();const n=pn(),r=Ad(),s=pe(!1),o=()=>{n.hasUserLocation?i():a()},i=()=>{r.resetLocation(),n.latitude=null,n.longitude=null},a=async()=>{s.value=!0,await r.getLocation(),await MF(500),s.value=!1,r.allowLocation&&c()},c=()=>{const l=`${r.latitude},${r.longitude},${n.distance}`;t.name.startsWith("fat")?zr({location:l,locationModal:void 0}):(n.latitude=r.latitude,n.longitude=r.longitude,n.distance=3e3)};return(l,u)=>{const f=Ude;return H(),Z("button",{onClick:u[0]||(u[0]=d=>o())},[Q(f,{active:k(n).hasUserLocation,loading:k(s),spinner:!0},null,8,["active","loading"])])}}},Yde=kt(jde,[["__scopeId","data-v-090e3318"]]),Wde={class:"bg-sand/20 rounded-md overflow-hidden"},Vde={key:0,class:"h-32 w-full bg-black text-coral"},zde={class:"p-4 py-3"},qde={class:"flex items-center justify-between"},Kde={class:"-mt-1"},Gde=["innerHTML"],Xde=["innerHTML"],Jde={key:0,class:"text-sm text-red-600"},Zde={__name:"index",setup(e){const t=pn(),n=Ad(),r=B(()=>{switch(t.distance){case 1e3:return 15;case 3e3:return 14;case 5e3:return 13;case 1e4:return 12;default:return 12}});return(s,o)=>{const i=ED,a=Yde,c=Ns("auto-animate");return Un((H(),Z("div",Wde,[k(n).hasLocation?(H(),Z("div",Vde,[Q(i,{lat:k(n).latitude,lon:k(n).longitude,zoom:k(r)},null,8,["lat","lon","zoom"])])):we("",!0),Un((H(),Z("div",zde,[Y("div",qde,[Y("div",Kde,[Y("h2",{class:"font-medium",innerHTML:s.$t("fat.geo.heading")},null,8,Gde),Y("p",{class:"text-xs opacity-60",innerHTML:s.$t("fat.geo.leading")},null,8,Xde)]),Q(a)]),k(n).allowLocation===!1?(H(),Z("div",Jde,De(s.$t("fat.geo.error")),1)):we("",!0)])),[[c]])])),[[c]])}}},Qde=kt(Zde,[["__scopeId","data-v-882e9dee"]]),epe={key:0,class:""},tpe={class:"mb-2 text-lg font-bold"},npe={class:"grid grid-cols-3 gap-2"},rpe=["onClick"],spe={class:"relative z-20"},ope=["innerHTML"],ipe=["innerHTML"],ape={__name:"PopularCities",setup(e){const t=Et(),n=cr(),r=pn(),s=o=>{const i=UT(o),a=["restaurants","restaurants-city","restaurants-city-tag","events","events-city","events-city-tag","offers","offers-city","giftcards","giftcards-city"],c=t.name.split("-")[0]+"-city",l=t.path.split("/")[1]??null;return n.categories.find(u=>u.slug===l),t.name.startsWith("fat")||t.name==="res-req"?(r.cityId=parseInt(o),Mt({query:{...t.query,cityId:o,drawer:void 0,location:void 0,locationModal:void 0}})):i&&a.includes(t.name)?(r.cityId=parseInt(o),Mt({name:c,params:{city:fa(i.name)},query:{...t.query,drawer:void 0,location:void 0,locationModal:void 0}})):(r.cityId=parseInt(o),Mt({path:`/${i.slug}`,query:{...t.query,drawer:void 0,location:void 0,locationModal:void 0}}))};return(o,i)=>{const a=Wn;return k(n).cities?(H(),Z("div",epe,[Y("p",tpe,De(o.$t("fat.location.headingPopular")),1),Y("div",npe,[(H(!0),Z(Fe,null,At(k(n).cities.slice(0,3),c=>(H(),Z("div",{key:c.id},[Y("div",{class:Re(["rounded-md bg-mist text-center overflow-hidden transition-all hover:bg-coral hover:text-white group",{"!bg-coral !text-white":k(r).cityId===c.id&&(!k(r).location||!k(t).name.startsWith("fat"))}])},[Y("div",{class:"relative flex flex-col justify-center cursor-pointer h-32 py-3",onClick:l=>s(c.id)},[Y("div",spe,[Y("div",{class:Re(["text-2xl my-2 text-coral transition-all group-hover:text-white",{"!text-white":k(r).cityId===c.id&&(!k(r).location||!k(t).name.startsWith("fat"))}])},[Q(a,{name:"location-dot"})],2),Y("div",{class:"font-medium text-lg",innerHTML:c.restaurants},null,8,ope),Y("div",{class:"font-medium text-sm",innerHTML:c.name},null,8,ipe)])],8,rpe)],2)]))),128))])])):we("",!0)}}},cpe=kt(ape,[["__scopeId","data-v-97fe0f82"]]),lpe={key:0},upe={class:"flex items-center justify-between mb-2"},fpe={class:"text-lg font-bold"},dpe={class:"flex items-center gap-2"},ppe={class:"flex items-center rounded-full border overflow-hidden"},hpe={class:"mb-2 relative"},mpe={class:"absolute left-1.5 top-1/2 -translate-y-1/2 opacity-50"},gpe=["placeholder"],vpe={class:"absolute right-1 top-1/2 -translate-y-1/2"},ype={class:"grid gap-1"},_pe=["onClick"],bpe={class:"font-medium text-sm"},wpe={class:"flex items-center gap-4"},Spe={__name:"Cities",setup(e){const t=Et(),n=cr(),r=pn(),s=pe(),o=pe(""),i=pe("name"),a=pe("asc"),c=f=>{const d=UT(f),p=["restaurants","restaurants-city","restaurants-city-tag","events","events-city","events-city-tag","offers","offers-city","giftcards","giftcards-city"],h=t.name.split("-")[0]+"-city",m=t.path.split("/")[1]??null;return n.categories.find(v=>v.slug===m),t.name.startsWith("fat")||t.name==="res-req"?(r.cityId=parseInt(f),Mt({query:{...t.query,cityId:f,drawer:void 0,location:void 0,locationModal:void 0}})):d&&p.includes(t.name)?(r.cityId=parseInt(f),Mt({name:h,params:{city:fa(d.name)},query:{...t.query,drawer:void 0,location:void 0,locationModal:void 0}})):(r.cityId=parseInt(f),Mt({path:`/${d.slug}`,query:{...t.query,drawer:void 0,location:void 0,locationModal:void 0}}))},l=B(()=>{var d;let f=[...n.cities].slice(3);if(o.value){const p=(d=o.value)==null?void 0:d.toLowerCase();f=f.filter(h=>{var m,v;return(v=(m=h.name)==null?void 0:m.toLowerCase())==null?void 0:v.includes(p)})}return i.value==="count"&&(a.value==="asc"&&f.sort((p,h)=>p.restaurants-h.restaurants),a.value==="desc"&&f.sort((p,h)=>h.restaurants-p.restaurants)),i.value==="name"&&(a.value==="asc"&&f.sort((p,h)=>p.name.localeCompare(h.name,"sv")),a.value==="desc"&&f.sort((p,h)=>h.name.localeCompare(p.name,"sv"))),f}),u=f=>{i.value===f?a.value==="desc"?a.value="asc":a.value="desc":(i.value=f,f==="name"&&(a.value="asc"),f==="count"&&(a.value="desc"))};return(f,d)=>{const p=Wn,h=Ns("auto-animate");return k(n).cities?Un((H(),Z("div",lpe,[Y("div",upe,[Y("p",fpe,De(f.$t("fat.location.headingAll")),1),Y("div",dpe,[Y("div",ppe,[Y("div",{class:Re(["px-3 flex items-center h-full cursor-pointer transition-all border-r",{"bg-mist":k(i)==="name","opacity-50":k(i)!=="name"}]),onClick:d[0]||(d[0]=m=>u("name"))},[k(a)==="asc"?(H(),Se(p,{key:0,name:"arrow-down-a-z",class:"h-6 text-sm"})):(H(),Se(p,{key:1,name:"arrow-up-a-z",class:"h-6 text-sm"}))],2),Y("div",{class:Re(["px-3 flex items-center h-full cursor-pointer transition-all border-r",{"bg-mist":k(i)==="count","opacity-50":k(i)!=="count"}]),onClick:d[1]||(d[1]=m=>u("count"))},[k(a)==="desc"?(H(),Se(p,{key:0,name:"arrow-down-wide-short",class:"h-6 text-sm"})):(H(),Se(p,{key:1,name:"arrow-up-wide-short",class:"h-6 text-sm"}))],2)])])]),Y("div",hpe,[Y("div",mpe,[Q(p,{name:"magnifying-glass",class:"h-6 w-6 text-sm"})]),Un(Y("input",{type:"text","onUpdate:modelValue":d[2]||(d[2]=m=>ze(o)?o.value=m:null),placeholder:f.$t("fat.location.searchField"),class:"w-full pl-8 pr-2 py-1 border rounded-sm",ref_key:"inputRef",ref:s},null,8,gpe),[[QO,k(o)]]),Y("div",vpe,[k(o)!==""?(H(),Se(p,{key:0,name:"circle-xmark",class:"h-6 w-6 text-sm cursor-pointer",onClick:d[3]||(d[3]=m=>o.value="")})):we("",!0)])]),Un((H(),Z("div",ype,[(H(!0),Z(Fe,null,At(k(l),m=>(H(),Z("div",{key:m.id,class:Re(["bg-mist rounded-md transition-all hover:text-coral",{"!bg-coral !text-white":k(r).cityId===m.id&&(!k(r).location||!k(t).name.startsWith("fat"))}])},[Y("div",{class:"flex items-center justify-between cursor-pointer py-2 px-2",onClick:v=>c(m.id)},[Y("div",bpe,De(m.name),1),Y("div",wpe,[m.restaurants>=4&&k(i)==="count"?(H(),Z("div",{key:0,class:Re(["text-[#888] text-sm",{"text-white":k(r).cityId===m.id}])},De(m.restaurants),3)):we("",!0),Q(p,{name:"chevron-right",class:Re({"text-coral":k(r).cityId!==m.id})},null,8,["class"])])],8,_pe)],2))),128))])),[[h]])])),[[h]]):we("",!0)}}},Epe=kt(Spe,[["__scopeId","data-v-2e0a86c9"]]),kpe={class:"flex flex-col h-full"},Tpe={class:"flex items-center gap-2 px-2 py-1 bg-black/60 rounded-md opacity-80 transition-all duration-300 md:hover:opacity-100"},$pe={class:"text-sm text-white"},Ipe={class:"flex-1 overflow-y-auto no-scrollbar relative z-10"},xpe=ke({__name:"Modal",setup(e){const t=Et(),n=pe(!1);return en(()=>{var r;n.value=!!((r=t.query)!=null&&r.locationModal)}),xe(()=>t.query,()=>{var r;n.value=!!((r=t.query)!=null&&r.locationModal)}),xe(()=>n.value,()=>{var r;!n.value&&((r=t.query)!=null&&r.locationModal)&&zr({locationModal:void 0})}),(r,s)=>{const o=By,i=Uy,a=jy,c=Fy,l=Hy,u=Ny,f=Ly;return H(),Z("div",null,[Q(f,{open:k(n),"onUpdate:open":s[1]||(s[1]=d=>ze(n)?n.value=d:null)},{default:_e(()=>[Q(u,null,{default:_e(()=>[Q(c,{class:"modal-content"},{default:_e(()=>[Q(a,null,{default:_e(()=>[Q(o,{as:"p"}),Q(i)]),_:1}),Y("div",kpe,[Y("div",{class:"absolute z-20 top-2 right-2 text-white",onClick:s[0]||(s[0]=d=>n.value=!1)},[Y("button",Tpe,[Y("span",$pe,De(r.$t("shared.close")),1)])]),Y("div",Ipe,[St(r.$slots,"default",{},void 0,!0)])])]),_:3}),Q(l,{class:"modal-overlay"})]),_:3})]),_:3},8,["open"])])}}}),Cpe=kt(xpe,[["__scopeId","data-v-c615f7b5"]]),Dpe={class:"p-4 sticky z-30 top-0 bg-white"},Mpe=["innerHTML"],Ope={class:"px-4 pb-24 sm:pb-4"},Ape={class:"p-4 grid gap-4 sticky z-30 bottom-0 bg-white text-sm"},Rpe={__name:"index",setup(e){const t=Et(),n=pn();return(r,s)=>{const o=Qde,i=cpe,a=Epe,c=Cpe;return H(),Z("div",null,[Q(c,null,{default:_e(()=>[Y("div",Dpe,[Y("h1",{class:"font-bold text-2xl md:text-3xl",innerHTML:r.$t("fat.location.heading")},null,8,Mpe)]),Y("div",Ope,[k(t).name.startsWith("fat")?(H(),Se(o,{key:0,class:"mb-6"})):we("",!0),Q(i,{class:"mb-6"}),Q(a)]),Y("div",Ape,[Y("button",{class:Re(["button-coral",{"pointer-events-none":k(n).pending}]),onClick:s[0]||(s[0]=l=>("useUpdateQuery"in r?r.useUpdateQuery:k(zr))({locationModal:void 0})),"data-style":"coral"},De(r.$t("fat.location.button",{count:k(t).name.startsWith("fat")?k(n).total:""})),3)])]),_:1})])}}},Ppe={class:"grid gap-6 leading-6"},Lpe={class:"text-coral flex items-end mb-1"},Npe=["innerHTML"],Fpe={key:0,class:"navigation text-sm"},Hpe=["innerHTML"],Bpe={key:1,class:"navigation text-sm"},Upe=["innerHTML"],jpe={class:"text-sm"},Ype={__name:"index",setup(e){const t=Et(),n=cr(),r=B(()=>{var o;return(o=n.cities)==null?void 0:o.filter(i=>i==null?void 0:i.sections)}),s=B(()=>{var o,i;return(i=(o=n.config)==null?void 0:o.navigation)==null?void 0:i.footer});return(o,i)=>{var l;const a=Wn,c=La;return H(),Z("div",{class:Re(["w-full max-w-7xl mx-auto px-[4vw] pt-8 pb-12",{"opacity-0 pointer-events-none":k(t).name==="start"}])},[Y("div",Ppe,[Y("div",Lpe,[Q(a,{name:"bb-logo-name",class:"text-[1.5rem]"})]),Y("div",{class:"text-sm",innerHTML:o.$t("shared.footer.tagline")},null,8,Npe),k(s).length?(H(),Z("div",Fpe,[(H(!0),Z(Fe,null,At(k(s),u=>(H(),Se(c,{to:u.url?u.url:{path:u.path,query:u.query},key:u.id},{default:_e(()=>[Y("div",{innerHTML:u.title},null,8,Hpe)]),_:2},1032,["to"]))),128))])):we("",!0),(l=k(r))!=null&&l.length?(H(),Z("div",Bpe,[(H(!0),Z(Fe,null,At(k(r),u=>(H(),Se(c,{to:`/${u.slug}`,key:u.id},{default:_e(()=>[Y("div",{innerHTML:u.name},null,8,Upe)]),_:2},1032,["to"]))),128))])):we("",!0),i[0]||(i[0]=Y("hr",null,null,-1)),Y("div",jpe,"Copyright "+De(o.$dayjs().format("YYYY"))+" - "+De([o.$t("shared.footer.company"),o.$t("shared.footer.address")].join(", ")),1)])],2)}}},Wpe=kt(Ype,[["__scopeId","data-v-16aced6a"]]),Vpe={key:0,class:"!text-2xs fixed z-[999] bottom-2 right-2 opacity-0 hover:opacity-100"},zpe={__name:"app",setup(e){const t=Et(),n=lt(),r=cr();pn().initFromConfig();const o=B(()=>{var i,a;return(i=t==null?void 0:t.query)!=null&&i.paged?Zu(t.path)+`?paged=${(a=t==null?void 0:t.query)==null?void 0:a.paged}`:Zu(t.path)});return xe(()=>t.query,()=>{r.addPageview()}),en(()=>{r.addPageview()}),on(()=>{n.afterEach(()=>{})}),Pk({htmlAttrs:{class:B(()=>[t.name==="start"?"startpage":""].filter(Boolean).join(" "))},bodyAttrs:{class:B(()=>r.lockScroll?"no-scroll":"")}}),(i,a)=>{const c=_ce,l=lN,u=wce,f=Sce,d=bce,p=Ece,h=Rce,m=hle,v=_le,g=Ule,b=Yle,y=mfe,_=Pde,w=Rpe,S=Wpe;return H(),Z("div",null,[k(t).name.startsWith("fat")?we("",!0):(H(),Se(c,{key:0})),Q(l,null,{default:_e(()=>[k(t).name!=="start"?(H(),Z("div",Vpe,a[0]||(a[0]=[Y("a",{href:"/?cityId=null",class:"text-xs"},"Start",-1)]))):we("",!0)]),_:1}),Q(p,null,{default:_e(()=>[Q(u,null,{default:_e(()=>[ci(De(i.$t("shared.meta.title")),1)]),_:1}),Q(f,{name:"description",content:i.$t("shared.meta.description")},null,8,["content"]),Q(f,{name:"og:image",content:("useFullPath"in i?i.useFullPath:k(Zu))("bokabord-share.jpg")},null,8,["content"]),Q(d,{rel:"canonical",href:k(o)},null,8,["href"])]),_:1}),Q(h),Q(m),Q(v),Q(g),Q(b),Q(y),Q(_),Q(w),Q(S)])}}},qpe={class:"lg:pr-[14rem]"},Kpe={class:"max-w-lg mx-auto py-6 min-h-[90vh] flex flex-col items-center justify-center"},Gpe={class:"grid gap-8 p-4 md:p-8"},Xpe={class:"text-center grid gap-4"},Jpe={class:"grid gap-2"},Zpe=["innerHTML"],Qpe=["innerHTML"],ehe={class:"text-2xs opacity-20 mt-4"},the=ke({__name:"error",props:{error:Object},setup(e){var i;const t=e,{t:n}=bo(),r=((i=t==null?void 0:t.error)==null?void 0:i.statusCode)===404,s={heading:n(r?"error.404.heading":"error.500.heading"),leading:n(r?"error.404.leading":"error.500.leading"),button:n(r?"error.404.button":"error.500.button")},o=()=>Ik({redirect:"/"});return(a,c)=>{var l;return H(),Z("div",null,[Y("div",qpe,[Y("div",Kpe,[Y("div",Gpe,[Y("div",Xpe,[Y("div",Jpe,[Y("h1",{class:"font-bold text-2xl md:text-3xl",innerHTML:s.heading},null,8,Zpe),Y("p",{class:"text-sm",innerHTML:s.leading},null,8,Qpe),Y("button",{class:"button-coral text-sm flex justify-self-center mt-4","data-style":"coral",onClick:o},De(s.button),1)])])]),Y("div",ehe,De((l=e.error)==null?void 0:l.statusCode)+" code",1)])])])}}}),nhe={key:0},US={__name:"nuxt-root",setup(e){const t=()=>null,n=Ce(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);lt().beforeEach(l)}const s=!1;Mn(Id,Et()),n.hooks.callHookWith(l=>l.map(u=>u()),"vue:setup");const o=xd(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b|googlebot/i;ME((l,u,f)=>{if(n.hooks.callHook("vue:error",l,u,f).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",l),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,l),!1;if(xk(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>No(l)),!1});const c=!1;return(l,u)=>(H(),Se(JE,{onResolve:k(r)},{default:_e(()=>[k(i)?(H(),Z("div",nhe)):k(o)?(H(),Se(k(the),{key:1,error:k(o)},null,8,["error"])):k(c)?(H(),Se(k(t),{key:2,context:k(c)},null,8,["context"])):k(s)?(H(),Se(Fg(k(s)),{key:3})):(H(),Se(k(zpe),{key:4}))]),_:1},8,["onResolve"]))}};let jS;{let e;jS=async function(){var i,a;if(e)return e;const r=!!(((i=window.__NUXT__)==null?void 0:i.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?iA(US):oA(US),s=yR({vueApp:r});async function o(c){var l;await s.callHook("app:error",c),(l=s.payload).error||(l.error=oo(c))}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)});try{await wR(s,mce)}catch(c){o(c)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(mR),await s.hooks.callHook("app:mounted",r),await Pt()}catch(c){o(c)}return r},e=jS().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{mhe as $,zr as A,pe as B,en as C,Ls as D,Re as E,Fe as F,ke as G,xe as H,lN as I,yhe as J,ze as K,bo as L,us as M,phe as N,_he as O,Ude as P,Mle as Q,pr as R,St as S,yr as T,Qt as U,bhe as V,whe as W,Hde as X,_g as Y,fa as Z,kt as _,lt as a,ude as a$,$he as a0,vde as a1,Ht as a2,Pt as a3,dr as a4,Dn as a5,an as a6,ohe as a7,Od as a8,yt as a9,Lo as aA,ED as aB,Rs as aC,bs as aD,RH as aE,xhe as aF,The as aG,Che as aH,Bt as aI,ahe as aJ,khe as aK,Ehe as aL,CE as aM,qt as aN,ms as aO,Es as aP,lhe as aQ,Ce as aR,ghe as aS,e_ as aT,DE as aU,Lt as aV,Sr as aW,Er as aX,UT as aY,yde as aZ,Lfe as a_,on as aa,Mn as ab,ihe as ac,dn as ad,ls as ae,Wo as af,Ad as ag,fhe as ah,Ihe as ai,dhe as aj,vhe as ak,zb as al,che as am,AF as an,Ece as ao,wce as ap,Sce as aq,hhe as ar,ss as as,QO as at,MF as au,Zu as av,CN as aw,Fg as ax,Mt as ay,oo as az,Z as b,Wfe as b0,Lg as b1,Pg as b2,ufe as b3,gk as b4,Dhe as b5,Id as b6,uhe as b7,Tce as b8,B as c,we as d,k as e,Y as f,Q as g,Wn as h,La as i,UM as j,vN as k,Pd as l,vfe as m,Et as n,H as o,Se as p,CM as q,At as r,le as s,De as t,cr as u,pn as v,_e as w,ci as x,Ns as y,Un as z}; //# sourceMappingURL=hizqoI-w.js.map