var hM=Object.defineProperty;var gM=(vn,Ne,Wt)=>Ne in vn?hM(vn,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):vn[Ne]=Wt;var Th=(vn,Ne,Wt)=>gM(vn,typeof Ne!="symbol"?Ne+"":Ne,Wt);(function(){"use strict";/**
  * @vue/shared v3.5.5
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **//*! #__NO_SIDE_EFFECTS__ */function vn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ne={},Wt=[],fn=()=>{},Ah=()=>!1,ga=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ts=e=>e.startsWith("onUpdate:"),lt=Object.assign,ns=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Eh=Object.prototype.hasOwnProperty,He=(e,t)=>Eh.call(e,t),Ce=Array.isArray,kr=e=>uo(e)==="[object Map]",ma=e=>uo(e)==="[object Set]",yc=e=>uo(e)==="[object Date]",Pe=e=>typeof e=="function",rt=e=>typeof e=="string",en=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",wc=e=>(Xe(e)||Pe(e))&&Pe(e.then)&&Pe(e.catch),kc=Object.prototype.toString,uo=e=>kc.call(e),xc=e=>uo(e)==="[object Object]",rs=e=>rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,po=vn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ba=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ph=/-(\w)/g,zt=ba(e=>e.replace(Ph,(t,n)=>n?n.toUpperCase():"")),Oh=/\B([A-Z])/g,Pn=ba(e=>e.replace(Oh,"-$1").toLowerCase()),ya=ba(e=>e.charAt(0).toUpperCase()+e.slice(1)),wa=ba(e=>e?`on${ya(e)}`:""),On=(e,t)=>!Object.is(e,t),ka=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},_c=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Mh=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Cc;const Sc=()=>Cc||(Cc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pt(e){if(Ce(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=rt(r)?Rh(r):pt(r);if(o)for(const i in o)t[i]=o[i]}return t}if(rt(e)||Xe(e))return e}const Ih=/;(?![^(]*\))/g,Lh=/:([^]+)/,jh=/\/\*[^]*?\*\//g;function Rh(e){const t={};return e.replace(jh,"").split(Ih).forEach(n=>{if(n){const r=n.split(Lh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function we(e){let t="";if(rt(e))t=e;else if(Ce(e))for(let n=0;n<e.length;n++){const r=we(e[n]);r&&(t+=r+" ")}else if(Xe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function vo(e){if(!e)return null;let{class:t,style:n}=e;return t&&!rt(t)&&(e.class=we(t)),n&&(e.style=pt(n)),e}const $h=vn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Dc(e){return!!e||e===""}function xa(e,t){if(e===t)return!0;let n=yc(e),r=yc(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=en(e),r=en(t),n||r)return e===t;if(n=Ce(e),r=Ce(t),n||r)return!(!n||!r)&&function(o,i){if(o.length!==i.length)return!1;let a=!0;for(let l=0;a&&l<o.length;l++)a=xa(o[l],i[l]);return a}(e,t);if(n=Xe(e),r=Xe(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e){const i=e.hasOwnProperty(o),a=t.hasOwnProperty(o);if(i&&!a||!i&&a||!xa(e[o],t[o]))return!1}}return String(e)===String(t)}function Tc(e,t){return e.findIndex(n=>xa(n,t))}const Ac=e=>!(!e||e.__v_isRef!==!0),H=e=>rt(e)?e:e==null?"":Ce(e)||Xe(e)&&(e.toString===kc||!Pe(e.toString))?Ac(e)?H(e.value):JSON.stringify(e,Ec,2):String(e),Ec=(e,t)=>Ac(t)?Ec(e,t.value):kr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[os(r,i)+" =>"]=o,n),{})}:ma(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>os(n))}:en(t)?os(t):!Xe(t)||Ce(t)||xc(t)?t:String(t),os=(e,t="")=>{var n;return en(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
  * @vue/reactivity v3.5.5
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/let Ot,Je;class Nh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ot,!t&&Ot&&(this.index=(Ot.scopes||(Ot.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let t,n;if(this._isPaused=!0,this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){let t,n;if(this._isPaused=!1,this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ot;try{return Ot=this,t()}finally{Ot=n}}}on(){Ot=this}off(){Ot=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}const as=new WeakSet;class Pc{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,Ot&&Ot.active&&Ot.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,as.has(this)&&(as.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||(this.flags|=8,this.nextEffect=fo,fo=this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Rc(this),Mc(this);const t=Je,n=Ht;Je=this,Ht=!0;try{return this.fn()}finally{Ic(this),Je=t,Ht=n,this.flags&=-3}}stop(){if(1&this.flags){for(let t=this.deps;t;t=t.nextDep)cs(t);this.deps=this.depsTail=void 0,Rc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?as.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ls(this)&&this.run()}get dirty(){return ls(this)}}let fo,Oc=0;function is(){Oc++}function ss(){if(--Oc>0)return;let e;for(;fo;){let t=fo;for(fo=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Mc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ic(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),cs(r),Fh(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function ls(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&Lc(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function Lc(e){if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===ho))return;e.globalVersion=ho;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!ls(e))return void(e.flags&=-3);const n=Je,r=Ht;Je=e,Ht=!0;try{Mc(e);const o=e.fn(e._value);(t.version===0||On(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Je=n,Ht=r,Ic(e),e.flags&=-3}}function cs(e){const{dep:t,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let o=t.computed.deps;o;o=o.nextDep)cs(o)}}function Fh(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ht=!0;const jc=[];function Mn(){jc.push(Ht),Ht=!1}function In(){const e=jc.pop();Ht=e===void 0||e}function Rc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Je;Je=void 0;try{t()}finally{Je=n}}}let ho=0;class Yh{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 us{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!Je||!Ht||Je===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Je)n=this.activeLink=new Yh(Je,this),Je.deps?(n.prevDep=Je.depsTail,Je.depsTail.nextDep=n,Je.depsTail=n):Je.deps=Je.depsTail=n,4&Je.flags&&$c(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=Je.depsTail,n.nextDep=void 0,Je.depsTail.nextDep=n,Je.depsTail=n,Je.deps===n&&(Je.deps=r)}return n}trigger(t){this.version++,ho++,this.notify(t)}notify(t){is();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{ss()}}}function $c(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)$c(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const _a=new WeakMap,Jn=Symbol(""),ds=Symbol(""),go=Symbol("");function bt(e,t,n){if(Ht&&Je){let r=_a.get(e);r||_a.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=new us),o.track()}}function hn(e,t,n,r,o,i){const a=_a.get(e);if(!a)return void ho++;const l=s=>{s&&s.trigger()};if(is(),t==="clear")a.forEach(l);else{const s=Ce(e),c=s&&rs(n);if(s&&n==="length"){const u=Number(r);a.forEach((p,v)=>{(v==="length"||v===go||!en(v)&&v>=u)&&l(p)})}else switch(n!==void 0&&l(a.get(n)),c&&l(a.get(go)),t){case"add":s?c&&l(a.get("length")):(l(a.get(Jn)),kr(e)&&l(a.get(ds)));break;case"delete":s||(l(a.get(Jn)),kr(e)&&l(a.get(ds)));break;case"set":kr(e)&&l(a.get(Jn))}}ss()}function xr(e){const t=Ve(e);return t===e?t:(bt(t,0,go),jt(e)?t:t.map(yt))}function Ca(e){return bt(e=Ve(e),0,go),e}const Bh={__proto__:null,[Symbol.iterator](){return ps(this,Symbol.iterator,yt)},concat(...e){return xr(this).concat(...e.map(t=>Ce(t)?xr(t):t))},entries(){return ps(this,"entries",e=>(e[1]=yt(e[1]),e))},every(e,t){return gn(this,"every",e,t,void 0,arguments)},filter(e,t){return gn(this,"filter",e,t,n=>n.map(yt),arguments)},find(e,t){return gn(this,"find",e,t,yt,arguments)},findIndex(e,t){return gn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return gn(this,"findLast",e,t,yt,arguments)},findLastIndex(e,t){return gn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return gn(this,"forEach",e,t,void 0,arguments)},includes(...e){return vs(this,"includes",e)},indexOf(...e){return vs(this,"indexOf",e)},join(e){return xr(this).join(e)},lastIndexOf(...e){return vs(this,"lastIndexOf",e)},map(e,t){return gn(this,"map",e,t,void 0,arguments)},pop(){return mo(this,"pop")},push(...e){return mo(this,"push",e)},reduce(e,...t){return Nc(this,"reduce",e,t)},reduceRight(e,...t){return Nc(this,"reduceRight",e,t)},shift(){return mo(this,"shift")},some(e,t){return gn(this,"some",e,t,void 0,arguments)},splice(...e){return mo(this,"splice",e)},toReversed(){return xr(this).toReversed()},toSorted(e){return xr(this).toSorted(e)},toSpliced(...e){return xr(this).toSpliced(...e)},unshift(...e){return mo(this,"unshift",e)},values(){return ps(this,"values",yt)}};function ps(e,t,n){const r=Ca(e),o=r[t]();return r===e||jt(e)||(o._next=o.next,o.next=()=>{const i=o._next();return i.value&&(i.value=n(i.value)),i}),o}const Vh=Array.prototype;function gn(e,t,n,r,o,i){const a=Ca(e),l=a!==e&&!jt(e),s=a[t];if(s!==Vh[t]){const p=s.apply(e,i);return l?yt(p):p}let c=n;a!==e&&(l?c=function(p,v){return n.call(this,yt(p),v,e)}:n.length>2&&(c=function(p,v){return n.call(this,p,v,e)}));const u=s.call(a,c,r);return l&&o?o(u):u}function Nc(e,t,n,r){const o=Ca(e);let i=n;return o!==e&&(jt(e)?n.length>3&&(i=function(a,l,s){return n.call(this,a,l,s,e)}):i=function(a,l,s){return n.call(this,a,yt(l),s,e)}),o[t](i,...r)}function vs(e,t,n){const r=Ve(e);bt(r,0,go);const o=r[t](...n);return o!==-1&&o!==!1||!ms(n[0])?o:(n[0]=Ve(n[0]),r[t](...n))}function mo(e,t,n=[]){Mn(),is();const r=Ve(e)[t].apply(e,n);return ss(),In(),r}const Uh=vn("__proto__,__v_isRef,__isVue"),Fc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(en));function Wh(e){en(e)||(e=String(e));const t=Ve(this);return bt(t,0,e),t.hasOwnProperty(e)}class Yc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?rg:qc:i?Gc:Hc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Ce(t);if(!o){let s;if(a&&(s=Bh[n]))return s;if(n==="hasOwnProperty")return Wh}const l=Reflect.get(t,n,at(t)?t:r);return(en(n)?Fc.has(n):Uh(n))?l:(o||bt(t,0,n),i?l:at(l)?a&&rs(n)?l:l.value:Xe(l)?o?Qn(l):Mt(l):l)}}class Bc extends Yc{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._isShallow){const s=er(i);if(jt(r)||er(r)||(i=Ve(i),r=Ve(r)),!Ce(t)&&at(i)&&!at(r))return!s&&(i.value=r,!0)}const a=Ce(t)&&rs(n)?Number(n)<t.length:He(t,n),l=Reflect.set(t,n,r,at(t)?t:o);return t===Ve(o)&&(a?On(r,i)&&hn(t,"set",n,r):hn(t,"add",n,r)),l}deleteProperty(t,n){const r=He(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&hn(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return en(n)&&Fc.has(n)||bt(t,0,n),r}ownKeys(t){return bt(t,0,Ce(t)?"length":Jn),Reflect.ownKeys(t)}}class zh extends Yc{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Hh=new Bc,Gh=new zh,qh=new Bc(!0),fs=e=>e,Sa=e=>Reflect.getPrototypeOf(e);function Da(e,t,n=!1,r=!1){const o=Ve(e=e.__v_raw),i=Ve(t);n||(On(t,i)&&bt(o,0,t),bt(o,0,i));const{has:a}=Sa(o),l=r?fs:n?bs:yt;return a.call(o,t)?l(e.get(t)):a.call(o,i)?l(e.get(i)):void(e!==o&&e.get(t))}function Ta(e,t=!1){const n=this.__v_raw,r=Ve(n),o=Ve(e);return t||(On(e,o)&&bt(r,0,e),bt(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function Aa(e,t=!1){return e=e.__v_raw,!t&&bt(Ve(e),0,Jn),Reflect.get(e,"size",e)}function Vc(e,t=!1){t||jt(e)||er(e)||(e=Ve(e));const n=Ve(this);return Sa(n).has.call(n,e)||(n.add(e),hn(n,"add",e,e)),this}function Uc(e,t,n=!1){n||jt(t)||er(t)||(t=Ve(t));const r=Ve(this),{has:o,get:i}=Sa(r);let a=o.call(r,e);a||(e=Ve(e),a=o.call(r,e));const l=i.call(r,e);return r.set(e,t),a?On(t,l)&&hn(r,"set",e,t):hn(r,"add",e,t),this}function Wc(e){const t=Ve(this),{has:n,get:r}=Sa(t);let o=n.call(t,e);o||(e=Ve(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&hn(t,"delete",e,void 0),i}function zc(){const e=Ve(this),t=e.size!==0,n=e.clear();return t&&hn(e,"clear",void 0,void 0),n}function Ea(e,t){return function(n,r){const o=this,i=o.__v_raw,a=Ve(i),l=t?fs:e?bs:yt;return!e&&bt(a,0,Jn),i.forEach((s,c)=>n.call(r,l(s),l(c),o))}}function Pa(e,t,n){return function(...r){const o=this.__v_raw,i=Ve(o),a=kr(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=o[e](...r),u=n?fs:t?bs:yt;return!t&&bt(i,0,s?ds:Jn),{next(){const{value:p,done:v}=c.next();return v?{value:p,done:v}:{value:l?[u(p[0]),u(p[1])]:u(p),done:v}},[Symbol.iterator](){return this}}}}function Ln(e){return function(...t){return e!=="delete"&&(e==="clear"?void 0:this)}}function Zh(){const e={get(o){return Da(this,o)},get size(){return Aa(this)},has:Ta,add:Vc,set:Uc,delete:Wc,clear:zc,forEach:Ea(!1,!1)},t={get(o){return Da(this,o,!1,!0)},get size(){return Aa(this)},has:Ta,add(o){return Vc.call(this,o,!0)},set(o,i){return Uc.call(this,o,i,!0)},delete:Wc,clear:zc,forEach:Ea(!1,!0)},n={get(o){return Da(this,o,!0)},get size(){return Aa(this,!0)},has(o){return Ta.call(this,o,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Ea(!0,!1)},r={get(o){return Da(this,o,!0,!0)},get size(){return Aa(this,!0)},has(o){return Ta.call(this,o,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Ea(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Pa(o,!1,!1),n[o]=Pa(o,!0,!1),t[o]=Pa(o,!1,!0),r[o]=Pa(o,!0,!0)}),[e,n,t,r]}const[Xh,Kh,Jh,Qh]=Zh();function hs(e,t){const n=t?e?Qh:Jh:e?Kh:Xh;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(He(n,o)&&o in r?n:r,o,i)}const eg={get:hs(!1,!1)},tg={get:hs(!1,!0)},ng={get:hs(!0,!1)},Hc=new WeakMap,Gc=new WeakMap,qc=new WeakMap,rg=new WeakMap;function og(e){return e.__v_skip||!Object.isExtensible(e)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>uo(t).slice(8,-1))(e))}function Mt(e){return er(e)?e:gs(e,!1,Hh,eg,Hc)}function Qn(e){return gs(e,!0,Gh,ng,qc)}function gs(e,t,n,r,o){if(!Xe(e)||e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=og(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function _r(e){return er(e)?_r(e.__v_raw):!(!e||!e.__v_isReactive)}function er(e){return!(!e||!e.__v_isReadonly)}function jt(e){return!(!e||!e.__v_isShallow)}function ms(e){return!!e&&!!e.__v_raw}function Ve(e){const t=e&&e.__v_raw;return t?Ve(t):e}const yt=e=>Xe(e)?Mt(e):e,bs=e=>Xe(e)?Qn(e):e;function at(e){return!!e&&e.__v_isRef===!0}function pe(e){return Zc(e,!1)}function Zc(e,t){return at(e)?e:new ag(e,t)}class ag{constructor(t,n){this.dep=new us,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ve(t),this._value=n?t:yt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||jt(t)||er(t);t=r?t:Ve(t),On(t,n)&&(this._rawValue=t,this._value=r?t:yt(t),this.dep.trigger())}}function O(e){return at(e)?e.value:e}const ig={get:(e,t,n)=>t==="__v_raw"?e:O(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return at(o)&&!at(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Xc(e){return _r(e)?e:new Proxy(e,ig)}function sg(e){const t=Ce(e)?new Array(e.length):{};for(const n in e)t[n]=Kc(e,n);return t}class lg{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 function(t,n){var r;return(r=_a.get(t))==null?void 0:r.get(n)}(Ve(this._object),this._key)}}class cg{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 bo(e,t,n){return at(e)?e:Pe(e)?new cg(e):Xe(e)&&arguments.length>1?Kc(e,t,n):pe(e)}function Kc(e,t,n){const r=e[t];return at(r)?r:new lg(e,t,n)}class ug{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new us(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ho-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){this.flags|=16,Je!==this&&this.dep.notify()}get value(){const t=this.dep.track();return Lc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}const Oa={},Ma=new WeakMap;let tr;function dg(e,t,n=Ne){const{immediate:r,deep:o,once:i,scheduler:a,augmentJob:l,call:s}=n,c=M=>o?M:jt(M)||o===!1||o===0?mn(M,1):mn(M);let u,p,v,m,g=!1,x=!1;if(at(e)?(p=()=>e.value,g=jt(e)):_r(e)?(p=()=>c(e),g=!0):Ce(e)?(x=!0,g=e.some(M=>_r(M)||jt(M)),p=()=>e.map(M=>at(M)?M.value:_r(M)?c(M):Pe(M)?s?s(M,2):M():void 0)):p=Pe(e)?t?s?()=>s(e,2):e:()=>{if(v){Mn();try{v()}finally{In()}}const M=tr;tr=u;try{return s?s(e,3,[m]):e(m)}finally{tr=M}}:fn,t&&o){const M=p,I=o===!0?1/0:o;p=()=>mn(M(),I)}const _=Ot,w=()=>{u.stop(),_&&ns(_.effects,u)};if(i)if(t){const M=t;t=(...I)=>{M(...I),w()}}else{const M=p;p=()=>{M(),w()}}let k=x?new Array(e.length).fill(Oa):Oa;const A=M=>{if(1&u.flags&&(u.dirty||M))if(t){const I=u.run();if(o||g||(x?I.some((N,S)=>On(N,k[S])):On(I,k))){v&&v();const N=tr;tr=u;try{const S=[I,k===Oa?void 0:x&&k[0]===Oa?[]:k,m];s?s(t,3,S):t(...S),k=I}finally{tr=N}}}else u.run()};return l&&l(A),u=new Pc(p),u.scheduler=a?()=>a(A,!1):A,m=M=>function(I,N=!1,S=tr){if(S){let F=Ma.get(S);F||Ma.set(S,F=[]),F.push(I)}}(M,!1,u),v=u.onStop=()=>{const M=Ma.get(u);if(M){if(s)s(M,4);else for(const I of M)I();Ma.delete(u)}},t?r?A(!0):k=u.run():a?a(A.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function mn(e,t=1/0,n){if(t<=0||!Xe(e)||e.__v_skip||(n=n||new Set).has(e))return e;if(n.add(e),t--,at(e))mn(e.value,t,n);else if(Ce(e))for(let r=0;r<e.length;r++)mn(e[r],t,n);else if(ma(e)||kr(e))e.forEach(r=>{mn(r,t,n)});else if(xc(e)){for(const r in e)mn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&mn(e[r],t,n)}return e}/**
  * @vue/runtime-core v3.5.5
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/function yo(e,t,n,r){try{return r?e(...r):e()}catch(o){Ia(o,t,n)}}function Gt(e,t,n,r){if(Pe(e)){const o=yo(e,t,n,r);return o&&wc(o)&&o.catch(i=>{Ia(i,t,n)}),o}if(Ce(e)){const o=[];for(let i=0;i<e.length;i++)o.push(Gt(e[i],t,n,r));return o}}function Ia(e,t,n,r=!0){t&&t.vnode;const{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ne;if(t){let a=t.parent;const l=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,l,s)===!1)return}a=a.parent}if(o)return Mn(),yo(o,null,10,[e,l,s]),void In()}(function(a,l,s,c=!0,u=!1){if(u)throw a;console.error(a)})(e,0,0,r,i)}let wo=!1,ys=!1;const xt=[];let tn=0;const Cr=[];let jn=null,Sr=0;const Jc=Promise.resolve();let ws=null;function Rn(e){const t=ws||Jc;return e?t.then(this?e.bind(this):e):t}function ks(e){if(!(1&e.flags)){const t=ko(e),n=xt[xt.length-1];!n||!(2&e.flags)&&t>=ko(n)?xt.push(e):xt.splice(function(r){let o=wo?tn+1:0,i=xt.length;for(;o<i;){const a=o+i>>>1,l=xt[a],s=ko(l);s<r||s===r&&2&l.flags?o=a+1:i=a}return o}(t),0,e),e.flags|=1,Qc()}}function Qc(){wo||ys||(ys=!0,ws=Jc.then(nu))}function eu(e,t,n=wo?tn+1:0){for(;n<xt.length;n++){const r=xt[n];if(r&&2&r.flags){if(e&&r.id!==e.uid)continue;xt.splice(n,1),n--,4&r.flags&&(r.flags&=-2),r(),r.flags&=-2}}}function tu(e){if(Cr.length){const t=[...new Set(Cr)].sort((n,r)=>ko(n)-ko(r));if(Cr.length=0,jn)return void jn.push(...t);for(jn=t,Sr=0;Sr<jn.length;Sr++){const n=jn[Sr];4&n.flags&&(n.flags&=-2),8&n.flags||n(),n.flags&=-2}jn=null,Sr=0}}const ko=e=>e.id==null?2&e.flags?-1:1/0:e.id;function nu(e){ys=!1,wo=!0;try{for(tn=0;tn<xt.length;tn++){const t=xt[tn];!t||8&t.flags||(4&t.flags&&(t.flags&=-2),yo(t,t.i,t.i?15:14),t.flags&=-2)}}finally{for(;tn<xt.length;tn++){const t=xt[tn];t&&(t.flags&=-2)}tn=0,xt.length=0,tu(),wo=!1,ws=null,(xt.length||Cr.length)&&nu()}}let ut=null,ru=null;function La(e){const t=ut;return ut=e,ru=e&&e.type.__scopeId||null,t}function he(e,t=ut,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&zu(-1);const i=La(t);let a;try{a=e(...o)}finally{La(i),r._d&&zu(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Le(e,t){if(ut===null)return e;const n=Xa(ut),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,a,l,s=Ne]=t[o];i&&(Pe(i)&&(i={mounted:i,updated:i}),i.deep&&mn(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:l,modifiers:s}))}return e}function nr(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const l=o[a];i&&(l.oldValue=i[a].value);let s=l.dir[r];s&&(Mn(),Gt(s,n,8,[e.el,l,e,t]),In())}}const ou=Symbol("_vte"),au=e=>e.__isTeleport,xo=e=>e&&(e.disabled||e.disabled===""),iu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,su=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,xs=(e,t)=>{const n=e&&e.to;return rt(n)?t?t(n):null:n},pg={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,l,s,c){const{mc:u,pc:p,pbc:v,o:{insert:m,querySelector:g,createText:x,createComment:_}}=c,w=xo(t.props);let{shapeFlag:k,children:A,dynamicChildren:M}=t;if(e==null){const N=t.el=x(""),S=t.anchor=x("");m(N,n,r),m(S,n,r);const F=(B,Z)=>{16&k&&(o&&o.isCE&&(o.ce._teleportTarget=B),u(A,B,Z,o,i,a,l,s))},U=()=>{const B=t.target=xs(t.props,g),Z=lu(B,t,x,m);B&&(a!=="svg"&&iu(B)?a="svg":a!=="mathml"&&su(B)&&(a="mathml"),w||(F(B,Z),Ra(t)))};w&&(F(n,S),Ra(t)),(I=t.props)&&(I.defer||I.defer==="")?At(U,i):U()}else{t.el=e.el,t.targetStart=e.targetStart;const N=t.anchor=e.anchor,S=t.target=e.target,F=t.targetAnchor=e.targetAnchor,U=xo(e.props),B=U?n:S,Z=U?N:F;if(a==="svg"||iu(S)?a="svg":(a==="mathml"||su(S))&&(a="mathml"),M?(v(e.dynamicChildren,M,B,o,i,a,l),$s(e,t,!0)):s||p(e,t,B,Z,o,i,a,l,!1),w)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ja(t,n,N,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const X=t.target=xs(t.props,g);X&&ja(t,X,null,c,0)}else U&&ja(t,S,F,c,1);Ra(t)}var I},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:a,children:l,anchor:s,targetStart:c,targetAnchor:u,target:p,props:v}=e;if(p&&(o(c),o(u)),i&&o(s),16&a){const m=i||!xo(v);for(let g=0;g<l.length;g++){const x=l[g];r(x,t,n,m,!!x.dynamicChildren)}}},move:ja,hydrate:function(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:l,querySelector:s,insert:c,createText:u}},p){const v=t.target=xs(t.props,s);if(v){const m=v._lpa||v.firstChild;if(16&t.shapeFlag)if(xo(t.props))t.anchor=p(a(e),t,l(e),n,r,o,i),t.targetStart=m,t.targetAnchor=m&&a(m);else{t.anchor=a(e);let g=m;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")t.targetStart=g;else if(g.data==="teleport anchor"){t.targetAnchor=g,v._lpa=t.targetAnchor&&a(t.targetAnchor);break}}g=a(g)}t.targetAnchor||lu(v,t,u,c),p(m&&a(m),t,v,n,r,o,i)}Ra(t)}return t.anchor&&a(t.anchor)}};function ja(e,t,n,{o:{insert:r},m:o},i=2){i===0&&r(e.targetAnchor,t,n);const{el:a,anchor:l,shapeFlag:s,children:c,props:u}=e,p=i===2;if(p&&r(a,t,n),(!p||xo(u))&&16&s)for(let v=0;v<c.length;v++)o(c[v],t,n,2);p&&r(l,t,n)}const vg=pg;function Ra(e){const t=e.ctx;if(t&&t.ut){let n=e.targetStart;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function lu(e,t,n,r){const o=t.targetStart=n(""),i=t.targetAnchor=n("");return o[ou]=i,e&&(r(o,e),r(i,e)),i}const $n=Symbol("_leaveCb"),$a=Symbol("_enterCb"),Rt=[Function,Array],cu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rt,onEnter:Rt,onAfterEnter:Rt,onEnterCancelled:Rt,onBeforeLeave:Rt,onLeave:Rt,onAfterLeave:Rt,onLeaveCancelled:Rt,onBeforeAppear:Rt,onAppear:Rt,onAfterAppear:Rt,onAppearCancelled:Rt},uu=e=>{const t=e.subTree;return t.component?uu(t.component):t},fg={name:"BaseTransition",props:cu,setup(e,{slots:t}){const n=it(),r=function(){const o={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Tt(()=>{o.isMounted=!0}),Ds(()=>{o.isUnmounting=!0}),o}();return()=>{const o=t.default&&fu(t.default(),!0);if(!o||!o.length)return;const i=du(o),a=Ve(e),{mode:l}=a;if(r.isLeaving)return Cs(i);const s=vu(i);if(!s)return Cs(i);let c=_s(s,a,r,n,v=>c=v);s.type!==Ct&&_o(s,c);const u=n.subTree,p=u&&vu(u);if(p&&p.type!==Ct&&!or(s,p)&&uu(n).type!==Ct){const v=_s(p,a,r,n);if(_o(p,v),l==="out-in"&&s.type!==Ct)return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete v.afterLeave},Cs(i);l==="in-out"&&s.type!==Ct&&(v.delayLeave=(m,g,x)=>{pu(r,p)[String(p.key)]=p,m[$n]=()=>{g(),m[$n]=void 0,delete c.delayedLeave},c.delayedLeave=x})}return i}}};function du(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ct){t=n;break}}return t}const hg=fg;function pu(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 _s(e,t,n,r,o){const{appear:i,mode:a,persisted:l=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:u,onEnterCancelled:p,onBeforeLeave:v,onLeave:m,onAfterLeave:g,onLeaveCancelled:x,onBeforeAppear:_,onAppear:w,onAfterAppear:k,onAppearCancelled:A}=t,M=String(e.key),I=pu(n,e),N=(U,B)=>{U&&Gt(U,r,9,B)},S=(U,B)=>{const Z=B[1];N(U,B),Ce(U)?U.every(X=>X.length<=1)&&Z():U.length<=1&&Z()},F={mode:a,persisted:l,beforeEnter(U){let B=s;if(!n.isMounted){if(!i)return;B=_||s}U[$n]&&U[$n](!0);const Z=I[M];Z&&or(e,Z)&&Z.el[$n]&&Z.el[$n](),N(B,[U])},enter(U){let B=c,Z=u,X=p;if(!n.isMounted){if(!i)return;B=w||c,Z=k||u,X=A||p}let Y=!1;const L=U[$a]=z=>{Y||(Y=!0,N(z?X:Z,[U]),F.delayedLeave&&F.delayedLeave(),U[$a]=void 0)};B?S(B,[U,L]):L()},leave(U,B){const Z=String(e.key);if(U[$a]&&U[$a](!0),n.isUnmounting)return B();N(v,[U]);let X=!1;const Y=U[$n]=L=>{X||(X=!0,B(),N(L?x:g,[U]),U[$n]=void 0,I[Z]===e&&delete I[Z])};I[Z]=e,m?S(m,[U,Y]):Y()},clone(U){const B=_s(U,t,n,r,o);return o&&o(B),B}};return F}function Cs(e){if(Na(e))return(e=Nn(e)).children=null,e}function vu(e){if(!Na(e))return au(e.type)&&e.children?du(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&Pe(n.default))return n.default()}}function _o(e,t){6&e.shapeFlag&&e.component?(e.transition=t,_o(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fu(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const l=n==null?a.key:String(n)+String(a.key!=null?a.key:i);a.type===ge?(128&a.patchFlag&&o++,r=r.concat(fu(a.children,t,l))):(t||a.type!==Ct)&&r.push(l!=null?Nn(a,{key:l}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function vt(e,t){return Pe(e)?lt({name:e.name},t,{setup:e}):e}function hu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ss(e,t,n,r,o=!1){if(Ce(e))return void e.forEach((g,x)=>Ss(g,t&&(Ce(t)?t[x]:t),n,r,o));if(Dr(r)&&!o)return;const i=4&r.shapeFlag?Xa(r.component):r.el,a=o?null:i,{i:l,r:s}=e,c=t&&t.r,u=l.refs===Ne?l.refs={}:l.refs,p=l.setupState,v=Ve(p),m=p===Ne?()=>!1:g=>He(v,g);if(c!=null&&c!==s&&(rt(c)?(u[c]=null,m(c)&&(p[c]=null)):at(c)&&(c.value=null)),Pe(s))yo(s,l,12,[a,u]);else{const g=rt(s),x=at(s);if(g||x){const _=()=>{if(e.f){const w=g?m(s)?p[s]:u[s]:s.value;o?Ce(w)&&ns(w,i):Ce(w)?w.includes(i)||w.push(i):g?(u[s]=[i],m(s)&&(p[s]=u[s])):(s.value=[i],e.k&&(u[e.k]=s.value))}else g?(u[s]=a,m(s)&&(p[s]=a)):x&&(s.value=a,e.k&&(u[e.k]=a))};a?(_.id=-1,At(_,n)):_()}}}const Dr=e=>!!e.type.__asyncLoader,Na=e=>e.type.__isKeepAlive;function gg(e,t){gu(e,"a",t)}function mg(e,t){gu(e,"da",t)}function gu(e,t,n=ft){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Fa(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Na(o.parent.vnode)&&bg(r,t,n,o),o=o.parent}}function bg(e,t,n,r){const o=Fa(t,e,r,!0);Tr(()=>{ns(r[t],o)},n)}function Fa(e,t,n=ft,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{Mn();const l=Ao(n),s=Gt(t,n,e,a);return l(),In(),s});return r?o.unshift(i):o.push(i),i}}const bn=e=>(t,n=ft)=>{Za&&e!=="sp"||Fa(e,(...r)=>t(...r),n)},yg=bn("bm"),Tt=bn("m"),wg=bn("bu"),kg=bn("u"),Ds=bn("bum"),Tr=bn("um"),xg=bn("sp"),_g=bn("rtg"),Cg=bn("rtc");function mu(e,t=ft){Fa("ec",e,t)}const Ts="components";function yn(e,t){return As(Ts,e,!0,t)||e}const bu=Symbol.for("v-ndc");function Ar(e){return rt(e)?As(Ts,e,!1)||e:e||bu}function As(e,t,n=!0,r=!1){const o=ut||ft;if(o){const i=o.type;if(e===Ts){const l=zg(i,!1);if(l&&(l===t||l===zt(t)||l===ya(zt(t))))return i}const a=yu(o[e]||i[e],t)||yu(o.appContext[e],t);return!a&&r?i:a}}function yu(e,t){return e&&(e[t]||e[zt(t)]||e[ya(zt(t))])}function je(e,t,n,r){let o;const i=n,a=Ce(e);if(a||rt(e)){let l=!1;a&&_r(e)&&(l=!jt(e),e=Ca(e)),o=new Array(e.length);for(let s=0,c=e.length;s<c;s++)o[s]=t(l?yt(e[s]):e[s],s,void 0,i)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,i)}else if(Xe(e))if(e[Symbol.iterator])o=Array.from(e,(l,s)=>t(l,s,void 0,i));else{const l=Object.keys(e);o=new Array(l.length);for(let s=0,c=l.length;s<c;s++){const u=l[s];o[s]=t(e[u],u,s,i)}}else o=[];return o}function ot(e,t,n={},r,o){if(ut.ce||ut.parent&&Dr(ut.parent)&&ut.parent.ce)return t!=="default"&&(n.name=t),C(),fe(ge,null,[ee("slot",n,r&&r())],64);let i=e[t];i&&i._c&&(i._d=!1),C();const a=i&&wu(i(n)),l=fe(ge,{key:(n.key||a&&a.key||`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function wu(e){return e.some(t=>!Wa(t)||t.type!==Ct&&!(t.type===ge&&!wu(t.children)))?e:null}function Sg(e,t){const n={};for(const r in e)n[/[A-Z]/.test(r)?`on:${r}`:wa(r)]=e[r];return n}const Es=e=>e?Zu(e)?Xa(e):Es(e.parent):null,Co=lt(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=>Es(e.parent),$root:e=>Es(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ms(e),$forceUpdate:e=>e.f||(e.f=()=>{ks(e.update)}),$nextTick:e=>e.n||(e.n=Rn.bind(e.proxy)),$watch:e=>$g.bind(e)}),Ps=(e,t)=>e!==Ne&&!e.__isScriptSetup&&He(e,t),Dg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const m=a[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Ps(r,t))return a[t]=1,r[t];if(o!==Ne&&He(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&He(c,t))return a[t]=3,i[t];if(n!==Ne&&He(n,t))return a[t]=4,n[t];Os&&(a[t]=0)}}const u=Co[t];let p,v;return u?(t==="$attrs"&&bt(e.attrs,0,""),u(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==Ne&&He(n,t)?(a[t]=4,n[t]):(v=s.config.globalProperties,He(v,t)?v[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Ps(o,t)?(o[t]=n,!0):r!==Ne&&He(r,t)?(r[t]=n,!0):!He(e.props,t)&&(t[0]!=="$"||!(t.slice(1)in e))&&(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let l;return!!n[a]||e!==Ne&&He(e,a)||Ps(t,a)||(l=i[0])&&He(l,a)||He(r,a)||He(Co,a)||He(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:He(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ku(){return function(){const e=it();return e.setupContext||(e.setupContext=Qu(e))}().slots}function xu(e){return Ce(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Os=!0;function Tg(e){const t=Ms(e),n=e.proxy,r=e.ctx;Os=!1,t.beforeCreate&&_u(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:s,inject:c,created:u,beforeMount:p,mounted:v,beforeUpdate:m,updated:g,activated:x,deactivated:_,beforeDestroy:w,beforeUnmount:k,destroyed:A,unmounted:M,render:I,renderTracked:N,renderTriggered:S,errorCaptured:F,serverPrefetch:U,expose:B,inheritAttrs:Z,components:X,directives:Y,filters:L}=t;if(c&&function(J,te){Ce(J)&&(J=Is(J));for(const se in J){const re=J[se];let ue;ue=Xe(re)?"default"in re?ae(re.from||se,re.default,!0):ae(re.from||se):ae(re),at(ue)?Object.defineProperty(te,se,{enumerable:!0,configurable:!0,get:()=>ue.value,set:le=>ue.value=le}):te[se]=ue}}(c,r,null),a)for(const J in a){const te=a[J];Pe(te)&&(r[J]=te.bind(n))}if(o){const J=o.call(n,n);Xe(J)&&(e.data=Mt(J))}if(Os=!0,i)for(const J in i){const te=i[J],se=Pe(te)?te.bind(n,n):Pe(te.get)?te.get.bind(n,n):fn,re=!Pe(te)&&Pe(te.set)?te.set.bind(n):fn,ue=y({get:se,set:re});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>ue.value,set:le=>ue.value=le})}if(l)for(const J in l)Cu(l[J],r,n,J);if(s){const J=Pe(s)?s.call(n):s;Reflect.ownKeys(J).forEach(te=>{qt(te,J[te])})}function z(J,te){Ce(te)?te.forEach(se=>J(se.bind(n))):te&&J(te.bind(n))}if(u&&_u(u,e,"c"),z(yg,p),z(Tt,v),z(wg,m),z(kg,g),z(gg,x),z(mg,_),z(mu,F),z(Cg,N),z(_g,S),z(Ds,k),z(Tr,M),z(xg,U),Ce(B))if(B.length){const J=e.exposed||(e.exposed={});B.forEach(te=>{Object.defineProperty(J,te,{get:()=>n[te],set:se=>n[te]=se})})}else e.exposed||(e.exposed={});I&&e.render===fn&&(e.render=I),Z!=null&&(e.inheritAttrs=Z),X&&(e.components=X),Y&&(e.directives=Y),U&&hu(e)}function _u(e,t,n){Gt(Ce(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Cu(e,t,n,r){let o=r.includes(".")?Bu(n,r):()=>n[r];if(rt(e)){const i=t[e];Pe(i)&&Re(o,i)}else if(Pe(e))Re(o,e.bind(n));else if(Xe(e))if(Ce(e))e.forEach(i=>Cu(i,t,n,r));else{const i=Pe(e.handler)?e.handler.bind(n):t[e.handler];Pe(i)&&Re(o,i,e)}}function Ms(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:o.length||n||r?(s={},o.length&&o.forEach(c=>Ya(s,c,a,!0)),Ya(s,t,a)):s=t,Xe(t)&&i.set(t,s),s}function Ya(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Ya(e,i,n,!0),o&&o.forEach(a=>Ya(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=Ag[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const Ag={data:Su,props:Du,emits:Du,methods:So,computed:So,beforeCreate:_t,created:_t,beforeMount:_t,mounted:_t,beforeUpdate:_t,updated:_t,beforeDestroy:_t,beforeUnmount:_t,destroyed:_t,unmounted:_t,activated:_t,deactivated:_t,errorCaptured:_t,serverPrefetch:_t,components:So,directives:So,watch:function(e,t){if(!e)return t;if(!t)return e;const n=lt(Object.create(null),e);for(const r in t)n[r]=_t(e[r],t[r]);return n},provide:Su,inject:function(e,t){return So(Is(e),Is(t))}};function Su(e,t){return t?e?function(){return lt(Pe(e)?e.call(this,this):e,Pe(t)?t.call(this,this):t)}:t:e}function Is(e){if(Ce(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _t(e,t){return e?[...new Set([].concat(e,t))]:t}function So(e,t){return e?lt(Object.create(null),e,t):t}function Du(e,t){return e?Ce(e)&&Ce(t)?[...new Set([...e,...t])]:lt(Object.create(null),xu(e),xu(t??{})):t}function Tu(){return{app:null,config:{isNativeTag:Ah,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Eg=0;function Pg(e,t){return function(n,r=null){Pe(n)||(n=lt({},n)),r==null||Xe(r)||(r=null);const o=Tu(),i=new WeakSet,a=[];let l=!1;const s=o.app={_uid:Eg++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Hg,get config(){return o.config},set config(c){},use:(c,...u)=>(i.has(c)||(c&&Pe(c.install)?(i.add(c),c.install(s,...u)):Pe(c)&&(i.add(c),c(s,...u))),s),mixin:c=>(o.mixins.includes(c)||o.mixins.push(c),s),component:(c,u)=>u?(o.components[c]=u,s):o.components[c],directive:(c,u)=>u?(o.directives[c]=u,s):o.directives[c],mount(c,u,p){if(!l){const v=s._ceVNode||ee(n,r);return v.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),u&&t?t(v,c):e(v,c,p),l=!0,s._container=c,c.__vue_app__=s,Xa(v.component)}},onUnmount(c){a.push(c)},unmount(){l&&(Gt(a,s._instance,16),e(null,s._container),delete s._container.__vue_app__)},provide:(c,u)=>(o.provides[c]=u,s),runWithContext(c){const u=Er;Er=s;try{return c()}finally{Er=u}}};return s}}let Er=null;function qt(e,t){if(ft){let n=ft.provides;const r=ft.parent&&ft.parent.provides;r===n&&(n=ft.provides=Object.create(r)),n[e]=t}}function ae(e,t,n=!1){const r=ft||ut;if(r||Er){const o=Er?Er._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Pe(t)?t.call(r&&r.proxy):t}}const Au={},Eu=()=>Object.create(Au),Pu=e=>Object.getPrototypeOf(e)===Au;function Og(e,t,n,r=!1){const o={},i=Eu();e.propsDefaults=Object.create(null),Ou(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:gs(o,!1,qh,tg,Gc):e.type.props?e.props=o:e.props=i,e.attrs=i}function Ou(e,t,n,r){const[o,i]=e.propsOptions;let a,l=!1;if(t)for(let s in t){if(po(s))continue;const c=t[s];let u;o&&He(o,u=zt(s))?i&&i.includes(u)?(a||(a={}))[u]=c:n[u]=c:Ba(e.emitsOptions,s)||s in r&&c===r[s]||(r[s]=c,l=!0)}if(i){const s=Ve(n),c=a||Ne;for(let u=0;u<i.length;u++){const p=i[u];n[p]=Ls(o,s,p,c[p],e,!He(c,p))}}return l}function Ls(e,t,n,r,o,i){const a=e[n];if(a!=null){const l=He(a,"default");if(l&&r===void 0){const s=a.default;if(a.type!==Function&&!a.skipFactory&&Pe(s)){const{propsDefaults:c}=o;if(n in c)r=c[n];else{const u=Ao(o);r=c[n]=s.call(null,t),u()}}else r=s;o.ce&&o.ce._setProp(n,r)}a[0]&&(i&&!l?r=!1:!a[1]||r!==""&&r!==Pn(n)||(r=!0))}return r}const Mg=new WeakMap;function Mu(e,t,n=!1){const r=n?Mg:t.propsCache,o=r.get(e);if(o)return o;const i=e.props,a={},l=[];let s=!1;if(!Pe(e)){const u=p=>{s=!0;const[v,m]=Mu(p,t,!0);lt(a,v),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!s)return Xe(e)&&r.set(e,Wt),Wt;if(Ce(i))for(let u=0;u<i.length;u++){const p=zt(i[u]);Iu(p)&&(a[p]=Ne)}else if(i)for(const u in i){const p=zt(u);if(Iu(p)){const v=i[u],m=a[p]=Ce(v)||Pe(v)?{type:v}:lt({},v),g=m.type;let x=!1,_=!0;if(Ce(g))for(let w=0;w<g.length;++w){const k=g[w],A=Pe(k)&&k.name;if(A==="Boolean"){x=!0;break}A==="String"&&(_=!1)}else x=Pe(g)&&g.name==="Boolean";m[0]=x,m[1]=_,(x||He(m,"default"))&&l.push(p)}}const c=[a,l];return Xe(e)&&r.set(e,c),c}function Iu(e){return e[0]!=="$"&&!po(e)}const Lu=e=>e[0]==="_"||e==="$stable",js=e=>Ce(e)?e.map(nn):[nn(e)],Ig=(e,t,n)=>{if(t._n)return t;const r=he((...o)=>js(t(...o)),n);return r._c=!1,r},ju=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Lu(o))continue;const i=e[o];if(Pe(i))t[o]=Ig(0,i,r);else if(i!=null){const a=js(i);t[o]=()=>a}}},Ru=(e,t)=>{const n=js(t);e.slots.default=()=>n},$u=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},At=function(e,t){t&&t.pendingBranch?Ce(e)?t.effects.push(...e):t.effects.push(e):function(n){Ce(n)?Cr.push(...n):jn&&n.id===-1?jn.splice(Sr+1,0,n):1&n.flags||(Cr.push(n),n.flags|=1),Qc()}(e)};function Lg(e){return function(t){Sc().__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:i,createText:a,createComment:l,setText:s,setElementText:c,parentNode:u,nextSibling:p,setScopeId:v=fn,insertStaticContent:m}=t,g=(j,V,Q,ie=null,d=null,f=null,b=void 0,D=null,P=!!V.dynamicChildren)=>{if(j===V)return;j&&!or(j,V)&&(ie=ye(j),le(j,d,f,!0),j=null),V.patchFlag===-2&&(P=!1,V.dynamicChildren=null);const{type:E,ref:G,shapeFlag:T}=V;switch(E){case Va:x(j,V,Q,ie);break;case Ct:_(j,V,Q,ie);break;case Ua:j==null&&w(V,Q,ie,b);break;case ge:Z(j,V,Q,ie,d,f,b,D,P);break;default:1&T?M(j,V,Q,ie,d,f,b,D,P):6&T?X(j,V,Q,ie,d,f,b,D,P):(64&T||128&T)&&E.process(j,V,Q,ie,d,f,b,D,P,ze)}G!=null&&d&&Ss(G,j&&j.ref,f,V||j,!V)},x=(j,V,Q,ie)=>{if(j==null)n(V.el=a(V.children),Q,ie);else{const d=V.el=j.el;V.children!==j.children&&s(d,V.children)}},_=(j,V,Q,ie)=>{j==null?n(V.el=l(V.children||""),Q,ie):V.el=j.el},w=(j,V,Q,ie)=>{[j.el,j.anchor]=m(j.children,V,Q,ie,j.el,j.anchor)},k=({el:j,anchor:V},Q,ie)=>{let d;for(;j&&j!==V;)d=p(j),n(j,Q,ie),j=d;n(V,Q,ie)},A=({el:j,anchor:V})=>{let Q;for(;j&&j!==V;)Q=p(j),r(j),j=Q;r(V)},M=(j,V,Q,ie,d,f,b,D,P)=>{V.type==="svg"?b="svg":V.type==="math"&&(b="mathml"),j==null?I(V,Q,ie,d,f,b,D,P):F(j,V,d,f,b,D,P)},I=(j,V,Q,ie,d,f,b,D)=>{let P,E;const{props:G,shapeFlag:T,transition:q,dirs:$}=j;if(P=j.el=i(j.type,f,G&&G.is,G),8&T?c(P,j.children):16&T&&S(j.children,P,null,ie,d,Rs(j,f),b,D),$&&nr(j,null,ie,"created"),N(P,j,j.scopeId,b,ie),G){for(const K in G)K==="value"||po(K)||o(P,K,null,G[K],f,ie);"value"in G&&o(P,"value",null,G.value,f),(E=G.onVnodeBeforeMount)&&rn(E,ie,j)}$&&nr(j,null,ie,"beforeMount");const W=function(K,ne){return(!K||K&&!K.pendingBranch)&&ne&&!ne.persisted}(d,q);W&&q.beforeEnter(P),n(P,V,Q),((E=G&&G.onVnodeMounted)||W||$)&&At(()=>{E&&rn(E,ie,j),W&&q.enter(P),$&&nr(j,null,ie,"mounted")},d)},N=(j,V,Q,ie,d)=>{if(Q&&v(j,Q),ie)for(let f=0;f<ie.length;f++)v(j,ie[f]);if(d){let f=d.subTree;if(V===f||Wu(f.type)&&(f.ssContent===V||f.ssFallback===V)){const b=d.vnode;N(j,b,b.scopeId,b.slotScopeIds,d.parent)}}},S=(j,V,Q,ie,d,f,b,D,P=0)=>{for(let E=P;E<j.length;E++){const G=j[E]=D?Fn(j[E]):nn(j[E]);g(null,G,V,Q,ie,d,f,b,D)}},F=(j,V,Q,ie,d,f,b)=>{const D=V.el=j.el;let{patchFlag:P,dynamicChildren:E,dirs:G}=V;P|=16&j.patchFlag;const T=j.props||Ne,q=V.props||Ne;let $;if(Q&&rr(Q,!1),($=q.onVnodeBeforeUpdate)&&rn($,Q,V,j),G&&nr(V,j,Q,"beforeUpdate"),Q&&rr(Q,!0),(T.innerHTML&&q.innerHTML==null||T.textContent&&q.textContent==null)&&c(D,""),E?U(j.dynamicChildren,E,D,Q,ie,Rs(V,d),f):b||te(j,V,D,null,Q,ie,Rs(V,d),f,!1),P>0){if(16&P)B(D,T,q,Q,d);else if(2&P&&T.class!==q.class&&o(D,"class",null,q.class,d),4&P&&o(D,"style",T.style,q.style,d),8&P){const W=V.dynamicProps;for(let K=0;K<W.length;K++){const ne=W[K],De=T[ne],Se=q[ne];Se===De&&ne!=="value"||o(D,ne,De,Se,d,Q)}}1&P&&j.children!==V.children&&c(D,V.children)}else b||E!=null||B(D,T,q,Q,d);(($=q.onVnodeUpdated)||G)&&At(()=>{$&&rn($,Q,V,j),G&&nr(V,j,Q,"updated")},ie)},U=(j,V,Q,ie,d,f,b)=>{for(let D=0;D<V.length;D++){const P=j[D],E=V[D],G=P.el&&(P.type===ge||!or(P,E)||70&P.shapeFlag)?u(P.el):Q;g(P,E,G,null,ie,d,f,b,!0)}},B=(j,V,Q,ie,d)=>{if(V!==Q){if(V!==Ne)for(const f in V)po(f)||f in Q||o(j,f,V[f],null,d,ie);for(const f in Q){if(po(f))continue;const b=Q[f],D=V[f];b!==D&&f!=="value"&&o(j,f,D,b,d,ie)}"value"in Q&&o(j,"value",V.value,Q.value,d)}},Z=(j,V,Q,ie,d,f,b,D,P)=>{const E=V.el=j?j.el:a(""),G=V.anchor=j?j.anchor:a("");let{patchFlag:T,dynamicChildren:q,slotScopeIds:$}=V;$&&(D=D?D.concat($):$),j==null?(n(E,Q,ie),n(G,Q,ie),S(V.children||[],Q,G,d,f,b,D,P)):T>0&&64&T&&q&&j.dynamicChildren?(U(j.dynamicChildren,q,Q,d,f,b,D),(V.key!=null||d&&V===d.subTree)&&$s(j,V,!0)):te(j,V,Q,G,d,f,b,D,P)},X=(j,V,Q,ie,d,f,b,D,P)=>{V.slotScopeIds=D,j==null?512&V.shapeFlag?d.ctx.activate(V,Q,ie,b,P):Y(V,Q,ie,d,f,b,P):L(j,V,P)},Y=(j,V,Q,ie,d,f,b)=>{const D=j.component=function(P,E,G){const T=P.type,q=(E?E.appContext:P.appContext)||Vg,$={uid:Ug++,vnode:P,type:T,parent:E,appContext:q,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Nh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:E?E.provides:Object.create(q.provides),ids:E?E.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Mu(T,q),emitsOptions:Vu(T,q),emit:null,emitted:null,propsDefaults:Ne,inheritAttrs:T.inheritAttrs,ctx:Ne,data:Ne,props:Ne,attrs:Ne,slots:Ne,refs:Ne,setupState:Ne,setupContext:null,suspense:G,suspenseId:G?G.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return $.ctx={_:$},$.root=E?E.root:$,$.emit=Fg.bind(null,$),P.ce&&P.ce($),$}(j,ie,d);if(Na(j)&&(D.ctx.renderer=ze),function(P,E=!1,G=!1){E&&Bs(E);const{props:T,children:q}=P.vnode,$=Zu(P);Og(P,T,$,E),((K,ne,De)=>{const Se=K.slots=Eu();if(32&K.vnode.shapeFlag){const me=ne._;me?($u(Se,ne,De),De&&_c(Se,"_",me,!0)):ju(ne,Se)}else ne&&Ru(K,ne)})(P,q,G);const W=$?function(K,ne){const De=K.type;K.accessCache=Object.create(null),K.proxy=new Proxy(K.ctx,Dg);const{setup:Se}=De;if(Se){const me=K.setupContext=Se.length>1?Qu(K):null,be=Ao(K);Mn();const Ae=yo(Se,K,0,[K.props,me]);if(In(),be(),wc(Ae)){if(Dr(K)||hu(K),Ae.then(qu,qu),ne)return Ae.then(Ie=>{Ku(K,Ie,ne)}).catch(Ie=>{Ia(Ie,K,0)});K.asyncDep=Ae}else Ku(K,Ae,ne)}else Ju(K,ne)}(P,E):void 0;E&&Bs(!1)}(D,!1,b),D.asyncDep){if(d&&d.registerDep(D,z,b),!j.el){const P=D.subTree=ee(Ct);_(null,P,V,Q)}}else z(D,j,V,Q,d,f,b)},L=(j,V,Q)=>{const ie=V.component=j.component;if(function(d,f,b){const{props:D,children:P,component:E}=d,{props:G,children:T,patchFlag:q}=f,$=E.emitsOptions;if(f.dirs||f.transition)return!0;if(!(b&&q>=0))return!(!P&&!T||T&&T.$stable)||D!==G&&(D?!G||Uu(D,G,$):!!G);if(1024&q)return!0;if(16&q)return D?Uu(D,G,$):!!G;if(8&q){const W=f.dynamicProps;for(let K=0;K<W.length;K++){const ne=W[K];if(G[ne]!==D[ne]&&!Ba($,ne))return!0}}return!1}(j,V,Q)){if(ie.asyncDep&&!ie.asyncResolved)return void J(ie,V,Q);ie.next=V,ie.update()}else V.el=j.el,ie.vnode=V},z=(j,V,Q,ie,d,f,b)=>{const D=()=>{if(j.isMounted){let{next:T,bu:q,u:$,parent:W,vnode:K}=j;{const be=Nu(j);if(be)return T&&(T.el=K.el,J(j,T,b)),void be.asyncDep.then(()=>{j.isUnmounted||D()})}let ne,De=T;rr(j,!1),T?(T.el=K.el,J(j,T,b)):T=K,q&&ka(q),(ne=T.props&&T.props.onVnodeBeforeUpdate)&&rn(ne,W,T,K),rr(j,!0);const Se=Fs(j),me=j.subTree;j.subTree=Se,g(me,Se,u(me.el),ye(me),j,d,f),T.el=Se.el,De===null&&function({vnode:be,parent:Ae},Ie){for(;Ae;){const Ee=Ae.subTree;if(Ee.suspense&&Ee.suspense.activeBranch===be&&(Ee.el=be.el),Ee!==be)break;(be=Ae.vnode).el=Ie,Ae=Ae.parent}}(j,Se.el),$&&At($,d),(ne=T.props&&T.props.onVnodeUpdated)&&At(()=>rn(ne,W,T,K),d)}else{let T;const{el:q,props:$}=V,{bm:W,m:K,parent:ne,root:De,type:Se}=j,me=Dr(V);if(rr(j,!1),W&&ka(W),!me&&(T=$&&$.onVnodeBeforeMount)&&rn(T,ne,V),rr(j,!0),q&&Te){const be=()=>{j.subTree=Fs(j),Te(q,j.subTree,j,d,null)};me&&Se.__asyncHydrate?Se.__asyncHydrate(q,j,be):be()}else{De.ce&&De.ce._injectChildStyle(Se);const be=j.subTree=Fs(j);g(null,be,Q,ie,j,d,f),V.el=be.el}if(K&&At(K,d),!me&&(T=$&&$.onVnodeMounted)){const be=V;At(()=>rn(T,ne,be),d)}(256&V.shapeFlag||ne&&Dr(ne.vnode)&&256&ne.vnode.shapeFlag)&&j.a&&At(j.a,d),j.isMounted=!0,V=Q=ie=null}};j.scope.on();const P=j.effect=new Pc(D);j.scope.off();const E=j.update=P.run.bind(P),G=j.job=P.runIfDirty.bind(P);G.i=j,G.id=j.uid,P.scheduler=()=>ks(G),rr(j,!0),E()},J=(j,V,Q)=>{V.component=j;const ie=j.vnode.props;j.vnode=V,j.next=null,function(d,f,b,D){const{props:P,attrs:E,vnode:{patchFlag:G}}=d,T=Ve(P),[q]=d.propsOptions;let $=!1;if(!(D||G>0)||16&G){let W;Ou(d,f,P,E)&&($=!0);for(const K in T)f&&(He(f,K)||(W=Pn(K))!==K&&He(f,W))||(q?!b||b[K]===void 0&&b[W]===void 0||(P[K]=Ls(q,T,K,void 0,d,!0)):delete P[K]);if(E!==T)for(const K in E)f&&He(f,K)||(delete E[K],$=!0)}else if(8&G){const W=d.vnode.dynamicProps;for(let K=0;K<W.length;K++){let ne=W[K];if(Ba(d.emitsOptions,ne))continue;const De=f[ne];if(q)if(He(E,ne))De!==E[ne]&&(E[ne]=De,$=!0);else{const Se=zt(ne);P[Se]=Ls(q,T,Se,De,d,!1)}else De!==E[ne]&&(E[ne]=De,$=!0)}}$&&hn(d.attrs,"set","")}(j,V.props,ie,Q),((d,f,b)=>{const{vnode:D,slots:P}=d;let E=!0,G=Ne;if(32&D.shapeFlag){const T=f._;T?b&&T===1?E=!1:$u(P,f,b):(E=!f.$stable,ju(f,P)),G=f}else f&&(Ru(d,f),G={default:1});if(E)for(const T in P)Lu(T)||G[T]!=null||delete P[T]})(j,V.children,Q),Mn(),eu(j),In()},te=(j,V,Q,ie,d,f,b,D,P=!1)=>{const E=j&&j.children,G=j?j.shapeFlag:0,T=V.children,{patchFlag:q,shapeFlag:$}=V;if(q>0){if(128&q)return void re(E,T,Q,ie,d,f,b,D,P);if(256&q)return void se(E,T,Q,ie,d,f,b,D,P)}8&$?(16&G&&ve(E,d,f),T!==E&&c(Q,T)):16&G?16&$?re(E,T,Q,ie,d,f,b,D,P):ve(E,d,f,!0):(8&G&&c(Q,""),16&$&&S(T,Q,ie,d,f,b,D,P))},se=(j,V,Q,ie,d,f,b,D,P)=>{V=V||Wt;const E=(j=j||Wt).length,G=V.length,T=Math.min(E,G);let q;for(q=0;q<T;q++){const $=V[q]=P?Fn(V[q]):nn(V[q]);g(j[q],$,Q,null,d,f,b,D,P)}E>G?ve(j,d,f,!0,!1,T):S(V,Q,ie,d,f,b,D,P,T)},re=(j,V,Q,ie,d,f,b,D,P)=>{let E=0;const G=V.length;let T=j.length-1,q=G-1;for(;E<=T&&E<=q;){const $=j[E],W=V[E]=P?Fn(V[E]):nn(V[E]);if(!or($,W))break;g($,W,Q,null,d,f,b,D,P),E++}for(;E<=T&&E<=q;){const $=j[T],W=V[q]=P?Fn(V[q]):nn(V[q]);if(!or($,W))break;g($,W,Q,null,d,f,b,D,P),T--,q--}if(E>T){if(E<=q){const $=q+1,W=$<G?V[$].el:ie;for(;E<=q;)g(null,V[E]=P?Fn(V[E]):nn(V[E]),Q,W,d,f,b,D,P),E++}}else if(E>q)for(;E<=T;)le(j[E],d,f,!0),E++;else{const $=E,W=E,K=new Map;for(E=W;E<=q;E++){const Ee=V[E]=P?Fn(V[E]):nn(V[E]);Ee.key!=null&&K.set(Ee.key,E)}let ne,De=0;const Se=q-W+1;let me=!1,be=0;const Ae=new Array(Se);for(E=0;E<Se;E++)Ae[E]=0;for(E=$;E<=T;E++){const Ee=j[E];if(De>=Se){le(Ee,d,f,!0);continue}let Ze;if(Ee.key!=null)Ze=K.get(Ee.key);else for(ne=W;ne<=q;ne++)if(Ae[ne-W]===0&&or(Ee,V[ne])){Ze=ne;break}Ze===void 0?le(Ee,d,f,!0):(Ae[Ze-W]=E+1,Ze>=be?be=Ze:me=!0,g(Ee,V[Ze],Q,null,d,f,b,D,P),De++)}const Ie=me?function(Ee){const Ze=Ee.slice(),et=[0];let mt,En,ct,pn,Qi;const fM=Ee.length;for(mt=0;mt<fM;mt++){const es=Ee[mt];if(es!==0){if(En=et[et.length-1],Ee[En]<es){Ze[mt]=En,et.push(mt);continue}for(ct=0,pn=et.length-1;ct<pn;)Qi=ct+pn>>1,Ee[et[Qi]]<es?ct=Qi+1:pn=Qi;es<Ee[et[ct]]&&(ct>0&&(Ze[mt]=et[ct-1]),et[ct]=mt)}}for(ct=et.length,pn=et[ct-1];ct-- >0;)et[ct]=pn,pn=Ze[pn];return et}(Ae):Wt;for(ne=Ie.length-1,E=Se-1;E>=0;E--){const Ee=W+E,Ze=V[Ee],et=Ee+1<G?V[Ee+1].el:ie;Ae[E]===0?g(null,Ze,Q,et,d,f,b,D,P):me&&(ne<0||E!==Ie[ne]?ue(Ze,Q,et,2):ne--)}}},ue=(j,V,Q,ie,d=null)=>{const{el:f,type:b,transition:D,children:P,shapeFlag:E}=j;if(6&E)return void ue(j.component.subTree,V,Q,ie);if(128&E)return void j.suspense.move(V,Q,ie);if(64&E)return void b.move(j,V,Q,ze);if(b===ge){n(f,V,Q);for(let G=0;G<P.length;G++)ue(P[G],V,Q,ie);return void n(j.anchor,V,Q)}if(b===Ua)return void k(j,V,Q);if(ie!==2&&1&E&&D)if(ie===0)D.beforeEnter(f),n(f,V,Q),At(()=>D.enter(f),d);else{const{leave:G,delayLeave:T,afterLeave:q}=D,$=()=>n(f,V,Q),W=()=>{G(f,()=>{$(),q&&q()})};T?T(f,$,W):W()}else n(f,V,Q)},le=(j,V,Q,ie=!1,d=!1)=>{const{type:f,props:b,ref:D,children:P,dynamicChildren:E,shapeFlag:G,patchFlag:T,dirs:q,cacheIndex:$}=j;if(T===-2&&(d=!1),D!=null&&Ss(D,null,Q,j,!0),$!=null&&(V.renderCache[$]=void 0),256&G)return void V.ctx.deactivate(j);const W=1&G&&q,K=!Dr(j);let ne;if(K&&(ne=b&&b.onVnodeBeforeUnmount)&&rn(ne,V,j),6&G)ce(j.component,Q,ie);else{if(128&G)return void j.suspense.unmount(Q,ie);W&&nr(j,null,V,"beforeUnmount"),64&G?j.type.remove(j,V,Q,ze,ie):E&&!E.hasOnce&&(f!==ge||T>0&&64&T)?ve(E,V,Q,!1,!0):(f===ge&&384&T||!d&&16&G)&&ve(P,V,Q),ie&&_e(j)}(K&&(ne=b&&b.onVnodeUnmounted)||W)&&At(()=>{ne&&rn(ne,V,j),W&&nr(j,null,V,"unmounted")},Q)},_e=j=>{const{type:V,el:Q,anchor:ie,transition:d}=j;if(V===ge)return void $e(Q,ie);if(V===Ua)return void A(j);const f=()=>{r(Q),d&&!d.persisted&&d.afterLeave&&d.afterLeave()};if(1&j.shapeFlag&&d&&!d.persisted){const{leave:b,delayLeave:D}=d,P=()=>b(Q,f);D?D(j.el,f,P):P()}else f()},$e=(j,V)=>{let Q;for(;j!==V;)Q=p(j),r(j),j=Q;r(V)},ce=(j,V,Q)=>{const{bum:ie,scope:d,job:f,subTree:b,um:D,m:P,a:E}=j;Fu(P),Fu(E),ie&&ka(ie),d.stop(),f&&(f.flags|=8,le(b,j,V,Q)),D&&At(D,V),At(()=>{j.isUnmounted=!0},V),V&&V.pendingBranch&&!V.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===V.pendingId&&(V.deps--,V.deps===0&&V.resolve())},ve=(j,V,Q,ie=!1,d=!1,f=0)=>{for(let b=f;b<j.length;b++)le(j[b],V,Q,ie,d)},ye=j=>{if(6&j.shapeFlag)return ye(j.component.subTree);if(128&j.shapeFlag)return j.suspense.next();const V=p(j.anchor||j.el),Q=V&&V[ou];return Q?p(Q):V};let Me=!1;const Oe=(j,V,Q)=>{j==null?V._vnode&&le(V._vnode,null,null,!0):g(V._vnode||null,j,V,null,null,null,Q),V._vnode=j,Me||(Me=!0,eu(),tu(),Me=!1)},ze={p:g,um:le,m:ue,r:_e,mt:Y,mc:S,pc:te,pbc:U,n:ye,o:t};let Be,Te;return{render:Oe,hydrate:Be,createApp:Pg(Oe,Be)}}(e)}function Rs({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 rr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $s(e,t,n=!1){const r=e.children,o=t.children;if(Ce(r)&&Ce(o))for(let i=0;i<r.length;i++){const a=r[i];let l=o[i];1&l.shapeFlag&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[i]=Fn(o[i]),l.el=a.el),n||l.patchFlag===-2||$s(a,l)),l.type===Va&&(l.el=a.el)}}function Nu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Nu(t)}function Fu(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const jg=Symbol.for("v-scx"),Rg=()=>ae(jg);function Yu(e,t){return Ns(e,null,t)}function Re(e,t,n){return Ns(e,t,n)}function Ns(e,t,n=Ne){const{immediate:r,deep:o,flush:i,once:a}=n,l=lt({},n);let s;if(Za)if(i==="sync"){const v=Rg();s=v.__watcherHandles||(v.__watcherHandles=[])}else{if(t&&!r)return{stop:fn,resume:fn,pause:fn};l.once=!0}const c=ft;l.call=(v,m,g)=>Gt(v,c,m,g);let u=!1;i==="post"?l.scheduler=v=>{At(v,c&&c.suspense)}:i!=="sync"&&(u=!0,l.scheduler=(v,m)=>{m?v():ks(v)}),l.augmentJob=v=>{t&&(v.flags|=4),u&&(v.flags|=2,c&&(v.id=c.uid,v.i=c))};const p=dg(e,t,l);return s&&s.push(p),p}function $g(e,t,n){const r=this.proxy,o=rt(e)?e.includes(".")?Bu(r,e):()=>r[e]:e.bind(r,r);let i;Pe(t)?i=t:(i=t.handler,n=t);const a=Ao(this),l=Ns(o,i.bind(r),n);return a(),l}function Bu(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const Ng=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${zt(t)}Modifiers`]||e[`${Pn(t)}Modifiers`];function Fg(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ne;let o=n;const i=t.startsWith("update:"),a=i&&Ng(r,t.slice(7));let l;a&&(a.trim&&(o=n.map(u=>rt(u)?u.trim():u)),a.number&&(o=n.map(Mh)));let s=r[l=wa(t)]||r[l=wa(zt(t))];!s&&i&&(s=r[l=wa(Pn(t))]),s&&Gt(s,e,6,o);const c=r[l+"Once"];if(c){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,Gt(c,e,6,o)}}function Vu(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},l=!1;if(!Pe(e)){const s=c=>{const u=Vu(c,t,!0);u&&(l=!0,lt(a,u))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return i||l?(Ce(i)?i.forEach(s=>a[s]=null):lt(a,i),Xe(e)&&r.set(e,a),a):(Xe(e)&&r.set(e,null),null)}function Ba(e,t){return!(!e||!ga(t))&&(t=t.slice(2).replace(/Once$/,""),He(e,t[0].toLowerCase()+t.slice(1))||He(e,Pn(t))||He(e,t))}function Fs(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:a,attrs:l,emit:s,render:c,renderCache:u,props:p,data:v,setupState:m,ctx:g,inheritAttrs:x}=e,_=La(e);let w,k;try{if(4&n.shapeFlag){const M=o||r,I=M;w=nn(c.call(I,M,u,p,m,v,g)),k=l}else{const M=t;w=nn(M.length>1?M(p,{attrs:l,slots:a,emit:s}):M(p,null)),k=t.props?l:Yg(l)}}catch(M){Do.length=0,Ia(M,e,1),w=ee(Ct)}let A=w;if(k&&x!==!1){const M=Object.keys(k),{shapeFlag:I}=A;M.length&&7&I&&(i&&M.some(ts)&&(k=Bg(k,i)),A=Nn(A,k,!1,!0))}return n.dirs&&(A=Nn(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&_o(A,n.transition),w=A,La(_),w}const Yg=e=>{let t;for(const n in e)(n==="class"||n==="style"||ga(n))&&((t||(t={}))[n]=e[n]);return t},Bg=(e,t)=>{const n={};for(const r in e)ts(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Uu(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!Ba(n,i))return!0}return!1}const Wu=e=>e.__isSuspense,ge=Symbol.for("v-fgt"),Va=Symbol.for("v-txt"),Ct=Symbol.for("v-cmt"),Ua=Symbol.for("v-stc"),Do=[];let It=null;function C(e=!1){Do.push(It=e?null:[])}let To=1;function zu(e){To+=e,e<0&&It&&(It.hasOnce=!0)}function Hu(e){return e.dynamicChildren=To>0?It||Wt:null,Do.pop(),It=Do[Do.length-1]||null,To>0&&It&&It.push(e),e}function R(e,t,n,r,o,i){return Hu(h(e,t,n,r,o,i,!0))}function fe(e,t,n,r,o){return Hu(ee(e,t,n,r,o,!0))}function Wa(e){return!!e&&e.__v_isVNode===!0}function or(e,t){return e.type===t.type&&e.key===t.key}const Gu=({key:e})=>e??null,za=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?rt(e)||at(e)||Pe(e)?{i:ut,r:e,k:t,f:!!n}:e:null);function h(e,t=null,n=null,r=0,o=null,i=e===ge?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gu(t),ref:t&&za(t),scopeId:ru,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ut};return l?(Ys(s,n),128&i&&e.normalize(s)):n&&(s.shapeFlag|=rt(n)?8:16),To>0&&!a&&It&&(s.patchFlag>0||6&i)&&s.patchFlag!==32&&It.push(s),s}const ee=function(e,t=null,n=null,r=0,o=null,i=!1){if(e&&e!==bu||(e=Ct),Wa(e)){const s=Nn(e,t,!0);return n&&Ys(s,n),To>0&&!i&&It&&(6&s.shapeFlag?It[It.indexOf(e)]=s:It.push(s)),s.patchFlag=-2,s}a=e,Pe(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=Ha(t);let{class:s,style:c}=t;s&&!rt(s)&&(t.class=we(s)),Xe(c)&&(ms(c)&&!Ce(c)&&(c=lt({},c)),t.style=pt(c))}const l=rt(e)?1:Wu(e)?128:au(e)?64:Xe(e)?4:Pe(e)?2:0;return h(e,t,n,r,o,l,i,!0)};function Ha(e){return e?ms(e)||Pu(e)?lt({},e):e:null}function Nn(e,t,n=!1,r=!1){const{props:o,ref:i,patchFlag:a,children:l,transition:s}=e,c=t?Zt(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Gu(c),ref:t&&t.ref?n&&i?Ce(i)?i.concat(za(t)):[i,za(t)]:za(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?a===-1?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nn(e.ssContent),ssFallback:e.ssFallback&&Nn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&_o(u,s.clone(u)),u}function xe(e=" ",t=0){return ee(Va,null,e,t)}function Ga(e,t){const n=ee(Ua,null,e);return n.staticCount=t,n}function oe(e="",t=!1){return t?(C(),fe(Ct,null,e)):ee(Ct,null,e)}function nn(e){return e==null||typeof e=="boolean"?ee(Ct):Ce(e)?ee(ge,null,e.slice()):typeof e=="object"?Fn(e):ee(Va,null,String(e))}function Fn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nn(e)}function Ys(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ce(t))n=16;else if(typeof t=="object"){if(65&r){const o=t.default;return void(o&&(o._c&&(o._d=!1),Ys(e,o()),o._c&&(o._d=!0)))}{n=32;const o=t._;o||Pu(t)?o===3&&ut&&(ut.slots._===1?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=ut}}else Pe(t)?(t={default:t,_ctx:ut},n=32):(t=String(t),64&r?(n=16,t=[xe(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zt(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=we([t.class,r.class]));else if(o==="style")t.style=pt([t.style,r.style]);else if(ga(o)){const i=t[o],a=r[o];!a||i===a||Ce(i)&&i.includes(a)||(t[o]=i?[].concat(i,a):a)}else o!==""&&(t[o]=r[o])}return t}function rn(e,t,n,r=null){Gt(e,t,7,[n,r])}const Vg=Tu();let Ug=0,ft=null;const it=()=>ft||ut;let qa,Bs;{const e=Sc(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};qa=t("__VUE_INSTANCE_SETTERS__",n=>ft=n),Bs=t("__VUE_SSR_SETTERS__",n=>Za=n)}const Ao=e=>{const t=ft;return qa(e),e.scope.on(),()=>{e.scope.off(),qa(t)}},qu=()=>{ft&&ft.scope.off(),qa(null)};function Zu(e){return 4&e.vnode.shapeFlag}let Xu,Za=!1;function Ku(e,t,n){Pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Xe(t)&&(e.setupState=Xc(t)),Ju(e,n)}function Ju(e,t,n){const r=e.type;if(!e.render){if(!t&&Xu&&!r.render){const o=r.template||Ms(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=r,c=lt(lt({isCustomElement:i,delimiters:l},a),s);r.render=Xu(o,c)}}e.render=r.render||fn}{const o=Ao(e);Mn();try{Tg(e)}finally{In(),o()}}}const Wg={get:(e,t)=>(bt(e,0,""),e[t])};function Qu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Wg),slots:e.slots,emit:e.emit,expose:t}}function Xa(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xc((t=e.exposed,!He(t,"__v_skip")&&Object.isExtensible(t)&&_c(t,"__v_skip",!0),t)),{get:(n,r)=>r in n?n[r]:r in Co?Co[r](e):void 0,has:(n,r)=>r in n||r in Co})):e.proxy;var t}function zg(e,t=!0){return Pe(e)?e.displayName||e.name:e.name||t&&e.__name}const y=(e,t)=>function(r,o,i=!1){let a,l;return Pe(r)?a=r:(a=r.get,l=r.set),new ug(a,l,i)}(e,0,Za);function Vs(e,t,n){const r=arguments.length;return r===2?Xe(t)&&!Ce(t)?Wa(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wa(n)&&(n=[n]),ee(e,t,n))}const Hg="3.5.5";/**
  * @vue/runtime-dom v3.5.5
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/let Us;const ed=typeof window<"u"&&window.trustedTypes;if(ed)try{Us=ed.createPolicy("vue",{createHTML:e=>e})}catch{}const td=Us?e=>Us.createHTML(e):e=>e,wn=typeof document<"u"?document:null,nd=wn&&wn.createElement("template"),Gg={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 o=t==="svg"?wn.createElementNS("http://www.w3.org/2000/svg",e):t==="mathml"?wn.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?wn.createElement(e,{is:n}):wn.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>wn.createTextNode(e),createComment:e=>wn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{nd.innerHTML=td(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=nd.content;if(r==="svg"||r==="mathml"){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Yn="transition",Eo="animation",Po=Symbol("_vtc"),rd={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},qg=lt({},cu,rd),Zg=e=>(e.displayName="Transition",e.props=qg,e),Ka=Zg((e,{slots:t})=>Vs(hg,function(n){const r={};for(const L in n)L in rd||(r[L]=n[L]);if(n.css===!1)return r;const{name:o="v",type:i,duration:a,enterFromClass:l=`${o}-enter-from`,enterActiveClass:s=`${o}-enter-active`,enterToClass:c=`${o}-enter-to`,appearFromClass:u=l,appearActiveClass:p=s,appearToClass:v=c,leaveFromClass:m=`${o}-leave-from`,leaveActiveClass:g=`${o}-leave-active`,leaveToClass:x=`${o}-leave-to`}=n,_=function(L){if(L==null)return null;if(Xe(L))return[Ws(L.enter),Ws(L.leave)];{const z=Ws(L);return[z,z]}}(a),w=_&&_[0],k=_&&_[1],{onBeforeEnter:A,onEnter:M,onEnterCancelled:I,onLeave:N,onLeaveCancelled:S,onBeforeAppear:F=A,onAppear:U=M,onAppearCancelled:B=I}=r,Z=(L,z,J)=>{ir(L,z?v:c),ir(L,z?p:s),J&&J()},X=(L,z)=>{L._isLeaving=!1,ir(L,m),ir(L,x),ir(L,g),z&&z()},Y=L=>(z,J)=>{const te=L?U:M,se=()=>Z(z,L,J);ar(te,[z,se]),ad(()=>{ir(z,L?u:l),Bn(z,L?v:c),od(te)||id(z,i,w,se)})};return lt(r,{onBeforeEnter(L){ar(A,[L]),Bn(L,l),Bn(L,s)},onBeforeAppear(L){ar(F,[L]),Bn(L,u),Bn(L,p)},onEnter:Y(!1),onAppear:Y(!0),onLeave(L,z){L._isLeaving=!0;const J=()=>X(L,z);Bn(L,m),Bn(L,g),document.body.offsetHeight,ad(()=>{L._isLeaving&&(ir(L,m),Bn(L,x),od(N)||id(L,i,k,J))}),ar(N,[L,J])},onEnterCancelled(L){Z(L,!1),ar(I,[L])},onAppearCancelled(L){Z(L,!0),ar(B,[L])},onLeaveCancelled(L){X(L),ar(S,[L])}})}(e),t)),ar=(e,t=[])=>{Ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},od=e=>!!e&&(Ce(e)?e.some(t=>t.length>1):e.length>1);function Ws(e){return(n=>{const r=rt(n)?Number(n):NaN;return isNaN(r)?n:r})(e)}function Bn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Po]||(e[Po]=new Set)).add(t)}function ir(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Po];n&&(n.delete(t),n.size||(e[Po]=void 0))}function ad(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Xg=0;function id(e,t,n,r){const o=e._endId=++Xg,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:s}=function(m,g){const x=window.getComputedStyle(m),_=Z=>(x[Z]||"").split(", "),w=_(`${Yn}Delay`),k=_(`${Yn}Duration`),A=sd(w,k),M=_(`${Eo}Delay`),I=_(`${Eo}Duration`),N=sd(M,I);let S=null,F=0,U=0;g===Yn?A>0&&(S=Yn,F=A,U=k.length):g===Eo?N>0&&(S=Eo,F=N,U=I.length):(F=Math.max(A,N),S=F>0?A>N?Yn:Eo:null,U=S?S===Yn?k.length:I.length:0);const B=S===Yn&&/\b(transform|all)(,|$)/.test(_(`${Yn}Property`).toString());return{type:S,timeout:F,propCount:U,hasTransform:B}}(e,t);if(!a)return r();const c=a+"end";let u=0;const p=()=>{e.removeEventListener(c,v),i()},v=m=>{m.target===e&&++u>=s&&p()};setTimeout(()=>{u<s&&p()},l+1),e.addEventListener(c,v)}function sd(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>ld(n)+ld(e[r])))}function ld(e){return e==="auto"?0:1e3*Number(e.slice(0,-1).replace(",","."))}const Ja=Symbol("_vod"),cd=Symbol("_vsh"),Ye={beforeMount(e,{value:t},{transition:n}){e[Ja]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Oo(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Oo(e,!0),r.enter(e)):r.leave(e,()=>{Oo(e,!1)}):Oo(e,t))},beforeUnmount(e,{value:t}){Oo(e,t)}};function Oo(e,t){e.style.display=t?e[Ja]:"none",e[cd]=!t}const Kg=Symbol(""),Jg=/(^|;)\s*display\s*:/,ud=/\s*!important$/;function Qa(e,t,n){if(Ce(n))n.forEach(r=>Qa(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(o,i){const a=zs[i];if(a)return a;let l=zt(i);if(l!=="filter"&&l in o)return zs[i]=l;l=ya(l);for(let s=0;s<dd.length;s++){const c=dd[s]+l;if(c in o)return zs[i]=c}return i}(e,t);ud.test(n)?e.setProperty(Pn(r),n.replace(ud,""),"important"):e[r]=n}}const dd=["Webkit","Moz","ms"],zs={},pd="http://www.w3.org/1999/xlink";function vd(e,t,n,r,o,i=$h(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(pd,t.slice(6,t.length)):e.setAttributeNS(pd,t,n):n==null||i&&!Dc(n)?e.removeAttribute(t):e.setAttribute(t,i?"":en(n)?String(n):n)}function fd(e,t,n,r){e.addEventListener(t,n,r)}const hd=Symbol("_vei");function Qg(e,t,n,r,o=null){const i=e[hd]||(e[hd]={}),a=i[t];if(r&&a)a.value=r;else{const[l,s]=function(c){let u;if(gd.test(c)){let v;for(u={};v=c.match(gd);)c=c.slice(0,c.length-v[0].length),u[v[0].toLowerCase()]=!0}return[c[2]===":"?c.slice(3):Pn(c.slice(2)),u]}(t);if(r){const c=i[t]=function(u,p){const v=m=>{if(m._vts){if(m._vts<=v.attached)return}else m._vts=Date.now();Gt(function(g,x){if(Ce(x)){const _=g.stopImmediatePropagation;return g.stopImmediatePropagation=()=>{_.call(g),g._stopped=!0},x.map(w=>k=>!k._stopped&&w&&w(k))}return x}(m,v.value),p,5,[m])};return v.value=u,v.attached=tm(),v}(r,o);fd(e,l,c,s)}else a&&(function(c,u,p,v){c.removeEventListener(u,p,v)}(e,l,a,s),i[t]=void 0)}}const gd=/(?:Once|Passive|Capture)$/;let Hs=0;const em=Promise.resolve(),tm=()=>Hs||(em.then(()=>Hs=0),Hs=Date.now()),md=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bd=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ce(t)?n=>ka(t,n):t},Gs=Symbol("_assign"),nm={deep:!0,created(e,t,n){e[Gs]=bd(n),fd(e,"change",()=>{const r=e._modelValue,o=function(l){return"_value"in l?l._value:l.value}(e),i=e.checked,a=e[Gs];if(Ce(r)){const l=Tc(r,o),s=l!==-1;if(i&&!s)a(r.concat(o));else if(!i&&s){const c=[...r];c.splice(l,1),a(c)}}else if(ma(r)){const l=new Set(r);i?l.add(o):l.delete(o),a(l)}else a(wd(e,i))})},mounted:yd,beforeUpdate(e,t,n){e[Gs]=bd(n),yd(e,t,n)}};function yd(e,{value:t,oldValue:n},r){let o;e._modelValue=t,o=Ce(t)?Tc(t,r.props.value)>-1:ma(t)?t.has(r.props.value):xa(t,wd(e,!0)),e.checked!==o&&(e.checked=o)}function wd(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const rm=["ctrl","shift","alt","meta"],om={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)=>rm.some(n=>e[`${n}Key`]&&!t.includes(n))},sr=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...i)=>{for(let a=0;a<t.length;a++){const l=om[t[a]];if(l&&l(o,t))return}return e(o,...i)})},am={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Mo=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const i=Pn(o.key);return t.some(a=>a===i||am[a]===i)?e(o):void 0})},im=lt({patchProp:(e,t,n,r,o,i)=>{const a=o==="svg";t==="class"?function(l,s,c){const u=l[Po];u&&(s=(s?[s,...u]:[...u]).join(" ")),s==null?l.removeAttribute("class"):c?l.setAttribute("class",s):l.className=s}(e,r,a):t==="style"?function(l,s,c){const u=l.style,p=rt(c);let v=!1;if(c&&!p){if(s)if(rt(s))for(const m of s.split(";")){const g=m.slice(0,m.indexOf(":")).trim();c[g]==null&&Qa(u,g,"")}else for(const m in s)c[m]==null&&Qa(u,m,"");for(const m in c)m==="display"&&(v=!0),Qa(u,m,c[m])}else if(p){if(s!==c){const m=u[Kg];m&&(c+=";"+m),u.cssText=c,v=Jg.test(c)}}else s&&l.removeAttribute("style");Ja in l&&(l[Ja]=v?u.display:"",l[cd]&&(u.display="none"))}(e,n,r):ga(t)?ts(t)||Qg(e,t,0,r,i):(t[0]==="."?(t=t.slice(1),1):t[0]==="^"?(t=t.slice(1),0):function(l,s,c,u){if(u)return s==="innerHTML"||s==="textContent"||!!(s in l&&md(s)&&Pe(c));if(s==="spellcheck"||s==="draggable"||s==="translate"||s==="form"||s==="list"&&l.tagName==="INPUT"||s==="type"&&l.tagName==="TEXTAREA")return!1;if(s==="width"||s==="height"){const p=l.tagName;if(p==="IMG"||p==="VIDEO"||p==="CANVAS"||p==="SOURCE")return!1}return md(s)&&rt(c)?!1:!!(s in l||l._isVueCE&&(/[A-Z]/.test(s)||!rt(c)))}(e,t,r,a))?(function(l,s,c){if(s==="innerHTML"||s==="textContent")return void(c!=null&&(l[s]=s==="innerHTML"?td(c):c));const u=l.tagName;if(s==="value"&&u!=="PROGRESS"&&!u.includes("-")){const v=u==="OPTION"?l.getAttribute("value")||"":l.value,m=c==null?l.type==="checkbox"?"on":"":String(c);return v===m&&"_value"in l||(l.value=m),c==null&&l.removeAttribute(s),void(l._value=c)}let p=!1;if(c===""||c==null){const v=typeof l[s];v==="boolean"?c=Dc(c):c==null&&v==="string"?(c="",p=!0):v==="number"&&(c=0,p=!0)}try{l[s]=c}catch{}p&&l.removeAttribute(s)}(e,t,r),e.tagName.includes("-")||t!=="value"&&t!=="checked"&&t!=="selected"||vd(e,t,r,a,0,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),vd(e,t,r,a))}},Gg);let kd;const sm=(...e)=>{const t=(kd||(kd=Lg(im))).createApp(...e),{mount:n}=t;return t.mount=r=>{const o=function(l){return rt(l)?document.querySelector(l):l}(r);if(!o)return;const i=t._component;Pe(i)||i.render||i.template||(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,function(l){if(l instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&l instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};typeof globalThis<"u"||typeof window<"u"||(typeof global<"u"?global:typeof self<"u");function lm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}for(var qs={},cm={byteLength:function(e){var t=_d(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=_d(e),o=r[0],i=r[1],a=new um(function(c,u,p){return 3*(u+p)/4-p}(0,o,i)),l=0,s=i>0?o-4:o;for(n=0;n<s;n+=4)t=$t[e.charCodeAt(n)]<<18|$t[e.charCodeAt(n+1)]<<12|$t[e.charCodeAt(n+2)]<<6|$t[e.charCodeAt(n+3)],a[l++]=t>>16&255,a[l++]=t>>8&255,a[l++]=255&t;return i===2&&(t=$t[e.charCodeAt(n)]<<2|$t[e.charCodeAt(n+1)]>>4,a[l++]=255&t),i===1&&(t=$t[e.charCodeAt(n)]<<10|$t[e.charCodeAt(n+1)]<<4|$t[e.charCodeAt(n+2)]>>2,a[l++]=t>>8&255,a[l++]=255&t),a},fromByteArray:function(e){for(var t,n=e.length,r=n%3,o=[],i=16383,a=0,l=n-r;a<l;a+=i)o.push(dm(e,a,a+i>l?l:a+i));return r===1?(t=e[n-1],o.push(on[t>>2]+on[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(on[t>>10]+on[t>>4&63]+on[t<<2&63]+"=")),o.join("")}},on=[],$t=[],um=typeof Uint8Array<"u"?Uint8Array:Array,xd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pr=0;Pr<64;++Pr)on[Pr]=xd[Pr],$t[xd.charCodeAt(Pr)]=Pr;function _d(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return n===-1&&(n=t),[n,n===t?0:4-n%4]}function dm(e,t,n){for(var r,o,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(on[(o=r)>>18&63]+on[o>>12&63]+on[o>>6&63]+on[63&o]);return i.join("")}$t[45]=62,$t[95]=63;var pm={read:function(e,t,n,r,o){var i,a,l=8*o-r-1,s=(1<<l)-1,c=s>>1,u=-7,p=n?o-1:0,v=n?-1:1,m=e[t+p];for(p+=v,i=m&(1<<-u)-1,m>>=-u,u+=l;u>0;i=256*i+e[t+p],p+=v,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+p],p+=v,u-=8);if(i===0)i=1-c;else{if(i===s)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,r),i-=c}return(m?-1:1)*a*Math.pow(2,i-r)},write:function(e,t,n,r,o,i){var a,l,s,c=8*i-o-1,u=(1<<c)-1,p=u>>1,v=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:i-1,g=r?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+p>=1?v/s:v*Math.pow(2,1-p))*s>=2&&(a++,s/=2),a+p>=u?(l=0,a=u):a+p>=1?(l=(t*s-1)*Math.pow(2,o),a+=p):(l=t*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;e[n+m]=255&l,m+=g,l/=256,o-=8);for(a=a<<o|l,c+=o;c>0;e[n+m]=255&a,m+=g,a/=256,c-=8);e[n+m-g]|=128*x}};/*!
   * The buffer module from node.js, for the browser.
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */(function(e){const t=cm,n=pm,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(d){return+d!=d&&(d=0),a.alloc(+d)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function i(d){if(d>o)throw new RangeError('The value "'+d+'" is invalid for option "size"');const f=new Uint8Array(d);return Object.setPrototypeOf(f,a.prototype),f}function a(d,f,b){if(typeof d=="number"){if(typeof f=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return c(d)}return l(d,f,b)}function l(d,f,b){if(typeof d=="string")return function(E,G){if(typeof G=="string"&&G!==""||(G="utf8"),!a.isEncoding(G))throw new TypeError("Unknown encoding: "+G);const T=0|m(E,G);let q=i(T);const $=q.write(E,G);return $!==T&&(q=q.slice(0,$)),q}(d,f);if(ArrayBuffer.isView(d))return function(E){if(Te(E,Uint8Array)){const G=new Uint8Array(E);return p(G.buffer,G.byteOffset,G.byteLength)}return u(E)}(d);if(d==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d);if(Te(d,ArrayBuffer)||d&&Te(d.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Te(d,SharedArrayBuffer)||d&&Te(d.buffer,SharedArrayBuffer)))return p(d,f,b);if(typeof d=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=d.valueOf&&d.valueOf();if(D!=null&&D!==d)return a.from(D,f,b);const P=function(E){if(a.isBuffer(E)){const G=0|v(E.length),T=i(G);return T.length===0||E.copy(T,0,0,G),T}if(E.length!==void 0)return typeof E.length!="number"||j(E.length)?i(0):u(E);if(E.type==="Buffer"&&Array.isArray(E.data))return u(E.data)}(d);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof d[Symbol.toPrimitive]=="function")return a.from(d[Symbol.toPrimitive]("string"),f,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d)}function s(d){if(typeof d!="number")throw new TypeError('"size" argument must be of type number');if(d<0)throw new RangeError('The value "'+d+'" is invalid for option "size"')}function c(d){return s(d),i(d<0?0:0|v(d))}function u(d){const f=d.length<0?0:0|v(d.length),b=i(f);for(let D=0;D<f;D+=1)b[D]=255&d[D];return b}function p(d,f,b){if(f<0||d.byteLength<f)throw new RangeError('"offset" is outside of buffer bounds');if(d.byteLength<f+(b||0))throw new RangeError('"length" is outside of buffer bounds');let D;return D=f===void 0&&b===void 0?new Uint8Array(d):b===void 0?new Uint8Array(d,f):new Uint8Array(d,f,b),Object.setPrototypeOf(D,a.prototype),D}function v(d){if(d>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|d}function m(d,f){if(a.isBuffer(d))return d.length;if(ArrayBuffer.isView(d)||Te(d,ArrayBuffer))return d.byteLength;if(typeof d!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof d);const b=d.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&b===0)return 0;let P=!1;for(;;)switch(f){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return Oe(d).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*b;case"hex":return b>>>1;case"base64":return ze(d).length;default:if(P)return D?-1:Oe(d).length;f=(""+f).toLowerCase(),P=!0}}function g(d,f,b){let D=!1;if((f===void 0||f<0)&&(f=0),f>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0)<=(f>>>=0))return"";for(d||(d="utf8");;)switch(d){case"hex":return X(this,f,b);case"utf8":case"utf-8":return F(this,f,b);case"ascii":return B(this,f,b);case"latin1":case"binary":return Z(this,f,b);case"base64":return S(this,f,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,f,b);default:if(D)throw new TypeError("Unknown encoding: "+d);d=(d+"").toLowerCase(),D=!0}}function x(d,f,b){const D=d[f];d[f]=d[b],d[b]=D}function _(d,f,b,D,P){if(d.length===0)return-1;if(typeof b=="string"?(D=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),j(b=+b)&&(b=P?0:d.length-1),b<0&&(b=d.length+b),b>=d.length){if(P)return-1;b=d.length-1}else if(b<0){if(!P)return-1;b=0}if(typeof f=="string"&&(f=a.from(f,D)),a.isBuffer(f))return f.length===0?-1:w(d,f,b,D,P);if(typeof f=="number")return f&=255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(d,f,b):Uint8Array.prototype.lastIndexOf.call(d,f,b):w(d,[f],b,D,P);throw new TypeError("val must be string, number or Buffer")}function w(d,f,b,D,P){let E,G=1,T=d.length,q=f.length;if(D!==void 0&&((D=String(D).toLowerCase())==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(d.length<2||f.length<2)return-1;G=2,T/=2,q/=2,b/=2}function $(W,K){return G===1?W[K]:W.readUInt16BE(K*G)}if(P){let W=-1;for(E=b;E<T;E++)if($(d,E)===$(f,W===-1?0:E-W)){if(W===-1&&(W=E),E-W+1===q)return W*G}else W!==-1&&(E-=E-W),W=-1}else for(b+q>T&&(b=T-q),E=b;E>=0;E--){let W=!0;for(let K=0;K<q;K++)if($(d,E+K)!==$(f,K)){W=!1;break}if(W)return E}return-1}function k(d,f,b,D){b=Number(b)||0;const P=d.length-b;D?(D=Number(D))>P&&(D=P):D=P;const E=f.length;let G;for(D>E/2&&(D=E/2),G=0;G<D;++G){const T=parseInt(f.substr(2*G,2),16);if(j(T))return G;d[b+G]=T}return G}function A(d,f,b,D){return Be(Oe(f,d.length-b),d,b,D)}function M(d,f,b,D){return Be(function(P){const E=[];for(let G=0;G<P.length;++G)E.push(255&P.charCodeAt(G));return E}(f),d,b,D)}function I(d,f,b,D){return Be(ze(f),d,b,D)}function N(d,f,b,D){return Be(function(P,E){let G,T,q;const $=[];for(let W=0;W<P.length&&!((E-=2)<0);++W)G=P.charCodeAt(W),T=G>>8,q=G%256,$.push(q),$.push(T);return $}(f,d.length-b),d,b,D)}function S(d,f,b){return f===0&&b===d.length?t.fromByteArray(d):t.fromByteArray(d.slice(f,b))}function F(d,f,b){b=Math.min(d.length,b);const D=[];let P=f;for(;P<b;){const E=d[P];let G=null,T=E>239?4:E>223?3:E>191?2:1;if(P+T<=b){let q,$,W,K;switch(T){case 1:E<128&&(G=E);break;case 2:q=d[P+1],(192&q)==128&&(K=(31&E)<<6|63&q,K>127&&(G=K));break;case 3:q=d[P+1],$=d[P+2],(192&q)==128&&(192&$)==128&&(K=(15&E)<<12|(63&q)<<6|63&$,K>2047&&(K<55296||K>57343)&&(G=K));break;case 4:q=d[P+1],$=d[P+2],W=d[P+3],(192&q)==128&&(192&$)==128&&(192&W)==128&&(K=(15&E)<<18|(63&q)<<12|(63&$)<<6|63&W,K>65535&&K<1114112&&(G=K))}}G===null?(G=65533,T=1):G>65535&&(G-=65536,D.push(G>>>10&1023|55296),G=56320|1023&G),D.push(G),P+=T}return function(E){const G=E.length;if(G<=U)return String.fromCharCode.apply(String,E);let T="",q=0;for(;q<G;)T+=String.fromCharCode.apply(String,E.slice(q,q+=U));return T}(D)}e.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=function(){try{const d=new Uint8Array(1),f={foo:function(){return 42}};return Object.setPrototypeOf(f,Uint8Array.prototype),Object.setPrototypeOf(d,f),d.foo()===42}catch{return!1}}(),a.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(d,f,b){return l(d,f,b)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(d,f,b){return function(D,P,E){return s(D),D<=0?i(D):P!==void 0?typeof E=="string"?i(D).fill(P,E):i(D).fill(P):i(D)}(d,f,b)},a.allocUnsafe=function(d){return c(d)},a.allocUnsafeSlow=function(d){return c(d)},a.isBuffer=function(d){return d!=null&&d._isBuffer===!0&&d!==a.prototype},a.compare=function(d,f){if(Te(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),Te(f,Uint8Array)&&(f=a.from(f,f.offset,f.byteLength)),!a.isBuffer(d)||!a.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===f)return 0;let b=d.length,D=f.length;for(let P=0,E=Math.min(b,D);P<E;++P)if(d[P]!==f[P]){b=d[P],D=f[P];break}return b<D?-1:D<b?1:0},a.isEncoding=function(d){switch(String(d).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(d,f){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(d.length===0)return a.alloc(0);let b;if(f===void 0)for(f=0,b=0;b<d.length;++b)f+=d[b].length;const D=a.allocUnsafe(f);let P=0;for(b=0;b<d.length;++b){let E=d[b];if(Te(E,Uint8Array))P+E.length>D.length?(a.isBuffer(E)||(E=a.from(E)),E.copy(D,P)):Uint8Array.prototype.set.call(D,E,P);else{if(!a.isBuffer(E))throw new TypeError('"list" argument must be an Array of Buffers');E.copy(D,P)}P+=E.length}return D},a.byteLength=m,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const d=this.length;if(d%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let f=0;f<d;f+=2)x(this,f,f+1);return this},a.prototype.swap32=function(){const d=this.length;if(d%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let f=0;f<d;f+=4)x(this,f,f+3),x(this,f+1,f+2);return this},a.prototype.swap64=function(){const d=this.length;if(d%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let f=0;f<d;f+=8)x(this,f,f+7),x(this,f+1,f+6),x(this,f+2,f+5),x(this,f+3,f+4);return this},a.prototype.toString=function(){const d=this.length;return d===0?"":arguments.length===0?F(this,0,d):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(d){if(!a.isBuffer(d))throw new TypeError("Argument must be a Buffer");return this===d||a.compare(this,d)===0},a.prototype.inspect=function(){let d="";const f=e.INSPECT_MAX_BYTES;return d=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(d+=" ... "),"<Buffer "+d+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(d,f,b,D,P){if(Te(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),!a.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(f===void 0&&(f=0),b===void 0&&(b=d?d.length:0),D===void 0&&(D=0),P===void 0&&(P=this.length),f<0||b>d.length||D<0||P>this.length)throw new RangeError("out of range index");if(D>=P&&f>=b)return 0;if(D>=P)return-1;if(f>=b)return 1;if(this===d)return 0;let E=(P>>>=0)-(D>>>=0),G=(b>>>=0)-(f>>>=0);const T=Math.min(E,G),q=this.slice(D,P),$=d.slice(f,b);for(let W=0;W<T;++W)if(q[W]!==$[W]){E=q[W],G=$[W];break}return E<G?-1:G<E?1:0},a.prototype.includes=function(d,f,b){return this.indexOf(d,f,b)!==-1},a.prototype.indexOf=function(d,f,b){return _(this,d,f,b,!0)},a.prototype.lastIndexOf=function(d,f,b){return _(this,d,f,b,!1)},a.prototype.write=function(d,f,b,D){if(f===void 0)D="utf8",b=this.length,f=0;else if(b===void 0&&typeof f=="string")D=f,b=this.length,f=0;else{if(!isFinite(f))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");f>>>=0,isFinite(b)?(b>>>=0,D===void 0&&(D="utf8")):(D=b,b=void 0)}const P=this.length-f;if((b===void 0||b>P)&&(b=P),d.length>0&&(b<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let E=!1;for(;;)switch(D){case"hex":return k(this,d,f,b);case"utf8":case"utf-8":return A(this,d,f,b);case"ascii":case"latin1":case"binary":return M(this,d,f,b);case"base64":return I(this,d,f,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,d,f,b);default:if(E)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),E=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const U=4096;function B(d,f,b){let D="";b=Math.min(d.length,b);for(let P=f;P<b;++P)D+=String.fromCharCode(127&d[P]);return D}function Z(d,f,b){let D="";b=Math.min(d.length,b);for(let P=f;P<b;++P)D+=String.fromCharCode(d[P]);return D}function X(d,f,b){const D=d.length;(!f||f<0)&&(f=0),(!b||b<0||b>D)&&(b=D);let P="";for(let E=f;E<b;++E)P+=V[d[E]];return P}function Y(d,f,b){const D=d.slice(f,b);let P="";for(let E=0;E<D.length-1;E+=2)P+=String.fromCharCode(D[E]+256*D[E+1]);return P}function L(d,f,b){if(d%1!=0||d<0)throw new RangeError("offset is not uint");if(d+f>b)throw new RangeError("Trying to access beyond buffer length")}function z(d,f,b,D,P,E){if(!a.isBuffer(d))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>P||f<E)throw new RangeError('"value" argument is out of bounds');if(b+D>d.length)throw new RangeError("Index out of range")}function J(d,f,b,D,P){ce(f,D,P,d,b,7);let E=Number(f&BigInt(4294967295));d[b++]=E,E>>=8,d[b++]=E,E>>=8,d[b++]=E,E>>=8,d[b++]=E;let G=Number(f>>BigInt(32)&BigInt(4294967295));return d[b++]=G,G>>=8,d[b++]=G,G>>=8,d[b++]=G,G>>=8,d[b++]=G,b}function te(d,f,b,D,P){ce(f,D,P,d,b,7);let E=Number(f&BigInt(4294967295));d[b+7]=E,E>>=8,d[b+6]=E,E>>=8,d[b+5]=E,E>>=8,d[b+4]=E;let G=Number(f>>BigInt(32)&BigInt(4294967295));return d[b+3]=G,G>>=8,d[b+2]=G,G>>=8,d[b+1]=G,G>>=8,d[b]=G,b+8}function se(d,f,b,D,P,E){if(b+D>d.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function re(d,f,b,D,P){return f=+f,b>>>=0,P||se(d,0,b,4),n.write(d,f,b,D,23,4),b+4}function ue(d,f,b,D,P){return f=+f,b>>>=0,P||se(d,0,b,8),n.write(d,f,b,D,52,8),b+8}a.prototype.slice=function(d,f){const b=this.length;(d=~~d)<0?(d+=b)<0&&(d=0):d>b&&(d=b),(f=f===void 0?b:~~f)<0?(f+=b)<0&&(f=0):f>b&&(f=b),f<d&&(f=d);const D=this.subarray(d,f);return Object.setPrototypeOf(D,a.prototype),D},a.prototype.readUintLE=a.prototype.readUIntLE=function(d,f,b){d>>>=0,f>>>=0,b||L(d,f,this.length);let D=this[d],P=1,E=0;for(;++E<f&&(P*=256);)D+=this[d+E]*P;return D},a.prototype.readUintBE=a.prototype.readUIntBE=function(d,f,b){d>>>=0,f>>>=0,b||L(d,f,this.length);let D=this[d+--f],P=1;for(;f>0&&(P*=256);)D+=this[d+--f]*P;return D},a.prototype.readUint8=a.prototype.readUInt8=function(d,f){return d>>>=0,f||L(d,1,this.length),this[d]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(d,f){return d>>>=0,f||L(d,2,this.length),this[d]|this[d+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(d,f){return d>>>=0,f||L(d,2,this.length),this[d]<<8|this[d+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(d,f){return d>>>=0,f||L(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+16777216*this[d+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(d,f){return d>>>=0,f||L(d,4,this.length),16777216*this[d]+(this[d+1]<<16|this[d+2]<<8|this[d+3])},a.prototype.readBigUInt64LE=Q(function(d){ve(d>>>=0,"offset");const f=this[d],b=this[d+7];f!==void 0&&b!==void 0||ye(d,this.length-8);const D=f+256*this[++d]+65536*this[++d]+this[++d]*2**24,P=this[++d]+256*this[++d]+65536*this[++d]+b*2**24;return BigInt(D)+(BigInt(P)<<BigInt(32))}),a.prototype.readBigUInt64BE=Q(function(d){ve(d>>>=0,"offset");const f=this[d],b=this[d+7];f!==void 0&&b!==void 0||ye(d,this.length-8);const D=f*2**24+65536*this[++d]+256*this[++d]+this[++d],P=this[++d]*2**24+65536*this[++d]+256*this[++d]+b;return(BigInt(D)<<BigInt(32))+BigInt(P)}),a.prototype.readIntLE=function(d,f,b){d>>>=0,f>>>=0,b||L(d,f,this.length);let D=this[d],P=1,E=0;for(;++E<f&&(P*=256);)D+=this[d+E]*P;return P*=128,D>=P&&(D-=Math.pow(2,8*f)),D},a.prototype.readIntBE=function(d,f,b){d>>>=0,f>>>=0,b||L(d,f,this.length);let D=f,P=1,E=this[d+--D];for(;D>0&&(P*=256);)E+=this[d+--D]*P;return P*=128,E>=P&&(E-=Math.pow(2,8*f)),E},a.prototype.readInt8=function(d,f){return d>>>=0,f||L(d,1,this.length),128&this[d]?-1*(255-this[d]+1):this[d]},a.prototype.readInt16LE=function(d,f){d>>>=0,f||L(d,2,this.length);const b=this[d]|this[d+1]<<8;return 32768&b?4294901760|b:b},a.prototype.readInt16BE=function(d,f){d>>>=0,f||L(d,2,this.length);const b=this[d+1]|this[d]<<8;return 32768&b?4294901760|b:b},a.prototype.readInt32LE=function(d,f){return d>>>=0,f||L(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},a.prototype.readInt32BE=function(d,f){return d>>>=0,f||L(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},a.prototype.readBigInt64LE=Q(function(d){ve(d>>>=0,"offset");const f=this[d],b=this[d+7];f!==void 0&&b!==void 0||ye(d,this.length-8);const D=this[d+4]+256*this[d+5]+65536*this[d+6]+(b<<24);return(BigInt(D)<<BigInt(32))+BigInt(f+256*this[++d]+65536*this[++d]+this[++d]*2**24)}),a.prototype.readBigInt64BE=Q(function(d){ve(d>>>=0,"offset");const f=this[d],b=this[d+7];f!==void 0&&b!==void 0||ye(d,this.length-8);const D=(f<<24)+65536*this[++d]+256*this[++d]+this[++d];return(BigInt(D)<<BigInt(32))+BigInt(this[++d]*2**24+65536*this[++d]+256*this[++d]+b)}),a.prototype.readFloatLE=function(d,f){return d>>>=0,f||L(d,4,this.length),n.read(this,d,!0,23,4)},a.prototype.readFloatBE=function(d,f){return d>>>=0,f||L(d,4,this.length),n.read(this,d,!1,23,4)},a.prototype.readDoubleLE=function(d,f){return d>>>=0,f||L(d,8,this.length),n.read(this,d,!0,52,8)},a.prototype.readDoubleBE=function(d,f){return d>>>=0,f||L(d,8,this.length),n.read(this,d,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(d,f,b,D){d=+d,f>>>=0,b>>>=0,!D&&z(this,d,f,b,Math.pow(2,8*b)-1,0);let P=1,E=0;for(this[f]=255&d;++E<b&&(P*=256);)this[f+E]=d/P&255;return f+b},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(d,f,b,D){d=+d,f>>>=0,b>>>=0,!D&&z(this,d,f,b,Math.pow(2,8*b)-1,0);let P=b-1,E=1;for(this[f+P]=255&d;--P>=0&&(E*=256);)this[f+P]=d/E&255;return f+b},a.prototype.writeUint8=a.prototype.writeUInt8=function(d,f,b){return d=+d,f>>>=0,b||z(this,d,f,1,255,0),this[f]=255&d,f+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(d,f,b){return d=+d,f>>>=0,b||z(this,d,f,2,65535,0),this[f]=255&d,this[f+1]=d>>>8,f+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(d,f,b){return d=+d,f>>>=0,b||z(this,d,f,2,65535,0),this[f]=d>>>8,this[f+1]=255&d,f+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(d,f,b){return d=+d,f>>>=0,b||z(this,d,f,4,4294967295,0),this[f+3]=d>>>24,this[f+2]=d>>>16,this[f+1]=d>>>8,this[f]=255&d,f+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(d,f,b){return d=+d,f>>>=0,b||z(this,d,f,4,4294967295,0),this[f]=d>>>24,this[f+1]=d>>>16,this[f+2]=d>>>8,this[f+3]=255&d,f+4},a.prototype.writeBigUInt64LE=Q(function(d,f=0){return J(this,d,f,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Q(function(d,f=0){return te(this,d,f,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(d,f,b,D){if(d=+d,f>>>=0,!D){const T=Math.pow(2,8*b-1);z(this,d,f,b,T-1,-T)}let P=0,E=1,G=0;for(this[f]=255&d;++P<b&&(E*=256);)d<0&&G===0&&this[f+P-1]!==0&&(G=1),this[f+P]=(d/E|0)-G&255;return f+b},a.prototype.writeIntBE=function(d,f,b,D){if(d=+d,f>>>=0,!D){const T=Math.pow(2,8*b-1);z(this,d,f,b,T-1,-T)}let P=b-1,E=1,G=0;for(this[f+P]=255&d;--P>=0&&(E*=256);)d<0&&G===0&&this[f+P+1]!==0&&(G=1),this[f+P]=(d/E|0)-G&255;return f+b},a.prototype.writeInt8=function(d,f,b){return d=+d,f>>>=0,b||z(this,d,f,1,127,-128),d<0&&(d=255+d+1),this[f]=255&d,f+1},a.prototype.writeInt16LE=function(d,f,b){return d=+d,f>>>=0,b||z(this,d,f,2,32767,-32768),this[f]=255&d,this[f+1]=d>>>8,f+2},a.prototype.writeInt16BE=function(d,f,b){return d=+d,f>>>=0,b||z(this,d,f,2,32767,-32768),this[f]=d>>>8,this[f+1]=255&d,f+2},a.prototype.writeInt32LE=function(d,f,b){return d=+d,f>>>=0,b||z(this,d,f,4,2147483647,-2147483648),this[f]=255&d,this[f+1]=d>>>8,this[f+2]=d>>>16,this[f+3]=d>>>24,f+4},a.prototype.writeInt32BE=function(d,f,b){return d=+d,f>>>=0,b||z(this,d,f,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[f]=d>>>24,this[f+1]=d>>>16,this[f+2]=d>>>8,this[f+3]=255&d,f+4},a.prototype.writeBigInt64LE=Q(function(d,f=0){return J(this,d,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Q(function(d,f=0){return te(this,d,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(d,f,b){return re(this,d,f,!0,b)},a.prototype.writeFloatBE=function(d,f,b){return re(this,d,f,!1,b)},a.prototype.writeDoubleLE=function(d,f,b){return ue(this,d,f,!0,b)},a.prototype.writeDoubleBE=function(d,f,b){return ue(this,d,f,!1,b)},a.prototype.copy=function(d,f,b,D){if(!a.isBuffer(d))throw new TypeError("argument should be a Buffer");if(b||(b=0),D||D===0||(D=this.length),f>=d.length&&(f=d.length),f||(f=0),D>0&&D<b&&(D=b),D===b||d.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),d.length-f<D-b&&(D=d.length-f+b);const P=D-b;return this===d&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,b,D):Uint8Array.prototype.set.call(d,this.subarray(b,D),f),P},a.prototype.fill=function(d,f,b,D){if(typeof d=="string"){if(typeof f=="string"?(D=f,f=0,b=this.length):typeof b=="string"&&(D=b,b=this.length),D!==void 0&&typeof D!="string")throw new TypeError("encoding must be a string");if(typeof D=="string"&&!a.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(d.length===1){const E=d.charCodeAt(0);(D==="utf8"&&E<128||D==="latin1")&&(d=E)}}else typeof d=="number"?d&=255:typeof d=="boolean"&&(d=Number(d));if(f<0||this.length<f||this.length<b)throw new RangeError("Out of range index");if(b<=f)return this;let P;if(f>>>=0,b=b===void 0?this.length:b>>>0,d||(d=0),typeof d=="number")for(P=f;P<b;++P)this[P]=d;else{const E=a.isBuffer(d)?d:a.from(d,D),G=E.length;if(G===0)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(P=0;P<b-f;++P)this[P+f]=E[P%G]}return this};const le={};function _e(d,f,b){le[d]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:f.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${d}]`,this.stack,delete this.name}get code(){return d}set code(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${d}]: ${this.message}`}}}function $e(d){let f="",b=d.length;const D=d[0]==="-"?1:0;for(;b>=D+4;b-=3)f=`_${d.slice(b-3,b)}${f}`;return`${d.slice(0,b)}${f}`}function ce(d,f,b,D,P,E){if(d>b||d<f){const G=typeof f=="bigint"?"n":"";let T;throw T=f===0||f===BigInt(0)?`>= 0${G} and < 2${G} ** ${8*(E+1)}${G}`:`>= -(2${G} ** ${8*(E+1)-1}${G}) and < 2 ** ${8*(E+1)-1}${G}`,new le.ERR_OUT_OF_RANGE("value",T,d)}(function(G,T,q){ve(T,"offset"),G[T]!==void 0&&G[T+q]!==void 0||ye(T,G.length-(q+1))})(D,P,E)}function ve(d,f){if(typeof d!="number")throw new le.ERR_INVALID_ARG_TYPE(f,"number",d)}function ye(d,f,b){throw Math.floor(d)!==d?(ve(d,b),new le.ERR_OUT_OF_RANGE("offset","an integer",d)):f<0?new le.ERR_BUFFER_OUT_OF_BOUNDS:new le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${f}`,d)}_e("ERR_BUFFER_OUT_OF_BOUNDS",function(d){return d?`${d} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),_e("ERR_INVALID_ARG_TYPE",function(d,f){return`The "${d}" argument must be of type number. Received type ${typeof f}`},TypeError),_e("ERR_OUT_OF_RANGE",function(d,f,b){let D=`The value of "${d}" is out of range.`,P=b;return Number.isInteger(b)&&Math.abs(b)>2**32?P=$e(String(b)):typeof b=="bigint"&&(P=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(P=$e(P)),P+="n"),D+=` It must be ${f}. Received ${P}`,D},RangeError);const Me=/[^+/0-9A-Za-z-_]/g;function Oe(d,f){let b;f=f||1/0;const D=d.length;let P=null;const E=[];for(let G=0;G<D;++G){if(b=d.charCodeAt(G),b>55295&&b<57344){if(!P){if(b>56319){(f-=3)>-1&&E.push(239,191,189);continue}if(G+1===D){(f-=3)>-1&&E.push(239,191,189);continue}P=b;continue}if(b<56320){(f-=3)>-1&&E.push(239,191,189),P=b;continue}b=65536+(P-55296<<10|b-56320)}else P&&(f-=3)>-1&&E.push(239,191,189);if(P=null,b<128){if((f-=1)<0)break;E.push(b)}else if(b<2048){if((f-=2)<0)break;E.push(b>>6|192,63&b|128)}else if(b<65536){if((f-=3)<0)break;E.push(b>>12|224,b>>6&63|128,63&b|128)}else{if(!(b<1114112))throw new Error("Invalid code point");if((f-=4)<0)break;E.push(b>>18|240,b>>12&63|128,b>>6&63|128,63&b|128)}}return E}function ze(d){return t.toByteArray(function(f){if((f=(f=f.split("=")[0]).trim().replace(Me,"")).length<2)return"";for(;f.length%4!=0;)f+="=";return f}(d))}function Be(d,f,b,D){let P;for(P=0;P<D&&!(P+b>=f.length||P>=d.length);++P)f[P+b]=d[P];return P}function Te(d,f){return d instanceof f||d!=null&&d.constructor!=null&&d.constructor.name!=null&&d.constructor.name===f.name}function j(d){return d!=d}const V=function(){const d="0123456789abcdef",f=new Array(256);for(let b=0;b<16;++b){const D=16*b;for(let P=0;P<16;++P)f[D+P]=d[b]+d[P]}return f}();function Q(d){return typeof BigInt>"u"?ie:d}function ie(){throw new Error("BigInt not supported")}})(qs);const vm=new class{decode(e){if(e&&e.length!==0)return qs.Buffer.from(e,"base64").toString()}encode(e){if(e&&e.length!==0)return qs.Buffer.from(e).toString("base64")}};class fm{constructor(t){Th(this,"collection");this.collection=t}has(t){if(this.collection===void 0||!this.collection.has(t))return!1;const n=this.collection.get(t);return n!=null&&n!==""}translate(t){if(this.collection===void 0)return t;const n=this.collection.get(t);return n===void 0?t:n}translateFormat(t,...n){let r=this.translate(t);for(const[o,i]of(n||[]).entries())r=r.replace("{"+o+"}",i);return r}}const ei={translations:pe(new Map),set:e=>{for(const[t,n]of Object.entries(e))ei.translations.value.set(t,n)}},hm={debugKey:"showtranslationkeys",prefixKey:"cb-translation-prefix"},gm={store:ei,install:(e,t)=>{const n={...hm,...t},r=new fm(ei.translations.value),o=function(){return new URLSearchParams(window.location.search.toLowerCase()).get(n.debugKey)!==null},i=a=>{const l=ae(n.prefixKey,void 0);return l&&!a.startsWith(l)?`${l}.${a}`:a};e.config.globalProperties.$st=a=>{ei.set(a)},e.config.globalProperties.$ht=a=>(a=i(a),r.has(a)),e.config.globalProperties.$t=a=>(a=i(a),o()?a:r.translate(a)),e.config.globalProperties.$tf=(a,...l)=>(a=i(a),o()?a:r.translateFormat(a,...l))}};var Cd={exports:{}};typeof self<"u",Cd.exports=(()=>{var e={d:(F,U)=>{for(var B in U)e.o(U,B)&&!e.o(F,B)&&Object.defineProperty(F,B,{enumerable:!0,get:U[B]})}};e.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),e.o=(F,U)=>Object.prototype.hasOwnProperty.call(F,U);var t={};e.d(t,{default:()=>S});const n=F=>{const U=Object.create(null);return B=>U[B]||(U[B]=F(B))},r=n(F=>F.charAt(0).toUpperCase()+F.slice(1)),o=n(F=>F?`on${r(F)}`:"");var i=/-(\w)/g,a=function(F){return F.replace(i,function(U,B){return B?B.toUpperCase():""})},l=/\B([A-Z])/g,s=function(F){return F.replace(l,"-$1").toLowerCase()};function c(F,U){return new CustomEvent(F,{bubbles:!1,cancelable:!1,detail:U.length===1?U[0]:U})}var u=function(F){return/function Boolean/.test(String(F))},p=function(F){return/function Number/.test(String(F))};function v(F,U){if(F.nodeType===3)return F.data.trim()?F.data:null;if(F.nodeType===1){var B={attrs:m(F),domProps:{innerHTML:F.innerHTML}};return B.attrs.slot&&(B.slot=B.attrs.slot,delete B.attrs.slot),U(F.tagName,B)}return null}function m(F){for(var U={},B=0,Z=F.attributes.length;B<Z;B++){var X=F.attributes[B];U[X.nodeName]=X.nodeValue}return U}function g(F){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},g(F)}function x(F,U){for(var B=0;B<U.length;B++){var Z=U[B];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(F,Z.key,Z)}}function _(F,U){return!U||g(U)!=="object"&&typeof U!="function"?w(F):U}function w(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function k(F){var U=typeof Map=="function"?new Map:void 0;return k=function(B){if(B===null||(Z=B,Function.toString.call(Z).indexOf("[native code]")===-1))return B;var Z;if(typeof B!="function")throw new TypeError("Super expression must either be null or a function");if(U!==void 0){if(U.has(B))return U.get(B);U.set(B,X)}function X(){return A(B,arguments,N(this).constructor)}return X.prototype=Object.create(B.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),I(X,B)},k(F)}function A(F,U,B){return A=M()?Reflect.construct:function(Z,X,Y){var L=[null];L.push.apply(L,X);var z=new(Function.bind.apply(Z,L));return Y&&I(z,Y.prototype),z},A.apply(null,arguments)}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function I(F,U){return I=Object.setPrototypeOf||function(B,Z){return B.__proto__=Z,B},I(F,U)}function N(F){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},N(F)}function S(F,U,B,Z){var X,Y,L,z=F,J=!1,te=function(se){(function(ce,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(ve&&ve.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),ve&&I(ce,ve)})($e,se);var re,ue,le,_e=(re=$e,ue=M(),function(){var ce,ve=N(re);if(ue){var ye=N(this).constructor;ce=Reflect.construct(ve,arguments,ye)}else ce=ve.apply(this,arguments);return _(this,ce)});function $e(){var ce;return function(ve,ye){if(!(ve instanceof ye))throw new TypeError("Cannot call a class as a function")}(this,$e),(ce=_e.call(this))._wrapper=void 0,ce._component=void 0,ce._props=void 0,ce._slotChildren=void 0,ce._mounted=!1,ce._props={},ce._slotChildren=[],new MutationObserver(function(ve){for(var ye=0;ye<ve.length;ye++){var Me=ve[ye];!J||Me.type!=="attributes"||Me.target!==w(ce)||Me.attributeName&&ce.syncAttribute(Me.attributeName)}}).observe(w(ce),{childList:!0,subtree:!0,characterData:!0,attributes:!0}),ce}return le=[{key:"createEventProxies",value:function(ce){var ve=this,ye={};return ce&&ce.forEach(function(Me){var Oe=o(a(Me));ye[Oe]=function(){for(var ze=arguments.length,Be=new Array(ze),Te=0;Te<ze;Te++)Be[Te]=arguments[Te];ve.dispatchEvent(c(Me,Be))}}),ye}},{key:"syncAttribute",value:function(ce){var ve,ye=a(ce),Me=void 0;this.hasOwnProperty(ce)?Me=this[ce]:this.hasAttribute(ce)&&(Me=this.getAttribute(ce)),this._props[ye]=function(Oe,ze){var Be=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).type;if(u(Be))return Oe==="true"||Oe==="false"?Oe==="true":Oe===""||Oe===ze||Oe!=null;if(p(Be)){var Te=parseFloat(Oe);return isNaN(Te)?Oe:Te}return Oe}(Me,ce,L[ye]),(ve=this._component)===null||ve===void 0||ve.$forceUpdate()}},{key:"syncSlots",value:function(){var ce;this._slotChildren=function(ve,ye){for(var Me=[],Oe=0,ze=ve.length;Oe<ze;Oe++)Me.push(v(ve[Oe],ye));return Me}(this.childNodes,B),(ce=this._component)===null||ce===void 0||ce.$forceUpdate()}},{key:"syncInitialAttributes",value:function(){var ce,ve=this;this._props=(ce={},Y.forEach(function(ye){ce[ye]=void 0}),ce),X.forEach(function(ye){ve.syncAttribute(ye)})}},{key:"connectedCallback",value:function(){J&&this.syncInitialAttributes();var ce=this.createEventProxies(z.emits),ve=this;this._wrapper=U({render:function(){var ye=Object.assign({},ve._props,ce);return delete ye.dataVApp,B(z,ye,function(){return ve._slotChildren})},mounted:function(){ve._mounted=!0},unmounted:function(){ve._mounted=!1}}),this.syncSlots(),this._component=this._wrapper.mount(this),Z!=null&&Z.connectedCallback&&Z.connectedCallback.bind(this)()}},{key:"disconnectedCallback",value:function(){var ce;(ce=this._wrapper)===null||ce===void 0||ce.unmount()}}],le&&x($e.prototype,le),$e}(k(HTMLElement));return function(){if(!J){var se=Array.isArray(z.props)?z.props:Object.keys(z.props||{});X=se.map(s),Y=se.map(a);var re=Array.isArray(z.props)?{}:z.props||{};L=Y.reduce(function(ue,le,_e){return ue[le]=re[se[_e]],ue},{}),J=!0}}(),te}return t.default})();const mm=lm(Cd.exports),bm=new Map([["widget-calendar",new Map([["cb--xs",{min:void 0,max:400}],["cb--sm",{min:401,max:600}],["cb--md",{min:601,max:800}],["cb--lg",{min:801,max:void 0}]])],["widget-calendar-compact",new Map([["cb--xs",{min:void 0,max:300}],["cb--sm",{min:301,max:450}],["cb--md",{min:451,max:void 0}]])],["widget-standard",new Map([["cb--sm",{min:void 0,max:600}],["cb--md",{min:601,max:999}],["cb--lg",{min:1e3,max:void 0}]])]]),Sd={created:async(e,t)=>{const n=pe(0),r=bm.get(t.value);if(!r)throw new Error(`No preset found for key: ${t.value}`);const o=y(()=>{for(const[a,l]of r)if(!(l.min&&n.value<l.min||l.max&&n.value>l.max))return a;return""}),i=()=>{n.value=(a=>{const{marginLeft:l,marginRight:s}=getComputedStyle(a);return a.offsetWidth+parseInt(l)+parseInt(s)})(e)};Re(()=>n.value,()=>{e.classList.remove(...r.keys()),e.classList.add(o.value)}),new ResizeObserver(i).observe(e),await Rn(),i()}},ym={key:0,class:"cb-loader-custom-cnt"},wm={__name:"cb-loader-overlay",props:{loading:{type:Boolean}},setup:e=>(t,n)=>e.loading?(C(),R("div",ym,n[0]||(n[0]=[h("i",{class:"cb-loader-custom",role:"status"},[h("i",null,[h("i"),h("i"),h("i"),h("i"),h("i")])],-1)]))):oe("",!0)},km=wm;function ti(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}function Lt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lr(e){return e instanceof Lt(e).Element||e instanceof Element}function Nt(e){return e instanceof Lt(e).HTMLElement||e instanceof HTMLElement}function Zs(e){return!(typeof ShadowRoot>"u")&&(e instanceof Lt(e).ShadowRoot||e instanceof ShadowRoot)}var cr=Math.max,ni=Math.min,Or=Math.round;function Xs(){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 Dd(){return!/^((?!chrome|android).)*safari/i.test(Xs())}function Mr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Nt(e)&&(o=e.offsetWidth>0&&Or(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Or(r.height)/e.offsetHeight||1);var a=(lr(e)?Lt(e):window).visualViewport,l=!Dd()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,p=r.height/i;return{width:u,height:p,top:c,right:s+u,bottom:c+p,left:s,x:s,y:c}}function Ks(e){var t=Lt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function an(e){return e?(e.nodeName||"").toLowerCase():null}function Vn(e){return((lr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Js(e){return Mr(Vn(e)).left+Ks(e).scrollLeft}function kn(e){return Lt(e).getComputedStyle(e)}function Qs(e){var t=kn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function xm(e,t,n){n===void 0&&(n=!1);var r=Nt(t),o=Nt(t)&&function(c){var u=c.getBoundingClientRect(),p=Or(u.width)/c.offsetWidth||1,v=Or(u.height)/c.offsetHeight||1;return p!==1||v!==1}(t),i=Vn(t),a=Mr(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((an(t)!=="body"||Qs(i))&&(l=function(c){return c!==Lt(c)&&Nt(c)?function(u){return{scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}}(c):Ks(c)}(t)),Nt(t)?((s=Mr(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Js(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function el(e){var t=Mr(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 ri(e){return an(e)==="html"?e:e.assignedSlot||e.parentNode||(Zs(e)?e.host:null)||Vn(e)}function Td(e){return["html","body","#document"].indexOf(an(e))>=0?e.ownerDocument.body:Nt(e)&&Qs(e)?e:Td(ri(e))}function Io(e,t){var n;t===void 0&&(t=[]);var r=Td(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Lt(r),a=o?[i].concat(i.visualViewport||[],Qs(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Io(ri(a)))}function _m(e){return["table","td","th"].indexOf(an(e))>=0}function Ad(e){return Nt(e)&&kn(e).position!=="fixed"?e.offsetParent:null}function Lo(e){for(var t=Lt(e),n=Ad(e);n&&_m(n)&&kn(n).position==="static";)n=Ad(n);return n&&(an(n)==="html"||an(n)==="body"&&kn(n).position==="static")?t:n||function(r){var o=/firefox/i.test(Xs());if(/Trident/i.test(Xs())&&Nt(r)&&kn(r).position==="fixed")return null;var i=ri(r);for(Zs(i)&&(i=i.host);Nt(i)&&["html","body"].indexOf(an(i))<0;){var a=kn(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||o&&a.willChange==="filter"||o&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}(e)||t}var Et="top",Ft="bottom",Yt="right",Pt="left",tl="auto",jo=[Et,Ft,Yt,Pt],Ir="start",Ro="end",Ed="viewport",$o="popper",Pd=jo.reduce(function(e,t){return e.concat([t+"-"+Ir,t+"-"+Ro])},[]),Od=[].concat(jo,[tl]).reduce(function(e,t){return e.concat([t,t+"-"+Ir,t+"-"+Ro])},[]),Cm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Sm(e){var t=new Map,n=new Set,r=[];function o(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){t.set(i.name,i)}),e.forEach(function(i){n.has(i.name)||o(i)}),r}function Dm(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var Md={placement:"bottom",modifiers:[],strategy:"absolute"};function Id(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Tm(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Md:o;return function(a,l,s){s===void 0&&(s=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Md,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],p=!1,v={state:c,setOptions:function(g){var x=typeof g=="function"?g(c.options):g;m(),c.options=Object.assign({},i,c.options,x),c.scrollParents={reference:lr(a)?Io(a):a.contextElement?Io(a.contextElement):[],popper:Io(l)};var _=function(w){var k=Sm(w);return Cm.reduce(function(A,M){return A.concat(k.filter(function(I){return I.phase===M}))},[])}(function(w){var k=w.reduce(function(A,M){var I=A[M.name];return A[M.name]=I?Object.assign({},I,M,{options:Object.assign({},I.options,M.options),data:Object.assign({},I.data,M.data)}):M,A},{});return Object.keys(k).map(function(A){return k[A]})}([].concat(r,c.options.modifiers)));return c.orderedModifiers=_.filter(function(w){return w.enabled}),c.orderedModifiers.forEach(function(w){var k=w.name,A=w.options,M=A===void 0?{}:A,I=w.effect;if(typeof I=="function"){var N=I({state:c,name:k,instance:v,options:M}),S=function(){};u.push(N||S)}}),v.update()},forceUpdate:function(){if(!p){var g=c.elements,x=g.reference,_=g.popper;if(Id(x,_)){c.rects={reference:xm(x,Lo(_),c.options.strategy==="fixed"),popper:el(_)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(S){return c.modifiersData[S.name]=Object.assign({},S.data)});for(var w=0;w<c.orderedModifiers.length;w++)if(c.reset!==!0){var k=c.orderedModifiers[w],A=k.fn,M=k.options,I=M===void 0?{}:M,N=k.name;typeof A=="function"&&(c=A({state:c,options:I,name:N,instance:v})||c)}else c.reset=!1,w=-1}}},update:Dm(function(){return new Promise(function(g){v.forceUpdate(),g(c)})}),destroy:function(){m(),p=!0}};if(!Id(a,l))return v;function m(){u.forEach(function(g){return g()}),u=[]}return v.setOptions(s).then(function(g){!p&&s.onFirstUpdate&&s.onFirstUpdate(g)}),v}}var oi={passive:!0};const Am={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0||o,a=r.resize,l=a===void 0||a,s=Lt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,oi)}),l&&s.addEventListener("resize",n.update,oi),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,oi)}),l&&s.removeEventListener("resize",n.update,oi)}},data:{}};function sn(e){return e.split("-")[0]}function Lr(e){return e.split("-")[1]}function nl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ld(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?sn(o):null,a=o?Lr(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Et:t={x:l,y:n.y-r.height};break;case Ft:t={x:l,y:n.y+n.height};break;case Yt:t={x:n.x+n.width,y:s};break;case Pt:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?nl(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Ir:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Ro:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}const Em={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ld({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Pm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jd(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,v=a.x,m=v===void 0?0:v,g=a.y,x=g===void 0?0:g,_=typeof u=="function"?u({x:m,y:x}):{x:m,y:x};m=_.x,x=_.y;var w=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),A=Pt,M=Et,I=window;if(c){var N=Lo(n),S="clientHeight",F="clientWidth";N===Lt(n)&&kn(N=Vn(n)).position!=="static"&&l==="absolute"&&(S="scrollHeight",F="scrollWidth"),(o===Et||(o===Pt||o===Yt)&&i===Ro)&&(M=Ft,x-=(p&&N===I&&I.visualViewport?I.visualViewport.height:N[S])-r.height,x*=s?1:-1),(o===Pt||(o===Et||o===Ft)&&i===Ro)&&(A=Yt,m-=(p&&N===I&&I.visualViewport?I.visualViewport.width:N[F])-r.width,m*=s?1:-1)}var U,B=Object.assign({position:l},c&&Pm),Z=u===!0?function(X,Y){var L=X.x,z=X.y,J=Y.devicePixelRatio||1;return{x:Or(L*J)/J||0,y:Or(z*J)/J||0}}({x:m,y:x},Lt(n)):{x:m,y:x};return m=Z.x,x=Z.y,s?Object.assign({},B,((U={})[M]=k?"0":"",U[A]=w?"0":"",U.transform=(I.devicePixelRatio||1)<=1?"translate("+m+"px, "+x+"px)":"translate3d("+m+"px, "+x+"px, 0)",U)):Object.assign({},B,((t={})[M]=k?x+"px":"",t[A]=w?m+"px":"",t.transform="",t))}const Om={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0||r,i=n.adaptive,a=i===void 0||i,l=n.roundOffsets,s=l===void 0||l,c={placement:sn(t.placement),variation:Lr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,jd(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jd(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Mm={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Nt(i)||!an(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})},effect:function(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 o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]).reduce(function(l,s){return l[s]="",l},{});!Nt(o)||!an(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}},requires:["computeStyles"]},Im={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Od.reduce(function(u,p){return u[p]=function(v,m,g){var x=sn(v),_=[Pt,Et].indexOf(x)>=0?-1:1,w=typeof g=="function"?g(Object.assign({},m,{placement:v})):g,k=w[0],A=w[1];return k=k||0,A=(A||0)*_,[Pt,Yt].indexOf(x)>=0?{x:A,y:k}:{x:k,y:A}}(p,t.rects,i),u},{}),l=a[t.placement],s=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Lm={left:"right",right:"left",bottom:"top",top:"bottom"};function ai(e){return e.replace(/left|right|bottom|top/g,function(t){return Lm[t]})}var jm={start:"end",end:"start"};function Rd(e){return e.replace(/start|end/g,function(t){return jm[t]})}function $d(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zs(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function rl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Nd(e,t,n){return t===Ed?rl(function(r,o){var i=Lt(r),a=Vn(r),l=i.visualViewport,s=a.clientWidth,c=a.clientHeight,u=0,p=0;if(l){s=l.width,c=l.height;var v=Dd();(v||!v&&o==="fixed")&&(u=l.offsetLeft,p=l.offsetTop)}return{width:s,height:c,x:u+Js(r),y:p}}(e,n)):lr(t)?function(r,o){var i=Mr(r,!1,o==="fixed");return i.top=i.top+r.clientTop,i.left=i.left+r.clientLeft,i.bottom=i.top+r.clientHeight,i.right=i.left+r.clientWidth,i.width=r.clientWidth,i.height=r.clientHeight,i.x=i.left,i.y=i.top,i}(t,n):rl(function(r){var o,i=Vn(r),a=Ks(r),l=(o=r.ownerDocument)==null?void 0:o.body,s=cr(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=cr(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),u=-a.scrollLeft+Js(r),p=-a.scrollTop;return kn(l||i).direction==="rtl"&&(u+=cr(i.clientWidth,l?l.clientWidth:0)-s),{width:s,height:c,x:u,y:p}}(Vn(e)))}function Rm(e,t,n,r){var o=t==="clippingParents"?function(s){var c=Io(ri(s)),u=["absolute","fixed"].indexOf(kn(s).position)>=0&&Nt(s)?Lo(s):s;return lr(u)?c.filter(function(p){return lr(p)&&$d(p,u)&&an(p)!=="body"}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(s,c){var u=Nd(e,c,r);return s.top=cr(u.top,s.top),s.right=ni(u.right,s.right),s.bottom=ni(u.bottom,s.bottom),s.left=cr(u.left,s.left),s},Nd(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Fd(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Yd(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function No(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,s=l===void 0?"clippingParents":l,c=n.rootBoundary,u=c===void 0?Ed:c,p=n.elementContext,v=p===void 0?$o:p,m=n.altBoundary,g=m!==void 0&&m,x=n.padding,_=x===void 0?0:x,w=Fd(typeof _!="number"?_:Yd(_,jo)),k=v===$o?"reference":$o,A=e.rects.popper,M=e.elements[g?k:v],I=Rm(lr(M)?M:M.contextElement||Vn(e.elements.popper),s,u,a),N=Mr(e.elements.reference),S=Ld({reference:N,element:A,strategy:"absolute",placement:o}),F=rl(Object.assign({},A,S)),U=v===$o?F:N,B={top:I.top-U.top+w.top,bottom:U.bottom-I.bottom+w.bottom,left:I.left-U.left+w.left,right:U.right-I.right+w.right},Z=e.modifiersData.offset;if(v===$o&&Z){var X=Z[o];Object.keys(B).forEach(function(Y){var L=[Yt,Ft].indexOf(Y)>=0?1:-1,z=[Et,Ft].indexOf(Y)>=0?"y":"x";B[Y]+=X[z]*L})}return B}const $m={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0||o,a=n.altAxis,l=a===void 0||a,s=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,v=n.altBoundary,m=n.flipVariations,g=m===void 0||m,x=n.allowedAutoPlacements,_=t.options.placement,w=sn(_),k=s||(w===_||!g?[ai(_)]:function(le){if(sn(le)===tl)return[];var _e=ai(le);return[Rd(le),_e,Rd(_e)]}(_)),A=[_].concat(k).reduce(function(le,_e){return le.concat(sn(_e)===tl?function($e,ce){ce===void 0&&(ce={});var ve=ce,ye=ve.placement,Me=ve.boundary,Oe=ve.rootBoundary,ze=ve.padding,Be=ve.flipVariations,Te=ve.allowedAutoPlacements,j=Te===void 0?Od:Te,V=Lr(ye),Q=V?Be?Pd:Pd.filter(function(f){return Lr(f)===V}):jo,ie=Q.filter(function(f){return j.indexOf(f)>=0});ie.length===0&&(ie=Q);var d=ie.reduce(function(f,b){return f[b]=No($e,{placement:b,boundary:Me,rootBoundary:Oe,padding:ze})[sn(b)],f},{});return Object.keys(d).sort(function(f,b){return d[f]-d[b]})}(t,{placement:_e,boundary:u,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:x}):_e)},[]),M=t.rects.reference,I=t.rects.popper,N=new Map,S=!0,F=A[0],U=0;U<A.length;U++){var B=A[U],Z=sn(B),X=Lr(B)===Ir,Y=[Et,Ft].indexOf(Z)>=0,L=Y?"width":"height",z=No(t,{placement:B,boundary:u,rootBoundary:p,altBoundary:v,padding:c}),J=Y?X?Yt:Pt:X?Ft:Et;M[L]>I[L]&&(J=ai(J));var te=ai(J),se=[];if(i&&se.push(z[Z]<=0),l&&se.push(z[J]<=0,z[te]<=0),se.every(function(le){return le})){F=B,S=!1;break}N.set(B,se)}if(S)for(var re=function(le){var _e=A.find(function($e){var ce=N.get($e);if(ce)return ce.slice(0,le).every(function(ve){return ve})});if(_e)return F=_e,"break"},ue=g?3:1;ue>0&&re(ue)!=="break";ue--);t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Fo(e,t,n){return cr(e,ni(t,n))}const Nm={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0||o,a=n.altAxis,l=a!==void 0&&a,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,v=n.tether,m=v===void 0||v,g=n.tetherOffset,x=g===void 0?0:g,_=No(t,{boundary:s,rootBoundary:c,padding:p,altBoundary:u}),w=sn(t.placement),k=Lr(t.placement),A=!k,M=nl(w),I=function(ne){return ne==="x"?"y":"x"}(M),N=t.modifiersData.popperOffsets,S=t.rects.reference,F=t.rects.popper,U=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,B=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),Z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,X={x:0,y:0};if(N){if(i){var Y,L=M==="y"?Et:Pt,z=M==="y"?Ft:Yt,J=M==="y"?"height":"width",te=N[M],se=te+_[L],re=te-_[z],ue=m?-F[J]/2:0,le=k===Ir?S[J]:F[J],_e=k===Ir?-F[J]:-S[J],$e=t.elements.arrow,ce=m&&$e?el($e):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ye=ve[L],Me=ve[z],Oe=Fo(0,S[J],ce[J]),ze=A?S[J]/2-ue-Oe-ye-B.mainAxis:le-Oe-ye-B.mainAxis,Be=A?-S[J]/2+ue+Oe+Me+B.mainAxis:_e+Oe+Me+B.mainAxis,Te=t.elements.arrow&&Lo(t.elements.arrow),j=Te?M==="y"?Te.clientTop||0:Te.clientLeft||0:0,V=(Y=Z==null?void 0:Z[M])!=null?Y:0,Q=te+Be-V,ie=Fo(m?ni(se,te+ze-V-j):se,te,m?cr(re,Q):re);N[M]=ie,X[M]=ie-te}if(l){var d,f=M==="x"?Et:Pt,b=M==="x"?Ft:Yt,D=N[I],P=I==="y"?"height":"width",E=D+_[f],G=D-_[b],T=[Et,Pt].indexOf(w)!==-1,q=(d=Z==null?void 0:Z[I])!=null?d:0,$=T?E:D-S[P]-F[P]-q+B.altAxis,W=T?D+S[P]+F[P]-q-B.altAxis:G,K=m&&T?function(ne,De,Se){var me=Fo(ne,De,Se);return me>Se?Se:me}($,D,W):Fo(m?$:E,D,m?W:G);N[I]=K,X[I]=K-D}t.modifiersData[r]=X}},requiresIfExists:["offset"]},Fm={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=sn(n.placement),s=nl(l),c=[Pt,Yt].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(F,U){return Fd(typeof(F=typeof F=="function"?F(Object.assign({},U.rects,{placement:U.placement})):F)!="number"?F:Yd(F,jo))}(o.padding,n),p=el(i),v=s==="y"?Et:Pt,m=s==="y"?Ft:Yt,g=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],x=a[s]-n.rects.reference[s],_=Lo(i),w=_?s==="y"?_.clientHeight||0:_.clientWidth||0:0,k=g/2-x/2,A=u[v],M=w-p[c]-u[m],I=w/2-p[c]/2+k,N=Fo(A,I,M),S=s;n.modifiersData[r]=((t={})[S]=N,t.centerOffset=N-I,t)}},effect:function(e){var t=e.state,n=e.options.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&!(r=t.elements.popper.querySelector(r))||$d(t.elements.popper,r)&&(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bd(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 Vd(e){return[Et,Yt,Ft,Pt].some(function(t){return e[t]>=0})}var Ym=Tm({defaultModifiers:[Am,Em,Om,Mm,Im,$m,Nm,Fm,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=No(t,{elementContext:"reference"}),l=No(t,{altBoundary:!0}),s=Bd(a,r),c=Bd(l,o,i),u=Vd(s),p=Vd(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),Bm=Object.defineProperty,ke=(e,t,n)=>(((r,o,i)=>{o in r?Bm(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i})(e,typeof t!="symbol"?t+"":t,n),n),ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ud(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vm=Object.prototype.hasOwnProperty,Um=function(e,t){return e!=null&&Vm.call(e,t)},Xt=Array.isArray,Wd=typeof ii=="object"&&ii&&ii.Object===Object&&ii,Wm=Wd,zm=typeof self=="object"&&self&&self.Object===Object&&self,ln=Wm||zm||Function("return this")(),ur=ln.Symbol,zd=ur,Hd=Object.prototype,Hm=Hd.hasOwnProperty,Gm=Hd.toString,Yo=zd?zd.toStringTag:void 0,qm=function(e){var t=Hm.call(e,Yo),n=e[Yo];try{e[Yo]=void 0;var r=!0}catch{}var o=Gm.call(e);return r&&(t?e[Yo]=n:delete e[Yo]),o},Zm=Object.prototype.toString,Xm=function(e){return Zm.call(e)},Km=qm,Jm=Xm,Gd=ur?ur.toStringTag:void 0,cn=function(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Gd&&Gd in Object(e)?Km(e):Jm(e)},Kt=function(e){return e!=null&&typeof e=="object"},Qm=cn,eb=Kt,ol=function(e){return typeof e=="symbol"||eb(e)&&Qm(e)=="[object Symbol]"},tb=Xt,nb=ol,rb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ob=/^\w*$/,al=function(e,t){if(tb(e))return!1;var n=typeof e;return!(n!="number"&&n!="symbol"&&n!="boolean"&&e!=null&&!nb(e))||ob.test(e)||!rb.test(e)||t!=null&&e in Object(t)},xn=function(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")},ab=cn,ib=xn,dr=function(e){if(!ib(e))return!1;var t=ab(e);return t=="[object Function]"||t=="[object GeneratorFunction]"||t=="[object AsyncFunction]"||t=="[object Proxy]"},il=ln["__core-js_shared__"],qd=function(){var e=/[^.]+$/.exec(il&&il.keys&&il.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),sb=function(e){return!!qd&&qd in e},lb=Function.prototype.toString,Zd=function(e){if(e!=null){try{return lb.call(e)}catch{}try{return e+""}catch{}}return""},cb=dr,ub=sb,db=xn,pb=Zd,vb=/^\[object .+?Constructor\]$/,fb=Function.prototype,hb=Object.prototype,gb=fb.toString,mb=hb.hasOwnProperty,bb=RegExp("^"+gb.call(mb).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yb=function(e){return!(!db(e)||ub(e))&&(cb(e)?bb:vb).test(pb(e))},wb=function(e,t){return e==null?void 0:e[t]},kb=yb,xb=wb,pr=function(e,t){var n=xb(e,t);return kb(n)?n:void 0},si=pr(Object,"create"),Xd=si,_b=function(){this.__data__=Xd?Xd(null):{},this.size=0},Cb=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Sb=si,Db=Object.prototype.hasOwnProperty,Tb=function(e){var t=this.__data__;if(Sb){var n=t[e];return n==="__lodash_hash_undefined__"?void 0:n}return Db.call(t,e)?t[e]:void 0},Ab=si,Eb=Object.prototype.hasOwnProperty,Pb=function(e){var t=this.__data__;return Ab?t[e]!==void 0:Eb.call(t,e)},Ob=si,Mb=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ob&&t===void 0?"__lodash_hash_undefined__":t,this},Ib=_b,Lb=Cb,jb=Tb,Rb=Pb,$b=Mb;function jr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}jr.prototype.clear=Ib,jr.prototype.delete=Lb,jr.prototype.get=jb,jr.prototype.has=Rb,jr.prototype.set=$b;var Nb=jr,Fb=function(){this.__data__=[],this.size=0},Rr=function(e,t){return e===t||e!=e&&t!=t},Yb=Rr,li=function(e,t){for(var n=e.length;n--;)if(Yb(e[n][0],t))return n;return-1},Bb=li,Vb=Array.prototype.splice,Ub=function(e){var t=this.__data__,n=Bb(t,e);return!(n<0)&&(n==t.length-1?t.pop():Vb.call(t,n,1),--this.size,!0)},Wb=li,zb=function(e){var t=this.__data__,n=Wb(t,e);return n<0?void 0:t[n][1]},Hb=li,Gb=function(e){return Hb(this.__data__,e)>-1},qb=li,Zb=function(e,t){var n=this.__data__,r=qb(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Xb=Fb,Kb=Ub,Jb=zb,Qb=Gb,ey=Zb;function $r(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$r.prototype.clear=Xb,$r.prototype.delete=Kb,$r.prototype.get=Jb,$r.prototype.has=Qb,$r.prototype.set=ey;var ci=$r,sl=pr(ln,"Map"),Kd=Nb,ty=ci,ny=sl,ry=function(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null},oy=ry,ui=function(e,t){var n=e.__data__;return oy(t)?n[typeof t=="string"?"string":"hash"]:n.map},ay=ui,iy=function(e){var t=ay(this,e).delete(e);return this.size-=t?1:0,t},sy=ui,ly=function(e){return sy(this,e).get(e)},cy=ui,uy=function(e){return cy(this,e).has(e)},dy=ui,py=function(e,t){var n=dy(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},vy=function(){this.size=0,this.__data__={hash:new Kd,map:new(ny||ty),string:new Kd}},fy=iy,hy=ly,gy=uy,my=py;function Nr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Nr.prototype.clear=vy,Nr.prototype.delete=fy,Nr.prototype.get=hy,Nr.prototype.has=gy,Nr.prototype.set=my;var ll=Nr,Jd=ll;function cl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(cl.Cache||Jd),n}cl.Cache=Jd;var by=cl,yy=function(e){var t=by(e,function(r){return n.size===500&&n.clear(),r}),n=t.cache;return t},wy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ky=/\\(\\)?/g,xy=yy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(wy,function(n,r,o,i){t.push(o?i.replace(ky,"$1"):r||n)}),t}),_y=xy,Cy=function(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Sy=Cy,Dy=Xt,Ty=ol,Ay=1/0,Qd=ur?ur.prototype:void 0,ep=Qd?Qd.toString:void 0,Ey=function e(t){if(typeof t=="string")return t;if(Dy(t))return Sy(t,e)+"";if(Ty(t))return ep?ep.call(t):"";var n=t+"";return n=="0"&&1/t==-Ay?"-0":n},Py=Ey,Oy=function(e){return e==null?"":Py(e)},My=Xt,Iy=al,Ly=_y,jy=Oy,tp=function(e,t){return My(e)?e:Iy(e,t)?[e]:Ly(jy(e))},Ry=cn,$y=Kt,Ny=function(e){return $y(e)&&Ry(e)=="[object Arguments]"},np=Ny,Fy=Kt,rp=Object.prototype,Yy=rp.hasOwnProperty,By=rp.propertyIsEnumerable,Vy=np(function(){return arguments}())?np:function(e){return Fy(e)&&Yy.call(e,"callee")&&!By.call(e,"callee")},ul=Vy,Uy=/^(?:0|[1-9]\d*)$/,dl=function(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&(n=="number"||n!="symbol"&&Uy.test(e))&&e>-1&&e%1==0&&e<t},pl=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Wy=ol,zy=1/0,di=function(e){if(typeof e=="string"||Wy(e))return e;var t=e+"";return t=="0"&&1/e==-zy?"-0":t},Hy=tp,Gy=ul,qy=Xt,Zy=dl,Xy=pl,Ky=di,op=function(e,t,n){for(var r=-1,o=(t=Hy(t,e)).length,i=!1;++r<o;){var a=Ky(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=e==null?0:e.length)&&Xy(o)&&Zy(a,o)&&(qy(e)||Gy(e))},Jy=Um,Qy=op,ap=function(e,t){return e!=null&&Qy(e,t,Jy)},e0=cn,t0=Kt,n0=function(e){return t0(e)&&e0(e)=="[object Date]"},ip=function(e){return function(t){return e(t)}},vr={},r0={get exports(){return vr},set exports(e){vr=e}};(function(e,t){var n=Wd,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch{}}();e.exports=a})(r0,vr);var o0=n0,a0=ip,sp=vr&&vr.isDate,i0=sp?a0(sp):o0,s0=cn,l0=Xt,c0=Kt,un=function(e){return typeof e=="string"||!l0(e)&&c0(e)&&s0(e)=="[object String]"},lp=function(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},u0=ci,d0=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},p0=function(e){return this.__data__.get(e)},v0=function(e){return this.__data__.has(e)},f0=ci,h0=sl,g0=ll,m0=function(e,t){var n=this.__data__;if(n instanceof f0){var r=n.__data__;if(!h0||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new g0(r)}return n.set(e,t),this.size=n.size,this},b0=ci,y0=function(){this.__data__=new u0,this.size=0},w0=d0,k0=p0,x0=v0,_0=m0;function Fr(e){var t=this.__data__=new b0(e);this.size=t.size}Fr.prototype.clear=y0,Fr.prototype.delete=w0,Fr.prototype.get=k0,Fr.prototype.has=x0,Fr.prototype.set=_0;var vl=Fr,C0=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},S0=function(e){return this.__data__.has(e)},D0=ll,T0=C0,A0=S0;function pi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new D0;++t<n;)this.add(e[t])}pi.prototype.add=pi.prototype.push=T0,pi.prototype.has=A0;var E0=function(e,t){return e.has(t)},P0=pi,O0=lp,M0=E0,cp=function(e,t,n,r,o,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var p=-1,v=!0,m=2&n?new P0:void 0;for(i.set(e,t),i.set(t,e);++p<l;){var g=e[p],x=t[p];if(r)var _=a?r(x,g,p,t,e,i):r(g,x,p,e,t,i);if(_!==void 0){if(_)continue;v=!1;break}if(m){if(!O0(t,function(w,k){if(!M0(m,k)&&(g===w||o(g,w,n,r,i)))return m.push(k)})){v=!1;break}}else if(g!==x&&!o(g,x,n,r,i)){v=!1;break}}return i.delete(e),i.delete(t),v},up=ln.Uint8Array,I0=function(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n},L0=function(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n},dp=up,j0=Rr,R0=cp,$0=I0,N0=L0,pp=ur?ur.prototype:void 0,fl=pp?pp.valueOf:void 0,F0=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new dp(e),new dp(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return j0(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=$0;case"[object Set]":var s=1&r;if(l||(l=N0),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=R0(l(e),l(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(fl)return fl.call(e)==fl.call(t)}return!1},Y0=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},B0=Y0,V0=Xt,U0=function(e,t,n){var r=t(e);return V0(e)?r:B0(r,n(e))},W0=function(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i},z0=W0,H0=function(){return[]},G0=Object.prototype.propertyIsEnumerable,vp=Object.getOwnPropertySymbols,q0=vp?function(e){return e==null?[]:(e=Object(e),z0(vp(e),function(t){return G0.call(e,t)}))}:H0,Z0=q0,X0=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Yr={},K0={get exports(){return Yr},set exports(e){Yr=e}},J0=function(){return!1};(function(e,t){var n=ln,r=J0,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l})(K0,Yr);var Q0=cn,e1=pl,t1=Kt,tt={};tt["[object Float32Array]"]=tt["[object Float64Array]"]=tt["[object Int8Array]"]=tt["[object Int16Array]"]=tt["[object Int32Array]"]=tt["[object Uint8Array]"]=tt["[object Uint8ClampedArray]"]=tt["[object Uint16Array]"]=tt["[object Uint32Array]"]=!0,tt["[object Arguments]"]=tt["[object Array]"]=tt["[object ArrayBuffer]"]=tt["[object Boolean]"]=tt["[object DataView]"]=tt["[object Date]"]=tt["[object Error]"]=tt["[object Function]"]=tt["[object Map]"]=tt["[object Number]"]=tt["[object Object]"]=tt["[object RegExp]"]=tt["[object Set]"]=tt["[object String]"]=tt["[object WeakMap]"]=!1;var n1=function(e){return t1(e)&&e1(e.length)&&!!tt[Q0(e)]},r1=n1,o1=ip,fp=vr&&vr.isTypedArray,hl=fp?o1(fp):r1,a1=X0,i1=ul,s1=Xt,l1=Yr,c1=dl,u1=hl,d1=Object.prototype.hasOwnProperty,hp=function(e,t){var n=s1(e),r=!n&&i1(e),o=!n&&!r&&l1(e),i=!n&&!r&&!o&&u1(e),a=n||r||o||i,l=a?a1(e.length,String):[],s=l.length;for(var c in e)(t||d1.call(e,c))&&(!a||!(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||c1(c,s)))&&l.push(c);return l},p1=Object.prototype,gl=function(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||p1)},gp=function(e,t){return function(n){return e(t(n))}},v1=gp(Object.keys,Object),f1=gl,h1=v1,g1=Object.prototype.hasOwnProperty,m1=function(e){if(!f1(e))return h1(e);var t=[];for(var n in Object(e))g1.call(e,n)&&n!="constructor"&&t.push(n);return t},b1=dr,y1=pl,Bo=function(e){return e!=null&&y1(e.length)&&!b1(e)},w1=hp,k1=m1,x1=Bo,ml=function(e){return x1(e)?w1(e):k1(e)},_1=U0,C1=Z0,S1=ml,D1=function(e){return _1(e,S1,C1)},mp=D1,T1=Object.prototype.hasOwnProperty,A1=function(e,t,n,r,o,i){var a=1&n,l=mp(e),s=l.length;if(s!=mp(t).length&&!a)return!1;for(var c=s;c--;){var u=l[c];if(!(a?u in t:T1.call(t,u)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=a;++c<s;){var x=e[u=l[c]],_=t[u];if(r)var w=a?r(_,x,u,t,e,i):r(x,_,u,e,t,i);if(!(w===void 0?x===_||o(x,_,n,r,i):w)){m=!1;break}g||(g=u=="constructor")}if(m&&!g){var k=e.constructor,A=t.constructor;k!=A&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof A=="function"&&A instanceof A)&&(m=!1)}return i.delete(e),i.delete(t),m},bl=pr(ln,"DataView"),yl=sl,wl=pr(ln,"Promise"),kl=pr(ln,"Set"),xl=pr(ln,"WeakMap"),bp=cn,Br=Zd,yp="[object Map]",wp="[object Promise]",kp="[object Set]",xp="[object WeakMap]",_p="[object DataView]",E1=Br(bl),P1=Br(yl),O1=Br(wl),M1=Br(kl),I1=Br(xl),fr=bp;(bl&&fr(new bl(new ArrayBuffer(1)))!=_p||yl&&fr(new yl)!=yp||wl&&fr(wl.resolve())!=wp||kl&&fr(new kl)!=kp||xl&&fr(new xl)!=xp)&&(fr=function(e){var t=bp(e),n=t=="[object Object]"?e.constructor:void 0,r=n?Br(n):"";if(r)switch(r){case E1:return _p;case P1:return yp;case O1:return wp;case M1:return kp;case I1:return xp}return t});var _l=vl,L1=cp,j1=F0,R1=A1,Cp=fr,Sp=Xt,Dp=Yr,$1=hl,Tp="[object Arguments]",Ap="[object Array]",vi="[object Object]",Ep=Object.prototype.hasOwnProperty,N1=function(e,t,n,r,o,i){var a=Sp(e),l=Sp(t),s=a?Ap:Cp(e),c=l?Ap:Cp(t),u=(s=s==Tp?vi:s)==vi,p=(c=c==Tp?vi:c)==vi,v=s==c;if(v&&Dp(e)){if(!Dp(t))return!1;a=!0,u=!1}if(v&&!u)return i||(i=new _l),a||$1(e)?L1(e,t,n,r,o,i):j1(e,t,s,n,r,o,i);if(!(1&n)){var m=u&&Ep.call(e,"__wrapped__"),g=p&&Ep.call(t,"__wrapped__");if(m||g){var x=m?e.value():e,_=g?t.value():t;return i||(i=new _l),o(x,_,n,r,i)}}return!!v&&(i||(i=new _l),R1(e,t,n,r,o,i))},F1=N1,Pp=Kt,Op=function e(t,n,r,o,i){return t===n||(t==null||n==null||!Pp(t)&&!Pp(n)?t!=t&&n!=n:F1(t,n,r,o,e,i))},Y1=vl,B1=Op,V1=function(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){var s=(l=n[o])[0],c=e[s],u=l[1];if(a&&l[2]){if(c===void 0&&!(s in e))return!1}else{var p=new Y1;if(r)var v=r(c,u,s,e,t,p);if(!(v===void 0?B1(u,c,3,r,p):v))return!1}}return!0},U1=xn,Mp=function(e){return e==e&&!U1(e)},W1=Mp,z1=ml,H1=function(e){for(var t=z1(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,W1(o)]}return t},Ip=function(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}},G1=V1,q1=H1,Z1=Ip,X1=function(e){var t=q1(e);return t.length==1&&t[0][2]?Z1(t[0][0],t[0][1]):function(n){return n===e||G1(n,e,t)}},K1=tp,J1=di,Lp=function(e,t){for(var n=0,r=(t=K1(t,e)).length;e!=null&&n<r;)e=e[J1(t[n++])];return n&&n==r?e:void 0},Q1=Lp,hr=function(e,t,n){var r=e==null?void 0:Q1(e,t);return r===void 0?n:r},ew=function(e,t){return e!=null&&t in Object(e)},tw=ew,nw=op,rw=function(e,t){return e!=null&&nw(e,t,tw)},ow=Op,aw=hr,iw=rw,sw=al,lw=Mp,cw=Ip,uw=di,dw=function(e,t){return sw(e)&&lw(t)?cw(uw(e),t):function(n){var r=aw(n,e);return r===void 0&&r===t?iw(n,e):ow(t,r,3)}},Cl=function(e){return e},pw=function(e){return function(t){return t==null?void 0:t[e]}},vw=Lp,fw=function(e){return function(t){return vw(t,e)}},hw=pw,gw=fw,mw=al,bw=di,yw=function(e){return mw(e)?hw(bw(e)):gw(e)},ww=X1,kw=dw,xw=Cl,_w=Xt,Cw=yw,jp=function(e){return typeof e=="function"?e:e==null?xw:typeof e=="object"?_w(e)?kw(e[0],e[1]):ww(e):Cw(e)},Sw=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(n(i[s],s,i)===!1)break}return t}},Rp=Sw(),Dw=Rp,Tw=ml,$p=function(e,t){return e&&Dw(e,t,Tw)},Aw=Bo,Ew=function(e,t){return function(n,r){if(n==null)return n;if(!Aw(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}},Pw=Ew($p),Ow=function(e,t){var n;return Pw(e,function(r,o,i){return!(n=t(r,o,i))}),!!n},Mw=Rr,Iw=Bo,Lw=dl,jw=xn,Sl=function(e,t,n){if(!jw(n))return!1;var r=typeof t;return!!(r=="number"?Iw(n)&&Lw(t,n.length):r=="string"&&t in n)&&Mw(n[t],e)},Rw=lp,$w=jp,Nw=Ow,Fw=Xt,Yw=Sl,Bw=function(e,t,n){var r=Fw(e)?Rw:Nw;return n&&Yw(e,t,n)&&(t=void 0),r(e,$w(t))},Vw=cn,Uw=Kt,Ww=function(e){return e===!0||e===!1||Uw(e)&&Vw(e)=="[object Boolean]"},zw=cn,Hw=Kt,Jt=function(e){return typeof e=="number"||Hw(e)&&zw(e)=="[object Number]"},Gw=pr,qw=function(){try{var e=Gw(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Np=qw,Fp=Np,fi=function(e,t,n){t=="__proto__"&&Fp?Fp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Zw=fi,Xw=Rr,Kw=Object.prototype.hasOwnProperty,Jw=function(e,t,n){var r=e[t];(!Kw.call(e,t)||!Xw(r,n)||n===void 0&&!(t in e))&&Zw(e,t,n)},Qw=fi,ek=$p,tk=jp,nk=function(e,t){var n={};return t=tk(t),ek(e,function(r,o,i){Qw(n,o,t(r,o,i))}),n},Yp=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},rk=Yp,Bp=Math.max,ok=function(e,t,n){return t=Bp(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Bp(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(a),rk(e,this,l)}},ak=function(e){return function(){return e}},ik=ak,Vp=Np,sk=Vp?function(e,t){return Vp(e,"toString",{configurable:!0,enumerable:!1,value:ik(t),writable:!0})}:Cl,lk=sk,ck=Date.now,uk=function(e){var t=0,n=0;return function(){var r=ck(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},dk=uk(lk),pk=Cl,vk=ok,fk=dk,Dl=function(e,t){return fk(vk(e,t,pk),e+"")},hk=function(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t},gk=xn,mk=gl,bk=hk,yk=Object.prototype.hasOwnProperty,wk=function(e){if(!gk(e))return bk(e);var t=mk(e),n=[];for(var r in e)r=="constructor"&&(t||!yk.call(e,r))||n.push(r);return n},kk=hp,xk=wk,_k=Bo,Tl=function(e){return _k(e)?kk(e,!0):xk(e)},Ck=Dl,Sk=Rr,Dk=Sl,Tk=Tl,Up=Object.prototype,Ak=Up.hasOwnProperty,Ek=Ck(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&Dk(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=Tk(i),l=-1,s=a.length;++l<s;){var c=a[l],u=e[c];(u===void 0||Sk(u,Up[c])&&!Ak.call(e,c))&&(e[c]=i[c])}return e}),Wp=Ek,Pk=fi,Ok=Rr,zp=function(e,t,n){(n!==void 0&&!Ok(e[t],n)||n===void 0&&!(t in e))&&Pk(e,t,n)},hi={},Mk={get exports(){return hi},set exports(e){hi=e}};(function(e,t){var n=ln,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(l,s){if(s)return l.slice();var c=l.length,u=a?a(c):new l.constructor(c);return l.copy(u),u}})(Mk,hi);var Hp=up,Ik=function(e){var t=new e.constructor(e.byteLength);return new Hp(t).set(new Hp(e)),t},Lk=Ik,jk=function(e,t){var n=t?Lk(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Rk=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},$k=xn,Gp=Object.create,Nk=function(){function e(){}return function(t){if(!$k(t))return{};if(Gp)return Gp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Fk=Nk,qp=gp(Object.getPrototypeOf,Object),Yk=Fk,Bk=qp,Vk=gl,Uk=function(e){return typeof e.constructor!="function"||Vk(e)?{}:Yk(Bk(e))},Wk=Bo,zk=Kt,Hk=function(e){return zk(e)&&Wk(e)},Gk=cn,qk=qp,Zk=Kt,Xk=Function.prototype,Kk=Object.prototype,Zp=Xk.toString,Jk=Kk.hasOwnProperty,Qk=Zp.call(Object),ex=function(e){if(!Zk(e)||Gk(e)!="[object Object]")return!1;var t=qk(e);if(t===null)return!0;var n=Jk.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Zp.call(n)==Qk},Xp=function(e,t){if((t!=="constructor"||typeof e[t]!="function")&&t!="__proto__")return e[t]},tx=Jw,nx=fi,rx=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;s===void 0&&(s=e[l]),o?nx(n,l,s):tx(n,l,s)}return n},ox=rx,ax=Tl,ix=function(e){return ox(e,ax(e))},Kp=zp,sx=hi,lx=jk,cx=Rk,ux=Uk,Jp=ul,Qp=Xt,dx=Hk,px=Yr,vx=dr,fx=xn,hx=ex,gx=hl,ev=Xp,mx=ix,bx=function(e,t,n,r,o,i,a){var l=ev(e,n),s=ev(t,n),c=a.get(s);if(c)Kp(e,n,c);else{var u=i?i(l,s,n+"",e,t,a):void 0,p=u===void 0;if(p){var v=Qp(s),m=!v&&px(s),g=!v&&!m&&gx(s);u=s,v||m||g?Qp(l)?u=l:dx(l)?u=cx(l):m?(p=!1,u=sx(s,!0)):g?(p=!1,u=lx(s,!0)):u=[]:hx(s)||Jp(s)?(u=l,Jp(l)?u=mx(l):(!fx(l)||vx(l))&&(u=ux(s))):p=!1}p&&(a.set(s,u),o(u,s,r,i,a),a.delete(s)),Kp(e,n,u)}},yx=vl,wx=zp,kx=Rp,xx=bx,_x=xn,Cx=Tl,Sx=Xp,tv=function e(t,n,r,o,i){t!==n&&kx(n,function(a,l){if(i||(i=new yx),_x(a))xx(t,n,l,r,e,o,i);else{var s=o?o(Sx(t,l),a,l+"",t,n,i):void 0;s===void 0&&(s=a),wx(t,l,s)}},Cx)},Dx=tv,nv=xn,Tx=function e(t,n,r,o,i,a){return nv(t)&&nv(n)&&(a.set(n,t),Dx(t,n,void 0,e,a),a.delete(n)),t},Ax=Dl,Ex=Sl,Px=function(e){return Ax(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&Ex(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,i)}return t})},Ox=tv,Mx=Px(function(e,t,n,r){Ox(e,t,n,r)}),Ix=Yp,Lx=Tx,jx=Mx,Rx=Dl(function(e){return e.push(void 0,Lx),Ix(jx,void 0,e)}),Vo=Rx,rv=function(e){return e&&e.length?e[0]:void 0},Vr=function(e){var t=e==null?0:e.length;return t?e[t-1]:void 0};const Ur=e=>i0(e)&&!isNaN(e.getTime()),_n=e=>(t=>Object.prototype.toString.call(t).slice(8,-1))(e)==="Object",ov=ap,av=(e,t)=>Bw(t,n=>ap(e,n)),Ke=(e,t,n="0")=>{for(e=e!=null?String(e):"",t=t||2;e.length<t;)e=`${n}${e}`;return e},Bt=e=>Array.isArray(e),Cn=e=>Bt(e)&&e.length>0,gi=e=>e==null?null:document&&un(e)?document.querySelector(e):e.$el??e,Un=(e,t,n,r=void 0)=>{e.removeEventListener(t,n,r)},Wn=(e,t,n,r=void 0)=>(e.addEventListener(t,n,r),()=>Un(e,t,n,r)),mi=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),bi=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},iv=(e,...t)=>{const n={};let r;for(r in e)t.includes(r)||(n[r]=e[r]);return n},sv=(e,t)=>{const n={};return t.forEach(r=>{r in e&&(n[r]=e[r])}),n};var yi={},$x={get exports(){return yi},set exports(e){yi=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){if(n===null||n===!0||n===!1)return NaN;var r=Number(n);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)},e.exports=t.default})($x,yi);const Nx=Ud(yi);var wi={},Fx={get exports(){return wi},set exports(e){wi=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),n.getTime()-r.getTime()},e.exports=t.default})(Fx,wi);const lv=Ud(wi);function Yx(e,t){var n=function(r){if(!Al[r]){var o=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")),i=o==="06/25/2014, 00:00:00"||o==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";Al[r]=i?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:r,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Al[r]}(t);return n.formatToParts?function(r,o){try{for(var i=r.formatToParts(o),a=[],l=0;l<i.length;l++){var s=Bx[i[l].type];s>=0&&(a[s]=parseInt(i[l].value,10))}return a}catch(c){if(c instanceof RangeError)return[NaN];throw c}}(n,e):function(r,o){var i=r.format(o).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i);return[a[3],a[1],a[2],a[4],a[5],a[6]]}(n,e)}var Bx={year:0,month:1,day:2,hour:3,minute:4,second:5},Al={};function cv(e,t,n,r,o,i,a){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,a),l}var uv=36e5,El={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Vx(e,t,n){var r,o,i;if(!e||(r=El.timezoneZ.exec(e)))return 0;if(r=El.timezoneHH.exec(e))return dv(i=parseInt(r[1],10))?-i*uv:NaN;if(r=El.timezoneHHMM.exec(e)){i=parseInt(r[1],10);var a=parseInt(r[2],10);return dv(i,a)?(o=Math.abs(i)*uv+6e4*a,i>0?-o:o):NaN}if(function(c){if(pv[c])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:c}),pv[c]=!0,!0}catch{return!1}}(e)){var l=function(c){return cv(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds())}(t=new Date(t||Date.now())),s=function(c,u,p){var v=c.getTime(),m=v-u,g=Pl(new Date(m),p);if(u===g)return u;m-=g-u;var x=Pl(new Date(m),p);return g===x?g:Math.max(g,x)}(t,Pl(l,e),e);return-s}return NaN}function Pl(e,t){var n=Yx(e,t),r=cv(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return r-(o-=i>=0?i:1e3+i)}function dv(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var pv={},Ol=36e5,vv=6e4,St={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,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:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Ux(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?2:Nx(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 o=function(p){var v,m={},g=St.dateTimePattern.exec(p);if(g?(m.date=g[1],v=g[3]):(g=St.datePattern.exec(p),g?(m.date=g[1],v=g[2]):(m.date=null,v=p)),v){var x=St.timeZone.exec(v);x?(m.time=v.replace(x[1],""),m.timeZone=x[1].trim()):m.time=v}return m}(e),i=function(p,v){var m,g=St.YYY[v],x=St.YYYYY[v];if(m=St.YYYY.exec(p)||x.exec(p),m){var _=m[1];return{year:parseInt(_,10),restDateString:p.slice(_.length)}}if(m=St.YY.exec(p)||g.exec(p),m){var w=m[1];return{year:100*parseInt(w,10),restDateString:p.slice(w.length)}}return{year:null}}(o.date,r),a=i.year,l=function(p,v){if(v===null)return null;var m,g,x,_;if(p.length===0)return g=new Date(0),g.setUTCFullYear(v),g;if(m=St.MM.exec(p),m)return g=new Date(0),x=parseInt(m[1],10)-1,gv(v,x)?(g.setUTCFullYear(v,x),g):new Date(NaN);if(m=St.DDD.exec(p),m){g=new Date(0);var w=parseInt(m[1],10);return function(M,I){if(I<1)return!1;var N=hv(M);return!(N&&I>366||!N&&I>365)}(v,w)?(g.setUTCFullYear(v,0,w),g):new Date(NaN)}if(m=St.MMDD.exec(p),m){g=new Date(0),x=parseInt(m[1],10)-1;var k=parseInt(m[2],10);return gv(v,x,k)?(g.setUTCFullYear(v,x,k),g):new Date(NaN)}if(m=St.Www.exec(p),m)return _=parseInt(m[1],10)-1,mv(v,_)?fv(v,_):new Date(NaN);if(m=St.WwwD.exec(p),m){_=parseInt(m[1],10)-1;var A=parseInt(m[2],10)-1;return mv(v,_,A)?fv(v,_,A):new Date(NaN)}return null}(i.restDateString,a);if(isNaN(l))return new Date(NaN);if(l){var s,c=l.getTime(),u=0;if(o.time&&(u=function(p){var v,m,g;if(v=St.HH.exec(p),v)return m=parseFloat(v[1].replace(",",".")),Ml(m)?m%24*Ol:NaN;if(v=St.HHMM.exec(p),v)return m=parseInt(v[1],10),g=parseFloat(v[2].replace(",",".")),Ml(m,g)?m%24*Ol+g*vv:NaN;if(v=St.HHMMSS.exec(p),v){m=parseInt(v[1],10),g=parseInt(v[2],10);var x=parseFloat(v[3].replace(",","."));return Ml(m,g,x)?m%24*Ol+g*vv+1e3*x:NaN}return null}(o.time),isNaN(u)))return new Date(NaN);if(o.timeZone||n.timeZone){if(s=Vx(o.timeZone||n.timeZone,new Date(c+u)),isNaN(s))return new Date(NaN)}else s=lv(new Date(c+u)),s=lv(new Date(c+u+s));return new Date(c+u+s)}return new Date(NaN)}function fv(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}var Wx=[31,28,31,30,31,30,31,31,30,31,30,31],zx=[31,29,31,30,31,30,31,31,30,31,30,31];function hv(e){return e%400==0||e%4==0&&e%100!=0}function gv(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=hv(e);if(r&&n>zx[t]||!r&&n>Wx[t])return!1}return!0}function mv(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Ml(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function wt(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Il(e){return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function Sn(e){wt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Il(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 Wr(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 Hx={};function Ll(){return Hx}function gr(e,t){var n,r,o,i,a,l,s,c;wt(1,arguments);var u=Ll(),p=Wr((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&r!==void 0?r:(s=u.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=Sn(e),m=v.getDay(),g=(m<p?7:0)+m-p;return v.setDate(v.getDate()-g),v.setHours(0,0,0,0),v}function bv(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Gx(e,t){return wt(1,arguments),function(n,r,o){wt(2,arguments);var i=gr(n,o),a=gr(r,o),l=i.getTime()-bv(i),s=a.getTime()-bv(a);return Math.round((l-s)/6048e5)}(function(n){wt(1,arguments);var r=Sn(n),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(0,0,0,0),r}(e),function(n){wt(1,arguments);var r=Sn(n);return r.setDate(1),r.setHours(0,0,0,0),r}(e),t)+1}function qx(e,t){var n,r,o,i,a,l,s,c;wt(1,arguments);var u=Ll(),p=Wr((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:u.firstWeekContainsDate)!==null&&r!==void 0?r:(s=u.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),v=function(g,x){var _,w,k,A,M,I,N,S;wt(1,arguments);var F=Sn(g),U=F.getFullYear(),B=Ll(),Z=Wr((_=(w=(k=(A=x==null?void 0:x.firstWeekContainsDate)!==null&&A!==void 0?A:x==null||(M=x.locale)===null||M===void 0||(I=M.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&k!==void 0?k:B.firstWeekContainsDate)!==null&&w!==void 0?w:(N=B.locale)===null||N===void 0||(S=N.options)===null||S===void 0?void 0:S.firstWeekContainsDate)!==null&&_!==void 0?_:1);if(!(Z>=1&&Z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var X=new Date(0);X.setFullYear(U+1,0,Z),X.setHours(0,0,0,0);var Y=gr(X,x),L=new Date(0);L.setFullYear(U,0,Z),L.setHours(0,0,0,0);var z=gr(L,x);return F.getTime()>=Y.getTime()?U+1:F.getTime()>=z.getTime()?U:U-1}(e,t),m=new Date(0);return m.setFullYear(v,0,p),m.setHours(0,0,0,0),gr(m,t)}function Zx(e,t){wt(1,arguments);var n=Sn(e),r=gr(n,t).getTime()-qx(n,t).getTime();return Math.round(r/6048e5)+1}function ki(e){return wt(1,arguments),gr(e,{weekStartsOn:1})}function Xx(e){wt(1,arguments);var t=function(r){wt(1,arguments);var o=Sn(r),i=o.getFullYear(),a=new Date(0);a.setFullYear(i+1,0,4),a.setHours(0,0,0,0);var l=ki(a),s=new Date(0);s.setFullYear(i,0,4),s.setHours(0,0,0,0);var c=ki(s);return o.getTime()>=l.getTime()?i+1:o.getTime()>=c.getTime()?i:i-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),ki(n)}function Kx(e){wt(1,arguments);var t=Sn(e),n=ki(t).getTime()-Xx(t).getTime();return Math.round(n/6048e5)+1}function Dt(e,t){wt(2,arguments);var n=Sn(e),r=Wr(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function xi(e,t){wt(2,arguments);var n=Sn(e),r=Wr(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function yv(e,t){return wt(2,arguments),xi(e,12*Wr(t))}const Jx={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function Qx(e,t){return`${t}.${Ke(e,2)}`}function wv(e,t,n){return sv(n.getDateParts(n.toDate(e)),Jx[t])}function kv({day:e,week:t,month:n,year:r},o,i,a){if(i==="daily"&&e){const l=Dt(new Date(r,n-1,e),o);return{day:l.getDate(),month:l.getMonth()+1,year:l.getFullYear()}}if(i==="weekly"&&t){const l=Dt(a.getMonthParts(n,r).firstDayOfMonth,7*(t-1+o)),s=a.getDateParts(l);return{week:s.week,month:s.month,year:s.year}}{const l=xi(new Date(r,n-1,1),o);return{month:l.getMonth()+1,year:l.getFullYear()}}}function dn(e){return e!=null&&e.month!=null&&e.year!=null}function jl(e,t){return!(!dn(e)||!dn(t))&&(e.year!==t.year?e.year<t.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)}function _i(e,t){return!(!dn(e)||!dn(t))&&(e.year!==t.year?e.year>t.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)}function xv(e){const{day:t,week:n,month:r,year:o}=e;let i=`${o}-${Ke(r,2)}`;return n&&(i=`${i}-w${n}`),t&&(i=`${i}-${Ke(t,2)}`),i}function e_(e,t){const{month:n,year:r,showWeeknumbers:o,showIsoWeeknumbers:i}=e,a=new Date(r,n-1,15),l=t.getMonthParts(n,r),s=t.getPrevMonthParts(n,r),c=t.getNextMonthParts(n,r),u=function({monthComps:m,prevMonthComps:g,nextMonthComps:x},_){const w=[],{firstDayOfWeek:k,firstWeekday:A,isoWeeknumbers:M,weeknumbers:I,numDays:N,numWeeks:S}=m,F=A+(A<k?kt:0)-k;let U=!0,B=!1,Z=!1,X=0;const Y=new Intl.DateTimeFormat(_.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let L=g.numDays-F+1,z=g.numDays-L+1,J=Math.floor((L-1)/kt+1),te=1,se=g.numWeeks,re=1,ue=g.month,le=g.year;const _e=new Date,$e=_e.getDate(),ce=_e.getMonth()+1,ve=_e.getFullYear();for(let ye=1;ye<=m_;ye++){for(let Me=1,Oe=k;Me<=kt;Me++,Oe+=Oe===kt?1-kt:1){U&&Oe===A&&(L=1,z=m.numDays,J=Math.floor((L-1)/kt+1),te=Math.floor((N-L)/kt+1),se=1,re=S,ue=m.month,le=m.year,U=!1,B=!0);const ze=_.getDateFromParams(le,ue,L,0,0,0,0),Be=_.getDateFromParams(le,ue,L,12,0,0,0),Te=_.getDateFromParams(le,ue,L,23,59,59,999),j=ze,V=`${Ke(le,4)}-${Ke(ue,2)}-${Ke(L,2)}`,Q=Me,ie=kt-Me,d=I[ye-1],f=M[ye-1],b=L===$e&&ue===ce&&le===ve,D=B&&L===1,P=B&&L===N,E=ye===1,G=ye===S,T=Me===1,q=Me===kt,$=$v(le,ue,L);w.push({locale:_,id:V,position:++X,label:L.toString(),ariaLabel:Y.format(new Date(le,ue-1,L)),day:L,dayFromEnd:z,weekday:Oe,weekdayPosition:Q,weekdayPositionFromEnd:ie,weekdayOrdinal:J,weekdayOrdinalFromEnd:te,week:se,weekFromEnd:re,weekPosition:ye,weeknumber:d,isoWeeknumber:f,month:ue,year:le,date:j,startDate:ze,endDate:Te,noonDate:Be,dayIndex:$,isToday:b,isFirstDay:D,isLastDay:P,isDisabled:!B,isFocusable:!B,isFocused:!1,inMonth:B,inPrevMonth:U,inNextMonth:Z,onTop:E,onBottom:G,onLeft:T,onRight:q,classes:[`id-${V}`,`day-${L}`,`day-from-end-${z}`,`weekday-${Oe}`,`weekday-position-${Q}`,`weekday-ordinal-${J}`,`weekday-ordinal-from-end-${te}`,`week-${se}`,`week-from-end-${re}`,{"is-today":b,"is-first-day":D,"is-last-day":P,"in-month":B,"in-prev-month":U,"in-next-month":Z,"on-top":E,"on-bottom":G,"on-left":T,"on-right":q}]}),B&&P?(B=!1,Z=!0,L=1,z=N,J=1,te=Math.floor((N-L)/kt+1),se=1,re=x.numWeeks,ue=x.month,le=x.year):(L++,z--,J=Math.floor((L-1)/kt+1),te=Math.floor((N-L)/kt+1))}se++,re--}return w}({monthComps:l,prevMonthComps:s,nextMonthComps:c},t),p=function(m,g,x,_){const w=m.reduce((k,A,M)=>{const I=Math.floor(M/7);let N=k[I];return N||(N={id:`week-${I+1}`,title:"",week:A.week,weekPosition:A.weekPosition,weeknumber:A.weeknumber,isoWeeknumber:A.isoWeeknumber,weeknumberDisplay:g?A.weeknumber:x?A.isoWeeknumber:void 0,days:[]},k[I]=N),N.days.push(A),k},Array(m.length/kt));return w.forEach(k=>{const A=k.days[0],M=k.days[k.days.length-1];A.month===M.month?k.title=`${_.formatDate(A.date,"MMMM YYYY")}`:A.year===M.year?k.title=`${_.formatDate(A.date,"MMM")} - ${_.formatDate(M.date,"MMM YYYY")}`:k.title=`${_.formatDate(A.date,"MMM YYYY")} - ${_.formatDate(M.date,"MMM YYYY")}`}),w}(u,o,i,t),v=function(m,g){return m.days.map(x=>({label:g.formatDate(x.date,g.masks.weekdays),weekday:x.weekday}))}(p[0],t);return{id:xv(e),month:n,year:r,monthTitle:t.formatDate(a,t.masks.title),shortMonthLabel:t.formatDate(a,"MMM"),monthLabel:t.formatDate(a,"MMMM"),shortYearLabel:r.toString().substring(2),yearLabel:r.toString(),monthComps:l,prevMonthComps:s,nextMonthComps:c,days:u,weeks:p,weekdays:v}}class _v{constructor(t,n,r){ke(this,"keys",[]),ke(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 o=this.keys.shift();o!=null&&delete this.store[o]}return this.keys.push(n),this.store[n]=r,r}}class zr{constructor(t,n=new Ci){var r;ke(this,"order"),ke(this,"locale"),ke(this,"start",null),ke(this,"end",null),ke(this,"repeat",null),this.locale=n;const{start:o,end:i,span:a,order:l,repeat:s}=t;Ur(o)&&(this.start=n.getDateParts(o)),Ur(i)?this.end=n.getDateParts(i):this.start!=null&&a&&(this.end=n.getDateParts(Dt(this.start.date,a-1))),this.order=l??0,s&&(this.repeat=new p_({from:(r=this.start)==null?void 0:r.date,...s},{locale:this.locale}))}static fromMany(t,n){return(Bt(t)?t:[t]).filter(r=>r).map(r=>zr.from(r,n))}static from(t,n){if(t instanceof zr)return t;const r={start:null,end:null};return t!=null&&(Bt(t)?(r.start=t[0]??null,r.end=t[1]??null):_n(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 zr(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<t)}}class t_{constructor(){ke(this,"records",{})}render(t,n,r){var o,i,a,l;let s=null;const c=r[0].dayIndex,u=r[r.length-1].dayIndex;return n.hasRepeat?r.forEach(p=>{var v,m;if(n.startsOnDay(p)){const g=n.daySpan<1/0?n.daySpan:1;s={startDay:p.dayIndex,startTime:((v=n.start)==null?void 0:v.time)??0,endDay:p.dayIndex+g-1,endTime:((m=n.end)==null?void 0:m.time)??Si},this.getRangeRecords(t).push(s)}}):n.intersectsDayRange(c,u)&&(s={startDay:((o=n.start)==null?void 0:o.dayIndex)??-1/0,startTime:((i=n.start)==null?void 0:i.time)??-1/0,endDay:((a=n.end)==null?void 0:a.dayIndex)??1/0,endTime:((l=n.end)==null?void 0:l.time)??1/0},this.getRangeRecords(t).push(s)),s}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(r=>r.data.key===t)}cellExists(t,n){const r=this.records[t];return r!=null&&r.ranges.some(o=>o.startDay<=n&&o.endDay>=n)}getCells(t){const n=Object.values(this.records),r=[],{dayIndex:o}=t;return n.forEach(({data:i,ranges:a})=>{a.filter(l=>l.startDay<=o&&l.endDay>=o).forEach(l=>{const s=o===l.startDay,c=o===l.endDay,u=s?l.startTime:0,p=new Date(t.startDate.getTime()+u),v=c?l.endTime:Si,m=new Date(t.endDate.getTime()+v),g=u===0&&v===Si,x=i.order||0;r.push({...l,data:i,onStart:s,onEnd:c,startTime:u,startDate:p,endTime:v,endDate:m,allDay:g,order:x})})}),r.sort((i,a)=>i.order-a.order),r}}const Dn={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"}};Dn.en=Dn["en-US"],Dn.es=Dn["es-ES"],Dn.no=Dn.nb,Dn.zh=Dn["zh-CN"];const n_=Object.entries(Dn).reduce((e,[t,{dow:n,L:r}])=>(e[t]={id:t,firstDayOfWeek:n,masks:{L:r}},e),{}),Rl=Mt({componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:{maxSwipeTime:300,minHorizontalSwipeDistance:60,maxVerticalSwipeDistance:80},masks:{title:"MMMM YYYY",weekdays:"W",navMonths:"MMM",hours:"h A",input:["L","YYYY-MM-DD","YYYY/MM/DD"],inputDateTime:["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],inputDateTime24hr:["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],inputTime:["h:mm A"],inputTime24hr:["HH:mm"],dayPopover:"WWW, MMM D, YYYY",data:["L","YYYY-MM-DD","YYYY/MM/DD"],model:"iso",iso:"YYYY-MM-DDTHH:mm:ss.SSSZ"},locales:n_,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}}),r_=y(()=>nk(Rl.locales,e=>(e.masks=Vo(e.masks,Rl.masks),e))),zn=e=>typeof window<"u"&&ov(window.__vcalendar__,e)?hr(window.__vcalendar__,e):hr(Rl,e);class Ci{constructor(t=void 0,n){ke(this,"id"),ke(this,"daysInWeek"),ke(this,"firstDayOfWeek"),ke(this,"masks"),ke(this,"timezone"),ke(this,"hourLabels"),ke(this,"dayNames"),ke(this,"dayNamesShort"),ke(this,"dayNamesShorter"),ke(this,"dayNamesNarrow"),ke(this,"monthNames"),ke(this,"monthNamesShort"),ke(this,"relativeTimeNames"),ke(this,"amPm",["am","pm"]),ke(this,"monthCache"),ke(this,"pageCache");const{id:r,firstDayOfWeek:o,masks:i,monthCacheSize:a,pageCacheSize:l}=function(s,c){const u=new Intl.DateTimeFormat().resolvedOptions().locale;let p;un(s)?p=s:ov(s,"id")&&(p=s.id),p=(p||u).toLowerCase();const v=Object.keys(c),m=x=>v.find(_=>_.toLowerCase()===x);p=m(p)||m(p.substring(0,2))||u;const g={...c["en-IE"],...c[p],id:p,monthCacheSize:12,pageCacheSize:5};return _n(s)?Vo(s,g):g}(t,r_.value);this.monthCache=new _v(a,k_,x_),this.pageCache=new _v(l,xv,e_),this.id=r,this.daysInWeek=kt,this.firstDayOfWeek=function(s,c,u){return Math.min(Math.max(s,c),u)}(o,1,kt),this.masks=i,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=Yl("long",this.id),this.dayNamesShort=Yl("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(s=>s.substring(0,2)),this.dayNamesNarrow=Yl("narrow",this.id),this.monthNames=Bv("long",this.id),this.monthNamesShort=Bv("short",this.id),this.relativeTimeNames=function(s){const c=["second","minute","hour","day","week","month","quarter","year"],u=new Intl.RelativeTimeFormat(s);return c.reduce((p,v)=>{const m=u.formatToParts(100,v);return p[v]=m[1].unit,p},{})}(this.id)}formatDate(t,n){return function(r,o,i){if(r==null)return"";let a=jv(o,i)[0];/Z$/.test(a)&&(i.timezone="utc");const l=[];a=a.replace(w_,(c,u)=>(l.push(u),"??"));const s=i.getDateParts(r);return a=a.replace(Ov,c=>c in Mv?Mv[c](s,i):c.slice(1,c.length-1)),a.replace(/\?\?/g,()=>l.shift())}(t,n,this)}parseDate(t,n){return Vv(t,n,this)}toDate(t,n={}){const r=new Date(NaN);let o=r;const{fillDate:i,mask:a,patch:l,rules:s}=n;if(Jt(t)?(n.type="number",o=new Date(+t)):un(t)?(n.type="string",o=t?Vv(t,a||"iso",this):r):Ur(t)?(n.type="date",o=new Date(t.getTime())):Nl(t)&&(n.type="object",o=this.getDateFromParts(t)),o&&(l||s)){let c=this.getDateParts(o);if(l&&i!=null){const u=this.getDateParts(this.toDate(i));c=this.getDateParts(this.toDate({...u,...sv(c,g_[l])}))}s&&(c=function(u,p){const v={...u};return Object.entries(p).forEach(([m,g])=>{const x=Uo[m],_=u[m];v[m]=function(w,k,A,M){const I=zo(w,k,M).reduce((N,S)=>{if(S.disabled)return N;if(isNaN(N))return S.value;const F=Math.abs(N-A);return Math.abs(S.value-A)<F?S.value:N},NaN);return isNaN(I)?A:I}(u,x,_,g)}),v}(c,s)),o=this.getDateFromParts(c)}return o||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 zr.from(t,this)}ranges(t){return zr.fromMany(t,this)}getDateParts(t){return function(n,r){let o=new Date(n.getTime());r.timezone&&(o=new Date(n.toLocaleString("en-US",{timeZone:r.timezone})),o.setMilliseconds(n.getMilliseconds()));const i=o.getMilliseconds(),a=o.getSeconds(),l=o.getMinutes(),s=o.getHours(),c=i+a*Av+l*Ev+s*Pv,u=o.getMonth()+1,p=o.getFullYear(),v=r.getMonthParts(u,p),m=o.getDate(),g=v.numDays-m+1,x=o.getDay()+1,_=Math.floor((m-1)/7+1),w=Math.floor((v.numDays-m)/7+1),k=Math.ceil((m+Math.abs(v.firstWeekday-v.firstDayOfWeek))/7),A=v.numWeeks-k+1,M=v.weeknumbers[k],I=$v(p,u,m);return{milliseconds:i,seconds:a,minutes:l,hours:s,time:c,day:m,dayFromEnd:g,weekday:x,weekdayOrdinal:_,weekdayOrdinalFromEnd:w,week:k,weekFromEnd:A,weeknumber:M,month:u,year:p,date:o,dateTime:o.getTime(),dayIndex:I,timezoneOffset:0,isValid:!0}}(t,this)}getDateFromParts(t){return Fv(t,this.timezone)}getDateFromParams(t,n,r,o,i,a,l){return this.getDateFromParts({year:t,month:n,day:r,hours:o,minutes:i,seconds:a,milliseconds:l})}getPage(t){return function(n,r){const{day:o,week:i,view:a,trimWeeks:l}=n,s={...r,...n,title:"",viewDays:[],viewWeeks:[]};switch(a){case"daily":{let c=s.days.find(p=>p.inMonth);o?c=s.days.find(p=>p.day===o&&p.inMonth)||c:i&&(c=s.days.find(p=>p.week===i&&p.inMonth));const u=s.weeks[c.week-1];s.viewWeeks=[u],s.viewDays=[c],s.week=c.week,s.weekTitle=u.title,s.day=c.day,s.dayTitle=c.ariaLabel,s.title=s.dayTitle;break}case"weekly":{s.week=i||1;const c=s.weeks[s.week-1];s.viewWeeks=[c],s.viewDays=c.days,s.weekTitle=c.title,s.title=s.weekTitle;break}default:s.title=s.monthTitle,s.viewWeeks=s.weeks.slice(0,l?s.monthComps.numWeeks:void 0),s.viewDays=s.days}return s}(t,this.pageCache.getOrSet(t,this))}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 function(){const t=[];for(let n=0;n<=24;n++)t.push(new Date(2e3,0,1,n));return t}().map(t=>this.formatDate(t,this.masks.hours))}getDayId(t){return this.formatDate(t,"YYYY-MM-DD")}}var Hr=(e=>(e.Any="any",e.All="all",e))(Hr||{}),Cv=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(Cv||{}),Sv=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(Sv||{}),Dv=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(Dv||{});class o_{constructor(t,n,r){ke(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 Fl(this.from.date,n)%this.interval==0;case"weeks":return function(r,o){return Math.ceil(Fl(Rv(r),Rv(o))/7)}(this.from.date,n)%this.interval==0;case"months":return function(r,o){return 12*Nv(r,o)+(o.getMonth()-r.getMonth())}(this.from.date,n)%this.interval==0;case"years":return Nv(this.from.date,n)%this.interval==0;default:return!1}}}class Gr{constructor(t,n,r,o){ke(this,"components",[]),this.type=t,this.validator=r,this.getter=o,this.components=this.normalizeComponents(n)}static create(t,n){switch(t){case"days":return new a_(n);case"weekdays":return new i_(n);case"weeks":return new s_(n);case"months":return new l_(n);case"years":return new c_(n)}}normalizeComponents(t){if(this.validator(t))return[t];if(!Bt(t))return[];const n=[];return t.forEach(r=>{this.validator(r)?n.push(r):console.error(`Component value ${r} in invalid for "${this.type}" rule. This rule will be skipped.`)}),n}passes(t){return this.getter(t).some(n=>this.components.includes(n))}}class a_ extends Gr{constructor(t){super("days",t,v_,({day:n,dayFromEnd:r})=>[n,-r])}}class i_ extends Gr{constructor(t){super("weekdays",t,$l,({weekday:n})=>[n])}}class s_ extends Gr{constructor(t){super("weeks",t,f_,({week:n,weekFromEnd:r})=>[n,-r])}}class l_ extends Gr{constructor(t){super("months",t,h_,({month:n})=>[n])}}class c_ extends Gr{constructor(t){super("years",t,Jt,({year:n})=>[n])}}class u_{constructor(t,n){ke(this,"components"),this.type=t,this.components=this.normalizeComponents(n)}normalizeArrayConfig(t){const n=[];return t.forEach((r,o)=>{if(Jt(r)){if(o===0)return;if(!Tv(t[0]))return void console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);if(!$l(r))return void console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);n.push([t[0],r])}else Bt(r)&&n.push(...this.normalizeArrayConfig(r))}),n}normalizeComponents(t){const n=[];return t.forEach((r,o)=>{if(Jt(r)){if(o===0)return;if(!Tv(t[0]))return void console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);if(!$l(r))return void console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);n.push([t[0],r])}else Bt(r)&&n.push(...this.normalizeArrayConfig(r))}),n}passes(t){const{weekday:n,weekdayOrdinal:r,weekdayOrdinalFromEnd:o}=t;return this.components.some(([i,a])=>(i===r||i===-o)&&n===a)}}class d_{constructor(t){ke(this,"type","function"),ke(this,"validated",!0),this.fn=t,dr(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)}}let p_=class bc{constructor(t,n={},r){ke(this,"validated",!0),ke(this,"config"),ke(this,"type",Hr.Any),ke(this,"from"),ke(this,"until"),ke(this,"rules",[]),ke(this,"locale",new Ci),this.parent=r,n.locale&&(this.locale=n.locale),this.config=t,dr(t)?(this.type=Hr.All,this.rules=[new d_(t)]):Bt(t)?(this.type=Hr.Any,this.rules=t.map(o=>new bc(o,n,this))):_n(t)?(this.type=Hr.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&&(un(t.every)&&(t.every=[1,`${t.every}s`]),Bt(t.every))){const[r=1,o=Cv.Days]=t.every;n.push(new o_(o,r,this.from))}return Object.values(Sv).forEach(r=>{r in t&&n.push(Gr.create(r,t[r]))}),Object.values(Dv).forEach(r=>{r in t&&n.push(new u_(r,t[r]))}),t.on!=null&&(Bt(t.on)||(t.on=[t.on]),n.push(new bc(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)&&(this.type===Hr.Any?this.rules.some(n=>n.passes(t)):this.rules.every(n=>n.passes(t)))}};function v_(e){return!!Jt(e)&&e>=1&&e<=31}function $l(e){return!!Jt(e)&&e>=1&&e<=7}function f_(e){return!!Jt(e)&&(e>=-6&&e<=-1||e>=1&&e<=6)}function h_(e){return!!Jt(e)&&e>=1&&e<=12}function Tv(e){return!(!Jt(e)||e<-5||e>5||e===0)}const g_={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},kt=7,m_=6,Av=1e3,Ev=60*Av,Pv=60*Ev,Si=24*Pv,b_=[31,28,31,30,31,30,31,31,30,31,30,31],y_=["L","iso"],Uo={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},Ov=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,w_=/\[([^]*?)\]/gm,Mv={D:e=>e.day,DD:e=>Ke(e.day,2),d:e=>e.weekday-1,dd:e=>Ke(e.weekday-1,2),W:(e,t)=>t.dayNamesNarrow[e.weekday-1],WW:(e,t)=>t.dayNamesShorter[e.weekday-1],WWW:(e,t)=>t.dayNamesShort[e.weekday-1],WWWW:(e,t)=>t.dayNames[e.weekday-1],M:e=>e.month,MM:e=>Ke(e.month,2),MMM:(e,t)=>t.monthNamesShort[e.month-1],MMMM:(e,t)=>t.monthNames[e.month-1],YY:e=>String(e.year).substr(2),YYYY:e=>Ke(e.year,4),h:e=>e.hours%12||12,hh:e=>Ke(e.hours%12||12,2),H:e=>e.hours,HH:e=>Ke(e.hours,2),m:e=>e.minutes,mm:e=>Ke(e.minutes,2),s:e=>e.seconds,ss:e=>Ke(e.seconds,2),S:e=>Math.round(e.milliseconds/100),SS:e=>Ke(Math.round(e.milliseconds/10),2),SSS:e=>Ke(e.milliseconds,3),a:(e,t)=>e.hours<12?t.amPm[0]:t.amPm[1],A:(e,t)=>e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase(),Z:()=>"Z",ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${Ke(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${Ke(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${Ke(Math.floor(Math.abs(t)/60),2)}:${Ke(Math.abs(t)%60,2)}`}},Hn=/\d\d?/,Wo=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Iv=()=>{},Lv=e=>(t,n,r)=>{const o=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~o&&(t.month=o)},Qe={D:[Hn,(e,t)=>{e.day=t}],Do:[new RegExp(Hn.source+Wo.source),(e,t)=>{e.day=parseInt(t,10)}],d:[Hn,Iv],W:[Wo,Iv],M:[Hn,(e,t)=>{e.month=t-1}],MMM:[Wo,Lv("monthNamesShort")],MMMM:[Wo,Lv("monthNames")],YY:[Hn,(e,t)=>{const n=+new Date().getFullYear().toString().substr(0,2);e.year=+`${t>68?n-1:n}${t}`}],YYYY:[/\d{4}/,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=100*t}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=10*t}],SSS:[/\d{3}/,(e,t)=>{e.milliseconds=t}],h:[Hn,(e,t)=>{e.hours=t}],m:[Hn,(e,t)=>{e.minutes=t}],s:[Hn,(e,t)=>{e.seconds=t}],a:[Wo,(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=60*+n[1]+parseInt(n[2],10);e.timezoneOffset=n[0]==="+"?r:-r}}]};function jv(e,t){return(Cn(e)&&e||[un(e)&&e||"YYYY-MM-DD"]).map(n=>y_.reduce((r,o)=>r.replace(o,t.masks[o]||""),n))}function Nl(e){return _n(e)&&"year"in e&&"month"in e&&"day"in e}function Rv(e,t=1){const n=e.getDay()+1;return Dt(e,n>=t?t-n:-(7-(t-n)))}function $v(e,t,n){const r=Date.UTC(e,t-1,n);return Fl(new Date(0),new Date(r))}function Fl(e,t){return Math.round((t.getTime()-e.getTime())/Si)}function Nv(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function Fv(e,t=""){const n=new Date,{year:r=n.getFullYear(),month:o=n.getMonth()+1,day:i=n.getDate(),hours:a=0,minutes:l=0,seconds:s=0,milliseconds:c=0}=e;return t?Ux(`${Ke(r,4)}-${Ke(o,2)}-${Ke(i,2)}T${Ke(a,2)}:${Ke(l,2)}:${Ke(s,2)}.${Ke(c,3)}`,{timeZone:t}):new Date(r,o-1,i,a,l,s,c)}function k_(e,t,n){return`${t}-${e}-${n}`}function x_(e,t,n){const r=t%4==0&&t%100!=0||t%400==0,o=new Date(t,e-1,1),i=o.getDay()+1,a=e===2&&r?29:b_[e-1],l=n-1,s=Gx(o,{weekStartsOn:l}),c=[],u=[];for(let p=0;p<s;p++){const v=Dt(o,7*p);c.push(Zx(v,{weekStartsOn:l})),u.push(Kx(v))}return{firstDayOfWeek:n,firstDayOfMonth:o,inLeapYear:r,firstWeekday:i,numDays:a,numWeeks:s,month:e,year:t,weeknumbers:c,isoWeeknumbers:u}}function Yl(e,t=void 0){const n=new Intl.DateTimeFormat(t,{weekday:e});return function(){const r=[];for(let o=0;o<kt;o++)r.push(Fv({year:2020,month:1,day:5+o,hours:12}));return r}().map(r=>n.format(r))}function Yv(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function Bv(e,t=void 0){const n=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return Yv().map(r=>n.format(r))}function __(e,t,n){return Jt(t)?t===e:Bt(t)?t.includes(e):dr(t)?t(e,n):!(t.min!=null&&t.min>e||t.max!=null&&t.max<e||t.interval!=null&&e%t.interval!=0)}function zo(e,t,n){const r=[],[o,i,a]=t;for(let l=o;l<=i;l++)(n==null||__(l,n,e))&&r.push({value:l,label:Ke(l,a)});return r}function Vv(e,t,n){return jv(t,n).map(r=>{if(typeof r!="string")throw new Error("Invalid mask");let o=e;if(o.length>1e3)return!1;let i=!0;const a={};if(r.replace(Ov,c=>{if(Qe[c]){const u=Qe[c],p=o.search(u[0]);~p?o.replace(u[0],v=>(u[1](a,v,n),o=o.substr(p+v.length),v)):i=!1}return Qe[c]?"":c.slice(1,c.length-1)}),!i)return!1;const l=new Date;let s;return a.hours!=null&&(a.isPm===!0&&+a.hours!=12?a.hours=+a.hours+12:a.isPm===!1&&+a.hours==12&&(a.hours=0)),a.timezoneOffset!=null?(a.minutes=+(a.minutes||0)-+a.timezoneOffset,s=new Date(Date.UTC(a.year||l.getFullYear(),a.month||0,a.day||1,a.hours||0,a.minutes||0,a.seconds||0,a.milliseconds||0))):s=n.getDateFromParts({year:a.year||l.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}),s}).find(r=>r)||new Date(e)}Qe.DD=Qe.D,Qe.dd=Qe.d,Qe.WWWW=Qe.WWW=Qe.WW=Qe.W,Qe.MM=Qe.M,Qe.mm=Qe.m,Qe.hh=Qe.H=Qe.HH=Qe.h,Qe.ss=Qe.s,Qe.A=Qe.a,Qe.ZZZZ=Qe.ZZZ=Qe.ZZ=Qe.Z;let C_=0;class Uv{constructor(t,n,r){ke(this,"key",""),ke(this,"hashcode",""),ke(this,"highlight",null),ke(this,"content",null),ke(this,"dot",null),ke(this,"bar",null),ke(this,"event",null),ke(this,"popover",null),ke(this,"customData",null),ke(this,"ranges"),ke(this,"hasRanges",!1),ke(this,"order",0),ke(this,"pinPage",!1),ke(this,"maxRepeatSpan",0),ke(this,"locale");const{dates:o}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},t);this.key||(this.key=++C_),this.locale=r,n.normalizeGlyphs(this),this.ranges=r.ranges(o??[]),this.hasRanges=!!Cn(this.ranges),this.maxRepeatSpan=this.ranges.filter(i=>i.hasRepeat).map(i=>i.daySpan).reduce((i,a)=>Math.max(i,a),0)}intersectsRange({start:t,end:n}){if(t==null||n==null)return!1;const r=this.ranges.filter(a=>!a.hasRepeat);for(const a of r)if(a.intersectsDayRange(t.dayIndex,n.dayIndex))return!0;const o=this.ranges.filter(a=>a.hasRepeat);if(!o.length)return!1;let i=t;for(this.maxRepeatSpan>1&&(i=this.locale.getDateParts(Dt(i.date,-this.maxRepeatSpan)));i.dayIndex<=n.dayIndex;){for(const a of o)if(a.startsOnDay(i))return!0;i=this.locale.getDateParts(Dt(i.date,1))}return!1}}function Bl(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function Ho(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function Wv(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function zv(e){const{visibility:t}=e,n=t==="click",r=t==="hover",o=t==="hover-focus",i=t==="focus";e.autoHide=!n;let a=!1,l=!1;const s=g=>{n&&(Wv({...e,target:e.target||g.currentTarget}),g.stopPropagation())},c=g=>{a||(a=!0,(r||o)&&Bl({...e,target:e.target||g.currentTarget}))},u=()=>{a&&(a=!1,(r||o&&!l)&&Ho(e))},p=g=>{l||(l=!0,(i||o)&&Bl({...e,target:e.target||g.currentTarget}))},v=g=>{l&&!mi(g.currentTarget,g.relatedTarget)&&(l=!1,(i||o&&!a)&&Ho(e))},m={};switch(e.visibility){case"click":m.click=s;break;case"hover":m.mousemove=c,m.mouseleave=u;break;case"focus":m.focusin=p,m.focusout=v;break;case"hover-focus":m.mousemove=c,m.mouseleave=u,m.focusin=p,m.focusout=v}return m}const Hv=e=>{const t=gi(e);if(t==null)return;const n=t.popoverHandlers;!n||!n.length||(n.forEach(r=>r()),delete t.popoverHandlers)},Gv=(e,t)=>{const n=gi(e);if(n==null)return;const r=[],o=zv(t);Object.entries(o).forEach(([i,a])=>{r.push(Wn(n,i,a))}),n.popoverHandlers=r},qv={mounted(e,t){const{value:n}=t;n&&Gv(e,n)},updated(e,t){const{oldValue:n,value:r}=t,o=n==null?void 0:n.visibility,i=r==null?void 0:r.visibility;o!==i&&(o&&(Hv(e),i||Ho(n)),i&&Gv(e,r))},unmounted(e){Hv(e)}},Di={};function Zv(){return typeof window<"u"}function S_(e){const t=pe(!1),n=y(()=>t.value?"dark":"light");let r,o;function i(v){t.value=v.matches}function a(){(function(v){return Zv()&&v in window})("matchMedia")&&(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",i),t.value=r.matches)}function l(){const{selector:v=":root",darkClass:m="dark"}=e.value,g=document.querySelector(v);t.value=g.classList.contains(m)}function s(){u();const v=typeof e.value;v==="string"&&e.value.toLowerCase()==="system"?a():v==="object"?function(m){const{selector:g=":root",darkClass:x="dark"}=m;if(Zv()&&g&&x){const _=document.querySelector(g);_&&(o=new MutationObserver(l),o.observe(_,{attributes:!0,attributeFilter:["class"]}),t.value=_.classList.contains(x))}}(e.value):t.value=!!e.value}const c=Re(()=>e.value,()=>s(),{immediate:!0});function u(){r&&(r.removeEventListener("change",i),r=void 0),o&&(o.disconnect(),o=void 0)}function p(){u(),c()}return Tr(()=>p()),{isDark:t,displayMode:n,cleanup:p}}const D_=["base","start","end","startEnd"],T_=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],A_={base:{},start:{},end:{}};function Vl(e,t,n=A_){let r=e,o={};t===!0||un(t)?(r=un(t)?t:r,o={...n}):_n(t)&&(o=av(t,D_)?{...t}:{base:{...t},start:{...t},end:{...t}});const i=Vo(o,{start:o.startEnd,end:o.startEnd},n);return Object.entries(i).forEach(([a,l])=>{let s=r;l===!0||un(l)?(s=un(l)?l:s,i[a]={color:s}):_n(l)&&(av(l,T_)?i[a]={...l}:i[a]={}),Vo(i[a],{color:s})}),i}class E_{constructor(){ke(this,"type","highlight")}normalizeConfig(t,n){return Vl(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},o){const{key:i,highlight:a}=t;if(!a)return;const{highlights:l}=o,{base:s,start:c,end:u}=a;n&&r?l.push({...c,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-bg-${c.fillMode}`,c.class],contentClass:[`vc-attr vc-highlight-content-${c.fillMode} vc-${c.color}`,c.contentClass]}):n?(l.push({...s,key:`${i}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${s.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${s.fillMode}`,s.class]}),l.push({...c,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-bg-${c.fillMode}`,c.class],contentClass:[`vc-attr vc-highlight-content-${c.fillMode} vc-${c.color}`,c.contentClass]})):r?(l.push({...s,key:`${i}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${s.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${s.fillMode}`,s.class]}),l.push({...u,key:i,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]})):l.push({...s,key:`${i}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${s.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${s.fillMode}`,s.class],contentClass:[`vc-attr vc-highlight-content-${s.fillMode} vc-${s.color}`,s.contentClass]})}}class Ul{constructor(t,n){ke(this,"type",""),ke(this,"collectionType",""),this.type=t,this.collectionType=n}normalizeConfig(t,n){return Vl(t,n)}prepareRender(t){t[this.collectionType]=[]}render({data:t,onStart:n,onEnd:r},o){const{key:i}=t,a=t[this.type];if(!i||!a)return;const l=o[this.collectionType],{base:s,start:c,end:u}=a;n?l.push({...c,key:i,class:[`vc-${this.type} vc-${this.type}-start vc-${c.color} vc-attr`,c.class]}):r?l.push({...u,key:i,class:[`vc-${this.type} vc-${this.type}-end vc-${u.color} vc-attr`,u.class]}):l.push({...s,key:i,class:[`vc-${this.type} vc-${this.type}-base vc-${s.color} vc-attr`,s.class]})}}class P_ extends Ul{constructor(){super("content","content")}normalizeConfig(t,n){return Vl("base",n)}}class O_ extends Ul{constructor(){super("dot","dots")}}class M_ extends Ul{constructor(){super("bar","bars")}}class I_{constructor(t){ke(this,"color"),ke(this,"renderers",[new P_,new E_,new O_,new M_]),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 Xv=Symbol("__vc_base_context__"),Kv={color:{type:String,default:()=>zn("color")},isDark:{type:[Boolean,String,Object],default:()=>zn("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function Jv(e){const t=y(()=>e.color??""),n=y(()=>e.isDark??!1),{displayMode:r}=S_(n),o=y(()=>new I_(t.value)),i=y(()=>{if(e.locale instanceof Ci)return e.locale;const v=_n(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new Ci(v,e.timezone)}),a=y(()=>i.value.masks),l=y(()=>e.minDate),s=y(()=>e.maxDate),c=y(()=>{const v=e.disabledDates?[...e.disabledDates]:[];return l.value!=null&&v.push({start:null,end:Dt(i.value.toDate(l.value),-1)}),s.value!=null&&v.push({start:Dt(i.value.toDate(s.value),1),end:null}),i.value.ranges(v)}),u=y(()=>new Uv({key:"disabled",dates:c.value,order:100},o.value,i.value)),p={color:t,isDark:n,displayMode:r,theme:o,locale:i,masks:a,minDate:l,maxDate:s,disabledDates:c,disabledAttribute:u};return qt(Xv,p),p}function Qv(e){return`__vc_slot_${e}__`}function ef(e,t={}){Object.keys(e).forEach(n=>{qt(Qv(t[n]??n),e[n])})}function tf(e){return ae(Qv(e),null)}const L_={...Kv,view:{type:String,default:"monthly",validator:e=>["daily","weekly","monthly"].includes(e)},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>zn("titlePosition")},navVisibility:{type:String,default:()=>zn("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},nf=Symbol("__vc_calendar_context__");function j_(e,{slots:t,emit:n}){const r=pe(null),o=pe(null),i=pe(new Date().getDate()),a=pe(!1),l=pe(Symbol()),s=pe(Symbol()),c=pe(e.view),u=pe([]),p=pe("");let v=null,m=null;ef(t);const{theme:g,color:x,displayMode:_,locale:w,masks:k,minDate:A,maxDate:M,disabledAttribute:I,disabledDates:N}=function($){return ae(Xv,()=>Jv($),!0)}(e),S=y(()=>e.rows*e.columns),F=y(()=>e.step||S.value),U=y(()=>rv(u.value)??null),B=y(()=>Vr(u.value)??null),Z=y(()=>e.minPage||(A.value?ue(A.value):null)),X=y(()=>e.maxPage||(M.value?ue(M.value):null)),Y=y(()=>e.navVisibility),L=y(()=>!!e.showWeeknumbers),z=y(()=>!!e.showIsoWeeknumbers),J=y(()=>c.value==="monthly"),te=y(()=>c.value==="weekly"),se=y(()=>c.value==="daily"),re=($,W,K=c.value)=>kv($,W,K,w.value),ue=$=>wv($,c.value,w.value),le=$=>{$.isFocusable=$.inMonth&&$.day===i.value},_e=($,W)=>{for(const K of $)for(const ne of K.days)if(W(ne)===!1)return},$e=y(()=>u.value.reduce(($,W)=>($.push(...W.viewDays),$),[])),ce=y(()=>{const $=[];return(e.attributes||[]).forEach((W,K)=>{!W||!W.dates||$.push(new Uv({...W,order:W.order||0},g.value,w.value))}),I.value&&$.push(I.value),$}),ve=y(()=>Cn(ce.value)),ye=y(()=>{const $=new t_;return ce.value.forEach(W=>{W.ranges.forEach(K=>{$.render(W,K,$e.value)})}),$}),Me=y(()=>$e.value.reduce(($,W)=>($[W.dayIndex]={day:W,cells:[]},$[W.dayIndex].cells.push(...ye.value.getCells(W)),$),{})),Oe=($,W)=>{const K=e.showWeeknumbers||e.showIsoWeeknumbers;return K==null?"":Ww(K)?K?"left":"":K.startsWith("right")?W>1?"right":K:$>1?"left":K},ze=()=>{if(dn(U.value))return U.value;const $=(()=>{var W,K;if(!ve.value)return null;const ne=ce.value.find(me=>me.pinPage)||ce.value[0];if(!ne||!ne.hasRanges)return null;const[De]=ne.ranges,Se=((W=De.start)==null?void 0:W.date)||((K=De.end)==null?void 0:K.date);return Se?ue(Se):null})();return dn($)?$:ue(new Date)},Be=($,W={})=>{const{view:K=c.value,position:ne=1,force:De}=W,Se=ne>0?1-ne:-(S.value+ne);let me=re($,Se,K),be=re(me,S.value-1,K);return De||(jl(me,Z.value)?me=Z.value:_i(be,X.value)&&(me=re(X.value,1-S.value)),be=re(me,S.value-1)),{fromPage:me,toPage:be}},Te=($={})=>new Promise((W,K)=>{const{position:ne=1,force:De=!1,transition:Se}=$,me=dn($.page)?$.page:ze(),{fromPage:be}=Be(me,{position:ne,force:De}),Ae=[];for(let Ie=0;Ie<S.value;Ie++){const Ee=re(be,Ie),Ze=Ie+1,et=Math.ceil(Ze/e.columns),mt=e.rows-et+1,En=Ze%e.columns||e.columns,ct=e.columns-En+1,pn=Oe(En,ct);Ae.push(w.value.getPage({...Ee,view:c.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:Ze,row:et,rowFromEnd:mt,column:En,columnFromEnd:ct,showWeeknumbers:L.value,showIsoWeeknumbers:z.value,weeknumberPosition:pn}))}p.value=((Ie,Ee,Ze="")=>{if(Ze==="none"||Ze==="fade")return Ze;if((Ie==null?void 0:Ie.view)!==(Ee==null?void 0:Ee.view))return"fade";const et=_i(Ee,Ie),mt=jl(Ee,Ie);return et||mt?Ze==="slide-v"?mt?"slide-down":"slide-up":mt?"slide-right":"slide-left":"fade"})(u.value[0],Ae[0],Se),u.value=Ae,p.value&&p.value!=="none"?v={resolve:W,reject:K}:W(!0)}),j=$=>{const W=U.value??ue(new Date);return re(W,$)},V=($,W={})=>{const K=dn($)?$:ue($);return Object.assign(W,Be(K,{...W,force:!0})),function(ne,De,Se,me){if(!dn(ne)||!dn(De))return[];const be=[];for(;!_i(ne,De);)be.push(ne),ne=kv(ne,1,Se,me);return be}(W.fromPage,W.toPage,c.value,w.value).map(ne=>function(De,Se,me){return!!De&&!jl(De,Se)&&!_i(De,me)}(ne,Z.value,X.value)).some(ne=>ne)},Q=($,W={})=>V(j($),W),ie=y(()=>Q(-F.value)),d=y(()=>Q(F.value)),f=async($,W={})=>!(!W.force&&!V($,W))&&(W.fromPage&&!function(K,ne){return!(!K&&ne||K&&!ne)&&(!K&&!ne||K.year===ne.year&&K.month===ne.month&&K.week===ne.week&&K.day===ne.day)}(W.fromPage,U.value)&&(Ho({id:l.value,hideDelay:0}),W.view&&(((K,ne=10)=>{Di[K]=Date.now()+ne})("view",10),c.value=W.view),await Te({...W,page:W.fromPage,position:1,force:!0}),n("did-move",u.value)),!0),b=($,W={})=>f(j($),W),D=()=>b(-F.value),P=()=>b(F.value),E=$=>{const W=J.value?".in-month":"",K=`.id-${w.value.getDayId($)}${W}`,ne=`${K}.vc-focusable, ${K} .vc-focusable`,De=r.value;if(De){const Se=De.querySelector(ne);if(Se)return Se.focus(),!0}return!1},G=async($,W={})=>!!E($)||(await f($,W),E($)),T=($,W)=>{n("daykeydown",$,W);const K=$.noonDate;let ne=null;switch(W.key){case"ArrowLeft":ne=Dt(K,-1);break;case"ArrowRight":ne=Dt(K,1);break;case"ArrowUp":ne=Dt(K,-7);break;case"ArrowDown":ne=Dt(K,7);break;case"Home":ne=Dt(K,1-$.weekdayPosition);break;case"End":ne=Dt(K,$.weekdayPositionFromEnd);break;case"PageUp":ne=W.altKey?yv(K,-1):xi(K,-1);break;case"PageDown":ne=W.altKey?yv(K,1):xi(K,1)}ne&&(W.preventDefault(),G(ne).catch())};Te({page:e.initialPage,position:e.initialPagePosition}),Tt(()=>{!e.disablePageSwipe&&r.value&&(m=(($,W,{maxSwipeTime:K,minHorizontalSwipeDistance:ne,maxVerticalSwipeDistance:De})=>{if(!$||!$.addEventListener||!dr(W))return null;let Se=0,me=0,be=null,Ae=!1;function Ie(Ze){const et=Ze.changedTouches[0];Se=et.screenX,me=et.screenY,be=new Date().getTime(),Ae=!0}function Ee(Ze){if(!Ae||!be)return;Ae=!1;const et=Ze.changedTouches[0],mt=et.screenX-Se,En=et.screenY-me;if(new Date().getTime()-be<K&&Math.abs(mt)>=ne&&Math.abs(En)<=De){const ct={toLeft:!1,toRight:!1};mt<0?ct.toLeft=!0:ct.toRight=!0,W(ct)}}return Wn($,"touchstart",Ie,{passive:!0}),Wn($,"touchend",Ee,{passive:!0}),()=>{Un($,"touchstart",Ie),Un($,"touchend",Ee)}})(r.value,({toLeft:$=!1,toRight:W=!1})=>{$?P():W&&D()},zn("touch")))}),Tr(()=>{u.value=[],m&&m()}),Re(()=>w.value,()=>{Te()}),Re(()=>S.value,()=>Te()),Re(()=>e.view,()=>c.value=e.view),Re(()=>c.value,()=>{(($,W)=>{if($ in Di){const K=Di[$];if(Date.now()<K)return;delete Di[$]}W()})("view",()=>{Te()}),n("update:view",c.value)}),Re(()=>i.value,()=>{_e(u.value,$=>le($))}),Yu(()=>{n("update:pages",u.value),_e(u.value,$=>{(W=>{!I.value||!ye.value||(W.isDisabled=ye.value.cellExists(I.value.key,W.dayIndex))})($),le($)})});const q={emit:n,containerRef:r,focusedDay:o,inTransition:a,navPopoverId:l,dayPopoverId:s,view:c,pages:u,transitionName:p,theme:g,color:x,displayMode:_,locale:w,masks:k,attributes:ce,disabledAttribute:I,disabledDates:N,attributeContext:ye,days:$e,dayCells:Me,count:S,step:F,firstPage:U,lastPage:B,canMovePrev:ie,canMoveNext:d,minPage:Z,maxPage:X,isMonthly:J,isWeekly:te,isDaily:se,navVisibility:Y,showWeeknumbers:L,showIsoWeeknumbers:z,getDateAddress:ue,canMove:V,canMoveBy:Q,move:f,moveBy:b,movePrev:D,moveNext:P,onTransitionBeforeEnter:()=>{a.value=!0,n("transition-start")},onTransitionAfterEnter:()=>{a.value=!1,n("transition-end"),v&&(v.resolve(!0),v=null)},tryFocusDate:E,focusDate:G,onKeydown:$=>{const W=o.value;W!=null&&T(W,$)},onDayKeydown:T,onDayClick:($,W)=>{i.value=$.day,n("dayclick",$,W)},onDayMouseenter:($,W)=>{n("daymouseenter",$,W)},onDayMouseleave:($,W)=>{n("daymouseleave",$,W)},onDayFocusin:($,W)=>{i.value=$.day,o.value=$,$.isFocused=!0,n("dayfocusin",$,W)},onDayFocusout:($,W)=>{o.value=null,$.isFocused=!1,n("dayfocusout",$,W)},onWeeknumberClick:($,W)=>{n("weeknumberclick",$,W)}};return qt(nf,q),q}function mr(){const e=ae(nf);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const R_=vt({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 o=null,i=null;const a=Mt({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 l(S){S&&(a.direction=S.split("-")[0])}function s({placement:S,options:F}){l(S||(F==null?void 0:F.placement))}const c=y(()=>({placement:a.placement,strategy:a.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:s},...a.modifiers||[]],onFirstUpdate:s})),u=y(()=>{const S=a.direction==="left"||a.direction==="right";let F="";if(a.placement){const U=a.placement.split("-");U.length>1&&(F=U[1])}return["start","top","left"].includes(F)?S?"top":"left":["end","bottom","right"].includes(F)?S?"bottom":"right":S?"middle":"center"});function p(){i&&(i.destroy(),i=null)}function v(){Rn(()=>{const S=gi(a.target);!S||!r.value||(i&&i.state.elements.reference!==S&&p(),i?i.update():i=Ym(S,r.value,c.value))})}function m(S,F){clearTimeout(n),S>0?n=setTimeout(F,S):F()}function g(S){return!(!S||!i)&&gi(S)===i.state.elements.reference}async function x(S={}){a.force||(S.force&&(a.force=!0),m(S.showDelay??e.showDelay,()=>{a.isVisible&&(a.force=!1),function(F){Object.assign(a,iv(F,"force"))}({...S,isVisible:!0}),v()}))}function _(S={}){i&&(S.target&&!g(S.target)||a.force||(S.force&&(a.force=!0),m(S.hideDelay??e.hideDelay,()=>{a.isVisible||(a.force=!1),a.isVisible=!1})))}function w(S){if(!i)return;const F=i.state.elements.reference;if(!r.value||!F)return;const U=S.target;mi(r.value,U)||mi(F,U)||_({force:!0})}function k(S){(S.key==="Esc"||S.key==="Escape")&&_()}function A({detail:S}){!S.id||S.id!==e.id||x(S)}function M({detail:S}){!S.id||S.id!==e.id||_(S)}function I({detail:S}){!S.id||S.id!==e.id||function(F={}){F.target!=null&&(a.isVisible&&g(F.target)?_(F):x(F))}(S)}function N(){o!=null&&(o.disconnect(),o=null)}return Re(()=>r.value,S=>{N(),S&&(o=new ResizeObserver(()=>{i&&i.update()}),o.observe(S))}),Re(()=>a.placement,l,{immediate:!0}),Tt(()=>{Wn(document,"keydown",k),Wn(document,"click",w),Wn(document,"show-popover",A),Wn(document,"hide-popover",M),Wn(document,"toggle-popover",I)}),Tr(()=>{p(),N(),Un(document,"keydown",k),Un(document,"click",w),Un(document,"show-popover",A),Un(document,"hide-popover",M),Un(document,"toggle-popover",I)}),{...sg(a),popoverRef:r,alignment:u,hide:_,setupPopper:v,beforeEnter:function(S){t("before-show",S)},afterEnter:function(S){a.force=!1,t("after-show",S)},beforeLeave:function(S){t("before-hide",S)},afterLeave:function(S){a.force=!1,p(),t("after-hide",S)},onClick:function(S){S.stopPropagation()},onMouseOver:function(){a.isHovered=!0,a.isInteractive&&["hover","hover-focus"].includes(a.visibility)&&x()},onMouseLeave:function(){if(a.isHovered=!1,!i)return;const S=i.state.elements.reference;a.autoHide&&!a.isFocused&&(!S||S!==document.activeElement)&&["hover","hover-focus"].includes(a.visibility)&&_()},onFocusIn:function(){a.isFocused=!0,a.isInteractive&&["focus","hover-focus"].includes(a.visibility)&&x()},onFocusOut:function(S){["focus","hover-focus"].includes(a.visibility)&&(!S.relatedTarget||!mi(r.value,S.relatedTarget))&&(a.isFocused=!1,!a.isHovered&&a.autoHide&&_())}}}}),Gn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Wl=Gn(R_,[["render",function(e,t,n,r,o,i){return C(),R("div",{class:we(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...a)=>e.onClick&&e.onClick(...a)),onMouseover:t[1]||(t[1]=(...a)=>e.onMouseOver&&e.onMouseOver(...a)),onMouseleave:t[2]||(t[2]=(...a)=>e.onMouseLeave&&e.onMouseLeave(...a)),onFocusin:t[3]||(t[3]=(...a)=>e.onFocusIn&&e.onFocusIn(...a)),onFocusout:t[4]||(t[4]=(...a)=>e.onFocusOut&&e.onFocusOut(...a))},[ee(Ka,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:he(()=>[e.isVisible?(C(),R("div",Zt({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[ot(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[xe(H(e.data),1)]),h("span",{class:we(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):oe("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}]]),$_={class:"vc-day-popover-row"},N_={key:0,class:"vc-day-popover-row-indicator"},F_={class:"vc-day-popover-row-label"},Y_=vt({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,n=y(()=>{const{content:r,highlight:o,dot:i,bar:a,popover:l}=t.attribute;return l&&l.hideIndicator?null:r?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${r.base.color}`}:o?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${o.base.color}`}:i?{class:`vc-dot vc-attr vc-${i.base.color}`}:a?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${a.base.color}`}:null});return(r,o)=>(C(),R("div",$_,[O(n)?(C(),R("div",N_,[h("span",{class:we(O(n).class)},null,2)])):oe("",!0),h("div",F_,[ot(r.$slots,"default",{},()=>[xe(H(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),Vt=vt({inheritAttrs:!1,__name:"CalendarSlot",props:{name:null},setup(e){const t=tf(e.name);return(n,r)=>O(t)?(C(),fe(Ar(O(t)),vo(Zt({key:0},n.$attrs)),null,16)):ot(n.$slots,"default",{key:1})}}),B_={class:"vc-day-popover-container"},V_={key:0,class:"vc-day-popover-header"},U_=vt({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:n,color:r,masks:o,locale:i}=mr();function a(s,c){return i.value.formatDate(s,c)}function l(s){return i.value.formatDate(s.date,o.value.dayPopover)}return(s,c)=>(C(),fe(Wl,{id:O(t),class:we([`vc-${O(r)}`,`vc-${O(n)}`])},{default:he(({data:{day:u,attributes:p},hide:v})=>[ee(Vt,{name:"day-popover",day:u,"day-title":l(u),attributes:p,format:a,masks:O(o),hide:v},{default:he(()=>[h("div",B_,[O(o).dayPopover?(C(),R("div",V_,H(l(u)),1)):oe("",!0),(C(!0),R(ge,null,je(p,m=>(C(),fe(Y_,{key:m.key,attribute:m},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),W_={},z_={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},H_=[h("polyline",{points:"9 18 15 12 9 6"},null,-1)],G_=Gn(W_,[["render",function(e,t){return C(),R("svg",z_,H_)}]]),q_={},Z_={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},X_=[h("polyline",{points:"15 18 9 12 15 6"},null,-1)],K_=Gn(q_,[["render",function(e,t){return C(),R("svg",Z_,X_)}]]),J_={},Q_={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},eC=[h("polyline",{points:"6 9 12 15 18 9"},null,-1)],tC=Gn(J_,[["render",function(e,t){return C(),R("svg",Q_,eC)}]]),nC={},rC={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},oC=[h("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)],aC=Gn(nC,[["render",function(e,t){return C(),R("svg",rC,oC)}]]),iC=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:tC,IconChevronLeft:K_,IconChevronRight:G_,IconClock:aC},Symbol.toStringTag,{value:"Module"})),qr=vt({__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=y(()=>t.width||t.size),r=y(()=>t.height||t.size),o=y(()=>iC[`Icon${t.name}`]);return(i,a)=>(C(),fe(Ar(O(o)),{width:O(n),height:O(r),class:"vc-base-icon"},null,8,["width","height"]))}}),sC=["disabled"],lC={key:1,class:"vc-title-wrapper"},cC={type:"button",class:"vc-title"},uC=["disabled"],rf=vt({__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:o,movePrev:i,canMoveNext:a,moveNext:l}=mr(),s=y(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),c=y(()=>{const{page:x}=t;return{id:n.value,visibility:r.value,placement:s.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:x},isInteractive:!0}}),u=y(()=>t.page.titlePosition.includes("left")),p=y(()=>t.page.titlePosition.includes("right")),v=y(()=>t.layout?t.layout:u.value?"tu-pn":p.value?"pn-tu":"p-tu-n;"),m=y(()=>({prev:v.value.includes("p")&&!t.hideArrows,title:v.value.includes("t")&&!t.hideTitle,next:v.value.includes("n")&&!t.hideArrows})),g=y(()=>({gridTemplateColumns:v.value.split("").map(x=>{switch(x){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(x,_)=>(C(),R("div",{class:we(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:pt(O(g))},[O(m).prev?(C(),R("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!O(o),onClick:_[0]||(_[0]=(...w)=>O(i)&&O(i)(...w)),onKeydown:_[1]||(_[1]=Mo((...w)=>O(i)&&O(i)(...w),["space","enter"]))},[ee(Vt,{name:"header-prev-button",disabled:!O(o)},{default:he(()=>[ee(qr,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,sC)):oe("",!0),O(m).title?(C(),R("div",lC,[ee(Vt,{name:"header-title-wrapper"},{default:he(()=>[Le((C(),R("button",cC,[ee(Vt,{name:"header-title",title:e.page.title},{default:he(()=>[h("span",null,H(e.page.title),1)]),_:1},8,["title"])])),[[O(qv),O(c)]])]),_:1})])):oe("",!0),O(m).next?(C(),R("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!O(a),onClick:_[2]||(_[2]=(...w)=>O(l)&&O(l)(...w)),onKeydown:_[3]||(_[3]=Mo((...w)=>O(l)&&O(l)(...w),["space","enter"]))},[ee(Vt,{name:"header-next-button",disabled:!O(a)},{default:he(()=>[ee(qr,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,uC)):oe("",!0)],6))}}),of=Symbol("__vc_page_context__");function af(){const e=ae(of);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const dC={class:"vc-nav-header"},pC=["disabled"],vC=["disabled"],fC={class:"vc-nav-items"},hC=["data-id","aria-label","disabled","onClick","onKeydown"],gC=vt({__name:"CalendarNav",setup(e){const{masks:t,move:n}=mr(),{page:r,getMonthItems:o,getYearItems:i}=af(),a=pe(!0),l=pe(r.value.year),s=pe(p(r.value.year)),c=pe(null);function u(){setTimeout(()=>{if(c.value==null)return;const te=c.value.querySelector(".vc-nav-item:not(:disabled)");te&&te.focus()},10)}function p(te){return Math.floor(te/12)}function v(){a.value=!a.value}function m(te){return 12*te}function g(te){return 12*(te+1)-1}function x(){X.value&&(a.value&&l.value--,s.value--)}function _(){Y.value&&(a.value&&l.value++,s.value++)}const w=y(()=>o(l.value,t.value.navMonths).map(te=>({...te,click:()=>n({month:te.month,year:te.year},{position:r.value.position})}))),k=y(()=>o(l.value-1,t.value.navMonths)),A=y(()=>k.value.some(te=>!te.isDisabled)),M=y(()=>o(l.value+1,t.value.navMonths)),I=y(()=>M.value.some(te=>!te.isDisabled)),N=y(()=>i(m(s.value),g(s.value)).map(te=>({...te,click:()=>{l.value=te.year,a.value=!0,u()}}))),S=y(()=>i(m(s.value-1),g(s.value-1))),F=y(()=>S.value.some(te=>!te.isDisabled)),U=y(()=>i(m(s.value+1),g(s.value+1))),B=y(()=>U.value.some(te=>!te.isDisabled)),Z=y(()=>a.value?w.value:N.value),X=y(()=>a.value?A.value:F.value),Y=y(()=>a.value?I.value:B.value),L=y(()=>rv(N.value.map(te=>te.year))),z=y(()=>Vr(N.value.map(te=>te.year))),J=y(()=>a.value?l.value:`${L.value} - ${z.value}`);return Yu(()=>{l.value=r.value.year,u()}),Re(()=>l.value,te=>s.value=p(te)),Tt(()=>u()),(te,se)=>(C(),R("div",{class:"vc-nav-container",ref_key:"navContainer",ref:c},[h("div",dC,[h("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!O(X),onClick:x,onKeydown:se[0]||(se[0]=re=>O(bi)(re,x))},[ee(Vt,{name:"nav-prev-button",move:x,disabled:!O(X)},{default:he(()=>[ee(qr,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,pC),h("button",{type:"button",class:"vc-nav-title vc-focus",onClick:v,onKeydown:se[1]||(se[1]=re=>O(bi)(re,v))},H(O(J)),33),h("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!O(Y),onClick:_,onKeydown:se[2]||(se[2]=re=>O(bi)(re,_))},[ee(Vt,{name:"nav-next-button",move:_,disabled:!O(Y)},{default:he(()=>[ee(qr,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,vC)]),h("div",fC,[(C(!0),R(ge,null,je(O(Z),re=>(C(),R("button",{key:re.label,type:"button","data-id":re.id,"aria-label":re.ariaLabel,class:we(["vc-nav-item vc-focus",[re.isActive?"is-active":re.isCurrent?"is-current":""]]),disabled:re.isDisabled,onClick:re.click,onKeydown:ue=>O(bi)(ue,re.click)},H(re.label),43,hC))),128))])],512))}}),sf=vt({__name:"CalendarPageProvider",props:{page:null},setup:e=>(function(t){const{locale:n,getDateAddress:r,canMove:o}=mr();qt(of,{page:t,getMonthItems:function(a,l){const{month:s,year:c}=r(new Date);return Yv().map((u,p)=>{const v=p+1;return{month:v,year:a,id:Qx(v,a),label:n.value.formatDate(u,l),ariaLabel:n.value.formatDate(u,"MMMM"),isActive:v===t.value.month&&a===t.value.year,isCurrent:v===s&&a===c,isDisabled:!o({month:v,year:a},{position:t.value.position})}})},getYearItems:function(a,l){const{year:s}=r(new Date),{position:c}=t.value,u=[];for(let p=a;p<=l;p+=1){const v=[...Array(12).keys()].some(m=>o({month:m+1,year:p},{position:c}));u.push({year:p,id:p.toString(),label:p.toString(),ariaLabel:p.toString(),isActive:p===t.value.year,isCurrent:p===s,isDisabled:!v})}return u}})}(bo(e,"page")),(t,n)=>ot(t.$slots,"default"))}),mC=vt({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:n,displayMode:r}=mr();return(o,i)=>(C(),fe(Wl,{id:O(t),class:we(["vc-nav-popover-container",`vc-${O(n)}`,`vc-${O(r)}`])},{default:he(({data:a})=>[ee(sf,{page:a.page},{default:he(()=>[ee(Vt,{name:"nav"},{default:he(()=>[ee(gC)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),bC=vt({directives:{popover:qv},components:{CalendarSlot:Vt},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:n,attributeContext:r,dayPopoverId:o,onDayClick:i,onDayMouseenter:a,onDayMouseleave:l,onDayFocusin:s,onDayFocusout:c,onDayKeydown:u}=mr(),p=y(()=>e.day),v=y(()=>r.value.getCells(p.value)),m=y(()=>v.value.map(L=>L.data)),g=y(()=>({...p.value,attributes:m.value,attributeCells:v.value})),x=y(()=>{const L={...n.value.prepareRender({}),popovers:[]};return v.value.forEach(z=>{n.value.render(z,L),function({data:J},{popovers:te}){const{key:se,customData:re,popover:ue}=J;if(!ue)return;const le=Wp({key:se,customData:re,attribute:J},{...ue},{visibility:ue.label?"hover":"click",placement:"bottom",isInteractive:!ue.label});te.splice(0,0,le)}(z,L)}),L}),_=y(()=>x.value.highlights),w=y(()=>!!Cn(_.value)),k=y(()=>x.value.content),A=y(()=>x.value.dots),M=y(()=>!!Cn(A.value)),I=y(()=>x.value.bars),N=y(()=>!!Cn(I.value)),S=y(()=>x.value.popovers),F=y(()=>S.value.map(L=>L.attribute)),U=tf("day-content"),B=y(()=>["vc-day",...p.value.classes,{"vc-day-box-center-center":!U},{"is-not-in-month":!e.day.inMonth}]),Z=y(()=>{let L;return L=p.value.isFocusable?"0":"-1",{class:["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":p.value.isDisabled},hr(Vr(_.value),"contentClass"),hr(Vr(k.value),"class")||""],style:{...hr(Vr(_.value),"contentStyle"),...hr(Vr(k.value),"style")},tabindex:L,"aria-label":p.value.ariaLabel,"aria-disabled":!!p.value.isDisabled,role:"button"}}),X=y(()=>({click(L){i(g.value,L)},mouseenter(L){a(g.value,L)},mouseleave(L){l(g.value,L)},focusin(L){s(g.value,L)},focusout(L){c(g.value,L)},keydown(L){u(g.value,L)}})),Y=y(()=>Cn(S.value)?Wp({id:o.value,data:{day:p,attributes:F.value}},...S.value):null);return{attributes:m,attributeCells:v,bars:I,dayClasses:B,dayContentProps:Z,dayContentEvents:X,dayPopover:Y,glyphs:x,dots:A,hasDots:M,hasBars:N,highlights:_,hasHighlights:w,locale:t,popovers:S}}}),yC={key:0,class:"vc-highlights vc-day-layer"},wC={key:1,class:"vc-day-layer vc-day-box-center-bottom"},kC={class:"vc-dots"},xC={key:2,class:"vc-day-layer vc-day-box-center-bottom"},_C={class:"vc-bars"},CC=Gn(bC,[["render",function(e,t,n,r,o,i){const a=yn("CalendarSlot"),l=As("directives","popover");return C(),R("div",{class:we(e.dayClasses)},[e.hasHighlights?(C(),R("div",yC,[(C(!0),R(ge,null,je(e.highlights,({key:s,wrapperClass:c,class:u,style:p})=>(C(),R("div",{key:s,class:we(c)},[h("div",{class:we(u),style:pt(p)},null,6)],2))),128))])):oe("",!0),ee(a,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:he(()=>[Le((C(),R("div",Zt(e.dayContentProps,Sg(e.dayContentEvents)),[xe(H(e.day.label),1)],16)),[[l,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(C(),R("div",wC,[h("div",kC,[(C(!0),R(ge,null,je(e.dots,({key:s,class:c,style:u})=>(C(),R("span",{key:s,class:we(c),style:pt(u)},null,6))),128))])])):oe("",!0),e.hasBars?(C(),R("div",xC,[h("div",_C,[(C(!0),R(ge,null,je(e.bars,({key:s,class:c,style:u})=>(C(),R("span",{key:s,class:we(c),style:pt(u)},null,6))),128))])])):oe("",!0)],2)}]]),SC={class:"vc-weekdays"},DC=["onClick"],TC=vt({inheritAttrs:!1,__name:"CalendarPage",setup(e){const{page:t}=af(),{onWeeknumberClick:n}=mr();return(r,o)=>(C(),R("div",{class:we(["vc-pane",`row-${O(t).row}`,`row-from-end-${O(t).rowFromEnd}`,`column-${O(t).column}`,`column-from-end-${O(t).columnFromEnd}`]),ref:"pane"},[ee(rf,{page:O(t),"is-lg":"","hide-arrows":""},null,8,["page"]),h("div",{class:we(["vc-weeks",{[`vc-show-weeknumbers-${O(t).weeknumberPosition}`]:O(t).weeknumberPosition}])},[h("div",SC,[(C(!0),R(ge,null,je(O(t).weekdays,({weekday:i,label:a},l)=>(C(),R("div",{key:l,class:we(`vc-weekday vc-weekday-${i}`)},H(a),3))),128))]),(C(!0),R(ge,null,je(O(t).viewWeeks,i=>(C(),R("div",{key:`weeknumber-${i.weeknumber}`,class:"vc-week"},[O(t).weeknumberPosition?(C(),R("div",{key:0,class:we(["vc-weeknumber",`is-${O(t).weeknumberPosition}`])},[h("span",{class:we(["vc-weeknumber-content"]),onClick:a=>O(n)(i,a)},H(i.weeknumberDisplay),9,DC)],2)):oe("",!0),(C(!0),R(ge,null,je(i.days,a=>(C(),fe(CC,{key:a.id,day:a},null,8,["day"]))),128))]))),128))],2)],2))}}),AC=vt({components:{CalendarHeader:rf,CalendarPage:TC,CalendarNavPopover:mC,CalendarDayPopover:U_,CalendarPageProvider:sf,CalendarSlot:Vt},props:L_,emit:["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],setup:(e,{emit:t,slots:n})=>j_(e,{emit:t,slots:n})}),EC={class:"vc-pane-header-wrapper"},PC=Gn(AC,[["render",function(e,t,n,r,o,i){const a=yn("CalendarHeader"),l=yn("CalendarPage"),s=yn("CalendarSlot"),c=yn("CalendarPageProvider"),u=yn("CalendarDayPopover"),p=yn("CalendarNavPopover");return C(),R(ge,null,[h("div",Zt({"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]=sr(()=>{},["prevent"])),ref:"containerRef"}),[h("div",{class:we(["vc-pane-container",{"in-transition":e.inTransition}])},[h("div",EC,[e.firstPage?(C(),fe(a,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):oe("",!0)]),ee(Ka,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:he(()=>[(C(),R("div",{key:e.pages[0].id,class:"vc-pane-layout",style:pt({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(C(!0),R(ge,null,je(e.pages,v=>(C(),fe(c,{key:v.id,page:v},{default:he(()=>[ee(s,{name:"page",page:v},{default:he(()=>[ee(l)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),ee(s,{name:"footer"})],2)],16),ee(u),ee(p)],64)}]]),lf=Symbol("__vc_date_picker_context__"),OC={...Kv,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:()=>zn("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>zn("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]};function MC(e,{emit:t,slots:n}){ef(n,{footer:"dp-footer"});const r=Jv(e),{locale:o,masks:i,disabledAttribute:a}=r,l=pe(!1),s=pe(Symbol()),c=pe(null),u=pe(null),p=pe(["",""]),v=pe(null),m=pe(null);let g,x,_=!0;const w=y(()=>e.isRange||e.modelModifiers.range===!0),k=y(()=>w.value&&c.value!=null?c.value.start:null),A=y(()=>w.value&&c.value!=null?c.value.end:null),M=y(()=>e.mode.toLowerCase()==="date"),I=y(()=>e.mode.toLowerCase()==="datetime"),N=y(()=>e.mode.toLowerCase()==="time"),S=y(()=>!!u.value),F=y(()=>{let T="date";return e.modelModifiers.number&&(T="number"),e.modelModifiers.string&&(T="string"),_e({type:T,mask:i.value.modelValue||"iso"})}),U=y(()=>function(T){return w.value?[T&&T.start?o.value.getDateParts(T.start):null,T&&T.end?o.value.getDateParts(T.end):null]:[T?o.value.getDateParts(T):null]}(u.value??c.value)),B=y(()=>N.value?e.is24hr?i.value.inputTime24hr:i.value.inputTime:I.value?e.is24hr?i.value.inputDateTime24hr:i.value.inputDateTime:i.value.input),Z=y(()=>/[Hh]/g.test(B.value)),X=y(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(B.value)),Y=y(()=>Z.value&&X.value?"dateTime":X.value?"date":Z.value?"time":void 0),L=y(()=>{var T;const q=((T=v.value)==null?void 0:T.$el.previousElementSibling)??void 0;return Vo({},e.popover,zn("datePicker.popover"),{target:q})}),z=y(()=>zv({...L.value,id:s.value})),J=y(()=>w.value?{start:p.value[0],end:p.value[1]}:p.value[0]),te=y(()=>{const T=["start","end"].map(q=>({input:Q(q),change:ie(q),keyup:d,...e.popover&&z.value}));return w.value?{start:T[0],end:T[1]}:T[0]}),se=y(()=>{if(!ye(c.value))return null;const T={key:"select-drag",...e.selectAttribute,dates:c.value,pinPage:!0},{dot:q,bar:$,highlight:W,content:K}=T;return!q&&!$&&!W&&!K&&(T.highlight=!0),T}),re=y(()=>{if(!w.value||!ye(u.value))return null;const T={key:"select-drag",...e.dragAttribute,dates:u.value},{dot:q,bar:$,highlight:W,content:K}=T;return!q&&!$&&!W&&!K&&(T.highlight={startEnd:{fillMode:"outline"}}),T}),ue=y(()=>{const T=Bt(e.attributes)?[...e.attributes]:[];return re.value?T.unshift(re.value):se.value&&T.unshift(se.value),T}),le=y(()=>_e(e.rules==="auto"?function(){const T={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},q=M.value?0:e.timeAccuracy;return[0,1].map($=>{switch(q){case 0:return{hours:T.hr[$],minutes:T.min[$],seconds:T.sec[$],milliseconds:T.ms[$]};case 1:return{minutes:T.min[$],seconds:T.sec[$],milliseconds:T.ms[$]};case 3:return{milliseconds:T.ms[$]};case 4:return{};default:return{seconds:T.sec[$],milliseconds:T.ms[$]}}})}():e.rules??{}));function _e(T){return Bt(T)?T.length===1?[T[0],T[0]]:T:[T,T]}function $e(T){return _e(T).map((q,$)=>({...q,rules:le.value[$]}))}function ce(T){return T!=null&&(Jt(T)?!isNaN(T):Ur(T)?!isNaN(T.getTime()):un(T)?T!=="":Nl(T))}function ve(T){return _n(T)&&"start"in T&&"end"in T&&ce(T.start??null)&&ce(T.end??null)}function ye(T){return ve(T)||ce(T)}function Me(T,q){if(T==null&&q==null)return!0;if(T==null||q==null)return!1;const $=Ur(T),W=Ur(q);return $&&W?T.getTime()===q.getTime():!$&&!W&&Me(T.start,q.start)&&Me(T.end,q.end)}function Oe(T,q,$,W){return ye(T)?ve(T)?D({start:o.value.toDate(T.start,{...q[0],fillDate:k.value??void 0,patch:$}),end:o.value.toDate(T.end,{...q[1],fillDate:A.value??void 0,patch:$})},W):o.value.toDateOrNull(T,{...q[0],fillDate:c.value,patch:$}):null}function ze(T,q){return ve(T)?{start:o.value.fromDate(T.start,q[0]),end:o.value.fromDate(T.end,q[1])}:w.value?null:o.value.fromDate(T,q[0])}function Be(T,q={}){return clearTimeout(g),new Promise($=>{const{debounce:W=0,...K}=q;W>0?g=window.setTimeout(()=>{$(Te(T,K))},W):$(Te(T,K))})}function Te(T,{config:q=F.value,patch:$="dateTime",clearIfEqual:W=!1,formatInput:K=!0,hidePopover:ne=!1,dragging:De=S.value,targetPriority:Se,moveToValue:me=!1}={}){let be=Oe(T,$e(q),$,Se);if(function(Ze){return!(!ye(Ze)||!a.value)&&a.value.intersectsRange(o.value.range(Ze))}(be)){if(De)return null;be=c.value,ne=!1}else be==null&&e.isRequired?be=c.value:be!=null&&Me(c.value,be)&&W&&(be=null);const Ae=De?u:c,Ie=!Me(Ae.value,be);Ae.value=be,De||(u.value=null);const Ee=ze(be,F.value);return Ie&&(_=!1,t(De?"drag":"update:modelValue",Ee),Rn(()=>_=!0)),ne&&!De&&b(),K&&j(),me&&Rn(()=>P(Se??"start")),Ee}function j(){Rn(()=>{const T=$e({type:"string",mask:B.value}),q=ze(u.value??c.value,T);w.value?p.value=[q&&q.start,q&&q.end]:p.value=[q,""]})}function V(T,q,$){p.value.splice(q==="start"?0:1,1,T),Be(w.value?{start:p.value[0],end:p.value[1]||p.value[0]}:T,{...$,config:{type:"string",mask:B.value},patch:Y.value,targetPriority:q,moveToValue:!0})}function Q(T){return q=>{e.updateOnInput&&V(q.currentTarget.value,T,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function ie(T){return q=>{V(q.currentTarget.value,T,{formatInput:!0,hidePopover:!1})}}function d(T){T.key==="Escape"&&Be(c.value,{formatInput:!0,hidePopover:!0})}function f(T){const q={patch:"date",formatInput:!0,hidePopover:!0};if(w.value){const $=!S.value;$?x={start:T.startDate,end:T.endDate}:x!=null&&(x.end=T.date),Be(x,{...q,dragging:$})}else Be(T.date,{...q,clearIfEqual:!e.isRequired})}function b(T={}){Ho({hideDelay:10,force:!0,...L.value,...T,id:s.value})}function D(T,q){const{start:$,end:W}=T;if($>W)switch(q){case"start":return{start:$,end:$};case"end":return{start:W,end:W};default:return{start:W,end:$}}return{start:$,end:W}}async function P(T,q={}){const $=c.value;if(m.value==null||!ye($))return!1;const W=T!=="end",K=W?1:-1,ne=wv(ve($)?W?$.start:$.end:$,"monthly",o.value);return m.value.move(ne,{position:K,...q})}Re(()=>e.isRange,T=>{T&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),Re(()=>w.value,()=>{Te(null,{formatInput:!0})}),Re(()=>B.value,()=>j()),Re(()=>e.modelValue,T=>{_&&Te(T,{formatInput:!0,hidePopover:!1})}),Re(()=>le.value,()=>{_n(e.rules)&&Te(e.modelValue,{formatInput:!0,hidePopover:!1})}),Re(()=>e.timezone,()=>{Te(c.value,{formatInput:!0})});const E=_e(F.value);c.value=Oe(e.modelValue??null,E,"dateTime"),Tt(()=>{Te(e.modelValue,{formatInput:!0,hidePopover:!1})}),Rn(()=>l.value=!0);const G={...r,showCalendar:l,datePickerPopoverId:s,popoverRef:v,popoverEvents:z,calendarRef:m,isRange:w,isTimeMode:N,isDateTimeMode:I,is24hr:bo(e,"is24hr"),hideTimeHeader:bo(e,"hideTimeHeader"),timeAccuracy:bo(e,"timeAccuracy"),isDragging:S,inputValue:J,inputEvents:te,dateParts:U,attributes:ue,rules:le,move:async function(T,q={}){return m.value!=null&&m.value.move(T,q)},moveBy:async function(T,q={}){return m.value!=null&&m.value.moveBy(T,q)},moveToValue:P,updateValue:Be,showPopover:function(T={}){Bl({...L.value,...T,isInteractive:!0,id:s.value})},hidePopover:b,togglePopover:function(T){Wv({...L.value,...T,isInteractive:!0,id:s.value})},onDayClick:function(T,q){f(T),t("dayclick",T,q)},onDayKeydown:function(T,q){switch(q.key){case" ":case"Enter":f(T),q.preventDefault();break;case"Escape":b()}t("daykeydown",T,q)},onDayMouseEnter:function(T,q){!S.value||x==null||(x.end=T.date,Be(D(x),{patch:"date",formatInput:!0}))},onPopoverBeforeShow:function(T){t("popover-will-show",T)},onPopoverAfterShow:function(T){t("popover-did-show",T)},onPopoverBeforeHide:function(T){u.value=null,j(),t("popover-will-hide",T)},onPopoverAfterHide:function(T){t("popover-did-hide",T)}};return qt(lf,G),G}function zl(){const e=ae(lf);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const IC=[{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"}],LC=[{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 jC(e){const t=zl(),{locale:n,isRange:r,isTimeMode:o,dateParts:i,rules:a,is24hr:l,hideTimeHeader:s,timeAccuracy:c,updateValue:u}=t;function p(X){X=Object.assign(m.value,X);let Y=null;r.value?Y={start:v.value?X:i.value[0],end:v.value?i.value[1]:X}:Y=X,u(Y,{patch:"time",targetPriority:v.value?"start":"end",moveToValue:!0})}const v=y(()=>e.position===0),m=y(()=>i.value[e.position]||{isValid:!1}),g=y(()=>Nl(m.value)),x=y(()=>!!m.value.isValid),_=y(()=>!s.value&&x.value),w=y(()=>{if(!g.value)return null;let X=n.value.toDate(m.value);return m.value.hours===24&&(X=new Date(X.getTime()-1)),X}),k=y({get:()=>m.value.hours,set(X){p({hours:X})}}),A=y({get:()=>m.value.minutes,set(X){p({minutes:X})}}),M=y({get:()=>m.value.seconds,set(X){p({seconds:X})}}),I=y({get:()=>m.value.milliseconds,set(X){p({milliseconds:X})}}),N=y({get:()=>m.value.hours<12,set(X){X=String(X).toLowerCase()=="true";let Y=k.value;X&&Y>=12?Y-=12:!X&&Y<12&&(Y+=12),p({hours:Y})}}),S=y(()=>function(X,Y){return{milliseconds:zo(X,Uo.milliseconds,Y.milliseconds),seconds:zo(X,Uo.seconds,Y.seconds),minutes:zo(X,Uo.minutes,Y.minutes),hours:zo(X,Uo.hours,Y.hours)}}(m.value,a.value[e.position])),F=y(()=>IC.filter(X=>S.value.hours.some(Y=>Y.value===X.value))),U=y(()=>LC.filter(X=>S.value.hours.some(Y=>Y.value===X.value))),B=y(()=>l.value?S.value.hours:N.value?F.value:U.value),Z=y(()=>{const X=[];return Cn(F.value)&&X.push({value:!0,label:"AM"}),Cn(U.value)&&X.push({value:!1,label:"PM"}),X});return{...t,showHeader:_,timeAccuracy:c,parts:m,isValid:x,date:w,hours:k,minutes:A,seconds:M,milliseconds:I,options:S,hourOptions:B,isAM:N,isAMOptions:Z,is24hr:l}}const RC=["value"],$C=["value","disabled"],NC={key:1,class:"vc-base-sizer","aria-hidden":"true"},Go=vt({inheritAttrs:!1,__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=y(()=>{const r=t.options.find(o=>o.value===t.modelValue);return r==null?void 0:r.label});return(r,o)=>(C(),R("div",{class:we(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[h("select",Zt(r.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:o[0]||(o[0]=i=>r.$emit("update:modelValue",i.target.value))}),[(C(!0),R(ge,null,je(e.options,i=>(C(),R("option",{key:i.value,value:i.value,disabled:i.disabled},H(i.label),9,$C))),128))],16,RC),e.showIcon?(C(),fe(qr,{key:0,name:"ChevronDown",size:"18"})):oe("",!0),e.fitContent?(C(),R("div",NC,H(O(n)),1)):oe("",!0)],2))}}),FC={key:0,class:"vc-time-header"},YC={class:"vc-time-weekday"},BC={class:"vc-time-month"},VC={class:"vc-time-day"},UC={class:"vc-time-year"},WC={class:"vc-time-select-group"},zC=h("span",{class:"vc-time-colon"},":",-1),HC=h("span",{class:"vc-time-colon"},":",-1),GC=h("span",{class:"vc-time-decimal"},".",-1),cf=vt({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const n=jC(e);t(n);const{locale:r,isValid:o,date:i,hours:a,minutes:l,seconds:s,milliseconds:c,options:u,hourOptions:p,isTimeMode:v,isAM:m,isAMOptions:g,is24hr:x,showHeader:_,timeAccuracy:w}=n;return(k,A)=>(C(),R("div",{class:we(["vc-time-picker",[{"vc-invalid":!O(o),"vc-attached":!O(v)}]])},[ee(Vt,{name:"time-header"},{default:he(()=>[O(_)&&O(i)?(C(),R("div",FC,[h("span",YC,H(O(r).formatDate(O(i),"WWW")),1),h("span",BC,H(O(r).formatDate(O(i),"MMM")),1),h("span",VC,H(O(r).formatDate(O(i),"D")),1),h("span",UC,H(O(r).formatDate(O(i),"YYYY")),1)])):oe("",!0)]),_:1}),h("div",WC,[ee(qr,{name:"Clock",size:"17"}),ee(Go,{modelValue:O(a),"onUpdate:modelValue":A[0]||(A[0]=M=>at(a)?a.value=M:null),modelModifiers:{number:!0},options:O(p),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),O(w)>1?(C(),R(ge,{key:0},[zC,ee(Go,{modelValue:O(l),"onUpdate:modelValue":A[1]||(A[1]=M=>at(l)?l.value=M:null),modelModifiers:{number:!0},options:O(u).minutes,class:"vc-time-select-minutes","align-left":O(w)===2},null,8,["modelValue","options","align-left"])],64)):oe("",!0),O(w)>2?(C(),R(ge,{key:1},[HC,ee(Go,{modelValue:O(s),"onUpdate:modelValue":A[2]||(A[2]=M=>at(s)?s.value=M:null),modelModifiers:{number:!0},options:O(u).seconds,class:"vc-time-select-seconds","align-left":O(w)===3},null,8,["modelValue","options","align-left"])],64)):oe("",!0),O(w)>3?(C(),R(ge,{key:2},[GC,ee(Go,{modelValue:O(c),"onUpdate:modelValue":A[3]||(A[3]=M=>at(c)?c.value=M:null),modelModifiers:{number:!0},options:O(u).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):oe("",!0),O(x)?oe("",!0):(C(),fe(Go,{key:3,modelValue:O(m),"onUpdate:modelValue":A[4]||(A[4]=M=>at(m)?m.value=M:null),options:O(g)},null,8,["modelValue","options"]))])],2))}}),uf=vt({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:n,color:r,displayMode:o,isDateTimeMode:i,isTimeMode:a,isRange:l,onDayClick:s,onDayMouseEnter:c,onDayKeydown:u}=zl(),p=l.value?[0,1]:[0];return(v,m)=>O(a)?(C(),R("div",{key:0,class:we(`vc-container vc-bordered vc-${O(r)} vc-${O(o)}`)},[(C(!0),R(ge,null,je(O(p),g=>(C(),fe(cf,{key:g,position:g},null,8,["position"]))),128))],2)):(C(),fe(PC,{key:1,attributes:O(t),ref_key:"calendarRef",ref:n,onDayclick:O(s),onDaymouseenter:O(c),onDaykeydown:O(u)},{footer:he(()=>[O(i)?(C(!0),R(ge,{key:0},je(O(p),g=>(C(),fe(cf,{key:g,position:g},null,8,["position"]))),128)):oe("",!0),ee(Vt,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),df=Gn(vt({inheritAttrs:!1,emits:["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"],props:OC,components:{DatePickerBase:uf,DatePickerPopover:vt({inheritAttrs:!1,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:n,displayMode:r,popoverRef:o,onPopoverBeforeShow:i,onPopoverAfterShow:a,onPopoverBeforeHide:l,onPopoverAfterHide:s}=zl();return(c,u)=>(C(),fe(Wl,{id:O(t),placement:"bottom-start",class:we(`vc-date-picker-content vc-${O(n)} vc-${O(r)}`),ref_key:"popoverRef",ref:o,onBeforeShow:O(i),onAfterShow:O(a),onBeforeHide:O(l),onAfterHide:O(s)},{default:he(()=>[ee(uf,vo(Ha(c.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}})},setup(e,t){const n=MC(e,t),r=Mt(iv(n,"calendarRef","popoverRef"));return{...n,slotCtx:r}}}),[["render",function(e,t,n,r,o,i){const a=yn("DatePickerPopover"),l=yn("DatePickerBase");return e.$slots.default?(C(),R(ge,{key:0},[ot(e.$slots,"default",vo(Ha(e.slotCtx))),ee(a,vo(Ha(e.$attrs)),null,16)],64)):(C(),fe(l,vo(Zt({key:1},e.$attrs)),null,16))}]]);function Zr(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}const qC={top:"x",right:"y",bottom:"x",left:"y"},ZC={x:"width",y:"height"},qo={top:(e,t,n,r)=>({x:e,y:n.y-r.height}),right:(e,t,n)=>({x:n.x+n.width,y:t}),bottom:(e,t,n)=>({x:e,y:n.y+n.height}),left:(e,t,n,r)=>({x:n.x-r.width,y:t})},Zo={start:(e,t,n)=>e[t]-n,center:(e,t)=>e[t],end:(e,t,n)=>e[t]+n},XC=(e,t,n,r)=>{const o=qC[n],i=ZC[o],a=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,s=e[i]/2-t[i]/2,c=Zo[r],u=(0,qo[n])(a,l,e,t);return u[o]=c(u,o,s),u};var KC=Object.defineProperty,pf=(e,t,n)=>((r,o,i)=>o in r?KC(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i)(e,typeof t!="symbol"?t+"":t,n),Ti=class extends Event{constructor(e,{oldState:t="",newState:n="",...r}={}){super(e,r),pf(this,"oldState"),pf(this,"newState"),this.oldState=String(t||""),this.newState=String(n||"")}},vf=new WeakMap;function ff(e,t,n){vf.set(e,setTimeout(()=>{vf.has(e)&&e.dispatchEvent(new Ti("toggle",{cancelable:!1,oldState:t,newState:n}))},0))}var Hl=globalThis.ShadowRoot||function(){},JC=globalThis.HTMLDialogElement||function(){},Ai=new WeakMap,Tn=new WeakMap,Xo=new WeakMap;function Ei(e){return Xo.get(e)||"hidden"}var Pi=new WeakMap;function br(e,t){return!(e.popover!=="auto"&&e.popover!=="manual"||!e.isConnected||t&&Ei(e)!=="showing"||!t&&Ei(e)!=="hidden"||e instanceof JC&&e.hasAttribute("open")||document.fullscreenElement===e)}function hf(e){return e?Array.from(Tn.get(e.ownerDocument)||[]).indexOf(e)+1:0}function QC(e){const t=gf(e),n=function(r){for(;r;){const o=r.popoverTargetElement;if(o instanceof HTMLElement)return o;if((r=r.parentElement||Xr(r))instanceof Hl&&(r=r.host),r instanceof Document)return}}(e);return hf(t)>hf(n)?t:n}function Oi(e){const t=Tn.get(e);for(const n of t||[]){if(n.isConnected)return n;t.delete(n)}return null}function Xr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.parentNode?Xr(e.parentNode):e}function gf(e){for(;e;){if(e instanceof HTMLElement&&e.popover==="auto"&&Xo.get(e)==="showing")return e;if((e=e instanceof Element&&e.assignedSlot||e.parentElement||Xr(e))instanceof Hl&&(e=e.host),e instanceof Document)return}}function eS(e){return!(e.hidden||e instanceof Hl||(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)&&e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e instanceof HTMLAnchorElement&&e.href==="")&&typeof e.tabIndex=="number"&&e.tabIndex!==-1}function tS(e){var t;(t=function(n){if(n.shadowRoot&&n.shadowRoot.delegatesFocus!==!0)return null;let r=n;r.shadowRoot&&(r=r.shadowRoot);let o=r.querySelector("[autofocus]");if(o)return o;{const l=r.querySelectorAll("slot");for(const s of l){const c=s.assignedElements({flatten:!0});for(const u of c){if(u.hasAttribute("autofocus"))return u;if(o=u.querySelector("[autofocus]"),o)return o}}}const i=n.ownerDocument.createTreeWalker(r,NodeFilter.SHOW_ELEMENT);let a=i.currentNode;for(;a;){if(eS(a))return a;a=i.nextNode()}}(e))==null||t.focus()}var Mi=new WeakMap;function Gl(e){if(!br(e,!1))return;const t=e.ownerDocument;if(!e.dispatchEvent(new Ti("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!br(e,!1))return;let n=!1;if(e.popover==="auto"){const o=e.getAttribute("popover"),i=function(a){const l=new Map;let s=0;for(const u of Tn.get(a.ownerDocument)||[])l.set(u,s),s+=1;l.set(a,s),s+=1;let c=null;return function(u){const p=gf(u);if(p===null)return null;const v=l.get(p);(c===null||l.get(c)<v)&&(c=p)}(a.parentElement||Xr(a)),c}(e)||t;if(Ii(i,!1,!0),o!==e.getAttribute("popover")||!br(e,!1))return}Oi(t)||(n=!0),Mi.delete(e);const r=t.activeElement;e.classList.add(":popover-open"),Xo.set(e,"showing"),Ai.has(t)||Ai.set(t,new Set),Ai.get(t).add(e),tS(e),e.popover==="auto"&&(Tn.has(t)||Tn.set(t,new Set),Tn.get(t).add(e),yf(Pi.get(e),!0)),n&&r&&e.popover==="auto"&&Mi.set(e,r),ff(e,"closed","open")}function Ko(e,t=!1,n=!1){var r,o;if(!br(e,!0))return;const i=e.ownerDocument;if(e.popover==="auto"&&(Ii(e,t,n),!br(e,!0))||(yf(Pi.get(e),!1),Pi.delete(e),n&&(e.dispatchEvent(new Ti("beforetoggle",{oldState:"open",newState:"closed"})),!br(e,!0))))return;(r=Ai.get(i))==null||r.delete(e),(o=Tn.get(i))==null||o.delete(e),e.classList.remove(":popover-open"),Xo.set(e,"hidden"),n&&ff(e,"open","closed");const a=Mi.get(e);a&&(Mi.delete(e),t&&a.focus())}function mf(e,t=!1,n=!1){let r=Oi(e);for(;r;)Ko(r,t,n),r=Oi(e)}function Ii(e,t,n){var r;const o=e.ownerDocument||e;if(e instanceof Document)return mf(o,t,n);let i=null,a=!1;for(const l of Tn.get(o)||[])if(l===e)a=!0;else if(a){i=l;break}if(!a)return mf(o,t,n);for(;i&&Ei(i)==="showing"&&(r=Tn.get(o))!=null&&r.size;)Ko(i,t,n)}var ql=new WeakMap;function bf(e){if(!e.isTrusted)return;const t=e.composedPath()[0];if(!t)return;const n=t.ownerDocument;if(!Oi(n))return;const r=QC(t);if(r&&e.type==="pointerdown")ql.set(n,r);else if(e.type==="pointerup"){const o=ql.get(n)===r;ql.delete(n),o&&Ii(r||n,!1,!0)}}var Zl=new WeakMap;function yf(e,t=!1){if(!e)return;Zl.has(e)||Zl.set(e,e.getAttribute("aria-expanded"));const n=e.popoverTargetElement;if(n instanceof HTMLElement&&n.popover==="auto")e.setAttribute("aria-expanded",String(t));else{const r=Zl.get(e);r?e.setAttribute("aria-expanded",r):e.removeAttribute("aria-expanded")}}var wf=globalThis.ShadowRoot||function(){};function yr(e,t,n){const r=e[t];Object.defineProperty(e,t,{value(o){return r.call(this,n(o))}})}var nS=/(^|[^\\]):popover-open\b/g;function rS(){const e=typeof globalThis.CSSLayerBlockRule=="function";return`
${e?"@layer popover-polyfill {":""}
  :where([popover]) {
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    padding: 0.25em;
    width: fit-content;
    height: fit-content;
    border-width: initial;
    border-color: initial;
    border-image: initial;
    border-style: solid;
    background-color: canvas;
    color: canvastext;
    overflow: auto;
    margin: auto;
  }

  :where([popover]:not(.\\:popover-open)) {
    display: none;
  }

  :where(dialog[popover].\\:popover-open) {
    display: block;
  }

  :where(dialog[popover][open]) {
    display: revert;
  }

  :where([anchor].\\:popover-open) {
    inset: auto;
  }

  :where([anchor]:popover-open) {
    inset: auto;
  }

  @supports not (background-color: canvas) {
    :where([popover]) {
      background-color: white;
      color: black;
    }
  }

  @supports (width: -moz-fit-content) {
    :where([popover]) {
      width: -moz-fit-content;
      height: -moz-fit-content;
    }
  }

  @supports not (inset: 0) {
    :where([popover]) {
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }
  }
${e?"}":""}
`}var Jo=null;function Xl(e){const t=rS();if(Jo===null)try{(Jo=new CSSStyleSheet).replaceSync(t)}catch{Jo=!1}if(Jo===!1){const n=document.createElement("style");n.textContent=t,e instanceof Document?e.head.prepend(n):e.prepend(n)}else e.adoptedStyleSheets=[Jo,...e.adoptedStyleSheets]}function oS(){if(typeof window>"u")return;function e(l){return l!=null&&l.includes(":popover-open")&&(l=l.replace(nS,"$1.\\:popover-open")),l}window.ToggleEvent=window.ToggleEvent||Ti,yr(Document.prototype,"querySelector",e),yr(Document.prototype,"querySelectorAll",e),yr(Element.prototype,"querySelector",e),yr(Element.prototype,"querySelectorAll",e),yr(Element.prototype,"matches",e),yr(Element.prototype,"closest",e),yr(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const l=(this.getAttribute("popover")||"").toLowerCase();return l===""||l=="auto"?"auto":"manual"},set(l){this.setAttribute("popover",l)}},showPopover:{enumerable:!0,configurable:!0,value(){Gl(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Ko(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(l){Xo.get(this)==="showing"&&l===void 0||l===!1?Ko(this,!0,!0):(l===void 0||l===!0)&&Gl(this)}}});const t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(l){const s=t.call(this,l);return Xl(s),s}}});const n=HTMLElement.prototype.attachInternals;n&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const l=n.call(this);return l.shadowRoot&&Xl(l.shadowRoot),l}}});const r=new WeakMap;function o(l){Object.defineProperties(l.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(s){if(s===null)this.removeAttribute("popovertarget"),r.delete(this);else{if(!(s instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),r.set(this,s)}},get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;const s=r.get(this);if(s&&s.isConnected)return s;if(s&&!s.isConnected)return r.delete(this),null;const c=Xr(this),u=this.getAttribute("popovertarget");return(c instanceof Document||c instanceof wf)&&u&&c.getElementById(u)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const s=(this.getAttribute("popovertargetaction")||"").toLowerCase();return s==="show"||s==="hide"?s:"toggle"},set(s){this.setAttribute("popovertargetaction",s)}}})}o(HTMLButtonElement),o(HTMLInputElement);const i=l=>{const s=l.composedPath(),c=s[0];if(!(c instanceof Element)||c!=null&&c.shadowRoot)return;const u=Xr(c);if(!(u instanceof wf||u instanceof Document))return;const p=s.find(v=>{var m;return(m=v.matches)==null?void 0:m.call(v,"[popovertargetaction],[popovertarget]")});return p?(function(v){const m=v.popoverTargetElement;if(!(m instanceof HTMLElement))return;const g=Ei(m);v.popoverTargetAction==="show"&&g==="showing"||v.popoverTargetAction==="hide"&&g==="hidden"||(g==="showing"?Ko(m,!0,!0):br(m,!1)&&(Pi.set(m,v),Gl(m)))}(p),void l.preventDefault()):void 0},a=l=>{const s=l.key,c=l.target;!l.defaultPrevented&&c&&(s==="Escape"||s==="Esc")&&Ii(c.ownerDocument,!0,!0)};(l=>{l.addEventListener("click",i),l.addEventListener("keydown",a),l.addEventListener("pointerdown",bf),l.addEventListener("pointerup",bf)})(document),Xl(document)}const Li=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},aS={__name:"cb-popover",props:{modelValue:{type:Boolean,required:!0},anchor:{type:[HTMLElement,null],required:!0},placement:{type:String,default:"bottom",validator:e=>Object.keys(qo).includes(e)},alignment:{type:String,default:"center",validator:e=>Object.keys(Zo).includes(e)}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=pe(null),a=pe(r.alignment),l=pe(r.placement);let s=Object.keys(Zo),c=Object.keys(qo);const u=(w,k)=>w.x>=window.visualViewport.pageLeft&&w.x+k.width<=window.visualViewport.pageLeft+window.visualViewport.width&&w.y>=window.visualViewport.pageTop&&w.y+k.height<=window.visualViewport.pageTop+window.visualViewport.height,p=()=>{const w=Object.keys(qo),k=w.indexOf(r.placement);c=w.slice(k).concat(w.slice(0,k)),s=[r.alignment,...Object.keys(Zo).filter(A=>A!==r.alignment)]},v=w=>{const k=w.getBoundingClientRect();return new DOMRect(k.left+window.scrollX,k.top+window.scrollY,k.width,k.height)},m=()=>{var w,k;r.modelValue?(w=i.value)==null||w.showPopover():(k=i.value)==null||k.hidePopover()},g=()=>{if(!r.modelValue||!r.anchor||!i.value)return;const w=((k,A)=>{for(const M of c)for(const I of s){const N=XC(k,A,M,I);if(u(N,A))return a.value=I,l.value=M,N}return a.value=void 0,l.value=void 0,{x:window.visualViewport.pageLeft+window.visualViewport.width/2-A.width/2,y:window.visualViewport.pageTop+window.visualViewport.height/2-A.height/2}})(v(r.anchor),v(i.value));i.value.style.top=`${w.y}px`,i.value.style.left=`${w.x}px`},x=w=>{const k=w.newState==="open";o("update:modelValue",k)},_=new ResizeObserver(g);return Re(()=>r.anchor,(w,k)=>{w&&_.observe(w),k&&_.unobserve(k)}),Re(()=>i.value,(w,k)=>{w&&_.observe(w),k&&_.unobserve(k)}),Re(()=>r.placement,()=>{p(),g()},{immediate:!0}),Re(()=>r.alignment,()=>{p(),g()},{immediate:!0}),Re(()=>r.modelValue,m),Tt(()=>{typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype||oS(),_.observe(document.body),window.addEventListener("resize",g),m()}),Tr(()=>{_.unobserve(document.body),window.removeEventListener("resize",g)}),t({element:i}),(w,k)=>(C(),R("div",{ref_key:"target",ref:i,class:we(["cb-popover",a.value,l.value]),popover:"",onToggle:x},[ot(w.$slots,"default",{},void 0,!0)],34))}},Kr=Li(aS,[["__scopeId","data-v-837614e0"]]);Zr(`.cb-popover[data-v-837614e0] {
    position: absolute;
    inset: unset;
    padding: 20px;
    transition: .3s opacity;
    border: var(--vg-popout-border-width) solid var(--vg-popout-border-color);
    border-radius: var(--vg-popout-border-radius);
    background-color: var(--vg-popout-background-color);
    box-shadow: var(--vg-popout-box-shadow);
    color: var(--vg-popout-color);
    font-family: var(--vg-body-font-family);
    font-size: var(--vg-body-font-size);
    font-weight: var(--vg-body-font-weight);
    line-height: var(--vg-body-line-height);
    letter-spacing: var(--vg-body-letter-spacing);

    /* restrict height */
    /*max-height: calc(100vh - 200px);*/ /* for large inner content */
    max-width: calc(100vw - 40px); /* for mobile */
    overflow: auto;
}
.cb-popover[data-v-837614e0]  {
        box-sizing: border-box;
}
.cb-popover[data-v-837614e0]  * {
            box-sizing: border-box;
}
.cb-popover.top[data-v-837614e0] {
        margin-top: -10px;
}
.cb-popover.right[data-v-837614e0] {
        margin-left: 10px;
}
.cb-popover.bottom[data-v-837614e0] {
        margin-top: 10px;
}
.cb-popover.left[data-v-837614e0] {
        margin-left: -10px;
}
.cb-popover[data-v-837614e0]:popover-open {
        opacity: 1;
}
@starting-style {
.cb-popover[data-v-837614e0]:popover-open {
            opacity: 0;
}
}
`);const iS=["value","disabled"],sS=["value"],lS={__name:"cb-select",props:{options:{type:Array,default:()=>[]},modelValue:{type:[String,Number,null],required:!0},success:{type:Boolean},error:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},locked:{type:Boolean},size:{type:String,default:null,validator:e=>!e||["small"].indexOf(e)!==-1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=y({get:()=>n.modelValue,set(a){r("update:modelValue",a)}}),i=y(()=>({"cb-disabled":n.disabled,"cb-select-sm":n.size==="small","cb-invalid":n.error,"cb-valid":n.success,"cb-loading":n.loading,"cb-locked":n.locked}));return(a,l)=>(C(),R("select",Zt(a.$attrs,{class:["cb-select",i.value],value:o.value,disabled:e.disabled||e.locked,onChange:l[0]||(l[0]=s=>o.value=s.target.value)}),[ot(a.$slots,"default",{},()=>[(C(!0),R(ge,null,je(e.options,s=>Le((C(),R("option",{key:s.value,value:s.value},H(s.label),9,sS)),[[Ye,!s.hidden]])),128))])],16,iS))}},ji=lS,kf=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},cS={class:"cb--range-picker"},uS={class:"cb--range-picker__title cb-test-range-picker-title"},dS=["aria-labelledby","onClick"],pS=["id"],vS={key:0,class:"cb--range-picker__more"},fS={value:"",disabled:"",selected:"",hidden:""},hS=["value"],gS=["onClick"],mS={__name:"cb-duration-picker",props:{fromDate:{type:String,required:!0}},emits:["selected"],setup(e,{emit:t}){const{durations:n,updateDurations:r,currency:o}=ae("widget"),{send:i,state:a}=ae("bookingFlowMachine"),l={timeZone:"UTC",month:"short",day:"numeric"},s=pe(7),c=e,u=y(()=>new Date(c.fromDate).toLocaleDateString(a.value.context.culture,l)),p=t,v=_=>{r(_),i("DATE_OR_DURATION_SELECTED"),p("selected")},m=y(()=>a.value.matches("flowControl.updating.gettingDurations")),g=y(()=>n.value?n.value.slice(0,s.value):[]),x=y(()=>n.value&&n.value.length>s.value?n.value.slice(s.value,n.value.length):null);return(_,w)=>(C(),R(ge,null,[Le(h("div",null,w[0]||(w[0]=[Ga('<div class="cb--range-picker" data-v-59647d3f><div class="cb--range-picker__title" data-v-59647d3f><span class="cb-text-ph" style="width:100px;" data-v-59647d3f> </span></div><label class="cb--range-picker__option" style="pointer-events:none;" data-v-59647d3f><span class="cb-text-ph" style="width:130px;" data-v-59647d3f> </span></label></div>',1)]),512),[[Ye,m.value]]),Le(h("div",null,[h("div",cS,[h("div",uS,H(_.$t("TodoWidget.ChooseDurationFrom"))+" "+H(u.value),1),(C(!0),R(ge,null,je(g.value,(k,A)=>(C(),R("label",{key:k.durationId,class:"cb--range-picker__option",tabindex:"0",role:"button","aria-labelledby":`cb-range-picker-option-${A}`,onKeydown:Mo(v,["enter"]),onClick:M=>v(k.durationId)},[h("span",{id:`cb-range-picker-option-${A}`},[h("b",null,H(k.remark),1),xe(" "+H(_.$t("TodoWidget.From"))+", "+H(k.priceFrom)+" "+H(O(o)),1)],8,pS)],40,dS))),128)),x.value?(C(),R("div",vS,[ee(O(ji),{"onUpdate:modelValue":v},{default:he(()=>[h("option",fS,H(_.$t("TodoWidget.MoreOptions")),1),(C(!0),R(ge,null,je(x.value,k=>(C(),R("option",{key:k.durationId,value:k.durationId},[h("label",{onClick:A=>v(k.durationId)},H(k.remark)+", "+H(_.$t("TodoWidget.From"))+" "+H(k.priceFrom)+" "+H(O(o)),9,gS)],8,hS))),128))]),_:1})])):oe("",!0),w[1]||(w[1]=h("div",{class:"cb--range-picker__more"},[h("select",null,[h("option",null,"More")])],-1))])],512),[[Ye,!m.value]])],64))}},bS=kf(mS,[["__scopeId","data-v-59647d3f"]]);ti(`
[data-v-59647d3f]  .cb--range-picker {
        margin: -20px;
        width: 250px;
}
[data-v-59647d3f]  .cb--range-picker__title {
        padding: 7px 10px;
        background-color: var(--vg-primary-background);
        color: var(--vg-primary-color);
        border-radius: var(--vg-popout-border-radius) var(--vg-popout-border-radius) 0 0;
        font-weight: var(--vg-body-bold-font-weight);
        font-size: var(--vg-body-small-font-size);
}
[data-v-59647d3f]  .cb--range-picker__option,[data-v-59647d3f]  .cb--range-picker__more select {
        position: relative;
        display: block;
        color: currentColor;
        text-decoration: none;
        padding: 7px 10px;
        cursor: pointer;
}
:is([data-v-59647d3f]  .cb--range-picker__option,[data-v-59647d3f]  .cb--range-picker__more select):hover,
        :is([data-v-59647d3f]  .cb--range-picker__option,[data-v-59647d3f]  .cb--range-picker__more select):focus {
            background-color: var(--vg-popout-option-hover-background);
}
[data-v-59647d3f]  .cb--range-picker__more {
        position: relative;
}
[data-v-59647d3f]  .cb--range-picker__more select {
            font-family: var(--vg-body-font-family);
            font-size: var(--vg-body-line-height);
            font-size: var(--vg-body-font-size);
            border: 0;
            width: 100%;
            border-radius: 0 0 var(--vg-popout-border-radius) var(--vg-popout-border-radius);
            -webkit-appearance: none;
            -moz-appearance: none;
}
[data-v-59647d3f]  .cb--range-picker__more:after {
            content: '\f078';
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-50%);
            font-family: icon-aws-solid;
            font-weight: normal;
            font-style: normal;
            letter-spacing: initial;
            font-size: 12px;
            pointer-events: none;
}`);const yS=["aria-label","aria-disabled","tabindex"],wS={key:0},xf={__name:"cb-datepicker-single-day",props:{day:{type:Object,required:!0},attributes:{type:Array,required:!0},duration:{type:Boolean,default:!1},events:{type:Object,default:()=>({})}},emits:["selected"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=pe(null),a=y(()=>r.attributes?r.attributes.find(A=>A.key.includes("availability")):null),l=y(()=>r.duration&&r.attributes?r.attributes.find(A=>A.key==="select-drag"):null),s=()=>{c.value&&o("selected")},c=y(()=>a.value&&!a.value.customData.isSoldOut),u=y(()=>a.value&&a.value.customData.isSoldOut),p=y(()=>a.value&&a.value.customData.fewLeft),v=y(()=>l.value&&r.day.date.getDate()>l.value.dates.start.getDate()),m=y(()=>l.value&&l.value.dates.start.getDate()===r.day.date.getDate()),g=y(()=>l.value&&l.value.dates.end.getDate()===r.day.date.getDate()),x=y(()=>l.value&&l.value.dates.start.getDate()<r.day.date.getDate()&&r.day.date.getDate()<l.value.dates.end.getDate()),_=y(()=>["vc-day-content","vc-focusable","vc-focus",{"is-disabled":!c.value,"cb--sold-out":u.value,"cb--avail-fewleft":p.value,"vc-highlight-content-light":x.value,"vc-highlight-content-solid":m.value||g.value,"cb-duration-start":m.value,"cb-duration-end":g.value,"cb--duration":r.duration&&c.value}]),w=y(()=>c.value?a.value.customData.price:null),k=A=>{A.key==="Enter"&&s(),r.events.keydown(A)};return t({div:i}),(A,M)=>(C(),R("div",{ref_key:"div",ref:i,class:we(_.value),"aria-label":e.day.ariaLabel,"aria-disabled":!c.value,tabindex:e.day.isFocusable?0:-1,role:"button",onClick:s,onEnter:s,onMouseenter:M[0]||(M[0]=(...I)=>e.events.mouseenter&&e.events.mouseenter(...I)),onMouseleave:M[1]||(M[1]=(...I)=>e.events.mouseleave&&e.events.mouseleave(...I)),onFocusin:M[2]||(M[2]=(...I)=>e.events.focusin&&e.events.focusin(...I)),onFocusout:M[3]||(M[3]=(...I)=>e.events.focusout&&e.events.focusout(...I)),onKeydown:k},[h("span",null,H(e.day.day),1),w.value&&!v.value?(C(),R("i",wS,H(w.value),1)):oe("",!0)],42,yS))}},kS={__name:"cb-datepicker-duration-day",props:{day:{type:Object,required:!0},attributes:{type:Array,required:!0},events:{type:Object,default:()=>({})}},emits:["startdate-selected"],setup(e,{emit:t}){const n=t,r=pe(null),o=()=>{n("startdate-selected",r.value.div)};return(i,a)=>(C(),fe(xf,{ref_key:"singleDay",ref:r,duration:"",day:e.day,attributes:e.attributes,events:e.events,onSelected:o},null,8,["day","attributes","events"]))}};ti(`
.tippy-box[data-theme~='cb--range'] .tippy-content {
        padding: 20px !important;
}
`);const xS={class:"vc-legends cb--small"},_S={class:"vc-legend cb--avail"},CS={class:"vc-legend cb--avail-selected"},SS={class:"vc-legend cb--avail-fewleft"},DS={class:"vc-legend cb--sold-out"},TS={__name:"cb-datepicker-duration",emits:["date-changed"],setup(e,{emit:t}){const{widgetState:n,updateSelectedDate:r,durations:o,updateDurations:i}=ae("widget"),{calendarState:a,displayedMonthAvailability:l,getFirstAvailableMonth:s,getFirstAvailableYear:c,getDateFromDateString:u}=ae("calendar"),{send:p,state:v}=ae("bookingFlowMachine"),m=t,g=pe(null),x=pe(null),_=pe(!1),w=pe(null),k=y(()=>v.value.context.allowCapacityOverride.value?null:{month:s(),year:c()}),A=y(()=>{var z;return(z=l.value)!=null&&z.isLastAvailableMonth?{month:a.displayedMonth,year:a.displayedYear}:null}),M=y(()=>n.todoConfiguration.date?u(n.todoConfiguration.date):null),I=y(()=>v.value.context.culture),N=y(()=>{var z,J;let te=(J=(z=o.value)==null?void 0:z.find(se=>se.selected))==null?void 0:J.durationEndDate;return te?u(te):M.value}),S={id:I.value,masks:{weekdays:"WWW",input:"MMM D"}},F=y(()=>({month:a.displayedMonth,year:a.displayedYear}));function U(z){var J=z[0];(a.displayedMonth!==J.month||a.displayedYear!==J.year)&&p({type:"CALENDAR_MONTH_CHANGED",payload:{month:J.month,year:J.year}})}Re(()=>a.displayedMonth||a.displayedYear,()=>{g.value.move({month:a.displayedMonth,year:a.displayedYear}),_.value&&(_.value=!1)});const B=y(()=>({start:M.value,end:N.value})),Z=y(()=>o.value?o.value.find(z=>z.selected):null),X=y(()=>{let z=l.value;if(z!=null&&z.days){let se=[];for(var J=0;J<z.days.length;J++){let re=z.days[J];var te=new Date(re.date);let ue=re.price;M.value&&M.value.getTime()===te.getTime()&&Z.value&&(ue=Z.value.priceFrom);let le={key:"availability-"+re.date,dates:te,customData:{price:ue,isSoldOut:re.availability===0,fewLeft:re.fewLeft}};se.push(le)}return se}return[]}),Y=z=>z.getUTCFullYear()+"-"+("0"+(z.getUTCMonth()+1)).slice(-2)+"-"+("0"+z.getUTCDate()).slice(-2),L=()=>{m("date-changed"),_.value=!1};return(z,J)=>(C(),R(ge,null,[ee(O(df),{ref_key:"calendar",ref:g,modelValue:B.value,"onUpdate:modelValue":J[0]||(J[0]=te=>B.value=te),"initial-page":F.value,"is-range":"",class:"cb--has-price","min-page":k.value,"max-page":A.value,locale:S,attributes:X.value,timezone:"UTC",expanded:"","trim-weeks":"",onDidMove:U},{"day-content":he(({day:te,attributes:se,dayEvents:re})=>[ee(kS,{day:te,attributes:se,events:re,onStartdateSelected:ue=>((le,_e,$e)=>{x.value=$e,_.value=!0,w.value=le;let ce=Y(_e);r(ce),i(null),p("DURATION_START_DATE_SELECTED")})(ue,te.date,te.id)},null,8,["day","attributes","events","onStartdateSelected"])]),footer:he(()=>[h("div",xS,[h("div",_S,[J[2]||(J[2]=h("span",null,null,-1)),xe(" "+H(z.$t("TodoWidget.Available")),1)]),h("div",CS,[J[3]||(J[3]=h("span",null,null,-1)),xe(" "+H(z.$t("TodoWidget.Selected")),1)]),h("div",SS,[J[4]||(J[4]=h("span",null,null,-1)),xe(" "+H(z.$t("TodoWidget.FewLeft")),1)]),h("div",DS,[J[5]||(J[5]=h("span",null,null,-1)),xe(" "+H(z.$t("TodoWidget.SoldOut")),1)]),J[6]||(J[6]=h("div",{class:"vc-legend cb-text-muted"},null,-1))])]),_:1},8,["modelValue","initial-page","min-page","max-page","attributes"]),ee(O(Kr),{modelValue:_.value,"onUpdate:modelValue":J[1]||(J[1]=te=>_.value=te),anchor:w.value,placement:"bottom",alignment:"start",style:{"z-index":"10048"}},{default:he(()=>[ee(bS,{"from-date":x.value,onSelected:L},null,8,["from-date"])]),_:1},8,["modelValue","anchor"])],64))}};ti(`
.vc-popover-content-wrapper {
  --popover-horizontal-content-offset: 8px;
  --popover-vertical-content-offset: 10px;
  --popover-caret-horizontal-offset: 18px;
  --popover-caret-vertical-offset: 8px;

  position: absolute;
  display: block;
  outline: none;
  z-index: 10;
}
.vc-popover-content-wrapper:not(.is-interactive) {
    pointer-events: none;
}
.vc-popover-content {
  position: relative;
  color: var(--vc-popover-content-color);
  font-weight: var(--vc-font-medium);
  background-color: var(--vc-popover-content-bg);
  border: 1px solid;
  border-color: var(--vc-popover-content-border);
  border-radius: var(--vc-rounded-lg);
  padding: 4px;
  outline: none;
  z-index: 10;
  box-shadow: var(--vc-shadow-lg);
}
.vc-popover-content.direction-bottom {
    margin-top: var(--popover-vertical-content-offset);
}
.vc-popover-content.direction-top {
    margin-bottom: var(--popover-vertical-content-offset);
}
.vc-popover-content.direction-left {
    margin-right: var(--popover-horizontal-content-offset);
}
.vc-popover-content.direction-right {
    margin-left: var(--popover-horizontal-content-offset);
}
.vc-popover-caret {
  content: '';
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  border-top: inherit;
  border-left: inherit;
  background-color: inherit;
  z-index: -1;
}
.vc-popover-caret.direction-bottom {
    top: 0;
}
.vc-popover-caret.direction-bottom.align-left {
      -webkit-transform: translateY(-50%) rotate(45deg);
              transform: translateY(-50%) rotate(45deg);
}
.vc-popover-caret.direction-bottom.align-center {
      -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
              transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
.vc-popover-caret.direction-bottom.align-right {
      -webkit-transform: translateY(-50%) rotate(45deg);
              transform: translateY(-50%) rotate(45deg);
}
.vc-popover-caret.direction-top {
    top: 100%;
}
.vc-popover-caret.direction-top.align-left {
      -webkit-transform: translateY(-50%) rotate(-135deg);
              transform: translateY(-50%) rotate(-135deg);
}
.vc-popover-caret.direction-top.align-center {
      -webkit-transform: translateX(-50%) translateY(-50%) rotate(-135deg);
              transform: translateX(-50%) translateY(-50%) rotate(-135deg);
}
.vc-popover-caret.direction-top.align-right {
      -webkit-transform: translateY(-50%) rotate(-135deg);
              transform: translateY(-50%) rotate(-135deg);
}
.vc-popover-caret.direction-left {
    left: 100%;
}
.vc-popover-caret.direction-left.align-top {
      -webkit-transform: translateX(-50%) rotate(135deg);
              transform: translateX(-50%) rotate(135deg);
}
.vc-popover-caret.direction-left.align-middle {
      -webkit-transform: translateY(-50%) translateX(-50%) rotate(135deg);
              transform: translateY(-50%) translateX(-50%) rotate(135deg);
}
.vc-popover-caret.direction-left.align-bottom {
      -webkit-transform: translateX(-50%) rotate(135deg);
              transform: translateX(-50%) rotate(135deg);
}
.vc-popover-caret.direction-right {
    left: 0;
}
.vc-popover-caret.direction-right.align-top {
      -webkit-transform: translateX(-50%) rotate(-45deg);
              transform: translateX(-50%) rotate(-45deg);
}
.vc-popover-caret.direction-right.align-middle {
      -webkit-transform: translateY(-50%) translateX(-50%) rotate(-45deg);
              transform: translateY(-50%) translateX(-50%) rotate(-45deg);
}
.vc-popover-caret.direction-right.align-bottom {
      -webkit-transform: translateX(-50%) rotate(-45deg);
              transform: translateX(-50%) rotate(-45deg);
}
.vc-popover-caret.align-left {
    left: var(--popover-caret-horizontal-offset);
}
.vc-popover-caret.align-center {
    left: 50%;
}
.vc-popover-caret.align-right {
    right: var(--popover-caret-horizontal-offset);
}
.vc-popover-caret.align-top {
    top: var(--popover-caret-vertical-offset);
}
.vc-popover-caret.align-middle {
    top: 50%;
}
.vc-popover-caret.align-bottom {
    bottom: var(--popover-caret-vertical-offset);
}
.vc-day-popover-row {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  transition: var(--vc-day-content-transition);
}
.vc-day-popover-row-indicator {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-flex-grow: 0;
      -ms-flex-positive: 0;
          flex-grow: 0;
  width: 15px;
}
.vc-day-popover-row-indicator span {
    transition: var(--vc-day-content-transition);
}
.vc-day-popover-row-label {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-flex-wrap: none;
      -ms-flex-wrap: none;
          flex-wrap: none;
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  width: -webkit-max-content;
  width: max-content;
  margin-left: 4px;
  margin-right: 4px;
  font-size: var(--vc-text-xs);
  line-height: var(--vc-leading-normal);
}
.vc-day-popover-row-highlight {
  width: 8px;
  height: 5px;
  border-radius: 3px;
}
.vc-day-popover-row-dot {
}
.vc-day-popover-row-bar {
  width: 10px;
  height: 3px;
}
.vc-base-icon {
  display: inline-block;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.vc-header {
  display: grid;
  grid-gap: 4px;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  height: 30px;
  margin-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}
.vc-header.is-lg {
    font-size: var(--vc-text-lg);
}
.vc-header.is-xl {
    font-size: var(--vc-text-xl);
}
.vc-header.is-2xl {
    font-size: var(--vc-text-2xl);
}
.vc-header .vc-title-wrapper {
    grid-row: 1;
    grid-column: title;
}
.vc-header .vc-prev {
    grid-row: 1;
    grid-column: prev;
}
.vc-header .vc-next {
    grid-row: 1;
    grid-column: next;
}
.vc-header .vc-title,
  .vc-header .vc-prev,
  .vc-header .vc-next {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    border: 0;
    border-radius: var(--vc-rounded);
    pointer-events: auto;
    -webkit-user-select: none;
        -ms-user-select: none;
            user-select: none;
    cursor: pointer;
}
.vc-header .vc-title {
    color: var(--vc-header-title-color);
    font-weight: var(--vc-font-semibold);
    white-space: nowrap;
    padding: 0 8px;
    margin: 0;
    line-height: 30px;
}
.vc-header .vc-title:hover {
      opacity: 0.75;
}
.vc-header .vc-arrow {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    color: var(--vc-header-arrow-color);
    width: 28px;
    height: 30px;
    margin: 0;
    padding: 0;
}
.vc-header .vc-arrow:hover {
      background: var(--vc-header-arrow-hover-bg);
}
.vc-header .vc-arrow:disabled {
      opacity: 0.25;
      pointer-events: none;
}
.vc-nav-header {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.vc-nav-title,
.vc-nav-arrow,
.vc-nav-item {
  font-size: var(--vc-text-sm);
  margin: 0;
  cursor: pointer;
  -webkit-user-select: none;
      -ms-user-select: none;
          user-select: none;
  border: 0;
  border-radius: var(--vc-rounded);
  white-space: nowrap;
}
.vc-nav-title:hover, .vc-nav-arrow:hover, .vc-nav-item:hover {
    background-color: var(--vc-nav-hover-bg);
}
.vc-nav-title:disabled, .vc-nav-arrow:disabled, .vc-nav-item:disabled {
    opacity: 0.25;
    pointer-events: none;
}
.vc-nav-title {
  color: var(--vc-nav-title-color);
  font-weight: var(--vc-font-bold);
  line-height: var(--vc-leading-snug);
  height: 30px;
  padding: 0 6px;
}
.vc-nav-arrow {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  color: var(--vc-header-arrow-color);
  width: 26px;
  height: 30px;
  padding: 0;
}
.vc-nav-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-row-gap: 2px;
  grid-column-gap: 5px;
  margin-top: 2px;
}
.vc-nav-item {
  width: 48px;
  text-align: center;
  font-weight: var(--vc-font-semibold);
  line-height: var(--vc-leading-snug);
  padding: 6px 0;
}
.vc-nav-item.is-active {
    color: var(--vc-nav-item-active-color);
    background-color: var(--vc-nav-item-active-bg);
    font-weight: var(--vc-font-bold);
}
.vc-nav-item.is-active:not(:focus) {
      box-shadow: var(--vc-nav-item-active-box-shadow);
}
.vc-nav-item.is-current {
    color: var(--vc-nav-item-current-color);
}
.vc-day {
  position: relative;
  min-height: 32px;
  z-index: 1;
  /* &.is-not-in-month * {
    opacity: 0;
    pointer-events: none;
  } */
}
.vc-monthly .is-not-in-month * {
  opacity: 0;
  pointer-events: none;
}
.vc-day-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}
.vc-day-box-center-center {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
}
.vc-day-box-left-center {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: flex-start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transform-origin: 0% 50%;
          transform-origin: 0% 50%;
}
.vc-day-box-right-center {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: flex-end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transform-origin: 100% 50%;
          transform-origin: 100% 50%;
}
.vc-day-box-center-bottom {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: flex-end;
      -ms-flex-align: end;
          align-items: flex-end;
}
.vc-day-content {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: var(--vc-text-sm);
  font-weight: var(--vc-font-medium);
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: var(--vc-rounded-full);
  -webkit-user-select: none;
      -ms-user-select: none;
          user-select: none;
  cursor: pointer;
}
.vc-day-content:hover {
    background-color: var(--vc-day-content-hover-bg);
}
.vc-day-content.vc-disabled {
    color: var(--vc-day-content-disabled-color);
}
/* ----Content---- */
.vc-content:not(.vc-base) {
  font-weight: var(--vc-font-bold);
  color: var(--vc-content-color);
}
/* ----Highlights---- */
.vc-highlights {
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.vc-highlight {
  width: 28px;
  height: 28px;
}
.vc-highlight.vc-highlight-base-start {
    width: 50% !important;
    border-radius: 0 !important;
    border-right-width: 0 !important;
}
.vc-highlight.vc-highlight-base-end {
    width: 50% !important;
    border-radius: 0 !important;
    border-left-width: 0 !important;
}
.vc-highlight.vc-highlight-base-middle {
    width: 100%;
    border-radius: 0 !important;
    border-left-width: 0 !important;
    border-right-width: 0 !important;
    margin: 0 -1px;
}
.vc-highlight-bg-outline,
.vc-highlight-bg-none {
  background-color: var(--vc-highlight-outline-bg);
  border: 2px solid;
  border-color: var(--vc-highlight-outline-border);
  border-radius: var(--vc-rounded-full);
}
.vc-highlight-bg-light {
  background-color: var(--vc-highlight-light-bg);
  border-radius: var(--vc-rounded-full);
}
.vc-highlight-bg-solid {
  background-color: var(--vc-highlight-solid-bg);
  border-radius: var(--vc-rounded-full);
}
.vc-highlight-content-outline,
.vc-highlight-content-none {
  font-weight: var(--vc-font-bold);
  color: var(--vc-highlight-outline-content-color);
}
.vc-highlight-content-light {
  font-weight: var(--vc-font-bold);
  color: var(--vc-highlight-light-content-color);
}
.vc-highlight-content-solid {
  font-weight: var(--vc-font-bold);
  color: var(--vc-highlight-solid-content-color);
}
/* ----Dots---- */
.vc-dots {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}
.vc-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  transition: var(--vc-day-content-transition);
}
.vc-dot:not(:last-child) {
    margin-right: 3px;
}
/* ----Bars---- */
.vc-bars {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: flex-start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  width: 75%;
}
.vc-bar {
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  height: 3px;
  transition: var(--vc-day-content-transition);
}
.vc-dot {
  background-color: var(--vc-dot-bg);
}
.vc-bar {
  background-color: var(--vc-bar-bg);
}
.vc-pane {
  min-width: 250px;
}
.vc-weeknumber {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
}
.vc-weeknumber.is-left {
    left: calc(var(--vc-weeknumber-offset-inside) * -1);
}
.vc-weeknumber.is-right {
    right: calc(var(--vc-weeknumber-offset-inside) * -1);
}
.vc-weeknumber.is-left-outside {
    left: calc(var(--vc-weeknumber-offset-outside) * -1);
}
.vc-weeknumber.is-right-outside {
    right: calc(var(--vc-weeknumber-offset-outside) * -1);
}
.vc-weeknumber-content {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: var(--vc-text-xs);
  font-weight: var(--vc-font-medium);
  font-style: italic;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: var(--vc-weeknumber-color);
  -webkit-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.vc-weeks {
  position: relative;
  /* overflow: auto; */
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  min-width: 232px;
}
.vc-weeks.vc-show-weeknumbers-left {
    margin-left: var(--vc-weeknumber-offset-inside);
}
.vc-weeks.vc-show-weeknumbers-right {
    margin-right: var(--vc-weeknumber-offset-inside);
}
.vc-weekday {
  text-align: center;
  color: var(--vc-weekday-color);
  font-size: var(--vc-text-sm);
  font-weight: var(--vc-font-bold);
  line-height: 14px;
  padding-top: 4px;
  padding-bottom: 8px;
  cursor: default;
  -webkit-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.vc-week,
.vc-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: relative;
}
.vc-pane-container {
  width: 100%;
  position: relative;
}
.vc-pane-container.in-transition {
    overflow: hidden;
}
.vc-pane-layout {
  display: grid;
}
.vc-pane-header-wrapper {
  position: absolute;
  top: 0;
  width: 100%;
  pointer-events: none;
}
.vc-day-popover-container {
  font-size: var(--vc-text-xs);
  font-weight: var(--vc-font-medium);
}
.vc-day-popover-header {
  font-size: var(--vc-text-xs);
  color: var(--vc-day-popover-header-color);
  font-weight: var(--vc-font-semibold);
  text-align: center;
}
.vc-base-select {
  position: relative;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  height: 30px;
  font-size: var(--vc-text-base);
  font-weight: var(--vc-font-medium);
}
.vc-base-select.vc-has-icon select {
      padding: 0 27px 0 9px;
}
.vc-base-select.vc-has-icon .vc-base-sizer {
      padding: 0 28px 0 10px;
}
.vc-base-select.vc-fit-content select {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
}
.vc-base-select .vc-base-icon {
    position: absolute;
    top: 6px;
    right: 4px;
    opacity: 0.6;
    pointer-events: none;
}
.vc-base-select .vc-base-sizer {
    font-size: var(--vc-text-base);
    font-weight: var(--vc-font-medium);
    color: transparent;
    padding: 0px 8px;
    margin: 0;
}
.vc-base-select select {
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    color: var(--vc-select-color);
    display: block;
    -webkit-appearance: none;
            appearance: none;
    background-color: var(--vc-select-bg);
    border-radius: var(--vc-rounded);
    height: 30px;
    width: -webkit-max-content;
    width: max-content;
    padding: 0px 7px;
    margin: 0;
    line-height: var(--leading-none);
    text-indent: 0px;
    background-image: none;
    cursor: pointer;
    text-align: center;
}
.vc-base-select select:hover {
      background-color: var(--vc-select-hover-bg);
}
.vc-base-select select.vc-align-left {
      text-align: left;
}
.vc-base-select select.vc-align-right {
      text-align: right;
}
.vc-time-picker {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 8px 4px;
}
.vc-time-picker.vc-invalid {
    pointer-events: none;
    opacity: 0.5;
}
.vc-time-picker.vc-attached {
    border-top: 1px solid var(--vc-time-picker-border);
}
.vc-time-picker > * + * {
    margin-top: 4px;
}
.vc-time-header {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: var(--vc-text-sm);
  font-weight: var(--vc-font-semibold);
  text-transform: uppercase;
  margin-top: -4px;
  padding-left: 4px;
  padding-right: 4px;
  line-height: 21px;
}
.vc-time-select-group {
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0 4px;
  background: var(--vc-time-select-group-bg);
  border-radius: var(--vc-rounded-md);
  border: 1px solid var(--vc-time-select-group-border);
}
.vc-time-select-group .vc-base-icon {
    margin-right: 4px;
    color: var(--vc-time-select-group-icon-color);
}
.vc-time-select-group select {
    background: transparent;
    padding: 0px 4px;
}
.vc-time-weekday {
  color: var(--vc-time-weekday-color);
  letter-spacing: var(--tracking-wide);
}
.vc-time-month {
  color: var(--vc-time-month-color);
  margin-left: 8px;
}
.vc-time-day {
  color: var(--vc-time-day-color);
  margin-left: 4px;
}
.vc-time-year {
  color: var(--vc-time-year-color);
  margin-left: 8px;
}
.vc-time-colon {
  margin: 0 1px 2px 2px;
}
.vc-time-decimal {
  margin: 0 0 0 1px;
}
.vc-none-enter-active,
.vc-none-leave-active {
  transition-duration: 0s;
}
.vc-fade-enter-active,
.vc-fade-leave-active,
.vc-slide-left-enter-active,
.vc-slide-left-leave-active,
.vc-slide-right-enter-active,
.vc-slide-right-leave-active,
.vc-slide-up-enter-active,
.vc-slide-up-leave-active,
.vc-slide-down-enter-active,
.vc-slide-down-leave-active,
.vc-slide-fade-enter-active,
.vc-slide-fade-leave-active {
  transition: opacity var(--vc-slide-duration) var(--vc-slide-timing),
    -webkit-transform var(--vc-slide-duration) var(--vc-slide-timing);
  transition: transform var(--vc-slide-duration) var(--vc-slide-timing),
    opacity var(--vc-slide-duration) var(--vc-slide-timing);
  transition: transform var(--vc-slide-duration) var(--vc-slide-timing),
    opacity var(--vc-slide-duration) var(--vc-slide-timing),
    -webkit-transform var(--vc-slide-duration) var(--vc-slide-timing);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  pointer-events: none;
}
.vc-none-leave-active,
.vc-fade-leave-active,
.vc-slide-left-leave-active,
.vc-slide-right-leave-active,
.vc-slide-up-leave-active,
.vc-slide-down-leave-active {
  position: absolute !important;
  width: 100%;
}
.vc-none-enter-from,
.vc-none-leave-to,
.vc-fade-enter-from,
.vc-fade-leave-to,
.vc-slide-left-enter-from,
.vc-slide-left-leave-to,
.vc-slide-right-enter-from,
.vc-slide-right-leave-to,
.vc-slide-up-enter-from,
.vc-slide-up-leave-to,
.vc-slide-down-enter-from,
.vc-slide-down-leave-to,
.vc-slide-fade-enter-from,
.vc-slide-fade-leave-to {
  opacity: 0;
}
.vc-slide-left-enter-from,
.vc-slide-right-leave-to,
.vc-slide-fade-enter-from.direction-left,
.vc-slide-fade-leave-to.direction-left {
  -webkit-transform: translateX(var(--vc-slide-translate));
          transform: translateX(var(--vc-slide-translate));
}
.vc-slide-right-enter-from,
.vc-slide-left-leave-to,
.vc-slide-fade-enter-from.direction-right,
.vc-slide-fade-leave-to.direction-right {
  -webkit-transform: translateX(calc(-1 * var(--vc-slide-translate)));
          transform: translateX(calc(-1 * var(--vc-slide-translate)));
}
.vc-slide-up-enter-from,
.vc-slide-down-leave-to,
.vc-slide-fade-enter-from.direction-top,
.vc-slide-fade-leave-to.direction-top {
  -webkit-transform: translateY(var(--vc-slide-translate));
          transform: translateY(var(--vc-slide-translate));
}
.vc-slide-down-enter-from,
.vc-slide-up-leave-to,
.vc-slide-fade-enter-from.direction-bottom,
.vc-slide-fade-leave-to.direction-bottom {
  -webkit-transform: translateY(calc(-1 * var(--vc-slide-translate)));
          transform: translateY(calc(-1 * var(--vc-slide-translate)));
}
:root {
  --vc-white: #ffffff;
  --vc-black: #000000;

  --vc-gray-50: #f8fafc;
  --vc-gray-100: #f1f5f9;
  --vc-gray-200: #e2e8f0;
  --vc-gray-300: #cbd5e1;
  --vc-gray-400: #94a3b8;
  --vc-gray-500: #64748b;
  --vc-gray-600: #475569;
  --vc-gray-700: #334155;
  --vc-gray-800: #1e293b;
  --vc-gray-900: #0f172a;

  --vc-font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    'Helvetica', 'Arial', sans-serif;

  --vc-font-normal: 400;
  --vc-font-medium: 500;
  --vc-font-semibold: 600;
  --vc-font-bold: 700;

  --vc-text-2xs: 10px;
  --vc-text-xs: 12px;
  --vc-text-sm: 14px;
  --vc-text-base: 16px;
  --vc-text-lg: 18px;
  --vc-text-xl: 20px;
  --vc-text-2xl: 24px;

  --vc-leading-none: 1;
  --vc-leading-tight: 1.25;
  --vc-leading-snug: 1.375;
  --vc-leading-normal: 1.5;

  --vc-rounded: 0.25rem;
  --vc-rounded-md: 0.375rem;
  --vc-rounded-lg: 0.5rem;
  --vc-rounded-full: 9999px;

  --vc-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --vc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --vc-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  --vc-slide-translate: 22px;
  --vc-slide-duration: 0.15s;
  --vc-slide-timing: ease;

  --vc-day-content-transition: all 0.13s ease-in;
  --vc-weeknumber-offset-inside: 26px;
  --vc-weeknumber-offset-outside: 34px;
}
.vc-gray {
  --vc-accent-50: var(--vc-gray-50);
  --vc-accent-100: var(--vc-gray-100);
  --vc-accent-200: var(--vc-gray-200);
  --vc-accent-300: var(--vc-gray-300);
  --vc-accent-400: var(--vc-gray-400);
  --vc-accent-500: var(--vc-gray-500);
  --vc-accent-600: var(--vc-gray-600);
  --vc-accent-700: var(--vc-gray-700);
  --vc-accent-800: var(--vc-gray-800);
  --vc-accent-900: var(--vc-gray-900);
}
.vc-red {
  --vc-accent-50: #fef2f2;
  --vc-accent-100: #fee2e2;
  --vc-accent-200: #fecaca;
  --vc-accent-300: #fca5a5;
  --vc-accent-400: #f87171;
  --vc-accent-500: #ef4444;
  --vc-accent-600: #dc2626;
  --vc-accent-700: #b91c1c;
  --vc-accent-800: #991b1b;
  --vc-accent-900: #7f1d1d;
}
.vc-orange {
  --vc-accent-50: #fff7ed;
  --vc-accent-100: #ffedd5;
  --vc-accent-200: #fed7aa;
  --vc-accent-300: #fdba74;
  --vc-accent-400: #fb923c;
  --vc-accent-500: #f97316;
  --vc-accent-600: #ea580c;
  --vc-accent-700: #c2410c;
  --vc-accent-800: #9a3412;
  --vc-accent-900: #7c2d12;
}
.vc-yellow {
  --vc-accent-50: #fefce8;
  --vc-accent-100: #fef9c3;
  --vc-accent-200: #fef08a;
  --vc-accent-300: #fde047;
  --vc-accent-400: #facc15;
  --vc-accent-500: #eab308;
  --vc-accent-600: #ca8a04;
  --vc-accent-700: #a16207;
  --vc-accent-800: #854d0e;
  --vc-accent-900: #713f12;
}
.vc-green {
  --vc-accent-50: #f0fdf4;
  --vc-accent-100: #dcfce7;
  --vc-accent-200: #bbf7d0;
  --vc-accent-300: #86efac;
  --vc-accent-400: #4ade80;
  --vc-accent-500: #22c55e;
  --vc-accent-600: #16a34a;
  --vc-accent-700: #15803d;
  --vc-accent-800: #166534;
  --vc-accent-900: #14532d;
}
.vc-teal {
  --vc-accent-50: #f0fdfa;
  --vc-accent-100: #ccfbf1;
  --vc-accent-200: #99f6e4;
  --vc-accent-300: #5eead4;
  --vc-accent-400: #2dd4bf;
  --vc-accent-500: #14b8a6;
  --vc-accent-600: #0d9488;
  --vc-accent-700: #0f766e;
  --vc-accent-800: #115e59;
  --vc-accent-900: #134e4a;
}
.vc-blue {
  --vc-accent-50: #eff6ff;
  --vc-accent-100: #dbeafe;
  --vc-accent-200: #bfdbfe;
  --vc-accent-300: #93c5fd;
  --vc-accent-400: #60a5fa;
  --vc-accent-500: #3b82f6;
  --vc-accent-600: #2563eb;
  --vc-accent-700: #1d4ed8;
  --vc-accent-800: #1e40af;
  --vc-accent-900: #1e3a8a;
}
.vc-indigo {
  --vc-accent-50: #eef2ff;
  --vc-accent-100: #e0e7ff;
  --vc-accent-200: #c7d2fe;
  --vc-accent-300: #a5b4fc;
  --vc-accent-400: #818cf8;
  --vc-accent-500: #6366f1;
  --vc-accent-600: #4f46e5;
  --vc-accent-700: #4338ca;
  --vc-accent-800: #3730a3;
  --vc-accent-900: #312e81;
}
.vc-purple {
  --vc-accent-50: #faf5ff;
  --vc-accent-100: #f3e8ff;
  --vc-accent-200: #e9d5ff;
  --vc-accent-300: #d8b4fe;
  --vc-accent-400: #c084fc;
  --vc-accent-500: #a855f7;
  --vc-accent-600: #9333ea;
  --vc-accent-700: #7e22ce;
  --vc-accent-800: #6b21a8;
  --vc-accent-900: #581c87;
}
.vc-pink {
  --vc-accent-50: #fdf2f8;
  --vc-accent-100: #fce7f3;
  --vc-accent-200: #fbcfe8;
  --vc-accent-300: #f9a8d4;
  --vc-accent-400: #f472b6;
  --vc-accent-500: #ec4899;
  --vc-accent-600: #db2777;
  --vc-accent-700: #be185d;
  --vc-accent-800: #9d174d;
  --vc-accent-900: #831843;
}
.vc-focus:focus-within {
    outline: 0;
    box-shadow: var(--vc-focus-ring);
}
.vc-light {
  /* Base */
  --vc-color: var(--vc-gray-900);
  --vc-bg: var(--vc-white);
  --vc-border: var(--vc-gray-300);
  --vc-hover-bg: hsla(211, 25%, 84%, 0.3);
  --vc-focus-ring: 0 0 0 2px rgb(59, 131, 246, 0.4);
  /* Calendar header */
  --vc-header-arrow-color: var(--vc-gray-500);
  --vc-header-arrow-hover-bg: var(--vc-gray-200);
  --vc-header-title-color: var(--vc-gray-900);
  /* Calendar weekdays */
  --vc-weekday-color: var(--vc-gray-500);
  /* Calendar weeknumbers */
  --vc-weeknumber-color: var(--vc-gray-400);
  /* Calendar nav */
  --vc-nav-hover-bg: var(--vc-gray-200);
  --vc-nav-title-color: var(--vc-gray-900);
  --vc-nav-item-hover-box-shadow: none;
  --vc-nav-item-active-color: var(--vc-white);
  --vc-nav-item-active-bg: var(--vc-accent-500);
  --vc-nav-item-active-box-shadow: var(--vc-shadow);
  --vc-nav-item-current-color: var(--vc-accent-600);
  /* Calendar day popover */
  --vc-day-popover-container-color: var(--vc-white);
  --vc-day-popover-container-bg: var(--vc-gray-800);
  --vc-day-popover-container-border: var(--vc-gray-700);
  --vc-day-popover-header-color: var(--vc-gray-700);
  /* Popover content */
  --vc-popover-content-color: var(--vc-gray-900);
  --vc-popover-content-bg: var(--vc-gray-50);
  --vc-popover-content-border: var(--vc-gray-300);
  /* Time picker */
  --vc-time-picker-border: var(--vc-gray-300);
  --vc-time-weekday-color: var(--vc-gray-700);
  --vc-time-month-color: var(--vc-accent-600);
  --vc-time-day-color: var(--vc-accent-600);
  --vc-time-year-color: var(--vc-gray-500);
  /* Time select group */
  --vc-time-select-group-bg: var(--vc-gray-50);
  --vc-time-select-group-border: var(--vc-gray-300);
  --vc-time-select-group-icon-color: var(--vc-accent-500);
  /* Base select */
  --vc-select-color: var(--vc-gray-900);
  --vc-select-bg: var(--vc-gray-100);
  --vc-select-hover-bg: var(--vc-gray-200);
  /* Calendar day */
  --vc-day-content-hover-bg: var(--vc-hover-bg);
  --vc-day-content-disabled-color: var(--vc-gray-400);
}
/* Calendar attributes */
.vc-light.vc-attr,
  .vc-light .vc-attr {
    --vc-content-color: var(--vc-accent-600);
    --vc-highlight-outline-bg: var(--vc-white);
    --vc-highlight-outline-border: var(--vc-accent-600);
    --vc-highlight-outline-content-color: var(--vc-accent-700);
    --vc-highlight-light-bg: var(--vc-accent-200);
    --vc-highlight-light-content-color: var(--vc-accent-900);
    --vc-highlight-solid-bg: var(--vc-accent-600);
    --vc-highlight-solid-content-color: var(--vc-white);
    --vc-dot-bg: var(--vc-accent-600);
    --vc-bar-bg: var(--vc-accent-600);
}
.vc-dark {
  /* Base */
  --vc-color: var(--vc-white);
  --vc-bg: var(--vc-gray-900);
  --vc-border: var(--vc-gray-700);
  --vc-hover-bg: hsla(216, 15%, 52%, 0.3);
  --vc-focus-ring: 0 0 0 2px rgb(59 130 246 / 0.7);
  /* Calendar header */
  --vc-header-arrow-color: var(--vc-gray-300);
  --vc-header-arrow-hover-bg: var(--vc-gray-800);
  --vc-header-title-color: var(--vc-gray-100);
  /* Calendar weekdays */
  --vc-weekday-color: var(--vc-accent-200);
  /* Calendar weeknumbers */
  --vc-weeknumber-color: var(--vc-gray-500);
  /* Calendar nav */
  --vc-nav-hover-bg: var(--vc-gray-700);
  --vc-nav-title-color: var(--vc-gray-100);
  --vc-nav-item-hover-box-shadow: none;
  --vc-nav-item-active-color: var(--vc-white);
  --vc-nav-item-active-bg: var(--vc-accent-500);
  --vc-nav-item-active-box-shadow: none;
  --vc-nav-item-current-color: var(--vc-accent-400);
  /* Calendar day popover */
  --vc-day-popover-container-color: var(--vc-gray-800);
  --vc-day-popover-container-bg: var(--vc-white);
  --vc-day-popover-container-border: var(--vc-gray-100);
  --vc-day-popover-header-color: var(--vc-gray-300);
  /* Popover content */
  --vc-popover-content-color: var(--vc-white);
  --vc-popover-content-bg: var(--vc-gray-800);
  --vc-popover-content-border: var(--vc-gray-700);
  /* Time picker */
  --vc-time-picker-border: var(--vc-gray-700);
  --vc-time-weekday-color: var(--vc-gray-400);
  --vc-time-month-color: var(--vc-accent-400);
  --vc-time-day-color: var(--vc-accent-400);
  --vc-time-year-color: var(--vc-gray-500);
  /* Time select group */
  --vc-time-select-group-bg: var(--vc-gray-700);
  --vc-time-select-group-border: var(--vc-gray-500);
  --vc-time-select-group-icon-color: var(--vc-accent-400);
  /* Base select */
  --vc-select-color: var(--vc-gray-200);
  --vc-select-bg: var(--vc-gray-700);
  --vc-select-hover-bg: var(--vc-gray-600);
  /* Calendar day */
  --vc-day-content-hover-bg: var(--vc-hover-bg);
  --vc-day-content-disabled-color: var(--vc-gray-600);
}
/* Calendar attributes */
.vc-dark.vc-attr,
  .vc-dark .vc-attr {
    --vc-content-color: var(--vc-accent-500);
    --vc-highlight-outline-bg: var(--vc-gray-900);
    --vc-highlight-outline-border: var(--vc-accent-300);
    --vc-highlight-outline-content-color: var(--vc-accent-200);
    --vc-highlight-light-bg: var(--vc-accent-800);
    --vc-highlight-light-content-color: var(--vc-accent-100);
    --vc-highlight-solid-bg: var(--vc-accent-500);
    --vc-highlight-solid-content-color: var(--vc-white);
    --vc-dot-bg: var(--vc-accent-500);
    --vc-bar-bg: var(--vc-accent-500);
}
.vc-container {
  position: relative;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  width: -webkit-max-content;
  width: max-content;
  height: -webkit-max-content;
  height: max-content;
  font-family: var(--vc-font-family);
  color: var(--vc-color);
  background-color: var(--vc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
.vc-container,
  .vc-container * {
    box-sizing: border-box;
}
.vc-container:focus, .vc-container *:focus {
      outline: none;
}
/* Hides double border within popovers */
.vc-container .vc-container {
    border: none;
}
.vc-bordered {
  border: 1px solid;
  border-color: var(--vc-border);
  border-radius: var(--vc-rounded-lg);
}
.vc-expanded {
  min-width: 100%;
}
.vc-transparent {
  background-color: transparent;
}
.vc-date-picker-content {
  padding: 0;
  background-color: var(--vc-bg);
}
.vc-date-picker-content .vc-container {
    border: 0;
}
`);const AS={class:"vc-legends cb--small"},ES={class:"vc-legend cb--avail"},PS={class:"vc-legend cb--avail-selected"},OS={class:"vc-legend cb--avail-fewleft"},MS={class:"vc-legend cb--sold-out"},IS={__name:"cb-datepicker-single",emits:["date-changed"],setup(e,{emit:t}){const{widgetState:n,updateSelectedDate:r}=ae("widget"),{calendarState:o,displayedMonthAvailability:i,getFirstAvailableMonth:a,getFirstAvailableYear:l,getDateFromDateString:s}=ae("calendar"),{send:c,state:u}=ae("bookingFlowMachine"),p=t,v=pe(null),m=y(()=>u.value.context.allowCapacityOverride.value?null:{month:a(),year:l()}),g=y(()=>{var N;return(N=i.value)!=null&&N.isLastAvailableMonth?{month:o.displayedMonth,year:o.displayedYear}:null}),x=y(()=>n.todoConfiguration.date?s(n.todoConfiguration.date):null),_={id:y(()=>u.value.context.culture).value,masks:{weekdays:"WWW",input:"MMM D"}},w=y(()=>({month:o.displayedMonth,year:o.displayedYear}));function k(N){if(N&&N.length){var S=N[0];(o.displayedMonth!==S.month||o.displayedYear!==S.year)&&c({type:"CALENDAR_MONTH_CHANGED",payload:{month:S.month,year:S.year}})}}Re(()=>o.displayedMonth||o.displayedYear,()=>{v.value.move({month:o.displayedMonth,year:o.displayedYear})});const A=y(()=>x.value),M=y(()=>{let N=i.value;if(N!=null&&N.days){let F=[];for(var S=0;S<N.days.length;S++){let U=N.days[S],B={key:"availability-"+U.date,dates:new Date(U.date),customData:{price:U.price,isSoldOut:U.availability===0,fewLeft:U.fewLeft}};F.push(B)}return F}return[]}),I=N=>N.getUTCFullYear()+"-"+("0"+(N.getUTCMonth()+1)).slice(-2)+"-"+("0"+N.getUTCDate()).slice(-2);return(N,S)=>(C(),fe(O(df),{ref_key:"calendar",ref:v,modelValue:A.value,"onUpdate:modelValue":S[0]||(S[0]=F=>A.value=F),"initial-page":w.value,class:"cb--has-price","min-page":m.value,"max-page":g.value,locale:_,attributes:M.value,timezone:"UTC",expanded:"","trim-weeks":"",onDidMove:k},{"day-content":he(({day:F,attributes:U,dayEvents:B})=>[ee(xf,{day:F,attributes:U,events:B,onSelected:Z=>(X=>{let Y=I(X);r(Y),p("date-changed"),c("DATE_OR_DURATION_SELECTED")})(F.date)},null,8,["day","attributes","events","onSelected"])]),footer:he(()=>[h("div",AS,[h("div",ES,[S[1]||(S[1]=h("span",null,null,-1)),xe(" "+H(N.$t("TodoWidget.Available")),1)]),h("div",PS,[S[2]||(S[2]=h("span",null,null,-1)),xe(" "+H(N.$t("TodoWidget.Selected")),1)]),h("div",OS,[S[3]||(S[3]=h("span",null,null,-1)),xe(" "+H(N.$t("TodoWidget.FewLeft")),1)]),h("div",MS,[S[4]||(S[4]=h("span",null,null,-1)),xe(" "+H(N.$t("TodoWidget.SoldOut")),1)]),S[5]||(S[5]=h("div",{class:"vc-legend cb-text-muted"},null,-1))])]),_:1},8,["modelValue","initial-page","min-page","max-page","attributes"]))}};ti(`
.vc-popover-content-wrapper {
  --popover-horizontal-content-offset: 8px;
  --popover-vertical-content-offset: 10px;
  --popover-caret-horizontal-offset: 18px;
  --popover-caret-vertical-offset: 8px;

  position: absolute;
  display: block;
  outline: none;
  z-index: 10;
}
.vc-popover-content-wrapper:not(.is-interactive) {
    pointer-events: none;
}
.vc-popover-content {
  position: relative;
  color: var(--vc-popover-content-color);
  font-weight: var(--vc-font-medium);
  background-color: var(--vc-popover-content-bg);
  border: 1px solid;
  border-color: var(--vc-popover-content-border);
  border-radius: var(--vc-rounded-lg);
  padding: 4px;
  outline: none;
  z-index: 10;
  box-shadow: var(--vc-shadow-lg);
}
.vc-popover-content.direction-bottom {
    margin-top: var(--popover-vertical-content-offset);
}
.vc-popover-content.direction-top {
    margin-bottom: var(--popover-vertical-content-offset);
}
.vc-popover-content.direction-left {
    margin-right: var(--popover-horizontal-content-offset);
}
.vc-popover-content.direction-right {
    margin-left: var(--popover-horizontal-content-offset);
}
.vc-popover-caret {
  content: '';
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  border-top: inherit;
  border-left: inherit;
  background-color: inherit;
  z-index: -1;
}
.vc-popover-caret.direction-bottom {
    top: 0;
}
.vc-popover-caret.direction-bottom.align-left {
      -webkit-transform: translateY(-50%) rotate(45deg);
              transform: translateY(-50%) rotate(45deg);
}
.vc-popover-caret.direction-bottom.align-center {
      -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
              transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
.vc-popover-caret.direction-bottom.align-right {
      -webkit-transform: translateY(-50%) rotate(45deg);
              transform: translateY(-50%) rotate(45deg);
}
.vc-popover-caret.direction-top {
    top: 100%;
}
.vc-popover-caret.direction-top.align-left {
      -webkit-transform: translateY(-50%) rotate(-135deg);
              transform: translateY(-50%) rotate(-135deg);
}
.vc-popover-caret.direction-top.align-center {
      -webkit-transform: translateX(-50%) translateY(-50%) rotate(-135deg);
              transform: translateX(-50%) translateY(-50%) rotate(-135deg);
}
.vc-popover-caret.direction-top.align-right {
      -webkit-transform: translateY(-50%) rotate(-135deg);
              transform: translateY(-50%) rotate(-135deg);
}
.vc-popover-caret.direction-left {
    left: 100%;
}
.vc-popover-caret.direction-left.align-top {
      -webkit-transform: translateX(-50%) rotate(135deg);
              transform: translateX(-50%) rotate(135deg);
}
.vc-popover-caret.direction-left.align-middle {
      -webkit-transform: translateY(-50%) translateX(-50%) rotate(135deg);
              transform: translateY(-50%) translateX(-50%) rotate(135deg);
}
.vc-popover-caret.direction-left.align-bottom {
      -webkit-transform: translateX(-50%) rotate(135deg);
              transform: translateX(-50%) rotate(135deg);
}
.vc-popover-caret.direction-right {
    left: 0;
}
.vc-popover-caret.direction-right.align-top {
      -webkit-transform: translateX(-50%) rotate(-45deg);
              transform: translateX(-50%) rotate(-45deg);
}
.vc-popover-caret.direction-right.align-middle {
      -webkit-transform: translateY(-50%) translateX(-50%) rotate(-45deg);
              transform: translateY(-50%) translateX(-50%) rotate(-45deg);
}
.vc-popover-caret.direction-right.align-bottom {
      -webkit-transform: translateX(-50%) rotate(-45deg);
              transform: translateX(-50%) rotate(-45deg);
}
.vc-popover-caret.align-left {
    left: var(--popover-caret-horizontal-offset);
}
.vc-popover-caret.align-center {
    left: 50%;
}
.vc-popover-caret.align-right {
    right: var(--popover-caret-horizontal-offset);
}
.vc-popover-caret.align-top {
    top: var(--popover-caret-vertical-offset);
}
.vc-popover-caret.align-middle {
    top: 50%;
}
.vc-popover-caret.align-bottom {
    bottom: var(--popover-caret-vertical-offset);
}
.vc-day-popover-row {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  transition: var(--vc-day-content-transition);
}
.vc-day-popover-row-indicator {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-flex-grow: 0;
      -ms-flex-positive: 0;
          flex-grow: 0;
  width: 15px;
}
.vc-day-popover-row-indicator span {
    transition: var(--vc-day-content-transition);
}
.vc-day-popover-row-label {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-flex-wrap: none;
      -ms-flex-wrap: none;
          flex-wrap: none;
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  width: -webkit-max-content;
  width: max-content;
  margin-left: 4px;
  margin-right: 4px;
  font-size: var(--vc-text-xs);
  line-height: var(--vc-leading-normal);
}
.vc-day-popover-row-highlight {
  width: 8px;
  height: 5px;
  border-radius: 3px;
}
.vc-day-popover-row-dot {
}
.vc-day-popover-row-bar {
  width: 10px;
  height: 3px;
}
.vc-base-icon {
  display: inline-block;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.vc-header {
  display: grid;
  grid-gap: 4px;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  height: 30px;
  margin-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}
.vc-header.is-lg {
    font-size: var(--vc-text-lg);
}
.vc-header.is-xl {
    font-size: var(--vc-text-xl);
}
.vc-header.is-2xl {
    font-size: var(--vc-text-2xl);
}
.vc-header .vc-title-wrapper {
    grid-row: 1;
    grid-column: title;
}
.vc-header .vc-prev {
    grid-row: 1;
    grid-column: prev;
}
.vc-header .vc-next {
    grid-row: 1;
    grid-column: next;
}
.vc-header .vc-title,
  .vc-header .vc-prev,
  .vc-header .vc-next {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    border: 0;
    border-radius: var(--vc-rounded);
    pointer-events: auto;
    -webkit-user-select: none;
        -ms-user-select: none;
            user-select: none;
    cursor: pointer;
}
.vc-header .vc-title {
    color: var(--vc-header-title-color);
    font-weight: var(--vc-font-semibold);
    white-space: nowrap;
    padding: 0 8px;
    margin: 0;
    line-height: 30px;
}
.vc-header .vc-title:hover {
      opacity: 0.75;
}
.vc-header .vc-arrow {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    color: var(--vc-header-arrow-color);
    width: 28px;
    height: 30px;
    margin: 0;
    padding: 0;
}
.vc-header .vc-arrow:hover {
      background: var(--vc-header-arrow-hover-bg);
}
.vc-header .vc-arrow:disabled {
      opacity: 0.25;
      pointer-events: none;
}
.vc-nav-header {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.vc-nav-title,
.vc-nav-arrow,
.vc-nav-item {
  font-size: var(--vc-text-sm);
  margin: 0;
  cursor: pointer;
  -webkit-user-select: none;
      -ms-user-select: none;
          user-select: none;
  border: 0;
  border-radius: var(--vc-rounded);
  white-space: nowrap;
}
.vc-nav-title:hover, .vc-nav-arrow:hover, .vc-nav-item:hover {
    background-color: var(--vc-nav-hover-bg);
}
.vc-nav-title:disabled, .vc-nav-arrow:disabled, .vc-nav-item:disabled {
    opacity: 0.25;
    pointer-events: none;
}
.vc-nav-title {
  color: var(--vc-nav-title-color);
  font-weight: var(--vc-font-bold);
  line-height: var(--vc-leading-snug);
  height: 30px;
  padding: 0 6px;
}
.vc-nav-arrow {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  color: var(--vc-header-arrow-color);
  width: 26px;
  height: 30px;
  padding: 0;
}
.vc-nav-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-row-gap: 2px;
  grid-column-gap: 5px;
  margin-top: 2px;
}
.vc-nav-item {
  width: 48px;
  text-align: center;
  font-weight: var(--vc-font-semibold);
  line-height: var(--vc-leading-snug);
  padding: 6px 0;
}
.vc-nav-item.is-active {
    color: var(--vc-nav-item-active-color);
    background-color: var(--vc-nav-item-active-bg);
    font-weight: var(--vc-font-bold);
}
.vc-nav-item.is-active:not(:focus) {
      box-shadow: var(--vc-nav-item-active-box-shadow);
}
.vc-nav-item.is-current {
    color: var(--vc-nav-item-current-color);
}
.vc-day {
  position: relative;
  min-height: 32px;
  z-index: 1;
  /* &.is-not-in-month * {
    opacity: 0;
    pointer-events: none;
  } */
}
.vc-monthly .is-not-in-month * {
  opacity: 0;
  pointer-events: none;
}
.vc-day-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}
.vc-day-box-center-center {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
}
.vc-day-box-left-center {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: flex-start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transform-origin: 0% 50%;
          transform-origin: 0% 50%;
}
.vc-day-box-right-center {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: flex-end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transform-origin: 100% 50%;
          transform-origin: 100% 50%;
}
.vc-day-box-center-bottom {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: flex-end;
      -ms-flex-align: end;
          align-items: flex-end;
}
.vc-day-content {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: var(--vc-text-sm);
  font-weight: var(--vc-font-medium);
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: var(--vc-rounded-full);
  -webkit-user-select: none;
      -ms-user-select: none;
          user-select: none;
  cursor: pointer;
}
.vc-day-content:hover {
    background-color: var(--vc-day-content-hover-bg);
}
.vc-day-content.vc-disabled {
    color: var(--vc-day-content-disabled-color);
}
/* ----Content---- */
.vc-content:not(.vc-base) {
  font-weight: var(--vc-font-bold);
  color: var(--vc-content-color);
}
/* ----Highlights---- */
.vc-highlights {
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.vc-highlight {
  width: 28px;
  height: 28px;
}
.vc-highlight.vc-highlight-base-start {
    width: 50% !important;
    border-radius: 0 !important;
    border-right-width: 0 !important;
}
.vc-highlight.vc-highlight-base-end {
    width: 50% !important;
    border-radius: 0 !important;
    border-left-width: 0 !important;
}
.vc-highlight.vc-highlight-base-middle {
    width: 100%;
    border-radius: 0 !important;
    border-left-width: 0 !important;
    border-right-width: 0 !important;
    margin: 0 -1px;
}
.vc-highlight-bg-outline,
.vc-highlight-bg-none {
  background-color: var(--vc-highlight-outline-bg);
  border: 2px solid;
  border-color: var(--vc-highlight-outline-border);
  border-radius: var(--vc-rounded-full);
}
.vc-highlight-bg-light {
  background-color: var(--vc-highlight-light-bg);
  border-radius: var(--vc-rounded-full);
}
.vc-highlight-bg-solid {
  background-color: var(--vc-highlight-solid-bg);
  border-radius: var(--vc-rounded-full);
}
.vc-highlight-content-outline,
.vc-highlight-content-none {
  font-weight: var(--vc-font-bold);
  color: var(--vc-highlight-outline-content-color);
}
.vc-highlight-content-light {
  font-weight: var(--vc-font-bold);
  color: var(--vc-highlight-light-content-color);
}
.vc-highlight-content-solid {
  font-weight: var(--vc-font-bold);
  color: var(--vc-highlight-solid-content-color);
}
/* ----Dots---- */
.vc-dots {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}
.vc-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  transition: var(--vc-day-content-transition);
}
.vc-dot:not(:last-child) {
    margin-right: 3px;
}
/* ----Bars---- */
.vc-bars {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: flex-start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  width: 75%;
}
.vc-bar {
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  height: 3px;
  transition: var(--vc-day-content-transition);
}
.vc-dot {
  background-color: var(--vc-dot-bg);
}
.vc-bar {
  background-color: var(--vc-bar-bg);
}
.vc-pane {
  min-width: 250px;
}
.vc-weeknumber {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
}
.vc-weeknumber.is-left {
    left: calc(var(--vc-weeknumber-offset-inside) * -1);
}
.vc-weeknumber.is-right {
    right: calc(var(--vc-weeknumber-offset-inside) * -1);
}
.vc-weeknumber.is-left-outside {
    left: calc(var(--vc-weeknumber-offset-outside) * -1);
}
.vc-weeknumber.is-right-outside {
    right: calc(var(--vc-weeknumber-offset-outside) * -1);
}
.vc-weeknumber-content {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: var(--vc-text-xs);
  font-weight: var(--vc-font-medium);
  font-style: italic;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: var(--vc-weeknumber-color);
  -webkit-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.vc-weeks {
  position: relative;
  /* overflow: auto; */
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  min-width: 232px;
}
.vc-weeks.vc-show-weeknumbers-left {
    margin-left: var(--vc-weeknumber-offset-inside);
}
.vc-weeks.vc-show-weeknumbers-right {
    margin-right: var(--vc-weeknumber-offset-inside);
}
.vc-weekday {
  text-align: center;
  color: var(--vc-weekday-color);
  font-size: var(--vc-text-sm);
  font-weight: var(--vc-font-bold);
  line-height: 14px;
  padding-top: 4px;
  padding-bottom: 8px;
  cursor: default;
  -webkit-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.vc-week,
.vc-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: relative;
}
.vc-pane-container {
  width: 100%;
  position: relative;
}
.vc-pane-container.in-transition {
    overflow: hidden;
}
.vc-pane-layout {
  display: grid;
}
.vc-pane-header-wrapper {
  position: absolute;
  top: 0;
  width: 100%;
  pointer-events: none;
}
.vc-day-popover-container {
  font-size: var(--vc-text-xs);
  font-weight: var(--vc-font-medium);
}
.vc-day-popover-header {
  font-size: var(--vc-text-xs);
  color: var(--vc-day-popover-header-color);
  font-weight: var(--vc-font-semibold);
  text-align: center;
}
.vc-base-select {
  position: relative;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  height: 30px;
  font-size: var(--vc-text-base);
  font-weight: var(--vc-font-medium);
}
.vc-base-select.vc-has-icon select {
      padding: 0 27px 0 9px;
}
.vc-base-select.vc-has-icon .vc-base-sizer {
      padding: 0 28px 0 10px;
}
.vc-base-select.vc-fit-content select {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
}
.vc-base-select .vc-base-icon {
    position: absolute;
    top: 6px;
    right: 4px;
    opacity: 0.6;
    pointer-events: none;
}
.vc-base-select .vc-base-sizer {
    font-size: var(--vc-text-base);
    font-weight: var(--vc-font-medium);
    color: transparent;
    padding: 0px 8px;
    margin: 0;
}
.vc-base-select select {
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    color: var(--vc-select-color);
    display: block;
    -webkit-appearance: none;
            appearance: none;
    background-color: var(--vc-select-bg);
    border-radius: var(--vc-rounded);
    height: 30px;
    width: -webkit-max-content;
    width: max-content;
    padding: 0px 7px;
    margin: 0;
    line-height: var(--leading-none);
    text-indent: 0px;
    background-image: none;
    cursor: pointer;
    text-align: center;
}
.vc-base-select select:hover {
      background-color: var(--vc-select-hover-bg);
}
.vc-base-select select.vc-align-left {
      text-align: left;
}
.vc-base-select select.vc-align-right {
      text-align: right;
}
.vc-time-picker {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 8px 4px;
}
.vc-time-picker.vc-invalid {
    pointer-events: none;
    opacity: 0.5;
}
.vc-time-picker.vc-attached {
    border-top: 1px solid var(--vc-time-picker-border);
}
.vc-time-picker > * + * {
    margin-top: 4px;
}
.vc-time-header {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: var(--vc-text-sm);
  font-weight: var(--vc-font-semibold);
  text-transform: uppercase;
  margin-top: -4px;
  padding-left: 4px;
  padding-right: 4px;
  line-height: 21px;
}
.vc-time-select-group {
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0 4px;
  background: var(--vc-time-select-group-bg);
  border-radius: var(--vc-rounded-md);
  border: 1px solid var(--vc-time-select-group-border);
}
.vc-time-select-group .vc-base-icon {
    margin-right: 4px;
    color: var(--vc-time-select-group-icon-color);
}
.vc-time-select-group select {
    background: transparent;
    padding: 0px 4px;
}
.vc-time-weekday {
  color: var(--vc-time-weekday-color);
  letter-spacing: var(--tracking-wide);
}
.vc-time-month {
  color: var(--vc-time-month-color);
  margin-left: 8px;
}
.vc-time-day {
  color: var(--vc-time-day-color);
  margin-left: 4px;
}
.vc-time-year {
  color: var(--vc-time-year-color);
  margin-left: 8px;
}
.vc-time-colon {
  margin: 0 1px 2px 2px;
}
.vc-time-decimal {
  margin: 0 0 0 1px;
}
.vc-none-enter-active,
.vc-none-leave-active {
  transition-duration: 0s;
}
.vc-fade-enter-active,
.vc-fade-leave-active,
.vc-slide-left-enter-active,
.vc-slide-left-leave-active,
.vc-slide-right-enter-active,
.vc-slide-right-leave-active,
.vc-slide-up-enter-active,
.vc-slide-up-leave-active,
.vc-slide-down-enter-active,
.vc-slide-down-leave-active,
.vc-slide-fade-enter-active,
.vc-slide-fade-leave-active {
  transition: opacity var(--vc-slide-duration) var(--vc-slide-timing),
    -webkit-transform var(--vc-slide-duration) var(--vc-slide-timing);
  transition: transform var(--vc-slide-duration) var(--vc-slide-timing),
    opacity var(--vc-slide-duration) var(--vc-slide-timing);
  transition: transform var(--vc-slide-duration) var(--vc-slide-timing),
    opacity var(--vc-slide-duration) var(--vc-slide-timing),
    -webkit-transform var(--vc-slide-duration) var(--vc-slide-timing);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  pointer-events: none;
}
.vc-none-leave-active,
.vc-fade-leave-active,
.vc-slide-left-leave-active,
.vc-slide-right-leave-active,
.vc-slide-up-leave-active,
.vc-slide-down-leave-active {
  position: absolute !important;
  width: 100%;
}
.vc-none-enter-from,
.vc-none-leave-to,
.vc-fade-enter-from,
.vc-fade-leave-to,
.vc-slide-left-enter-from,
.vc-slide-left-leave-to,
.vc-slide-right-enter-from,
.vc-slide-right-leave-to,
.vc-slide-up-enter-from,
.vc-slide-up-leave-to,
.vc-slide-down-enter-from,
.vc-slide-down-leave-to,
.vc-slide-fade-enter-from,
.vc-slide-fade-leave-to {
  opacity: 0;
}
.vc-slide-left-enter-from,
.vc-slide-right-leave-to,
.vc-slide-fade-enter-from.direction-left,
.vc-slide-fade-leave-to.direction-left {
  -webkit-transform: translateX(var(--vc-slide-translate));
          transform: translateX(var(--vc-slide-translate));
}
.vc-slide-right-enter-from,
.vc-slide-left-leave-to,
.vc-slide-fade-enter-from.direction-right,
.vc-slide-fade-leave-to.direction-right {
  -webkit-transform: translateX(calc(-1 * var(--vc-slide-translate)));
          transform: translateX(calc(-1 * var(--vc-slide-translate)));
}
.vc-slide-up-enter-from,
.vc-slide-down-leave-to,
.vc-slide-fade-enter-from.direction-top,
.vc-slide-fade-leave-to.direction-top {
  -webkit-transform: translateY(var(--vc-slide-translate));
          transform: translateY(var(--vc-slide-translate));
}
.vc-slide-down-enter-from,
.vc-slide-up-leave-to,
.vc-slide-fade-enter-from.direction-bottom,
.vc-slide-fade-leave-to.direction-bottom {
  -webkit-transform: translateY(calc(-1 * var(--vc-slide-translate)));
          transform: translateY(calc(-1 * var(--vc-slide-translate)));
}
:root {
  --vc-white: #ffffff;
  --vc-black: #000000;

  --vc-gray-50: #f8fafc;
  --vc-gray-100: #f1f5f9;
  --vc-gray-200: #e2e8f0;
  --vc-gray-300: #cbd5e1;
  --vc-gray-400: #94a3b8;
  --vc-gray-500: #64748b;
  --vc-gray-600: #475569;
  --vc-gray-700: #334155;
  --vc-gray-800: #1e293b;
  --vc-gray-900: #0f172a;

  --vc-font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    'Helvetica', 'Arial', sans-serif;

  --vc-font-normal: 400;
  --vc-font-medium: 500;
  --vc-font-semibold: 600;
  --vc-font-bold: 700;

  --vc-text-2xs: 10px;
  --vc-text-xs: 12px;
  --vc-text-sm: 14px;
  --vc-text-base: 16px;
  --vc-text-lg: 18px;
  --vc-text-xl: 20px;
  --vc-text-2xl: 24px;

  --vc-leading-none: 1;
  --vc-leading-tight: 1.25;
  --vc-leading-snug: 1.375;
  --vc-leading-normal: 1.5;

  --vc-rounded: 0.25rem;
  --vc-rounded-md: 0.375rem;
  --vc-rounded-lg: 0.5rem;
  --vc-rounded-full: 9999px;

  --vc-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --vc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --vc-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  --vc-slide-translate: 22px;
  --vc-slide-duration: 0.15s;
  --vc-slide-timing: ease;

  --vc-day-content-transition: all 0.13s ease-in;
  --vc-weeknumber-offset-inside: 26px;
  --vc-weeknumber-offset-outside: 34px;
}
.vc-gray {
  --vc-accent-50: var(--vc-gray-50);
  --vc-accent-100: var(--vc-gray-100);
  --vc-accent-200: var(--vc-gray-200);
  --vc-accent-300: var(--vc-gray-300);
  --vc-accent-400: var(--vc-gray-400);
  --vc-accent-500: var(--vc-gray-500);
  --vc-accent-600: var(--vc-gray-600);
  --vc-accent-700: var(--vc-gray-700);
  --vc-accent-800: var(--vc-gray-800);
  --vc-accent-900: var(--vc-gray-900);
}
.vc-red {
  --vc-accent-50: #fef2f2;
  --vc-accent-100: #fee2e2;
  --vc-accent-200: #fecaca;
  --vc-accent-300: #fca5a5;
  --vc-accent-400: #f87171;
  --vc-accent-500: #ef4444;
  --vc-accent-600: #dc2626;
  --vc-accent-700: #b91c1c;
  --vc-accent-800: #991b1b;
  --vc-accent-900: #7f1d1d;
}
.vc-orange {
  --vc-accent-50: #fff7ed;
  --vc-accent-100: #ffedd5;
  --vc-accent-200: #fed7aa;
  --vc-accent-300: #fdba74;
  --vc-accent-400: #fb923c;
  --vc-accent-500: #f97316;
  --vc-accent-600: #ea580c;
  --vc-accent-700: #c2410c;
  --vc-accent-800: #9a3412;
  --vc-accent-900: #7c2d12;
}
.vc-yellow {
  --vc-accent-50: #fefce8;
  --vc-accent-100: #fef9c3;
  --vc-accent-200: #fef08a;
  --vc-accent-300: #fde047;
  --vc-accent-400: #facc15;
  --vc-accent-500: #eab308;
  --vc-accent-600: #ca8a04;
  --vc-accent-700: #a16207;
  --vc-accent-800: #854d0e;
  --vc-accent-900: #713f12;
}
.vc-green {
  --vc-accent-50: #f0fdf4;
  --vc-accent-100: #dcfce7;
  --vc-accent-200: #bbf7d0;
  --vc-accent-300: #86efac;
  --vc-accent-400: #4ade80;
  --vc-accent-500: #22c55e;
  --vc-accent-600: #16a34a;
  --vc-accent-700: #15803d;
  --vc-accent-800: #166534;
  --vc-accent-900: #14532d;
}
.vc-teal {
  --vc-accent-50: #f0fdfa;
  --vc-accent-100: #ccfbf1;
  --vc-accent-200: #99f6e4;
  --vc-accent-300: #5eead4;
  --vc-accent-400: #2dd4bf;
  --vc-accent-500: #14b8a6;
  --vc-accent-600: #0d9488;
  --vc-accent-700: #0f766e;
  --vc-accent-800: #115e59;
  --vc-accent-900: #134e4a;
}
.vc-blue {
  --vc-accent-50: #eff6ff;
  --vc-accent-100: #dbeafe;
  --vc-accent-200: #bfdbfe;
  --vc-accent-300: #93c5fd;
  --vc-accent-400: #60a5fa;
  --vc-accent-500: #3b82f6;
  --vc-accent-600: #2563eb;
  --vc-accent-700: #1d4ed8;
  --vc-accent-800: #1e40af;
  --vc-accent-900: #1e3a8a;
}
.vc-indigo {
  --vc-accent-50: #eef2ff;
  --vc-accent-100: #e0e7ff;
  --vc-accent-200: #c7d2fe;
  --vc-accent-300: #a5b4fc;
  --vc-accent-400: #818cf8;
  --vc-accent-500: #6366f1;
  --vc-accent-600: #4f46e5;
  --vc-accent-700: #4338ca;
  --vc-accent-800: #3730a3;
  --vc-accent-900: #312e81;
}
.vc-purple {
  --vc-accent-50: #faf5ff;
  --vc-accent-100: #f3e8ff;
  --vc-accent-200: #e9d5ff;
  --vc-accent-300: #d8b4fe;
  --vc-accent-400: #c084fc;
  --vc-accent-500: #a855f7;
  --vc-accent-600: #9333ea;
  --vc-accent-700: #7e22ce;
  --vc-accent-800: #6b21a8;
  --vc-accent-900: #581c87;
}
.vc-pink {
  --vc-accent-50: #fdf2f8;
  --vc-accent-100: #fce7f3;
  --vc-accent-200: #fbcfe8;
  --vc-accent-300: #f9a8d4;
  --vc-accent-400: #f472b6;
  --vc-accent-500: #ec4899;
  --vc-accent-600: #db2777;
  --vc-accent-700: #be185d;
  --vc-accent-800: #9d174d;
  --vc-accent-900: #831843;
}
.vc-focus:focus-within {
    outline: 0;
    box-shadow: var(--vc-focus-ring);
}
.vc-light {
  /* Base */
  --vc-color: var(--vc-gray-900);
  --vc-bg: var(--vc-white);
  --vc-border: var(--vc-gray-300);
  --vc-hover-bg: hsla(211, 25%, 84%, 0.3);
  --vc-focus-ring: 0 0 0 2px rgb(59, 131, 246, 0.4);
  /* Calendar header */
  --vc-header-arrow-color: var(--vc-gray-500);
  --vc-header-arrow-hover-bg: var(--vc-gray-200);
  --vc-header-title-color: var(--vc-gray-900);
  /* Calendar weekdays */
  --vc-weekday-color: var(--vc-gray-500);
  /* Calendar weeknumbers */
  --vc-weeknumber-color: var(--vc-gray-400);
  /* Calendar nav */
  --vc-nav-hover-bg: var(--vc-gray-200);
  --vc-nav-title-color: var(--vc-gray-900);
  --vc-nav-item-hover-box-shadow: none;
  --vc-nav-item-active-color: var(--vc-white);
  --vc-nav-item-active-bg: var(--vc-accent-500);
  --vc-nav-item-active-box-shadow: var(--vc-shadow);
  --vc-nav-item-current-color: var(--vc-accent-600);
  /* Calendar day popover */
  --vc-day-popover-container-color: var(--vc-white);
  --vc-day-popover-container-bg: var(--vc-gray-800);
  --vc-day-popover-container-border: var(--vc-gray-700);
  --vc-day-popover-header-color: var(--vc-gray-700);
  /* Popover content */
  --vc-popover-content-color: var(--vc-gray-900);
  --vc-popover-content-bg: var(--vc-gray-50);
  --vc-popover-content-border: var(--vc-gray-300);
  /* Time picker */
  --vc-time-picker-border: var(--vc-gray-300);
  --vc-time-weekday-color: var(--vc-gray-700);
  --vc-time-month-color: var(--vc-accent-600);
  --vc-time-day-color: var(--vc-accent-600);
  --vc-time-year-color: var(--vc-gray-500);
  /* Time select group */
  --vc-time-select-group-bg: var(--vc-gray-50);
  --vc-time-select-group-border: var(--vc-gray-300);
  --vc-time-select-group-icon-color: var(--vc-accent-500);
  /* Base select */
  --vc-select-color: var(--vc-gray-900);
  --vc-select-bg: var(--vc-gray-100);
  --vc-select-hover-bg: var(--vc-gray-200);
  /* Calendar day */
  --vc-day-content-hover-bg: var(--vc-hover-bg);
  --vc-day-content-disabled-color: var(--vc-gray-400);
}
/* Calendar attributes */
.vc-light.vc-attr,
  .vc-light .vc-attr {
    --vc-content-color: var(--vc-accent-600);
    --vc-highlight-outline-bg: var(--vc-white);
    --vc-highlight-outline-border: var(--vc-accent-600);
    --vc-highlight-outline-content-color: var(--vc-accent-700);
    --vc-highlight-light-bg: var(--vc-accent-200);
    --vc-highlight-light-content-color: var(--vc-accent-900);
    --vc-highlight-solid-bg: var(--vc-accent-600);
    --vc-highlight-solid-content-color: var(--vc-white);
    --vc-dot-bg: var(--vc-accent-600);
    --vc-bar-bg: var(--vc-accent-600);
}
.vc-dark {
  /* Base */
  --vc-color: var(--vc-white);
  --vc-bg: var(--vc-gray-900);
  --vc-border: var(--vc-gray-700);
  --vc-hover-bg: hsla(216, 15%, 52%, 0.3);
  --vc-focus-ring: 0 0 0 2px rgb(59 130 246 / 0.7);
  /* Calendar header */
  --vc-header-arrow-color: var(--vc-gray-300);
  --vc-header-arrow-hover-bg: var(--vc-gray-800);
  --vc-header-title-color: var(--vc-gray-100);
  /* Calendar weekdays */
  --vc-weekday-color: var(--vc-accent-200);
  /* Calendar weeknumbers */
  --vc-weeknumber-color: var(--vc-gray-500);
  /* Calendar nav */
  --vc-nav-hover-bg: var(--vc-gray-700);
  --vc-nav-title-color: var(--vc-gray-100);
  --vc-nav-item-hover-box-shadow: none;
  --vc-nav-item-active-color: var(--vc-white);
  --vc-nav-item-active-bg: var(--vc-accent-500);
  --vc-nav-item-active-box-shadow: none;
  --vc-nav-item-current-color: var(--vc-accent-400);
  /* Calendar day popover */
  --vc-day-popover-container-color: var(--vc-gray-800);
  --vc-day-popover-container-bg: var(--vc-white);
  --vc-day-popover-container-border: var(--vc-gray-100);
  --vc-day-popover-header-color: var(--vc-gray-300);
  /* Popover content */
  --vc-popover-content-color: var(--vc-white);
  --vc-popover-content-bg: var(--vc-gray-800);
  --vc-popover-content-border: var(--vc-gray-700);
  /* Time picker */
  --vc-time-picker-border: var(--vc-gray-700);
  --vc-time-weekday-color: var(--vc-gray-400);
  --vc-time-month-color: var(--vc-accent-400);
  --vc-time-day-color: var(--vc-accent-400);
  --vc-time-year-color: var(--vc-gray-500);
  /* Time select group */
  --vc-time-select-group-bg: var(--vc-gray-700);
  --vc-time-select-group-border: var(--vc-gray-500);
  --vc-time-select-group-icon-color: var(--vc-accent-400);
  /* Base select */
  --vc-select-color: var(--vc-gray-200);
  --vc-select-bg: var(--vc-gray-700);
  --vc-select-hover-bg: var(--vc-gray-600);
  /* Calendar day */
  --vc-day-content-hover-bg: var(--vc-hover-bg);
  --vc-day-content-disabled-color: var(--vc-gray-600);
}
/* Calendar attributes */
.vc-dark.vc-attr,
  .vc-dark .vc-attr {
    --vc-content-color: var(--vc-accent-500);
    --vc-highlight-outline-bg: var(--vc-gray-900);
    --vc-highlight-outline-border: var(--vc-accent-300);
    --vc-highlight-outline-content-color: var(--vc-accent-200);
    --vc-highlight-light-bg: var(--vc-accent-800);
    --vc-highlight-light-content-color: var(--vc-accent-100);
    --vc-highlight-solid-bg: var(--vc-accent-500);
    --vc-highlight-solid-content-color: var(--vc-white);
    --vc-dot-bg: var(--vc-accent-500);
    --vc-bar-bg: var(--vc-accent-500);
}
.vc-container {
  position: relative;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  width: -webkit-max-content;
  width: max-content;
  height: -webkit-max-content;
  height: max-content;
  font-family: var(--vc-font-family);
  color: var(--vc-color);
  background-color: var(--vc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
.vc-container,
  .vc-container * {
    box-sizing: border-box;
}
.vc-container:focus, .vc-container *:focus {
      outline: none;
}
/* Hides double border within popovers */
.vc-container .vc-container {
    border: none;
}
.vc-bordered {
  border: 1px solid;
  border-color: var(--vc-border);
  border-radius: var(--vc-rounded-lg);
}
.vc-expanded {
  min-width: 100%;
}
.vc-transparent {
  background-color: transparent;
}
.vc-date-picker-content {
  padding: 0;
  background-color: var(--vc-bg);
}
.vc-date-picker-content .vc-container {
    border: 0;
}
`);const _f={__name:"cb-datepicker",emits:["date-changed"],setup(e,{emit:t}){const{state:n}=ae("bookingFlowMachine"),r=t,o=y(()=>n.value.matches("calendar.type.duration")),i=y(()=>n.value.matches("calendar.type.singleDate")),a=y(()=>n.value.matches("calendar.display.initializingCalendar")||n.value.matches("calendar.display.updatingCalendar"));return(l,s)=>(C(),R(ge,null,[ee(O(km),{loading:a.value,class:"cb-test-calendar-spinner"},null,8,["loading"]),o.value?(C(),fe(TS,{key:0,onDateChanged:s[0]||(s[0]=c=>r("date-changed"))})):oe("",!0),i.value?(C(),fe(IS,{key:1,onDateChanged:s[1]||(s[1]=c=>r("date-changed"))})):oe("",!0)],64))}},LS={class:"cb-loader-custom",role:"status"},jS={__name:"cb-loader",props:{loading:{type:Boolean}},setup:e=>(t,n)=>Le((C(),R("i",LS,n[0]||(n[0]=[h("i",null,[h("i"),h("i"),h("i"),h("i"),h("i")],-1)]),512)),[[Ye,e.loading]])},RS=jS,$S={__name:"cb-button",props:{secondary:{type:Boolean},loading:{type:Boolean},active:{type:Boolean},disabled:{type:Boolean},iconOnly:{type:Boolean},size:{type:String,default:null,validator:e=>!e||["small","large"].indexOf(e)!==-1}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,o=y(()=>({"cb-btn":!0,"cb-btn-primary":!n.secondary,"cb-btn-secondary":n.secondary,"cb-btn-sm":n.size==="small","cb-btn-lg":n.size==="large","cb-btn-icon-only":n.iconOnly,"cb-loading-custom":n.loading,"cb-active":n.active,"cb-disabled":n.disabled})),i=a=>{n.disabled||r("click",a)};return(a,l)=>(C(),R("a",{class:we([o.value]),href:"javascript:void(0)",onClick:i},[h("span",null,[ot(a.$slots,"default")]),ee(O(RS),{loading:e.loading},null,8,["loading"])],2))}},ht=$S,NS=["type","value","name","placeholder","disabled"],FS={__name:"cb-text-input",props:{modelValue:{type:[String,Number,null],required:!0},name:{type:String,default:"Field"},placeholder:{type:String,default:null},success:{type:Boolean},error:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},locked:{type:Boolean},autoSelection:{type:Boolean},size:{type:String,default:null,validator:e=>!e||["small"].indexOf(e)!==-1},type:{type:String,default:"text",validator:e=>["text","number","password","tel","email"].indexOf(e)!==-1}},emits:["update:modelValue","validation-result"],setup(e,{emit:t}){const n=e,r=t,o=y(()=>n.success),i=y(()=>n.error),a=y(()=>n.loading),l=y(()=>({"cb-textinput-sm":n.size==="small","cb-invalid":i.value,"cb-valid":o.value,"cb-loading":a.value,"cb-disabled":n.disabled,"cb-locked":n.locked})),s=u=>{r("update:modelValue",u.target.value)},c=u=>{n.autoSelection&&u.target.select()};return(u,p)=>(C(),R("input",Zt(u.$attrs,{class:["cb-textinput",l.value],type:e.type,value:e.modelValue,name:e.name,placeholder:e.placeholder,disabled:e.locked,onInput:s,onClick:c}),null,16,NS))}},Kl=FS,YS={key:0},BS={key:1},VS={key:0},US={key:1,class:"cb-text-ph ph-lg",style:{width:"150px"}},WS={key:2},zS={key:0,class:"cb-framework",style:{"text-align":"left",width:"310px"}},HS={class:"cb-text-small"},GS={class:"cb-form-group",style:{"margin-top":"10px"}},qS={style:{display:"flex","justify-content":"space-between"}},ZS={class:"cb-text-icon cb-text-small cb-text-invalid",style:{"margin-top":"10px"}},XS={key:1,class:"cb-framework",style:{"text-align":"left",width:"310px"}},KS={key:0},JS=["innerHTML"],QS=["innerHTML"],e2={style:{"margin-top":"10px",display:"flex","justify-content":"space-between"}},t2={key:2,class:"cb-framework"},n2={style:{"margin-top":"10px",display:"flex","justify-content":"space-between"}},Jl={__name:"cb-promo-code",setup(e){const{widgetState:t,setPromoCodeInput:n}=ae("widget"),{state:r,send:o}=ae("bookingFlowMachine"),i=y({get:()=>t.promoCodeInput,set(w){n(w)}}),a=pe(null),l=pe(!1),s=y(()=>c.value||i.value===""),c=y(()=>r.value.matches("promocode.updatingStatus.validating")||r.value.hasTag("loading")||r.value.hasTag("updating")),u=y(()=>!c.value&&g.value&&g.value.name),p=y(()=>r.value.matches("promocode.validityStatus.valid")),v=y(()=>r.value.matches("promocode.validityStatus.invalid")),m=y(()=>!r.value.matches("promocode.validityStatus.valid")),g=y(()=>t.todoConfiguration.rateInfo),x=async()=>{o("PROMOCODE_VERIFY")},_=()=>{o("PROMOCODE_RESET")};return(w,k)=>(C(),R(ge,null,[m.value?(C(),R("div",YS,[h("a",{ref_key:"anchor",ref:a,class:"cb-text-icon cb-code cb-text-small",href:"javascript:void(0)",onClick:k[0]||(k[0]=A=>l.value=!l.value)},[k[6]||(k[6]=h("span",{class:"cb-icon-aws cb-icon-aws--stronger cb--lock"},null,-1)),h("b",null,H(w.$t("TodoWidget.IHaveACode")),1)],512)])):(C(),R("div",BS,[h("a",{ref_key:"anchor",ref:a,href:"javascript:void(0)",class:"cb-text-icon cb-code cb-text-small cb--active",onClick:k[1]||(k[1]=A=>l.value=!l.value)},[k[8]||(k[8]=h("span",{class:"cb-icon-aws cb-icon-aws--stronger cb--circle-info"},null,-1)),u.value?(C(),R("span",VS,H(w.$tf("TodoWidget.{0}IsUnlocked",g.value.name)),1)):c.value?(C(),R("span",US,k[7]||(k[7]=[h("span",null," ",-1)]))):(C(),R("span",WS,H(w.$t("TodoWidget.PromoCodeIsUnlocked")),1))],512)])),ee(O(Kr),{modelValue:l.value,"onUpdate:modelValue":k[5]||(k[5]=A=>l.value=A),anchor:a.value,placement:"top",alignment:"start",style:{"z-index":"10048"}},{default:he(()=>[m.value?(C(),R("div",zS,[h("p",HS,H(w.$t("TodoWidget.HowToEnter")),1),h("div",GS,[ee(O(Kl),{modelValue:i.value,"onUpdate:modelValue":k[2]||(k[2]=A=>i.value=A),size:"small",placeholder:w.$t("TodoWidget.EnterYourCode"),success:p.value,error:v.value,loading:c.value,disabled:c.value},null,8,["modelValue","placeholder","success","error","loading","disabled"]),ee(O(ht),{secondary:"",size:"small",loading:c.value,disabled:s.value,onClick:x},{default:he(()=>[xe(H(w.$t("TodoWidget.OK")),1)]),_:1},8,["loading","disabled"])]),h("div",qS,[Le(h("div",ZS,[k[9]||(k[9]=h("span",{class:"cb-icon-aws cb-icon-aws--stronger cb--circle-exclamation"},null,-1)),h("span",null,[h("b",null,H(w.$t("TodoWidget.CodeInvalid")),1)])],512),[[Ye,v.value]]),Le(h("a",{href:"javascript:void(0)",class:"cb-text-icon cb-text-small cb-clear cb-test-clear-promocode",style:{"margin-top":"10px"},onClick:_},[k[10]||(k[10]=h("span",{class:"cb-icon-aws cb-icon-aws--stronger cb--xmark"},null,-1)),h("span",null,H(w.$t("TodoWidget.ClearPromoCode")),1)],512),[[Ye,v.value]])])])):c.value?(C(),R("div",t2,[k[13]||(k[13]=h("b",{class:"cb-text-ph ph-lg",style:{width:"60%"}},[h("span",null," ")],-1)),h("div",n2,[h("a",{href:"javascript:void(0)",class:"cb-text-icon cb-text-small cb-clear cb-test-clear-promocode",onClick:_},[k[12]||(k[12]=h("span",{class:"cb-icon-aws cb-icon-aws--stronger cb--xmark"},null,-1)),h("span",null,H(w.$t("TodoWidget.ClearPromoCode")),1)]),h("a",{href:"javascript:void(0)",class:"cb-btn cb-btn-primary cb-btn-sm cb-test-close",onClick:k[4]||(k[4]=A=>l.value=!1)},H(w.$t("TodoWidget.Close")),1)])])):(C(),R("div",XS,[g.value&&g.value.name?(C(),R("b",KS,H(g.value.name),1)):oe("",!0),g.value&&g.value.description?(C(),R("div",{key:1,style:{"margin-top":"10px"},innerHTML:g.value.description},null,8,JS)):oe("",!0),g.value&&g.value.terms?(C(),R("div",{key:2,innerHTML:g.value.terms},null,8,QS)):oe("",!0),h("div",e2,[h("a",{href:"javascript:void(0)",class:"cb-text-icon cb-text-small cb-test-clear-promocode",onClick:_},[k[11]||(k[11]=h("span",{class:"cb-icon-aws cb-icon-aws--stronger cb--xmark"},null,-1)),h("span",null,H(w.$t("TodoWidget.ClearPromoCode")),1)]),h("a",{href:"javascript:void(0)",class:"cb-btn cb-btn-primary cb-btn-sm cb-test-close",onClick:k[3]||(k[3]=A=>l.value=!1)},H(w.$t("TodoWidget.Close")),1)])]))]),_:1},8,["modelValue","anchor"])],64))}},r2={key:0,class:"cb-framework",style:{"text-align":"left",width:"310px"}},o2={key:0},a2=["innerHTML"],i2=["innerHTML"],s2={class:"cb-confirm"},Cf={__name:"cb-discount-content",setup(e){const{widgetState:t}=ae("widget"),{state:n}=ae("bookingFlowMachine"),r=pe(!1),o=pe(null),i=y(()=>n.value.hasTag("updating")||n.value.hasTag("loading")||n.value.matches("flowControl.updating.configuringDate")),a=y(()=>t.todoConfiguration.rateInfo),l=y(()=>a.value&&a.value.isFromCampaign);return(s,c)=>(C(),R(ge,null,[!i.value&&l.value?(C(),R("div",{key:0,ref_key:"anchor",ref:o},[h("a",{href:"javascript:void(0)",class:"cb-text-icon cb-code cb-text-small cb-text-discount",onClick:c[0]||(c[0]=u=>r.value=!r.value)},[c[3]||(c[3]=h("span",{class:"cb-icon-aws cb-icon-aws--stronger cb--circle-info"},null,-1)),h("span",null,H(a.value.name),1)])],512)):oe("",!0),l.value?(C(),fe(O(Kr),{key:1,modelValue:r.value,"onUpdate:modelValue":c[2]||(c[2]=u=>r.value=u),anchor:o.value,placement:"top",alignment:"center",style:{"z-index":"10048"}},{default:he(()=>[i.value?oe("",!0):(C(),R("div",r2,[a.value.name?(C(),R("h2",o2,H(a.value.name),1)):oe("",!0),a.value.description?(C(),R("div",{key:1,innerHTML:a.value.description},null,8,a2)):oe("",!0),a.value.terms?(C(),R("div",{key:2,innerHTML:a.value.terms},null,8,i2)):oe("",!0),h("div",s2,[h("a",{href:"javascript:void(0)",class:"cb-btn cb-btn-primary cb-btn-sm",onClick:c[1]||(c[1]=u=>r.value=!1)},H(s.$t("TodoWidget.Close")),1)])]))]),_:1},8,["modelValue","anchor"])):oe("",!0)],64))}},l2={class:"cb-form-group"},c2={class:"cb-text-icon cb-text-small cb-text-invalid"},Sf={__name:"cb-promocode-lock",setup(e){const{state:t,send:n}=ae("bookingFlowMachine"),{widgetState:r,setPromoCodeInput:o}=ae("widget"),i=y({get:()=>r.promoCodeInput,set(u){o(u)}}),a=async()=>{n("PROMOCODE_VERIFY")},l=()=>{n("PROMOCODE_RESET")},s=y(()=>t.value.matches("promocode.updatingStatus.validating")),c=y(()=>t.value.matches("promocode.validityStatus.invalid"));return(u,p)=>(C(),R(ge,null,[h("div",l2,[ee(O(Kl),{modelValue:i.value,"onUpdate:modelValue":p[0]||(p[0]=v=>i.value=v),error:c.value,loading:s.value,"aria-labelledby":"cb-promocode-lock-label"},null,8,["modelValue","error","loading"]),ee(O(ht),{loading:s.value,onClick:a},{default:he(()=>[xe(H(u.$t("TodoWidget.OK")),1)]),_:1},8,["loading"])]),Le(h("div",c2,[p[1]||(p[1]=h("span",{class:"cb-icon-aws cb-icon-aws--stronger cb--circle-exclamation"},null,-1)),h("span",null,[h("b",null,H(u.$t("TodoWidget.CodeInvalid")),1)])],512),[[Ye,c.value]]),Le(h("a",{href:"javascript:void(0)",class:"cb-text-icon cb-text-small cb-clear",onClick:l},[p[2]||(p[2]=h("span",{class:"cb-icon-css cb-icon-css--sm cb-icon-css--close-fat"},[h("span"),xe(" ")],-1)),h("span",null,H(u.$t("TodoWidget.ClearPromoCode")),1)],512),[[Ye,c.value]])],64))}},u2={class:"cb-segment cb--message cb--locked"},d2={class:"cb-segment-inner-wrapper"},p2={class:"cb-segment-inner cb--message"},v2={key:0},f2={class:"cb-text-muted"},h2={id:"cb-promocode-lock-label",class:"cb-text-muted"},g2={key:1},m2={class:"cb-text-muted"},b2={id:"cb-agent-lock-label",class:"cb-text-muted"},y2={__name:"cb-lock",setup(e){const{state:t}=ae("bookingFlowMachine"),n=y(()=>t.value.matches("lock.lockedWithoutPromocode")),r=y(()=>t.value.matches("lock.lockedForAgent"));return(o,i)=>(C(),R("div",u2,[h("div",null,[i[1]||(i[1]=h("div",{class:"cb-segment-label"},[h("span",null," ")],-1)),h("div",d2,[h("div",p2,[h("div",null,[i[0]||(i[0]=h("span",{class:"cb-icon-aws cb--lock"},null,-1)),n.value?(C(),R("div",v2,[h("b",f2,H(o.$t("TodoWidget.PromocodeRequired")),1),h("div",h2,H(o.$t("TodoWidget.EnterPromocodeToUnlock")),1),ee(O(Sf))])):oe("",!0),r.value?(C(),R("div",g2,[h("b",m2,H(o.$t("TodoWidget.AgentLock")),1),h("div",b2,H(o.$t("TodoWidget.AgentLockAdditionalInfo")),1)])):oe("",!0)])])])])]))}},w2=["aria-valuetext","aria-valuenow","aria-valuemin","aria-valuemax"],k2=["aria-label","aria-disabled"],x2=["aria-label","aria-disabled"],_2={__name:"cb-amount-picker",props:{modelValue:{type:Number,required:!0},minAmount:{type:Number,default:0},maxAmount:{type:Number,default:null},disabled:{type:Boolean},size:{type:String,default:null,validator:e=>!e||["small","standard"].indexOf(e)!==-1},ariaLabelDecreaseAmount:{type:String,required:!0},ariaLabelIncreaseAmount:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=y({get:()=>n.modelValue,set(g){r("update:modelValue",+g)}}),i=y(()=>o.value===n.minAmount||o.value===0),a=y(()=>n.maxAmount!==null&&o.value>=n.maxAmount),l=y(()=>n.disabled||i.value&&a.value),s=y(()=>({"cb-selected":o.value>0,"cb-spinnerinput--small":n.size==="small","cb-spinnerinput--standard":n.size==="standard"})),c=g=>Math.min(Math.max(g,n.minAmount??-1/0),n.maxAmount??1/0),u=()=>{const g=c(o.value+1);r("update:modelValue",g)},p=()=>{const g=c(o.value-1);r("update:modelValue",g)},v={ArrowUp:u,ArrowDown:p,Home:()=>{typeof n.minAmount=="number"&&r("update:modelValue",n.minAmount)},End:()=>{typeof n.maxAmount=="number"&&r("update:modelValue",n.maxAmount)}},m=g=>{const x=v[g.key];x&&(g.preventDefault(),x())};return Re(()=>n.modelValue,g=>{const x=c(g);x!==g&&r("update:modelValue",x)},{immediate:!0}),(g,x)=>(C(),R("div",{class:we(["cb-spinnerinput",s.value]),tabindex:"0",role:"spinbutton","aria-valuetext":e.modelValue,"aria-valuenow":e.modelValue,"aria-valuemin":e.minAmount,"aria-valuemax":e.maxAmount,onKeydown:sr(m,["stop"])},[h("button",{class:we(["cb-btn","cb-minus",{"cb-disabled":l.value||i.value}]),tabindex:"-1","aria-label":e.ariaLabelDecreaseAmount,"aria-disabled":l.value||i.value,onClick:p},x[1]||(x[1]=[h("span",{class:"cb-icon-css cb-icon-css--minus"},[h("span"),xe("  ")],-1)]),10,k2),ot(g.$slots,"default",{},()=>[ee(O(Kl),{modelValue:o.value,"onUpdate:modelValue":x[0]||(x[0]=_=>o.value=_),type:"number","auto-selection":"",min:e.minAmount,max:e.maxAmount,disabled:l.value},null,8,["modelValue","min","max","disabled"])]),h("button",{class:we(["cb-btn","cb-plus",{"cb-disabled":l.value||a.value}]),tabindex:"-1","aria-label":e.ariaLabelIncreaseAmount,"aria-disabled":l.value||a.value,onClick:u},x[2]||(x[2]=[h("span",{class:"cb-icon-css cb-icon-css--plus"},[h("span"),xe("  ")],-1)]),10,x2)],42,w2))}},Ql=_2,C2={__name:"cb-tooltip",props:{anchor:{type:[HTMLElement,null],required:!0},placement:{type:String,default:"top",validator:e=>Object.keys(qo).includes(e)},alignment:{type:String,default:"center",validator:e=>Object.keys(Zo).includes(e)}},setup(e){const t=e,n=`cb-tooltip-${it().uid}`,r=pe(null),o=pe(!1),i=()=>o.value=!0,a=l=>{var s,c;const u=document.activeElement!==null&&document.activeElement===t.anchor||l.relatedTarget!==null&&l.relatedTarget===t.anchor||l.relatedTarget!==null&&l.relatedTarget===r.value.element||(((s=t.anchor)==null?void 0:s.matches(":hover"))??!1)||(((c=r.value.element)==null?void 0:c.matches(":hover"))??!1);o.value=u};return Re(()=>t.anchor,(l,s)=>{s==null||s.removeEventListener("click",i),s==null||s.removeEventListener("mouseenter",i),s==null||s.removeEventListener("mouseleave",a),s==null||s.removeEventListener("focusin",i),s==null||s.removeEventListener("focusout",a),s==null||s.removeAttribute("aria-describedby"),l==null||l.addEventListener("click",i),l==null||l.addEventListener("mouseenter",i),l==null||l.addEventListener("mouseleave",a),l==null||l.addEventListener("focusin",i),l==null||l.addEventListener("focusout",a),l==null||l.setAttribute("aria-describedby",n)}),(l,s)=>(C(),fe(O(Kr),{id:n,ref_key:"popover",ref:r,modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=c=>o.value=c),anchor:e.anchor,placement:e.placement,alignment:e.alignment,class:"cb-tooltip",role:"tooltip",popover:"manual",onMouseenter:i,onMouseleave:a},{default:he(()=>[ot(l.$slots,"default")]),_:3},8,["modelValue","anchor","placement","alignment"]))}},Df=C2;Zr(`.cb-tooltip.cb-popover {
    background: rgb(0, 0, 0, 80%);
    color: #fff;
    padding: 6px 9px;
    box-shadow: none;
    font-size: var(--vg-body-small-font-size);
    line-height: var(--vg-body-small-line-height);
    overflow: initial;
    max-width: 300px;
}
.cb-tooltip.cb-popover:after {
        content: '';
        position: absolute;
        opacity: .8;
}
.cb-tooltip.cb-popover.top::after {
        bottom: -12px;
        margin-left: -3px;
        border: 6px solid transparent;
        border-top-color: #000;
}
.cb-tooltip.cb-popover.right::after {
        left: -12px;
        margin-top: -3px;
        transform: rotate(90deg);
        border: 6px solid transparent;
        border-top-color: #000;
}
.cb-tooltip.cb-popover.bottom::after {
        top: -12px;
        margin-left: -3px;
        transform: rotate(180deg);
        border: 6px solid transparent;
        border-top-color: #000;
}
.cb-tooltip.cb-popover.left::after {
        right: -12px;
        margin-top: -3px;
        transform: rotate(270deg);
        border: 6px solid transparent;
        border-top-color: #000;
}
.cb-tooltip.cb-popover.top.start::after, .cb-tooltip.cb-popover.bottom.start::after {
        left: 10%;
}
.cb-tooltip.cb-popover.top.center::after, .cb-tooltip.cb-popover.bottom.center::after {
        left: 50%;
}
.cb-tooltip.cb-popover.top.end::after, .cb-tooltip.cb-popover.bottom.end::after {
        left: 90%;
}
.cb-tooltip.cb-popover.right.start::after, .cb-tooltip.cb-popover.left.start::after {
        top: 10%;
}
.cb-tooltip.cb-popover.right.center::after, .cb-tooltip.cb-popover.left.center::after {
        top: 50%;
}
.cb-tooltip.cb-popover.right.end::after, .cb-tooltip.cb-popover.left.end::after {
        top: 90%;
}`);const S2={class:"cb-row"},D2={class:"cb-rate"},T2={class:"cb-type"},A2={key:1,class:"cb-pg"},E2=["innerHTML"],P2={class:"cb-pricing"},O2={key:0,class:"cb-text-strike"},M2={class:"cb-quantity"},Tf={__name:"cb-price-group",props:{priceGroup:{type:Object,required:!0}},setup(e){const{updatePriceGroup:t}=ae("widget"),{lookupContent:n}=ae("contentDatabase"),{state:r,send:o}=ae("bookingFlowMachine"),i=e,a=pe(null),l=y(()=>!!i.priceGroup.originalPriceAndCurrency),s=y(()=>n(i.priceGroup.code,"name")),c=y(()=>n(i.priceGroup.code,"description")),u=y(()=>r.value.hasTag("loading"));return(p,v)=>(C(),R("div",S2,[h("div",D2,[h("span",T2,[c.value?(C(),R("a",{key:0,ref_key:"anchor",ref:a,href:"javascript:void()",class:"cb-text-icon"},[v[1]||(v[1]=h("span",{class:"cb-icon-aws cb-icon-aws--stronger cb--circle-info"},null,-1)),h("span",null,H(s.value),1)],512)):(C(),R("span",A2,H(s.value),1)),ee(O(Df),{anchor:a.value,style:{"z-index":"10048"}},{default:he(()=>[h("div",{innerHTML:c.value},null,8,E2)]),_:1},8,["anchor"])]),h("span",P2,[l.value?(C(),R("span",O2,H(e.priceGroup.originalPriceAndCurrency),1)):oe("",!0),h("span",{class:we(["cb-price",{"cb-text-discount":l.value}])},H(e.priceGroup.priceFromAndCurrency),3)])]),h("div",M2,[ee(O(Ql),{"model-value":e.priceGroup.amount,"min-amount":e.priceGroup.minAmount,"max-amount":e.priceGroup.maxAmount,disabled:u.value,"aria-label":s.value,"aria-label-increase-amount":p.$t("TodoWidget.AmountIncrease"),"aria-label-decrease-amount":p.$t("TodoWidget.AmountDecrease"),"onUpdate:modelValue":v[0]||(v[0]=m=>(async g=>{let x={amount:g,code:i.priceGroup.code};t(x),o("UPDATE")})(m))},null,8,["model-value","min-amount","max-amount","disabled","aria-label","aria-label-increase-amount","aria-label-decrease-amount"])])]))}},ec={__name:"cb-formatted-date-title",setup(e){const{state:t}=ae("bookingFlowMachine"),{widgetState:n,durations:r}=ae("widget"),{calendarState:o}=ae("calendar"),i=y(()=>{var p;return(p=n.todoConfiguration)==null?void 0:p.date}),a=y(()=>{var p;return(p=r.value)==null?void 0:p.find(v=>v.selected)}),l=y(()=>t.value.context.useCalendar),s=y(()=>t.value.matches("calendar.status.selected")),c={timeZone:"UTC",weekday:"short",month:"short",day:"numeric"},u=y(()=>{if(!l.value||!s.value)return null;var p=`${new Date(i.value).toLocaleDateString(t.value.context.culture,c)}`;return o.isDuration&&a.value&&a.value.durationEndDate!==i.value&&(p+=` - ${new Date(a.value.durationEndDate).toLocaleDateString(t.value.context.culture,c)}`),p});return(p,v)=>H(u.value)}},I2={class:"cb-segment-inner cb--quantity"},L2={key:0,class:"cb-segment-inner-label"},j2={class:"cb-segment-inner cb--quantity"},R2={key:0,class:"cb-segment-inner-label"},$2={key:0},N2={key:1},F2={__name:"cb-price-groups",setup(e){const{state:t}=ae("bookingFlowMachine"),{priceGroups:n,durations:r}=ae("widget"),o=y(()=>t.value.context.useCalendar),i=y(()=>{var c;return(c=r.value)==null?void 0:c.find(u=>u.selected)}),a=y(()=>t.value.matches("flowControl.updating.configuringDate")),l=y(()=>t.value.matches("calendar.status.selected")),s=y(()=>t.value.matches("participants.displaying"));return(c,u)=>(C(),R(ge,null,[Le(h("div",I2,[o.value?(C(),R("div",L2,u[0]||(u[0]=[h("span",null,[h("span",{class:"cb-text-ph",style:{width:"130px"}}," ")],-1)]))):oe("",!0),u[1]||(u[1]=Ga('<div><div class="cb-row"><div class="cb-rate"><span class="cb-type"><span class="cb-pg"><span class="cb-text-ph" style="width:80px;"> </span></span></span><span class="cb-pricing"><span class="cb-price"><span class="cb-text-ph" style="width:60px;"> </span></span></span></div><div class="cb-quantity"><div class="cb-spinnerinput"><button class="cb-btn cb-minus cb-disabled"><span class="cb-icon-css"><span></span> </span></button><span class="cb-textinput cb-disabled"><span><span class="cb-quantity"> </span></span></span><button class="cb-btn cb-plus cb-disabled"><span class="cb-icon-css"><span></span> </span></button></div></div></div></div>',1))],512),[[Ye,a.value]]),Le(h("div",j2,[o.value?Le((C(),R("div",R2,[i.value?(C(),R("span",N2,[ee(ec),xe(", "+H(i.value.remark),1)])):(C(),R("span",$2,[ee(ec)]))],512)),[[Ye,l.value]]):oe("",!0),h("div",null,[(C(!0),R(ge,null,je(O(n),p=>(C(),fe(Tf,{key:p.code,"price-group":p},null,8,["price-group"]))),128))])],512),[[Ye,!a.value&&s.value]])],64))}},Y2={class:"cb-pricing"},B2={class:"cb-price"},V2={class:"cb-amount"},U2={key:0,class:"cb-text-discount"},Qo={__name:"cb-total-price",setup(e){const{widgetState:t}=ae("widget"),{state:n}=ae("bookingFlowMachine"),r=y(()=>n.value.hasTag("updating")||n.value.hasTag("loading"));return(o,i)=>(C(),R("div",Y2,[Le(h("div",null,[h("b",null,H(o.$t("TodoWidget.TotalPrice"))+": ",1),h("b",B2,[h("span",V2,H(O(t).todoConfiguration.priceTotalAndCurrency),1),xe(" "+H(o.currency),1)]),O(t).todoConfiguration.discountPriceAndCurrency?(C(),R("div",U2,H(o.$tf("TodoWidget.YouSave{0}",O(t).todoConfiguration.discountPriceAndCurrency))+" "+H(o.currency),1)):oe("",!0)],512),[[Ye,!r.value]]),Le(h("div",null,i[0]||(i[0]=[Ga('<b><span class="cb-text-ph" style="width:60px;"> </span></b>  <b class="cb-price"><span class="cb-amount"><span class="cb-text-ph" style="width:50px;"> </span>  </span><span class="cb-text-ph" style="width:25px;"> </span></b>',3)]),512),[[Ye,r.value]])]))}},W2={class:"cb-btn cb-btn-lg cb-btn-primary cb-disabled"},Af=kf({},[["render",function(e,t){return C(),R("a",W2,t[0]||(t[0]=[h("span",{class:"cb-text-ph",style:{width:"90px"}}," ",-1)]))}]]),z2={class:"cb-action"},H2={key:0,class:"cb-icon-css cb-icon-css--next",innerHTML:"<span></span> "},G2={class:"cb-hide-sm"},q2={class:"cb-hide-lg"},Z2={__name:"cb-action-mandatory",props:{showArrow:{type:Boolean,default:!1}},emits:["continue","book"],setup(e,{emit:t}){const{isLastComponent:n,currentStateIsValid:r}=ae("widget"),{state:o}=ae("bookingFlowMachine"),i=y(()=>o.value.hasTag("updating")||o.value.hasTag("loading")),a=t;return(l,s)=>(C(),R("div",z2,[Le(ee(O(ht),{class:"cb-test-bf-continue",disabled:!O(r),loading:i.value,size:"large",onClick:s[0]||(s[0]=c=>a("continue"))},{default:he(()=>[xe(H(l.$t("TodoWidget.Continue"))+" ",1),e.showArrow?(C(),R("span",H2)):oe("",!0)]),_:1},8,["disabled","loading"]),[[Ye,!O(n)&&!i.value]]),Le(ee(O(ht),{class:"cb-test-bf-book",disabled:!O(r),loading:i.value,size:"large",onClick:s[1]||(s[1]=c=>a("book"))},{default:he(()=>[h("span",G2,H(l.$t("TodoWidget.AddToCart")),1),h("span",q2,H(l.$t("TodoWidget.Add")),1),s[2]||(s[2]=xe("  ")),s[3]||(s[3]=h("span",{class:"cb-icon-aws cb-icon-aws--strong cb--cart-shopping"},null,-1))]),_:1},8,["disabled","loading"]),[[Ye,O(n)&&!i.value]]),Le(ee(Af,null,null,512),[[Ye,i.value]])]))}},X2={class:"cb-action"},K2={key:2,class:"cb-icon-css cb-icon-css--next",innerHTML:"<span></span> "},J2={class:"cb-hide-sm"},Q2={class:"cb-hide-lg"},eD={__name:"cb-action-optional",props:{showArrow:{type:Boolean,default:!1}},emits:["continue","book"],setup(e,{emit:t}){const{isLastComponent:n,isLastSlot:r,currentStateIsValid:o,hasSelectedProductOptions:i}=ae("widget"),{state:a}=ae("bookingFlowMachine"),l=y(()=>a.value.hasTag("updating")||a.value.hasTag("loading")),s=y(()=>i.value&&!n.value||!i.value&&!r.value),c=t;return(u,p)=>(C(),R("div",X2,[Le(ee(O(ht),{class:"cb-test-bf-continue",disabled:!O(o),loading:l.value,size:"large",onClick:p[0]||(p[0]=v=>c("continue"))},{default:he(()=>[O(i)?(C(),R(ge,{key:1},[xe(H(u.$t("TodoWidget.Continue")),1)],64)):(C(),R(ge,{key:0},[xe(H(u.$t("TodoWidget.SkipAndContinue")),1)],64)),e.showArrow?(C(),R("span",K2)):oe("",!0)]),_:1},8,["disabled","loading"]),[[Ye,s.value&&!l.value]]),Le(ee(O(ht),{class:"cb-test-bf-continue",disabled:!O(o),loading:l.value,size:"large",onClick:p[1]||(p[1]=v=>c("book"))},{default:he(()=>[h("span",J2,H(u.$t("TodoWidget.AddToCart")),1),h("span",Q2,H(u.$t("TodoWidget.Add")),1),p[2]||(p[2]=xe("  ")),p[3]||(p[3]=h("span",{class:"cb-icon-aws cb-icon-aws--strong cb--cart-shopping"},null,-1))]),_:1},8,["disabled","loading"]),[[Ye,!s.value&&!l.value]]),Le(ee(Af,null,null,512),[[Ye,l.value]])]))}},Ef={__name:"cb-action",props:{showArrow:{type:Boolean,default:!1},openModal:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,{widgetState:n,isOptionalProductOption:r}=ae("widget"),{send:o}=ae("bookingFlowMachine"),i=()=>{t.openModal?o("MODAL_OPEN"):o("CONTINUE")},a=()=>{if(n.todoConfiguration.externalErrors&&n.todoConfiguration.externalErrors.length)throw n.todoConfiguration.externalErrors;o("BOOK")};return(l,s)=>O(r)?(C(),fe(eD,{key:1,"show-arrow":e.showArrow,onContinue:i,onBook:a},null,8,["show-arrow"])):(C(),fe(Z2,{key:0,"show-arrow":e.showArrow,onContinue:i,onBook:a},null,8,["show-arrow"]))}},tD={class:"cb-widget-calendar cb-framework cb--standard cb-test-booking-flow"},nD={key:0},rD={key:1,class:"cb-segment cb--date"},oD={class:"cb-segment-inner-wrapper"},aD={class:"cb-segment-inner cb--datepicker cb-availability"},iD={key:2,class:"cb-segment cb--options"},sD={class:"cb-segment-inner-wrapper"},lD={key:0,class:"cb-segment-inner cb--total"},cD={key:3,class:"cb-segment cb--message"},uD={class:"cb-segment-inner-wrapper"},dD={class:"cb-segment-inner cb--message"},pD={class:"cb-text-muted"},vD={key:1,class:"cb-segment cb--message"},fD={class:"cb-segment-inner-wrapper"},hD={class:"cb-segment-inner cb--message"},gD=["innerHTML"],Pf={__name:"cb-display-expanded",setup(e){const{state:t}=ae("bookingFlowMachine"),{lookupProductContent:n}=ae("contentDatabase"),r=pe(null),o=y(()=>t.value.matches("participants.displaying")),i=y(()=>t.value.matches("bookableStatus.bookable")),a=y(()=>!t.value.matches("calendar.display.none")),l=y(()=>!t.value.context.useCalendar||t.value.matches("calendar.status.selected")),s=y(()=>t.value.matches("lock.lockedWithoutPromocode")||t.value.matches("lock.lockedForAgent")),c=y(()=>["button","modalonly"].includes(t.value.context.display.value)),u=()=>{r.value&&r.value.classList.add("cb--locked")};Re(()=>s.value,m=>{m?u():r.value&&r.value.classList.remove("cb--locked")});const p=it().proxy.$t,v=y(()=>n("unavailable message")||p("TodoWidget.Startup.Error"));return Tt(()=>{s.value&&u()}),(m,g)=>(C(),R("div",tD,[Le((C(),R("div",{ref_key:"widgetCalendarElem",ref:r,class:"cb-widget-calendar-inner cb--has-date"},[i.value?(C(),R("div",nD,[s.value?(C(),fe(O(y2),{key:0})):oe("",!0),a.value?(C(),R("div",rD,[h("div",null,[h("div",oD,[h("div",aD,[h("div",null,[ee(O(_f)),ee(Cf),O(t).context.usePromoCodes?(C(),fe(Jl,{key:0})):oe("",!0)])])])])])):oe("",!0),l.value?(C(),R("div",iD,[h("div",null,[h("div",sD,[Le(ee(O(F2),null,null,512),[[Ye,o.value]]),s.value?oe("",!0):(C(),R("div",lD,[h("div",null,[O(t).context.usePromoCodes&&!O(t).context.useCalendar?(C(),fe(Jl,{key:0})):oe("",!0),c.value?oe("",!0):(C(),fe(Qo,{key:1})),s.value||c.value?oe("",!0):(C(),fe(O(Ef),{key:2,"open-modal":"true"}))])]))])])])):oe("",!0),l.value?oe("",!0):(C(),R("div",cD,[h("div",null,[g[1]||(g[1]=h("div",{class:"cb-segment-label"},[h("span",null," ")],-1)),h("div",uD,[h("div",dD,[h("div",null,[g[0]||(g[0]=h("span",{class:"cb-icon-aws cb--calendar"},null,-1)),h("div",pD,H(O(p)("TodoWidget.ChooseDateForYourVisit")),1)])])])])]))])):(C(),R("div",vD,[h("div",null,[g[3]||(g[3]=h("div",{class:"cb-segment-label"},[h("span",null," ")],-1)),h("div",fD,[h("div",hD,[h("div",null,[g[2]||(g[2]=h("span",{class:"cb-icon-aws cb--calendar"},null,-1)),h("div",{class:"cb-text-muted",innerHTML:v.value},null,8,gD)])])])])]))])),[[O(Sd),"widget-calendar"]])]))}},mD={class:"cb-form-subset cb--search test"},bD={class:"cb-form-field"},yD={__name:"cb-action-collapsed",setup(e){const{widgetState:t,isLastComponent:n,currentStateIsValid:r}=ae("widget"),{send:o,state:i}=ae("bookingFlowMachine"),a=y(()=>i.value.hasTag("updating")||i.value.hasTag("loading")),l=()=>{o("MODAL_OPEN")},s=()=>{if(t.todoConfiguration.externalErrors&&t.todoConfiguration.externalErrors.length)throw t.todoConfiguration.externalErrors;o("BOOK")};return(c,u)=>(C(),R("div",mD,[h("div",null,[h("div",bD,[h("div",null,[u[0]||(u[0]=h("span",{class:"cb-form-label cb--spacer"}," ",-1)),Le(ee(O(ht),{class:"cb-test-bf-continue",disabled:!O(r),loading:a.value,onClick:l},{default:he(()=>[xe(H(c.$t("TodoWidget.BookShortText")),1)]),_:1},8,["disabled","loading"]),[[Ye,!O(n)]]),Le(ee(O(ht),{class:"cb-test-bf-book",disabled:!O(r),loading:a.value,onClick:s},{default:he(()=>[xe(H(c.$t("TodoWidget.BookShortText")),1)]),_:1},8,["disabled","loading"]),[[Ye,O(n)]])])])])]))}},wD={class:"cb-form-subset cb--date cb-availability"},kD={class:"cb-form-field cb--date"},xD={class:"cb-form-label"},_D=["placeholder","value"],CD={__name:"cb-calendar-segment-collapsed",setup(e){const{widgetState:t}=ae("widget"),{state:n}=ae("bookingFlowMachine"),r={timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric"},o=pe(!1),i=pe(null),a=y(()=>{const s=t.todoConfiguration.date;return s?new Date(s).toLocaleString(n.value.context.culture,r):null}),l=()=>{o.value=!1,n.value.context.dateManuallySelected=!0};return(s,c)=>(C(),R("div",wD,[h("span",null,[h("div",kD,[h("div",null,[h("span",xD,H(s.$t("TodoWidget.Date")),1),h("input",{placeholder:s.$t("TodoWidget.ChooseDate"),readonly:"readonly",class:"cb-textinput",value:a.value},null,8,_D),h("div",{ref_key:"anchor",ref:i,class:"cb-trigger",onClick:c[0]||(c[0]=u=>o.value=!0)},null,512)])]),ee(O(Kr),{modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=u=>o.value=u),anchor:i.value,placement:"bottom",alignment:"start",class:"cb-framework",style:{width:"400px","max-width":"calc(100vw - 40px)"}},{default:he(()=>[ee(O(_f),{onDateChanged:l})]),_:1},8,["modelValue","anchor"])])]))}},SD={class:"cb-form-subset cb--participants"},DD={class:"cb-form-field cb--participants"},TD={class:"cb-form-label"},AD=["placeholder","value"],ED={class:"cb-framework cb-popover--participants"},PD={class:"cb-confirm"},OD={__name:"cb-participants-segment-collapsed",setup(e){const{priceGroups:t,selectedPriceGroups:n,widgetState:r}=ae("widget"),{state:o}=ae("bookingFlowMachine"),i=pe(!1),a=pe(null),l=y(()=>{if(n.value&&n.value.length>0){let s=0;return n.value.forEach(c=>s+=c.amount),`${s}× (${r.todoConfiguration.priceTotalAndCurrency})`}return null});return Re(()=>o.value,()=>{o.value.matches("flowControl.updating.configuringDate")&&o.value.matches("participants.displaying")&&o.value.context.dateManuallySelected&&(i.value=!0,o.value.context.dateManuallySelected=!1)}),(s,c)=>(C(),R("div",SD,[h("span",null,[h("div",DD,[h("div",null,[h("span",TD,H(s.$t("TodoWidget.Participants")),1),h("input",{placeholder:s.$t("TodoWidget.ChooseParticipants"),readonly:"readonly",class:"cb-select",value:l.value},null,8,AD),h("div",{ref_key:"anchor",ref:a,class:"cb-trigger",onClick:c[0]||(c[0]=u=>i.value=!0)},null,512)])]),ee(O(Kr),{modelValue:i.value,"onUpdate:modelValue":c[2]||(c[2]=u=>i.value=u),anchor:a.value,placement:"bottom",alignment:"start"},{default:he(()=>[h("div",ED,[(C(!0),R(ge,null,je(O(t),u=>(C(),fe(O(Tf),{key:u.code,"price-group":u},null,8,["price-group"]))),128)),h("div",PD,[ee(Qo),ee(O(ht),{onClick:c[1]||(c[1]=u=>i.value=!1)},{default:he(()=>[xe(H(s.$t("TodoWidget.Done")),1)]),_:1})])])]),_:1},8,["modelValue","anchor"])])]))}},MD={class:"cb-form-subset cb--locked"},ID={key:0},LD={class:"cb-locked-message"},jD={class:"cb-text-muted"},RD={class:"cb-text-muted"},$D={key:1},ND={class:"cb-locked-message"},FD={class:"cb-text-muted"},YD={class:"cb-text-muted"},BD={__name:"cb-lock-collapsed",setup(e){const{state:t}=ae("bookingFlowMachine"),n=y(()=>t.value.matches("lock.lockedWithoutPromocode")),r=y(()=>t.value.matches("lock.lockedForAgent"));return(o,i)=>(C(),R("div",MD,[n.value?(C(),R("div",ID,[h("div",LD,[i[0]||(i[0]=h("span",{class:"cb-icon-aws cb--lock"},null,-1)),h("div",null,[h("b",jD,H(o.$t("TodoWidget.PromocodeRequired")),1),h("div",RD,H(o.$t("TodoWidget.EnterPromocodeToUnlock")),1)])]),ee(O(Sf))])):oe("",!0),r.value?(C(),R("div",$D,[h("div",ND,[i[1]||(i[1]=h("span",{class:"cb-icon-aws cb--lock"},null,-1)),h("div",null,[h("b",FD,H(o.$t("TodoWidget.AgentLock")),1),h("div",YD,H(o.$t("TodoWidget.AgentLockAdditionalInfo")),1)])])])):oe("",!0)]))}},VD={class:"cb-framework cb-widget-calendar cb-test-booking-flow"},UD={class:"cb-form-subset cb--float cb--code"},WD={key:1},zD=["innerHTML"],HD={__name:"cb-display-collapsed",setup(e){const{state:t}=ae("bookingFlowMachine"),{lookupProductContent:n}=ae("contentDatabase"),r=y(()=>t.value.context.useCalendar),o=y(()=>t.value.context.useParticipants),i=y(()=>t.value.matches("bookableStatus.bookable")),a=pe(null),l=y(()=>t.value.matches("lock.lockedWithoutPromocode")||t.value.matches("lock.lockedForAgent"));Re(()=>l.value,u=>{u?a.value&&a.value.classList.add("cb--locked"):a.value&&a.value.classList.remove("cb--locked")});const s=it().proxy.$t,c=y(()=>n("unavailable message")||s("TodoWidget.Startup.Error"));return(u,p)=>(C(),R("div",VD,[i.value?Le((C(),R("div",{key:0,ref_key:"widgetCalendarElem",ref:a,class:"cb-widget-calendar-compact-inner"},[l.value?(C(),fe(O(BD),{key:0})):oe("",!0),r.value?(C(),fe(CD,{key:1})):oe("",!0),o.value?(C(),fe(OD,{key:2})):oe("",!0),l.value?oe("",!0):(C(),fe(O(yD),{key:3})),h("div",UD,[ee(Cf),O(t).context.usePromoCodes?(C(),fe(Jl,{key:0})):oe("",!0)])])),[[O(Sd),"widget-calendar-compact"]]):(C(),R("div",WD,[h("div",{class:"cb-text-muted",innerHTML:c.value},null,8,zD)]))]))}};function GD(e,t){const n=Mt({ran:!1,current:0,previous:0});let r;const o=()=>{n.ran=!0,n.previous=n.current,n.current=(a=>a>t.value.length-1?0:a<0?t.value.length-1:a)(n.current+1)},i=()=>{n.ran=!1,n.current=0,n.previous=t.value.length-1,clearInterval(r),!(t.value.length<=1)&&(r=setInterval(o,e.value))};return Re(()=>e.value,i,{immediate:!0}),Re(()=>t.value,i,{deep:!0}),{state:Qn(n)}}const qD={class:"vgo-slideshow"},ZD={class:"vgo-slideshow__wrapper"},XD=["loading","src","alt","onLoad"],KD={__name:"cb-slideshow",props:{fadeDuration:{type:Number,default:2500},zoomDuration:{type:Number,default:4500},slideDuration:{type:Number,default:8e3},images:{type:Array,default:()=>[]}},setup(e){const t=e,n=pe([]),r=Mt({}),o=bo(()=>t.slideDuration),{state:i}=GD(o,n);return(a,l)=>(C(),R("div",qD,[h("div",ZD,[(C(!0),R(ge,null,je(e.images,(s,c)=>(C(),R("div",{key:s.url,ref_for:!0,ref_key:"slides",ref:n,class:we(["vgo-slideshow__slide",{active:c===O(i).current,previous:c===O(i).previous&&O(i).ran,still:c===0&&!O(i).ran||e.images.length===1}]),style:pt({"animation-duration":`${e.fadeDuration}ms`})},[h("div",{class:"vgo-slideshow__cell",style:pt({"animation-duration":`${e.zoomDuration}ms`})},[h("div",{class:"vgo-slideshow__cell-blur",style:pt({"background-image":r[s.url]?`url(${r[s.url]})`:"none"}),role:"img"},null,4),h("img",{loading:c===0?"eager":"lazy",src:s.url,alt:s.description,onLoad:u=>r[s.url]=s.url},null,40,XD)],4)],6))),128))])]))}},JD=Li(KD,[["__scopeId","data-v-8d33ce78"]]);Zr(`.vgo-slideshow[data-v-8d33ce78] {
}
.vgo-slideshow__wrapper[data-v-8d33ce78] {
    position: relative;
    height: 100%;
    overflow: hidden;
}
.vgo-slideshow__slide[data-v-8d33ce78] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: none;
}
.vgo-slideshow__cell[data-v-8d33ce78] {
    width: 100%;
    height: 100%;
}
.vgo-slideshow__cell img[data-v-8d33ce78] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}
.vgo-slideshow__cell-blur[data-v-8d33ce78] {
    width: 100%;
    height: 100%;
    position: absolute;
    filter: blur(15px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.vgo-slideshow__slide.previous[data-v-8d33ce78] {
    z-index: 1;
    opacity: 1;
    display: block;
}
.vgo-slideshow__slide.active[data-v-8d33ce78] {
    z-index: 2;
    display: block;
    animation-name: fade-8d33ce78;
    animation-direction: normal;
    animation-fill-mode: forwards;
    animation-timing-function: ease;
}
.vgo-slideshow__slide.still[data-v-8d33ce78] {
    z-index: 3;
    opacity: 1;
    display: block;
    animation: none !important;
}
.vgo-slideshow__slide.active .vgo-slideshow__cell[data-v-8d33ce78] {
    animation-name: zoom-out-8d33ce78;
    animation-direction: normal;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}
.vgo-slideshow__slide.still .vgo-slideshow__cell[data-v-8d33ce78] {
    animation: none !important;
}
@keyframes fade-8d33ce78 {
from {
        opacity: .1;
}
to {
        opacity: 1;
}
}
@keyframes zoom-out-8d33ce78 {
from {
        transform: scale3d(1.25, 1.25, 1.25);
}
to {
        transform: scale3d(1, 1, 1);
}
}

`);let ea=class{constructor(e,t,n,r){this.id=`${t}-${e}`,this.name=e,this.slotIndex=t,this.hideFooter=n,this.reverted=r}};const Of="CbStart",Mf="CbTours",If="CbProducts",Lf="CbOccasions",tc="CbArrangement",QD=["OpenDeparture","TransportDeparture"],jf=e=>e.name===Mf||e.name===Lf,nc=e=>e.name===If||e.name===tc,Rf=(e,t)=>{if(e.tours.length>0&&e.shouldSelectTour){let r=QD.includes(e.tourActivityType)?Mf:Lf;var n=new ea(r,e.index,!1,!1);t.push(n)}},$f=(e,t)=>{if(e.products.length>0&&e.shouldSelectProducts){const r=e.sameForAllParticipants&&e.maxAmount===1&&e.productType==="Arrangement";var n=new ea(If,e.index,r,!1);t.push(n)}},eT=(e,t)=>{if(e.products.length>0&&e.productType==="Arrangement"){var n=new ea(tc,e.index,!1,!1);t.push(n)}},Nf=e=>{var t,n=[];if(e.display.value==="button"||e.display.value==="modalonly"){var r=new ea(Of,null,!1,!1);n.push(r)}for(var o=e.widgetState.todoConfiguration,i=0;i<((t=o==null?void 0:o.slots)==null?void 0:t.length);i++){let a=o==null?void 0:o.slots[i];a.selectProductBeforeTour?($f(a,n),Rf(a,n)):(Rf(a,n),$f(a,n)),eT(a,n)}return n},tT={key:0,class:"cb-crumbs"},nT={class:"cb-crumbs-overflow"},rT=["onClick"],oT={key:2,class:"cb-icon-aws cb-icon-aws--light cb--arrow-right-long"},aT={__name:"cb-widget-navigation",setup(e){const{widgetState:t,setCurrentComponent:n}=ae("widget"),{lookupSlotContent:r}=ae("contentDatabase"),o=it(),i=y(()=>t.stepsAll);let a=y(()=>t.stepsAll.findIndex(c=>c.id===t.currentComponent.id)),l=c=>{if((p=>p.name===Of)(c))return o.proxy.$t("TodoWidget.Navigation.Start");if(jf(c))return o.proxy.$t("TodoWidget.Navigation.Time");if((p=>p.name===tc)(c))return o.proxy.$t("TodoWidget.Navigation.SelectedSeats");var u=r(c.slotIndex);return u?u==null?void 0:u.name:o.proxy.$t("TodoWidget.Navigation.Product")},s=c=>t.currentComponent.id===c.id?"cb-selected":"";return(c,u)=>i.value.length>1?(C(),R("div",tT,[h("div",nT,[(C(!0),R(ge,null,je(i.value,(p,v)=>(C(),R("div",{key:p.id},[v<O(a)?(C(),R("a",{key:0,href:"javascript:void(0)",class:"cb-complete",onClick:m=>(g=>{let x=new ea(g.name,g.slotIndex,g.hideFooter,!0);n(x)})(p)},H(O(l)(p)),9,rT)):(C(),R("span",{key:1,class:we(O(s)(p))},H(O(l)(p)),3)),v<i.value.length-1?(C(),R("span",oT)):oe("",!0)]))),128))])])):oe("",!0)}},iT={class:"cb-page-maintitle"},sT={key:0,class:"cb-photo-gallery",style:{isolation:"isolate"}},lT={class:"cb-description"},cT={key:0,class:"cb-title"},uT=["innerHTML"],dT={key:1,class:"cb-intro"},pT=["innerHTML"],ta={__name:"cb-modal-page-content",setup(e){const{widgetState:t}=ae("widget"),{lookupSlotContent:n,lookupPageContent:r}=ae("contentDatabase"),o=y(()=>{let s=t.currentComponent,c=[];return c=s.slotIndex===null||s.slotIndex===void 0?r(0):n(s.slotIndex),c}),i=y(()=>{let s=[];for(let c in o.value)c.includes("images")&&s.push({url:o.value[c]});return s}),a=y(()=>{var s;return(s=o.value)==null?void 0:s.name}),l=y(()=>{var s;return(s=o.value)==null?void 0:s.description});return(s,c)=>(C(),R("div",iT,[h("div",null,[i.value.length?(C(),R("div",sT,[i.value.length?(C(),fe(O(JD),{key:0,"fade-duration":"2500","zoom-duration":"4500","slide-duration":"8000",images:i.value,style:{height:"100%"}},null,8,["images"])):oe("",!0)])):oe("",!0),h("div",lT,[ee(aT),a.value?(C(),R("div",cT,[h("div",null,[h("h1",{innerHTML:a.value},null,8,uT)])])):oe("",!0),l.value?(C(),R("div",dT,[h("p",{innerHTML:l.value},null,8,pT)])):oe("",!0)])])]))}},vT={class:"cb-outer"},fT={class:"cb-content"},hT={class:"cb-page-new cb--cnt-compact"},gT={class:"cb-page-inner"},mT={class:"cb-page-section"},bT={class:"cb-panel cb-spacer-top-xl"},yT={__name:"cb-start-options",setup(e){const{state:t}=ae("bookingFlowMachine"),n=y(()=>t.value.matches("lock.lockedWithoutPromocode")||t.value.matches("lock.lockedForAgent"));return(r,o)=>(C(),R("div",vT,[h("div",fT,[h("div",hT,[h("div",gT,[h("div",mT,[h("div",null,[n.value?oe("",!0):(C(),fe(ta,{key:0})),h("div",bT,[ot(r.$slots,"toolbar"),h("div",null,[ee(Pf)])])])])])])])]))}},wT=["id","name","disabled","checked"],kT=["for"],xT={class:"cb-info"},_T={class:"cb-time"},CT={class:"cb-duration"},ST={key:0,class:"cb-extra"},DT={key:0,class:"cb-remark"},TT={key:1,class:"cb-operator"},AT={class:"cb-text-icon"},ET={key:1,class:"cb-spotsleft cb-spotsleft--sm"},PT={key:0,class:"cb-text-small cb-text-soldout"},OT={key:1,class:"cb-action"},MT={class:"cb-pricing"},IT={__name:"cb-tours-select-item",props:{tour:{type:Object,default:()=>({})},name:{type:String,default:""}},emits:["click"],setup(e,{emit:t}){const n=e,{state:r}=ae("bookingFlowMachine"),o=y(()=>!n.tour.selectable||r.value.hasTag("loading")),i=t,a=it(),l=r.value.context.showOccasionCapacity,s=pe(100-n.tour.occupancyLevel+"%"),c=a.uid,u=()=>{o.value||i("click")};return(p,v)=>(C(),R("div",{class:we(["cb-item",{"cb-item--input-checked-selected":e.tour.selected}])},[h("input",{id:`cb-radio-option-${O(c)}`,type:"radio",name:e.name,disabled:o.value,checked:e.tour.selected,onClick:u},null,8,wT),h("label",{for:`cb-radio-option-${O(c)}`,class:"cb-summary cb-summary--transp"},[h("span",null,[v[1]||(v[1]=h("span",null,[h("span",{class:"cb-icon-radio"})],-1)),h("span",xT,[h("span",_T,[h("b",null,H(e.tour.startTime),1),v[0]||(v[0]=h("span",null,"→",-1)),h("span",null,H(e.tour.endTime),1)]),h("span",CT,H(e.tour.duration),1),e.tour.remark||e.tour.vehicle?(C(),R("span",ST,[e.tour.remark?(C(),R("span",DT,H(e.tour.remark),1)):oe("",!0),e.tour.vehicle?(C(),R("span",TT,[h("span",AT,[h("span",null,H(e.tour.vehicle),1)])])):oe("",!0)])):oe("",!0),O(l)?(C(),R("span",ET,[h("span",null,[h("em",null,[h("i",{style:pt({width:s.value})},null,4)]),h("span",null,H(e.tour.availability)+" / "+H(e.tour.capacity),1)])])):oe("",!0)]),e.tour.salesMessage&&!O(l)?(C(),R("span",PT,H(e.tour.salesMessage),1)):oe("",!0),e.tour.priceFromAndCurrency?(C(),R("span",OT,[h("span",MT,[h("b",null,"+ "+H(e.tour.priceFromAndCurrency),1)])])):oe("",!0)])],8,kT)],2))}},LT={__name:"cb-tours-skeleton",setup(e){const{currentSlotTours:t}=ae("widget"),{state:n}=ae("bookingFlowMachine"),r=y(()=>n.value.hasTag("updating")||n.value.hasTag("loading")),o=y(()=>t.value.length===0&&r.value);return(i,a)=>Le((C(),R("div",null,a[0]||(a[0]=[Ga('<div class="cb-page-subtitle cb--small"><h2><span class="cb-text-ph" style="width:150px;"> </span></h2></div><div class="cb-list-picker"><div class="cb-item cb-item--input-checked-selected"><div class="cb-summary"><div><span><span class="cb-icon-radio"></span></span><span><span class="cb-text-ph" style="width:50px;"> </span></span></div></div></div></div>',2)]),512)),[[Ye,o.value]])}},jT={class:"cb-form-field cb--label-inside"},RT={class:"cb-form-label"},$T={__name:"cb-routes-single",setup(e){const{currentSlotRoutes:t,updateRoutes:n}=ae("widget"),{send:r}=ae("bookingFlowMachine"),o=it(),i=y(()=>t.value.length===2),a=y(()=>t.value.find(u=>u.selected)),l=y({get:()=>a.value?`${a.value.from.code}_${a.value.to.code}`:null,set:u=>c(u)}),s=y(()=>[...t.value.map(u=>({value:`${u.from.code}_${u.to.code}`,label:`${u.from.name} - ${u.to.name}`})),{value:null,label:o.proxy.$t("TodoWidget.Route.Choose"),hidden:!0}]),c=u=>{if(t.value.forEach(p=>{p.selected=!1}),u){{const p=u.split("_");t.value.find(v=>v.from.code===p[0]&&v.to.code===p[1]).selected=!0,n(t.value)}r("UPDATE")}else n(t.value)};return(u,p)=>(C(),R("div",jT,[h("div",null,[h("span",RT,H(u.$t("TodoWidget.RouteFrom")),1),ee(O(ji),{modelValue:l.value,"onUpdate:modelValue":p[0]||(p[0]=v=>l.value=v),options:s.value,locked:i.value},null,8,["modelValue","options","locked"])])]))}},NT={class:"cb-form-field cb--label-inside"},FT={class:"cb-form-label"},YT={class:"cb-form-field cb--label-inside"},BT={class:"cb-form-label"},VT={__name:"cb-routes-double",setup(e){const{currentSlotRoutes:t,updateRoutes:n,updateTours:r}=ae("widget"),{send:o}=ae("bookingFlowMachine"),i=it(),a=pe(""),l=pe(""),s=y(()=>a.value&&l.value),c=y(()=>p.value.length===1),u=y(()=>v.value.length===1),p=y(()=>t.value.filter((w,k,A)=>k===A.findIndex(M=>M.from.code===w.from.code))),v=y(()=>t.value.filter(w=>w.from.code===a.value)),m=y(()=>[...p.value.map(w=>({value:w.from.code,label:w.from.name})),{value:null,label:i.proxy.$t("TodoWidget.Route.Choose"),hidden:!0}]),g=y(()=>[...v.value.map(w=>({value:w.to.code,label:w.to.name})),{value:null,label:i.proxy.$t("TodoWidget.Route.Choose"),hidden:!0}]),x=w=>{a.value=w,l.value=null,t.value.forEach(k=>{k.selected=!1}),n(t.value),r([]),v.value.length===1&&_(v.value[0].to.code)},_=w=>{l.value=w,t.value.forEach(k=>{k.selected=!1}),t.value.find(k=>k.from.code===a.value&&k.to.code===l.value).selected=!0,n(t.value),o("UPDATE")};return Re(t,()=>{if(s.value){const w=t.value.find(k=>k.selected);a.value=w.from.code,l.value=w.to.code}}),Tt(()=>{const w=t.value.find(k=>k.selected);a.value=w.from.code,l.value=w.to.code}),(w,k)=>(C(),R(ge,null,[h("div",NT,[h("div",null,[h("span",FT,H(w.$t("TodoWidget.RouteFrom")),1),ee(O(ji),{modelValue:a.value,"onUpdate:modelValue":[k[0]||(k[0]=A=>a.value=A),x],options:m.value,locked:c.value},null,8,["modelValue","options","locked"])])]),h("div",YT,[h("div",null,[h("span",BT,H(w.$t("TodoWidget.RouteTo")),1),ee(O(ji),{modelValue:l.value,"onUpdate:modelValue":[k[1]||(k[1]=A=>l.value=A),_],options:g.value,locked:u.value},null,8,["modelValue","options","locked"])])])],64))}},UT={key:0,class:"cb-page-subtitle cb--small"},WT={class:"cb-spacer-top",style:{display:"grid","grid-template-columns":"repeat(auto-fill, minmax(300px, 1fr))","grid-column-gap":"20px","grid-row-gap":"10px"}},zT={__name:"cb-routes",props:{double:{type:Boolean,default:!0}},setup(e){const{currentSlotRoutes:t}=ae("widget"),n=y(()=>t.value&&t.value.length>0);return(r,o)=>(C(),R(ge,null,[n.value?(C(),R("div",UT,[h("h2",null,H(r.$t("TodoWidget.ChooseRoute")),1)])):oe("",!0),h("div",WT,[n.value&&!e.double?(C(),fe($T,{key:0})):oe("",!0),n.value&&e.double?(C(),fe(VT,{key:1})):oe("",!0)])],64))}},HT={class:"cb-outer"},GT={class:"cb-content"},qT={class:"cb-page-new cb--cnt-compact"},ZT={class:"cb-page-inner"},XT={class:"cb-page-section"},KT={class:"cb-page-subtitle cb--small"},JT={class:"cb-list-picker"},QT={__name:"cb-tours",setup(e){const{currentSlotTours:t,updateTours:n}=ae("widget"),{send:r}=ae("bookingFlowMachine"),o=y(()=>{var a,l,s,c;if(!t.value)return null;const u=t.value[0],p=(l=(a=u==null?void 0:u.trips[0])==null?void 0:a.locations[0])==null?void 0:l.name,v=(c=(s=u==null?void 0:u.trips[u.trips.length-1])==null?void 0:s.locations[1])==null?void 0:c.name;return p&&v?`${p} - ${v}`:null}),i=y(()=>o.value!==null);return(a,l)=>(C(),R("div",HT,[h("div",GT,[h("div",qT,[h("div",ZT,[h("div",XT,[h("div",null,[ee(ta),ee(zT),ee(LT),Le(h("div",KT,[h("h2",null,[xe(H(o.value)+", ",1),ee(ec)])],512),[[Ye,i.value]]),h("div",JT,[(C(!0),R(ge,null,je(O(t),s=>(C(),fe(IT,{key:s.id,tour:s,name:"cb-tours-radio-group",onClick:c=>(u=>{t.value.find(p=>p.id===u).selected=!0,t.value.filter(p=>p.id!==u).forEach(p=>{p.selected=!1}),n(t.value),r("UPDATE")})(s.id)},null,8,["tour","onClick"]))),128))])])])])])])]))}},eA={class:"cb-label-attr cb-label-attr--xs cb--persons"},tA={class:"cb-icon-css cb-icon-css--check-fat"},nA=["innerHTML"],rA={__name:"cb-product-list-header",props:{mandatoryAmount:{type:Number,default:0},selectedAmount:{type:Number,default:0},name:{type:String,default:""}},setup(e){const t=e,n=y(()=>t.mandatoryAmount>t.selectedAmount?t.mandatoryAmount-t.selectedAmount:0),r=y(()=>n.value===0),o=y(()=>r.value?"cb--plate-valid":"cb--plate-todo");return(i,a)=>(C(),R("div",{class:we(["cb-page-message cb-spacer-top",o.value,{"cb--sticky":!r.value}]),role:"alert"},[h("div",null,[Le(h("div",eA,[(C(!0),R(ge,null,je(e.selectedAmount,l=>(C(),R("span",{key:l+"filled",class:"cb-icon-aws cb--person-simple"}))),128)),(C(!0),R(ge,null,je(n.value,l=>(C(),R("span",{key:l,class:"cb-icon-aws cb--person-simple",style:{opacity:".25"}}))),128))],512),[[Ye,!r.value]]),Le(h("div",tA,a[0]||(a[0]=[h("span",null,null,-1),xe("  ")]),512),[[Ye,r.value]]),h("div",null,[Le(h("span",{innerHTML:i.$tf("TodoWidget.YouHave{0}x{1}LeftToChoose",n.value,e.name)},null,8,nA),[[Ye,!r.value]]),Le(h("b",null,H(i.$t("TodoWidget.AllDone")),513),[[Ye,r.value]])])])],2))}};function oA(e){const t=pe(0),n=new Map;return{velocity:t,track:r=>{const o=Date.now();n.set(o,r),(()=>{const i=Date.now();for(const[a]of[...n])a>=i-e||n.delete(a)})(),(()=>{const i=Date.now(),a=[...n.keys()],l=[...n.values()],s=Math.min(...l),c=Math.max(...l),u=Math.abs(c-s),p=i-Math.min(...a);t.value=u/(p||1)})()},untrack:()=>{t.value=0,n.clear()}}}function aA(e,t){const a=Mt({index:0,startX:0,target:void 0,swiping:void 0,animation:void 0}),l="ontouchstart"in window,{velocity:s,track:c,untrack:u}=oA(200),p=(I,N,S)=>Math.max(N,Math.min(I,S)),v=I=>I instanceof TouchEvent?I.changedTouches[0].clientX:I.x,m=()=>g(a.index),g=I=>{a.index=I,a.target=-100*a.index,x(),M()},x=()=>{if(a.animation&&(cancelAnimationFrame(a.animation),a.animation=void 0),typeof a.target!="number")return;let I=a.target;I=+I.toFixed(2),I=(N=>p(N,-(100*t.value.length-100+20),20))(I),a.animation=requestAnimationFrame(()=>{e.value.style.transform=`translate3d(${I}%, 0, 0)`,x()})},_=(I,N)=>{I.style.left=100*N+"%",l?(I.ontouchstart=w,I.ontouchmove=k,I.ontouchend=A,I.ontouchcancel=m):(I.onpointerdown=w,I.onpointermove=k,I.onpointerup=A,I.onpointercancel=m)},w=I=>{const N=I.currentTarget,S=v(I);c(S),a.startX=S,a.target=-100*a.index,a.swiping=N,x()},k=I=>{if(!a.swiping)return;I.stopPropagation();const N=v(I);c(N);const S=(N-a.startX)/a.swiping.clientWidth*100;a.target=-1*(100*a.index-S)},A=I=>{if(!a.swiping)return;I.stopPropagation();const N=v(I);c(N);const S=N-a.startX,F=Math.abs(S),U=a.swiping.clientWidth*.5,B=S!==0?S<0?1:-1:0,Z=Math.round(F/a.swiping.clientWidth)||1,X=(J=>p(J,0,t.value.length-1))(a.index+Z*B),Y=a.index!==X,L=F>=U,z=s.value>=.2;g(Y&&(L||z)?X:a.index)},M=()=>{a.startX=0,a.target=void 0,a.swiping=void 0,a.animation=void 0,u()};return Re(()=>t.value,()=>{if(!(t.value.length<=1))for(const[I,N]of t.value.entries())_(N,I)},{deep:!0}),Tt(()=>{l||(document.addEventListener("pointerup",A),document.addEventListener("pointermove",k))}),{state:Qn(a),set:g}}const iA={class:"vgo-gallery__wrapper"},sA=["loading","src","alt","onLoad"],lA={key:1,class:"vgo-gallery__cell-noimage"},cA=["tabindex"],uA=["tabindex"],dA={class:"vgo-gallery__pager"},pA=["onClick"],vA={__name:"cb-gallery",props:{images:{type:Array,default:()=>[]}},setup(e){const t=e,n=pe(null),r=pe([]),o=Mt({}),{state:i,set:a}=aA(n,r),l=v=>Math.max(0,Math.min(v,t.images.length-1)),s=()=>a(l(i.index+1)),c=()=>a(l(i.index-1)),u={ArrowRight:s,ArrowLeft:c,Home:()=>a(0),End:()=>a(t.images.length-1)},p=v=>{const m=u[v.key];m&&(v.preventDefault(),m())};return(v,m)=>(C(),R("div",{class:we(["vgo-gallery",{"vgo-gallery__grabable":e.images.length>1,"vgo-gallery__grabbing":O(i).swiping}]),tabindex:"0",onKeydown:sr(p,["stop","self"])},[h("div",iA,[e.images.length>0?(C(),R("div",{key:0,ref_key:"viewport",ref:n,class:"vgo-gallery__viewport"},[(C(!0),R(ge,null,je(e.images,(g,x)=>(C(),R("div",{key:g.url,ref_for:!0,ref_key:"cells",ref:r,class:"vgo-gallery__cell"},[h("div",{class:"vgo-gallery__cell-blur",style:pt({"background-image":o[g.url]?`url(${o[g.url]})`:"none"}),role:"img"},null,4),h("img",{loading:x===0?"eager":"lazy",src:g.url,alt:g.description,onLoad:_=>o[g.url]=g.url,onDragstart:m[0]||(m[0]=sr(()=>{},["prevent"]))},null,40,sA)]))),128))],512)):(C(),R("div",lA)),e.images.length>1?(C(),R(ge,{key:2},[h("a",{class:we(["vgo-gallery__previous",{hidden:O(i).index===0}]),tabindex:O(i).index===0?-1:0,href:"javascript:void(0)",onClick:c},m[1]||(m[1]=[h("span",{class:"cb-icon-aws cb-icon-aws--strong cb--chevron-left"},null,-1)]),10,cA),h("a",{class:we(["vgo-gallery__next",{hidden:O(i).index===e.images.length-1}]),tabindex:O(i).index===e.images.length-1?-1:0,href:"javascript:void(0)",onClick:s},m[2]||(m[2]=[h("span",{class:"cb-icon-aws cb-icon-aws--strong cb--chevron-right"},null,-1)]),10,uA),h("ol",dA,[(C(!0),R(ge,null,je(e.images,(g,x)=>(C(),R("li",{key:g.url,class:we({selected:O(i).index===x}),onClick:_=>O(a)(x)},null,10,pA))),128))])],64)):oe("",!0),ot(v.$slots,"default",{index:O(i).index},void 0,!0)])],34))}},Jr=Li(vA,[["__scopeId","data-v-239321eb"]]);Zr(`.vgo-gallery[data-v-239321eb] {
    overflow: hidden;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    container-type: inline-size;
    font-family: var(--vg-body-font-family);
    font-size: var(--vg-body-font-size);
    font-weight: var(--vg-body-font-weight);
    line-height: var(--vg-body-line-height);
    letter-spacing: var(--vg-body-letter-spacing);
}
.vgo-gallery[data-v-239321eb] *, .vgo-gallery[data-v-239321eb] *:before, .vgo-gallery[data-v-239321eb] *:after {box-sizing: border-box;}
.vgo-gallery[data-v-239321eb]:focus {
        outline: none;
}
.vgo-gallery__wrapper[data-v-239321eb] {
    position: relative;
    height: 100%;
}
.vgo-gallery__wrapper[data-v-239321eb]:before {
        content: '';
        position: absolute;
        inset: 0;
        background-color: currentColor;
        opacity: .1;
}
.vgo-gallery__viewport[data-v-239321eb] {
    position: relative;
    left: 0;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 0.3s ease-out;
    will-change: transform;
}
.vgo-gallery__cell[data-v-239321eb] {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.vgo-gallery__cell img[data-v-239321eb] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease-in-out;
        -webkit-touch-callout: none;
        will-change: filter;
}
.vgo-gallery__cell .vgo-gallery__cell-blur[data-v-239321eb] {
        position: absolute;
        inset: -25px;
        filter: blur(20px);
        opacity: .9;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        will-change: filter;
}
.vgo-gallery__grabable[data-v-239321eb] {
    cursor: -webkit-grab;
    cursor: grab;
}
.vgo-gallery__grabbing[data-v-239321eb] {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}
.vgo-gallery__grabbing .vgo-gallery__viewport[data-v-239321eb] {
    transition: none !important;
}
.vgo-gallery__grabbing .vgo-gallery__cell img[data-v-239321eb] {
    transform: scale3d(0.95, 0.95, 1);
}
.vgo-gallery__cell .cb-image[data-v-239321eb] {
    background-repeat: no-repeat;
    background-position: center;
}
.vgo-gallery__cell-noimage[data-v-239321eb] {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    max-width: 30%;
    max-height: 30%;
    transform: translate(-50%, -50%);
    -webkit-mask-image: var(--vg-noimage-background);
    mask-image: var(--vg-noimage-background);
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
    background-color: currentColor;
    opacity: .2;
}
.vgo-gallery__previous[data-v-239321eb],
.vgo-gallery__next[data-v-239321eb] {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    user-select: none;
    color: #222;
    background-color: #fff;
    transition: opacity 0.2s ease-out;
    text-decoration: none;
    opacity: 0;
    border-radius: 50%;
    font-size: 16px;
    text-decoration: none !important;
}
.vgo-gallery__grabbing .vgo-gallery__previous[data-v-239321eb],
.vgo-gallery__grabbing .vgo-gallery__next[data-v-239321eb],
.vgo-gallery__grabbing .vgo-gallery__pager li[data-v-239321eb] {
    pointer: none;
}
.vgo-gallery__previous[data-v-239321eb] {
    left: 15px;
}
.vgo-gallery__next[data-v-239321eb] {
    right: 15px;
}
.vgo-gallery:hover .vgo-gallery__previous[data-v-239321eb],
.vgo-gallery:hover .vgo-gallery__next[data-v-239321eb] {
    opacity: .7;
}
.vgo-gallery .vgo-gallery__previous[data-v-239321eb]:hover,
.vgo-gallery .vgo-gallery__next[data-v-239321eb]:hover {
    opacity: 1;
    box-shadow: 0 0 0 1px #fff, 0 0 5px rgba(0,0,0,.2);
    transition: opacity 0.1s ease-out;
}
.vgo-gallery .vgo-gallery__previous.hidden[data-v-239321eb],
.vgo-gallery .vgo-gallery__next.hidden[data-v-239321eb] {
    opacity: 0;
    pointer-events: none;
}
.vgo-gallery__pager[data-v-239321eb] {
    position: absolute;
    bottom: 10px;
    width: 100%;
    padding: 0;
    list-style: none;
    text-align: center;
    pointer-events: none;
    display: flex;
    justify-content: center;
    margin: 0;
}
.vgo-gallery__pager li[data-v-239321eb] {
    padding: 5px 3px;
    pointer-events: initial;
    cursor: pointer;
}
.vgo-gallery__pager li[data-v-239321eb]:before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    opacity: 1;
    background: transparent;
    border: 2px solid white;
    border-radius: 50%;
    transition: border-width .1s;
}
.vgo-gallery__pager li[data-v-239321eb]:hover:before,
.vgo-gallery__pager li.selected[data-v-239321eb]:before {
    border-width: 5px;
}`);const fA={__name:"cb-transition",setup(e){const t=o=>{const{width:i}=getComputedStyle(o);o.style.width=i,o.style.position="absolute",o.style.visibility="hidden",o.style.height="auto";const{height:a}=getComputedStyle(o);o.style.width=null,o.style.position=null,o.style.visibility=null,o.style.height=0,getComputedStyle(o).height,requestAnimationFrame(()=>{o.style.height=a})},n=o=>{o.style.height="auto"},r=o=>{const{height:i}=getComputedStyle(o);o.style.height=i,getComputedStyle(o).height,requestAnimationFrame(()=>{o.style.height=0})};return(o,i)=>(C(),fe(Ka,{name:"expand",onEnter:t,onAfterEnter:n,onLeave:r},{default:he(()=>[ot(o.$slots,"default",{},void 0,!0)]),_:3}))}},Qr=Li(fA,[["__scopeId","data-v-5aed59cf"]]);Zr(`
.expand-enter-active[data-v-5aed59cf],
    .expand-leave-active[data-v-5aed59cf] {
        will-change: height;
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
        transition: height .2s ease-in-out !important;
        overflow: hidden;
}
.expand-enter[data-v-5aed59cf],
    .expand-leave-to[data-v-5aed59cf] {
        will-change: height;
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
        height: 0;
}
`);const hA={class:"cb-description"},gA=["id"],mA={class:"cb-extra cb-text-small"},bA={key:0,class:"cb-text-strike cb-definition"},yA={class:"cb-text-muted"},wA={key:1,class:"cb-title"},kA=["id"],xA=["innerHTML"],_A={class:"cb-more"},na={__name:"cb-product-option-description",props:{name:{type:String,default:null},description:{type:String,default:null},price:{type:Number,default:0},currency:{type:String,default:null},priceText:{type:String,default:null},id:{type:String,default:null},originalPricing:{type:Number,default:0},isDiscounted:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=t,r=!!e.description;return(o,i)=>(C(),R("div",hA,[r?(C(),R("a",{key:0,href:"javascript:void(0);",class:"cb-title",onClick:i[0]||(i[0]=a=>n("click"))},[h("div",null,[h("h2",{id:e.id},H(e.name),9,gA),h("div",mA,[e.isDiscounted?(C(),R("span",bA,H(e.originalPricing),1)):oe("",!0),h("b",{class:we([{"cb-text-discount":e.isDiscounted}])},H(e.price),3),i[2]||(i[2]=xe()),h("span",yA,H(e.priceText),1)])])])):(C(),R("div",wA,[h("div",null,[h("h2",{id:e.id},H(e.name),9,kA)])])),r?(C(),R("a",{key:2,href:"javascript:void(0);",class:"cb-intro cb-hide-list-prod--small-open",onClick:i[1]||(i[1]=a=>n("click"))},[h("div",null,[h("p",{innerHTML:e.description},null,8,xA),h("div",_A,[h("span",null,H(o.$t("TodoWidget.MoreInformation")),1),i[3]||(i[3]=h("span",{class:"cb-icon-css cb-icon-css--down"},[h("span"),xe(" ")],-1))])])])):oe("",!0)]))}},CA={key:0,class:we(["cb-item-total","cb-selected"])},ra={__name:"cb-product-option-price-total",props:{selected:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=t;return(r,o)=>e.selected?(C(),R("div",CA,[h("div",null,[h("div",null,[ee(Qo),ee(O(ht),{size:"large",onClick:o[0]||(o[0]=i=>{n("click")})},{default:he(()=>[ot(r.$slots,"default")]),_:3})])])])):oe("",!0)}},SA={class:"cb-details"},DA={class:"cb-tab-nav"},TA={class:"cb-tab-content cb-tab-content--description"},AA={class:"cb-inner cb-text-format"},EA=["innerHTML"],oa={__name:"cb-product-option-details",props:{description:{type:String,default:""}},emits:["click"],setup(e,{emit:t}){const n=t;return(r,o)=>(C(),R("div",SA,[h("div",null,[h("div",DA,[h("a",{href:"javascript:void(0);",class:"cb-close",onClick:o[0]||(o[0]=i=>n("click"))},[o[2]||(o[2]=h("span",{class:"cb-icon-css cb-icon-css--close"},[h("span"),xe(" ")],-1)),h("span",null,H(r.$t("TodoWidget.Close")),1)])]),h("div",TA,[h("div",AA,[h("p",{innerHTML:e.description},null,8,EA),o[4]||(o[4]=h("p",null," ",-1)),h("a",{href:"javascript:void(0);",class:"cb-text-icon cb-hide-sm",onClick:o[1]||(o[1]=i=>n("click"))},[h("b",null,H(r.$t("TodoWidget.LessInformation")),1),o[3]||(o[3]=h("span",{class:"cb-icon-css cb-icon-css--up"},[h("span"),xe(" ")],-1))])])])])]))}},PA={class:"cb-item-header"},aa={__name:"cb-product-option-header",emits:["click"],setup(e,{emit:t}){const n=t;return(r,o)=>(C(),R("div",PA,[h("a",{href:"javascript:void(0);",class:"cb-close",onClick:o[0]||(o[0]=i=>n("click"))},[xe(H(r.$t("TodoWidget.CloseAndGoBack"))+" ",1),o[1]||(o[1]=h("span",{class:"cb-icon-css cb-icon-css--close"},[h("span"),xe(" ")],-1))])]))}},OA={class:"cb-item-content"},MA={class:"cb-summary"},IA={class:"cb-action"},LA={class:"cb-pricing"},jA={class:"cb-price"},RA={key:0,class:"cb-text-strike cb-definition"},$A={class:"cb-definition cb-text-muted"},rc={__name:"cb-product-option-select",props:{option:{type:Object,required:!0},priceGroupCode:{type:String,default:null},participantReference:{type:String,default:null},selectedOptionCode:{type:String,default:null},maxProductsPerSlot:{type:Number,default:null},selectedProductsPerSlot:{type:Number,default:null},numberOfOptions:{type:Number,default:null}},emits:["update:selectedOptionCode"],setup(e,{emit:t}){const{currentSlot:n,priceGroups:r,currency:o,updateProducts:i}=ae("widget"),{state:a,send:l}=ae("bookingFlowMachine"),{lookupContent:s,lookupContentImages:c}=ae("contentDatabase"),u=e,p=s(u.option.code,"name",u.option.name),v=s(u.option.code,"description",u.option.name),m=c(u.option.code),g=t,x=`cb-product-option-select-${it().uid}`,_=y(()=>u.selectedOptionCode===u.option.code),w=y(()=>{var B;return(B=u.option.priceGroupSelections)==null?void 0:B.filter(Z=>Z.priceGroup===u.priceGroupCode)}),k=y(()=>{var B,Z;return((Z=(B=r.value)==null?void 0:B.find(X=>X.code===u.priceGroupCode))==null?void 0:Z.amount)??1}),A=y(()=>{let B=null;switch(n.value.productSelectionDisplayType){case"SameForAllParticipants":B=u.option.productPricing.pricingForAllAndCurrency;break;case"PerBooking":B=u.option.productPricing.pricingPerBookingAndCurrency;break;case"PerPriceGroup":B=u.option.productPricing.pricesPerPriceGroup.find(Z=>Z.priceGroupCode===u.priceGroupCode).priceAndCurrency;break;case"PerParticipant":B=u.option.productPricing.pricesPerParticipant.find(Z=>Z.participantReference===u.participantReference).priceAndCurrency}return B}),M=y(()=>{let B=null;switch(n.value.productSelectionDisplayType){case"SameForAllParticipants":B=u.option.productPricing.originalPricingForAllAndCurrency;break;case"PerBooking":B=u.option.productPricing.originalPricingPerBookingAndCurrency;break;case"PerPriceGroup":B=u.option.productPricing.pricesPerPriceGroup.find(Z=>Z.priceGroupCode===u.priceGroupCode).originalPriceAndCurrency;break;case"PerParticipant":B=u.option.productPricing.pricesPerParticipant.find(Z=>Z.participantReference===u.participantReference).originalPriceAndCurrency}return B}),I=y(()=>!!M.value),N=y({get:()=>w.value.length,set(B){const Z={productCode:u.option.code,priceGroup:u.priceGroupCode,participantReference:u.participantReference,amount:B};i(Z),l("UPDATE")}}),S=y(()=>{if(!u.maxProductsPerSlot&&!u.option.maxAmount)return null;const B=u.selectedProductsPerSlot-N.value,Z=u.maxProductsPerSlot-B,X=u.option.maxAmount*k.value;return u.maxProductsPerSlot?u.option.maxAmount?Math.min(X,Z):Z:X}),F=y(()=>a.value.hasTag("loading")),U=()=>{g("update:selectedOptionCode",_.value?void 0:u.option.code)};return(B,Z)=>(C(),R("div",{class:we(["cb-item cb-item--addon-options",{"cb-open":_.value,"cb-selected":N.value>0}])},[ee(aa,{onClick:U}),h("div",OA,[h("div",null,[h("div",MA,[h("div",null,[ee(O(Jr),{images:O(m)},null,8,["images"]),ee(na,{id:`${x}-heading`,name:O(p),description:O(v),price:A.value,"original-pricing":M.value,"is-discounted":I.value,"price-text":B.$t("TodoWidget.ForEach"),onClick:U},null,8,["id","name","description","price","original-pricing","is-discounted","price-text"]),h("div",IA,[h("div",null,[h("div",LA,[h("div",jA,[I.value?(C(),R("span",RA," + "+H(M.value),1)):oe("",!0),h("span",{class:we(["cb-amount",{"cb-text-discount":I.value}])},"+ "+H(A.value),3),h("span",$A,H(B.$t("TodoWidget.ForEach")),1)])]),ee(O(Ql),{modelValue:N.value,"onUpdate:modelValue":Z[0]||(Z[0]=X=>N.value=X),"max-amount":S.value,"min-amount":e.option.minAmount,disabled:F.value,"aria-label":O(p),"aria-label-increase-amount":B.$t("TodoWidget.AmountIncrease"),"aria-label-decrease-amount":B.$t("TodoWidget.AmountDecrease")},null,8,["modelValue","max-amount","min-amount","disabled","aria-label","aria-label-increase-amount","aria-label-decrease-amount"])])]),Z[1]||(Z[1]=h("div",{class:"cb-lip"},null,-1))])]),ee(O(Qr),null,{default:he(()=>[_.value?(C(),fe(oa,{key:0,description:O(v),onClick:U},null,8,["description"])):oe("",!0)]),_:1})])]),ee(ra,{price:B.price,amount:N.value,selected:N.value>0,currency:O(o),"price-text":B.$t("TodoWidget.Price"),onClick:U},{default:he(()=>[xe(H(B.$t("TodoWidget.Done")),1)]),_:1},8,["price","amount","selected","currency","price-text"])],2))}},NA=["name","checked","disabled"],FA={__name:"cb-radio-button",props:{modelValue:{type:Boolean,required:!0},outline:{type:Boolean},name:{type:String,required:!0},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=ku(),i=y(()=>!!o.default),a=y({get:()=>n.modelValue,set(l){r("update:modelValue",l)}});return(l,s)=>(C(),R("label",{class:we(["cb-custom-control","cb-custom-radio",{"cb-custom-control-outline":e.outline}]),onClick:s[1]||(s[1]=sr(()=>{},["stop"]))},[h("input",{type:"radio",name:e.name,checked:a.value,disabled:e.disabled,onChange:s[0]||(s[0]=c=>a.value=!0)},null,40,NA),h("span",null,[s[2]||(s[2]=h("span",{class:"cb-indicator"},null,-1)),h("span",{class:we({"cb-text":i.value})},[ot(l.$slots,"default")],2)])],2))}},YA=FA,BA={class:"cb-item-content"},VA={class:"cb-summary"},UA={class:"cb-action"},WA={class:"cb-pricing"},zA={class:"cb-price"},HA={class:"cb-amount"},GA={style:{border:"0 !important",clip:"rect(1px,1px,1px,1px)",height:"1px !important",overflow:"hidden",padding:"0 !important",position:"absolute !important","white-space":"nowrap !important",width:"1px !important"}},Ff={__name:"cb-product-option-radio",props:{option:{type:Object,required:!0},priceGroupCode:{type:String,default:null},participantReference:{type:String,default:null},selectedOptionCode:{type:String,default:null}},emits:["update:selectedOptionCode"],setup(e,{emit:t}){const{currentSlot:n,priceGroups:r,updateProducts:o}=ae("widget"),{state:i,send:a}=ae("bookingFlowMachine"),{lookupContent:l,lookupContentImages:s}=ae("contentDatabase"),c=e,u=t,p=`cb-product-option-radio-${it().uid}`,v=y(()=>c.selectedOptionCode===c.option.code),m=y(()=>c.option.priceGroupSelections.find(S=>!(c.participantReference&&c.participantReference!==S.participantReference||c.priceGroupCode&&S.priceGroup!==c.priceGroupCode))),g=y(()=>c.priceGroupCode?r.value.find(S=>S.code===c.priceGroupCode).name:null),x=l(c.option.code,"name",c.option.name),_=l(c.option.code,"description",c.option.name),w=s(c.option.code),k=y(()=>{let S=null;switch(n.value.productSelectionDisplayType){case"SameForAllParticipants":S=c.option.productPricing.pricingForAllAndCurrency;break;case"PerBooking":S=c.option.productPricing.pricingPerBookingAndCurrency;break;case"PerPriceGroup":S=c.option.productPricing.pricesPerPriceGroup.find(F=>F.priceGroupCode===c.priceGroupCode).priceAndCurrency;break;case"PerParticipant":S=c.option.productPricing.pricesPerParticipant.find(F=>F.participantReference===c.participantReference).priceAndCurrency}return S}),A=y({get:()=>m.value,set(){let S=n.value.products.find(U=>U.priceGroupSelections.some(B=>!(c.participantReference&&c.participantReference!==B.participantReference||c.priceGroupCode&&B.priceGroup!==c.priceGroupCode)));if(S){let U={productCode:S.code,priceGroup:c.priceGroupCode,participantReference:c.participantReference,amount:0};o(U)}let F={productCode:c.option.code,priceGroup:c.priceGroupCode,participantReference:c.participantReference,amount:1};o(F),a("UPDATE")}}),M=y(()=>c.participantReference??c.priceGroupCode??"productOptionListRadio"),I=y(()=>i.value.hasTag("loading")),N=()=>{u("update:selectedOptionCode",v.value?void 0:c.option.code)};return(S,F)=>(C(),R("div",{class:we(["cb-item cb-item--addon-options",{"cb-open":v.value,"cb-selected":A.value}])},[ee(aa,{onClick:N}),h("div",BA,[h("div",null,[h("div",VA,[h("div",null,[ee(O(Jr),{images:O(w)},null,8,["images"]),ee(na,{id:`${p}-heading`,name:O(x),description:O(_),price:k.value,"price-text":g.value?S.$tf("TodoWidget.Per{0}",g.value):S.$t("TodoWidget.ForAll"),onClick:N},null,8,["id","name","description","price","price-text"]),h("div",UA,[h("div",null,[h("div",WA,[h("div",zA,[h("span",HA,"+"+H(k.value),1)])]),ee(O(YA),{modelValue:A.value,"onUpdate:modelValue":F[0]||(F[0]=U=>A.value=U),name:M.value,outline:"",disabled:I.value},{default:he(()=>[h("b",GA,H(O(x)),1),h("b",null,"+"+H(k.value),1)]),_:1},8,["modelValue","name","disabled"])])]),F[1]||(F[1]=h("div",{class:"cb-lip"},null,-1))])]),ee(O(Qr),null,{default:he(()=>[v.value?(C(),fe(oa,{key:0,description:O(l)(e.option.code,"description",e.option.description),onClick:N},null,8,["description"])):oe("",!0)]),_:1})])]),ee(ra,{selected:A.value,onClick:N},{default:he(()=>[xe(H(S.$t("TodoWidget.Done")),1)]),_:1},8,["selected"])],2))}},qA=["disabled"],ZA={__name:"cb-checkbox",props:{modelValue:{type:[String,Boolean],required:!0,validator:e=>["true","false","indeterminate",!0,!1].includes(e)},outline:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=ku(),i=`cb-checkbox-${it().uid}`,a=y(()=>!!o.default),l=y(()=>n.modelValue==="indeterminate"),s=y({get:()=>!!n.modelValue,set(c){r("update:modelValue",c)}});return(c,u)=>(C(),R("label",{class:we(["cb-custom-control","cb-custom-check",{"cb-custom-control-outline":e.outline}]),for:i,onClick:u[1]||(u[1]=sr(()=>{},["stop"]))},[Le(h("input",{id:i,"onUpdate:modelValue":u[0]||(u[0]=p=>s.value=p),type:"checkbox",disabled:e.disabled},null,8,qA),[[nm,s.value]]),h("span",null,[h("span",{class:we(["cb-indicator",{"cb-indeterminate":l.value}])},null,2),h("span",{class:we({"cb-text":a.value})},[ot(c.$slots,"default")],2)]),ot(c.$slots,"extra")],2))}},Yf=ZA,XA={class:"cb-item-content"},KA={class:"cb-summary"},JA={class:"cb-action"},QA={class:"cb-pricing"},eE={class:"cb-price"},tE={class:"cb-amount"},nE={class:"cb-definition cb-text-muted"},rE={key:0},oE={key:1},oc={__name:"cb-product-option-checkbox",props:{option:{type:Object,required:!0},priceGroupCode:{type:String,default:null},participantReference:{type:String,default:null},selectedOptionCode:{type:String,default:null}},emits:["update:selectedOptionCode"],setup(e,{emit:t}){const{currentSlot:n,updateProducts:r}=ae("widget"),{state:o,send:i}=ae("bookingFlowMachine"),{lookupContent:a,lookupContentImages:l}=ae("contentDatabase"),s=e,c=a(s.option.code,"name",s.option.name),u=a(s.option.code,"description",s.option.name),p=l(s.option.code),v=t,m=`cb-product-option-checkbox-${it().uid}`,g=y(()=>s.selectedOptionCode===s.option.code),x=y(()=>s.option.priceGroupSelections.filter(M=>!s.priceGroupCode||M.priceGroup===s.priceGroupCode)),_=y({get:()=>x.value.length>0,set(M){let I={productCode:s.option.code,priceGroup:s.priceGroupCode,participantReference:s.participantReference,amount:M?1:0};r(I),i("UPDATE")}}),w=y(()=>s.option.minAmount===1&&s.option.maxAmount===1&&_||o.value.hasTag("loading")),k=()=>{v("update:selectedOptionCode",g.value?void 0:s.option.code)},A=y(()=>{let M=null;switch(n.value.productSelectionDisplayType){case"SameForAllParticipants":M=s.option.productPricing.pricingForAllAndCurrency;break;case"PerBooking":M=s.option.productPricing.pricingPerBookingAndCurrency;break;case"PerPriceGroup":M=s.option.productPricing.pricesPerPriceGroup.find(I=>I.priceGroupCode===s.priceGroupCode).priceAndCurrency;break;case"PerParticipant":M=s.option.productPricing.pricesPerParticipant.find(I=>I.participantReference===s.participantReference).priceAndCurrency}return M});return(M,I)=>(C(),R("div",{class:we(["cb-item cb-item--addon-options",{"cb-open":g.value,"cb-selected":_.value}])},[ee(aa,{onClick:k}),h("div",XA,[h("div",null,[h("div",KA,[h("div",null,[ee(O(Jr),{images:O(p)},null,8,["images"]),ee(na,{id:`${m}-heading`,name:O(c),description:O(u),price:A.value,"price-text":M.$t("TodoWidget.ForAll"),onClick:k},null,8,["id","name","description","price","price-text"]),h("div",JA,[h("div",null,[h("div",QA,[h("b",eE,[h("span",tE,"+"+H(A.value),1)]),h("span",nE,H(M.$t("TodoWidget.ForAll")),1)]),ee(O(Yf),{modelValue:_.value,"onUpdate:modelValue":I[0]||(I[0]=N=>_.value=N),outline:"",disabled:w.value},{default:he(()=>[A.value?(C(),R("b",rE,"+"+H(A.value),1)):(C(),R("b",oE,H(M.$t("TodoWidget.IncludedInPrice")),1))]),_:1},8,["modelValue","disabled"])])]),I[1]||(I[1]=h("div",{class:"cb-lip"},null,-1))])]),ee(O(Qr),null,{default:he(()=>[g.value?(C(),fe(oa,{key:0,description:O(a)(e.option.code,"description",e.option.description),onClick:k},null,8,["description"])):oe("",!0)]),_:1})])]),ee(ra,{selected:_.value,onClick:k},{default:he(()=>[xe(H(M.$t("TodoWidget.Done")),1)]),_:1},8,["selected"])],2))}},aE={class:"cb-page-subtitle"},iE=["id"],sE={__name:"cb-product-list-pricegroup-options",props:{priceGroupCode:{type:String,default:null},options:{type:Array,default:()=>[]}},setup(e){const{currentSlot:t,priceGroups:n,selectedPriceGroups:r}=ae("widget"),{lookupContent:o}=ae("contentDatabase"),i={select:rc,radio:Ff,checkbox:oc},a=e,l=`cb-product-list-pricegroup-options-${it().uid}`,s=pe(void 0),c=y(()=>a.priceGroupCode?n.value.find(_=>_.code===a.priceGroupCode):null),u=y(()=>t.value.minAmount>0),p=y(()=>o(a.priceGroupCode,"name",null)),v=y(()=>t.value.minAmount===0?"cb-list-prod--standard-compact cb-list-prod--standard-sm":"cb-list-prod--list cb-list-prod--standard-sm"),m=y(()=>c.value.amount*t.value.maxAmount),g=y(()=>c.value.amount*t.value.minAmount),x=y(()=>{let _=0;return a.options.forEach(w=>{_+=w.priceGroupSelections.filter(k=>k.priceGroup===c.value.code&&k.amount>0).length}),_});return(_,w)=>(C(),R("div",null,[h("div",aE,[h("h2",{id:`${l}-heading`},H(_.$tf("TodoWidget.OptionsFor{0}",p.value)),9,iE)]),u.value?(C(),fe(rA,{key:0,name:p.value,"mandatory-amount":g.value,"selected-amount":x.value},null,8,["name","mandatory-amount","selected-amount"])):oe("",!0),h("div",{class:we(["cb-list-prod",v.value])},[h("div",null,[(C(!0),R(ge,null,je(e.options,k=>(C(),fe(Ar((()=>{var A;let M=(A=r.value)==null?void 0:A.find(I=>I.code===a.priceGroupCode);return M&&M.amount*t.value.maxAmount==1?t.value.minAmount===1?i.radio:i.checkbox:i.select})()),{key:k.code,"selected-option-code":s.value,"onUpdate:selectedOptionCode":w[0]||(w[0]=A=>s.value=A),"price-group-code":e.priceGroupCode,option:k,"max-products-per-slot":m.value,"selected-products-per-slot":x.value,"number-of-options":e.options.length},null,40,["selected-option-code","price-group-code","option","max-products-per-slot","selected-products-per-slot","number-of-options"]))),128))])],2)]))}},lE={__name:"cb-product-list-per-pricegroup",setup(e){const{currentSlot:t,selectedPriceGroups:n}=ae("widget"),r=o=>t.value.products.filter(i=>i.prices&&i.prices.find(a=>a.priceGroup===o));return(o,i)=>(C(!0),R(ge,null,je(O(n),a=>(C(),fe(sE,{key:a.code,"price-group-code":a.code,options:r(a.code)},null,8,["price-group-code","options"]))),128))}},cE={class:"cb-item-content"},uE={class:"cb-summary"},dE={class:"cb-action"},pE={class:"cb-pricing"},vE={class:"cb-from"},fE={class:"cb-price"},hE={class:"cb-amount"},gE={class:"cb-definition cb-text-muted"},mE={key:0,class:"cb-pricing"},bE={class:"cb-price"},yE={class:"cb-amount"},wE={__name:"cb-product-option-button",props:{option:{type:Object,required:!0},selectedOptionCode:{type:String,default:null}},emits:["update:selectedOptionCode"],setup(e,{emit:t}){const{currentSlot:n,updateProducts:r,isLastComponent:o}=ae("widget"),{state:i,send:a}=ae("bookingFlowMachine"),{lookupContent:l,lookupContentImages:s}=ae("contentDatabase"),c=e,u=l(c.option.code,"name",c.option.name),p=l(c.option.code,"description",c.option.name),v=s(c.option.code),m=t,g=y(()=>i.value.hasTag("loading")||i.value.hasTag("updating")),x=y(()=>c.option.priceGroupSelections.length>0),_=y(()=>g.value&&x.value),w=y(()=>g.value&&!x.value),k=`cb-product-option-button-${it().uid}`,A=y(()=>c.selectedOptionCode===c.option.code),M=()=>{m("update:selectedOptionCode",A.value?void 0:c.option.code)},I=async()=>{const S={productCode:c.option.code,amount:1};await r(S),o.value?a("UPDATE_AND_BOOK"):a("UPDATE_AND_CONTINUE")},N=y(()=>{var S;let F=null;switch(n.value.productSelectionDisplayType){case"SameForAllParticipants":F=(S=c.option.productPricing)==null?void 0:S.pricingForAllAndCurrency;break;case"PerBooking":F=c.option.productPricing.pricingPerBookingAndCurrency;break;case"PerPriceGroup":F=c.option.productPricing.pricesPerPriceGroup.find(U=>U.priceGroupCode===c.priceGroupCode).priceAndCurrency;break;case"PerParticipant":F=c.option.productPricing.pricesPerParticipant.find(U=>U.participantReference===c.participantReference).priceAndCurrency}return F});return(S,F)=>(C(),R("div",{class:we(["cb-item",{"cb-open":A.value}])},[ee(aa,{onClick:M}),h("div",cE,[h("div",null,[h("div",uE,[h("div",null,[ee(O(Jr),{images:O(v)},null,8,["images"]),ee(na,{id:`${k}-heading`,name:O(u),description:O(p),price:N.value,"price-text":S.$t("TodoWidget.SelectForAll"),onClick:M},null,8,["id","name","description","price","price-text"]),h("div",dE,[h("div",null,[h("div",pE,[h("b",vE,H(S.$t("TodoWidget.From")),1),h("b",fE,[h("span",hE," "+H(N.value),1)]),h("span",gE,H(S.$t("TodoWidget.ForEach")),1)]),ee(O(ht),{id:`${k}-button`,loading:_.value,"aria-labelledby":`${k}-heading ${k}-button`,active:x.value,disabled:w.value,onClick:I},{default:he(()=>[xe(H(S.$t("TodoWidget.SelectForAll")),1)]),_:1},8,["id","loading","aria-labelledby","active","disabled"])])]),F[0]||(F[0]=h("div",{class:"cb-lip"},null,-1))])]),ee(O(Qr),null,{default:he(()=>[A.value?(C(),fe(oa,{key:0,description:O(l)(e.option.code,"description",e.option.description),onClick:M},null,8,["description"])):oe("",!0)]),_:1})])]),ee(ra,{selected:!1,onClick:I},{default:he(()=>[xe(H(S.$t("TodoWidget.Done")),1)]),_:1}),h("div",{class:we(["cb-item-total",{"cb-selected":x.value}])},[h("div",null,[h("div",null,[N.value?(C(),R("div",mE,[h("b",null,H(S.$t("TodoWidget.TotalPriceFrom"))+":",1),F[1]||(F[1]=xe("  ")),h("b",bE,[h("span",yE,H(N.value),1)])])):oe("",!0),ee(O(ht),{loading:S.loading,size:"large",onClick:I},{default:he(()=>[xe(H(S.$t("TodoWidget.Continue"))+" ",1),F[2]||(F[2]=h("span",{class:"cb-icon-css cb-icon-css--next"},[h("span"),xe(" ")],-1))]),_:1},8,["loading"])])])],2)],2))}},kE={class:"cb-item-content"},xE={class:"cb-summary"},_E={class:"cb-action"},CE={class:"cb-pricing"},SE={class:"cb-from"},DE={class:"cb-price"},TE={class:"cb-amount"},AE={class:"cb-definition cb-text-muted"},EE={__name:"cb-product-option-select-for-all",props:{option:{type:Object,required:!0},priceGroupCode:{type:String,default:null},selectedOptionCode:{type:String,default:null},totalNumberOfParticipants:{type:Number,default:null},maxProductsPerSlot:{type:Number,default:null},selectedProductsPerSlot:{type:Number,default:null},numberOfOptions:{type:Number,default:null}},emits:["update:selectedOptionCode"],setup(e,{emit:t}){const{updateProductSelectionForAll:n}=ae("widget"),{state:r,send:o}=ae("bookingFlowMachine"),{lookupContent:i,lookupContentImages:a}=ae("contentDatabase"),l=e,s=i(l.option.code,"name",l.option.name),c=i(l.option.code,"description",l.option.name),u=a(l.option.code),p=t,v=`cb-product-option-select-all-${it().uid}`,m=y(()=>l.selectedOptionCode===l.option.code),g=y(()=>l.option.priceGroupSelections),x=y({get:()=>g.value.length/l.totalNumberOfParticipants,async set(M){await n(l.option.code,M),o("UPDATE")}}),_=y(()=>{const M=l.selectedProductsPerSlot/l.totalNumberOfParticipants-x.value,I=l.maxProductsPerSlot-M;return Math.min(l.option.maxAmount||100,I||100)}),w=y(()=>l.numberOfOptions===1&&l.option.minAmount===l.option.maxAmount||r.value.hasTag("loading")),k=()=>{p("update:selectedOptionCode",m.value?void 0:l.option.code)},A=y(()=>{var M;return(M=l.option.productPricing)==null?void 0:M.pricingForAllAndCurrency});return(M,I)=>(C(),R("div",{class:we(["cb-item cb-item--addon-options",{"cb-open":m.value,"cb-selected":x.value>0}])},[ee(aa,{onClick:k}),h("div",kE,[h("div",null,[h("div",xE,[h("div",null,[ee(O(Jr),{images:O(u)},null,8,["images"]),ee(na,{id:`${v}-heading`,name:O(s),description:O(c),price:A.value,"price-text":M.$t("TodoWidget.ForEach"),onClick:k},null,8,["id","name","description","price","price-text"]),h("div",_E,[h("div",null,[h("div",CE,[h("b",SE,H(M.$t("TodoWidget.From")),1),h("b",DE,[h("span",TE," "+H(A.value),1)]),h("span",AE,H(M.$t("TodoWidget.ForEach")),1)]),ee(O(Ql),{modelValue:x.value,"onUpdate:modelValue":I[0]||(I[0]=N=>x.value=N),"max-amount":_.value,"min-amount":e.option.minAmount,disabled:w.value,"aria-label":O(s),"aria-label-increase-amount":M.$t("TodoWidget.AmountIncrease"),"aria-label-decrease-amount":M.$t("TodoWidget.AmountDecrease")},null,8,["modelValue","max-amount","min-amount","disabled","aria-label","aria-label-increase-amount","aria-label-decrease-amount"])])]),I[1]||(I[1]=h("div",{class:"cb-lip"},null,-1))])]),ee(O(Qr),null,{default:he(()=>[m.value?(C(),fe(oa,{key:0,description:O(c),onClick:k},null,8,["description"])):oe("",!0)]),_:1})])]),ee(ra,{selected:x.value>0,onClick:k},{default:he(()=>[xe(H(M.$t("TodoWidget.Done")),1)]),_:1},8,["selected"])],2))}},PE={class:"cb-page-subtitle"},OE=["id"],ME={key:0},IE={key:1},LE={__name:"cb-product-list-for-all",props:{options:{type:Array,default:()=>[]}},setup(e){const{currentSlot:t,selectedPriceGroups:n}=ae("widget"),r=e,o=`cb-product-list-${it().uid}`,i=pe(void 0),a=y(()=>t.value.minAmount===0?"cb-list-prod--standard-compact cb-list-prod--standard-sm":"cb-list-prod--list cb-list-prod--standard-sm"),l=y(()=>{let u=0;return n.value.forEach(p=>{u+=p.amount}),u}),s=y(()=>{let u=0;return r.options.forEach(p=>{u+=p.priceGroupSelections.filter(v=>v.amount>0).length}),u}),c=y(()=>t.maxAmount===1||r.options.every(u=>u.maxAmount===1));return(u,p)=>(C(),R("div",null,[h("div",PE,[h("h2",{id:`${o}-heading`},H(u.$t("TodoWidget.ForEach")),9,OE)]),h("div",{class:we(["cb-list-prod","cb-spacer-top-xl",a.value])},[c.value?(C(),R("div",ME,[(C(!0),R(ge,null,je(e.options,v=>(C(),fe(wE,{key:v.code,"selected-option-code":i.value,"onUpdate:selectedOptionCode":p[0]||(p[0]=m=>i.value=m),option:v},null,8,["selected-option-code","option"]))),128))])):(C(),R("div",IE,[(C(!0),R(ge,null,je(e.options,v=>(C(),fe(EE,{key:v.code,"selected-option-code":i.value,"onUpdate:selectedOptionCode":p[1]||(p[1]=m=>i.value=m),option:v,"total-number-of-participants":l.value,"max-products-per-slot":O(t).maxAmount,"selected-products-per-slot":s.value,"number-of-options":e.options.length},null,8,["selected-option-code","option","total-number-of-participants","max-products-per-slot","selected-products-per-slot","number-of-options"]))),128))]))],2)]))}},jE={__name:"cb-product-list-per-booking",props:{options:{type:Array,default:()=>[]}},setup(e){const{currentSlot:t}=ae("widget"),n={select:rc,radio:Ff,checkbox:oc},r=e,o=pe(void 0),i=y(()=>t.value.minAmount===0?"cb-list-prod--standard-compact cb-list-prod--standard-sm":"cb-list-prod--list cb-list-prod--standard-sm"),a=y(()=>{let l=0;return r.options.forEach(s=>{l+=s.priceGroupSelections.filter(c=>c.amount>0).length}),l});return(l,s)=>(C(),R("div",null,[h("div",{class:we(["cb-list-prod cb-spacer-top-xl",i.value])},[h("div",null,[(C(!0),R(ge,null,je(e.options,c=>(C(),fe(Ar((u=>Math.min(u??Number.MAX_VALUE,t.value.maxAmount??Number.MAX_VALUE)>1?n.select:t.value.minAmount===1&&t.value.maxAmount===1&&r.options.length>1?n.radio:n.checkbox)(c.maxAmount)),{key:c.code,"selected-option-code":o.value,"onUpdate:selectedOptionCode":s[0]||(s[0]=u=>o.value=u),"price-group-code":null,option:c,"max-products-per-slot":O(t).maxAmount,"selected-products-per-slot":a.value,"number-of-options":e.options.length},null,40,["selected-option-code","option","max-products-per-slot","selected-products-per-slot","number-of-options"]))),128))])],2)]))}},RE=["id","checked","radioName","disabled"],$E={class:"cb-summary"},NE=["for"],FE={class:"cb-pricing"},YE={key:0,class:"cb-details"},BE={class:"cb-description cb-text-format"},VE={class:"cb-gallery"},UE=["innerHTML"],WE={class:"cb-book-options"},zE={class:"cb-option cb--confirm"},HE={__name:"cb-product-option-radio-new",props:{option:{type:Object,required:!0},priceGroupCode:{type:String,default:null},participantReference:{type:String,default:null},selectedOptionCode:{type:String,default:null}},emits:["update:selectedOptionCode"],setup(e,{emit:t}){const{currentSlot:n,updateProducts:r}=ae("widget"),{state:o,send:i}=ae("bookingFlowMachine"),{lookupContent:a,lookupContentImages:l}=ae("contentDatabase"),s=e,c=t,u=`cb-product-option-radio-new-${it().uid}`,p=y(()=>s.selectedOptionCode===s.option.code),v=y(()=>s.option.priceGroupSelections.find(I=>!(s.participantReference&&s.participantReference!==I.participantReference||s.priceGroupCode&&I.priceGroup!==s.priceGroupCode))),m=a(s.option.code,"name",s.option.name),g=a(s.option.code,"description",s.option.name),x=l(s.option.code),_=y(()=>{let I=null;switch(n.value.productSelectionDisplayType){case"SameForAllParticipants":I=s.option.productPricing.pricingForAllAndCurrency;break;case"PerBooking":I=s.option.productPricing.pricingPerBookingAndCurrency;break;case"PerPriceGroup":I=s.option.productPricing.pricesPerPriceGroup.find(N=>N.priceGroupCode===s.priceGroupCode).priceAndCurrency;break;case"PerParticipant":I=s.option.productPricing.pricesPerParticipant.find(N=>N.participantReference===s.participantReference).priceAndCurrency}return I}),w=y({get:()=>v.value,set(){let I=n.value.products.find(S=>S.priceGroupSelections.some(F=>!(s.participantReference&&s.participantReference!==F.participantReference||s.priceGroupCode&&F.priceGroup!==s.priceGroupCode)));if(I){let S={productCode:I.code,priceGroup:s.priceGroupCode,participantReference:s.participantReference,amount:0};r(S)}let N={productCode:s.option.code,priceGroup:s.priceGroupCode,participantReference:s.participantReference,amount:1};r(N),i("UPDATE")}}),k=y(()=>s.participantReference??s.priceGroupCode??"productOptionListRadio"),A=y(()=>o.value.hasTag("loading")),M=()=>{c("update:selectedOptionCode",p.value?void 0:s.option.code)};return(I,N)=>(C(),R("div",{class:we(["cb-item cb-item--input-checked-selected",{"cb-open":p.value}])},[h("input",{id:`${u}-input`,type:"radio",checked:w.value,radioName:k.value,disabled:A.value,onChange:N[0]||(N[0]=S=>w.value=!0)},null,40,RE),h("div",$E,[h("div",null,[h("label",{for:`${u}-input`,class:"cb-clickable",onClick:N[1]||(N[1]=S=>w.value=!0)},N[3]||(N[3]=[h("span",{class:"cb-icon-radio"},null,-1)]),8,NE),h("div",{class:"cb-info cb-clickable",style:{"flex-grow":"1"},onClick:M},[h("div",null,[h("b",null,H(O(m)),1)])]),h("div",{class:"cb-clickable",onClick:M},[h("span",FE,[h("b",null,"+"+H(_.value),1)]),N[4]||(N[4]=h("span",{class:"cb-icon-css cb-icon-css--down cb-hide-sm",style:{"margin-left":"5px"}},[h("span"),xe(" ")],-1))])])]),ee(O(Qr),null,{default:he(()=>[p.value?(C(),R("div",YE,[h("div",BE,[h("div",VE,[ee(O(Jr),{images:O(x)},null,8,["images"])]),h("p",{innerHTML:O(g)},null,8,UE)]),h("div",WE,[h("div",null,[h("div",zE,[ee(O(ht),{onClick:N[2]||(N[2]=S=>{w.value=!0,M()})},{default:he(()=>N[5]||(N[5]=[xe(" Choose ")])),_:1})])])])])):oe("",!0)]),_:1})],2))}},GE={class:"cb-page-subtitle"},qE=["id"],ZE={key:0},XE={key:1},KE={key:2},JE={__name:"cb-product-list-participant-options",props:{participant:{type:Object,required:!0},index:{type:Number,required:!0}},setup(e){const{currentSlot:t}=ae("widget"),{lookupContent:n}=ae("contentDatabase"),r="select",o="radio",i="checkbox",a=e,l=`cb-product-list-participant-options-${it().uid}`,s=pe(void 0),c=y(()=>t.value.products.filter(x=>x.prices&&x.prices.find(_=>_.priceGroup===a.participant.categoryCode))),u=y(()=>g.value===o?"cb-list-picker":t.value.minAmount===0?"cb-list-prod cb-list-prod--standard-compact cb-list-prod--standard-sm":"cb-list-prod cb-list-prod--list cb-list-prod--standard-sm"),p=y(()=>n(a.participant.categoryCode,"name",null)),v=y(()=>t.value.maxAmount),m=y(()=>{let x=0;return a.options.forEach(_=>{x+=_.priceGroupSelections.filter(w=>w.priceGroup===a.participant.categoryCode&&w.amount>0).length}),x}),g=y(()=>t.value.maxAmount===1?t.value.minAmount===1?o:i:r);return(x,_)=>(C(),R("div",null,[h("div",GE,[h("h2",{id:`${l}-heading`},H(e.index)+" "+H(x.$tf("TodoWidget.OptionsFor{0}",p.value)),9,qE)]),h("div",{class:we([u.value])},[g.value==r?(C(),R("div",ZE,[ee(rc),(C(!0),R(ge,null,je(c.value,w=>(C(),fe(Ar(g.value),{key:w.code,"selected-option-code":s.value,"onUpdate:selectedOptionCode":_[0]||(_[0]=k=>s.value=k),"price-group-code":e.participant.categoryCode,"participant-reference":e.participant.participantReference,option:w,"max-products-per-slot":v.value,"selected-products-per-slot":m.value,"number-of-options":c.value.length},null,40,["selected-option-code","price-group-code","participant-reference","option","max-products-per-slot","selected-products-per-slot","number-of-options"]))),128))])):oe("",!0),g.value==o?(C(),R("div",XE,[(C(!0),R(ge,null,je(c.value,w=>(C(),fe(HE,{key:w.code,"selected-option-code":s.value,"onUpdate:selectedOptionCode":_[1]||(_[1]=k=>s.value=k),"participant-reference":e.participant.participantReference,"price-group-code":e.participant.categoryCode,option:w},null,8,["selected-option-code","participant-reference","price-group-code","option"]))),128))])):oe("",!0),g.value==i?(C(),R("div",KE,[(C(!0),R(ge,null,je(c.value,w=>(C(),fe(oc,{key:w.code,"selected-option-code":s.value,"onUpdate:selectedOptionCode":_[2]||(_[2]=k=>s.value=k),"participant-reference":e.participant.participantReference,"price-group-code":e.participant.categoryCode,option:w},null,8,["selected-option-code","participant-reference","price-group-code","option"]))),128))])):oe("",!0)],2)]))}},QE=["innerHTML"],eP={__name:"cb-product-list-participant-header",setup(e){const{currentSlot:t,widgetState:n}=ae("widget"),r=y(()=>n.todoConfiguration.guests.length),o=y(()=>{let s=0;for(let c=0;c<t.value.products.length;c++)s+=t.value.products[c].priceGroupSelections.length;return s}),i=y(()=>r.value>o.value?r.value-o.value:0),a=y(()=>i.value===0),l=y(()=>a.value?"cb--plate-valid":"cb--plate-info");return(s,c)=>(C(),R("div",{class:we(["cb-page-message cb-spacer-top",l.value,{"cb--sticky":!a.value}]),role:"alert"},[h("div",null,[h("div",null,[Le(h("span",{innerHTML:s.$tf("TodoWidget.YouHave{0}LeftToChoose",i.value)},null,8,QE),[[Ye,!a.value]]),Le(h("b",null,H(s.$t("TodoWidget.AllDone")),513),[[Ye,a.value]])])])],2))}},tP={__name:"cb-product-list-per-participant",setup(e){const{widgetState:t}=ae("widget"),n=pe(t.todoConfiguration.guests??[]);return(r,o)=>(C(),R(ge,null,[ee(eP),(C(!0),R(ge,null,je(n.value,(i,a)=>(C(),fe(JE,{key:i.id,participant:i,index:a+1},null,8,["participant","index"]))),128))],64))}},qn={SameForAllParticipants:"SameForAllParticipants",PerParticipant:"PerParticipant",PerPriceGroup:"PerPriceGroup",PerBooking:"PerBooking"},Bf="NO_ERR",nP={class:"cb-outer"},rP={class:"cb-content"},oP={class:"cb-page-new cb--cnt-compact"},aP={class:"cb-page-inner"},iP={class:"cb-page-section"},sP={__name:"cb-products",setup(e){const{currentSlot:t}=ae("widget");return(n,r)=>(C(),R("div",nP,[h("div",rP,[h("div",oP,[h("div",aP,[h("div",iP,[h("div",null,[ee(ta),O(t).productSelectionDisplayType==O(qn).SameForAllParticipants?(C(),fe(LE,{key:0,options:O(t).products},null,8,["options"])):oe("",!0),O(t).productSelectionDisplayType==O(qn).PerBooking?(C(),fe(jE,{key:1,options:O(t).products},null,8,["options"])):oe("",!0),O(t).productSelectionDisplayType==O(qn).PerPriceGroup?(C(),fe(lE,{key:2})):oe("",!0),O(t).productSelectionDisplayType==O(qn).PerParticipant?(C(),fe(tP,{key:3})):oe("",!0)])])])])])]))}},lP=["name","checked","disabled"],cP={key:0,class:"cb-icon-aws cb-icon-aws--stronger cb--circle-info"},uP={key:1,class:"cb-text-small"},dP={key:0},pP={key:1,class:"cb-text-small cb-text-soldout"},vP={key:2,class:"cb-spotsleft cb-spotsleft--sm"},fP={__name:"cb-occasion-select-item",props:{occasion:{type:Object,default:null},radioName:{type:String,default:"occasion"}},emits:["occasionClick"],setup(e,{emit:t}){const{state:n}=ae("bookingFlowMachine"),r=e,o=t,i=pe(null),a=n.value.context.showOccasionCapacity,l=y(()=>r.occasion.remark),s=y(()=>!!l.value),c=r.occasion.priceFromAndCurrency,u=pe(100-r.occasion.occupancyLevel+"%"),p=y(()=>!r.occasion.selectable||n.value.hasTag("loading")),v=()=>{p.value||o("occasionClick",r.occasion.id)};return(m,g)=>(C(),R(ge,null,[s.value?(C(),fe(O(Df),{key:0,anchor:i.value,style:{"z-index":"10048"}},{default:he(()=>[h("span",null,H(l.value),1)]),_:1},8,["anchor"])):oe("",!0),h("label",{ref_key:"label",ref:i},[h("input",{type:"radio",name:e.radioName,checked:e.occasion.selected,disabled:p.value,onClick:v},null,8,lP),h("span",null,[s.value?(C(),R("span",cP)):oe("",!0),h("b",null,H(e.occasion.startTime)+" - "+H(e.occasion.endTime),1),O(c)||e.occasion.salesMessage||O(a)?(C(),R("span",uP,[O(c)?(C(),R("span",dP," + "+H(O(c))+"  ",1)):oe("",!0),e.occasion.salesMessage&&!O(a)?(C(),R("span",pP,H(e.occasion.salesMessage),1)):oe("",!0),O(a)?(C(),R("span",vP,[h("span",null,[h("em",null,[h("i",{style:pt({width:u.value})},null,4)]),h("span",null,H(e.occasion.availability)+" / "+H(e.occasion.capacity),1)])])):oe("",!0)])):oe("",!0)])],512)],64))}},hP={class:"cb-outer"},gP={class:"cb-content"},mP={class:"cb-page-new cb--cnt-compact"},bP={class:"cb-page-inner"},yP={class:"cb-page-section"},wP={class:"cb-list-option cb-spacer-top-xl"},kP={__name:"cb-occasions",setup(e){const{currentSlotTours:t,updateTours:n}=ae("widget"),{send:r}=ae("bookingFlowMachine"),o=i=>{t.value.forEach(a=>{a.selected=!1}),t.value.find(a=>a.id===i).selected=!0,n(t.value),r("UPDATE")};return(i,a)=>(C(),R("div",hP,[h("div",gP,[h("div",mP,[h("div",bP,[h("div",yP,[h("div",null,[ee(ta),h("div",wP,[h("div",null,[(C(!0),R(ge,null,je(O(t),l=>(C(),fe(fP,{key:l.id,occasion:l,onOccasionClick:o},null,8,["occasion"]))),128))])])])])])])])]))}},xP={class:"cb-outer"},_P={class:"cb-content"},CP={class:"cb-page-new cb--cnt-compact"},SP={class:"cb-page-inner"},DP={class:"cb-page-section"},TP={class:"cb-panel cb-spacer-top-xl"},AP={class:"cb-book-options"},EP={class:"cb-option cb--mytickets"},PP={class:"cb-ticket"},OP={class:"cb-type cb-text-muted"},MP={class:"cb-seat cb-text-muted"},IP={class:"cb-pricing"},LP={key:0,class:"cb-option cb--confirm-wide"},jP={__name:"cb-arrangement",setup(e){const{currentFlattenedSeatings:t,getPriceGroupNameById:n,hasCurrentSeatPickerScript:r}=ae("widget"),{send:o,state:i}=ae("bookingFlowMachine"),{lookupContent:a}=ae("contentDatabase"),l=it(),s=y(()=>t.value),c=y(()=>i.value.hasTag("updating")||i.value.hasTag("loading")),u=y(()=>v=>{if(v.priceGroupCode){var m=n(v.priceGroupCode);if(m)return m.name}return""}),p=()=>{c.value||o("MODAL_EXPAND")};if(!s.value||s.value.length===0)throw l.proxy.$t("TodoWidget.ProductConfigError")+": "+l.proxy.$t("Seatings not supplied");return(v,m)=>(C(),R("div",xP,[h("div",_P,[h("div",CP,[h("div",SP,[h("div",DP,[h("div",null,[ee(ta),h("div",TP,[h("div",null,[h("div",AP,[h("div",null,[h("div",EP,[h("div",null,[h("table",null,[h("thead",null,[h("tr",null,[h("th",null,H(v.$t("TodoWidget.SelectedSeats.Ticket")),1),h("th",null,H(v.$t("TodoWidget.SelectedSeats.Type")),1),h("th",null,H(v.$t("TodoWidget.SelectedSeats.Seat")),1),h("th",null,H(v.$t("TodoWidget.SelectedSeats.Price")),1)])]),h("tbody",null,[(C(!0),R(ge,null,je(s.value,g=>(C(),R("tr",{key:g.seatId},[h("td",PP,[h("b",null,H(O(a)(g.productName,"name")),1)]),h("td",OP,H(g.zoneName)+", "+H(u.value(g)),1),h("td",MP,H(v.$t("TodoWidget.SelectedSeats.Row"))+" "+H(g.seatRow)+", "+H(v.$t("TodoWidget.SelectedSeats.Seat"))+" "+H(g.seatName),1),h("td",IP,[h("b",null,H(g.priceAndCurrency),1)])]))),128))])])])]),O(r)?(C(),R("div",LP,[ee(O(ht),{secondary:"",loading:c.value,onClick:p},{default:he(()=>[xe(H(v.$t("TodoWidget.ChangeSelectedSeats")),1)]),_:1},8,["loading"])])):oe("",!0)])])])])])])])])])]))}},RP={__name:"cb-slot-display",setup(e){const{widgetState:t,isFirstModalComponent:n}=ae("widget"),r={CbStart:yT,CbTours:QT,CbProducts:sP,CbOccasions:kP,CbArrangement:jP},o=y(()=>t.currentComponent),i=y(()=>o.value.reverted?"cb-slide-in-left":"cb-slide-in-right"),a=y(()=>o.value.reverted?"cb-slide-out-right":"cb-slide-out-left"),l=(c,u)=>{n.value?u():(c.classList.add(i.value),setTimeout(()=>{c.classList.remove(i.value),u()},300))},s=(c,u)=>{c.classList.add(a.value),setTimeout(()=>{u()},300)};return(c,u)=>(C(),fe(Ka,{mode:"out-in",onEnter:l,onLeave:s},{default:he(()=>[O(t).currentComponent?(C(),fe(Ar(r[O(t).currentComponent.name]),{key:O(t).currentComponent.slotIndex},{toolbar:he(()=>[ot(c.$slots,"toolbar")]),_:3})):oe("",!0)]),_:3}))}},$P={class:"cb-header"},NP={__name:"cb-mfp-header",emits:["closeClick"],setup(e,{emit:t}){const n=t;return(r,o)=>(C(),R("div",$P,[h("a",{href:"javascript:void(0)",class:"cb-mfp-close cb-close",onClick:o[0]||(o[0]=i=>n("closeClick")),onKeyup:o[1]||(o[1]=Mo(sr(i=>n("closeClick"),["stop"]),["enter"]))},[ot(r.$slots,"default"),o[2]||(o[2]=h("span",{class:"cb-icon-css cb-icon-css--close",innerHTML:"<span></span> "},null,-1))],32)]))}},Vf=NP,FP={class:"cb-mfp-container cb-mfp-inline-holder cb-wrapper-click-trigger"},YP={class:"cb-mfp-content cb-wrapper-click-trigger"},BP={__name:"cb-mfp-modal",props:{modelValue:{type:Boolean,required:!0},expanded:{type:Boolean,default:null},mode:{type:String,default:null,validator:e=>["gallery","panel","basket","stripped"].includes(e)},isLocked:{type:Boolean,default:!1}},emits:["update:modelValue","modalOpen","modalClose","modalScroll","update:expanded","modalExpand","modalShrink"],setup(e,{emit:t}){const n=e,r=t,o=pe(!1),i=pe(!0),a=pe(!1),l=pe(!0),s=pe(null),c=pe(null),u=pe(!1),p=pe(!1),v=pe(!1),m=pe(!1),g=pe(!1),x=pe(!1),_=pe(!1),w=pe(!1),k=pe(!1),A=pe(!1),M=y(()=>{switch(n.mode){case"gallery":return"cb-modal cb-modal-photos";case"panel":return"cb-modal cb-modal-panel";case"basket":return"cb-widget-basket-details-container";case"stripped":return"cb-modal";default:return"cb-modal cb-modal-standard"}}),I=y(()=>["cb-mfp-bg",M.value,{"cb-mfp-ready":g.value,"cb-mfp-removing":x.value}]),N=y(()=>["cb-mfp-wrap","cb-mfp-close-btn-in","cb-mfp-auto-cursor","cb-esc-close",M.value,{"cb-mfp-ready":_.value,"cb-mfp-removing":w.value,"cb-zoom":m.value}]),S=y(()=>["cb-mfp-wrap","cb-modal","cb-zoom","cb-wrapper-click-trigger",{"cb-mfp-ready":k.value,"cb-mfp-removing":A.value}]),F=B=>{if(B.target.classList.contains("cb-wrapper-click-trigger")||B.target.classList.contains("cb-esc-close")||B.key==="Escape"){if(n.isLocked)return;n.expanded?r("update:expanded",!1):r("update:modelValue",!1)}},U=B=>{p.value&&r("modalScroll",B)};return Re(()=>n.modelValue,B=>{B?o.value||(o.value=!0,i.value=!1,u.value=!0,p.value=!0,setTimeout(()=>{var Z,X;g.value=!0,_.value=!0,(Z=s.value)==null||Z.setAttribute("is-open",""),r("modalOpen"),(X=s.value)==null||X.focus()},16)):i.value||(o.value=!1,i.value=!0,w.value=!0,x.value=!0,setTimeout(()=>{var Z;u.value=!1,x.value=!1,g.value=!1,p.value=!1,_.value=!1,w.value=!1,(Z=s.value)==null||Z.removeAttribute("is-open"),r("modalClose")},200))},{immediate:!0}),Re(()=>n.expanded,B=>{B?a.value||(a.value=!0,l.value=!1,w.value=!0,m.value=!0,_.value=!1,v.value=!0,setTimeout(()=>{k.value=!0},120),setTimeout(()=>{p.value=!1,r("modalExpand")},400)):l.value||(a.value=!1,l.value=!0,p.value=!0,A.value=!0,k.value=!1,setTimeout(()=>{_.value=!0,w.value=!1,A.value=!1},20),setTimeout(()=>{v.value=!1,m.value=!1,r("modalShrink")},300))},{immediate:!0}),Tt(()=>{const B=Array.from(document.getElementsByClassName("cb-mfp-wrap")).indexOf(s.value),Z=window.getComputedStyle(s.value).getPropertyValue("z-index");s.value.style["z-index"]=Number(Z)+B,c.value&&(c.value.style["z-index"]=Number(Z)+B)}),(B,Z)=>(C(),fe(vg,{to:"body"},[Le(h("div",Zt({class:I.value},B.$attrs),null,16),[[Ye,u.value]]),Le(h("div",Zt(B.$attrs,{ref_key:"wrapper",ref:s,class:N.value,tabindex:"-1",style:{overflow:"hidden auto"},onClick:F,onScroll:U,onKeydown:Mo(F,["esc"])}),[h("div",FP,[h("div",YP,[ot(B.$slots,"default")])])],16),[[Ye,p.value]]),e.expanded!==null?Le((C(),R("div",{key:0,ref_key:"expandedWrapper",ref:c,class:we(S.value),tabindex:"-1",onClick:F},[ot(B.$slots,"expanded")],2)),[[Ye,v.value]]):oe("",!0)]))}},Uf=BP;Zr(`
body:has(> .cb-mfp-wrap[is-open]) {
        overflow: hidden;
        scrollbar-gutter: stable;
}
`);const VP={class:"cb-framework"},UP={class:"cb-seatpicker"},WP={class:"cb-modal-header cb-hide-lg"},zP={class:"cb-venue",style:{overflow:"hidden","user-select":"none","touch-action":"none",cursor:"grab"}},HP={class:"cb-tickets-outer"},GP={class:"cb-venue-legends"},qP={class:"cb-colors"},ZP={key:0,class:"cb-text-muted"},XP={class:"cb-seats"},KP={class:"cb-venue-legend"},JP={class:"cb-venue-legend"},QP={class:"cb-venue-legend"},eO={class:"cb-tickets"},tO={class:"cb-header"},nO={class:"cb-content"},rO={class:"cb-venue-legend"},oO={class:"cb-text-small cb-text-muted"},aO={class:"cb-action"},iO={class:"cb-footer"},sO={class:"cb-hide-lg"},lO={class:"cb-hide-sm"},cO={__name:"cb-seat-picker-wrapper",emits:["close-click"],setup(e,{emit:t}){const{state:n,send:r}=ae("bookingFlowMachine"),{lookupContent:o}=ae("contentDatabase"),{currency:i,currentSeatPickerScript:a,currentFlattenedSeatings:l,currentSlot:s,currentSelectionPrices:c,updateSelectedSeats:u}=ae("widget"),p=it(),v=t,m=pe(null),g=pe(null),x=pe(null),_=pe(null),w=pe([]),k=pe(!0),A=y(()=>a.value),M=y(()=>s.value.lowestZonePrices),I=y({get:()=>k.value,set(X){U(X)}}),N=y(()=>X=>{var Y,L=(Y=w.value[X])==null?void 0:Y.color;return L?"color:"+L:""}),S=y(()=>X=>{let Y=M.value.find(L=>L.zoneIndex===X);return Y?p.proxy.$t("TodoWidget.From")+" "+Y.priceAndCurrency:p.proxy.$t("TodoWidget.SeatPicker.ZoneNotAvailable")}),F=y(()=>n.value.hasTag("updating")),U=X=>{_.value.adjacentMode=X,k.value=X},B=(X,Y)=>{let L=c.value.find(J=>J.priceGroup===Y),z=L.priceLevels.find(J=>J.zoneIndex===X);return z||(z=L.priceLevels[0]),z.priceAndCurrency},Z=()=>{r("MODAL_SHRINK")};return Tt(()=>{g.value=l.value.map(L=>({...L}));var X=m.value,Y=document.createElement("script");Y.src=A.value,X.appendChild(Y),X.addEventListener("seatpicker.onInit",L=>{_.value=L.detail,w.value=self.seatPicker.getZoneInformation(),k.value=self.seatPicker.adjacentMode}),X.addEventListener("seatpicker.onConfirmCallback",L=>{(async z=>{var J,te;if(z.length!==0){z.length===g.value.length&&(x.value=null);for(let se=0;se<z.length;se++){let re=0;x.value!==null&&x.value<g.value.length-1&&(re=x.value+1),g.value[re].seatId=z[se].id,g.value[re].seatRow=z[se].row,g.value[re].seatName=z[se].name,g.value[re].zoneIndex=z[se].zoneIndex,g.value[re].zoneName=((J=w.value[z[se].zoneIndex])==null?void 0:J.name)??"",g.value[re].zoneColor=((te=w.value[z[se].zoneIndex])==null?void 0:te.color)??"",g.value[re].price=B(z[se].zoneIndex,g.value[re].priceGroupCode),x.value=re}u(g.value),r("UPDATE")}})(L.detail)})}),(X,Y)=>(C(),R("div",VP,[h("div",UP,[h("div",WP,[h("a",{href:"javascript:void(0)",class:"cb-close",onClick:Z},[xe(H(X.$t("TodoWidget.CloseAndGoBack"))+" ",1),Y[3]||(Y[3]=h("span",{class:"cb-icon-css cb-icon-css--close",innerHTML:"<span></span> "},null,-1))])]),h("div",zP,[h("div",{id:"cbSeatPicker",ref_key:"cbSeatPicker",ref:m,style:{position:"absolute",inset:"0px"}},null,512),oe("",!0)]),h("div",HP,[h("div",GP,[h("div",qP,[(C(!0),R(ge,null,je(w.value,(L,z)=>(C(),R("div",{key:z,class:"cb-venue-legend"},[(C(),R("svg",{style:pt(N.value(z)),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"vg-venue-seat"},Y[6]||(Y[6]=[h("path",{d:"M2 1C1.44772 1 1 1.44772 1 2V10.7273C1 13.087 2.91296 15 5.27273 15H10.7273C13.087 15 15 13.087 15 10.7273V2C15 1.44772 14.5523 1 14 1H2Z","stroke-width":"2"},null,-1)]),4)),h("div",null,[h("b",null,H(L.name),1),M.value?(C(),R("div",ZP,H(S.value(z)),1)):oe("",!0)])]))),128))]),h("div",XP,[ee(O(Yf),{modelValue:I.value,"onUpdate:modelValue":Y[0]||(Y[0]=L=>I.value=L)},{default:he(()=>[xe(H(X.$t("TodoWidget.SeatPicker.AdjacentSeats")),1)]),_:1},8,["modelValue"]),h("div",KP,[Y[7]||(Y[7]=h("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"vg-venue-seat vg--selected"},[h("path",{d:"M2 1C1.44772 1 1 1.44772 1 2V10.7273C1 13.087 2.91296 15 5.27273 15H10.7273C13.087 15 15 13.087 15 10.7273V2C15 1.44772 14.5523 1 14 1H2Z","stroke-width":"2"})],-1)),h("b",null,H(X.$t("TodoWidget.SeatPicker.SelectedSeat")),1)]),h("div",JP,[Y[8]||(Y[8]=h("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"vg-venue-seat vg--occupied"},[h("path",{d:"M2 1C1.44772 1 1 1.44772 1 2V10.7273C1 13.087 2.91296 15 5.27273 15H10.7273C13.087 15 15 13.087 15 10.7273V2C15 1.44772 14.5523 1 14 1H2Z","stroke-width":"2"})],-1)),h("b",null,H(X.$t("TodoWidget.SeatPicker.Occupied")),1)]),h("div",QP,[Y[9]||(Y[9]=h("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"vg-venue-seat vg--not-sel"},[h("path",{d:"M2 1C1.44772 1 1 1.44772 1 2V10.7273C1 13.087 2.91296 15 5.27273 15H10.7273C13.087 15 15 13.087 15 10.7273V2C15 1.44772 14.5523 1 14 1H2Z","stroke-width":"2"})],-1)),h("b",null,H(X.$t("TodoWidget.SeatPicker.NotSelectable")),1)])])]),h("div",eO,[h("div",null,[h("div",tO,[h("h3",null,H(X.$t("TodoWidget.SeatPicker.MySeats")),1),h("a",{href:"javascript:void(0)",class:"cb-close cb-hide-sm",onClick:Y[1]||(Y[1]=L=>v("close-click"))},[xe(H(X.$t("TodoWidget.CloseAndGoBack"))+" ",1),Y[10]||(Y[10]=h("span",{class:"cb-icon-css cb-icon-css--close",innerHTML:"<span></span> "},null,-1))])]),h("div",nO,[(C(!0),R(ge,null,je(g.value,L=>(C(),R("div",{key:L.selectedSeats,class:"cb-ticket"},[h("div",rO,[(C(),R("svg",{style:pt(N.value(L.zoneIndex)),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"vg-venue-seat"},Y[11]||(Y[11]=[h("path",{d:"M2 1C1.44772 1 1 1.44772 1 2V10.7273C1 13.087 2.91296 15 5.27273 15H10.7273C13.087 15 15 13.087 15 10.7273V2C15 1.44772 14.5523 1 14 1H2Z","stroke-width":"2"},null,-1)]),4)),h("div",null,[h("b",null,H(L.zoneName),1)])]),h("div",oO,H(O(o)(L.productName,"name"))+", "+H(O(o)(L.priceGroupCode,"name"))+", "+H(X.$t("row"))+" "+H(L.seatRow)+", "+H(X.$t("seat"))+" "+H(L.seatName),1),h("div",aO,[h("b",null,H(L.price)+" "+H(O(i)),1)])]))),128))]),h("div",iO,[h("div",null,[h("div",null,[ee(Qo),ee(O(ht),{size:"large",loading:F.value,onClick:Y[2]||(Y[2]=L=>v("close-click"))},{default:he(()=>[h("span",sO,H(X.$t("TodoWidget.SeatPicker.Continue")),1),h("span",lO,H(X.$t("TodoWidget.SeatPicker.ContinueWidthSelectedSeats")),1),Y[12]||(Y[12]=h("span",{class:"cb-icon-css cb-icon-css--next",innerHTML:"<span></span> "},null,-1))]),_:1},8,["loading"])])])])])])])])]))}},uO={key:0,class:"cb-framework",role:"dialog","aria-modal":"true"},dO={class:"cb-footer"},pO={key:0},vO={__name:"cb-modal-display",setup(e){const{state:t,send:n}=ae("bookingFlowMachine"),{widgetState:r}=ae("widget"),o=y(()=>r.currentComponent),i=y(()=>t.value.matches("lock.lockedWithoutPromocode")||t.value.matches("lock.lockedForAgent")),a=y({get:()=>!t.value.matches("modalControl.status.closed"),set(s){s||n("MODAL_CLOSE")}}),l=y({get:()=>t.value.matches("modalControl.size.expanded"),set(s){s||n("MODAL_SHRINK")}});return(s,c)=>(C(),fe(O(Uf),{modelValue:a.value,"onUpdate:modelValue":c[2]||(c[2]=u=>a.value=u),expanded:l.value,"onUpdate:expanded":c[3]||(c[3]=u=>l.value=u)},{default:he(()=>[o.value?(C(),R("div",uO,[ee(O(Vf),{onCloseClick:c[0]||(c[0]=u=>a.value=!1)},{default:he(()=>[xe(H(s.$t("TodoWidget.ExitBooking")),1)]),_:1}),ee(RP,null,{toolbar:he(()=>[ot(s.$slots,"toolbar")]),_:3}),Le(h("div",dO,[h("div",null,[i.value?oe("",!0):(C(),R("div",pO,[ee(Qo),ee(O(Ef),{"show-arrow":!0})]))])],512),[[Ye,!o.value.hideFooter]])])):oe("",!0)]),expanded:he(()=>[l.value?(C(),fe(cO,{key:0,onCloseClick:c[1]||(c[1]=u=>l.value=!1)})):oe("",!0)]),_:3},8,["modelValue","expanded"]))}},fO={mounted(e){Rn(()=>{let t="a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]),";t+='input:not([disabled]), select:not([disabled]), [tabindex]:not([disabled]):not([tabindex="-1"])';const n=Array.from(e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]),input:not([disabled]), select:not([disabled]), [tabindex]:not([disabled]):not([tabindex="-1"])')),r=n[0],o=n[n.length-1];e.addEventListener("keydown",i=>{i.key==="Tab"&&(i.shiftKey&&document.activeElement===r?(o.focus(),i.preventDefault()):!i.shiftKey&&document.activeElement===o&&(r.focus(),i.preventDefault()))})})}},hO=["aria-labelledby"],gO={class:"cb-content"},mO=["id"],bO={key:0},yO={key:1,class:"cb-text-format cb-text-center cb--description"},wO={class:"cb-flex cb-flex--space-between"},kO={__name:"cb-todo-widget-error-modal",setup(e){const{state:t,send:n}=ae("bookingFlowMachine"),r=y({get:()=>t.value.matches("flowControl.error"),set(i){i||n("ERROR_ACKNOWLEDGED")}}),o=it().uid;return(i,a)=>(C(),fe(O(Uf),{modelValue:r.value,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value=l),mode:"panel"},{default:he(()=>[Le((C(),R("div",{class:"cb--small cb-framework",role:"alertdialog","aria-modal":"true","aria-labelledby":`cb-alert-dialog-content-${O(o)}`},[ee(O(Vf),{onCloseClick:a[0]||(a[0]=l=>r.value=!1)}),h("div",gO,[h("div",null,[a[4]||(a[4]=h("div",null," ",-1)),h("p",{id:`cb-alert-dialog-content-${O(o)}`,class:"cb-text-format cb-text-center cb--description"},H(i.$t("TodoWidget.Error")),9,mO),a[5]||(a[5]=h("div",null," ",-1)),O(t).context.fatalErrorCode?(C(),R("h3",bO,H(i.$t("TodoWidget.IticketBookingFlowErrorInfo"))+": ",1)):oe("",!0),O(t).context.fatalErrorCode?(C(),R("p",yO,H(O(t).context.fatalErrorCode),1)):oe("",!0),a[6]||(a[6]=h("div",null," ",-1)),h("div",wO,[a[3]||(a[3]=h("div",null,null,-1)),h("div",null,[ee(O(ht),{onClick:a[1]||(a[1]=l=>r.value=!1)},{default:he(()=>[xe(H(i.$t("TodoWidget.Error.Ok")),1)]),_:1})])])])])],8,hO)),[[O(fO)]])]),_:1},8,["modelValue"]))}};var xO=Object.defineProperty,ac=(e,t,n)=>((r,o,i)=>o in r?xO(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i)(e,typeof t!="symbol"?t+"":t,n);let _O=class{constructor(e,t){ac(this,"url"),ac(this,"controller"),this.url=e,this.controller=t}},CO=class{constructor(){ac(this,"activeRequests",[]),this.activeRequests=[]}};function Wf(){const e=new CO,t=new Headers({"Content-Type":"application/json"}),n=async a=>{try{const l=await fetch(a),s=l.headers.get("content-type");if(!s){if(!l.ok)throw l.status;return}if(s.includes("application/json")){const c=await l.json();if(c.Error)throw l.ok?c.Error:`${l.status}: ${c.Error}`;if(c.error)throw l.ok?c.error:`${l.status}: ${c.Error}`;return c.data?c.data:c.Data?c.Data:c}}catch(l){return o(l)}},r=(a,l)=>{if(!l)return null;const s=new AbortController;for(let c=0;c<e.activeRequests.length;c++)e.activeRequests[c].url===a&&(e.activeRequests[c].controller.abort(),e.activeRequests.splice(c,1),c--);return e.activeRequests.push(new _O(a,s)),s.signal},o=a=>{if(a.name==="AbortError")return"callCancelled";throw a},i=(a,l)=>{const s=new URL(a,document.baseURI);if(l)for(const[c,u]of Object.entries(l))u&&s.searchParams.append(c,u);return s.toString()};return{get:async(a,l,s)=>{const c=r(a,s),u=i(a,l),p=new Request(u,{method:"GET",headers:t,credentials:"include",signal:c});return await n(p)},post:async(a,l,s)=>{const c=r(a,s),u=i(a,null),p=new Request(u,{method:"POST",headers:t,credentials:"include",body:JSON.stringify(l),signal:c});return await n(p)}}}function SO(){const e=Mt({todoConfiguration:{date:null},currentComponent:null,stepsAll:[],promoCodeInput:null}),t=Y=>{const L=e.todoConfiguration.guests.filter(J=>J.categoryCode===Y);let z=[];if(L){const J=(()=>{var te=e.todoConfiguration.slots[p.value];return te.minMaxPerParticipant&&te.maxAmount===1?te.products.flatMap(se=>se.priceGroupSelections).map(se=>se.participantReference):[]})();z=L.filter(te=>!J.includes(te.participantReference))}return z},n=Y=>e.todoConfiguration.slots[p.value].products.find(L=>L.code===Y),r=async(Y,L)=>{const z=[],J=n(Y),te=e.todoConfiguration.guests;(()=>{const se=e.todoConfiguration.slots[p.value];for(let re=0;re<se.products.length;re++)se.products[re].priceGroupSelections=[]})(),u.value.forEach(se=>{const re=te==null?void 0:te.filter(_e=>_e.categoryCode===se.code);for(var ue=0;ue<se.amount;ue++){const _e=re&&re[ue]?re[ue]:null;for(var le=0;le<L;le++)z.push({priceGroup:se.code,amount:1,participantReference:_e==null?void 0:_e.participantReference})}}),J.priceGroupSelections=z},o=y(()=>{var Y;return(Y=e.todoConfiguration)==null?void 0:Y.currency}),i=y(()=>{if(!e.stepsAll.length)return!0;let Y=e.stepsAll[e.stepsAll.length-1];return JSON.stringify(e.currentComponent)===JSON.stringify(Y)}),a=y(()=>!(!e.stepsAll.length||!e.currentComponent||e.currentComponent.slotIndex===null||e.stepsAll[e.stepsAll.length-1].slotIndex>e.currentComponent.slotIndex)),l=y(()=>{let Y=e.stepsAll[0];return JSON.stringify(e.currentComponent)===JSON.stringify(Y)}),s=y(()=>e.todoConfiguration.priceGroups),c=y(()=>e.todoConfiguration.durations),u=y(()=>{var Y;return(Y=s.value)==null?void 0:Y.filter(L=>L.amount>0)}),p=y(()=>{var Y;return(Y=e.currentComponent)==null?void 0:Y.slotIndex}),v=y(()=>p.value!==null||p.value!==void 0?e.todoConfiguration.slots[p.value]:null),m=y(()=>{var Y,L=(Y=e.todoConfiguration)==null?void 0:Y.slots[p.value];return L?L.products.filter(z=>z.priceGroupSelections&&z.priceGroupSelections.find(J=>J.amount>0)):null}),g=y(()=>{var Y;if(e.currentComponent&&nc(e.currentComponent))return((Y=v.value)==null?void 0:Y.minAmount)===0}),x=y(()=>{var Y;if(e.currentComponent&&nc(e.currentComponent))return((Y=m.value)==null?void 0:Y.length)>0}),_=y(()=>{var Y,L=m.value;return L?(Y=L[0])==null?void 0:Y.seatingsFlattened:null}),w=y(()=>{var Y,L=m.value;return L?(Y=L[0])==null?void 0:Y.prices:null}),k=y(()=>{var Y;let L=e.todoConfiguration.slots[p.value];return L!=null&&L.products?(Y=L.products.filter(z=>z.priceGroupSelections&&z.priceGroupSelections.find(J=>J.amount>0))[0])==null?void 0:Y.seatPickerScript:[]}),A=y(()=>{if(!e.currentComponent)return!1;let Y=e.todoConfiguration.slots[p.value],L=Y==null?void 0:Y.products.find(z=>z.priceGroupSelections&&z.priceGroupSelections.find(J=>J.amount>0));return!(L==null||!L.seatPickerScript)}),M=y(()=>{let Y=e.todoConfiguration.slots[p.value];return Y?Y.tours:null}),I=y(()=>{let Y=e.todoConfiguration.slots[p.value];return Y?Y.routes:null}),N=y(()=>S.value&&F.value&&U.value),S=y(()=>!s.value||!s.value.length||u.value.length),F=y(()=>!e.currentComponent||!jf(e.currentComponent)||M.value.some(Y=>Y.selected===!0)),U=y(()=>{var Y;if(!e.currentComponent||!nc(e.currentComponent))return!0;if(!v.value)return!1;let L,z=v==null?void 0:v.value;if(z.minMaxPerParticipant){let re=(Y=u.value)==null?void 0:Y.map(ue=>ue.code);L=z.products.filter(ue=>ue.priceGroupSelections&&ue.priceGroupSelections.find(le=>re.includes(le.priceGroup)))}else L=z.products.filter(re=>re.priceGroupSelections&&re.priceGroupSelections.find(ue=>!ue.priceGroup));let J=0;for(let re=0;re<L.length;re++){let ue=L[re],le=0;for(var te=0;te<ue.priceGroupSelections.length;te++)le+=ue.priceGroupSelections[te].amount;let _e=1;if(z.minMaxPerParticipant){_e=0;let $e=u.value.filter(ce=>ue.priceGroupSelections.map(ve=>ve.priceGroup).includes(ce.code));for(let ce=0;ce<$e.length;ce++)_e+=$e[ce].amount}if(ue.minAmount*_e>le||le>ue.maxAmount*_e)return!1;J+=le}let se=1;if(z.minMaxPerParticipant){se=0;for(let re=0;re<u.value.length;re++)se+=u.value[re].amount}return!(z.minAmount*se>J||J>z.maxAmount*se)}),B=y(()=>{var Y,L,z;return((L=(Y=e.todoConfiguration)==null?void 0:Y.slots)==null?void 0:L.length)>0&&((z=e.todoConfiguration)==null?void 0:z.slots[0].productType)==="Duration"}),Z=y(()=>{var Y=e.todoConfiguration.durations?e.todoConfiguration.durations.find(L=>L.selected):null;return Y}),X=y(()=>{var Y;if(B.value){if((Y=e.todoConfiguration)!=null&&Y.date&&Z.value)return!0}else if(e.todoConfiguration.date)return!0;return!1});return{state:Qn(e),updateSelectedDate:Y=>{e.todoConfiguration.date=Y,e.todoConfiguration.slots=[]},setConfigurationDate:Y=>{e.todoConfiguration.date=Y},setPromoCodeInput:Y=>{e.promoCodeInput=Y},saveConfiguration:Y=>{e.todoConfiguration=Y},updatePriceGroup:Y=>{const L=e.todoConfiguration.priceGroups.find(z=>z.code===Y.code);L.amount=Y.amount},updateProducts:Y=>{switch(v.value.productSelectionDisplayType){case qn.SameForAllParticipants:r(Y.productCode,Y.amount);break;case qn.PerParticipant:((L,z,J,te)=>{const se=[],re=n(L),ue=re.priceGroupSelections.filter(_e=>_e.participantReference!==z);re.priceGroupSelections=ue;for(var le=0;le<te;le++)se.push({priceGroup:J,amount:1,participantReference:z});re.priceGroupSelections=re.priceGroupSelections.concat(se)})(Y.productCode,Y.participantReference,Y.priceGroup,Y.amount);break;case qn.PerPriceGroup:((L,z,J)=>{const te=[],se=n(L);((le,_e)=>{const $e=le.priceGroupSelections.filter(ce=>ce.priceGroup!==_e);le.priceGroupSelections=$e})(se,z);const re=t(z);for(var ue=0;ue<J;ue++){const le=re[ue]?re[ue]:null;te.push({priceGroup:z,amount:1,participantReference:le==null?void 0:le.participantReference})}se.priceGroupSelections=se.priceGroupSelections.concat(te)})(Y.productCode,Y.priceGroup,Y.amount);break;case qn.PerBooking:((L,z)=>{const J=[],te=n(L);for(var se=0;se<z;se++)J.push({priceGroup:null,amount:1,participantReference:null});te.priceGroupSelections=J})(Y.productCode,Y.amount)}},updateProductSelectionForAll:r,updateTours:Y=>{e.todoConfiguration.slots[p.value].tours=Y},updateRoutes:Y=>{e.todoConfiguration.slots[p.value].routes=Y},updatePromoCode:Y=>{e.todoConfiguration.promoCode=Y},updateSelectedSeats:Y=>{var L=e.todoConfiguration.slots[p.value];let z=L==null?void 0:L.products.filter(J=>J.priceGroupSelections&&J.priceGroupSelections.find(te=>te.amount>0));return z[0].seatingsFlattened=Y},setAllSteps:Y=>{e.stepsAll=Y},setCurrentComponent:Y=>{e.currentComponent=Y},updateDurations:Y=>{const L=e.todoConfiguration.durations;if(L)for(let z=0;z<L.length;z++){let J=L[z];J.durationId===Y?J.selected=!0:L[z].selected=!1}},priceGroups:s,durations:c,currency:o,isLastComponent:i,isLastSlot:a,isFirstModalComponent:l,isOptionalProductOption:g,selectedPriceGroups:u,getPriceGroupNameById:Y=>{var L;return(L=s.value)==null?void 0:L.find(z=>z.code===Y)},currentSlot:v,currentFlattenedSeatings:_,currentSelectionPrices:w,currentSeatPickerScript:k,hasCurrentSeatPickerScript:A,hasSelectedProductOptions:x,currentSlotTours:M,currentSlotRoutes:I,currentStateIsValid:N,isDateOrDurationSet:X}}/*! *****************************************************************************
  Copyright (c) Microsoft Corporation.

  Permission to use, copy, modify, and/or distribute this software for any
  purpose with or without fee is hereby granted.

  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  PERFORMANCE OF THIS SOFTWARE.
  ***************************************************************************** */var Ge,Zn,de=function(){return de=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},de.apply(this,arguments)};function ic(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Fe(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ue(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function nt(e,t,n){if(arguments.length===2)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}(function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"})(Ge||(Ge={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(Zn||(Zn={}));var Ri=Ge.Start,$i=Ge.Stop,eo=Ge.Raise,ia=Ge.Send,sc=Ge.Cancel,zf=Ge.NullEvent,Ni=Ge.Assign,DO=Ge.After,TO=Ge.DoneState,Fi=Ge.Log,Hf=Ge.Init,Yi=Ge.Invoke,AO=Ge.ErrorExecution,lc=Ge.ErrorPlatform,cc=Ge.ErrorCustom,Bi=Ge.Update,Gf=Ge.Choose,qf=Ge.Pure;const EO=Object.freeze(Object.defineProperty({__proto__:null,after:DO,assign:Ni,cancel:sc,choose:Gf,doneState:TO,error:cc,errorExecution:AO,errorPlatform:lc,init:Hf,invoke:Yi,log:Fi,nullEvent:zf,pure:qf,raise:eo,send:ia,start:Ri,stop:$i,update:Bi},Symbol.toStringTag,{value:"Module"}));var Zf,Xf={},uc="xstate.guard";function dc(e,t,n){n===void 0&&(n=".");var r=sa(e,n),o=sa(t,n);return qe(o)?!!qe(r)&&o===r:qe(r)?r in o:Object.keys(r).every(function(i){return i in o&&dc(r[i],o[i])})}function Kf(e){try{return qe(e)||typeof e=="number"?"".concat(e):e.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function pc(e,t){try{return to(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function sa(e,t){return function(n){return typeof n=="object"&&"value"in n&&"context"in n&&"event"in n&&"_event"in n}(e)?e.value:to(e)?Vi(e):typeof e!="string"?e:Vi(pc(e,t))}function Vi(e){if(e.length===1)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function la(e,t){for(var n={},r=Object.keys(e),o=0;o<r.length;o++){var i=r[o];n[i]=t(e[i],i,e,o)}return n}function Jf(e,t,n){var r,o,i={};try{for(var a=Fe(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];n(c)&&(i[s]=t(c,s,e))}}catch(u){r={error:u}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}var PO=function(e){return function(t){var n,r,o=t;try{for(var i=Fe(e),a=i.next();!a.done;a=i.next())o=o[a.value]}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function Ui(e){if(!e)return[[]];if(qe(e))return[[e]];var t=st(Object.keys(e).map(function(n){var r=e[n];return typeof r=="string"||r&&Object.keys(r).length?Ui(e[n]).map(function(o){return[n].concat(o)}):[[n]]}));return t}function st(e){var t;return(t=[]).concat.apply(t,nt([],Ue(e),!1))}function Qf(e){return to(e)?e:[e]}function Qt(e){return e===void 0?[]:Qf(e)}function Wi(e,t,n){var r,o;if(We(e))return e(t,n.data);var i={};try{for(var a=Fe(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];We(c)?i[s]=c(t,n.data):i[s]=c}}catch(u){r={error:u}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}function eh(e){return!!(e instanceof Promise||e!==null&&(We(e)||typeof e=="object")&&We(e.then))}function th(e,t){return la(e.states,function(n,r){if(n){var o=(qe(t)?void 0:t[r])||(n?n.current:void 0);if(o)return{current:o,states:th(n,o)}}})}function OO(e,t){return{current:t,states:th(e,t)}}function nh(e,t,n,r){var o=e&&n.reduce(function(i,a){var l,s,c=a.assignment,u={state:r,action:a,_event:t},p={};if(We(c))p=c(i,t.data,u);else try{for(var v=Fe(Object.keys(c)),m=v.next();!m.done;m=v.next()){var g=m.value,x=c[g];p[g]=We(x)?x(i,t.data,u):x}}catch(_){l={error:_}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(l)throw l.error}}return Object.assign({},i,p)},e);return o}function to(e){return Array.isArray(e)}function We(e){return typeof e=="function"}function qe(e){return typeof e=="string"}function rh(e,t){if(e)return qe(e)?{type:uc,name:e,predicate:t?t[e]:void 0}:We(e)?{type:uc,name:e.name,predicate:e}:e}var Xn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function no(e){return!!e&&"__xstatenode"in e}function zi(e,t){return qe(e)||typeof e=="number"?de({type:e},t):e}function gt(e,t){if(!qe(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=zi(e);return de({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function ro(e,t){var n=Qf(t).map(function(r){return typeof r>"u"||typeof r=="string"||no(r)?{target:r,event:e}:de(de({},r),{event:e})});return n}function MO(e){if(e!==void 0&&e!=="")return Qt(e)}function oh(e,t,n,r,o){var i=e.options.guards,a={state:o,cond:t,_event:r};if(t.type===uc)return((i==null?void 0:i[t.name])||t.predicate)(n,r.data,a);var l=i==null?void 0:i[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(n,r.data,a)}function ah(e){return typeof e=="string"?{type:e}:e}function ca(e,t,n){var r=function(){},o=typeof e=="object",i=o?e:null;return{next:((o?e.next:e)||r).bind(i),error:((o?e.error:t)||r).bind(i),complete:((o?e.complete:n)||r).bind(i)}}function Hi(e,t){return"".concat(e,":invocation[").concat(t,"]")}function vc(e){return(e.type===eo||e.type===ia&&e.to===Zn.Internal)&&typeof e.delay!="number"}(Zf={})[Xn]=function(){return this},Zf[Symbol.observable]=function(){return this};var wr=gt({type:Hf});function Gi(e,t){return t&&t[e]||void 0}function oo(e,t){var n;if(qe(e)||typeof e=="number")n=We(r=Gi(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(We(e))n={type:e.name||e.toString(),exec:e};else{var r;if(We(r=Gi(e.type,t)))n=de(de({},e),{exec:r});else if(r){var o=r.type||e.type;n=de(de(de({},r),e),{type:o})}else n=e}return n}var An=function(e,t){return e?(to(e)?e:[e]).map(function(n){return oo(n,t)}):[]};function qi(e){var t=oo(e);return de(de({id:qe(e)?e:t.id},t),{type:t.type})}function ih(e,t){return{type:eo,event:typeof e=="function"?e:zi(e),delay:t?t.delay:void 0,id:t==null?void 0:t.id}}function sh(e,t,n,r){var o,i={_event:n},a=gt(We(e.event)?e.event(t,n.data,i):e.event);if(qe(e.delay)){var l=r&&r[e.delay];o=We(l)?l(t,n.data,i):l}else o=We(e.delay)?e.delay(t,n.data,i):e.delay;return de(de({},e),{type:eo,_event:a,delay:o})}function ao(e,t){return{to:t?t.to:void 0,type:ia,event:We(e)?e:zi(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:We(e)?e.name:Kf(e)}}function lh(e,t,n,r){var o,i={_event:n},a=gt(We(e.event)?e.event(t,n.data,i):e.event);if(qe(e.delay)){var l=r&&r[e.delay];o=We(l)?l(t,n.data,i):l}else o=We(e.delay)?e.delay(t,n.data,i):e.delay;var s=We(e.to)?e.to(t,n.data,i):e.to;return de(de({},e),{to:s,_event:a,event:a.data,delay:o})}function fc(e,t){return ao(e,de(de({},t),{to:Zn.Parent}))}var IO=function(e,t){return{context:e,event:t}},ch=function(e,t,n){return de(de({},e),{value:qe(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},uh=function(e){return{type:sc,sendId:e}};function dh(e){var t=qi(e);return{type:Ge.Start,activity:t,exec:void 0}}function ph(e){var t=We(e)?e:qi(e);return{type:Ge.Stop,activity:t,exec:void 0}}function vh(e,t,n){var r=We(e.activity)?e.activity(t,n.data):e.activity,o=typeof r=="string"?{id:r}:r;return{type:Ge.Stop,activity:o}}function fh(e,t){var n=t?"#".concat(t):"";return"".concat(Ge.After,"(").concat(e,")").concat(n)}function ua(e,t){var n="".concat(Ge.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function da(e,t){var n="".concat(Ge.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function io(e,t){var n="".concat(Ge.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function pa(e,t,n,r,o,i,a){a===void 0&&(a=!1);var l=a?[]:function(m){var g,x,_=[];try{for(var w=Fe(m),k=w.next();!k.done;k=w.next())for(var A=k.value,M=0;M<A.actions.length;)A.actions[M].type!==Ni?M++:(_.push(A.actions[M]),A.actions.splice(M,1))}catch(I){g={error:I}}finally{try{k&&!k.done&&(x=w.return)&&x.call(w)}finally{if(g)throw g.error}}return _}(o),s=l.length?nh(n,r,l,t):n,c=a?[n]:void 0,u=[];function p(m,g){var x;switch(g.type){case eo:var _=sh(g,s,r,e.options.delays);return i&&typeof _.delay=="number"&&i(_,s,r),_;case ia:var w=lh(g,s,r,e.options.delays);return i&&w.to!==Zn.Internal&&(m==="entry"?u.push(w):i(w,s,r)),w;case Fi:var k=ch(g,s,r);return i==null||i(k,s,r),k;case Gf:var A=(x=g.conds.find(function(L){var z=rh(L.cond,e.options.guards);return!z||oh(e,z,s,r,i?void 0:t)}))===null||x===void 0?void 0:x.actions;if(!A)return[];var M=Ue(pa(e,t,s,r,[{type:m,actions:An(Qt(A),e.options.actions)}],i,a),2),I=M[0],N=M[1];return s=N,c==null||c.push(s),I;case qf:if(!(A=g.get(s,r.data)))return[];var S=Ue(pa(e,t,s,r,[{type:m,actions:An(Qt(A),e.options.actions)}],i,a),2),F=S[0],U=S[1];return s=U,c==null||c.push(s),F;case $i:return k=vh(g,s,r),i==null||i(k,n,r),k;case Ni:s=nh(s,r,[g],i?void 0:t),c==null||c.push(s);break;default:var B=oo(g,e.options.actions),Z=B.exec;if(i)i(B,s,r);else if(Z&&c){var X=c.length-1,Y=de(de({},B),{exec:function(L){for(var z=[],J=1;J<arguments.length;J++)z[J-1]=arguments[J];Z.apply(void 0,nt([c[X]],Ue(z),!1))}});B=Y}return B}}var v=st(o.map(function(m){var g,x,_=[];try{for(var w=Fe(m.actions),k=w.next();!k.done;k=w.next()){var A=k.value,M=p(m.type,A);M&&(_=_.concat(M))}}catch(I){g={error:I}}finally{try{k&&!k.done&&(x=w.return)&&x.call(w)}finally{if(g)throw g.error}}return u.forEach(function(I){i(I,s,r)}),u.length=0,_}));return[v,s]}const LO=Object.freeze(Object.defineProperty({__proto__:null,actionTypes:EO,after:fh,assign:function(e){return{type:Ni,assignment:e}},cancel:uh,choose:function(e){return{type:Ge.Choose,conds:e}},done:ua,doneInvoke:da,error:io,escalate:function(e,t){return fc(function(n,r,o){return{type:cc,data:We(e)?e(n,r,o):e}},de(de({},t),{to:Zn.Parent}))},forwardTo:function(e,t){return ao(function(n,r){return r},de(de({},t),{to:e}))},getActionFunction:Gi,initEvent:wr,isActionObject:function(e){return typeof e=="object"&&"type"in e},log:function(e,t){return e===void 0&&(e=IO),{type:Fi,label:t,expr:e}},pure:function(e){return{type:Ge.Pure,get:e}},raise:ih,resolveActions:pa,resolveLog:ch,resolveRaise:sh,resolveSend:lh,resolveStop:vh,respond:function(e,t){return ao(e,de(de({},t),{to:function(n,r,o){return o._event.origin}}))},send:ao,sendParent:fc,sendTo:function(e,t,n){return ao(t,de(de({},n),{to:e}))},sendUpdate:function(){return fc(Bi)},start:dh,stop:ph,toActionObject:oo,toActionObjects:An,toActivityDefinition:qi},Symbol.toStringTag,{value:"Module"}));var Zi=function(e){return e.type==="atomic"||e.type==="final"};function hh(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function va(e){return hh(e).filter(function(t){return t.type!=="history"})}function gh(e){var t=[e];return Zi(e)?t:t.concat(st(va(e).map(gh)))}function fa(e,t){var n,r,o,i,a,l,s,c,u=hc(new Set(e)),p=new Set(t);try{for(var v=Fe(p),m=v.next();!m.done;m=v.next())for(var g=(S=m.value).parent;g&&!p.has(g);)p.add(g),g=g.parent}catch(F){n={error:F}}finally{try{m&&!m.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}var x=hc(p);try{for(var _=Fe(p),w=_.next();!w.done;w=_.next())if((S=w.value).type!=="compound"||x.get(S)&&x.get(S).length){if(S.type==="parallel")try{for(var k=(a=void 0,Fe(va(S))),A=k.next();!A.done;A=k.next()){var M=A.value;p.has(M)||(p.add(M),u.get(M)?u.get(M).forEach(function(F){return p.add(F)}):M.initialStateNodes.forEach(function(F){return p.add(F)}))}}catch(F){a={error:F}}finally{try{A&&!A.done&&(l=k.return)&&l.call(k)}finally{if(a)throw a.error}}}else u.get(S)?u.get(S).forEach(function(F){return p.add(F)}):S.initialStateNodes.forEach(function(F){return p.add(F)})}catch(F){o={error:F}}finally{try{w&&!w.done&&(i=_.return)&&i.call(_)}finally{if(o)throw o.error}}try{for(var I=Fe(p),N=I.next();!N.done;N=I.next()){var S;for(g=(S=N.value).parent;g&&!p.has(g);)p.add(g),g=g.parent}}catch(F){s={error:F}}finally{try{N&&!N.done&&(c=I.return)&&c.call(I)}finally{if(s)throw s.error}}return p}function mh(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(!r)return{};if(Zi(r))return r.key}var o={};return n.forEach(function(i){o[i.key]=mh(i,t)}),o}function hc(e){var t,n,r=new Map;try{for(var o=Fe(e),i=o.next();!i.done;i=o.next()){var a=i.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function jO(e,t){return mh(e,hc(fa([e],t)))}function ha(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set&&e.has(t)}function Xi(e,t){return t.type==="compound"?va(t).some(function(n){return n.type==="final"&&ha(e,n)}):t.type==="parallel"&&va(t).every(function(n){return Xi(e,n)})}function bh(e){return new Set(st(e.map(function(t){return t.tags})))}function yh(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(qe(e)||qe(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(o){return yh(e[o],t[o])})}var Ut=function(){function e(t){var n,r=this;this.actions=[],this.activities=Xf,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||Xf,this.meta=function(o){return o===void 0&&(o=[]),o.reduce(function(i,a){return a.meta!==void 0&&(i[a.id]=a.meta),i},{})}(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=(n=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&n!==void 0?n:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(o){return nt([],Ue(new Set(st(nt([],Ue(o.map(function(i){return i.ownEvents})),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:wr,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=wr;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(t,n){var r=this;if(t===void 0&&(t=this.value),n===void 0&&(n="."),qe(t))return[t];var o=Object.keys(t);return o.concat.apply(o,nt([],Ue(o.map(function(i){return r.toStrings(t[i],n).map(function(a){return i+n+a})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var n=t.tags;t.machine;var r=ic(t,["configuration","transitions","tags","machine"]);return de(de({},r),{tags:Array.from(n)})},e.prototype.matches=function(t){return dc(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var n;this.machine;var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,t);return!(r==null||!r.transitions.length)&&r.transitions.some(function(o){return o.target!==void 0||o.actions.length})},e}(),so=function(e,t){return t(e)};function wh(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[Xn]=function(){return this},t}function RO(e,t,n,r){var o,i=ah(e.src),a=(o=t==null?void 0:t.options.services)===null||o===void 0?void 0:o[i.type],l=e.data?Wi(e.data,n,r):void 0,s=a?kh(a,e.id,l):wh(e.id);return s.meta=e,s}function kh(e,t,n){var r=wh(t);if(r.deferred=!0,no(e)){var o=r.state=so(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return o}}return r}function $O(e){if(typeof e=="string"){var t={type:e,toString:function(){return e}};return t}return e}function Ki(e){return de(de({type:Yi},e),{toJSON:function(){e.onDone,e.onError;var t=ic(e,["onDone","onError"]);return de(de({},t),{type:Yi,src:$O(e.src)})}})}var lo={},co=function(e){return e[0]==="#"},NO=function(){function e(t,n,r,o){r===void 0&&(r="context"in t?t.context:void 0);var i,a=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=o==null?void 0:o.parent,this.key=this.config.key||(o==null?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||nt([this.machine.key],Ue(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(i=this.config.schema)!==null&&i!==void 0?i:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?la(this.config.states,function(s,c){var u,p=new e(s,{},void 0,{parent:a,key:c});return Object.assign(a.idMap,de(((u={})[p.id]=p,u),p.idMap)),p}):lo;var l=0;(function s(c){var u,p;c.order=l++;try{for(var v=Fe(hh(c)),m=v.next();!m.done;m=v.next())s(m.value)}catch(g){u={error:g}}finally{try{m&&!m.done&&(p=v.return)&&p.call(v)}finally{if(u)throw u.error}}})(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(s){return s.event===""}):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=Qt(this.config.entry||this.config.onEntry).map(function(s){return oo(s)}),this.onExit=Qt(this.config.exit||this.config.onExit).map(function(s){return oo(s)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Qt(this.config.invoke).map(function(s,c){var u,p;if(no(s)){var v=Hi(a.id,c);return a.machine.options.services=de(((u={})[v]=s,u),a.machine.options.services),Ki({src:v,id:v})}if(qe(s.src))return v=s.id||Hi(a.id,c),Ki(de(de({},s),{id:v,src:s.src}));if(no(s.src)||We(s.src))return v=s.id||Hi(a.id,c),a.machine.options.services=de(((p={})[v]=s.src,p),a.machine.options.services),Ki(de(de({id:v},s),{src:v}));var m=s.src;return Ki(de(de({id:Hi(a.id,c)},s),{src:m}))}),this.activities=Qt(this.config.activities).concat(this.invoke).map(function(s){return qi(s)}),this.transition=this.transition.bind(this),this.tags=Qt(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||gh(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,a=r.guards,l=r.services,s=r.delays;return new e(this.config,{actions:de(de({},o),t.actions),activities:de(de({},i),t.activities),guards:de(de({},a),t.guards),services:de(de({},l),t.services),delays:de(de({},s),t.delays)},n??this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return We(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:la(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var n=t==="",r=this.transitions.filter(function(o){var i=o.eventType===t;return n?i:i||o.eventType==="*"});return this.__cache.candidates[t]=r,r},e.prototype.getDelayedTransitions=function(){var t=this,n=this.config.after;if(!n)return[];var r=function(i,a){var l=fh(We(i)?"".concat(t.id,":delay[").concat(a,"]"):i,t.id);return t.onEntry.push(ao(l,{delay:i})),t.onExit.push(uh(l)),l},o=to(n)?n.map(function(i,a){var l=r(i.delay,a);return de(de({},i),{event:l})}):st(Object.keys(n).map(function(i,a){var l=n[i],s=qe(l)?{target:l}:l,c=isNaN(+i)?i:+i,u=r(c,a);return Qt(s).map(function(p){return de(de({},p),{event:u,delay:c})})}));return o.map(function(i){var a=i.delay;return de(de({},t.formatTransition(i)),{delay:a})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var o=t instanceof Ut?t.value:sa(t,this.delimiter);if(qe(o)){var i=this.getStateNode(o).initial;return i!==void 0?this.getStateNodes(((n={})[o]=i,n)):[this,this.states[o]]}var a=Object.keys(o),l=[this];return l.push.apply(l,nt([],Ue(st(a.map(function(s){return r.getStateNode(s).getStateNodes(o[s])}))),!1)),l},e.prototype.handles=function(t){var n=Kf(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof Ut?t:Ut.create(t),r=Array.from(fa([],this.getStateNodes(n.value)));return new Ut(de(de({},n),{value:this.resolve(n.value),configuration:r,done:Xi(r,this),tags:bh(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,r){var o=this.getStateNode(t).next(n,r);return o&&o.transitions.length?o:this.next(n,r)},e.prototype.transitionCompoundNode=function(t,n,r){var o=Object.keys(t),i=this.getStateNode(o[0])._transition(t[o[0]],n,r);return i&&i.transitions.length?i:this.next(n,r)},e.prototype.transitionParallelNode=function(t,n,r){var o,i,a={};try{for(var l=Fe(Object.keys(t)),s=l.next();!s.done;s=l.next()){var c=s.value,u=t[c];if(u){var p=this.getStateNode(c)._transition(u,n,r);p&&(a[c]=p)}}}catch(_){o={error:_}}finally{try{s&&!s.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}var v=Object.keys(a).map(function(_){return a[_]}),m=st(v.map(function(_){return _.transitions})),g=v.some(function(_){return _.transitions.length>0});if(!g)return this.next(n,r);var x=st(Object.keys(a).map(function(_){return a[_].configuration}));return{transitions:m,exitSet:st(v.map(function(_){return _.exitSet})),configuration:x,source:n,actions:st(Object.keys(a).map(function(_){return a[_].actions}))}},e.prototype._transition=function(t,n,r){return qe(t)?this.transitionLeafNode(t,n,r):Object.keys(t).length===1?this.transitionCompoundNode(t,n,r):this.transitionParallelNode(t,n,r)},e.prototype.getTransitionData=function(t,n){return this._transition(t.value,t,gt(n))},e.prototype.next=function(t,n){var r,o,i,a=this,l=n.name,s=[],c=[];try{for(var u=Fe(this.getCandidates(l)),p=u.next();!p.done;p=u.next()){var v=p.value,m=v.cond,g=v.in,x=t.context,_=!g||(qe(g)&&co(g)?t.matches(sa(this.getStateNodeById(g).path,this.delimiter)):dc(sa(g,this.delimiter),PO(this.path.slice(0,-2))(t.value))),w=!1;try{w=!m||oh(this.machine,m,x,n,t)}catch(A){throw new Error("Unable to evaluate guard '".concat(m.name||m.type,"' in transition for event '").concat(l,"' in state node '").concat(this.id,`':
`).concat(A.message))}if(w&&_){v.target!==void 0&&(c=v.target),s.push.apply(s,nt([],Ue(v.actions),!1)),i=v;break}}}catch(A){r={error:A}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}if(i){if(!c.length)return{transitions:[i],exitSet:[],configuration:t.value?[this]:[],source:t,actions:s};var k=st(c.map(function(A){return a.getRelativeStateNodes(A,t.historyValue)}));return{transitions:[i],exitSet:i.internal?[]:st(c.map(function(A){return a.getPotentiallyReenteringNodes(A)})),configuration:k,source:t,actions:s}}},e.prototype.getPotentiallyReenteringNodes=function(t){if(this.order<t.order)return[this];for(var n=[],r=this,o=t;r&&r!==o;)n.push(r),r=r.parent;return r!==o?[]:(n.push(o),n)},e.prototype.getActions=function(t,n,r,o,i,a,l){var s,c,u,p,v=this,m=a?fa([],this.getStateNodes(a.value)):[],g=new Set;try{for(var x=Fe(Array.from(t).sort(function(Z,X){return Z.order-X.order})),_=x.next();!_.done;_=x.next())(!ha(m,A=_.value)||ha(r.exitSet,A)||A.parent&&g.has(A.parent))&&g.add(A)}catch(Z){s={error:Z}}finally{try{_&&!_.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}try{for(var w=Fe(m),k=w.next();!k.done;k=w.next()){var A;(!ha(t,A=k.value)||ha(r.exitSet,A.parent))&&r.exitSet.push(A)}}catch(Z){u={error:Z}}finally{try{k&&!k.done&&(p=w.return)&&p.call(w)}finally{if(u)throw u.error}}r.exitSet.sort(function(Z,X){return X.order-Z.order});var M=Array.from(g).sort(function(Z,X){return Z.order-X.order}),I=new Set(r.exitSet),N=st(M.map(function(Z){var X=[];if(Z.type!=="final")return X;var Y=Z.parent;if(!Y.parent)return X;X.push(ua(Z.id,Z.doneData),ua(Y.id,Z.doneData?Wi(Z.doneData,o,i):void 0));var L=Y.parent;return L.type==="parallel"&&va(L).every(function(z){return Xi(r.configuration,z)})&&X.push(ua(L.id)),X})),S=M.map(function(Z){var X=Z.onEntry,Y=Z.activities.map(function(L){return dh(L)});return{type:"entry",actions:An(l?nt(nt([],Ue(X),!1),Ue(Y),!1):nt(nt([],Ue(Y),!1),Ue(X),!1),v.machine.options.actions)}}).concat({type:"state_done",actions:N.map(function(Z){return ih(Z)})}),F=Array.from(I).map(function(Z){return{type:"exit",actions:An(nt(nt([],Ue(Z.onExit),!1),Ue(Z.activities.map(function(X){return ph(X)})),!1),v.machine.options.actions)}}),U=F.concat({type:"transition",actions:An(r.actions,this.machine.options.actions)}).concat(S);if(n){var B=An(st(nt([],Ue(t),!1).sort(function(Z,X){return X.order-Z.order}).map(function(Z){return Z.onExit})),this.machine.options.actions).filter(function(Z){return!vc(Z)});return U.concat({type:"stop",actions:B})}return U},e.prototype.transition=function(t,n,r,o){t===void 0&&(t=this.initialState);var i,a=gt(n);if(t instanceof Ut)i=r===void 0?t:this.resolveState(Ut.from(t,r));else{var l=qe(t)?this.resolve(Vi(this.getResolvedPath(t))):this.resolve(t),s=r??this.machine.context;i=this.resolveState(Ut.from(l,s))}if(this.strict&&!this.events.includes(a.name)&&!function(v){return/^(done|error)\./.test(v)}(a.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},u=fa([],this.getStateNodes(i.value)),p=c.configuration.length?fa(u,c.configuration):u;return c.configuration=nt([],Ue(p),!1),this.resolveTransition(c,i,i.context,o,a)},e.prototype.resolveRaisedTransition=function(t,n,r,o){var i,a=t.actions;return(t=this.transition(t,n,void 0,o))._event=r,t.event=r.data,(i=t.actions).unshift.apply(i,nt([],Ue(a),!1)),t},e.prototype.resolveTransition=function(t,n,r,o,i){var a,l,s,c,u=this;i===void 0&&(i=wr);var p=t.configuration,v=!n||t.transitions.length>0,m=v?t.configuration:n?n.configuration:[],g=Xi(m,this),x=v?jO(this.machine,p):void 0,_=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,w=this.getActions(new Set(m),g,t,r,i,n,o),k=n?de({},n.activities):{};try{for(var A=Fe(w),M=A.next();!M.done;M=A.next()){var I=M.value;try{for(var N=(s=void 0,Fe(I.actions)),S=N.next();!S.done;S=N.next()){var F=S.value;F.type===Ri?k[F.activity.id||F.activity.type]=F:F.type===$i&&(k[F.activity.id||F.activity.type]=!1)}}catch(ce){s={error:ce}}finally{try{S&&!S.done&&(c=N.return)&&c.call(N)}finally{if(s)throw s.error}}}}catch(ce){a={error:ce}}finally{try{M&&!M.done&&(l=A.return)&&l.call(A)}finally{if(a)throw a.error}}var U=Ue(pa(this,n,r,i,w,o,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),B=U[0],Z=U[1],X=Ue(function(ce,ve){var ye,Me,Oe=Ue([[],[]],2),ze=Oe[0],Be=Oe[1];try{for(var Te=Fe(ce),j=Te.next();!j.done;j=Te.next()){var V=j.value;ve(V)?ze.push(V):Be.push(V)}}catch(Q){ye={error:Q}}finally{try{j&&!j.done&&(Me=Te.return)&&Me.call(Te)}finally{if(ye)throw ye.error}}return[ze,Be]}(B,vc),2),Y=X[0],L=X[1],z=B.filter(function(ce){var ve;return ce.type===Ri&&((ve=ce.activity)===null||ve===void 0?void 0:ve.type)===Yi}),J=z.reduce(function(ce,ve){return ce[ve.activity.id]=RO(ve.activity,u.machine,Z,i),ce},n?de({},n.children):{}),te=new Ut({value:x||n.value,context:Z,_event:i,_sessionid:n?n._sessionid:null,historyValue:x?_?OO(_,x):void 0:n?n.historyValue:void 0,history:!x||t.source?n:void 0,actions:x?L:[],activities:x?k:n?n.activities:{},events:[],configuration:m,transitions:t.transitions,children:J,done:g,tags:bh(m),machine:this}),se=r!==Z;te.changed=i.name===Bi||se;var re=te.history;re&&delete re.history;var ue=!g&&(this._transient||p.some(function(ce){return ce._transient}));if(!(v||ue&&i.name!==""))return te;var le=te;if(!g)for(ue&&(le=this.resolveRaisedTransition(le,{type:zf},i,o));Y.length;){var _e=Y.shift();le=this.resolveRaisedTransition(le,_e._event,i,o)}var $e=le.changed||(re?!!le.actions.length||se||typeof re.value!=typeof le.value||!yh(le.value,re.value):void 0);return le.changed=$e,le.history=re,le},e.prototype.getStateNode=function(t){if(co(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[t];if(!n)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return n},e.prototype.getStateNodeById=function(t){var n=co(t)?t.slice(1):t;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&co(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=pc(t,this.delimiter).slice(),r=this;n.length;){var o=n.shift();if(!o.length)break;r=r.getStateNode(o)}return r},e.prototype.resolve=function(t){var n,r=this;if(!t)return this.initialStateValue||lo;switch(this.type){case"parallel":return la(this.initialStateValue,function(i,a){return i?r.getStateNode(a).resolve(t[a]||i):lo});case"compound":if(qe(t)){var o=this.getStateNode(t);return o.type==="parallel"||o.type==="compound"?((n={})[t]=o.initialStateValue,n):t}return Object.keys(t).length?la(t,function(i,a){return i?r.getStateNode(a).resolve(i):lo}):this.initialStateValue||{};default:return t||lo}},e.prototype.getResolvedPath=function(t){if(co(t)){var n=this.machine.idMap[t.slice(1)];if(!n)throw new Error("Unable to find state node '".concat(t,"'"));return n.path}return pc(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t,n;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if(this.type==="parallel")n=Jf(this.states,function(r){return r.initialStateValue||lo},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=Zi(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,n){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n??this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var n=this.config;t=qe(n.target)&&co(n.target)?Vi(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,n,r){return r===void 0&&(r=!0),r?t.type==="history"?t.resolveHistory(n):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;return Zi(this)?[this]:this.type!=="compound"||this.initial?st(Ui(this.initialStateValue).map(function(n){return t.getFromRelativePath(n)})):[this]},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=Ue(t),r=n[0],o=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var i=this.getStateNode(r);if(i.type==="history")return i.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(o)},e.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:Jf(this.states,function(n,r){if(!t)return n.historyValue();var o=qe(t)?void 0:t[r];return n.historyValue(o||n.initialStateValue)},function(n){return!n.history})}},e.prototype.resolveHistory=function(t){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!t){var o=this.target;return o?st(Ui(o).map(function(a){return r.getFromRelativePath(a)})):r.initialStateNodes}var i=function(a,l){return function(s){var c,u,p=s;try{for(var v=Fe(a),m=v.next();!m.done;m=v.next()){var g=m.value;p=p[l][g]}}catch(x){c={error:x}}finally{try{m&&!m.done&&(u=v.return)&&u.call(v)}finally{if(c)throw c.error}}return p}}(r.path,"states")(t).current;return qe(i)?[r.getStateNode(i)]:st(Ui(i).map(function(a){return n.history==="deep"?r.getFromRelativePath(a):[r.states[a[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,n=st(Object.keys(this.states).map(function(r){return t.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,n,r,o;if(this.__cache.events)return this.__cache.events;var i=this.states,a=new Set(this.ownEvents);if(i)try{for(var l=Fe(Object.keys(i)),s=l.next();!s.done;s=l.next()){var c=i[s.value];if(c.states)try{for(var u=(r=void 0,Fe(c.events)),p=u.next();!p.done;p=u.next()){var v=p.value;a.add("".concat(v))}}catch(m){r={error:m}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}}}catch(m){t={error:m}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var n=this;if(t!==void 0)return t.map(function(r){if(!qe(r))return r;var o=r[0]===n.delimiter;if(o&&!n.parent)return n.getStateNodeByPath(r.slice(1));var i=o?n.key+r:r;if(!n.parent)return n.getStateNodeByPath(i);try{return n.parent.getStateNodeByPath(i)}catch(a){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
`).concat(a.message))}})},e.prototype.formatTransition=function(t){var n=this,r=MO(t.target),o="internal"in t?t.internal:!r||r.some(function(s){return qe(s)&&s[0]===n.delimiter}),i=this.machine.options.guards,a=this.resolveTarget(r),l=de(de({},t),{actions:An(Qt(t.actions)),cond:rh(t.cond,i),target:a,source:this,internal:o,eventType:t.event,toJSON:function(){return de(de({},l),{target:l.target?l.target.map(function(s){return"#".concat(s.id)}):void 0,source:"#".concat(n.id)})}});return l},e.prototype.formatTransitions=function(){var t,n,r,o=this;if(this.config.on)if(Array.isArray(this.config.on))r=this.config.on;else{var i=this.config.on,a="*",l=i[a],s=l===void 0?[]:l,c=ic(i,["*"]);r=st(Object.keys(c).map(function(k){return ro(k,c[k])}).concat(ro("*",s)))}else r=[];var u=this.config.always?ro("",this.config.always):[],p=this.config.onDone?ro(String(ua(this.id)),this.config.onDone):[],v=st(this.invoke.map(function(k){var A=[];return k.onDone&&A.push.apply(A,nt([],Ue(ro(String(da(k.id)),k.onDone)),!1)),k.onError&&A.push.apply(A,nt([],Ue(ro(String(io(k.id)),k.onError)),!1)),A})),m=this.after,g=st(nt(nt(nt(nt([],Ue(p),!1),Ue(v),!1),Ue(r),!1),Ue(u),!1).map(function(k){return Qt(k).map(function(A){return o.formatTransition(A)})}));try{for(var x=Fe(m),_=x.next();!_.done;_=x.next()){var w=_.value;g.push(w)}}catch(k){t={error:k}}finally{try{_&&!_.done&&(n=x.return)&&n.call(x)}finally{if(t)throw t.error}}return g},e}();let FO=class{constructor(e,t,n,r,o){this.PriceGroup=e,this.Amount=t,this.SelectedSeat=n,this.ParticipantReference=r,this.ParticipantComplementsRequest=o}},xh=class{constructor(e,t){this.Code=e,this.Value=t}};class YO{constructor(t,n,r){var o;this.Code=t;let i=[];for(let a=0;a<n.length;a++){const l=n[a];let s=r.find(p=>p.participantReference===l.participantReference),c=(o=l.participantComplements)==null?void 0:o.map(p=>new xh(p.code,p.value)),u=new FO(l.priceGroup,l.amount,(s==null?void 0:s.seatId)??null,l.participantReference,c);i.push(u)}this.PriceGroupSelections=i}}let BO=class{constructor(e,t,n){this.Id=e,this.Code=t,this.Selected=n}};class VO{constructor(t,n,r){this.FromCode=t,this.ToCode=n,this.Selected=r}}let UO=class{constructor(e,t,n,r,o){this.PageId=e,this.SlotId=t,this.TourRequests=n==null?void 0:n.map(i=>new BO(i.id,i.code,i.selected)),this.ProductsRequests=r==null?void 0:r.map(i=>new YO(i.code,i.priceGroupSelections,i.seatingsFlattened)),this.RouteRequests=o==null?void 0:o.map(i=>new VO(i.from.code,i.to.code,i.selected))}};class WO{constructor(t,n,r){this.CategoryCode=t,this.Complements=n==null?void 0:n.map(o=>new xh(o.code,o.value)),this.ParticipantReference=r}}class zO{constructor(t,n){this.Code=t,this.Amount=n}}class HO{constructor(t,n){this.DurationId=t,this.Selected=n}}class GO{constructor(t,n,r,o,i,a,l,s,c,u,p,v,m){this.externalSessionKey=t,this.Id=n,this.BookingId=r,this.RemoteIdentifier=o,this.PromoCode=i,this.Date=a,this.PriceGroupsRequest=l==null?void 0:l.map(g=>new zO(g.code,g.amount)),this.GuestsRequest=v&&v.length?s==null?void 0:s.map(g=>new WO(g.categoryCode,g.complements,g.participantReference)):[],this.DurationsRequest=c==null?void 0:c.map(g=>new HO(g.durationId,g.selected)),this.ReferenceCurrency=u,this.NumberOfPriceDecimals=p,this.Slots=v==null?void 0:v.map(g=>new UO(g.pageId,g.id,g.tours,g.products,g.routes)),this.OverrideCapacity=m}}function _h(e){var t=e.widgetState.todoConfiguration;return new GO(t.externalSessionKey,t.id,t.bookingId,t.remoteIdentifier,t.promoCode,t.date,t.priceGroups,t.guests,t.durations,e.referenceCurrency,e.numberOfPriceDecimals,t.slots,e.allowCapacityOverride.value)}const{raise:Kn,pure:qO}=LO,ZO=function(e,t){return new NO(e,t)}({id:"bookingFlowMachine",type:"parallel",context:{cbisproductid:"",bookingFlowPackageId:"",idInBasket:null,usePromoCodes:!0,useCalendar:!0,preselectedPromoCode:"",referenceCurrency:"",culture:"",showOccasionCapacity:!1,numberOfPriceDecimals:0,useParticipants:!0,fatalErrorCode:"",resetAfterError:!1,isAgent:!1,display:null,allowCapacityOverrideChoice:!1,allowCapacityOverride:{value:!1},doTodoStartupConfigurationUrl:null,doTodoConfigurationUrl:null,bookTodoConfigurationUrl:null,verifyPromoCodeUrl:null,getTodoCalendarAvailabilityUrl:null,lockedToPromoCodes:!1},states:{flowControl:{initial:"decideInitialState",on:{ERROR:".error",NOT_BOOKABLE:".idle",RESET:".resetting",STARTUP:".initializingCalendarAndDate"},states:{decideInitialState:{always:[{target:"none",cond:"isSingleButtonDisplay"},{target:"none",cond:"isModalOnlyDisplay"},{target:"gettingStartupInfo"}]},none:{on:{MODAL_OPEN:{target:"gettingStartupInfo",actions:"goToFirstStep"}}},gettingStartupInfo:{invoke:{id:"startBookingFlow",src:"startBookingFlow",onError:{actions:["handleError",Kn("NOT_BOOKABLE")]}},on:{ERROR:{target:"error",actions:Kn("NOT_BOOKABLE")}},tags:["loading"]},initializingCalendarAndDate:{invoke:{id:"initializeCalendarAndSetDate",src:"initializeCalendarAndSetDate",onError:{actions:"handleError"},onDone:{actions:Kn("CALENDAR_INITIALIZED")}},on:{CALENDAR_INITIALIZED:[{target:"updating.configuringDate",cond:"isDateOrDurationSet"},{target:"idle"}]},tags:["loading"]},idle:{on:{CONTINUE:{actions:"goToNextStep"},MODAL_OPEN:{actions:"goToFirstStep"},MODAL_CLOSE:{actions:"resetStep"},BOOK:"booking",UPDATE:"updating",UPDATE_AND_CONTINUE:"updating.updatingThenContinue",UPDATE_AND_BOOK:"updating.updatingThenBook",DATE_OR_DURATION_SELECTED:"updating.configuringDate",DURATION_START_DATE_SELECTED:"updating.gettingDurations"}},updating:{initial:"updating",invoke:{id:"configureBookingFlowFromUpdate",src:"configureBookingFlow",onDone:{actions:Kn("UPDATED")},onError:{actions:"handleError"}},states:{updating:{},gettingDurations:{},configuringDate:{},updatingThenContinue:{exit:Kn("CONTINUE")},updatingThenBook:{exit:Kn("BOOK")}},on:{UPDATE:"updating",UPDATED:"idle",DATE_OR_DURATION_SELECTED:"updating.configuringDate",DURATION_START_DATE_SELECTED:"updating.gettingDurations"},tags:["updating"]},booking:{invoke:{id:"book",src:"book",onError:{actions:"handleError"}},tags:["loading"]},resetting:{invoke:{id:"reset",src:"resetBookingFlow",onDone:{actions:Kn("STARTUP")}}},error:{on:{ERROR_ACKNOWLEDGED:[{target:"resetting",cond:e=>e.resetAfterError},{target:"idle"}]}}}},calendar:{type:"parallel",states:{display:{initial:"none",on:{RESET:".none",STARTUP:{target:".initializingCalendar",cond:"startWithCalendar"}},states:{none:{on:{}},initializingCalendar:{on:{CALENDAR_INITIALIZED:"displaying",CALENDAR_MONTH_CHANGED:"updatingCalendar"}},updatingCalendar:{invoke:{id:"updatingCalendar",src:"updatingCalendar",onError:{actions:"handleError"},onDone:{target:"displaying"}},on:{CALENDAR_INITIALIZED:"displaying",CALENDAR_MONTH_CHANGED:"updatingCalendar"}},displaying:{on:{RESET:"none",CALENDAR_MONTH_CHANGED:"updatingCalendar",PROMOCODE_VERIFIED_AS_VALID:"updatingCalendar",PROMOCODE_SET_TO_NONE:"updatingCalendar"}}}},type:{initial:"singleDate",states:{singleDate:{on:{STARTUP:[{target:"duration",cond:"isDurationCalendar"}]}},duration:{}}},status:{initial:"notSelected",on:{STARTUP:".notSelected"},states:{notSelected:{on:{CALENDAR_INITIALIZED:[{target:"selected",cond:"isDateOrDurationSet"}],DATE_OR_DURATION_SELECTED:"selected"}},selected:{}}}}},participants:{initial:"none",on:{RESET:".none"},states:{none:{on:{STARTUP:{target:"displaying",cond:"startWithParticipants"},UPDATED:{target:"displaying",cond:"useParticipants"}}},displaying:{on:{STARTUP:{target:"none",cond:"startWithCalendar"}}}}},promocode:{type:"parallel",states:{updatingStatus:{initial:"idle",on:{STARTUP:".validating"},states:{idle:{on:{PROMOCODE_VERIFY:"validating",PROMOCODE_RESET:"reseting"}},reseting:{invoke:{id:"resetPromoCode",src:"resetPromoCode",onError:{actions:"handleError"},onDone:{target:"idle"}}},validating:{invoke:{id:"validatePromoCode",src:"validatePromoCode",onError:{actions:"handleError"},onDone:{target:"idle"}},tags:["loading"]}}},validityStatus:{initial:"none",on:{STARTUP:".none"},states:{none:{on:{PROMOCODE_VERIFIED_AS_VALID:"valid",PROMOCODE_VERIFIED_AS_INVALID:"invalid"}},invalid:{on:{PROMOCODE_RESET:"none",PROMOCODE_VERIFIED_AS_VALID:"valid"}},valid:{on:{PROMOCODE_VERIFIED_AS_INVALID:"invalid",PROMOCODE_RESET:"none"}}}}}},modalControl:{type:"parallel",states:{status:{initial:"closed",states:{closed:{on:{MODAL_OPEN:"opened"}},opened:{on:{MODAL_CLOSE:"closed",RESET:"closed"}}}},size:{initial:"standard",on:{MODAL_CLOSE:".standard"},states:{standard:{on:{MODAL_EXPAND:"expanded"}},expanded:{on:{MODAL_SHRINK:"standard"}}}}}},lock:{id:"lock",initial:"unlocked",states:{lockedWithoutPromocode:{on:{PROMOCODE_VERIFIED_AS_VALID:"unlocked"}},lockedForAgent:{},unlocked:{on:{STARTUP:[{target:"lockedForAgent",cond:"lockedForAgent"},{target:"lockedWithoutPromocode",cond:"lockedWithoutPromocode"}],PROMOCODE_RESET:{target:"lockedWithoutPromocode",cond:"lockedWithoutPromocode"}}}}},bookableStatus:{id:"bookableStatus",initial:"bookable",states:{bookable:{on:{NOT_BOOKABLE:"notBookable"}},notBookable:{}}}}},{guards:{useParticipants:e=>e.useParticipants,startWithParticipants:e=>e.useParticipants&&!e.useCalendar,startWithCalendar:e=>e.useCalendar&&e.calendarState.firstAvailableDate,isDurationCalendar:e=>e.calendarState.isDuration,isDateOrDurationSet:e=>e.isDateOrDurationSet.value,isInvalid:e=>e.validationMessage,isSingleButtonDisplay:e=>e.display.value==="button",isModalOnlyDisplay:e=>e.display.value==="modalonly",lockedWithoutPromocode:e=>e.lockedToPromoCodes,lockedForAgent:e=>e.idInBasket&&e.allowCapacityOverride.value&&e.isAgent},actions:{handleError:qO((e,t)=>(e.error=t.data,console.error(t.data),Kn("ERROR"))),goToFirstStep:e=>{if(e.widgetState.stepsAll.length<1){let t=Nf(e);e.setAllSteps(t)}e.setCurrentComponent(e.widgetState.stepsAll[0])},goToNextStep:e=>{var t=e.widgetState.stepsAll.findIndex(n=>n.id===e.widgetState.currentComponent.id);e.widgetState.stepsAll.length-1>t&&e.setCurrentComponent(e.widgetState.stepsAll[t+1])},resetStep:e=>{e.setCurrentComponent(null)}},services:{startBookingFlow:e=>async t=>{const n=await e.cbApi.post(e.doTodoStartupConfigurationUrl,{cbisProductId:e.cbisproductid});if(!n)return void t("ERROR");if(n.fatalErrorCode&&n.fatalErrorCode!==Bf)throw e.fatalErrorCode=n.fatalErrorCode,n.fatalErrorCode;e.bookingFlowPackageId=n.bookingFlowPackageId;const r=n.startupInfo;if(e.validationMessage=r.validationMessage,e.useCalendar=r.useCalendar,e.useParticipants=r.useParticipantPicker,e.usePromoCodes=r.usePromoCodes,e.lockedToPromoCodes=r.lockedToPromoCodes,e.allowCapacityOverrideChoice=r.allowCapacityOverrideChoice,e.setCalendarStartupInfo(r.firstAvailableDate,r.firstSlotType==="Duration",n.bookingFlowPackageId,e.allowCapacityOverride.value),e.updateBookingFlowContentItems(r.bookingFlowContentItems),e.idInBasket){let o={bookingFlowPackageId:e.bookingFlowPackageId,idInBasket:e.idInBasket,todoConfigure:JSON.stringify(null)};const i=await e.cbApi.post(e.doTodoConfigurationUrl,o);if(!i)throw"server error";if(i.cbErrors&&i.cbErrors.length)throw i.cbErrors.join("; ");e.saveConfiguration(i),e.setBookedDate(i.date),e.allowCapacityOverride.value=i.capacityOverridden}r.firstAvailableDate?t("STARTUP"):t("NOT_BOOKABLE")},configureBookingFlow:e=>async t=>{let n=_h(e);if(!n.Date)throw"missing configuration date";let r={bookingFlowPackageId:e.bookingFlowPackageId,todoConfigure:JSON.stringify(n)};const o=await e.cbApi.post(e.doTodoConfigurationUrl,r,!0);if(o==="callCancelled")return;if(!o)return void t("ERROR");if(o.cbErrors&&o.cbErrors.length)throw o.cbErrors.join("; ");if(o.fatalErrorCode&&o.fatalErrorCode!==Bf)throw e.fatalErrorCode=o.fatalErrorCode,(n.PriceGroupRequest||n.PromoCode||n.Slots.length>0)&&(e.resetAfterError=!0),o.fatalErrorCode;e.saveConfiguration(o);let i=Nf(e);e.setAllSteps(i)},book:e=>async t=>{let n=_h(e),r={bookingFlowPackageId:e.bookingFlowPackageId,idInBasket:e.idInBasket,todoConfigure:JSON.stringify(n),dontProceedToBasket:!e.proceedToBasket};const o=await e.cbApi.post(e.bookTodoConfigurationUrl,r);if(e.broadcaster.publish("cb-basket-update"),e.broadcaster.publish("cb-booking-flow-package-booked",{addedIdInBasket:o.addedIdInBasket}),e.proceedToBasket)window.location.href=o.redirectUrl;else{e.setCurrentComponent(null),e.saveConfiguration({date:null}),t("MODAL_CLOSE"),t("STARTUP");const i=document.getElementById("citybreak_basket_widget_summary");i==null||i.open()}},initializeCalendarAndSetDate:e=>async()=>{e.resetAvailability(),e.useCalendar&&await e.initializeCalendar(e.allowCapacityOverride.value);let t=e.getAutoSelectDate();t&&(e.idInBasket?e.setConfigurationDate(t):e.updateSelectedDate(t))},updatingCalendar:(e,t)=>async()=>{(t.type==="PROMOCODE_VERIFIED_AS_VALID"||t.type==="PROMOCODE_SET_TO_NONE")&&e.resetAvailability();const n=t.payload;await e.updateCalendar(n==null?void 0:n.month,n==null?void 0:n.year,e.allowCapacityOverride.value,e.widgetState.todoConfiguration.promoCode)},validatePromoCode:(e,t)=>async n=>{var r;let o;if(t.type==="STARTUP"){if((r=e.widgetState.todoConfiguration)!=null&&r.promoCode)return void n("PROMOCODE_VERIFIED_AS_VALID");if(e.idInBasket||!e.preselectedPromoCode)return;o=e.preselectedPromoCode}else o=e.widgetState.promoCodeInput;let i={bookingFlowPackageId:e.bookingFlowPackageId,promotionCode:o,startDate:e.widgetState.todoConfiguration.date};const a=await e.cbApi.get(e.verifyPromoCodeUrl,i);a&&a.isValid?(e.updatePromoCode(o),n("PROMOCODE_VERIFIED_AS_VALID"),n("UPDATE")):n("PROMOCODE_VERIFIED_AS_INVALID")},resetPromoCode:e=>async t=>{e.setPromoCodeInput(null),e.updatePromoCode(null),t("PROMOCODE_SET_TO_NONE"),t("UPDATE")},resetBookingFlow:e=>async()=>{e.setCurrentComponent(null),e.saveConfiguration({date:null})}}}),XO=e=>ZO.withContext(e);function KO(e){const t=Mt({preselectedDate:null,preselectedDateAvailability:!1,firstAvailableDate:null,bookedDate:null,displayedYear:null,displayedMonth:null,availabilityDates:[],isDuration:!1,bookingFlowPackageId:null}),n=y(()=>t.availabilityDates.find(c=>c.year===t.displayedYear&&c.month===t.displayedMonth)),r=async(c,u,p,v)=>{let m={bookingFlowPackageId:t.bookingFlowPackageId,year:p,month:u,promocode:v,refcur:e.referenceCurrency,retroactiveSearch:c};const g=await e.cbApi.get(e.getTodoCalendarAvailabilityUrl,m,!0);if(g==="callCancelled")return!1;var x=g;if(!c){const _=new Date,w=new Date(_.getUTCFullYear(),_.getUTCMonth(),_.getUTCDate());x=g.filter(k=>new Date(k.date)>=w)}return(({days:_,year:w,month:k,isLastAvailableMonth:A})=>{let M={year:w,month:k,days:_,isLastAvailableMonth:A},I=t.availabilityDates.indexOf(t.availabilityDates.find(N=>N.year===w&&N.month===k));I!==-1?t.availabilityDates[I]=M:t.availabilityDates.push(M)})({days:x,year:m.year,month:m.month,isLastAvailableMonth:!1}),g},o=async(c,u)=>{if(!t.preselectedDate)return!1;let p=l(t.preselectedDate),v=s(t.preselectedDate),m=await r(c,p,v,u);if(m===!1)return null;const g=m.find(x=>x.date===t.preselectedDate);return!!(g&&g.availability>0)},i=async(c,u,p,v)=>{if(c&&u&&((m,g)=>{t.displayedMonth=m,t.displayedYear=g})(c,u),n.value)return n.value;await r(p,t.displayedMonth,t.displayedYear,v)},a=c=>{let u=c.split("-");return Number(u[2])},l=c=>{let u=c.split("-");return Number(u[1])},s=c=>{let u=c.split("-");return Number(u[0])};return(c=>{t.preselectedDate=c})(e.preselectedDate),{calendarState:Qn(t),setCalendarStartupInfo:(c,u,p,v,m)=>{t.firstAvailableDate=c,t.isDuration=u,t.bookingFlowPackageId=p,t.preselectedDateAvailability=o(v,m)},setBookedDate:c=>{t.bookedDate=c},resetAvailability:()=>{t.availabilityDates=[]},displayedMonthAvailability:n,updateCalendar:i,initializeCalendar:async c=>{let u;u=t.bookedDate?t.bookedDate:t.preselectedDate&&t.preselectedDateAvailability?t.preselectedDate:t.firstAvailableDate;let p=l(u),v=s(u);await i(p,v,c)},getAutoSelectDate:()=>t.bookedDate?t.bookedDate:t.isDuration?null:t.preselectedDate&&t.preselectedDateAvailability?t.preselectedDate:t.firstAvailableDate,getFirstAvailableMonth:()=>l(t.firstAvailableDate),getFirstAvailableYear:()=>s(t.firstAvailableDate),getDateFromDateString:c=>new Date(Date.UTC(s(c),l(c)-1,a(c)))}}var JO={deferEvents:!1},Ch=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=de(de({},JO),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents)return void this.schedule(t);this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(this.initialized&&!this.processingEvent){if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()}else this.queue.push(t)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(n){throw this.clear(),n}finally{this.processingEvent=!1}},e}(),gc=new Map,QO=0,eM=function(){return"x:".concat(QO++)},tM=function(e,t){return gc.set(e,t),e},nM=function(e){return gc.get(e)},Sh=function(e){gc.delete(e)};function mc(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:void 0}function rM(e){if(mc()){var t=function(){var n=mc();if(n&&"__xstate__"in n)return n.__xstate__}();t&&t.register(e)}}function oM(e,t){t===void 0&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,a=function(s){var c;return de(((c={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[Xn]=function(){return this},c),s)}({id:t.id,send:function(s){o.push(s),function(){if(!i){for(i=!0;o.length>0;){var c=o.shift();n=e.transition(n,c,l),r.forEach(function(u){return u.next(n)})}i=!1}}()},getSnapshot:function(){return n},subscribe:function(s,c,u){var p=ca(s,c,u);return r.add(p),p.next(n),{unsubscribe:function(){r.delete(p)}}}}),l={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(l):n,a}var dt,aM={sync:!1,autoForward:!1};(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(dt||(dt={}));var iM=function(){function e(t,n){n===void 0&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=dt.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(u,p){if(to(u))return r.batch(u),r.state;var v=gt(zi(u,p));if(r.status===dt.Stopped)return r.state;if(r.status!==dt.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(v.name,'" was sent to uninitialized service "').concat(r.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
Event: `).concat(JSON.stringify(v.data)));return r.scheduler.schedule(function(){r.forward(v);var m=r._nextState(v);r.update(m,v)}),r._state},this.sendTo=function(u,p,v){var m=r.parent&&(p===Zn.Parent||r.parent.id===p),g=m?r.parent:qe(p)?p===Zn.Internal?r:r.children.get(p)||nM(p):function(_){return!!_&&typeof _.send=="function"}(p)?p:void 0;if(g)if("machine"in g){if(r.status!==dt.Stopped||r.parent!==g||r.state.done){var x=de(de({},u),{name:u.name===cc?"".concat(io(r.id)):u.name,origin:r.sessionId});!v&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([g,x]):g.send(x)}}else!v&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([g,u.data]):g.send(u.data);else if(!m)throw new Error("Unable to send event to child '".concat(p,"' from service '").concat(r.id,"'."))},this._exec=function(u,p,v,m){m===void 0&&(m=r.machine.options.actions);var g=u.exec||Gi(u.type,m),x=We(g)?g:g?g.exec:u.exec;if(x)try{return x(p,v.data,r.machine.config.predictableActionArguments?{action:u,_event:v}:{action:u,state:r.state,_event:v})}catch(L){throw r.parent&&r.parent.send({type:"xstate.error",data:L}),L}switch(u.type){case eo:var _=u;r.defer(_);break;case ia:var w=u;if(typeof w.delay=="number")return void r.defer(w);w.to?r.sendTo(w._event,w.to,v===wr):r.send(w._event);break;case sc:r.cancel(u.sendId);break;case Ri:if(r.status!==dt.Running)return;var k=u.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[k.id||k.type])break;if(k.type===Ge.Invoke){var A=ah(k.src),M=r.machine.options.services?r.machine.options.services[A.type]:void 0,I=k.id,N=k.data,S="autoForward"in k?k.autoForward:!!k.forward;if(!M)return;var F=N?Wi(N,p,v):void 0;if(typeof M=="string")return;var U=We(M)?M(p,v.data,{data:F,src:A,meta:k.meta}):M;if(!U)return;var B=void 0;no(U)&&(U=F?U.withContext(F):U,B={autoForward:S}),r.spawn(U,I,B)}else r.spawnActivity(k);break;case $i:r.stopChild(u.activity.id);break;case Fi:var Z=u,X=Z.label,Y=Z.value;X?r.logger(X,Y):r.logger(Y)}};var o=de(de({},e.defaultOptions),n),i=o.clock,a=o.logger,l=o.parent,s=o.id,c=s!==void 0?s:t.id;this.id=c,this.logger=a,this.clock=i,this.parent=l,this.options=o,this.scheduler=new Ch({deferEvents:this.options.deferEvents}),this.sessionId=eM()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:so(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,n){var r,o;try{for(var i=Fe(t.actions),a=i.next();!a.done;a=i.next()){var l=a.value;this.exec(l,t,n)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},e.prototype.update=function(t,n){var r,o,i,a,l,s,c,u,p=this;if(t._sessionid=this.sessionId,this._state=t,this.machine.config.predictableActionArguments&&n!==wr||!this.options.execute)for(var v=void 0;v=this._outgoingQueue.shift();)v[0].send(v[1]);else this.execute(this.state);if(this.children.forEach(function(S){p.state.children[S.id]=S}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var m=Fe(this.eventListeners),g=m.next();!g.done;g=m.next())(0,g.value)(t.event)}catch(S){r={error:S}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}try{for(var x=Fe(this.listeners),_=x.next();!_.done;_=x.next())(0,_.value)(t,t.event)}catch(S){i={error:S}}finally{try{_&&!_.done&&(a=x.return)&&a.call(x)}finally{if(i)throw i.error}}try{for(var w=Fe(this.contextListeners),k=w.next();!k.done;k=w.next())(0,k.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(S){l={error:S}}finally{try{k&&!k.done&&(s=w.return)&&s.call(w)}finally{if(l)throw l.error}}if(this.state.done){var A=t.configuration.find(function(S){return S.type==="final"&&S.parent===p.machine}),M=A&&A.doneData?Wi(A.doneData,t.context,n):void 0;this._doneEvent=da(this.id,M);try{for(var I=Fe(this.doneListeners),N=I.next();!N.done;N=I.next())(0,N.value)(this._doneEvent)}catch(S){c={error:S}}finally{try{N&&!N.done&&(u=I.return)&&u.call(I)}finally{if(c)throw c.error}}this._stop(),this._stopChildren(),Sh(this.sessionId)}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===dt.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var o=this,i=ca(t,n,r);this.listeners.add(i.next),this.status!==dt.NotStarted&&i.next(this.state);var a=function(){o.doneListeners.delete(a),o.stopListeners.delete(a),i.complete()};return this.status===dt.Stopped?i.complete():(this.onDone(a),this.onStop(a)),{unsubscribe:function(){o.listeners.delete(i.next),o.doneListeners.delete(a),o.stopListeners.delete(a)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.status===dt.Stopped&&this._doneEvent?t(this._doneEvent):this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var n=this;if(this.status===dt.Running)return this;this.machine._init(),tM(this.sessionId,this),this.initialized=!0,this.status=dt.Running;var r=t===void 0?this.initialState:so(this,function(){return function(o){return typeof o=="object"&&o!==null&&"value"in o&&"_event"in o}(t)?n.machine.resolveState(t):n.machine.resolveState(Ut.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,wr)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(t){We(t.stop)&&t.stop()}),this.children.clear()},e.prototype._stop=function(){var t,n,r,o,i,a,l,s,c,u;try{for(var p=Fe(this.listeners),v=p.next();!v.done;v=p.next()){var m=v.value;this.listeners.delete(m)}}catch(S){t={error:S}}finally{try{v&&!v.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}try{for(var g=Fe(this.stopListeners),x=g.next();!x.done;x=g.next())(m=x.value)(),this.stopListeners.delete(m)}catch(S){r={error:S}}finally{try{x&&!x.done&&(o=g.return)&&o.call(g)}finally{if(r)throw r.error}}try{for(var _=Fe(this.contextListeners),w=_.next();!w.done;w=_.next())m=w.value,this.contextListeners.delete(m)}catch(S){i={error:S}}finally{try{w&&!w.done&&(a=_.return)&&a.call(_)}finally{if(i)throw i.error}}try{for(var k=Fe(this.doneListeners),A=k.next();!A.done;A=k.next())m=A.value,this.doneListeners.delete(m)}catch(S){l={error:S}}finally{try{A&&!A.done&&(s=k.return)&&s.call(k)}finally{if(l)throw l.error}}if(!this.initialized)return this;this.initialized=!1,this.status=dt.Stopped,this._initialState=void 0;try{for(var M=Fe(Object.keys(this.delayedEventsMap)),I=M.next();!I.done;I=M.next()){var N=I.value;this.clock.clearTimeout(this.delayedEventsMap[N])}}catch(S){c={error:S}}finally{try{I&&!I.done&&(u=M.return)&&u.call(M)}finally{if(c)throw c.error}}this.scheduler.clear(),this.scheduler=new Ch({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var t=this,n=this.scheduler;return this._stop(),n.schedule(function(){var r;if((r=t._state)===null||r===void 0||!r.done){var o=gt({type:"xstate.stop"}),i=so(t,function(){var a=st(nt([],Ue(t.state.configuration),!1).sort(function(p,v){return v.order-p.order}).map(function(p){return An(p.onExit,t.machine.options.actions)})),l=Ue(pa(t.machine,t.state,t.state.context,o,[{type:"exit",actions:a}],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),s=l[0],c=l[1],u=new Ut({value:t.state.value,context:c,_event:o,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:s.filter(function(p){return!vc(p)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return u.changed=!0,u});t.update(i,o),t._stopChildren(),Sh(t.sessionId)}}),this},e.prototype.batch=function(t){var n=this;if(!(this.status===dt.NotStarted&&this.options.deferEvents)){if(this.status!==dt.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}if(t.length){var r=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var o,i,a=n.state,l=!1,s=[],c=function(v){var m=gt(v);n.forward(m),a=so(n,function(){return n.machine.transition(a,m,void 0,r||void 0)}),s.push.apply(s,nt([],Ue(n.machine.config.predictableActionArguments?a.actions:a.actions.map(function(g){return function(x,_){var w=x.exec;return de(de({},x),{exec:w!==void 0?function(){return w(_.context,_.event,{action:x,state:_,_event:_._event})}:void 0})}(g,a)})),!1)),l=l||!!a.changed};try{for(var u=Fe(t),p=u.next();!p.done;p=u.next())c(p.value)}catch(v){o={error:v}}finally{try{p&&!p.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}a.changed=l,a.actions=s,n.update(a,gt(t[t.length-1]))})}},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype._nextState=function(t,n){var r=this;n===void 0&&(n=!!this.machine.config.predictableActionArguments&&this._exec);var o=gt(t);if(o.name.indexOf(lc)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(lc)===0}))throw o.data.data;return so(this,function(){return r.machine.transition(r.state,o,void 0,n||void 0)})},e.prototype.nextState=function(t){return this._nextState(t,!1)},e.prototype.forward=function(t){var n,r;try{for(var o=Fe(this.forwardTo),i=o.next();!i.done;i=o.next()){var a=i.value,l=this.children.get(a);if(!l)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(a,"'."));l.send(t)}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.defer=function(t){var n=this,r=this.clock.setTimeout(function(){"to"in t&&t.to?n.sendTo(t._event,t.to,!0):n.send(t._event)},t.delay);t.id&&(this.delayedEventsMap[t.id]=r)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,n,r){r===void 0&&(r=this.machine.options.actions),this._exec(t,n.context,n._event,r)},e.prototype.removeChild=function(t){var n;this.children.delete(t),this.forwardTo.delete(t),(n=this.state)===null||n===void 0||delete n.children[t]},e.prototype.stopChild=function(t){var n=this.children.get(t);n&&(this.removeChild(t),We(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,r){if(this.status!==dt.Running)return kh(t,n);if(eh(t))return this.spawnPromise(Promise.resolve(t),n);if(We(t))return this.spawnCallback(t,n);if(function(o){return function(i){try{return typeof i.send=="function"}catch{return!1}}(o)&&"id"in o}(t))return this.spawnActor(t,n);if(function(o){try{return"subscribe"in o&&We(o.subscribe)}catch{return!1}}(t))return this.spawnObservable(t,n);if(no(t))return this.spawnMachine(t,de(de({},r),{id:n}));if(function(o){return o!==null&&typeof o=="object"&&"transition"in o&&typeof o.transition=="function"}(t))return this.spawnBehavior(t,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,n){var r=this;n===void 0&&(n={});var o=new e(t,de(de({},this.options),{parent:this,id:n.id||t.id})),i=de(de({},aM),n);i.sync&&o.onTransition(function(l){r.send(Bi,{state:l,id:o.id})});var a=o;return this.children.set(o.id,a),i.autoForward&&this.forwardTo.add(o.id),o.onDone(function(l){r.removeChild(o.id),r.send(gt(l,{origin:o.id}))}).start(),a},e.prototype.spawnBehavior=function(t,n){var r=oM(t,{id:n,parent:this});return this.children.set(n,r),r},e.prototype.spawnPromise=function(t,n){var r,o,i=this,a=!1;t.then(function(s){a||(o=s,i.removeChild(n),i.send(gt(da(n,s),{origin:n})))},function(s){if(!a){i.removeChild(n);var c=io(n,s);try{i.send(gt(c,{origin:n}))}catch{i.devTools&&i.devTools.send(c,i.state),i.machine.strict&&i.stop()}}});var l=(r={id:n,send:function(){},subscribe:function(s,c,u){var p=ca(s,c,u),v=!1;return t.then(function(m){v||(p.next(m),!v&&p.complete())},function(m){v||p.error(m)}),{unsubscribe:function(){return v=!0}}},stop:function(){a=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return o}},r[Xn]=function(){return this},r);return this.children.set(n,l),l},e.prototype.spawnCallback=function(t,n){var r,o,i,a=this,l=!1,s=new Set,c=new Set;try{i=t(function(p){o=p,c.forEach(function(v){return v(p)}),!l&&a.send(gt(p,{origin:n}))},function(p){s.add(p)})}catch(p){this.send(io(n,p))}if(eh(i))return this.spawnPromise(i,n);var u=(r={id:n,send:function(p){return s.forEach(function(v){return v(p)})},subscribe:function(p){var v=ca(p);return c.add(v.next),{unsubscribe:function(){c.delete(v.next)}}},stop:function(){l=!0,We(i)&&i()},toJSON:function(){return{id:n}},getSnapshot:function(){return o}},r[Xn]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnObservable=function(t,n){var r,o,i=this,a=t.subscribe(function(s){o=s,i.send(gt(s,{origin:n}))},function(s){i.removeChild(n),i.send(gt(io(n,s),{origin:n}))},function(){i.removeChild(n),i.send(gt(da(n),{origin:n}))}),l=(r={id:n,send:function(){},subscribe:function(s,c,u){return t.subscribe(s,c,u)},stop:function(){return a.unsubscribe()},getSnapshot:function(){return o},toJSON:function(){return{id:n}}},r[Xn]=function(){return this},r);return this.children.set(n,l),l},e.prototype.spawnActor=function(t,n){return this.children.set(n,t),t},e.prototype.spawnActivity=function(t){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(n){var r=n(this.state.context,t);this.spawnEffect(t.id,r)}},e.prototype.spawnEffect=function(t,n){var r;this.children.set(t,((r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}})[Xn]=function(){return this},r))},e.prototype.attachDev=function(){var t=mc();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(de(de({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:de({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}rM(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Xn]=function(){return this},e.prototype.getSnapshot=function(){return this.status===dt.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,n){return setTimeout(t,n)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=Dh,e}();function Dh(e,t){return new iM(e,t)}var Ji=function(){return Ji=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ji.apply(this,arguments)};function sM(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,o=function(A,M){var I=typeof Symbol=="function"&&A[Symbol.iterator];if(!I)return A;var N,S,F=I.call(A),U=[];try{for(;(M===void 0||M-- >0)&&!(N=F.next()).done;)U.push(N.value)}catch(B){S={error:B}}finally{try{N&&!N.done&&(I=F.return)&&I.call(F)}finally{if(S)throw S.error}}return U}(t,2),i=o[0],a=i===void 0?{}:i,l=o[1],s=typeof e=="function"?e():e,c=a.context,u=a.guards,p=a.actions,v=a.activities,m=a.services,g=a.delays,x=a.state,_=function(A,M){var I={};for(var N in A)Object.prototype.hasOwnProperty.call(A,N)&&M.indexOf(N)<0&&(I[N]=A[N]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function"){var S=0;for(N=Object.getOwnPropertySymbols(A);S<N.length;S++)M.indexOf(N[S])<0&&Object.prototype.propertyIsEnumerable.call(A,N[S])&&(I[N[S]]=A[N[S]])}return I}(a,["context","guards","actions","activities","services","delays","state"]),w={context:c,guards:u,actions:p,activities:v,services:m,delays:g},k=Dh(s.withConfig(w,function(){return Ji(Ji({},s.context),c)}),_).start(x?Ut.create(x):void 0);return Tt(function(){l&&(r=k.subscribe(ca(l)))}),Ds(function(){k.stop(),r==null||r.unsubscribe()}),k}function lM(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=function(c,u){var p=typeof Symbol=="function"&&c[Symbol.iterator];if(!p)return c;var v,m,g=p.call(c),x=[];try{for(;(u===void 0||u-- >0)&&!(v=g.next()).done;)x.push(v.value)}catch(_){m={error:_}}finally{try{v&&!v.done&&(p=g.return)&&p.call(g)}finally{if(m)throw m.error}}return x}(t,1),o=r[0],i=o===void 0?{}:o,a=sM(e,i,function(c){var u=c.changed===void 0&&Object.keys(c.children).length;(c.changed||u)&&(s.value=c)}),l=a.machine.initialState,s=Zc(i.state?Ut.create(i.state):l,!0);return{state:s,send:a.send,service:a}}const cM={key:3,class:"cb-framework cb-test-booking-flow"},uM={__name:"cb-booking-flow",props:{cbisproductid:{type:Number,required:!0},idInBasket:{type:Number,default:null},culture:{type:String,required:!0},environment:{type:String,required:!0},startDate:{type:[String,null],default:null},promotionCode:{type:[String,null],default:null},proceedToBasket:{type:Boolean,default:!0},displayCollapsed:{type:Boolean,default:!1},display:{type:String,default:"standard",validator:e=>["standard","collapsed","button","modalonly"].includes(e)},referenceCurrency:{type:String,required:!1,default:null},numberOfPriceDecimals:{type:Number,default:0},doTodoStartupConfigurationUrl:{type:String,required:!0},doTodoConfigurationUrl:{type:String,required:!0},bookTodoConfigurationUrl:{type:String,required:!0},getTodoCalendarAvailabilityUrl:{type:String,required:!0},verifyPromoCodeUrl:{type:String,required:!0},showOccasionCapacity:{type:Boolean,default:!1},isAgent:{type:Boolean,default:!1}},setup(e){const t=e,n=ae("cb-broadcaster"),{state:r,updateSelectedDate:o,setConfigurationDate:i,setPromoCodeInput:a,saveConfiguration:l,updatePriceGroup:s,updateProducts:c,updateProductSelectionForAll:u,updateTours:p,updateRoutes:v,updatePromoCode:m,updateSelectedSeats:g,setAllSteps:x,setCurrentComponent:_,updateDurations:w,priceGroups:k,durations:A,currency:M,isLastComponent:I,isLastSlot:N,isFirstModalComponent:S,isOptionalProductOption:F,selectedPriceGroups:U,getPriceGroupNameById:B,currentSlot:Z,currentFlattenedSeatings:X,currentSelectionPrices:Y,currentSeatPickerScript:L,hasCurrentSeatPickerScript:z,hasSelectedProductOptions:J,currentSlotTours:te,currentSlotRoutes:se,currentStateIsValid:re,isDateOrDurationSet:ue}=SO(),{calendarState:le,setCalendarStartupInfo:_e,setBookedDate:$e,resetAvailability:ce,displayedMonthAvailability:ve,updateCalendar:ye,initializeCalendar:Me,getAutoSelectDate:Oe,getFirstAvailableMonth:ze,getFirstAvailableYear:Be,getDateFromDateString:Te}=KO({cbApi:Wf(),preselectedDate:t.startDate,getTodoCalendarAvailabilityUrl:t.getTodoCalendarAvailabilityUrl,referenceCurrency:t.referenceCurrency}),{state:j,lookupContent:V,lookupSlotContent:Q,lookupPageContent:ie,lookupContentImages:d,lookupProductContent:f,updateBookingFlowContentItems:b}=function(){const T="productSlot",q="product",$="productPage",W=Mt({bookingFlowContentItems:[]}),K=y(()=>W.bookingFlowContentItems.find(me=>me.name===q)),ne=y(()=>W.bookingFlowContentItems.find(me=>me.name===T)),De=y(()=>W.bookingFlowContentItems.find(me=>me.name===$)),Se=y(()=>{let me=[];for(let be=0;be<W.bookingFlowContentItems.length;be++)for(let Ae=0;Ae<W.bookingFlowContentItems[be].contentItemValues.length;Ae++){let Ie={id:W.bookingFlowContentItems[be].contentItemValues[Ae].id,images:[]};for(let Ee in W.bookingFlowContentItems[be].contentItemValues[Ae].contents)Ee.includes("images")&&Ie.images.push({url:W.bookingFlowContentItems[be].contentItemValues[Ae].contents[Ee],description:W.bookingFlowContentItems[be].contentItemValues[Ae].contents.name});me.push(Ie)}return me});return{state:Qn(W),lookupContent:(me,be,Ae)=>{if(!W.bookingFlowContentItems)return Ae;for(let Ie=0;Ie<W.bookingFlowContentItems.length;Ie++)for(let Ee=0;Ee<W.bookingFlowContentItems[Ie].contentItemValues.length;Ee++)if(W.bookingFlowContentItems[Ie].contentItemValues[Ee].id===me)return W.bookingFlowContentItems[Ie].contentItemValues[Ee].contents[be]??Ae;return Ae},updateBookingFlowContentItems:me=>{W.bookingFlowContentItems=me},lookupSlotContent:(me,be,Ae)=>{if(me==null||!ne.value||ne.value.contentItemValues.length-1<me)return Ae;let Ie=ne.value.contentItemValues[me].contents;return Ie?be?Ie[be]:Ie:Ae},lookupPageContent:(me,be,Ae)=>{if(me==null||!De.value||De.value.contentItemValues.length-1<me)return Ae;let Ie=De.value.contentItemValues[me].contents;return Ie?be?Ie[be]:Ie:Ae},lookupProductContent:(me,be)=>{if(!K.value)return be;let Ae=K.value.contentItemValues[0].contents;return me?Ae[me]:Ae},lookupContentImages:(me,be)=>{if(!W.bookingFlowContentItems)return be;let Ae=Se.value.find(Ie=>Ie.id===me);return Ae?Ae.images:[]}}}(),D=y(()=>t.display?t.display:"standard"),{state:P,send:E}=lM(XO({idInBasket:t.idInBasket,doTodoStartupConfigurationUrl:t.doTodoStartupConfigurationUrl,doTodoConfigurationUrl:t.doTodoConfigurationUrl,bookTodoConfigurationUrl:t.bookTodoConfigurationUrl,verifyPromoCodeUrl:t.verifyPromoCodeUrl,getTodoCalendarAvailabilityUrl:t.getTodoCalendarAvailabilityUrl,environment:t.environment,cbisproductid:t.cbisproductid,preselectedPromoCode:t.promotionCode,allowCapacityOverride:pe(!1),referenceCurrency:t.referenceCurrency,proceedToBasket:t.proceedToBasket,culture:t.culture,showOccasionCapacity:t.showOccasionCapacity,numberOfPriceDecimals:t.numberOfPriceDecimals,isAgent:t.isAgent,useCalendar:!1,useParticipantPicker:!1,usePromoCodes:!1,firstAvailableDate:null,display:D,widgetState:r,setCurrentComponent:_,saveConfiguration:l,setAllSteps:x,updateBookingFlowContentItems:b,updateSelectedDate:o,setConfigurationDate:i,updateDurations:w,calendarState:le,setCalendarStartupInfo:_e,setBookedDate:$e,displayedMonthAvailability:ve,resetAvailability:ce,updateCalendar:ye,initializeCalendar:Me,getAutoSelectDate:Oe,updatePromoCode:m,setPromoCodeInput:a,isDateOrDurationSet:ue,broadcaster:n,cbApi:Wf()}));qt("widget",{widgetState:r,updateSelectedDate:o,setConfigurationDate:i,setPromoCodeInput:a,saveConfiguration:l,updatePriceGroup:s,updateProducts:c,updateProductSelectionForAll:u,updateTours:p,updateRoutes:v,updatePromoCode:m,updateSelectedSeats:g,updateDurations:w,setCurrentComponent:_,priceGroups:k,durations:A,currency:M,isLastComponent:I,isLastSlot:N,isFirstModalComponent:S,isOptionalProductOption:F,selectedPriceGroups:U,getPriceGroupNameById:B,currentSlot:Z,currentFlattenedSeatings:X,currentSelectionPrices:Y,currentSeatPickerScript:L,hasCurrentSeatPickerScript:z,hasSelectedProductOptions:J,currentSlotTours:te,currentSlotRoutes:se,currentStateIsValid:re,isDateOrDurationSet:ue}),qt("calendar",{calendarState:le,displayedMonthAvailability:ve,getFirstAvailableMonth:ze,getFirstAvailableYear:Be,getDateFromDateString:Te}),qt("bookingFlowMachine",{state:P,send:E}),qt("contentDatabase",{contentDatabaseState:j,lookupContent:V,lookupSlotContent:Q,lookupPageContent:ie,lookupContentImages:d,lookupProductContent:f});const G=()=>{E("MODAL_OPEN")};return mu((T,q,$)=>(t.environment!=="Production"&&console.error(T,$,q),E("ERROR"),!1)),Tt(()=>{D.value==="modalonly"&&G()}),(T,q)=>(C(),R(ge,null,[D.value!=="modalonly"?ot(T.$slots,"toolbar",{key:0}):oe("",!0),D.value=="standard"?(C(),fe(Pf,{key:1})):oe("",!0),D.value=="collapsed"?(C(),fe(HD,{key:2})):oe("",!0),D.value=="button"?(C(),R("div",cM,[ee(O(ht),{onClick:G},{default:he(()=>[xe(H(T.$t("TodoWidget.SingleButton")),1)]),_:1})])):oe("",!0),ee(vO,null,{toolbar:he(()=>[ot(T.$slots,"toolbar")]),_:3}),ee(kO)],64))}},dM=uM,pM={__name:"todo-widget",props:{cbisproductid:{type:Number,required:!0},idInBasket:{type:[Number,null],default:null},culture:{type:String,required:!0},translations:{type:String,required:!0},environment:{type:String,required:!0},startDate:{type:[String,null],default:null},promotionCode:{type:[String,null],default:null},proceedToBasket:{type:Boolean,default:!0},display:{type:String,default:"standard",validator:e=>["standard","collapsed","button"].includes(e)},referenceCurrency:{type:String,required:!1,default:null},numberOfPriceDecimals:{type:Number,required:!1,default:0},sessionUrl:{type:String,required:!0},doTodoStartupConfigurationUrl:{type:String,required:!0},doTodoConfigurationUrl:{type:String,required:!0},bookTodoConfigurationUrl:{type:String,required:!0},getTodoCalendarAvailabilityUrl:{type:String,required:!0},verifyPromoCodeUrl:{type:String,required:!0}},setup(e){const t=e,n=it();let r=JSON.parse(vm.decode(t.translations));n.proxy.$st(r);const o=t.startDate?t.startDate:null,i=function(){let a;const l={};return{initialize:s=>{a=new BroadcastChannel(s),a.addEventListener("message",c=>{const u=c.data.key??void 0,p=c.data.data??void 0,v=l[u]??[];for(const m of v)m(p)})},publish:(s,c)=>{a==null||a.postMessage({key:s,data:c})},subscribe:(s,c)=>{(l[s]??(l[s]=[])).push(c)}}}();return fetch(t.sessionUrl,{credentials:"include",headers:{"Content-Type":"application/json"}}).then(a=>a.json()).then(a=>i.initialize(a)).catch(a=>{throw new Error(`Failed to establish session: ${a}`)}),qt("cb-broadcaster",i),(a,l)=>(C(),fe(O(dM),{cbisproductid:e.cbisproductid,"id-in-basket":e.idInBasket,culture:e.culture,environment:e.environment,"start-date":O(o),"promotion-code":e.promotionCode,"proceed-to-basket":e.proceedToBasket,display:e.display,"reference-currency":e.referenceCurrency,"number-of-price-decimals":e.numberOfPriceDecimals,"do-todo-startup-configuration-url":e.doTodoStartupConfigurationUrl,"do-todo-configuration-url":e.doTodoConfigurationUrl,"book-todo-configuration-url":e.bookTodoConfigurationUrl,"get-todo-calendar-availability-url":e.getTodoCalendarAvailabilityUrl,"verify-promo-code-url":e.verifyPromoCodeUrl},null,8,["cbisproductid","id-in-basket","culture","environment","start-date","promotion-code","proceed-to-basket","display","reference-currency","number-of-price-decimals","do-todo-startup-configuration-url","do-todo-configuration-url","book-todo-configuration-url","get-todo-calendar-availability-url","verify-promo-code-url"]))}},vM=mm(pM,function(e){return sm({render:()=>Vs(e)}).use(gm)},Vs);customElements.get("todo-widget")||customElements.define("todo-widget",vM)})();
