import lu from"./By89Ug_I.js";import{_ as Zr}from"./DlAUqK2U.js";import{e as Nn,f as sr,r as j,s as uu,g as ft,h as cu,i as Xt,j as ve,k as mo,l as du,m as $,n as ts,p as fu,q as b,v as Ze,x as Ln,y as vu,z as te,o as x,A as oe,B as Ct,C as vr,D as go,E as hu,F as pu,G as mu,H as xa,I as gu,J as yu,K as rs,L as je,c as E,M as be,w as G,N as ke,O as Fn,a as A,P as bu,Q as wu,R as Wn,S as Du,T as $u,U as He,V as Ye,W as Vt,X as ns,Y as vn,Z,_ as X,t as pe,$ as Ne,b as U,a0 as le,a1 as Lr,a2 as Oe,a3 as Ht,a4 as _u,d as Ta,a5 as bn,a6 as cr,a7 as ku,a8 as nt,a9 as yo,aa as Ca,ab as Mu,ac as Pu,ad as as,ae as Ou,af as et,ag as Su,ah as xu,ai as Tu,aj as Cu,ak as Yu}from"./B5lHLZeL.js";import{_ as Eu}from"./BqSQ8yEi.js";const bo=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function ha(e,t){t?t={...bo,...t}:t=bo;const r=os(t);return r.dispatch(e),r.toString()}const Iu=Object.freeze(["prototype","__proto__","constructor"]);function os(e){let t="",r=new Map;const n=a=>{t+=a};return{toString(){return t},getContext(){return r},dispatch(a){return e.replacer&&(a=e.replacer(a)),this[a===null?"null":typeof a](a)},object(a){if(a&&typeof a.toJSON=="function")return this.object(a.toJSON());const o=Object.prototype.toString.call(a);let i="";const s=o.length;s<10?i="unknown:["+o+"]":i=o.slice(8,s-1),i=i.toLowerCase();let l=null;if((l=r.get(a))===void 0)r.set(a,r.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(a))return n("buffer:"),n(a.toString("utf8"));if(i!=="object"&&i!=="function"&&i!=="asyncfunction")this[i]?this[i](a):e.ignoreUnknown||this.unkown(a,i);else{let u=Object.keys(a);e.unorderedObjects&&(u=u.sort());let c=[];e.respectType!==!1&&!wo(a)&&(c=Iu),e.excludeKeys&&(u=u.filter(f=>!e.excludeKeys(f)),c=c.filter(f=>!e.excludeKeys(f))),n("object:"+(u.length+c.length)+":");const d=f=>{this.dispatch(f),n(":"),e.excludeValues||this.dispatch(a[f]),n(",")};for(const f of u)d(f);for(const f of c)d(f)}},array(a,o){if(o=o===void 0?e.unorderedArrays!==!1:o,n("array:"+a.length+":"),!o||a.length<=1){for(const l of a)this.dispatch(l);return}const i=new Map,s=a.map(l=>{const u=os(e);u.dispatch(l);for(const[c,d]of u.getContext())i.set(c,d);return u.toString()});return r=i,s.sort(),this.array(s,!1)},date(a){return n("date:"+a.toJSON())},symbol(a){return n("symbol:"+a.toString())},unkown(a,o){if(n(o),!!a&&(n(":"),a&&typeof a.entries=="function"))return this.array(Array.from(a.entries()),!0)},error(a){return n("error:"+a.toString())},boolean(a){return n("bool:"+a)},string(a){n("string:"+a.length+":"),n(a)},function(a){n("fn:"),wo(a)?this.dispatch("[native]"):this.dispatch(a.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(a.name)),e.respectFunctionProperties&&this.object(a)},number(a){return n("number:"+a)},xml(a){return n("xml:"+a.toString())},null(){return n("Null")},undefined(){return n("Undefined")},regexp(a){return n("regex:"+a.toString())},uint8array(a){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(a))},uint8clampedarray(a){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(a))},int8array(a){return n("int8array:"),this.dispatch(Array.prototype.slice.call(a))},uint16array(a){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(a))},int16array(a){return n("int16array:"),this.dispatch(Array.prototype.slice.call(a))},uint32array(a){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(a))},int32array(a){return n("int32array:"),this.dispatch(Array.prototype.slice.call(a))},float32array(a){return n("float32array:"),this.dispatch(Array.prototype.slice.call(a))},float64array(a){return n("float64array:"),this.dispatch(Array.prototype.slice.call(a))},arraybuffer(a){return n("arraybuffer:"),this.dispatch(new Uint8Array(a))},url(a){return n("url:"+a.toString())},map(a){n("map:");const o=[...a];return this.array(o,e.unorderedSets!==!1)},set(a){n("set:");const o=[...a];return this.array(o,e.unorderedSets!==!1)},file(a){return n("file:"),this.dispatch([a.name,a.size,a.type,a.lastModfied])},blob(){if(e.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported
Use "options.replacer" or "options.ignoreUnknown"
`)},domwindow(){return n("domwindow")},bigint(a){return n("bigint:"+a.toString())},process(){return n("process")},timer(){return n("timer")},pipe(){return n("pipe")},tcp(){return n("tcp")},udp(){return n("udp")},tty(){return n("tty")},statwatcher(){return n("statwatcher")},securecontext(){return n("securecontext")},connection(){return n("connection")},zlib(){return n("zlib")},context(){return n("context")},nodescript(){return n("nodescript")},httpparser(){return n("httpparser")},dataview(){return n("dataview")},signal(){return n("signal")},fsevent(){return n("fsevent")},tlswrap(){return n("tlswrap")}}}const is="[native code] }",Au=is.length;function wo(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-Au)===is}var Nu=Object.defineProperty,Lu=(e,t,r)=>t in e?Nu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t,r)=>(Lu(e,typeof t!="symbol"?t+"":t,r),r);class Yt{constructor(t,r){lr(this,"words"),lr(this,"sigBytes"),t=this.words=t||[],this.sigBytes=r===void 0?t.length*4:r}toString(t){return(t||Fu).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let r=0;r<t.sigBytes;r++){const n=t.words[r>>>2]>>>24-r%4*8&255;this.words[this.sigBytes+r>>>2]|=n<<24-(this.sigBytes+r)%4*8}else for(let r=0;r<t.sigBytes;r+=4)this.words[this.sigBytes+r>>>2]=t.words[r>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new Yt([...this.words])}}const Fu={stringify(e){const t=[];for(let r=0;r<e.sigBytes;r++){const n=e.words[r>>>2]>>>24-r%4*8&255;t.push((n>>>4).toString(16),(n&15).toString(16))}return t.join("")}},Wu={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=[];for(let n=0;n<e.sigBytes;n+=3){const a=e.words[n>>>2]>>>24-n%4*8&255,o=e.words[n+1>>>2]>>>24-(n+1)%4*8&255,i=e.words[n+2>>>2]>>>24-(n+2)%4*8&255,s=a<<16|o<<8|i;for(let l=0;l<4&&n*8+l*6<e.sigBytes*8;l++)r.push(t.charAt(s>>>6*(3-l)&63))}return r.join("")}},Ru={parse(e){const t=e.length,r=[];for(let n=0;n<t;n++)r[n>>>2]|=(e.charCodeAt(n)&255)<<24-n%4*8;return new Yt(r,t)}},Bu={parse(e){return Ru.parse(unescape(encodeURIComponent(e)))}};class ju{constructor(){lr(this,"_data",new Yt),lr(this,"_nDataBytes",0),lr(this,"_minBufferSize",0),lr(this,"blockSize",512/32)}reset(){this._data=new Yt,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=Bu.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,r){}_process(t){let r,n=this._data.sigBytes/(this.blockSize*4);t?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const a=n*this.blockSize,o=Math.min(a*4,this._data.sigBytes);if(a){for(let i=0;i<a;i+=this.blockSize)this._doProcessBlock(this._data.words,i);r=this._data.words.splice(0,a),this._data.sigBytes-=o}return new Yt(r,o)}}class Hu extends ju{update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t)}}var Uu=Object.defineProperty,zu=(e,t,r)=>t in e?Uu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qu=(e,t,r)=>(zu(e,t+"",r),r);const Do=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Vu=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Rt=[];class Gu extends Hu{constructor(){super(...arguments),qu(this,"_hash",new Yt([...Do]))}reset(){super.reset(),this._hash=new Yt([...Do])}_doProcessBlock(t,r){const n=this._hash.words;let a=n[0],o=n[1],i=n[2],s=n[3],l=n[4],u=n[5],c=n[6],d=n[7];for(let f=0;f<64;f++){if(f<16)Rt[f]=t[r+f]|0;else{const k=Rt[f-15],D=(k<<25|k>>>7)^(k<<14|k>>>18)^k>>>3,w=Rt[f-2],O=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;Rt[f]=D+Rt[f-7]+O+Rt[f-16]}const v=l&u^~l&c,m=a&o^a&i^o&i,y=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),g=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),p=d+g+v+Vu[f]+Rt[f],_=y+m;d=c,c=u,u=l,l=s+p|0,s=i,i=o,o=a,a=p+_|0}n[0]=n[0]+a|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+u|0,n[6]=n[6]+c|0,n[7]=n[7]+d|0}finalize(t){super.finalize(t);const r=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(r/4294967296),this._data.words[(n+64>>>9<<4)+15]=r,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function Ku(e){return new Gu().finalize(e).toString(Wu)}function Zu(e,t={}){const r=typeof e=="string"?e:ha(e,t);return Ku(r).slice(0,10)}function Xu(e,t,r={}){return e===t||ha(e,r)===ha(t,r)}const Qu=e=>e==="defer"||e===!1;function Ju(...e){var y;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[r,n,a={}]=e;if(typeof r!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof n!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const o=Nn(),i=n,s=()=>sr.value,l=()=>o.isHydrating?o.payload.data[r]:o.static.data[r];a.server=a.server??!0,a.default=a.default??s,a.getCachedData=a.getCachedData??l,a.lazy=a.lazy??!1,a.immediate=a.immediate??!0,a.deep=a.deep??sr.deep,a.dedupe=a.dedupe??"cancel";const u=a.getCachedData(r,o),c=u!=null;if(!o._asyncData[r]||!a.immediate){(y=o.payload._errors)[r]??(y[r]=sr.errorValue);const g=a.deep?j:uu;o._asyncData[r]={data:g(c?u:a.default()),pending:j(!c),error:ft(o.payload._errors,r),status:j("idle"),_default:a.default}}const d={...o._asyncData[r]};delete d._default,d.refresh=d.execute=(g={})=>{if(o._asyncDataPromises[r]){if(Qu(g.dedupe??a.dedupe))return o._asyncDataPromises[r];o._asyncDataPromises[r].cancelled=!0}if(g._initial||o.isHydrating&&g._initial!==!1){const _=g._initial?u:a.getCachedData(r,o);if(_!=null)return Promise.resolve(_)}d.pending.value=!0,d.status.value="pending";const p=new Promise((_,k)=>{try{_(i(o))}catch(D){k(D)}}).then(async _=>{if(p.cancelled)return o._asyncDataPromises[r];let k=_;a.transform&&(k=await a.transform(_)),a.pick&&(k=tc(k,a.pick)),o.payload.data[r]=k,d.data.value=k,d.error.value=sr.errorValue,d.status.value="success"}).catch(_=>{if(p.cancelled)return o._asyncDataPromises[r];d.error.value=du(_),d.data.value=$(a.default()),d.status.value="error"}).finally(()=>{p.cancelled||(d.pending.value=!1,delete o._asyncDataPromises[r])});return o._asyncDataPromises[r]=p,o._asyncDataPromises[r]},d.clear=()=>ec(o,r);const f=()=>d.refresh({_initial:!0}),v=a.server!==!1&&o.payload.serverRendered;{const g=ts();if(g&&!g._nuxtOnBeforeMountCbs){g._nuxtOnBeforeMountCbs=[];const k=g._nuxtOnBeforeMountCbs;cu(()=>{k.forEach(D=>{D()}),k.splice(0,k.length)}),Xt(()=>k.splice(0,k.length))}v&&o.isHydrating&&(d.error.value||u!=null)?(d.pending.value=!1,d.status.value=d.error.value?"error":"success"):g&&(o.payload.serverRendered&&o.isHydrating||a.lazy)&&a.immediate?g._nuxtOnBeforeMountCbs.push(f):a.immediate&&f();const p=fu();if(a.watch){const k=ve(a.watch,()=>d.refresh());p&&mo(k)}const _=o.hook("app:data:refresh",async k=>{(!k||k.includes(r))&&await d.refresh()});p&&mo(_)}const m=Promise.resolve(o._asyncDataPromises[r]).then(()=>d);return Object.assign(m,d),m}function ec(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=sr.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=sr.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function tc(e,t){const r={};for(const n of t)r[n]=e[n];return r}async function rc(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[r,n]=e;if(!r||typeof r!="string")throw new TypeError("[nuxt] [callOnce] key must be a string: "+r);if(n!==void 0&&typeof n!="function")throw new Error("[nuxt] [callOnce] fn must be a function: "+n);const a=Nn();a.payload.once.has(r)||(a._once=a._once||{},a._once[r]=a._once[r]||n()||!0,await a._once[r],a.payload.once.add(r),delete a._once[r])}function $o(e,t,r){const[n={},a]=typeof t=="string"?[{},t]:[t,r],o=b(()=>Ze(e)),i=n.key||Zu([a,typeof o.value=="string"?o.value:"",...nc(n)]);if(!i||typeof i!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+i);if(!e)throw new Error("[nuxt] [useFetch] request is missing.");const s=i===a?"$f"+i:i;if(!n.baseURL&&typeof o.value=="string"&&o.value[0]==="/"&&o.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:l,lazy:u,default:c,transform:d,pick:f,watch:v,immediate:m,getCachedData:y,deep:g,dedupe:p,..._}=n,k=Ln({...vu,..._,cache:typeof n.cache=="boolean"?void 0:n.cache}),D={server:l,lazy:u,default:c,transform:d,pick:f,immediate:m,getCachedData:y,deep:g,dedupe:p,watch:v===!1?[]:[k,o,...v||[]]};let w;return Ju(s,()=>{var W;(W=w==null?void 0:w.abort)==null||W.call(w,"Request aborted as another request to the same endpoint was initiated."),w=typeof AbortController<"u"?new AbortController:{};const M=Ze(n.timeout);let C;return M&&(C=setTimeout(()=>w.abort("Request aborted due to timeout."),M),w.signal.onabort=()=>clearTimeout(C)),(n.$fetch||globalThis.$fetch)(o.value,{signal:w.signal,...k}).finally(()=>{clearTimeout(C)})},D)}function nc(e){var r;const t=[((r=Ze(e.method))==null?void 0:r.toUpperCase())||"GET",Ze(e.baseURL)];for(const n of[e.params||e.query]){const a=Ze(n);if(!a)continue;const o={};for(const[i,s]of Object.entries(a))o[Ze(i)]=Ze(s);t.push(o)}return t}function ac(e){return typeof e=="function"?e():$(e)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function _o(e){var t;const r=ac(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Ya={to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1}},oc=e=>Object.keys(Ya).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{}),ic=te({props:{name:{type:String,required:!0},mode:{type:String,required:!1,default:null},size:{type:[Number,String],required:!1,default:null},customize:{type:Function,required:!1,default:null}}});function sc(e,t,r,n,a,o){const i=lu;return x(),oe(i,Ct(vr(e.$props)),null,16)}const Ea=Zr(ic,[["render",sc]]);async function lc(e,t){return await uc(t).catch(n=>(console.error("Failed to get image meta for "+t,n+""),{width:0,height:0,ratio:0}))}async function uc(e){if(typeof Image>"u")throw new TypeError("Image not supported");return new Promise((t,r)=>{const n=new Image;n.onload=()=>{const a={width:n.width,height:n.height,ratio:n.width/n.height};t(a)},n.onerror=a=>r(a),n.src=e})}function Xe(e=""){if(typeof e=="number")return e;if(typeof e=="string"&&e.replace("px","").match(/^\d+$/g))return Number.parseInt(e,10)}function cc(e=""){if(e===void 0||!e.length)return[];const t=new Set;for(const r of e.split(" ")){const n=Number.parseInt(r.replace("x",""));n&&t.add(n)}return Array.from(t)}function dc(e){if(e.length===0)throw new Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}function fc(e){const t={};if(typeof e=="string")for(const r of e.split(/[\s,]+/).filter(n=>n)){const n=r.split(":");n.length!==2?t["1px"]=n[0].trim():t[n[0].trim()]=n[1].trim()}else Object.assign(t,e);return t}function vc(e){const t={options:e},r=(a,o={})=>ss(t,a,o),n=(a,o={},i={})=>r(a,{...i,modifiers:xa(o,i.modifiers||{})}).url;for(const a in e.presets)n[a]=(o,i,s)=>n(o,i,{...e.presets[a],...s});return n.options=e,n.getImage=r,n.getMeta=(a,o)=>hc(t,a,o),n.getSizes=(a,o)=>gc(t,a,o),t.$img=n,n}async function hc(e,t,r){const n=ss(e,t,{...r});return typeof n.getMeta=="function"?await n.getMeta():await lc(e,n.url)}function ss(e,t,r){var u,c;if(t&&typeof t!="string")throw new TypeError(`input must be a string (received ${typeof t}: ${JSON.stringify(t)})`);if(!t||t.startsWith("data:"))return{url:t};const{provider:n,defaults:a}=pc(e,r.provider||e.options.provider),o=mc(e,r.preset);if(t=go(t)?t:hu(t),!n.supportsAlias){for(const d in e.options.alias)if(t.startsWith(d)){const f=e.options.alias[d];f&&(t=pu(f,t.slice(d.length)))}}if(n.validateDomains&&go(t)){const d=mu(t).host;if(!e.options.domains.find(f=>f===d))return{url:t}}const i=xa(r,o,a);i.modifiers={...i.modifiers};const s=i.modifiers.format;(u=i.modifiers)!=null&&u.width&&(i.modifiers.width=Xe(i.modifiers.width)),(c=i.modifiers)!=null&&c.height&&(i.modifiers.height=Xe(i.modifiers.height));const l=n.getImage(t,i,e);return l.format=l.format||s||"",l}function pc(e,t){const r=e.options.providers[t];if(!r)throw new Error("Unknown provider: "+t);return r}function mc(e,t){if(!t)return{};if(!e.options.presets[t])throw new Error("Unknown preset: "+t);return e.options.presets[t]}function gc(e,t,r){var m,y,g,p,_;const n=Xe((m=r.modifiers)==null?void 0:m.width),a=Xe((y=r.modifiers)==null?void 0:y.height),o=fc(r.sizes),i=(g=r.densities)!=null&&g.trim()?cc(r.densities.trim()):e.options.densities;dc(i);const s=n&&a?a/n:0,l=[],u=[];if(Object.keys(o).length>=1){for(const k in o){const D=ko(k,String(o[k]),a,s,e);if(D!==void 0){l.push({size:D.size,screenMaxWidth:D.screenMaxWidth,media:`(max-width: ${D.screenMaxWidth}px)`});for(const w of i)u.push({width:D._cWidth*w,src:Mo(e,t,r,D,w)})}}yc(l)}else for(const k of i){const D=Object.keys(o)[0];let w=D?ko(D,String(o[D]),a,s,e):void 0;w===void 0&&(w={size:"",screenMaxWidth:0,_cWidth:(p=r.modifiers)==null?void 0:p.width,_cHeight:(_=r.modifiers)==null?void 0:_.height}),u.push({width:k,src:Mo(e,t,r,w,k)})}bc(u);const c=u[u.length-1],d=l.length?l.map(k=>`${k.media?k.media+" ":""}${k.size}`).join(", "):void 0,f=d?"w":"x",v=u.map(k=>`${k.src} ${k.width}${f}`).join(", ");return{sizes:d,srcset:v,src:c==null?void 0:c.src}}function ko(e,t,r,n,a){const o=a.options.screens&&a.options.screens[e]||Number.parseInt(e),i=t.endsWith("vw");if(!i&&/^\d+$/.test(t)&&(t=t+"px"),!i&&!t.endsWith("px"))return;let s=Number.parseInt(t);if(!o||!s)return;i&&(s=Math.round(s/100*o));const l=n?Math.round(s*n):r;return{size:t,screenMaxWidth:o,_cWidth:s,_cHeight:l}}function Mo(e,t,r,n,a){return e.$img(t,{...r.modifiers,width:n._cWidth?n._cWidth*a:void 0,height:n._cHeight?n._cHeight*a:void 0},r)}function yc(e){var r;e.sort((n,a)=>n.screenMaxWidth-a.screenMaxWidth);let t=null;for(let n=e.length-1;n>=0;n--){const a=e[n];a.media===t&&e.splice(n,1),t=a.media}for(let n=0;n<e.length;n++)e[n].media=((r=e[n+1])==null?void 0:r.media)||""}function bc(e){e.sort((r,n)=>r.width-n.width);let t=null;for(let r=e.length-1;r>=0;r--){const n=e[r];n.width===t&&e.splice(r,1),t=n.width}}const wc=(e,{modifiers:t,baseURL:r="/_vercel/image"}={},n)=>{const a=Object.values(n.options.screens||{}).sort((s,l)=>s-l),o=a[a.length-1]||0;let i=Number((t==null?void 0:t.width)||0);return i?a.includes(i)||(i=a.find(s=>s>i)||o):i=o,{url:r+"?"+gu({url:e,w:String(i),q:String((t==null?void 0:t.quality)||"100")})}},Dc=!0,$c=Object.freeze(Object.defineProperty({__proto__:null,getImage:wc,validateDomains:Dc},Symbol.toStringTag,{value:"Module"})),ls={screens:{xs:320,sm:640,md:768,lg:1024,xl:1280,xxl:1536,"2xl":1536},presets:{},provider:"vercel",domains:[],alias:{},densities:[1,2],format:["webp"]};ls.providers={vercel:{provider:$c,defaults:{}}};const us=()=>{const e=yu(),t=Nn();return t.$img||t._img||(t._img=vc({...ls,nuxt:{baseURL:e.app.baseURL},runtimeConfig:e}))};function _c(e){var t;(t=performance==null?void 0:performance.mark)==null||t.call(performance,"mark_feature_usage",{detail:{feature:e}})}const kc={src:{type:String,required:!1},format:{type:String,required:!1},quality:{type:[Number,String],required:!1},background:{type:String,required:!1},fit:{type:String,required:!1},modifiers:{type:Object,required:!1},preset:{type:String,required:!1},provider:{type:String,required:!1},sizes:{type:[Object,String],required:!1},densities:{type:String,required:!1},preload:{type:[Boolean,Object],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},alt:{type:String,required:!1},referrerpolicy:{type:String,required:!1},usemap:{type:String,required:!1},longdesc:{type:String,required:!1},ismap:{type:Boolean,required:!1},loading:{type:String,required:!1,validator:e=>["lazy","eager"].includes(e)},crossorigin:{type:[Boolean,String],required:!1,validator:e=>["anonymous","use-credentials","",!0,!1].includes(e)},decoding:{type:String,required:!1,validator:e=>["async","auto","sync"].includes(e)},nonce:{type:[String],required:!1}},Mc=e=>{const t=b(()=>({provider:e.provider,preset:e.preset})),r=b(()=>({width:Xe(e.width),height:Xe(e.height),alt:e.alt,referrerpolicy:e.referrerpolicy,usemap:e.usemap,longdesc:e.longdesc,ismap:e.ismap,crossorigin:e.crossorigin===!0?"anonymous":e.crossorigin||void 0,loading:e.loading,decoding:e.decoding,nonce:e.nonce})),n=us(),a=b(()=>({...e.modifiers,width:Xe(e.width),height:Xe(e.height),format:e.format,quality:e.quality||n.options.quality,background:e.background,fit:e.fit}));return{options:t,attrs:r,modifiers:a}},Pc={...kc,placeholder:{type:[Boolean,String,Number,Array],required:!1},placeholderClass:{type:String,required:!1}},Oc=["src"],Sc=te({__name:"NuxtImg",props:Pc,emits:["load","error"],setup(e,{emit:t}){const r=e,n=rs(),a=t,o=!1,i=us(),s=Mc(r),l=j(!1),u=j(),c=b(()=>i.getSizes(r.src,{...s.options.value,sizes:r.sizes,densities:r.densities,modifiers:{...s.modifiers.value,width:Xe(r.width),height:Xe(r.height)}})),d=b(()=>{const p={...s.attrs.value,"data-nuxt-img":""};return(!r.placeholder||l.value)&&(p.sizes=c.value.sizes,p.srcset=c.value.srcset),p}),f=b(()=>{let p=r.placeholder;if(p===""&&(p=!0),!p||l.value)return!1;if(typeof p=="string")return p;const _=Array.isArray(p)?p:typeof p=="number"?[p,p]:[10,10];return i(r.src,{...s.modifiers.value,width:_[0],height:_[1],quality:_[2]||50,blur:_[3]||3},s.options.value)}),v=b(()=>r.sizes?c.value.src:i(r.src,s.modifiers.value,s.options.value)),m=b(()=>f.value?f.value:v.value),g=Nn().isHydrating;return je(()=>{if(f.value){const p=new Image;v.value&&(p.src=v.value),r.sizes&&(p.sizes=c.value.sizes||"",p.srcset=c.value.srcset),p.onload=_=>{l.value=!0,a("load",_)},_c("nuxt-image");return}u.value&&(u.value.complete&&g&&(u.value.getAttribute("data-error")?a("error",new Event("error")):a("load",new Event("load"))),u.value.onload=p=>{a("load",p)},u.value.onerror=p=>{a("error",p)})}),(p,_)=>(x(),E("img",be({ref_key:"imgEl",ref:u,class:r.placeholder&&!l.value?r.placeholderClass:void 0},{...$(o)?{onerror:"this.setAttribute('data-error', 1)"}:{},...d.value,...$(n)},{src:m.value}),null,16,Oc))}}),xc=te({inheritAttrs:!1,props:{...Ya,as:{type:String,default:"button"},type:{type:String,default:"button"},disabled:{type:Boolean,default:null},active:{type:Boolean,default:void 0},exact:{type:Boolean,default:!1},exactQuery:{type:Boolean,default:!1},exactHash:{type:Boolean,default:!1},inactiveClass:{type:String,default:void 0}},setup(e){function t(r,n,{isActive:a,isExactActive:o}){return e.exactQuery&&!Xu(r.query,n.query)||e.exactHash&&r.hash!==n.hash?e.inactiveClass:e.exact&&o||!e.exact&&a?e.activeClass:e.inactiveClass}return{resolveLinkClass:t}}}),Tc=["href","aria-disabled","role","rel","target","tabindex","onClick"];function Cc(e,t,r,n,a,o){const i=Eu;return e.to?(x(),oe(i,be({key:1},e.$props,{custom:""}),{default:G(({route:s,href:l,target:u,rel:c,navigate:d,isActive:f,isExactActive:v,isExternal:m})=>[A("a",be(e.$attrs,{href:e.disabled?void 0:l,"aria-disabled":e.disabled?"true":void 0,role:e.disabled?"link":void 0,rel:c,target:u,class:e.active!==void 0?e.active?e.activeClass:e.inactiveClass:e.resolveLinkClass(s,e._.provides[bu]||e.$route,{isActive:f,isExactActive:v}),tabindex:e.disabled?-1:void 0,onClick:y=>!m&&!e.disabled&&d(y)}),[ke(e.$slots,"default",Ct(vr({isActive:e.active!==void 0?e.active:e.exact?v:f})))],16,Tc)]),_:3},16)):(x(),oe(Fn(e.as),be({key:0,type:e.type,disabled:e.disabled},e.$attrs,{class:e.active?e.activeClass:e.inactiveClass}),{default:G(()=>[ke(e.$slots,"default",Ct(vr({isActive:e.active})))]),_:3},16,["type","disabled","class"]))}const cs=Zr(xc,[["render",Cc]]),Ia=(e,t,r,n,a=!1)=>{const o=rs(),i=wu(),s=b(()=>{var f;const u=Ze(t),c=Ze(r),d=Ze(n);return Wn((u==null?void 0:u.strategy)||((f=i.ui)==null?void 0:f.strategy),d?{wrapper:d}:{},u||{},a?Du(i.ui,e,{}):{},c||{})}),l=b(()=>$u(o,["class"]));return{ui:s,attrs:l}};function Yc({ui:e,props:t}){const r=ts();if(He("ButtonGroupContextConsumer",!0),Ye("ButtonGroupContextConsumer",!1))return{size:b(()=>t.size),rounded:b(()=>e.value.rounded)};let a=r.parent,o;for(;a&&!o;){if(a.type.name==="ButtonGroup"){o=Ye(`group-${a.uid}`);break}a=a.parent}const i=b(()=>o==null?void 0:o.value.children.indexOf(r));return je(()=>{o==null||o.value.register(r)}),Xt(()=>{o==null||o.value.unregister(r)}),{size:b(()=>o!=null&&o.value?(o==null?void 0:o.value.size)??e.value.default.size:t.size),rounded:b(()=>!o||i.value===-1?e.value.rounded:o.value.children.length===1?o.value.ui.rounded:i.value===0?o.value.rounded.start:i.value===o.value.children.length-1?o.value.rounded.end:"rounded-none")}}const Ec={base:"focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 flex-shrink-0",font:"font-medium",rounded:"rounded-md",truncate:"text-left break-all line-clamp-1",block:"w-full flex justify-center items-center",inline:"inline-flex items-center",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},square:{"2xs":"p-1",xs:"p-1.5",sm:"p-1.5",md:"p-2",lg:"p-2.5",xl:"p-2.5"},color:{white:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white aria-disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 dark:aria-disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},gray:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 aria-disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 dark:aria-disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},black:{solid:"shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 aria-disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white dark:aria-disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}},variant:{solid:"shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 aria-disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 dark:aria-disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",outline:"ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent aria-disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",soft:"text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 aria-disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 dark:aria-disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",ghost:"text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent aria-disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",link:"text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 aria-disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 dark:aria-disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},icon:{base:"flex-shrink-0",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"}},default:{size:"sm",variant:"solid",color:"primary",loadingIcon:"i-heroicons-arrow-path-20-solid"}},Xr={base:"invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",rounded:"before:rounded-sm",background:"before:bg-gray-200 dark:before:bg-gray-800",shadow:"before:shadow",placement:"group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1"};({...Xr});const Po={container:"z-20 group",trigger:"flex items-center w-full",width:"w-full",height:"max-h-60",base:"relative focus:outline-none overflow-y-auto scroll-py-1",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",padding:"p-1",ring:"ring-1 ring-gray-200 dark:ring-gray-700",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",option:{base:"cursor-default select-none relative flex items-center justify-between gap-1",rounded:"rounded-md",padding:"px-1.5 py-1.5",size:"text-sm",color:"text-gray-900 dark:text-white",container:"flex items-center gap-1.5 min-w-0",active:"bg-gray-100 dark:bg-gray-900",inactive:"",selected:"pe-7",disabled:"cursor-not-allowed opacity-50",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",icon:{base:"flex-shrink-0 h-5 w-5",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{wrapper:"absolute inset-y-0 end-0 flex items-center",padding:"pe-2",base:"h-5 w-5 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"2xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"}},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"},arrow:{...Xr,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}};({...Po,option:{...Po.option},arrow:{...Xr}});const Ic={base:"",background:"bg-white dark:bg-gray-900",divide:"divide-y divide-gray-200 dark:divide-gray-800",ring:"ring-1 ring-gray-200 dark:ring-gray-800",rounded:"rounded-lg",shadow:"shadow",body:{base:"",background:"",padding:"px-4 py-5 sm:p-6"},header:{base:"",background:"",padding:"px-4 py-5 sm:px-6"},footer:{base:"",background:"",padding:"px-4 py-4 sm:px-6"}};({...Xr});const Ac={wrapper:"relative",container:"z-50 group",trigger:"inline-flex w-full",width:"",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-md",ring:"ring-1 ring-gray-200 dark:ring-gray-800",base:"overflow-hidden focus:outline-none relative",transition:{enterActiveClass:"transition ease-out duration-200",enterFromClass:"opacity-0 translate-y-1",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"transition ease-in duration-150",leaveFromClass:"opacity-100 translate-y-0",leaveToClass:"opacity-0 translate-y-1"},overlay:{base:"fixed inset-0 transition-opacity z-50",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enterActiveClass:"ease-out duration-200",enterFromClass:"opacity-0",enterToClass:"opacity-100",leaveActiveClass:"ease-in duration-150",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"}},popper:{strategy:"fixed"},default:{openDelay:0,closeDelay:0},arrow:Xr},lt=Wn(Vt.ui.strategy,Vt.ui.button,Ec),Nc=te({components:{UIcon:Ea,ULink:cs},inheritAttrs:!1,props:{...Ya,type:{type:String,default:"button"},block:{type:Boolean,default:!1},label:{type:String,default:null},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:()=>lt.default.size,validator(e){return Object.keys(lt.size).includes(e)}},color:{type:String,default:()=>lt.default.color,validator(e){return[...Vt.ui.colors,...Object.keys(lt.color)].includes(e)}},variant:{type:String,default:()=>lt.default.variant,validator(e){return[...Object.keys(lt.variant),...Object.values(lt.color).flatMap(t=>Object.keys(t))].includes(e)}},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>lt.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},square:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e,{slots:t}){const{ui:r,attrs:n}=Ia("button",ft(e,"ui"),lt),{size:a,rounded:o}=Yc({ui:r,props:e}),i=b(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),s=b(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),l=b(()=>e.square||!t.default&&!e.label),u=b(()=>{var g,p;const y=((p=(g=r.value.color)==null?void 0:g[e.color])==null?void 0:p[e.variant])||r.value.variant[e.variant];return ns(vn(r.value.base,r.value.font,o.value,r.value.size[a.value],r.value.gap[a.value],e.padded&&r.value[l.value?"square":"padding"][a.value],y==null?void 0:y.replaceAll("{color}",e.color),e.block?r.value.block:r.value.inline),e.class)}),c=b(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),d=b(()=>e.loading&&!i.value?e.loadingIcon:e.trailingIcon||e.icon),f=b(()=>vn(r.value.icon.base,r.value.icon.size[a.value],e.loading&&r.value.icon.loading)),v=b(()=>vn(r.value.icon.base,r.value.icon.size[a.value],e.loading&&!i.value&&r.value.icon.loading)),m=b(()=>oc(e));return{ui:r,attrs:n,isLeading:i,isTrailing:s,isSquare:l,buttonClass:u,leadingIconName:c,trailingIconName:d,leadingIconClass:f,trailingIconClass:v,linkProps:m}}});function Lc(e,t,r,n,a,o){const i=Ea,s=cs;return x(),oe(s,be({type:e.type,disabled:e.disabled||e.loading,class:e.buttonClass},{...e.linkProps,...e.attrs}),{default:G(()=>[ke(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[e.isLeading&&e.leadingIconName?(x(),oe(i,{key:0,name:e.leadingIconName,class:Z(e.leadingIconClass),"aria-hidden":"true"},null,8,["name","class"])):X("",!0)]),ke(e.$slots,"default",{},()=>[e.label?(x(),E("span",{key:0,class:Z([e.truncate?e.ui.truncate:""])},pe(e.label),3)):X("",!0)]),ke(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[e.isTrailing&&e.trailingIconName?(x(),oe(i,{key:0,name:e.trailingIconName,class:Z(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])):X("",!0)])]),_:3},16,["type","disabled","class"])}const Fc=Zr(Nc,[["render",Lc]]),Wc=Symbol.for("nuxt:client-only"),Rc=te({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:r}){const n=j(!1);return je(()=>{n.value=!0}),He(Wc,!0),a=>{var l;if(n.value)return(l=t.default)==null?void 0:l.call(t);const o=t.fallback||t.placeholder;if(o)return o();const i=a.fallback||a.placeholder||"",s=a.fallbackTag||a.placeholderTag||"span";return E(s,r,i)}}});var Se="top",Re="bottom",Be="right",xe="left",Aa="auto",Qr=[Se,Re,Be,xe],hr="start",Hr="end",Bc="clippingParents",ds="viewport",Cr="popper",jc="reference",Oo=Qr.reduce(function(e,t){return e.concat([t+"-"+hr,t+"-"+Hr])},[]),fs=[].concat(Qr,[Aa]).reduce(function(e,t){return e.concat([t,t+"-"+hr,t+"-"+Hr])},[]),Hc="beforeRead",Uc="read",zc="afterRead",qc="beforeMain",Vc="main",Gc="afterMain",Kc="beforeWrite",Zc="write",Xc="afterWrite",Qc=[Hc,Uc,zc,qc,Vc,Gc,Kc,Zc,Xc];function rt(e){return e?(e.nodeName||"").toLowerCase():null}function Ee(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gt(e){var t=Ee(e).Element;return e instanceof t||e instanceof Element}function Fe(e){var t=Ee(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Na(e){if(typeof ShadowRoot>"u")return!1;var t=Ee(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Jc(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Fe(o)||!rt(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function ed(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(l,u){return l[u]="",l},{});!Fe(a)||!rt(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const vs={name:"applyStyles",enabled:!0,phase:"write",fn:Jc,effect:ed,requires:["computeStyles"]};function tt(e){return e.split("-")[0]}var qt=Math.max,wn=Math.min,pr=Math.round;function pa(){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 hs(){return!/^((?!chrome|android).)*safari/i.test(pa())}function mr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Fe(e)&&(a=e.offsetWidth>0&&pr(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&pr(n.height)/e.offsetHeight||1);var i=Gt(e)?Ee(e):window,s=i.visualViewport,l=!hs()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/a,c=(n.top+(l&&s?s.offsetTop:0))/o,d=n.width/a,f=n.height/o;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function La(e){var t=mr(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ps(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Na(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function vt(e){return Ee(e).getComputedStyle(e)}function td(e){return["table","td","th"].indexOf(rt(e))>=0}function It(e){return((Gt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rn(e){return rt(e)==="html"?e:e.assignedSlot||e.parentNode||(Na(e)?e.host:null)||It(e)}function So(e){return!Fe(e)||vt(e).position==="fixed"?null:e.offsetParent}function rd(e){var t=/firefox/i.test(pa()),r=/Trident/i.test(pa());if(r&&Fe(e)){var n=vt(e);if(n.position==="fixed")return null}var a=Rn(e);for(Na(a)&&(a=a.host);Fe(a)&&["html","body"].indexOf(rt(a))<0;){var o=vt(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Jr(e){for(var t=Ee(e),r=So(e);r&&td(r)&&vt(r).position==="static";)r=So(r);return r&&(rt(r)==="html"||rt(r)==="body"&&vt(r).position==="static")?t:r||rd(e)||t}function Fa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rr(e,t,r){return qt(e,wn(t,r))}function nd(e,t,r){var n=Rr(e,t,r);return n>r?r:n}function ms(){return{top:0,right:0,bottom:0,left:0}}function gs(e){return Object.assign({},ms(),e)}function ys(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var ad=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,gs(typeof t!="number"?t:ys(t,Qr))};function od(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=tt(r.placement),l=Fa(s),u=[xe,Be].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!i)){var d=ad(a.padding,r),f=La(o),v=l==="y"?Se:xe,m=l==="y"?Re:Be,y=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],g=i[l]-r.rects.reference[l],p=Jr(o),_=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,k=y/2-g/2,D=d[v],w=_-f[c]-d[m],O=_/2-f[c]/2+k,M=Rr(D,O,w),C=l;r.modifiersData[n]=(t={},t[C]=M,t.centerOffset=M-O,t)}}function id(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||ps(t.elements.popper,a)&&(t.elements.arrow=a))}const bs={name:"arrow",enabled:!0,phase:"main",fn:od,effect:id,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gr(e){return e.split("-")[1]}var sd={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ld(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:pr(r*a)/a||0,y:pr(n*a)/a||0}}function xo(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=i.x,v=f===void 0?0:f,m=i.y,y=m===void 0?0:m,g=typeof c=="function"?c({x:v,y}):{x:v,y};v=g.x,y=g.y;var p=i.hasOwnProperty("x"),_=i.hasOwnProperty("y"),k=xe,D=Se,w=window;if(u){var O=Jr(r),M="clientHeight",C="clientWidth";if(O===Ee(r)&&(O=It(r),vt(O).position!=="static"&&s==="absolute"&&(M="scrollHeight",C="scrollWidth")),O=O,a===Se||(a===xe||a===Be)&&o===Hr){D=Re;var F=d&&O===w&&w.visualViewport?w.visualViewport.height:O[M];y-=F-n.height,y*=l?1:-1}if(a===xe||(a===Se||a===Re)&&o===Hr){k=Be;var W=d&&O===w&&w.visualViewport?w.visualViewport.width:O[C];v-=W-n.width,v*=l?1:-1}}var z=Object.assign({position:s},u&&sd),N=c===!0?ld({x:v,y},Ee(r)):{x:v,y};if(v=N.x,y=N.y,l){var R;return Object.assign({},z,(R={},R[D]=_?"0":"",R[k]=p?"0":"",R.transform=(w.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",R))}return Object.assign({},z,(t={},t[D]=_?y+"px":"",t[k]=p?v+"px":"",t.transform="",t))}function ud(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:tt(t.placement),variation:gr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xo(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xo(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wa={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ud,data:{}};var ln={passive:!0};function cd(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,l=Ee(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",r.update,ln)}),s&&l.addEventListener("resize",r.update,ln),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",r.update,ln)}),s&&l.removeEventListener("resize",r.update,ln)}}const Ra={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cd,data:{}};var dd={left:"right",right:"left",bottom:"top",top:"bottom"};function hn(e){return e.replace(/left|right|bottom|top/g,function(t){return dd[t]})}var fd={start:"end",end:"start"};function To(e){return e.replace(/start|end/g,function(t){return fd[t]})}function Ba(e){var t=Ee(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ja(e){return mr(It(e)).left+Ba(e).scrollLeft}function vd(e,t){var r=Ee(e),n=It(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;var u=hs();(u||!u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s+ja(e),y:l}}function hd(e){var t,r=It(e),n=Ba(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=qt(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=qt(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+ja(e),l=-n.scrollTop;return vt(a||r).direction==="rtl"&&(s+=qt(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}function Ha(e){var t=vt(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function ws(e){return["html","body","#document"].indexOf(rt(e))>=0?e.ownerDocument.body:Fe(e)&&Ha(e)?e:ws(Rn(e))}function Br(e,t){var r;t===void 0&&(t=[]);var n=ws(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Ee(n),i=a?[o].concat(o.visualViewport||[],Ha(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(Br(Rn(i)))}function ma(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pd(e,t){var r=mr(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Co(e,t,r){return t===ds?ma(vd(e,r)):Gt(t)?pd(t,r):ma(hd(It(e)))}function md(e){var t=Br(Rn(e)),r=["absolute","fixed"].indexOf(vt(e).position)>=0,n=r&&Fe(e)?Jr(e):e;return Gt(n)?t.filter(function(a){return Gt(a)&&ps(a,n)&&rt(a)!=="body"}):[]}function gd(e,t,r,n){var a=t==="clippingParents"?md(e):[].concat(t),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(l,u){var c=Co(e,u,n);return l.top=qt(c.top,l.top),l.right=wn(c.right,l.right),l.bottom=wn(c.bottom,l.bottom),l.left=qt(c.left,l.left),l},Co(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ds(e){var t=e.reference,r=e.element,n=e.placement,a=n?tt(n):null,o=n?gr(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(a){case Se:l={x:i,y:t.y-r.height};break;case Re:l={x:i,y:t.y+t.height};break;case Be:l={x:t.x+t.width,y:s};break;case xe:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?Fa(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case hr:l[u]=l[u]-(t[c]/2-r[c]/2);break;case Hr:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function Ur(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,s=r.boundary,l=s===void 0?Bc:s,u=r.rootBoundary,c=u===void 0?ds:u,d=r.elementContext,f=d===void 0?Cr:d,v=r.altBoundary,m=v===void 0?!1:v,y=r.padding,g=y===void 0?0:y,p=gs(typeof g!="number"?g:ys(g,Qr)),_=f===Cr?jc:Cr,k=e.rects.popper,D=e.elements[m?_:f],w=gd(Gt(D)?D:D.contextElement||It(e.elements.popper),l,c,i),O=mr(e.elements.reference),M=Ds({reference:O,element:k,strategy:"absolute",placement:a}),C=ma(Object.assign({},k,M)),F=f===Cr?C:O,W={top:w.top-F.top+p.top,bottom:F.bottom-w.bottom+p.bottom,left:w.left-F.left+p.left,right:F.right-w.right+p.right},z=e.modifiersData.offset;if(f===Cr&&z){var N=z[a];Object.keys(W).forEach(function(R){var Q=[Be,Re].indexOf(R)>=0?1:-1,I=[Se,Re].indexOf(R)>=0?"y":"x";W[R]+=N[I]*Q})}return W}function yd(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?fs:l,c=gr(n),d=c?s?Oo:Oo.filter(function(m){return gr(m)===c}):Qr,f=d.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=d);var v=f.reduce(function(m,y){return m[y]=Ur(e,{placement:y,boundary:a,rootBoundary:o,padding:i})[tt(y)],m},{});return Object.keys(v).sort(function(m,y){return v[m]-v[y]})}function bd(e){if(tt(e)===Aa)return[];var t=hn(e);return[To(e),t,To(t)]}function wd(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,v=r.flipVariations,m=v===void 0?!0:v,y=r.allowedAutoPlacements,g=t.options.placement,p=tt(g),_=p===g,k=l||(_||!m?[hn(g)]:bd(g)),D=[g].concat(k).reduce(function(ee,de){return ee.concat(tt(de)===Aa?yd(t,{placement:de,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:y}):de)},[]),w=t.rects.reference,O=t.rects.popper,M=new Map,C=!0,F=D[0],W=0;W<D.length;W++){var z=D[W],N=tt(z),R=gr(z)===hr,Q=[Se,Re].indexOf(N)>=0,I=Q?"width":"height",V=Ur(t,{placement:z,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),J=Q?R?Be:xe:R?Re:Se;w[I]>O[I]&&(J=hn(J));var he=hn(J),se=[];if(o&&se.push(V[N]<=0),s&&se.push(V[J]<=0,V[he]<=0),se.every(function(ee){return ee})){F=z,C=!1;break}M.set(z,se)}if(C)for(var T=m?3:1,K=function(de){var me=D.find(function(fe){var ge=M.get(fe);if(ge)return ge.slice(0,de).every(function(Te){return Te})});if(me)return F=me,"break"},B=T;B>0;B--){var ce=K(B);if(ce==="break")break}t.placement!==F&&(t.modifiersData[n]._skip=!0,t.placement=F,t.reset=!0)}}const $s={name:"flip",enabled:!0,phase:"main",fn:wd,requiresIfExists:["offset"],data:{_skip:!1}};function Yo(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Eo(e){return[Se,Be,Re,xe].some(function(t){return e[t]>=0})}function Dd(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=Ur(t,{elementContext:"reference"}),s=Ur(t,{altBoundary:!0}),l=Yo(i,n),u=Yo(s,a,o),c=Eo(l),d=Eo(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const $d={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Dd};function _d(e,t,r){var n=tt(e),a=[xe,Se].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[xe,Be].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function kd(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=fs.reduce(function(c,d){return c[d]=_d(d,t.rects,o),c},{}),s=i[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=i}const _s={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kd};function Md(e){var t=e.state,r=e.name;t.modifiersData[r]=Ds({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ks={name:"popperOffsets",enabled:!0,phase:"read",fn:Md,data:{}};function Pd(e){return e==="x"?"y":"x"}function Od(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,v=f===void 0?!0:f,m=r.tetherOffset,y=m===void 0?0:m,g=Ur(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),p=tt(t.placement),_=gr(t.placement),k=!_,D=Fa(p),w=Pd(D),O=t.modifiersData.popperOffsets,M=t.rects.reference,C=t.rects.popper,F=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,W=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(O){if(o){var R,Q=D==="y"?Se:xe,I=D==="y"?Re:Be,V=D==="y"?"height":"width",J=O[D],he=J+g[Q],se=J-g[I],T=v?-C[V]/2:0,K=_===hr?M[V]:C[V],B=_===hr?-C[V]:-M[V],ce=t.elements.arrow,ee=v&&ce?La(ce):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ms(),me=de[Q],fe=de[I],ge=Rr(0,M[V],ee[V]),Te=k?M[V]/2-T-ge-me-W.mainAxis:K-ge-me-W.mainAxis,st=k?-M[V]/2+T+ge+fe+W.mainAxis:B+ge+fe+W.mainAxis,Ue=t.elements.arrow&&Jr(t.elements.arrow),Ie=Ue?D==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,Ae=(R=z==null?void 0:z[D])!=null?R:0,bt=J+Te-Ae-Ie,tr=J+st-Ae,Ke=Rr(v?wn(he,bt):he,J,v?qt(se,tr):se);O[D]=Ke,N[D]=Ke-J}if(s){var Nt,Lt=D==="x"?Se:xe,Ft=D==="x"?Re:Be,ze=O[w],wt=w==="y"?"height":"width",Dt=ze+g[Lt],$t=ze-g[Ft],_t=[Se,xe].indexOf(p)!==-1,kt=(Nt=z==null?void 0:z[w])!=null?Nt:0,Mt=_t?Dt:ze-M[wt]-C[wt]-kt+W.altAxis,Wt=_t?ze+M[wt]+C[wt]-kt-W.altAxis:$t,rr=v&&_t?nd(Mt,ze,Wt):Rr(v?Mt:Dt,ze,v?Wt:$t);O[w]=rr,N[w]=rr-ze}t.modifiersData[n]=N}}const Ms={name:"preventOverflow",enabled:!0,phase:"main",fn:Od,requiresIfExists:["offset"]};function Sd(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xd(e){return e===Ee(e)||!Fe(e)?Ba(e):Sd(e)}function Td(e){var t=e.getBoundingClientRect(),r=pr(t.width)/e.offsetWidth||1,n=pr(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Cd(e,t,r){r===void 0&&(r=!1);var n=Fe(t),a=Fe(t)&&Td(t),o=It(t),i=mr(e,a,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((rt(t)!=="body"||Ha(o))&&(s=xd(t)),Fe(t)?(l=mr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=ja(o))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Yd(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&a(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Ed(e){var t=Yd(e);return Qc.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Id(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Ad(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Io={placement:"bottom",modifiers:[],strategy:"absolute"};function Ao(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Ps(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?Io:a;return function(s,l,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Io,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,v={state:c,setOptions:function(p){var _=typeof p=="function"?p(c.options):p;y(),c.options=Object.assign({},o,c.options,_),c.scrollParents={reference:Gt(s)?Br(s):s.contextElement?Br(s.contextElement):[],popper:Br(l)};var k=Ed(Ad([].concat(n,c.options.modifiers)));return c.orderedModifiers=k.filter(function(D){return D.enabled}),m(),v.update()},forceUpdate:function(){if(!f){var p=c.elements,_=p.reference,k=p.popper;if(Ao(_,k)){c.rects={reference:Cd(_,Jr(k),c.options.strategy==="fixed"),popper:La(k)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(W){return c.modifiersData[W.name]=Object.assign({},W.data)});for(var D=0;D<c.orderedModifiers.length;D++){if(c.reset===!0){c.reset=!1,D=-1;continue}var w=c.orderedModifiers[D],O=w.fn,M=w.options,C=M===void 0?{}:M,F=w.name;typeof O=="function"&&(c=O({state:c,options:C,name:F,instance:v})||c)}}}},update:Id(function(){return new Promise(function(g){v.forceUpdate(),g(c)})}),destroy:function(){y(),f=!0}};if(!Ao(s,l))return v;v.setOptions(u).then(function(g){!f&&u.onFirstUpdate&&u.onFirstUpdate(g)});function m(){c.orderedModifiers.forEach(function(g){var p=g.name,_=g.options,k=_===void 0?{}:_,D=g.effect;if(typeof D=="function"){var w=D({state:c,name:p,instance:v,options:k}),O=function(){};d.push(w||O)}})}function y(){d.forEach(function(g){return g()}),d=[]}return v}}var Nd=[Ra,ks,Wa,vs],Ld=[Ra,ks,Wa,vs,_s,$s,Ms,bs,$d],Fd=Ps({defaultModifiers:Ld}),Wd=Object.defineProperty,Rd=(e,t,r)=>t in e?Wd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t,r)=>(Rd(e,typeof t!="symbol"?t+"":t,r),r),un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bd=Object.prototype,jd=Bd.hasOwnProperty;function Hd(e,t){return e!=null&&jd.call(e,t)}var Ud=Hd,zd=Array.isArray,Ve=zd,qd=typeof un=="object"&&un&&un.Object===Object&&un,Ss=qd,Vd=Ss,Gd=typeof self=="object"&&self&&self.Object===Object&&self,Kd=Vd||Gd||Function("return this")(),at=Kd,Zd=at,Xd=Zd.Symbol,Bn=Xd,No=Bn,xs=Object.prototype,Qd=xs.hasOwnProperty,Jd=xs.toString,Yr=No?No.toStringTag:void 0;function ef(e){var t=Qd.call(e,Yr),r=e[Yr];try{e[Yr]=void 0;var n=!0}catch{}var a=Jd.call(e);return n&&(t?e[Yr]=r:delete e[Yr]),a}var tf=ef,rf=Object.prototype,nf=rf.toString;function af(e){return nf.call(e)}var of=af,Lo=Bn,sf=tf,lf=of,uf="[object Null]",cf="[object Undefined]",Fo=Lo?Lo.toStringTag:void 0;function df(e){return e==null?e===void 0?cf:uf:Fo&&Fo in Object(e)?sf(e):lf(e)}var ot=df;function ff(e){return e!=null&&typeof e=="object"}var Ge=ff,vf=ot,hf=Ge,pf="[object Symbol]";function mf(e){return typeof e=="symbol"||hf(e)&&vf(e)==pf}var Ua=mf,gf=Ve,yf=Ua,bf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wf=/^\w*$/;function Df(e,t){if(gf(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yf(e)?!0:wf.test(e)||!bf.test(e)||t!=null&&e in Object(t)}var za=Df;function $f(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gt=$f,_f=ot,kf=gt,Mf="[object AsyncFunction]",Pf="[object Function]",Of="[object GeneratorFunction]",Sf="[object Proxy]";function xf(e){if(!kf(e))return!1;var t=_f(e);return t==Pf||t==Of||t==Mf||t==Sf}var Qt=xf,Tf=at,Cf=Tf["__core-js_shared__"],Yf=Cf,na=Yf,Wo=function(){var e=/[^.]+$/.exec(na&&na.keys&&na.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ef(e){return!!Wo&&Wo in e}var If=Ef,Af=Function.prototype,Nf=Af.toString;function Lf(e){if(e!=null){try{return Nf.call(e)}catch{}try{return e+""}catch{}}return""}var Ts=Lf,Ff=Qt,Wf=If,Rf=gt,Bf=Ts,jf=/[\\^$.*+?()[\]{}|]/g,Hf=/^\[object .+?Constructor\]$/,Uf=Function.prototype,zf=Object.prototype,qf=Uf.toString,Vf=zf.hasOwnProperty,Gf=RegExp("^"+qf.call(Vf).replace(jf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Kf(e){if(!Rf(e)||Wf(e))return!1;var t=Ff(e)?Gf:Hf;return t.test(Bf(e))}var Zf=Kf;function Xf(e,t){return e==null?void 0:e[t]}var Qf=Xf,Jf=Zf,ev=Qf;function tv(e,t){var r=ev(e,t);return Jf(r)?r:void 0}var Jt=tv,rv=Jt,nv=rv(Object,"create"),jn=nv,Ro=jn;function av(){this.__data__=Ro?Ro(null):{},this.size=0}var ov=av;function iv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sv=iv,lv=jn,uv="__lodash_hash_undefined__",cv=Object.prototype,dv=cv.hasOwnProperty;function fv(e){var t=this.__data__;if(lv){var r=t[e];return r===uv?void 0:r}return dv.call(t,e)?t[e]:void 0}var vv=fv,hv=jn,pv=Object.prototype,mv=pv.hasOwnProperty;function gv(e){var t=this.__data__;return hv?t[e]!==void 0:mv.call(t,e)}var yv=gv,bv=jn,wv="__lodash_hash_undefined__";function Dv(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=bv&&t===void 0?wv:t,this}var $v=Dv,_v=ov,kv=sv,Mv=vv,Pv=yv,Ov=$v;function wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wr.prototype.clear=_v;wr.prototype.delete=kv;wr.prototype.get=Mv;wr.prototype.has=Pv;wr.prototype.set=Ov;var Sv=wr;function xv(){this.__data__=[],this.size=0}var Tv=xv;function Cv(e,t){return e===t||e!==e&&t!==t}var Dr=Cv,Yv=Dr;function Ev(e,t){for(var r=e.length;r--;)if(Yv(e[r][0],t))return r;return-1}var Hn=Ev,Iv=Hn,Av=Array.prototype,Nv=Av.splice;function Lv(e){var t=this.__data__,r=Iv(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Nv.call(t,r,1),--this.size,!0}var Fv=Lv,Wv=Hn;function Rv(e){var t=this.__data__,r=Wv(t,e);return r<0?void 0:t[r][1]}var Bv=Rv,jv=Hn;function Hv(e){return jv(this.__data__,e)>-1}var Uv=Hv,zv=Hn;function qv(e,t){var r=this.__data__,n=zv(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Vv=qv,Gv=Tv,Kv=Fv,Zv=Bv,Xv=Uv,Qv=Vv;function $r(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$r.prototype.clear=Gv;$r.prototype.delete=Kv;$r.prototype.get=Zv;$r.prototype.has=Xv;$r.prototype.set=Qv;var Un=$r,Jv=Jt,eh=at,th=Jv(eh,"Map"),qa=th,Bo=Sv,rh=Un,nh=qa;function ah(){this.size=0,this.__data__={hash:new Bo,map:new(nh||rh),string:new Bo}}var oh=ah;function ih(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var sh=ih,lh=sh;function uh(e,t){var r=e.__data__;return lh(t)?r[typeof t=="string"?"string":"hash"]:r.map}var zn=uh,ch=zn;function dh(e){var t=ch(this,e).delete(e);return this.size-=t?1:0,t}var fh=dh,vh=zn;function hh(e){return vh(this,e).get(e)}var ph=hh,mh=zn;function gh(e){return mh(this,e).has(e)}var yh=gh,bh=zn;function wh(e,t){var r=bh(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Dh=wh,$h=oh,_h=fh,kh=ph,Mh=yh,Ph=Dh;function _r(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_r.prototype.clear=$h;_r.prototype.delete=_h;_r.prototype.get=kh;_r.prototype.has=Mh;_r.prototype.set=Ph;var Va=_r,Cs=Va,Oh="Expected a function";function Ga(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Oh);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(Ga.Cache||Cs),r}Ga.Cache=Cs;var Sh=Ga,xh=Sh,Th=500;function Ch(e){var t=xh(e,function(n){return r.size===Th&&r.clear(),n}),r=t.cache;return t}var Yh=Ch,Eh=Yh,Ih=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ah=/\\(\\)?/g,Nh=Eh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ih,function(r,n,a,o){t.push(a?o.replace(Ah,"$1"):n||r)}),t}),Lh=Nh;function Fh(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var Wh=Fh,jo=Bn,Rh=Wh,Bh=Ve,jh=Ua,Hh=1/0,Ho=jo?jo.prototype:void 0,Uo=Ho?Ho.toString:void 0;function Ys(e){if(typeof e=="string")return e;if(Bh(e))return Rh(e,Ys)+"";if(jh(e))return Uo?Uo.call(e):"";var t=e+"";return t=="0"&&1/e==-Hh?"-0":t}var Uh=Ys,zh=Uh;function qh(e){return e==null?"":zh(e)}var Vh=qh,Gh=Ve,Kh=za,Zh=Lh,Xh=Vh;function Qh(e,t){return Gh(e)?e:Kh(e,t)?[e]:Zh(Xh(e))}var Es=Qh,Jh=ot,ep=Ge,tp="[object Arguments]";function rp(e){return ep(e)&&Jh(e)==tp}var np=rp,zo=np,ap=Ge,Is=Object.prototype,op=Is.hasOwnProperty,ip=Is.propertyIsEnumerable,sp=zo(function(){return arguments}())?zo:function(e){return ap(e)&&op.call(e,"callee")&&!ip.call(e,"callee")},Ka=sp,lp=9007199254740991,up=/^(?:0|[1-9]\d*)$/;function cp(e,t){var r=typeof e;return t=t??lp,!!t&&(r=="number"||r!="symbol"&&up.test(e))&&e>-1&&e%1==0&&e<t}var Za=cp,dp=9007199254740991;function fp(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dp}var Xa=fp,vp=Ua,hp=1/0;function pp(e){if(typeof e=="string"||vp(e))return e;var t=e+"";return t=="0"&&1/e==-hp?"-0":t}var qn=pp,mp=Es,gp=Ka,yp=Ve,bp=Za,wp=Xa,Dp=qn;function $p(e,t,r){t=mp(t,e);for(var n=-1,a=t.length,o=!1;++n<a;){var i=Dp(t[n]);if(!(o=e!=null&&r(e,i)))break;e=e[i]}return o||++n!=a?o:(a=e==null?0:e.length,!!a&&wp(a)&&bp(i,a)&&(yp(e)||gp(e)))}var As=$p,_p=Ud,kp=As;function Mp(e,t){return e!=null&&kp(e,t,_p)}var Ns=Mp,Pp=ot,Op=Ge,Sp="[object Date]";function xp(e){return Op(e)&&Pp(e)==Sp}var Tp=xp;function Cp(e){return function(t){return e(t)}}var Ls=Cp,zr={},Yp={get exports(){return zr},set exports(e){zr=e}};(function(e,t){var r=Ss,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Yp,zr);var Ep=Tp,Ip=Ls,qo=zr,Vo=qo&&qo.isDate,Ap=Vo?Ip(Vo):Ep,Np=Ap,Lp=ot,Fp=Ve,Wp=Ge,Rp="[object String]";function Bp(e){return typeof e=="string"||!Fp(e)&&Wp(e)&&Lp(e)==Rp}var Qe=Bp;function jp(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Fs=jp,Hp=Un;function Up(){this.__data__=new Hp,this.size=0}var zp=Up;function qp(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Vp=qp;function Gp(e){return this.__data__.get(e)}var Kp=Gp;function Zp(e){return this.__data__.has(e)}var Xp=Zp,Qp=Un,Jp=qa,em=Va,tm=200;function rm(e,t){var r=this.__data__;if(r instanceof Qp){var n=r.__data__;if(!Jp||n.length<tm-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new em(n)}return r.set(e,t),this.size=r.size,this}var nm=rm,am=Un,om=zp,im=Vp,sm=Kp,lm=Xp,um=nm;function kr(e){var t=this.__data__=new am(e);this.size=t.size}kr.prototype.clear=om;kr.prototype.delete=im;kr.prototype.get=sm;kr.prototype.has=lm;kr.prototype.set=um;var Qa=kr,cm="__lodash_hash_undefined__";function dm(e){return this.__data__.set(e,cm),this}var fm=dm;function vm(e){return this.__data__.has(e)}var hm=vm,pm=Va,mm=fm,gm=hm;function Dn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new pm;++t<r;)this.add(e[t])}Dn.prototype.add=Dn.prototype.push=mm;Dn.prototype.has=gm;var ym=Dn;function bm(e,t){return e.has(t)}var wm=bm,Dm=ym,$m=Fs,_m=wm,km=1,Mm=2;function Pm(e,t,r,n,a,o){var i=r&km,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,v=r&Mm?new Dm:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var m=e[d],y=t[d];if(n)var g=i?n(y,m,d,t,e,o):n(m,y,d,e,t,o);if(g!==void 0){if(g)continue;f=!1;break}if(v){if(!$m(t,function(p,_){if(!_m(v,_)&&(m===p||a(m,p,r,n,o)))return v.push(_)})){f=!1;break}}else if(!(m===y||a(m,y,r,n,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var Ws=Pm,Om=at,Sm=Om.Uint8Array,Rs=Sm;function xm(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var Tm=xm;function Cm(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Ym=Cm,Go=Bn,Ko=Rs,Em=Dr,Im=Ws,Am=Tm,Nm=Ym,Lm=1,Fm=2,Wm="[object Boolean]",Rm="[object Date]",Bm="[object Error]",jm="[object Map]",Hm="[object Number]",Um="[object RegExp]",zm="[object Set]",qm="[object String]",Vm="[object Symbol]",Gm="[object ArrayBuffer]",Km="[object DataView]",Zo=Go?Go.prototype:void 0,aa=Zo?Zo.valueOf:void 0;function Zm(e,t,r,n,a,o,i){switch(r){case Km:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Gm:return!(e.byteLength!=t.byteLength||!o(new Ko(e),new Ko(t)));case Wm:case Rm:case Hm:return Em(+e,+t);case Bm:return e.name==t.name&&e.message==t.message;case Um:case qm:return e==t+"";case jm:var s=Am;case zm:var l=n&Lm;if(s||(s=Nm),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=Fm,i.set(e,t);var c=Im(s(e),s(t),n,a,o,i);return i.delete(e),c;case Vm:if(aa)return aa.call(e)==aa.call(t)}return!1}var Xm=Zm;function Qm(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Jm=Qm,eg=Jm,tg=Ve;function rg(e,t,r){var n=t(e);return tg(e)?n:eg(n,r(e))}var ng=rg;function ag(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}var og=ag;function ig(){return[]}var sg=ig,lg=og,ug=sg,cg=Object.prototype,dg=cg.propertyIsEnumerable,Xo=Object.getOwnPropertySymbols,fg=Xo?function(e){return e==null?[]:(e=Object(e),lg(Xo(e),function(t){return dg.call(e,t)}))}:ug,vg=fg;function hg(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var pg=hg,yr={},mg={get exports(){return yr},set exports(e){yr=e}};function gg(){return!1}var yg=gg;(function(e,t){var r=at,n=yg,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(mg,yr);var bg=ot,wg=Xa,Dg=Ge,$g="[object Arguments]",_g="[object Array]",kg="[object Boolean]",Mg="[object Date]",Pg="[object Error]",Og="[object Function]",Sg="[object Map]",xg="[object Number]",Tg="[object Object]",Cg="[object RegExp]",Yg="[object Set]",Eg="[object String]",Ig="[object WeakMap]",Ag="[object ArrayBuffer]",Ng="[object DataView]",Lg="[object Float32Array]",Fg="[object Float64Array]",Wg="[object Int8Array]",Rg="[object Int16Array]",Bg="[object Int32Array]",jg="[object Uint8Array]",Hg="[object Uint8ClampedArray]",Ug="[object Uint16Array]",zg="[object Uint32Array]",ie={};ie[Lg]=ie[Fg]=ie[Wg]=ie[Rg]=ie[Bg]=ie[jg]=ie[Hg]=ie[Ug]=ie[zg]=!0;ie[$g]=ie[_g]=ie[Ag]=ie[kg]=ie[Ng]=ie[Mg]=ie[Pg]=ie[Og]=ie[Sg]=ie[xg]=ie[Tg]=ie[Cg]=ie[Yg]=ie[Eg]=ie[Ig]=!1;function qg(e){return Dg(e)&&wg(e.length)&&!!ie[bg(e)]}var Vg=qg,Gg=Vg,Kg=Ls,Qo=zr,Jo=Qo&&Qo.isTypedArray,Zg=Jo?Kg(Jo):Gg,Ja=Zg,Xg=pg,Qg=Ka,Jg=Ve,ey=yr,ty=Za,ry=Ja,ny=Object.prototype,ay=ny.hasOwnProperty;function oy(e,t){var r=Jg(e),n=!r&&Qg(e),a=!r&&!n&&ey(e),o=!r&&!n&&!a&&ry(e),i=r||n||a||o,s=i?Xg(e.length,String):[],l=s.length;for(var u in e)(t||ay.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ty(u,l)))&&s.push(u);return s}var Bs=oy,iy=Object.prototype;function sy(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||iy;return e===r}var eo=sy;function ly(e,t){return function(r){return e(t(r))}}var js=ly,uy=js,cy=uy(Object.keys,Object),dy=cy,fy=eo,vy=dy,hy=Object.prototype,py=hy.hasOwnProperty;function my(e){if(!fy(e))return vy(e);var t=[];for(var r in Object(e))py.call(e,r)&&r!="constructor"&&t.push(r);return t}var gy=my,yy=Qt,by=Xa;function wy(e){return e!=null&&by(e.length)&&!yy(e)}var en=wy,Dy=Bs,$y=gy,_y=en;function ky(e){return _y(e)?Dy(e):$y(e)}var to=ky,My=ng,Py=vg,Oy=to;function Sy(e){return My(e,Oy,Py)}var xy=Sy,ei=xy,Ty=1,Cy=Object.prototype,Yy=Cy.hasOwnProperty;function Ey(e,t,r,n,a,o){var i=r&Ty,s=ei(e),l=s.length,u=ei(t),c=u.length;if(l!=c&&!i)return!1;for(var d=l;d--;){var f=s[d];if(!(i?f in t:Yy.call(t,f)))return!1}var v=o.get(e),m=o.get(t);if(v&&m)return v==t&&m==e;var y=!0;o.set(e,t),o.set(t,e);for(var g=i;++d<l;){f=s[d];var p=e[f],_=t[f];if(n)var k=i?n(_,p,f,t,e,o):n(p,_,f,e,t,o);if(!(k===void 0?p===_||a(p,_,r,n,o):k)){y=!1;break}g||(g=f=="constructor")}if(y&&!g){var D=e.constructor,w=t.constructor;D!=w&&"constructor"in e&&"constructor"in t&&!(typeof D=="function"&&D instanceof D&&typeof w=="function"&&w instanceof w)&&(y=!1)}return o.delete(e),o.delete(t),y}var Iy=Ey,Ay=Jt,Ny=at,Ly=Ay(Ny,"DataView"),Fy=Ly,Wy=Jt,Ry=at,By=Wy(Ry,"Promise"),jy=By,Hy=Jt,Uy=at,zy=Hy(Uy,"Set"),qy=zy,Vy=Jt,Gy=at,Ky=Vy(Gy,"WeakMap"),Zy=Ky,ga=Fy,ya=qa,ba=jy,wa=qy,Da=Zy,Hs=ot,Mr=Ts,ti="[object Map]",Xy="[object Object]",ri="[object Promise]",ni="[object Set]",ai="[object WeakMap]",oi="[object DataView]",Qy=Mr(ga),Jy=Mr(ya),e0=Mr(ba),t0=Mr(wa),r0=Mr(Da),Bt=Hs;(ga&&Bt(new ga(new ArrayBuffer(1)))!=oi||ya&&Bt(new ya)!=ti||ba&&Bt(ba.resolve())!=ri||wa&&Bt(new wa)!=ni||Da&&Bt(new Da)!=ai)&&(Bt=function(e){var t=Hs(e),r=t==Xy?e.constructor:void 0,n=r?Mr(r):"";if(n)switch(n){case Qy:return oi;case Jy:return ti;case e0:return ri;case t0:return ni;case r0:return ai}return t});var n0=Bt,oa=Qa,a0=Ws,o0=Xm,i0=Iy,ii=n0,si=Ve,li=yr,s0=Ja,l0=1,ui="[object Arguments]",ci="[object Array]",cn="[object Object]",u0=Object.prototype,di=u0.hasOwnProperty;function c0(e,t,r,n,a,o){var i=si(e),s=si(t),l=i?ci:ii(e),u=s?ci:ii(t);l=l==ui?cn:l,u=u==ui?cn:u;var c=l==cn,d=u==cn,f=l==u;if(f&&li(e)){if(!li(t))return!1;i=!0,c=!1}if(f&&!c)return o||(o=new oa),i||s0(e)?a0(e,t,r,n,a,o):o0(e,t,l,r,n,a,o);if(!(r&l0)){var v=c&&di.call(e,"__wrapped__"),m=d&&di.call(t,"__wrapped__");if(v||m){var y=v?e.value():e,g=m?t.value():t;return o||(o=new oa),a(y,g,r,n,o)}}return f?(o||(o=new oa),i0(e,t,r,n,a,o)):!1}var d0=c0,f0=d0,fi=Ge;function Us(e,t,r,n,a){return e===t?!0:e==null||t==null||!fi(e)&&!fi(t)?e!==e&&t!==t:f0(e,t,r,n,Us,a)}var zs=Us,v0=Qa,h0=zs,p0=1,m0=2;function g0(e,t,r,n){var a=r.length,o=a,i=!n;if(e==null)return!o;for(e=Object(e);a--;){var s=r[a];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<o;){s=r[a];var l=s[0],u=e[l],c=s[1];if(i&&s[2]){if(u===void 0&&!(l in e))return!1}else{var d=new v0;if(n)var f=n(u,c,l,e,t,d);if(!(f===void 0?h0(c,u,p0|m0,n,d):f))return!1}}return!0}var y0=g0,b0=gt;function w0(e){return e===e&&!b0(e)}var qs=w0,D0=qs,$0=to;function _0(e){for(var t=$0(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,D0(a)]}return t}var k0=_0;function M0(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Vs=M0,P0=y0,O0=k0,S0=Vs;function x0(e){var t=O0(e);return t.length==1&&t[0][2]?S0(t[0][0],t[0][1]):function(r){return r===e||P0(r,e,t)}}var T0=x0,C0=Es,Y0=qn;function E0(e,t){t=C0(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Y0(t[r++])];return r&&r==n?e:void 0}var Gs=E0,I0=Gs;function A0(e,t,r){var n=e==null?void 0:I0(e,t);return n===void 0?r:n}var Ut=A0;function N0(e,t){return e!=null&&t in Object(e)}var L0=N0,F0=L0,W0=As;function R0(e,t){return e!=null&&W0(e,t,F0)}var B0=R0,j0=zs,H0=Ut,U0=B0,z0=za,q0=qs,V0=Vs,G0=qn,K0=1,Z0=2;function X0(e,t){return z0(e)&&q0(t)?V0(G0(e),t):function(r){var n=H0(r,e);return n===void 0&&n===t?U0(r,e):j0(t,n,K0|Z0)}}var Q0=X0;function J0(e){return e}var ro=J0;function eb(e){return function(t){return t==null?void 0:t[e]}}var tb=eb,rb=Gs;function nb(e){return function(t){return rb(t,e)}}var ab=nb,ob=tb,ib=ab,sb=za,lb=qn;function ub(e){return sb(e)?ob(lb(e)):ib(e)}var cb=ub,db=T0,fb=Q0,vb=ro,hb=Ve,pb=cb;function mb(e){return typeof e=="function"?e:e==null?vb:typeof e=="object"?hb(e)?fb(e[0],e[1]):db(e):pb(e)}var Ks=mb;function gb(e){return function(t,r,n){for(var a=-1,o=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++a];if(r(o[l],l,o)===!1)break}return t}}var yb=gb,bb=yb,wb=bb(),Zs=wb,Db=Zs,$b=to;function _b(e,t){return e&&Db(e,t,$b)}var Xs=_b,kb=en;function Mb(e,t){return function(r,n){if(r==null)return r;if(!kb(r))return e(r,n);for(var a=r.length,o=t?a:-1,i=Object(r);(t?o--:++o<a)&&n(i[o],o,i)!==!1;);return r}}var Pb=Mb,Ob=Xs,Sb=Pb,xb=Sb(Ob),Tb=xb,Cb=Tb;function Yb(e,t){var r;return Cb(e,function(n,a,o){return r=t(n,a,o),!r}),!!r}var Eb=Yb,Ib=Dr,Ab=en,Nb=Za,Lb=gt;function Fb(e,t,r){if(!Lb(r))return!1;var n=typeof t;return(n=="number"?Ab(r)&&Nb(t,r.length):n=="string"&&t in r)?Ib(r[t],e):!1}var no=Fb,Wb=Fs,Rb=Ks,Bb=Eb,jb=Ve,Hb=no;function Ub(e,t,r){var n=jb(e)?Wb:Bb;return r&&Hb(e,t,r)&&(t=void 0),n(e,Rb(t))}var zb=Ub,qb=ot,Vb=Ge,Gb="[object Boolean]";function Kb(e){return e===!0||e===!1||Vb(e)&&qb(e)==Gb}var Zb=Kb,Xb=ot,Qb=Ge,Jb="[object Number]";function ew(e){return typeof e=="number"||Qb(e)&&Xb(e)==Jb}var qe=ew,tw=Jt,rw=function(){try{var e=tw(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Qs=rw,vi=Qs;function nw(e,t,r){t=="__proto__"&&vi?vi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Vn=nw,aw=Vn,ow=Dr,iw=Object.prototype,sw=iw.hasOwnProperty;function lw(e,t,r){var n=e[t];(!(sw.call(e,t)&&ow(n,r))||r===void 0&&!(t in e))&&aw(e,t,r)}var uw=lw,cw=Vn,dw=Xs,fw=Ks;function vw(e,t){var r={};return t=fw(t),dw(e,function(n,a,o){cw(r,a,t(n,a,o))}),r}var hw=vw;function pw(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Js=pw,mw=Js,hi=Math.max;function gw(e,t,r){return t=hi(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,o=hi(n.length-t,0),i=Array(o);++a<o;)i[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(i),mw(e,this,s)}}var yw=gw;function bw(e){return function(){return e}}var ww=bw,Dw=ww,pi=Qs,$w=ro,_w=pi?function(e,t){return pi(e,"toString",{configurable:!0,enumerable:!1,value:Dw(t),writable:!0})}:$w,kw=_w,Mw=800,Pw=16,Ow=Date.now;function Sw(e){var t=0,r=0;return function(){var n=Ow(),a=Pw-(n-r);if(r=n,a>0){if(++t>=Mw)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xw=Sw,Tw=kw,Cw=xw,Yw=Cw(Tw),Ew=Yw,Iw=ro,Aw=yw,Nw=Ew;function Lw(e,t){return Nw(Aw(e,t,Iw),e+"")}var ao=Lw;function Fw(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Ww=Fw,Rw=gt,Bw=eo,jw=Ww,Hw=Object.prototype,Uw=Hw.hasOwnProperty;function zw(e){if(!Rw(e))return jw(e);var t=Bw(e),r=[];for(var n in e)n=="constructor"&&(t||!Uw.call(e,n))||r.push(n);return r}var qw=zw,Vw=Bs,Gw=qw,Kw=en;function Zw(e){return Kw(e)?Vw(e,!0):Gw(e)}var oo=Zw,Xw=ao,Qw=Dr,Jw=no,e1=oo,el=Object.prototype,t1=el.hasOwnProperty,r1=Xw(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&Jw(t[0],t[1],a)&&(n=1);++r<n;)for(var o=t[r],i=e1(o),s=-1,l=i.length;++s<l;){var u=i[s],c=e[u];(c===void 0||Qw(c,el[u])&&!t1.call(e,u))&&(e[u]=o[u])}return e}),mi=r1,n1=Vn,a1=Dr;function o1(e,t,r){(r!==void 0&&!a1(e[t],r)||r===void 0&&!(t in e))&&n1(e,t,r)}var tl=o1,$n={},i1={get exports(){return $n},set exports(e){$n=e}};(function(e,t){var r=at,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var d=u.length,f=s?s(d):new u.constructor(d);return u.copy(f),f}e.exports=l})(i1,$n);var gi=Rs;function s1(e){var t=new e.constructor(e.byteLength);return new gi(t).set(new gi(e)),t}var l1=s1,u1=l1;function c1(e,t){var r=t?u1(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var d1=c1;function f1(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var v1=f1,h1=gt,yi=Object.create,p1=function(){function e(){}return function(t){if(!h1(t))return{};if(yi)return yi(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),m1=p1,g1=js,y1=g1(Object.getPrototypeOf,Object),rl=y1,b1=m1,w1=rl,D1=eo;function $1(e){return typeof e.constructor=="function"&&!D1(e)?b1(w1(e)):{}}var _1=$1,k1=en,M1=Ge;function P1(e){return M1(e)&&k1(e)}var O1=P1,S1=ot,x1=rl,T1=Ge,C1="[object Object]",Y1=Function.prototype,E1=Object.prototype,nl=Y1.toString,I1=E1.hasOwnProperty,A1=nl.call(Object);function N1(e){if(!T1(e)||S1(e)!=C1)return!1;var t=x1(e);if(t===null)return!0;var r=I1.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&nl.call(r)==A1}var L1=N1;function F1(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var al=F1,W1=uw,R1=Vn;function B1(e,t,r,n){var a=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),a?R1(r,s,l):W1(r,s,l)}return r}var j1=B1,H1=j1,U1=oo;function z1(e){return H1(e,U1(e))}var q1=z1,bi=tl,V1=$n,G1=d1,K1=v1,Z1=_1,wi=Ka,Di=Ve,X1=O1,Q1=yr,J1=Qt,eD=gt,tD=L1,rD=Ja,$i=al,nD=q1;function aD(e,t,r,n,a,o,i){var s=$i(e,r),l=$i(t,r),u=i.get(l);if(u){bi(e,r,u);return}var c=o?o(s,l,r+"",e,t,i):void 0,d=c===void 0;if(d){var f=Di(l),v=!f&&Q1(l),m=!f&&!v&&rD(l);c=l,f||v||m?Di(s)?c=s:X1(s)?c=K1(s):v?(d=!1,c=V1(l,!0)):m?(d=!1,c=G1(l,!0)):c=[]:tD(l)||wi(l)?(c=s,wi(s)?c=nD(s):(!eD(s)||J1(s))&&(c=Z1(l))):d=!1}d&&(i.set(l,c),a(c,l,n,o,i),i.delete(l)),bi(e,r,c)}var oD=aD,iD=Qa,sD=tl,lD=Zs,uD=oD,cD=gt,dD=oo,fD=al;function ol(e,t,r,n,a){e!==t&&lD(t,function(o,i){if(a||(a=new iD),cD(o))uD(e,t,i,r,ol,n,a);else{var s=n?n(fD(e,i),o,i+"",e,t,a):void 0;s===void 0&&(s=o),sD(e,i,s)}},dD)}var il=ol,vD=il,_i=gt;function sl(e,t,r,n,a,o){return _i(e)&&_i(t)&&(o.set(t,e),vD(e,t,void 0,sl,o),o.delete(t)),e}var hD=sl,pD=ao,mD=no;function gD(e){return pD(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&mD(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n<a;){var s=r[n];s&&e(t,s,n,o)}return t})}var yD=gD,bD=il,wD=yD,DD=wD(function(e,t,r,n){bD(e,t,r,n)}),$D=DD,_D=Js,kD=ao,MD=hD,PD=$D,OD=kD(function(e){return e.push(void 0,MD),_D(PD,void 0,e)}),qr=OD;function SD(e){return e&&e.length?e[0]:void 0}var ll=SD;function xD(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var ur=xD;const TD=e=>Object.prototype.toString.call(e).slice(8,-1),dr=e=>Np(e)&&!isNaN(e.getTime()),ht=e=>TD(e)==="Object",ul=Ns,ki=(e,t)=>zb(t,r=>Ns(e,r)),ne=(e,t,r="0")=>{for(e=e!=null?String(e):"",t=t||2;e.length<t;)e=`${r}${e}`;return e},We=e=>Array.isArray(e),ut=e=>We(e)&&e.length>0,_n=e=>e==null?null:document&&Qe(e)?document.querySelector(e):e.$el??e,xt=(e,t,r,n=void 0)=>{e.removeEventListener(t,r,n)},Tt=(e,t,r,n=void 0)=>(e.addEventListener(t,r,n),()=>xt(e,t,r,n)),pn=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),dn=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},cl=(e,...t)=>{const r={};let n;for(n in e)t.includes(n)||(r[n]=e[n]);return r},dl=(e,t)=>{const r={};return t.forEach(n=>{n in e&&(r[n]=e[n])}),r};function CD(e,t,r){return Math.min(Math.max(e,t),r)}var kn={},YD={get exports(){return kn},set exports(e){kn=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var a=Number(n);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(YD,kn);const ED=Os(kn);var Mn={},ID={get exports(){return Mn},set exports(e){Mn=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var a=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return a.setUTCFullYear(n.getFullYear()),n.getTime()-a.getTime()}e.exports=t.default})(ID,Mn);const Mi=Os(Mn);function AD(e,t){var r=WD(t);return r.formatToParts?LD(r,e):FD(r,e)}var ND={year:0,month:1,day:2,hour:3,minute:4,second:5};function LD(e,t){try{for(var r=e.formatToParts(t),n=[],a=0;a<r.length;a++){var o=ND[r[a].type];o>=0&&(n[o]=parseInt(r[a].value,10))}return n}catch(i){if(i instanceof RangeError)return[NaN];throw i}}function FD(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var ia={};function WD(e){if(!ia[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";ia[e]=r?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return ia[e]}function fl(e,t,r,n,a,o,i){var s=new Date(0);return s.setUTCFullYear(e,t,r),s.setUTCHours(n,a,o,i),s}var Pi=36e5,RD=6e4,sa={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function BD(e,t,r){var n,a;if(!e||(n=sa.timezoneZ.exec(e),n))return 0;var o;if(n=sa.timezoneHH.exec(e),n)return o=parseInt(n[1],10),Oi(o)?-(o*Pi):NaN;if(n=sa.timezoneHHMM.exec(e),n){o=parseInt(n[1],10);var i=parseInt(n[2],10);return Oi(o,i)?(a=Math.abs(o)*Pi+i*RD,o>0?-a:a):NaN}if(UD(e)){t=new Date(t||Date.now());var s=jD(t),l=$a(s,e),u=HD(t,l,e);return-u}return NaN}function jD(e){return fl(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function $a(e,t){var r=AD(e,t),n=fl(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),a=e.getTime(),o=a%1e3;return a-=o>=0?o:1e3+o,n-a}function HD(e,t,r){var n=e.getTime(),a=n-t,o=$a(new Date(a),r);if(t===o)return t;a-=o-t;var i=$a(new Date(a),r);return o===i?o:Math.max(o,i)}function Oi(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var Si={};function UD(e){if(Si[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Si[e]=!0,!0}catch{return!1}}var zD=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const qD=zD;var la=36e5,xi=6e4,VD=2,_e={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:qD};function GD(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 r=t||{},n=r.additionalDigits==null?VD:ED(r.additionalDigits);if(n!==2&&n!==1&&n!==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 a=KD(e),o=ZD(a.date,n),i=o.year,s=o.restDateString,l=XD(s,i);if(isNaN(l))return new Date(NaN);if(l){var u=l.getTime(),c=0,d;if(a.time&&(c=QD(a.time),isNaN(c)))return new Date(NaN);if(a.timeZone||r.timeZone){if(d=BD(a.timeZone||r.timeZone,new Date(u+c)),isNaN(d))return new Date(NaN)}else d=Mi(new Date(u+c)),d=Mi(new Date(u+c+d));return new Date(u+c+d)}else return new Date(NaN)}function KD(e){var t={},r=_e.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=_e.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var a=_e.timeZone.exec(n);a?(t.time=n.replace(a[1],""),t.timeZone=a[1].trim()):t.time=n}return t}function ZD(e,t){var r=_e.YYY[t],n=_e.YYYYY[t],a;if(a=_e.YYYY.exec(e)||n.exec(e),a){var o=a[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(a=_e.YY.exec(e)||r.exec(e),a){var i=a[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}return{year:null}}function XD(e,t){if(t===null)return null;var r,n,a,o;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=_e.MM.exec(e),r)return n=new Date(0),a=parseInt(r[1],10)-1,Ci(t,a)?(n.setUTCFullYear(t,a),n):new Date(NaN);if(r=_e.DDD.exec(e),r){n=new Date(0);var i=parseInt(r[1],10);return t$(t,i)?(n.setUTCFullYear(t,0,i),n):new Date(NaN)}if(r=_e.MMDD.exec(e),r){n=new Date(0),a=parseInt(r[1],10)-1;var s=parseInt(r[2],10);return Ci(t,a,s)?(n.setUTCFullYear(t,a,s),n):new Date(NaN)}if(r=_e.Www.exec(e),r)return o=parseInt(r[1],10)-1,Yi(t,o)?Ti(t,o):new Date(NaN);if(r=_e.WwwD.exec(e),r){o=parseInt(r[1],10)-1;var l=parseInt(r[2],10)-1;return Yi(t,o,l)?Ti(t,o,l):new Date(NaN)}return null}function QD(e){var t,r,n;if(t=_e.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),ua(r)?r%24*la:NaN;if(t=_e.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),ua(r,n)?r%24*la+n*xi:NaN;if(t=_e.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return ua(r,n,a)?r%24*la+n*xi+a*1e3:NaN}return null}function Ti(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var a=n.getUTCDay()||7,o=t*7+r+1-a;return n.setUTCDate(n.getUTCDate()+o),n}var JD=[31,28,31,30,31,30,31,31,30,31,30,31],e$=[31,29,31,30,31,30,31,31,30,31,30,31];function vl(e){return e%400===0||e%4===0&&e%100!==0}function Ci(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=vl(e);if(n&&r>e$[t]||!n&&r>JD[t])return!1}return!0}function t$(e,t){if(t<1)return!1;var r=vl(e);return!(r&&t>366||!r&&t>365)}function Yi(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function ua(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}function we(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function mn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mn=function(r){return typeof r}:mn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mn(e)}function yt(e){we(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||mn(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 Pr(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 r$={};function io(){return r$}function Kt(e,t){var r,n,a,o,i,s,l,u;we(1,arguments);var c=io(),d=Pr((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=yt(e),v=f.getDay(),m=(v<d?7:0)+v-d;return f.setDate(f.getDate()-m),f.setHours(0,0,0,0),f}function Ei(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()}var n$=6048e5;function a$(e,t,r){we(2,arguments);var n=Kt(e,r),a=Kt(t,r),o=n.getTime()-Ei(n),i=a.getTime()-Ei(a);return Math.round((o-i)/n$)}function o$(e){we(1,arguments);var t=yt(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function i$(e){we(1,arguments);var t=yt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function s$(e,t){return we(1,arguments),a$(o$(e),i$(e),t)+1}function l$(e,t){var r,n,a,o,i,s,l,u;we(1,arguments);var c=yt(e),d=c.getFullYear(),f=io(),v=Pr((r=(n=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&n!==void 0?n:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setFullYear(d+1,0,v),m.setHours(0,0,0,0);var y=Kt(m,t),g=new Date(0);g.setFullYear(d,0,v),g.setHours(0,0,0,0);var p=Kt(g,t);return c.getTime()>=y.getTime()?d+1:c.getTime()>=p.getTime()?d:d-1}function u$(e,t){var r,n,a,o,i,s,l,u;we(1,arguments);var c=io(),d=Pr((r=(n=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),f=l$(e,t),v=new Date(0);v.setFullYear(f,0,d),v.setHours(0,0,0,0);var m=Kt(v,t);return m}var c$=6048e5;function d$(e,t){we(1,arguments);var r=yt(e),n=Kt(r,t).getTime()-u$(r,t).getTime();return Math.round(n/c$)+1}function Pn(e){return we(1,arguments),Kt(e,{weekStartsOn:1})}function f$(e){we(1,arguments);var t=yt(e),r=t.getFullYear(),n=new Date(0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);var a=Pn(n),o=new Date(0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);var i=Pn(o);return t.getTime()>=a.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function v$(e){we(1,arguments);var t=f$(e),r=new Date(0);r.setFullYear(t,0,4),r.setHours(0,0,0,0);var n=Pn(r);return n}var h$=6048e5;function p$(e){we(1,arguments);var t=yt(e),r=Pn(t).getTime()-v$(t).getTime();return Math.round(r/h$)+1}function $e(e,t){we(2,arguments);var r=yt(e),n=Pr(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function On(e,t){we(2,arguments);var r=yt(e),n=Pr(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var i=o.getDate();return a>=i?o:(r.setFullYear(o.getFullYear(),o.getMonth(),a),r)}function Ii(e,t){we(2,arguments);var r=Pr(t);return On(e,r*12)}const m$={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function g$({monthComps:e,prevMonthComps:t,nextMonthComps:r},n){const a=[],{firstDayOfWeek:o,firstWeekday:i,isoWeeknumbers:s,weeknumbers:l,numDays:u,numWeeks:c}=e,d=i+(i<o?ye:0)-o;let f=!0,v=!1,m=!1,y=0;const g=new Intl.DateTimeFormat(n.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let p=t.numDays-d+1,_=t.numDays-p+1,k=Math.floor((p-1)/ye+1),D=1,w=t.numWeeks,O=1,M=t.month,C=t.year;const F=new Date,W=F.getDate(),z=F.getMonth()+1,N=F.getFullYear();for(let R=1;R<=u_;R++){for(let Q=1,I=o;Q<=ye;Q++,I+=I===ye?1-ye:1){f&&I===i&&(p=1,_=e.numDays,k=Math.floor((p-1)/ye+1),D=Math.floor((u-p)/ye+1),w=1,O=c,M=e.month,C=e.year,f=!1,v=!0);const V=n.getDateFromParams(C,M,p,0,0,0,0),J=n.getDateFromParams(C,M,p,12,0,0,0),he=n.getDateFromParams(C,M,p,23,59,59,999),se=V,T=`${ne(C,4)}-${ne(M,2)}-${ne(p,2)}`,K=Q,B=ye-Q,ce=l[R-1],ee=s[R-1],de=p===W&&M===z&&C===N,me=v&&p===1,fe=v&&p===u,ge=R===1,Te=R===c,st=Q===1,Ue=Q===ye,Ie=Ml(C,M,p);a.push({locale:n,id:T,position:++y,label:p.toString(),ariaLabel:g.format(new Date(C,M-1,p)),day:p,dayFromEnd:_,weekday:I,weekdayPosition:K,weekdayPositionFromEnd:B,weekdayOrdinal:k,weekdayOrdinalFromEnd:D,week:w,weekFromEnd:O,weekPosition:R,weeknumber:ce,isoWeeknumber:ee,month:M,year:C,date:se,startDate:V,endDate:he,noonDate:J,dayIndex:Ie,isToday:de,isFirstDay:me,isLastDay:fe,isDisabled:!v,isFocusable:!v,isFocused:!1,inMonth:v,inPrevMonth:f,inNextMonth:m,onTop:ge,onBottom:Te,onLeft:st,onRight:Ue,classes:[`id-${T}`,`day-${p}`,`day-from-end-${_}`,`weekday-${I}`,`weekday-position-${K}`,`weekday-ordinal-${k}`,`weekday-ordinal-from-end-${D}`,`week-${w}`,`week-from-end-${O}`,{"is-today":de,"is-first-day":me,"is-last-day":fe,"in-month":v,"in-prev-month":f,"in-next-month":m,"on-top":ge,"on-bottom":Te,"on-left":st,"on-right":Ue}]}),v&&fe?(v=!1,m=!0,p=1,_=u,k=1,D=Math.floor((u-p)/ye+1),w=1,O=r.numWeeks,M=r.month,C=r.year):(p++,_--,k=Math.floor((p-1)/ye+1),D=Math.floor((u-p)/ye+1))}w++,O--}return a}function y$(e,t,r,n){const a=e.reduce((o,i,s)=>{const l=Math.floor(s/7);let u=o[l];return u||(u={id:`week-${l+1}`,title:"",week:i.week,weekPosition:i.weekPosition,weeknumber:i.weeknumber,isoWeeknumber:i.isoWeeknumber,weeknumberDisplay:t?i.weeknumber:r?i.isoWeeknumber:void 0,days:[]},o[l]=u),u.days.push(i),o},Array(e.length/ye));return a.forEach(o=>{const i=o.days[0],s=o.days[o.days.length-1];i.month===s.month?o.title=`${n.formatDate(i.date,"MMMM YYYY")}`:i.year===s.year?o.title=`${n.formatDate(i.date,"MMM")} - ${n.formatDate(s.date,"MMM YYYY")}`:o.title=`${n.formatDate(i.date,"MMM YYYY")} - ${n.formatDate(s.date,"MMM YYYY")}`}),a}function b$(e,t){return e.days.map(r=>({label:t.formatDate(r.date,t.masks.weekdays),weekday:r.weekday}))}function w$(e,t){return`${t}.${ne(e,2)}`}function hl(e,t,r){return dl(r.getDateParts(r.toDate(e)),m$[t])}function pl({day:e,week:t,month:r,year:n},a,o,i){if(o==="daily"&&e){const s=new Date(n,r-1,e),l=$e(s,a);return{day:l.getDate(),month:l.getMonth()+1,year:l.getFullYear()}}else if(o==="weekly"&&t){const l=i.getMonthParts(r,n).firstDayOfMonth,u=$e(l,(t-1+a)*7),c=i.getDateParts(u);return{week:c.week,month:c.month,year:c.year}}else{const s=new Date(n,r-1,1),l=On(s,a);return{month:l.getMonth()+1,year:l.getFullYear()}}}function Je(e){return e!=null&&e.month!=null&&e.year!=null}function _a(e,t){return!Je(e)||!Je(t)?!1:(e=e,t=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:!1)}function Sn(e,t){return!Je(e)||!Je(t)?!1:(e=e,t=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:!1)}function D$(e,t,r){return(e||!1)&&!_a(e,t)&&!Sn(e,r)}function $$(e,t){return!e&&t||e&&!t?!1:!e&&!t?!0:(e=e,t=t,e.year===t.year&&e.month===t.month&&e.week===t.week&&e.day===t.day)}function _$(e,t,r,n){if(!Je(e)||!Je(t))return[];const a=[];for(;!Sn(e,t);)a.push(e),e=pl(e,1,r,n);return a}function ml(e){const{day:t,week:r,month:n,year:a}=e;let o=`${a}-${ne(n,2)}`;return r&&(o=`${o}-w${r}`),t&&(o=`${o}-${ne(t,2)}`),o}function k$(e,t){const{month:r,year:n,showWeeknumbers:a,showIsoWeeknumbers:o}=e,i=new Date(n,r-1,15),s=t.getMonthParts(r,n),l=t.getPrevMonthParts(r,n),u=t.getNextMonthParts(r,n),c=g$({monthComps:s,prevMonthComps:l,nextMonthComps:u},t),d=y$(c,a,o,t),f=b$(d[0],t);return{id:ml(e),month:r,year:n,monthTitle:t.formatDate(i,t.masks.title),shortMonthLabel:t.formatDate(i,"MMM"),monthLabel:t.formatDate(i,"MMMM"),shortYearLabel:n.toString().substring(2),yearLabel:n.toString(),monthComps:s,prevMonthComps:l,nextMonthComps:u,days:c,weeks:d,weekdays:f}}function M$(e,t){const{day:r,week:n,view:a,trimWeeks:o}=e,i={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(a){case"daily":{let s=i.days.find(u=>u.inMonth);r?s=i.days.find(u=>u.day===r&&u.inMonth)||s:n&&(s=i.days.find(u=>u.week===n&&u.inMonth));const l=i.weeks[s.week-1];i.viewWeeks=[l],i.viewDays=[s],i.week=s.week,i.weekTitle=l.title,i.day=s.day,i.dayTitle=s.ariaLabel,i.title=i.dayTitle;break}case"weekly":{i.week=n||1;const s=i.weeks[i.week-1];i.viewWeeks=[s],i.viewDays=s.days,i.weekTitle=s.title,i.title=i.weekTitle;break}default:{i.title=i.monthTitle,i.viewWeeks=i.weeks.slice(0,o?i.monthComps.numWeeks:void 0),i.viewDays=i.days;break}}return i}class Ai{constructor(t,r,n){L(this,"keys",[]),L(this,"store",{}),this.size=t,this.createKey=r,this.createItem=n}get(...t){const r=this.createKey(...t);return this.store[r]}getOrSet(...t){const r=this.createKey(...t);if(this.store[r])return this.store[r];const n=this.createItem(...t);if(this.keys.length>=this.size){const a=this.keys.shift();a!=null&&delete this.store[a]}return this.keys.push(r),this.store[r]=n,n}}class fr{constructor(t,r=new xn){L(this,"order"),L(this,"locale"),L(this,"start",null),L(this,"end",null),L(this,"repeat",null);var n;this.locale=r;const{start:a,end:o,span:i,order:s,repeat:l}=t;dr(a)&&(this.start=r.getDateParts(a)),dr(o)?this.end=r.getDateParts(o):this.start!=null&&i&&(this.end=r.getDateParts($e(this.start.date,i-1))),this.order=s??0,l&&(this.repeat=new Tn({from:(n=this.start)==null?void 0:n.date,...l},{locale:this.locale}))}static fromMany(t,r){return(We(t)?t:[t]).filter(n=>n).map(n=>fr.from(n,r))}static from(t,r){if(t instanceof fr)return t;const n={start:null,end:null};return t!=null&&(We(t)?(n.start=t[0]??null,n.end=t[1]??null):ht(t)?Object.assign(n,t):(n.start=t,n.end=t)),n.start!=null&&(n.start=new Date(n.start)),n.end!=null&&(n.end=new Date(n.end)),new fr(n,r)}get opts(){const{order:t,locale:r}=this;return{order:t,locale:r}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:t,end:r}=this;return t&&r&&t.year===r.year&&t.month===r.month&&t.day===r.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 r,n;return((r=this.start)==null?void 0:r.dayIndex)===t.dayIndex||!!((n=this.repeat)!=null&&n.passes(t))}intersectsDay(t){return this.intersectsDayRange(t,t)}intersectsRange(t){var r,n;return this.intersectsDayRange(((r=t.start)==null?void 0:r.dayIndex)??-1/0,((n=t.end)==null?void 0:n.dayIndex)??1/0)}intersectsDayRange(t,r){return!(this.start&&this.start.dayIndex>r||this.end&&this.end.dayIndex<t)}}class P${constructor(){L(this,"records",{})}render(t,r,n){var a,o,i,s;let l=null;const u=n[0].dayIndex,c=n[n.length-1].dayIndex;return r.hasRepeat?n.forEach(d=>{var f,v;if(r.startsOnDay(d)){const m=r.daySpan<1/0?r.daySpan:1;l={startDay:d.dayIndex,startTime:((f=r.start)==null?void 0:f.time)??0,endDay:d.dayIndex+m-1,endTime:((v=r.end)==null?void 0:v.time)??gn},this.getRangeRecords(t).push(l)}}):r.intersectsDayRange(u,c)&&(l={startDay:((a=r.start)==null?void 0:a.dayIndex)??-1/0,startTime:((o=r.start)==null?void 0:o.time)??-1/0,endDay:((i=r.end)==null?void 0:i.dayIndex)??1/0,endTime:((s=r.end)==null?void 0:s.time)??1/0},this.getRangeRecords(t).push(l)),l}getRangeRecords(t){let r=this.records[t.key];return r||(r={ranges:[],data:t},this.records[t.key]=r),r.ranges}getCell(t,r){return this.getCells(r).find(o=>o.data.key===t)}cellExists(t,r){const n=this.records[t];return n==null?!1:n.ranges.some(a=>a.startDay<=r&&a.endDay>=r)}getCells(t){const r=Object.values(this.records),n=[],{dayIndex:a}=t;return r.forEach(({data:o,ranges:i})=>{i.filter(s=>s.startDay<=a&&s.endDay>=a).forEach(s=>{const l=a===s.startDay,u=a===s.endDay,c=l?s.startTime:0,d=new Date(t.startDate.getTime()+c),f=u?s.endTime:gn,v=new Date(t.endDate.getTime()+f),m=c===0&&f===gn,y=o.order||0;n.push({...s,data:o,onStart:l,onEnd:u,startTime:c,startDate:d,endTime:f,endDate:v,allDay:m,order:y})})}),n.sort((o,i)=>o.order-i.order),n}}const pt={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"}};pt.en=pt["en-US"];pt.es=pt["es-ES"];pt.no=pt.nb;pt.zh=pt["zh-CN"];const O$=Object.entries(pt).reduce((e,[t,{dow:r,L:n}])=>(e[t]={id:t,firstDayOfWeek:r,masks:{L:n}},e),{}),S$="MMMM YYYY",x$="W",T$="MMM",C$="h A",Y$=["L","YYYY-MM-DD","YYYY/MM/DD"],E$=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],I$=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],A$=["h:mm A"],N$=["HH:mm"],L$="WWW, MMM D, YYYY",F$=["L","YYYY-MM-DD","YYYY/MM/DD"],W$="iso",R$="YYYY-MM-DDTHH:mm:ss.SSSZ",B$={title:S$,weekdays:x$,navMonths:T$,hours:C$,input:Y$,inputDateTime:E$,inputDateTime24hr:I$,inputTime:A$,inputTime24hr:N$,dayPopover:L$,data:F$,model:W$,iso:R$},j$=300,H$=60,U$=80,z$={maxSwipeTime:j$,minHorizontalSwipeDistance:H$,maxVerticalSwipeDistance:U$},q$={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:z$,masks:B$,locales:O$,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},ka=Ln(q$),V$=b(()=>hw(ka.locales,e=>(e.masks=qr(e.masks,ka.masks),e))),Et=e=>typeof window<"u"&&ul(window.__vcalendar__,e)?Ut(window.__vcalendar__,e):Ut(ka,e),G$=12,K$=5;function Z$(e,t){const r=new Intl.DateTimeFormat().resolvedOptions().locale;let n;Qe(e)?n=e:ul(e,"id")&&(n=e.id),n=(n||r).toLowerCase();const a=Object.keys(t),o=l=>a.find(u=>u.toLowerCase()===l);n=o(n)||o(n.substring(0,2))||r;const i={...t["en-IE"],...t[n],id:n,monthCacheSize:G$,pageCacheSize:K$};return ht(e)?qr(e,i):i}class xn{constructor(t=void 0,r){L(this,"id"),L(this,"daysInWeek"),L(this,"firstDayOfWeek"),L(this,"masks"),L(this,"timezone"),L(this,"hourLabels"),L(this,"dayNames"),L(this,"dayNamesShort"),L(this,"dayNamesShorter"),L(this,"dayNamesNarrow"),L(this,"monthNames"),L(this,"monthNamesShort"),L(this,"relativeTimeNames"),L(this,"amPm",["am","pm"]),L(this,"monthCache"),L(this,"pageCache");const{id:n,firstDayOfWeek:a,masks:o,monthCacheSize:i,pageCacheSize:s}=Z$(t,V$.value);this.monthCache=new Ai(i,y_,b_),this.pageCache=new Ai(s,ml,k$),this.id=n,this.daysInWeek=ye,this.firstDayOfWeek=CD(a,1,ye),this.masks=o,this.timezone=r||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=ca("long",this.id),this.dayNamesShort=ca("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(l=>l.substring(0,2)),this.dayNamesNarrow=ca("narrow",this.id),this.monthNames=Bi("long",this.id),this.monthNamesShort=Bi("short",this.id),this.relativeTimeNames=$_(this.id)}formatDate(t,r){return O_(t,r,this)}parseDate(t,r){return ji(t,r,this)}toDate(t,r={}){const n=new Date(NaN);let a=n;const{fillDate:o,mask:i,patch:s,rules:l}=r;if(qe(t)?(r.type="number",a=new Date(+t)):Qe(t)?(r.type="string",a=t?ji(t,i||"iso",this):n):dr(t)?(r.type="date",a=new Date(t.getTime())):so(t)&&(r.type="object",a=this.getDateFromParts(t)),a&&(s||l)){let u=this.getDateParts(a);if(s&&o!=null){const c=this.getDateParts(this.toDate(o));u=this.getDateParts(this.toDate({...c,...dl(u,l_[s])}))}l&&(u=P_(u,l)),a=this.getDateFromParts(u)}return a||n}toDateOrNull(t,r={}){const n=this.toDate(t,r);return isNaN(n.getTime())?null:n}fromDate(t,{type:r,mask:n}={}){switch(r){case"number":return t?t.getTime():NaN;case"string":return t?this.formatDate(t,n||"iso"):"";case"object":return t?this.getDateParts(t):null;default:return t?new Date(t):null}}range(t){return fr.from(t,this)}ranges(t){return fr.fromMany(t,this)}getDateParts(t){return g_(t,this)}getDateFromParts(t){return Ol(t,this.timezone)}getDateFromParams(t,r,n,a,o,i,s){return this.getDateFromParts({year:t,month:r,day:n,hours:a,minutes:o,seconds:i,milliseconds:s})}getPage(t){const r=this.pageCache.getOrSet(t,this);return M$(t,r)}getMonthParts(t,r){const{firstDayOfWeek:n}=this;return this.monthCache.getOrSet(t,r,n)}getThisMonthParts(){const t=new Date;return this.getMonthParts(t.getMonth()+1,t.getFullYear())}getPrevMonthParts(t,r){return t===1?this.getMonthParts(12,r-1):this.getMonthParts(t-1,r)}getNextMonthParts(t,r){return t===12?this.getMonthParts(1,r+1):this.getMonthParts(t+1,r)}getHourLabels(){return D_().map(t=>this.formatDate(t,this.masks.hours))}getDayId(t){return this.formatDate(t,"YYYY-MM-DD")}}var ir=(e=>(e.Any="any",e.All="all",e))(ir||{}),gl=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(gl||{}),yl=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(yl||{}),bl=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(bl||{});class X${constructor(t,r,n){L(this,"validated",!0),this.type=t,this.interval=r,this.from=n,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:r}=t;switch(this.type){case"days":return lo(this.from.date,r)%this.interval===0;case"weeks":return p_(this.from.date,r)%this.interval===0;case"months":return m_(this.from.date,r)%this.interval===0;case"years":return Pl(this.from.date,r)%this.interval===0;default:return!1}}}class Or{constructor(t,r,n,a){L(this,"components",[]),this.type=t,this.validator=n,this.getter=a,this.components=this.normalizeComponents(r)}static create(t,r){switch(t){case"days":return new Q$(r);case"weekdays":return new J$(r);case"weeks":return new e_(r);case"months":return new t_(r);case"years":return new r_(r)}}normalizeComponents(t){if(this.validator(t))return[t];if(!We(t))return[];const r=[];return t.forEach(n=>{if(!this.validator(n)){console.error(`Component value ${n} in invalid for "${this.type}" rule. This rule will be skipped.`);return}r.push(n)}),r}passes(t){return this.getter(t).some(a=>this.components.includes(a))}}class Q$ extends Or{constructor(t){super("days",t,o_,({day:r,dayFromEnd:n})=>[r,-n])}}class J$ extends Or{constructor(t){super("weekdays",t,Ma,({weekday:r})=>[r])}}class e_ extends Or{constructor(t){super("weeks",t,i_,({week:r,weekFromEnd:n})=>[r,-n])}}class t_ extends Or{constructor(t){super("months",t,s_,({month:r})=>[r])}}class r_ extends Or{constructor(t){super("years",t,qe,({year:r})=>[r])}}class n_{constructor(t,r){L(this,"components"),this.type=t,this.components=this.normalizeComponents(r)}normalizeArrayConfig(t){const r=[];return t.forEach((n,a)=>{if(qe(n)){if(a===0)return;if(!Ni(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!Ma(n)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}r.push([t[0],n])}else We(n)&&r.push(...this.normalizeArrayConfig(n))}),r}normalizeComponents(t){const r=[];return t.forEach((n,a)=>{if(qe(n)){if(a===0)return;if(!Ni(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!Ma(n)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}r.push([t[0],n])}else We(n)&&r.push(...this.normalizeArrayConfig(n))}),r}passes(t){const{weekday:r,weekdayOrdinal:n,weekdayOrdinalFromEnd:a}=t;return this.components.some(([o,i])=>(o===n||o===-a)&&r===i)}}class a_{constructor(t){L(this,"type","function"),L(this,"validated",!0),this.fn=t,Qt(t)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(t){return this.validated?this.fn(t):!0}}class Tn{constructor(t,r={},n){L(this,"validated",!0),L(this,"config"),L(this,"type",ir.Any),L(this,"from"),L(this,"until"),L(this,"rules",[]),L(this,"locale",new xn),this.parent=n,r.locale&&(this.locale=r.locale),this.config=t,Qt(t)?(this.type=ir.All,this.rules=[new a_(t)]):We(t)?(this.type=ir.Any,this.rules=t.map(a=>new Tn(a,r,this))):ht(t)?(this.type=ir.All,this.from=t.from?this.locale.getDateParts(t.from):n==null?void 0:n.from,this.until=t.until?this.locale.getDateParts(t.until):n==null?void 0:n.until,this.rules=this.getObjectRules(t)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(t){const r=[];if(t.every&&(Qe(t.every)&&(t.every=[1,`${t.every}s`]),We(t.every))){const[n=1,a=gl.Days]=t.every;r.push(new X$(a,n,this.from))}return Object.values(yl).forEach(n=>{n in t&&r.push(Or.create(n,t[n]))}),Object.values(bl).forEach(n=>{n in t&&r.push(new n_(n,t[n]))}),t.on!=null&&(We(t.on)||(t.on=[t.on]),r.push(new Tn(t.on,{locale:this.locale},this.parent))),r}passes(t){return this.validated?this.from&&t.dayIndex<=this.from.dayIndex||this.until&&t.dayIndex>=this.until.dayIndex?!1:this.type===ir.Any?this.rules.some(r=>r.passes(t)):this.rules.every(r=>r.passes(t)):!0}}function o_(e){return qe(e)?e>=1&&e<=31:!1}function Ma(e){return qe(e)?e>=1&&e<=7:!1}function i_(e){return qe(e)?e>=-6&&e<=-1||e>=1&&e<=6:!1}function s_(e){return qe(e)?e>=1&&e<=12:!1}function Ni(e){return!(!qe(e)||e<-5||e>5||e===0)}const l_={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},ye=7,u_=6,wl=1e3,Dl=wl*60,$l=Dl*60,gn=$l*24,c_=[31,28,31,30,31,30,31,31,30,31,30,31],d_=["L","iso"],Fr={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},_l=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,f_=/\[([^]*?)\]/gm,Li={D(e){return e.day},DD(e){return ne(e.day,2)},d(e){return e.weekday-1},dd(e){return ne(e.weekday-1,2)},W(e,t){return t.dayNamesNarrow[e.weekday-1]},WW(e,t){return t.dayNamesShorter[e.weekday-1]},WWW(e,t){return t.dayNamesShort[e.weekday-1]},WWWW(e,t){return t.dayNames[e.weekday-1]},M(e){return e.month},MM(e){return ne(e.month,2)},MMM(e,t){return t.monthNamesShort[e.month-1]},MMMM(e,t){return t.monthNames[e.month-1]},YY(e){return String(e.year).substr(2)},YYYY(e){return ne(e.year,4)},h(e){return e.hours%12||12},hh(e){return ne(e.hours%12||12,2)},H(e){return e.hours},HH(e){return ne(e.hours,2)},m(e){return e.minutes},mm(e){return ne(e.minutes,2)},s(e){return e.seconds},ss(e){return ne(e.seconds,2)},S(e){return Math.round(e.milliseconds/100)},SS(e){return ne(Math.round(e.milliseconds/10),2)},SSS(e){return ne(e.milliseconds,3)},a(e,t){return e.hours<12?t.amPm[0]:t.amPm[1]},A(e,t){return e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${ne(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${ne(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${ne(Math.floor(Math.abs(t)/60),2)}:${ne(Math.abs(t)%60,2)}`}},Pt=/\d\d?/,v_=/\d{3}/,h_=/\d{4}/,Er=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Fi=()=>{},Wi=e=>(t,r,n)=>{const a=n[e].indexOf(r.charAt(0).toUpperCase()+r.substr(1).toLowerCase());~a&&(t.month=a)},ae={D:[Pt,(e,t)=>{e.day=t}],Do:[new RegExp(Pt.source+Er.source),(e,t)=>{e.day=parseInt(t,10)}],d:[Pt,Fi],W:[Er,Fi],M:[Pt,(e,t)=>{e.month=t-1}],MMM:[Er,Wi("monthNamesShort")],MMMM:[Er,Wi("monthNames")],YY:[Pt,(e,t)=>{const n=+new Date().getFullYear().toString().substr(0,2);e.year=+`${t>68?n-1:n}${t}`}],YYYY:[h_,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=t*100}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=t*10}],SSS:[v_,(e,t)=>{e.milliseconds=t}],h:[Pt,(e,t)=>{e.hours=t}],m:[Pt,(e,t)=>{e.minutes=t}],s:[Pt,(e,t)=>{e.seconds=t}],a:[Er,(e,t,r)=>{const n=t.toLowerCase();n===r.amPm[0]?e.isPm=!1:n===r.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const r=`${t}`.match(/([+-]|\d\d)/gi);if(r){const n=+r[1]*60+parseInt(r[2],10);e.timezoneOffset=r[0]==="+"?n:-n}}]};ae.DD=ae.D;ae.dd=ae.d;ae.WWWW=ae.WWW=ae.WW=ae.W;ae.MM=ae.M;ae.mm=ae.m;ae.hh=ae.H=ae.HH=ae.h;ae.ss=ae.s;ae.A=ae.a;ae.ZZZZ=ae.ZZZ=ae.ZZ=ae.Z;function kl(e,t){return(ut(e)&&e||[Qe(e)&&e||"YYYY-MM-DD"]).map(r=>d_.reduce((n,a)=>n.replace(a,t.masks[a]||""),r))}function so(e){return ht(e)&&"year"in e&&"month"in e&&"day"in e}function Ri(e,t=1){const r=e.getDay()+1,n=r>=t?t-r:-(7-(t-r));return $e(e,n)}function Ml(e,t,r){const n=Date.UTC(e,t-1,r);return lo(new Date(0),new Date(n))}function lo(e,t){return Math.round((t.getTime()-e.getTime())/gn)}function p_(e,t){return Math.ceil(lo(Ri(e),Ri(t))/7)}function Pl(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function m_(e,t){return Pl(e,t)*12+(t.getMonth()-e.getMonth())}function Ol(e,t=""){const r=new Date,{year:n=r.getFullYear(),month:a=r.getMonth()+1,day:o=r.getDate(),hours:i=0,minutes:s=0,seconds:l=0,milliseconds:u=0}=e;if(t){const c=`${ne(n,4)}-${ne(a,2)}-${ne(o,2)}T${ne(i,2)}:${ne(s,2)}:${ne(l,2)}.${ne(u,3)}`;return GD(c,{timeZone:t})}return new Date(n,a-1,o,i,s,l,u)}function g_(e,t){let r=new Date(e.getTime());t.timezone&&(r=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),r.setMilliseconds(e.getMilliseconds()));const n=r.getMilliseconds(),a=r.getSeconds(),o=r.getMinutes(),i=r.getHours(),s=n+a*wl+o*Dl+i*$l,l=r.getMonth()+1,u=r.getFullYear(),c=t.getMonthParts(l,u),d=r.getDate(),f=c.numDays-d+1,v=r.getDay()+1,m=Math.floor((d-1)/7+1),y=Math.floor((c.numDays-d)/7+1),g=Math.ceil((d+Math.abs(c.firstWeekday-c.firstDayOfWeek))/7),p=c.numWeeks-g+1,_=c.weeknumbers[g],k=Ml(u,l,d);return{milliseconds:n,seconds:a,minutes:o,hours:i,time:s,day:d,dayFromEnd:f,weekday:v,weekdayOrdinal:m,weekdayOrdinalFromEnd:y,week:g,weekFromEnd:p,weeknumber:_,month:l,year:u,date:r,dateTime:r.getTime(),dayIndex:k,timezoneOffset:0,isValid:!0}}function y_(e,t,r){return`${t}-${e}-${r}`}function b_(e,t,r){const n=t%4===0&&t%100!==0||t%400===0,a=new Date(t,e-1,1),o=a.getDay()+1,i=e===2&&n?29:c_[e-1],s=r-1,l=s$(a,{weekStartsOn:s}),u=[],c=[];for(let d=0;d<l;d++){const f=$e(a,d*7);u.push(d$(f,{weekStartsOn:s})),c.push(p$(f))}return{firstDayOfWeek:r,firstDayOfMonth:a,inLeapYear:n,firstWeekday:o,numDays:i,numWeeks:l,month:e,year:t,weeknumbers:u,isoWeeknumbers:c}}function w_(){const e=[];for(let a=0;a<ye;a++)e.push(Ol({year:2020,month:1,day:5+a,hours:12}));return e}function ca(e,t=void 0){const r=new Intl.DateTimeFormat(t,{weekday:e});return w_().map(n=>r.format(n))}function D_(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}function $_(e=void 0){const t=["second","minute","hour","day","week","month","quarter","year"],r=new Intl.RelativeTimeFormat(e);return t.reduce((n,a)=>{const o=r.formatToParts(100,a);return n[a]=o[1].unit,n},{})}function Sl(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function Bi(e,t=void 0){const r=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return Sl().map(n=>r.format(n))}function __(e,t,r){return qe(t)?t===e:We(t)?t.includes(e):Qt(t)?t(e,r):!(t.min!=null&&t.min>e||t.max!=null&&t.max<e||t.interval!=null&&e%t.interval!==0)}function Wr(e,t,r){const n=[],[a,o,i]=t;for(let s=a;s<=o;s++)(r==null||__(s,r,e))&&n.push({value:s,label:ne(s,i)});return n}function k_(e,t){return{milliseconds:Wr(e,Fr.milliseconds,t.milliseconds),seconds:Wr(e,Fr.seconds,t.seconds),minutes:Wr(e,Fr.minutes,t.minutes),hours:Wr(e,Fr.hours,t.hours)}}function M_(e,t,r,n){const o=Wr(e,t,n).reduce((i,s)=>{if(s.disabled)return i;if(isNaN(i))return s.value;const l=Math.abs(i-r);return Math.abs(s.value-r)<l?s.value:i},NaN);return isNaN(o)?r:o}function P_(e,t){const r={...e};return Object.entries(t).forEach(([n,a])=>{const o=Fr[n],i=e[n];r[n]=M_(e,o,i,a)}),r}function ji(e,t,r){return kl(t,r).map(a=>{if(typeof a!="string")throw new Error("Invalid mask");let o=e;if(o.length>1e3)return!1;let i=!0;const s={};if(a.replace(_l,c=>{if(ae[c]){const d=ae[c],f=o.search(d[0]);~f?o.replace(d[0],v=>(d[1](s,v,r),o=o.substr(f+v.length),v)):i=!1}return ae[c]?"":c.slice(1,c.length-1)}),!i)return!1;const l=new Date;s.hours!=null&&(s.isPm===!0&&+s.hours!=12?s.hours=+s.hours+12:s.isPm===!1&&+s.hours==12&&(s.hours=0));let u;return s.timezoneOffset!=null?(s.minutes=+(s.minutes||0)-+s.timezoneOffset,u=new Date(Date.UTC(s.year||l.getFullYear(),s.month||0,s.day||1,s.hours||0,s.minutes||0,s.seconds||0,s.milliseconds||0))):u=r.getDateFromParts({year:s.year||l.getFullYear(),month:(s.month||0)+1,day:s.day||1,hours:s.hours||0,minutes:s.minutes||0,seconds:s.seconds||0,milliseconds:s.milliseconds||0}),u}).find(a=>a)||new Date(e)}function O_(e,t,r){if(e==null)return"";let n=kl(t,r)[0];/Z$/.test(n)&&(r.timezone="utc");const a=[];n=n.replace(f_,(i,s)=>(a.push(s),"??"));const o=r.getDateParts(e);return n=n.replace(_l,i=>i in Li?Li[i](o,r):i.slice(1,i.length-1)),n.replace(/\?\?/g,()=>a.shift())}let S_=0;class xl{constructor(t,r,n){L(this,"key",""),L(this,"hashcode",""),L(this,"highlight",null),L(this,"content",null),L(this,"dot",null),L(this,"bar",null),L(this,"event",null),L(this,"popover",null),L(this,"customData",null),L(this,"ranges"),L(this,"hasRanges",!1),L(this,"order",0),L(this,"pinPage",!1),L(this,"maxRepeatSpan",0),L(this,"locale");const{dates:a}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},t);this.key||(this.key=++S_),this.locale=n,r.normalizeGlyphs(this),this.ranges=n.ranges(a??[]),this.hasRanges=!!ut(this.ranges),this.maxRepeatSpan=this.ranges.filter(o=>o.hasRepeat).map(o=>o.daySpan).reduce((o,i)=>Math.max(o,i),0)}intersectsRange({start:t,end:r}){if(t==null||r==null)return!1;const n=this.ranges.filter(i=>!i.hasRepeat);for(const i of n)if(i.intersectsDayRange(t.dayIndex,r.dayIndex))return!0;const a=this.ranges.filter(i=>i.hasRepeat);if(!a.length)return!1;let o=t;for(this.maxRepeatSpan>1&&(o=this.locale.getDateParts($e(o.date,-this.maxRepeatSpan)));o.dayIndex<=r.dayIndex;){for(const i of a)if(i.startsOnDay(o))return!0;o=this.locale.getDateParts($e(o.date,1))}return!1}}function Pa(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function Vr(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function Tl(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function Cl(e){const{visibility:t}=e,r=t==="click",n=t==="hover",a=t==="hover-focus",o=t==="focus";e.autoHide=!r;let i=!1,s=!1;const l=m=>{r&&(Tl({...e,target:e.target||m.currentTarget}),m.stopPropagation())},u=m=>{i||(i=!0,(n||a)&&Pa({...e,target:e.target||m.currentTarget}))},c=()=>{i&&(i=!1,(n||a&&!s)&&Vr(e))},d=m=>{s||(s=!0,(o||a)&&Pa({...e,target:e.target||m.currentTarget}))},f=m=>{s&&!pn(m.currentTarget,m.relatedTarget)&&(s=!1,(o||a&&!i)&&Vr(e))},v={};switch(e.visibility){case"click":v.click=l;break;case"hover":v.mousemove=u,v.mouseleave=c;break;case"focus":v.focusin=d,v.focusout=f;break;case"hover-focus":v.mousemove=u,v.mouseleave=c,v.focusin=d,v.focusout=f;break}return v}const Hi=e=>{const t=_n(e);if(t==null)return;const r=t.popoverHandlers;!r||!r.length||(r.forEach(n=>n()),delete t.popoverHandlers)},Ui=(e,t)=>{const r=_n(e);if(r==null)return;const n=[],a=Cl(t);Object.entries(a).forEach(([o,i])=>{n.push(Tt(r,o,i))}),r.popoverHandlers=n},Yl={mounted(e,t){const{value:r}=t;r&&Ui(e,r)},updated(e,t){const{oldValue:r,value:n}=t,a=r==null?void 0:r.visibility,o=n==null?void 0:n.visibility;a!==o&&(a&&(Hi(e),o||Vr(r)),o&&Ui(e,n))},unmounted(e){Hi(e)}},x_=(e,t,{maxSwipeTime:r,minHorizontalSwipeDistance:n,maxVerticalSwipeDistance:a})=>{if(!e||!e.addEventListener||!Qt(t))return null;let o=0,i=0,s=null,l=!1;function u(d){const f=d.changedTouches[0];o=f.screenX,i=f.screenY,s=new Date().getTime(),l=!0}function c(d){if(!l||!s)return;l=!1;const f=d.changedTouches[0],v=f.screenX-o,m=f.screenY-i;if(new Date().getTime()-s<r&&Math.abs(v)>=n&&Math.abs(m)<=a){const g={toLeft:!1,toRight:!1};v<0?g.toLeft=!0:g.toRight=!0,t(g)}}return Tt(e,"touchstart",u,{passive:!0}),Tt(e,"touchend",c,{passive:!0}),()=>{xt(e,"touchstart",u),xt(e,"touchend",c)}},yn={},T_=(e,t=10)=>{yn[e]=Date.now()+t},C_=(e,t)=>{if(e in yn){const r=yn[e];if(Date.now()<r)return;delete yn[e]}t()};function El(){return typeof window<"u"}function Y_(e){return El()&&e in window}function E_(e){const t=j(!1),r=b(()=>t.value?"dark":"light");let n,a;function o(v){t.value=v.matches}function i(){Y_("matchMedia")&&(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",o),t.value=n.matches)}function s(){const{selector:v=":root",darkClass:m="dark"}=e.value,y=document.querySelector(v);t.value=y.classList.contains(m)}function l(v){const{selector:m=":root",darkClass:y="dark"}=v;if(El()&&m&&y){const g=document.querySelector(m);g&&(a=new MutationObserver(s),a.observe(g,{attributes:!0,attributeFilter:["class"]}),t.value=g.classList.contains(y))}}function u(){d();const v=typeof e.value;v==="string"&&e.value.toLowerCase()==="system"?i():v==="object"?l(e.value):t.value=!!e.value}const c=ve(()=>e.value,()=>u(),{immediate:!0});function d(){n&&(n.removeEventListener("change",o),n=void 0),a&&(a.disconnect(),a=void 0)}function f(){d(),c()}return Xt(()=>f()),{isDark:t,displayMode:r,cleanup:f}}const I_=["base","start","end","startEnd"],A_=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],N_={base:{},start:{},end:{}};function uo(e,t,r=N_){let n=e,a={};t===!0||Qe(t)?(n=Qe(t)?t:n,a={...r}):ht(t)&&(ki(t,I_)?a={...t}:a={base:{...t},start:{...t},end:{...t}});const o=qr(a,{start:a.startEnd,end:a.startEnd},r);return Object.entries(o).forEach(([i,s])=>{let l=n;s===!0||Qe(s)?(l=Qe(s)?s:l,o[i]={color:l}):ht(s)&&(ki(s,A_)?o[i]={...s}:o[i]={}),qr(o[i],{color:l})}),o}class L_{constructor(){L(this,"type","highlight")}normalizeConfig(t,r){return uo(t,r,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(t){t.highlights=[],t.content||(t.content=[])}render({data:t,onStart:r,onEnd:n},a){const{key:o,highlight:i}=t;if(!i)return;const{highlights:s}=a,{base:l,start:u,end:c}=i;r&&n?s.push({...u,key:o,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-bg-${u.fillMode}`,u.class],contentClass:[`vc-attr vc-highlight-content-${u.fillMode} vc-${u.color}`,u.contentClass]}):r?(s.push({...l,key:`${o}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${l.fillMode}`,l.class]}),s.push({...u,key:o,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-bg-${u.fillMode}`,u.class],contentClass:[`vc-attr vc-highlight-content-${u.fillMode} vc-${u.color}`,u.contentClass]})):n?(s.push({...l,key:`${o}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${l.fillMode}`,l.class]}),s.push({...c,key:o,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]})):s.push({...l,key:`${o}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]})}}class co{constructor(t,r){L(this,"type",""),L(this,"collectionType",""),this.type=t,this.collectionType=r}normalizeConfig(t,r){return uo(t,r)}prepareRender(t){t[this.collectionType]=[]}render({data:t,onStart:r,onEnd:n},a){const{key:o}=t,i=t[this.type];if(!o||!i)return;const s=a[this.collectionType],{base:l,start:u,end:c}=i;r?s.push({...u,key:o,class:[`vc-${this.type} vc-${this.type}-start vc-${u.color} vc-attr`,u.class]}):n?s.push({...c,key:o,class:[`vc-${this.type} vc-${this.type}-end vc-${c.color} vc-attr`,c.class]}):s.push({...l,key:o,class:[`vc-${this.type} vc-${this.type}-base vc-${l.color} vc-attr`,l.class]})}}class F_ extends co{constructor(){super("content","content")}normalizeConfig(t,r){return uo("base",r)}}class W_ extends co{constructor(){super("dot","dots")}}class R_ extends co{constructor(){super("bar","bars")}}class B_{constructor(t){L(this,"color"),L(this,"renderers",[new F_,new L_,new W_,new R_]),this.color=t}normalizeGlyphs(t){this.renderers.forEach(r=>{const n=r.type;t[n]!=null&&(t[n]=r.normalizeConfig(this.color,t[n]))})}prepareRender(t={}){return this.renderers.forEach(r=>{r.prepareRender(t)}),t}render(t,r){this.renderers.forEach(n=>{n.render(t,r)})}}const Il=Symbol("__vc_base_context__"),Al={color:{type:String,default:()=>Et("color")},isDark:{type:[Boolean,String,Object],default:()=>Et("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function Nl(e){const t=b(()=>e.color??""),r=b(()=>e.isDark??!1),{displayMode:n}=E_(r),a=b(()=>new B_(t.value)),o=b(()=>{if(e.locale instanceof xn)return e.locale;const f=ht(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new xn(f,e.timezone)}),i=b(()=>o.value.masks),s=b(()=>e.minDate),l=b(()=>e.maxDate),u=b(()=>{const f=e.disabledDates?[...e.disabledDates]:[];return s.value!=null&&f.push({start:null,end:$e(o.value.toDate(s.value),-1)}),l.value!=null&&f.push({start:$e(o.value.toDate(l.value),1),end:null}),o.value.ranges(f)}),c=b(()=>new xl({key:"disabled",dates:u.value,order:100},a.value,o.value)),d={color:t,isDark:r,displayMode:n,theme:a,locale:o,masks:i,minDate:s,maxDate:l,disabledDates:u,disabledAttribute:c};return He(Il,d),d}function j_(e){return Ye(Il,()=>Nl(e),!0)}function Ll(e){return`__vc_slot_${e}__`}function Fl(e,t={}){Object.keys(e).forEach(r=>{He(Ll(t[r]??r),e[r])})}function Wl(e){return Ye(Ll(e),null)}const H_={...Al,view:{type:String,default:"monthly",validator(e){return["daily","weekly","monthly"].includes(e)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>Et("titlePosition")},navVisibility:{type:String,default:()=>Et("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},U_=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],Rl=Symbol("__vc_calendar_context__");function z_(e,{slots:t,emit:r}){const n=j(null),a=j(null),o=j(new Date().getDate()),i=j(!1),s=j(Symbol()),l=j(Symbol()),u=j(e.view),c=j([]),d=j("");let f=null,v=null;Fl(t);const{theme:m,color:y,displayMode:g,locale:p,masks:_,minDate:k,maxDate:D,disabledAttribute:w,disabledDates:O}=j_(e),M=b(()=>e.rows*e.columns),C=b(()=>e.step||M.value),F=b(()=>ll(c.value)??null),W=b(()=>ur(c.value)??null),z=b(()=>e.minPage||(k.value?B(k.value):null)),N=b(()=>e.maxPage||(D.value?B(D.value):null)),R=b(()=>e.navVisibility),Q=b(()=>!!e.showWeeknumbers),I=b(()=>!!e.showIsoWeeknumbers),V=b(()=>u.value==="monthly"),J=b(()=>u.value==="weekly"),he=b(()=>u.value==="daily"),se=()=>{i.value=!0,r("transition-start")},T=()=>{i.value=!1,r("transition-end"),f&&(f.resolve(!0),f=null)},K=(S,h,P=u.value)=>pl(S,h,P,p.value),B=S=>hl(S,u.value,p.value),ce=S=>{!w.value||!Te.value||(S.isDisabled=Te.value.cellExists(w.value.key,S.dayIndex))},ee=S=>{S.isFocusable=S.inMonth&&S.day===o.value},de=(S,h)=>{for(const P of S)for(const Y of P.days)if(h(Y)===!1)return},me=b(()=>c.value.reduce((S,h)=>(S.push(...h.viewDays),S),[])),fe=b(()=>{const S=[];return(e.attributes||[]).forEach((h,P)=>{!h||!h.dates||S.push(new xl({...h,order:h.order||0},m.value,p.value))}),w.value&&S.push(w.value),S}),ge=b(()=>ut(fe.value)),Te=b(()=>{const S=new P$;return fe.value.forEach(h=>{h.ranges.forEach(P=>{S.render(h,P,me.value)})}),S}),st=b(()=>me.value.reduce((S,h)=>(S[h.dayIndex]={day:h,cells:[]},S[h.dayIndex].cells.push(...Te.value.getCells(h)),S),{})),Ue=(S,h)=>{const P=e.showWeeknumbers||e.showIsoWeeknumbers;return P==null?"":Zb(P)?P?"left":"":P.startsWith("right")?h>1?"right":P:S>1?"left":P},Ie=()=>{var S,h;if(!ge.value)return null;const P=fe.value.find(ue=>ue.pinPage)||fe.value[0];if(!P||!P.hasRanges)return null;const[Y]=P.ranges,q=((S=Y.start)==null?void 0:S.date)||((h=Y.end)==null?void 0:h.date);return q?B(q):null},Ae=()=>{if(Je(F.value))return F.value;const S=Ie();return Je(S)?S:B(new Date)},bt=(S,h={})=>{const{view:P=u.value,position:Y=1,force:q}=h,ue=Y>0?1-Y:-(M.value+Y);let De=K(S,ue,P),Ce=K(De,M.value-1,P);return q||(_a(De,z.value)?De=z.value:Sn(Ce,N.value)&&(De=K(N.value,1-M.value)),Ce=K(De,M.value-1)),{fromPage:De,toPage:Ce}},tr=(S,h,P="")=>{if(P==="none"||P==="fade")return P;if((S==null?void 0:S.view)!==(h==null?void 0:h.view))return"fade";const Y=Sn(h,S),q=_a(h,S);return!Y&&!q?"fade":P==="slide-v"?q?"slide-down":"slide-up":q?"slide-right":"slide-left"},Ke=(S={})=>new Promise((h,P)=>{const{position:Y=1,force:q=!1,transition:ue}=S,De=Je(S.page)?S.page:Ae(),{fromPage:Ce}=bt(De,{position:Y,force:q}),nr=[];for(let ar=0;ar<M.value;ar++){const ta=K(Ce,ar),Pe=ar+1,ra=Math.ceil(Pe/e.columns),sn=e.rows-ra+1,xr=Pe%e.columns||e.columns,Tr=e.columns-xr+1,su=Ue(xr,Tr);nr.push(p.value.getPage({...ta,view:u.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:Pe,row:ra,rowFromEnd:sn,column:xr,columnFromEnd:Tr,showWeeknumbers:Q.value,showIsoWeeknumbers:I.value,weeknumberPosition:su}))}d.value=tr(c.value[0],nr[0],ue),c.value=nr,d.value&&d.value!=="none"?f={resolve:h,reject:P}:h(!0)}),Nt=S=>{const h=F.value??B(new Date);return K(h,S)},Lt=(S,h={})=>{const P=Je(S)?S:B(S);return Object.assign(h,bt(P,{...h,force:!0})),_$(h.fromPage,h.toPage,u.value,p.value).map(q=>D$(q,z.value,N.value)).some(q=>q)},Ft=(S,h={})=>Lt(Nt(S),h),ze=b(()=>Ft(-C.value)),wt=b(()=>Ft(C.value)),Dt=async(S,h={})=>!h.force&&!Lt(S,h)?!1:(h.fromPage&&!$$(h.fromPage,F.value)&&(Vr({id:s.value,hideDelay:0}),h.view&&(T_("view",10),u.value=h.view),await Ke({...h,page:h.fromPage,position:1,force:!0}),r("did-move",c.value)),!0),$t=(S,h={})=>Dt(Nt(S),h),_t=()=>$t(-C.value),kt=()=>$t(C.value),Mt=S=>{const h=V.value?".in-month":"",P=`.id-${p.value.getDayId(S)}${h}`,Y=`${P}.vc-focusable, ${P} .vc-focusable`,q=n.value;if(q){const ue=q.querySelector(Y);if(ue)return ue.focus(),!0}return!1},Wt=async(S,h={})=>Mt(S)?!0:(await Dt(S,h),Mt(S)),rr=(S,h)=>{o.value=S.day,r("dayclick",S,h)},Qn=(S,h)=>{r("daymouseenter",S,h)},Sr=(S,h)=>{r("daymouseleave",S,h)},Jn=(S,h)=>{o.value=S.day,a.value=S,S.isFocused=!0,r("dayfocusin",S,h)},rn=(S,h)=>{a.value=null,S.isFocused=!1,r("dayfocusout",S,h)},nn=(S,h)=>{r("daykeydown",S,h);const P=S.noonDate;let Y=null;switch(h.key){case"ArrowLeft":{Y=$e(P,-1);break}case"ArrowRight":{Y=$e(P,1);break}case"ArrowUp":{Y=$e(P,-7);break}case"ArrowDown":{Y=$e(P,7);break}case"Home":{Y=$e(P,-S.weekdayPosition+1);break}case"End":{Y=$e(P,S.weekdayPositionFromEnd);break}case"PageUp":{h.altKey?Y=Ii(P,-1):Y=On(P,-1);break}case"PageDown":{h.altKey?Y=Ii(P,1):Y=On(P,1);break}}Y&&(h.preventDefault(),Wt(Y).catch())},ea=S=>{const h=a.value;h!=null&&nn(h,S)},an=(S,h)=>{r("weeknumberclick",S,h)};Ke({page:e.initialPage,position:e.initialPagePosition}),je(()=>{!e.disablePageSwipe&&n.value&&(v=x_(n.value,({toLeft:S=!1,toRight:h=!1})=>{S?kt():h&&_t()},Et("touch")))}),Xt(()=>{c.value=[],v&&v()}),ve(()=>p.value,()=>{Ke()}),ve(()=>M.value,()=>Ke()),ve(()=>e.view,()=>u.value=e.view),ve(()=>u.value,()=>{C_("view",()=>{Ke()}),r("update:view",u.value)}),ve(()=>o.value,()=>{de(c.value,S=>ee(S))}),nt(()=>{r("update:pages",c.value),de(c.value,S=>{ce(S),ee(S)})});const on={emit:r,containerRef:n,focusedDay:a,inTransition:i,navPopoverId:s,dayPopoverId:l,view:u,pages:c,transitionName:d,theme:m,color:y,displayMode:g,locale:p,masks:_,attributes:fe,disabledAttribute:w,disabledDates:O,attributeContext:Te,days:me,dayCells:st,count:M,step:C,firstPage:F,lastPage:W,canMovePrev:ze,canMoveNext:wt,minPage:z,maxPage:N,isMonthly:V,isWeekly:J,isDaily:he,navVisibility:R,showWeeknumbers:Q,showIsoWeeknumbers:I,getDateAddress:B,canMove:Lt,canMoveBy:Ft,move:Dt,moveBy:$t,movePrev:_t,moveNext:kt,onTransitionBeforeEnter:se,onTransitionAfterEnter:T,tryFocusDate:Mt,focusDate:Wt,onKeydown:ea,onDayKeydown:nn,onDayClick:rr,onDayMouseenter:Qn,onDayMouseleave:Sr,onDayFocusin:Jn,onDayFocusout:rn,onWeeknumberClick:an};return He(Rl,on),on}function er(){const e=Ye(Rl);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const q_=te({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 r;const n=j();let a=null,o=null;const i=Ln({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 s(T){T&&(i.direction=T.split("-")[0])}function l({placement:T,options:K}){s(T||(K==null?void 0:K.placement))}const u=b(()=>({placement:i.placement,strategy:i.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:l},...i.modifiers||[]],onFirstUpdate:l})),c=b(()=>{const T=i.direction==="left"||i.direction==="right";let K="";if(i.placement){const B=i.placement.split("-");B.length>1&&(K=B[1])}return["start","top","left"].includes(K)?T?"top":"left":["end","bottom","right"].includes(K)?T?"bottom":"right":T?"middle":"center"});function d(){o&&(o.destroy(),o=null)}function f(){Lr(()=>{const T=_n(i.target);!T||!n.value||(o&&o.state.elements.reference!==T&&d(),o?o.update():o=Fd(T,n.value,u.value))})}function v(T){Object.assign(i,cl(T,"force"))}function m(T,K){clearTimeout(r),T>0?r=setTimeout(K,T):K()}function y(T){return!T||!o?!1:_n(T)===o.state.elements.reference}async function g(T={}){i.force||(T.force&&(i.force=!0),m(T.showDelay??e.showDelay,()=>{i.isVisible&&(i.force=!1),v({...T,isVisible:!0}),f()}))}function p(T={}){o&&(T.target&&!y(T.target)||i.force||(T.force&&(i.force=!0),m(T.hideDelay??e.hideDelay,()=>{i.isVisible||(i.force=!1),i.isVisible=!1})))}function _(T={}){T.target!=null&&(i.isVisible&&y(T.target)?p(T):g(T))}function k(T){if(!o)return;const K=o.state.elements.reference;if(!n.value||!K)return;const B=T.target;pn(n.value,B)||pn(K,B)||p({force:!0})}function D(T){(T.key==="Esc"||T.key==="Escape")&&p()}function w({detail:T}){!T.id||T.id!==e.id||g(T)}function O({detail:T}){!T.id||T.id!==e.id||p(T)}function M({detail:T}){!T.id||T.id!==e.id||_(T)}function C(){Tt(document,"keydown",D),Tt(document,"click",k),Tt(document,"show-popover",w),Tt(document,"hide-popover",O),Tt(document,"toggle-popover",M)}function F(){xt(document,"keydown",D),xt(document,"click",k),xt(document,"show-popover",w),xt(document,"hide-popover",O),xt(document,"toggle-popover",M)}function W(T){t("before-show",T)}function z(T){i.force=!1,t("after-show",T)}function N(T){t("before-hide",T)}function R(T){i.force=!1,d(),t("after-hide",T)}function Q(T){T.stopPropagation()}function I(){i.isHovered=!0,i.isInteractive&&["hover","hover-focus"].includes(i.visibility)&&g()}function V(){if(i.isHovered=!1,!o)return;const T=o.state.elements.reference;i.autoHide&&!i.isFocused&&(!T||T!==document.activeElement)&&["hover","hover-focus"].includes(i.visibility)&&p()}function J(){i.isFocused=!0,i.isInteractive&&["focus","hover-focus"].includes(i.visibility)&&g()}function he(T){["focus","hover-focus"].includes(i.visibility)&&(!T.relatedTarget||!pn(n.value,T.relatedTarget))&&(i.isFocused=!1,!i.isHovered&&i.autoHide&&p())}function se(){a!=null&&(a.disconnect(),a=null)}return ve(()=>n.value,T=>{se(),T&&(a=new ResizeObserver(()=>{o&&o.update()}),a.observe(T))}),ve(()=>i.placement,s,{immediate:!0}),je(()=>{C()}),Xt(()=>{d(),se(),F()}),{..._u(i),popoverRef:n,alignment:c,hide:p,setupPopper:f,beforeEnter:W,afterEnter:z,beforeLeave:N,afterLeave:R,onClick:Q,onMouseOver:I,onMouseLeave:V,onFocusIn:J,onFocusOut:he}}}),At=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r};function V_(e,t,r,n,a,o){return x(),E("div",{class:Z(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...i)=>e.onClick&&e.onClick(...i)),onMouseover:t[1]||(t[1]=(...i)=>e.onMouseOver&&e.onMouseOver(...i)),onMouseleave:t[2]||(t[2]=(...i)=>e.onMouseLeave&&e.onMouseLeave(...i)),onFocusin:t[3]||(t[3]=(...i)=>e.onFocusIn&&e.onFocusIn(...i)),onFocusout:t[4]||(t[4]=(...i)=>e.onFocusOut&&e.onFocusOut(...i))},[U(bn,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:G(()=>[e.isVisible?(x(),E("div",be({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[ke(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[Ta(pe(e.data),1)]),A("span",{class:Z(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):X("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const fo=At(q_,[["render",V_]]),G_={class:"vc-day-popover-row"},K_={key:0,class:"vc-day-popover-row-indicator"},Z_={class:"vc-day-popover-row-label"},X_=te({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,r=b(()=>{const{content:n,highlight:a,dot:o,bar:i,popover:s}=t.attribute;return s&&s.hideIndicator?null:n?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${n.base.color}`}:a?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${a.base.color}`}:o?{class:`vc-dot vc-attr vc-${o.base.color}`}:i?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${i.base.color}`}:null});return(n,a)=>(x(),E("div",G_,[$(r)?(x(),E("div",K_,[A("span",{class:Z($(r).class)},null,2)])):X("",!0),A("div",Z_,[ke(n.$slots,"default",{},()=>[Ta(pe(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),Q_={inheritAttrs:!1},Le=te({...Q_,__name:"CalendarSlot",props:{name:null},setup(e){const r=Wl(e.name);return(n,a)=>$(r)?(x(),oe(Fn($(r)),Ct(be({key:0},n.$attrs)),null,16)):ke(n.$slots,"default",{key:1})}}),J_={class:"vc-day-popover-container"},ek={key:0,class:"vc-day-popover-header"},tk=te({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:r,color:n,masks:a,locale:o}=er();function i(l,u){return o.value.formatDate(l,u)}function s(l){return o.value.formatDate(l.date,a.value.dayPopover)}return(l,u)=>(x(),oe(fo,{id:$(t),class:Z([`vc-${$(n)}`,`vc-${$(r)}`])},{default:G(({data:{day:c,attributes:d},hide:f})=>[U(Le,{name:"day-popover",day:c,"day-title":s(c),attributes:d,format:i,masks:$(a),hide:f},{default:G(()=>[A("div",J_,[$(a).dayPopover?(x(),E("div",ek,pe(s(c)),1)):X("",!0),(x(!0),E(le,null,Oe(d,v=>(x(),oe(X_,{key:v.key,attribute:v},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),rk={},nk={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},ak=A("polyline",{points:"9 18 15 12 9 6"},null,-1),ok=[ak];function ik(e,t){return x(),E("svg",nk,ok)}const sk=At(rk,[["render",ik]]),lk={},uk={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},ck=A("polyline",{points:"15 18 9 12 15 6"},null,-1),dk=[ck];function fk(e,t){return x(),E("svg",uk,dk)}const vk=At(lk,[["render",fk]]),hk={},pk={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},mk=A("polyline",{points:"6 9 12 15 18 9"},null,-1),gk=[mk];function yk(e,t){return x(),E("svg",pk,gk)}const bk=At(hk,[["render",yk]]),wk={},Dk={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},$k=A("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),_k=[$k];function kk(e,t){return x(),E("svg",Dk,_k)}const Mk=At(wk,[["render",kk]]),Pk=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:bk,IconChevronLeft:vk,IconChevronRight:sk,IconClock:Mk},Symbol.toStringTag,{value:"Module"})),br=te({__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,r=b(()=>t.width||t.size),n=b(()=>t.height||t.size),a=b(()=>Pk[`Icon${t.name}`]);return(o,i)=>(x(),oe(Fn($(a)),{width:$(r),height:$(n),class:"vc-base-icon"},null,8,["width","height"]))}}),Ok=["disabled"],Sk={key:1,class:"vc-title-wrapper"},xk={type:"button",class:"vc-title"},Tk=["disabled"],Bl=te({__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:r,navVisibility:n,canMovePrev:a,movePrev:o,canMoveNext:i,moveNext:s}=er(),l=b(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),u=b(()=>{const{page:y}=t;return{id:r.value,visibility:n.value,placement:l.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:y},isInteractive:!0}}),c=b(()=>t.page.titlePosition.includes("left")),d=b(()=>t.page.titlePosition.includes("right")),f=b(()=>t.layout?t.layout:c.value?"tu-pn":d.value?"pn-tu":"p-tu-n;"),v=b(()=>({prev:f.value.includes("p")&&!t.hideArrows,title:f.value.includes("t")&&!t.hideTitle,next:f.value.includes("n")&&!t.hideArrows})),m=b(()=>({gridTemplateColumns:f.value.split("").map(g=>{switch(g){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(y,g)=>(x(),E("div",{class:Z(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:cr($(m))},[$(v).prev?(x(),E("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!$(a),onClick:g[0]||(g[0]=(...p)=>$(o)&&$(o)(...p)),onKeydown:g[1]||(g[1]=yo((...p)=>$(o)&&$(o)(...p),["space","enter"]))},[U(Le,{name:"header-prev-button",disabled:!$(a)},{default:G(()=>[U(br,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,Ok)):X("",!0),$(v).title?(x(),E("div",Sk,[U(Le,{name:"header-title-wrapper"},{default:G(()=>[Ca((x(),E("button",xk,[U(Le,{name:"header-title",title:e.page.title},{default:G(()=>[A("span",null,pe(e.page.title),1)]),_:1},8,["title"])])),[[$(Yl),$(u)]])]),_:1})])):X("",!0),$(v).next?(x(),E("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!$(i),onClick:g[2]||(g[2]=(...p)=>$(s)&&$(s)(...p)),onKeydown:g[3]||(g[3]=yo((...p)=>$(s)&&$(s)(...p),["space","enter"]))},[U(Le,{name:"header-next-button",disabled:!$(i)},{default:G(()=>[U(br,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,Tk)):X("",!0)],6))}}),jl=Symbol("__vc_page_context__");function Ck(e){const{locale:t,getDateAddress:r,canMove:n}=er();function a(s,l){const{month:u,year:c}=r(new Date);return Sl().map((d,f)=>{const v=f+1;return{month:v,year:s,id:w$(v,s),label:t.value.formatDate(d,l),ariaLabel:t.value.formatDate(d,"MMMM"),isActive:v===e.value.month&&s===e.value.year,isCurrent:v===u&&s===c,isDisabled:!n({month:v,year:s},{position:e.value.position})}})}function o(s,l){const{year:u}=r(new Date),{position:c}=e.value,d=[];for(let f=s;f<=l;f+=1){const v=[...Array(12).keys()].some(m=>n({month:m+1,year:f},{position:c}));d.push({year:f,id:f.toString(),label:f.toString(),ariaLabel:f.toString(),isActive:f===e.value.year,isCurrent:f===u,isDisabled:!v})}return d}const i={page:e,getMonthItems:a,getYearItems:o};return He(jl,i),i}function Hl(){const e=Ye(jl);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const Yk={class:"vc-nav-header"},Ek=["disabled"],Ik=["disabled"],Ak={class:"vc-nav-items"},Nk=["data-id","aria-label","disabled","onClick","onKeydown"],Lk=te({__name:"CalendarNav",setup(e){const{masks:t,move:r}=er(),{page:n,getMonthItems:a,getYearItems:o}=Hl(),i=j(!0),s=12,l=j(n.value.year),u=j(f(n.value.year)),c=j(null);function d(){setTimeout(()=>{if(c.value==null)return;const B=c.value.querySelector(".vc-nav-item:not(:disabled)");B&&B.focus()},10)}function f(B){return Math.floor(B/s)}function v(){i.value=!i.value}function m(B){return B*s}function y(B){return s*(B+1)-1}function g(){J.value&&(i.value&&_(),D())}function p(){he.value&&(i.value&&k(),w())}function _(){l.value--}function k(){l.value++}function D(){u.value--}function w(){u.value++}const O=b(()=>a(l.value,t.value.navMonths).map(B=>({...B,click:()=>r({month:B.month,year:B.year},{position:n.value.position})}))),M=b(()=>a(l.value-1,t.value.navMonths)),C=b(()=>M.value.some(B=>!B.isDisabled)),F=b(()=>a(l.value+1,t.value.navMonths)),W=b(()=>F.value.some(B=>!B.isDisabled)),z=b(()=>o(m(u.value),y(u.value)).map(B=>({...B,click:()=>{l.value=B.year,i.value=!0,d()}}))),N=b(()=>o(m(u.value-1),y(u.value-1))),R=b(()=>N.value.some(B=>!B.isDisabled)),Q=b(()=>o(m(u.value+1),y(u.value+1))),I=b(()=>Q.value.some(B=>!B.isDisabled)),V=b(()=>i.value?O.value:z.value),J=b(()=>i.value?C.value:R.value),he=b(()=>i.value?W.value:I.value),se=b(()=>ll(z.value.map(B=>B.year))),T=b(()=>ur(z.value.map(B=>B.year))),K=b(()=>i.value?l.value:`${se.value} - ${T.value}`);return nt(()=>{l.value=n.value.year,d()}),ve(()=>l.value,B=>u.value=f(B)),je(()=>d()),(B,ce)=>(x(),E("div",{class:"vc-nav-container",ref_key:"navContainer",ref:c},[A("div",Yk,[A("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!$(J),onClick:g,onKeydown:ce[0]||(ce[0]=ee=>$(dn)(ee,g))},[U(Le,{name:"nav-prev-button",move:g,disabled:!$(J)},{default:G(()=>[U(br,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,Ek),A("button",{type:"button",class:"vc-nav-title vc-focus",onClick:v,onKeydown:ce[1]||(ce[1]=ee=>$(dn)(ee,v))},pe($(K)),33),A("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!$(he),onClick:p,onKeydown:ce[2]||(ce[2]=ee=>$(dn)(ee,p))},[U(Le,{name:"nav-next-button",move:p,disabled:!$(he)},{default:G(()=>[U(br,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,Ik)]),A("div",Ak,[(x(!0),E(le,null,Oe($(V),ee=>(x(),E("button",{key:ee.label,type:"button","data-id":ee.id,"aria-label":ee.ariaLabel,class:Z(["vc-nav-item vc-focus",[ee.isActive?"is-active":ee.isCurrent?"is-current":""]]),disabled:ee.isDisabled,onClick:ee.click,onKeydown:de=>$(dn)(de,ee.click)},pe(ee.label),43,Nk))),128))])],512))}}),Ul=te({__name:"CalendarPageProvider",props:{page:null},setup(e){return Ck(ft(e,"page")),(r,n)=>ke(r.$slots,"default")}}),Fk=te({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:r,displayMode:n}=er();return(a,o)=>(x(),oe(fo,{id:$(t),class:Z(["vc-nav-popover-container",`vc-${$(r)}`,`vc-${$(n)}`])},{default:G(({data:i})=>[U(Ul,{page:i.page},{default:G(()=>[U(Le,{name:"nav"},{default:G(()=>[U(Lk)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),Wk=te({directives:{popover:Yl},components:{CalendarSlot:Le},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:r,attributeContext:n,dayPopoverId:a,onDayClick:o,onDayMouseenter:i,onDayMouseleave:s,onDayFocusin:l,onDayFocusout:u,onDayKeydown:c}=er(),d=b(()=>e.day),f=b(()=>n.value.getCells(d.value)),v=b(()=>f.value.map(I=>I.data)),m=b(()=>({...d.value,attributes:v.value,attributeCells:f.value}));function y({data:I},{popovers:V}){const{key:J,customData:he,popover:se}=I;if(!se)return;const T=mi({key:J,customData:he,attribute:I},{...se},{visibility:se.label?"hover":"click",placement:"bottom",isInteractive:!se.label});V.splice(0,0,T)}const g=b(()=>{const I={...r.value.prepareRender({}),popovers:[]};return f.value.forEach(V=>{r.value.render(V,I),y(V,I)}),I}),p=b(()=>g.value.highlights),_=b(()=>!!ut(p.value)),k=b(()=>g.value.content),D=b(()=>g.value.dots),w=b(()=>!!ut(D.value)),O=b(()=>g.value.bars),M=b(()=>!!ut(O.value)),C=b(()=>g.value.popovers),F=b(()=>C.value.map(I=>I.attribute)),W=Wl("day-content"),z=b(()=>["vc-day",...d.value.classes,{"vc-day-box-center-center":!W},{"is-not-in-month":!e.day.inMonth}]),N=b(()=>{let I;d.value.isFocusable?I="0":I="-1";const V=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":d.value.isDisabled},Ut(ur(p.value),"contentClass"),Ut(ur(k.value),"class")||""],J={...Ut(ur(p.value),"contentStyle"),...Ut(ur(k.value),"style")};return{class:V,style:J,tabindex:I,"aria-label":d.value.ariaLabel,"aria-disabled":!!d.value.isDisabled,role:"button"}}),R=b(()=>({click(I){o(m.value,I)},mouseenter(I){i(m.value,I)},mouseleave(I){s(m.value,I)},focusin(I){l(m.value,I)},focusout(I){u(m.value,I)},keydown(I){c(m.value,I)}})),Q=b(()=>ut(C.value)?mi({id:a.value,data:{day:d,attributes:F.value}},...C.value):null);return{attributes:v,attributeCells:f,bars:O,dayClasses:z,dayContentProps:N,dayContentEvents:R,dayPopover:Q,glyphs:g,dots:D,hasDots:w,hasBars:M,highlights:p,hasHighlights:_,locale:t,popovers:C}}}),Rk={key:0,class:"vc-highlights vc-day-layer"},Bk={key:1,class:"vc-day-layer vc-day-box-center-bottom"},jk={class:"vc-dots"},Hk={key:2,class:"vc-day-layer vc-day-box-center-bottom"},Uk={class:"vc-bars"};function zk(e,t,r,n,a,o){const i=Ne("CalendarSlot"),s=Mu("popover");return x(),E("div",{class:Z(e.dayClasses)},[e.hasHighlights?(x(),E("div",Rk,[(x(!0),E(le,null,Oe(e.highlights,({key:l,wrapperClass:u,class:c,style:d})=>(x(),E("div",{key:l,class:Z(u)},[A("div",{class:Z(c),style:cr(d)},null,6)],2))),128))])):X("",!0),U(i,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:G(()=>[Ca((x(),E("div",be(e.dayContentProps,Pu(e.dayContentEvents,!0)),[Ta(pe(e.day.label),1)],16)),[[s,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(x(),E("div",Bk,[A("div",jk,[(x(!0),E(le,null,Oe(e.dots,({key:l,class:u,style:c})=>(x(),E("span",{key:l,class:Z(u),style:cr(c)},null,6))),128))])])):X("",!0),e.hasBars?(x(),E("div",Hk,[A("div",Uk,[(x(!0),E(le,null,Oe(e.bars,({key:l,class:u,style:c})=>(x(),E("span",{key:l,class:Z(u),style:cr(c)},null,6))),128))])])):X("",!0)],2)}const qk=At(Wk,[["render",zk]]),Vk={class:"vc-weekdays"},Gk=["onClick"],Kk={inheritAttrs:!1},Zk=te({...Kk,__name:"CalendarPage",setup(e){const{page:t}=Hl(),{onWeeknumberClick:r}=er();return(n,a)=>(x(),E("div",{class:Z(["vc-pane",`row-${$(t).row}`,`row-from-end-${$(t).rowFromEnd}`,`column-${$(t).column}`,`column-from-end-${$(t).columnFromEnd}`]),ref:"pane"},[U(Bl,{page:$(t),"is-lg":"","hide-arrows":""},null,8,["page"]),A("div",{class:Z(["vc-weeks",{[`vc-show-weeknumbers-${$(t).weeknumberPosition}`]:$(t).weeknumberPosition}])},[A("div",Vk,[(x(!0),E(le,null,Oe($(t).weekdays,({weekday:o,label:i},s)=>(x(),E("div",{key:s,class:Z(`vc-weekday vc-weekday-${o}`)},pe(i),3))),128))]),(x(!0),E(le,null,Oe($(t).viewWeeks,o=>(x(),E("div",{key:`weeknumber-${o.weeknumber}`,class:"vc-week"},[$(t).weeknumberPosition?(x(),E("div",{key:0,class:Z(["vc-weeknumber",`is-${$(t).weeknumberPosition}`])},[A("span",{class:Z(["vc-weeknumber-content"]),onClick:i=>$(r)(o,i)},pe(o.weeknumberDisplay),9,Gk)],2)):X("",!0),(x(!0),E(le,null,Oe(o.days,i=>(x(),oe(qk,{key:i.id,day:i},null,8,["day"]))),128))]))),128))],2)],2))}}),Xk=te({components:{CalendarHeader:Bl,CalendarPage:Zk,CalendarNavPopover:Fk,CalendarDayPopover:tk,CalendarPageProvider:Ul,CalendarSlot:Le},props:H_,emit:U_,setup(e,{emit:t,slots:r}){return z_(e,{emit:t,slots:r})}}),Qk={class:"vc-pane-header-wrapper"};function Jk(e,t,r,n,a,o){const i=Ne("CalendarHeader"),s=Ne("CalendarPage"),l=Ne("CalendarSlot"),u=Ne("CalendarPageProvider"),c=Ne("CalendarDayPopover"),d=Ne("CalendarNavPopover");return x(),E(le,null,[A("div",be({"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]=ku(()=>{},["prevent"])),ref:"containerRef"}),[A("div",{class:Z(["vc-pane-container",{"in-transition":e.inTransition}])},[A("div",Qk,[e.firstPage?(x(),oe(i,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):X("",!0)]),U(bn,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:G(()=>[(x(),E("div",{key:e.pages[0].id,class:"vc-pane-layout",style:cr({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(x(!0),E(le,null,Oe(e.pages,f=>(x(),oe(u,{key:f.id,page:f},{default:G(()=>[U(l,{name:"page",page:f},{default:G(()=>[U(s)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),U(l,{name:"footer"})],2)],16),U(c),U(d)],64)}const e2=At(Xk,[["render",Jk]]),zl=Symbol("__vc_date_picker_context__"),t2={...Al,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:()=>Et("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>Et("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},r2=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function n2(e,{emit:t,slots:r}){Fl(r,{footer:"dp-footer"});const n=Nl(e),{locale:a,masks:o,disabledAttribute:i}=n,s=j(!1),l=j(Symbol()),u=j(null),c=j(null),d=j(["",""]),f=j(null),v=j(null);let m,y,g=!0;const p=b(()=>e.isRange||e.modelModifiers.range===!0),_=b(()=>p.value&&u.value!=null?u.value.start:null),k=b(()=>p.value&&u.value!=null?u.value.end:null),D=b(()=>e.mode.toLowerCase()==="date"),w=b(()=>e.mode.toLowerCase()==="datetime"),O=b(()=>e.mode.toLowerCase()==="time"),M=b(()=>!!c.value),C=b(()=>{let h="date";e.modelModifiers.number&&(h="number"),e.modelModifiers.string&&(h="string");const P=o.value.modelValue||"iso";return ce({type:h,mask:P})}),F=b(()=>Ft(c.value??u.value)),W=b(()=>O.value?e.is24hr?o.value.inputTime24hr:o.value.inputTime:w.value?e.is24hr?o.value.inputDateTime24hr:o.value.inputDateTime:o.value.input),z=b(()=>/[Hh]/g.test(W.value)),N=b(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(W.value)),R=b(()=>{if(z.value&&N.value)return"dateTime";if(N.value)return"date";if(z.value)return"time"}),Q=b(()=>{var h;const P=((h=f.value)==null?void 0:h.$el.previousElementSibling)??void 0;return qr({},e.popover,Et("datePicker.popover"),{target:P})}),I=b(()=>Cl({...Q.value,id:l.value})),V=b(()=>p.value?{start:d.value[0],end:d.value[1]}:d.value[0]),J=b(()=>{const h=["start","end"].map(P=>({input:Ke(P),change:Nt(P),keyup:Lt,...e.popover&&I.value}));return p.value?{start:h[0],end:h[1]}:h[0]}),he=b(()=>{if(!fe(u.value))return null;const h={key:"select-drag",...e.selectAttribute,dates:u.value,pinPage:!0},{dot:P,bar:Y,highlight:q,content:ue}=h;return!P&&!Y&&!q&&!ue&&(h.highlight=!0),h}),se=b(()=>{if(!p.value||!fe(c.value))return null;const h={key:"select-drag",...e.dragAttribute,dates:c.value},{dot:P,bar:Y,highlight:q,content:ue}=h;return!P&&!Y&&!q&&!ue&&(h.highlight={startEnd:{fillMode:"outline"}}),h}),T=b(()=>{const h=We(e.attributes)?[...e.attributes]:[];return se.value?h.unshift(se.value):he.value&&h.unshift(he.value),h}),K=b(()=>ce(e.rules==="auto"?B():e.rules??{}));function B(){const h={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},P=D.value?0:e.timeAccuracy;return[0,1].map(Y=>{switch(P){case 0:return{hours:h.hr[Y],minutes:h.min[Y],seconds:h.sec[Y],milliseconds:h.ms[Y]};case 1:return{minutes:h.min[Y],seconds:h.sec[Y],milliseconds:h.ms[Y]};case 3:return{milliseconds:h.ms[Y]};case 4:return{};default:return{seconds:h.sec[Y],milliseconds:h.ms[Y]}}})}function ce(h){return We(h)?h.length===1?[h[0],h[0]]:h:[h,h]}function ee(h){return ce(h).map((P,Y)=>({...P,rules:K.value[Y]}))}function de(h){return h==null?!1:qe(h)?!isNaN(h):dr(h)?!isNaN(h.getTime()):Qe(h)?h!=="":so(h)}function me(h){return ht(h)&&"start"in h&&"end"in h&&de(h.start??null)&&de(h.end??null)}function fe(h){return me(h)||de(h)}function ge(h,P){if(h==null&&P==null)return!0;if(h==null||P==null)return!1;const Y=dr(h),q=dr(P);return Y&&q?h.getTime()===P.getTime():Y||q?!1:ge(h.start,P.start)&&ge(h.end,P.end)}function Te(h){return!fe(h)||!i.value?!1:i.value.intersectsRange(a.value.range(h))}function st(h,P,Y,q){if(!fe(h))return null;if(me(h)){const ue=a.value.toDate(h.start,{...P[0],fillDate:_.value??void 0,patch:Y}),De=a.value.toDate(h.end,{...P[1],fillDate:k.value??void 0,patch:Y});return rn({start:ue,end:De},q)}return a.value.toDateOrNull(h,{...P[0],fillDate:u.value,patch:Y})}function Ue(h,P){return me(h)?{start:a.value.fromDate(h.start,P[0]),end:a.value.fromDate(h.end,P[1])}:p.value?null:a.value.fromDate(h,P[0])}function Ie(h,P={}){return clearTimeout(m),new Promise(Y=>{const{debounce:q=0,...ue}=P;q>0?m=window.setTimeout(()=>{Y(Ae(h,ue))},q):Y(Ae(h,ue))})}function Ae(h,{config:P=C.value,patch:Y="dateTime",clearIfEqual:q=!1,formatInput:ue=!0,hidePopover:De=!1,dragging:Ce=M.value,targetPriority:nr,moveToValue:ar=!1}={}){const ta=ee(P);let Pe=st(h,ta,Y,nr);if(Te(Pe)){if(Ce)return null;Pe=u.value,De=!1}else Pe==null&&e.isRequired?Pe=u.value:Pe!=null&&ge(u.value,Pe)&&q&&(Pe=null);const sn=Ce?c:u,xr=!ge(sn.value,Pe);sn.value=Pe,Ce||(c.value=null);const Tr=Ue(Pe,C.value);return xr&&(g=!1,t(Ce?"drag":"update:modelValue",Tr),Lr(()=>g=!0)),De&&!Ce&&Sr(),ue&&bt(),ar&&Lr(()=>an(nr??"start")),Tr}function bt(){Lr(()=>{const h=ee({type:"string",mask:W.value}),P=Ue(c.value??u.value,h);p.value?d.value=[P&&P.start,P&&P.end]:d.value=[P,""]})}function tr(h,P,Y){d.value.splice(P==="start"?0:1,1,h);const q=p.value?{start:d.value[0],end:d.value[1]||d.value[0]}:h,ue={type:"string",mask:W.value};Ie(q,{...Y,config:ue,patch:R.value,targetPriority:P,moveToValue:!0})}function Ke(h){return P=>{e.updateOnInput&&tr(P.currentTarget.value,h,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function Nt(h){return P=>{tr(P.currentTarget.value,h,{formatInput:!0,hidePopover:!1})}}function Lt(h){h.key==="Escape"&&Ie(u.value,{formatInput:!0,hidePopover:!0})}function Ft(h){return p.value?[h&&h.start?a.value.getDateParts(h.start):null,h&&h.end?a.value.getDateParts(h.end):null]:[h?a.value.getDateParts(h):null]}function ze(){c.value=null,bt()}function wt(h){t("popover-will-show",h)}function Dt(h){t("popover-did-show",h)}function $t(h){ze(),t("popover-will-hide",h)}function _t(h){t("popover-did-hide",h)}function kt(h){const P={patch:"date",formatInput:!0,hidePopover:!0};if(p.value){const Y=!M.value;Y?y={start:h.startDate,end:h.endDate}:y!=null&&(y.end=h.date),Ie(y,{...P,dragging:Y})}else Ie(h.date,{...P,clearIfEqual:!e.isRequired})}function Mt(h,P){kt(h),t("dayclick",h,P)}function Wt(h,P){switch(P.key){case" ":case"Enter":{kt(h),P.preventDefault();break}case"Escape":Sr()}t("daykeydown",h,P)}function rr(h,P){!M.value||y==null||(y.end=h.date,Ie(rn(y),{patch:"date",formatInput:!0}))}function Qn(h={}){Pa({...Q.value,...h,isInteractive:!0,id:l.value})}function Sr(h={}){Vr({hideDelay:10,force:!0,...Q.value,...h,id:l.value})}function Jn(h){Tl({...Q.value,...h,isInteractive:!0,id:l.value})}function rn(h,P){const{start:Y,end:q}=h;if(Y>q)switch(P){case"start":return{start:Y,end:Y};case"end":return{start:q,end:q};default:return{start:q,end:Y}}return{start:Y,end:q}}async function nn(h,P={}){return v.value==null?!1:v.value.move(h,P)}async function ea(h,P={}){return v.value==null?!1:v.value.moveBy(h,P)}async function an(h,P={}){const Y=u.value;if(v.value==null||!fe(Y))return!1;const q=h!=="end",ue=q?1:-1,De=me(Y)?q?Y.start:Y.end:Y,Ce=hl(De,"monthly",a.value);return v.value.move(Ce,{position:ue,...P})}ve(()=>e.isRange,h=>{h&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),ve(()=>p.value,()=>{Ae(null,{formatInput:!0})}),ve(()=>W.value,()=>bt()),ve(()=>e.modelValue,h=>{g&&Ae(h,{formatInput:!0,hidePopover:!1})}),ve(()=>K.value,()=>{ht(e.rules)&&Ae(e.modelValue,{formatInput:!0,hidePopover:!1})}),ve(()=>e.timezone,()=>{Ae(u.value,{formatInput:!0})});const on=ce(C.value);u.value=st(e.modelValue??null,on,"dateTime"),je(()=>{Ae(e.modelValue,{formatInput:!0,hidePopover:!1})}),Lr(()=>s.value=!0);const S={...n,showCalendar:s,datePickerPopoverId:l,popoverRef:f,popoverEvents:I,calendarRef:v,isRange:p,isTimeMode:O,isDateTimeMode:w,is24hr:ft(e,"is24hr"),hideTimeHeader:ft(e,"hideTimeHeader"),timeAccuracy:ft(e,"timeAccuracy"),isDragging:M,inputValue:V,inputEvents:J,dateParts:F,attributes:T,rules:K,move:nn,moveBy:ea,moveToValue:an,updateValue:Ie,showPopover:Qn,hidePopover:Sr,togglePopover:Jn,onDayClick:Mt,onDayKeydown:Wt,onDayMouseEnter:rr,onPopoverBeforeShow:wt,onPopoverAfterShow:Dt,onPopoverBeforeHide:$t,onPopoverAfterHide:_t};return He(zl,S),S}function vo(){const e=Ye(zl);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const a2=[{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"}],o2=[{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 i2(e){const t=vo(),{locale:r,isRange:n,isTimeMode:a,dateParts:o,rules:i,is24hr:s,hideTimeHeader:l,timeAccuracy:u,updateValue:c}=t;function d(N){N=Object.assign(v.value,N);let R=null;if(n.value){const Q=f.value?N:o.value[0],I=f.value?o.value[1]:N;R={start:Q,end:I}}else R=N;c(R,{patch:"time",targetPriority:f.value?"start":"end",moveToValue:!0})}const f=b(()=>e.position===0),v=b(()=>o.value[e.position]||{isValid:!1}),m=b(()=>so(v.value)),y=b(()=>!!v.value.isValid),g=b(()=>!l.value&&y.value),p=b(()=>{if(!m.value)return null;let N=r.value.toDate(v.value);return v.value.hours===24&&(N=new Date(N.getTime()-1)),N}),_=b({get(){return v.value.hours},set(N){d({hours:N})}}),k=b({get(){return v.value.minutes},set(N){d({minutes:N})}}),D=b({get(){return v.value.seconds},set(N){d({seconds:N})}}),w=b({get(){return v.value.milliseconds},set(N){d({milliseconds:N})}}),O=b({get(){return v.value.hours<12},set(N){N=String(N).toLowerCase()=="true";let R=_.value;N&&R>=12?R-=12:!N&&R<12&&(R+=12),d({hours:R})}}),M=b(()=>k_(v.value,i.value[e.position])),C=b(()=>a2.filter(N=>M.value.hours.some(R=>R.value===N.value))),F=b(()=>o2.filter(N=>M.value.hours.some(R=>R.value===N.value))),W=b(()=>s.value?M.value.hours:O.value?C.value:F.value),z=b(()=>{const N=[];return ut(C.value)&&N.push({value:!0,label:"AM"}),ut(F.value)&&N.push({value:!1,label:"PM"}),N});return{...t,showHeader:g,timeAccuracy:u,parts:v,isValid:y,date:p,hours:_,minutes:k,seconds:D,milliseconds:w,options:M,hourOptions:W,isAM:O,isAMOptions:z,is24hr:s}}const s2=["value"],l2=["value","disabled"],u2={key:1,class:"vc-base-sizer","aria-hidden":"true"},c2={inheritAttrs:!1},Ir=te({...c2,__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,r=b(()=>{const n=t.options.find(a=>a.value===t.modelValue);return n==null?void 0:n.label});return(n,a)=>(x(),E("div",{class:Z(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[A("select",be(n.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:a[0]||(a[0]=o=>n.$emit("update:modelValue",o.target.value))}),[(x(!0),E(le,null,Oe(e.options,o=>(x(),E("option",{key:o.value,value:o.value,disabled:o.disabled},pe(o.label),9,l2))),128))],16,s2),e.showIcon?(x(),oe(br,{key:0,name:"ChevronDown",size:"18"})):X("",!0),e.fitContent?(x(),E("div",u2,pe($(r)),1)):X("",!0)],2))}}),d2={key:0,class:"vc-time-header"},f2={class:"vc-time-weekday"},v2={class:"vc-time-month"},h2={class:"vc-time-day"},p2={class:"vc-time-year"},m2={class:"vc-time-select-group"},g2=A("span",{class:"vc-time-colon"},":",-1),y2=A("span",{class:"vc-time-colon"},":",-1),b2=A("span",{class:"vc-time-decimal"},".",-1),zi=te({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const n=i2(e);t(n);const{locale:a,isValid:o,date:i,hours:s,minutes:l,seconds:u,milliseconds:c,options:d,hourOptions:f,isTimeMode:v,isAM:m,isAMOptions:y,is24hr:g,showHeader:p,timeAccuracy:_}=n;return(k,D)=>(x(),E("div",{class:Z(["vc-time-picker",[{"vc-invalid":!$(o),"vc-attached":!$(v)}]])},[U(Le,{name:"time-header"},{default:G(()=>[$(p)&&$(i)?(x(),E("div",d2,[A("span",f2,pe($(a).formatDate($(i),"WWW")),1),A("span",v2,pe($(a).formatDate($(i),"MMM")),1),A("span",h2,pe($(a).formatDate($(i),"D")),1),A("span",p2,pe($(a).formatDate($(i),"YYYY")),1)])):X("",!0)]),_:1}),A("div",m2,[U(br,{name:"Clock",size:"17"}),U(Ir,{modelValue:$(s),"onUpdate:modelValue":D[0]||(D[0]=w=>Ht(s)?s.value=w:null),modelModifiers:{number:!0},options:$(f),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),$(_)>1?(x(),E(le,{key:0},[g2,U(Ir,{modelValue:$(l),"onUpdate:modelValue":D[1]||(D[1]=w=>Ht(l)?l.value=w:null),modelModifiers:{number:!0},options:$(d).minutes,class:"vc-time-select-minutes","align-left":$(_)===2},null,8,["modelValue","options","align-left"])],64)):X("",!0),$(_)>2?(x(),E(le,{key:1},[y2,U(Ir,{modelValue:$(u),"onUpdate:modelValue":D[2]||(D[2]=w=>Ht(u)?u.value=w:null),modelModifiers:{number:!0},options:$(d).seconds,class:"vc-time-select-seconds","align-left":$(_)===3},null,8,["modelValue","options","align-left"])],64)):X("",!0),$(_)>3?(x(),E(le,{key:2},[b2,U(Ir,{modelValue:$(c),"onUpdate:modelValue":D[3]||(D[3]=w=>Ht(c)?c.value=w:null),modelModifiers:{number:!0},options:$(d).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):X("",!0),$(g)?X("",!0):(x(),oe(Ir,{key:3,modelValue:$(m),"onUpdate:modelValue":D[4]||(D[4]=w=>Ht(m)?m.value=w:null),options:$(y)},null,8,["modelValue","options"]))])],2))}}),ql=te({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:r,color:n,displayMode:a,isDateTimeMode:o,isTimeMode:i,isRange:s,onDayClick:l,onDayMouseEnter:u,onDayKeydown:c}=vo(),d=s.value?[0,1]:[0];return(f,v)=>$(i)?(x(),E("div",{key:0,class:Z(`vc-container vc-bordered vc-${$(n)} vc-${$(a)}`)},[(x(!0),E(le,null,Oe($(d),m=>(x(),oe(zi,{key:m,position:m},null,8,["position"]))),128))],2)):(x(),oe(e2,{key:1,attributes:$(t),ref_key:"calendarRef",ref:r,onDayclick:$(l),onDaymouseenter:$(u),onDaykeydown:$(c)},{footer:G(()=>[$(o)?(x(!0),E(le,{key:0},Oe($(d),m=>(x(),oe(zi,{key:m,position:m},null,8,["position"]))),128)):X("",!0),U(Le,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),w2={inheritAttrs:!1},D2=te({...w2,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:r,displayMode:n,popoverRef:a,onPopoverBeforeShow:o,onPopoverAfterShow:i,onPopoverBeforeHide:s,onPopoverAfterHide:l}=vo();return(u,c)=>(x(),oe(fo,{id:$(t),placement:"bottom-start",class:Z(`vc-date-picker-content vc-${$(r)} vc-${$(n)}`),ref_key:"popoverRef",ref:a,onBeforeShow:$(o),onAfterShow:$(i),onBeforeHide:$(s),onAfterHide:$(l)},{default:G(()=>[U(ql,Ct(vr(u.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),$2=te({inheritAttrs:!1,emits:r2,props:t2,components:{DatePickerBase:ql,DatePickerPopover:D2},setup(e,t){const r=n2(e,t),n=Ln(cl(r,"calendarRef","popoverRef"));return{...r,slotCtx:n}}});function _2(e,t,r,n,a,o){const i=Ne("DatePickerPopover"),s=Ne("DatePickerBase");return e.$slots.default?(x(),E(le,{key:0},[ke(e.$slots,"default",Ct(vr(e.slotCtx))),U(i,Ct(vr(e.$attrs)),null,16)],64)):(x(),oe(s,Ct(be({key:1},e.$attrs)),null,16))}const k2=At($2,[["render",_2]]),M2=te({__name:"DatePicker",props:{modelValue:{type:[Date,Object],default:null}},emits:["update:model-value","close"],setup(e,{emit:t}){const r=e,n=t,a=b({get:()=>r.modelValue,set:i=>{n("update:model-value",i),n("close")}}),o={transparent:!0,borderless:!0,color:"primary","is-dark":{selector:"html",darkClass:"dark"},"first-day-of-week":2};return(i,s)=>(x(),oe($(k2),be({onDayclick:s[0]||(s[0]=(l,u)=>{u.target.blur()}),modelValue:$(a),"onUpdate:modelValue":s[1]||(s[1]=l=>Ht(a)?a.value=l:null)},{...o,...i.$attrs}),null,16,["modelValue"]))}});var qi;let Vl=Symbol("headlessui.useid"),P2=0;const jr=(qi=as)!=null?qi:function(){return Ye(Vl,()=>`${++P2}`)()};function O2(e){He(Vl,e)}function H(e){var t;if(e==null||e.value==null)return null;let r=(t=e.value.$el)!=null?t:e.value;return r instanceof Node?r:null}function mt(e,t,...r){if(e in t){let a=t[e];return typeof a=="function"?a(...r):a}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,mt),n}var S2=Object.defineProperty,x2=(e,t,r)=>t in e?S2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vi=(e,t,r)=>(x2(e,typeof t!="symbol"?t+"":t,r),r);let T2=class{constructor(){Vi(this,"current",this.detect()),Vi(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Gn=new T2;function tn(e){if(Gn.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=H(e);if(t)return t.ownerDocument}return document}let Oa=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ct=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(ct||{}),Cn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Cn||{}),C2=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(C2||{});function Kn(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Oa)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var ho=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ho||{});function Gl(e,t=0){var r;return e===((r=tn(e))==null?void 0:r.body)?!1:mt(t,{0(){return e.matches(Oa)},1(){let n=e;for(;n!==null;){if(n.matches(Oa))return!0;n=n.parentElement}return!1}})}var Y2=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Y2||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let E2=["textarea","input"].join(",");function I2(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,E2))!=null?r:!1}function A2(e,t=r=>r){return e.slice().sort((r,n)=>{let a=t(r),o=t(n);if(a===null||o===null)return 0;let i=a.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function zt(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:a=[]}={}){var o;let i=(o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?o:document,s=Array.isArray(e)?r?A2(e):e:Kn(e);a.length>0&&s.length>1&&(s=s.filter(m=>!a.includes(m))),n=n??i.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(n))-1;if(t&4)return Math.max(0,s.indexOf(n))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},d=0,f=s.length,v;do{if(d>=f||d+f<=0)return 0;let m=u+d;if(t&16)m=(m+f)%f;else{if(m<0)return 3;if(m>=f)return 1}v=s[m],v==null||v.focus(c),d+=l}while(v!==i.activeElement);return t&6&&I2(v)&&v.select(),2}function N2(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function L2(){return/Android/gi.test(window.navigator.userAgent)}function F2(){return N2()||L2()}function fn(e,t,r){Gn.isServer||nt(n=>{document.addEventListener(e,t,r),n(()=>document.removeEventListener(e,t,r))})}function Kl(e,t,r){Gn.isServer||nt(n=>{window.addEventListener(e,t,r),n(()=>window.removeEventListener(e,t,r))})}function W2(e,t,r=b(()=>!0)){function n(o,i){if(!r.value||o.defaultPrevented)return;let s=i(o);if(s===null||!s.getRootNode().contains(s))return;let l=function u(c){return typeof c=="function"?u(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let u of l){if(u===null)continue;let c=u instanceof HTMLElement?u:H(u);if(c!=null&&c.contains(s)||o.composed&&o.composedPath().includes(c))return}return!Gl(s,ho.Loose)&&s.tabIndex!==-1&&o.preventDefault(),t(o,s)}let a=j(null);fn("pointerdown",o=>{var i,s;r.value&&(a.value=((s=(i=o.composedPath)==null?void 0:i.call(o))==null?void 0:s[0])||o.target)},!0),fn("mousedown",o=>{var i,s;r.value&&(a.value=((s=(i=o.composedPath)==null?void 0:i.call(o))==null?void 0:s[0])||o.target)},!0),fn("click",o=>{F2()||a.value&&(n(o,()=>a.value),a.value=null)},!0),fn("touchend",o=>n(o,()=>o.target instanceof HTMLElement?o.target:null),!0),Kl("blur",o=>n(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Gi(e,t){if(e)return e;let r=t??"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function R2(e,t){let r=j(Gi(e.value.type,e.value.as));return je(()=>{r.value=Gi(e.value.type,e.value.as)}),nt(()=>{var n;r.value||H(t)&&H(t)instanceof HTMLButtonElement&&!((n=H(t))!=null&&n.hasAttribute("type"))&&(r.value="button")}),r}var Sa=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Sa||{}),B2=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(B2||{});function Zn({visible:e=!0,features:t=0,ourProps:r,theirProps:n,...a}){var o;let i=Xl(n,r),s=Object.assign(a,{props:i});if(e||t&2&&i.static)return da(s);if(t&1){let l=(o=i.unmount)==null||o?0:1;return mt(l,{0(){return null},1(){return da({...a,props:{...i,hidden:!0,style:{display:"none"}}})}})}return da(s)}function da({props:e,attrs:t,slots:r,slot:n,name:a}){var o,i;let{as:s,...l}=j2(e,["unmount","static"]),u=(o=r.default)==null?void 0:o.call(r,n),c={};if(n){let d=!1,f=[];for(let[v,m]of Object.entries(n))typeof m=="boolean"&&(d=!0),m===!0&&f.push(v);d&&(c["data-headlessui-state"]=f.join(" "))}if(s==="template"){if(u=Zl(u??[]),Object.keys(l).length>0||Object.keys(t).length>0){let[d,...f]=u??[];if(!H2(d)||f.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${a} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(l).concat(Object.keys(t)).map(y=>y.trim()).filter((y,g,p)=>p.indexOf(y)===g).sort((y,g)=>y.localeCompare(g)).map(y=>`  - ${y}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(y=>`  - ${y}`).join(`
`)].join(`
`));let v=Xl((i=d.props)!=null?i:{},l,c),m=Ou(d,v,!0);for(let y in v)y.startsWith("on")&&(m.props||(m.props={}),m.props[y]=v[y]);return m}return Array.isArray(u)&&u.length===1?u[0]:u}return et(s,Object.assign({},l,c),{default:()=>u})}function Zl(e){return e.flatMap(t=>t.type===le?Zl(t.children):[t])}function Xl(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let a in n)a.startsWith("on")&&typeof n[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(n[a])):t[a]=n[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](a,...o){let i=r[n];for(let s of i){if(a instanceof Event&&a.defaultPrevented)return;s(a,...o)}}});return t}function j2(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function H2(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var Gr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Gr||{});let Yn=te({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:r}){return()=>{var n;let{features:a,...o}=e,i={"aria-hidden":(a&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(a&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(a&4)===4&&(a&2)!==2&&{display:"none"}}};return Zn({ourProps:i,theirProps:o,slot:{},attrs:r,slots:t,name:"Hidden"})}}}),Ql=Symbol("Context");var Kr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Kr||{});function U2(){return Ye(Ql,null)}function z2(e){He(Ql,e)}var St=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(St||{});function q2(e,t,r,n){Gn.isServer||nt(a=>{e=e??window,e.addEventListener(t,r,n),a(()=>e.removeEventListener(t,r,n))})}var dt=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(dt||{});function Jl(){let e=j(0);return Kl("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function V2({defaultContainers:e=[],portals:t,mainTreeNodeRef:r}={}){let n=j(null),a=tn(n);function o(){var i,s,l;let u=[];for(let c of e)c!==null&&(c instanceof HTMLElement?u.push(c):"value"in c&&c.value instanceof HTMLElement&&u.push(c.value));if(t!=null&&t.value)for(let c of t.value)u.push(c);for(let c of(i=a==null?void 0:a.querySelectorAll("html > *, body > *"))!=null?i:[])c!==document.body&&c!==document.head&&c instanceof HTMLElement&&c.id!=="headlessui-portal-root"&&(c.contains(H(n))||c.contains((l=(s=H(n))==null?void 0:s.getRootNode())==null?void 0:l.host)||u.some(d=>c.contains(d))||u.push(c));return u}return{resolveContainers:o,contains(i){return o().some(s=>s.contains(i))},mainTreeNodeRef:n,MainTreeNode(){return r!=null?null:et(Yn,{features:Gr.Hidden,ref:n})}}}let Ki=Symbol("PortalParentContext");function G2(){let e=Ye(Ki,null),t=j([]);function r(o){return t.value.push(o),e&&e.register(o),()=>n(o)}function n(o){let i=t.value.indexOf(o);i!==-1&&t.value.splice(i,1),e&&e.unregister(o)}let a={register:r,unregister:n,portals:t};return[t,te({name:"PortalWrapper",setup(o,{slots:i}){return He(Ki,a),()=>{var s;return(s=i.default)==null?void 0:s.call(i)}}})]}var K2=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(K2||{});let eu=Symbol("PopoverContext");function po(e){let t=Ye(eu,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <${nu.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,po),r}return t}let Z2=Symbol("PopoverGroupContext");function tu(){return Ye(Z2,null)}let ru=Symbol("PopoverPanelContext");function X2(){return Ye(ru,null)}let nu=te({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:r,expose:n}){var a;let o=j(null);n({el:o,$el:o});let i=j(1),s=j(null),l=j(null),u=j(null),c=j(null),d=b(()=>tn(o)),f=b(()=>{var w,O;if(!H(s)||!H(c))return!1;for(let R of document.querySelectorAll("body > *"))if(Number(R==null?void 0:R.contains(H(s)))^Number(R==null?void 0:R.contains(H(c))))return!0;let M=Kn(),C=M.indexOf(H(s)),F=(C+M.length-1)%M.length,W=(C+1)%M.length,z=M[F],N=M[W];return!((w=H(c))!=null&&w.contains(z))&&!((O=H(c))!=null&&O.contains(N))}),v={popoverState:i,buttonId:j(null),panelId:j(null),panel:c,button:s,isPortalled:f,beforePanelSentinel:l,afterPanelSentinel:u,togglePopover(){i.value=mt(i.value,{0:1,1:0})},closePopover(){i.value!==1&&(i.value=1)},close(w){v.closePopover();let O=w?w instanceof HTMLElement?w:w.value instanceof HTMLElement?H(w):H(v.button):H(v.button);O==null||O.focus()}};He(eu,v),z2(b(()=>mt(i.value,{0:Kr.Open,1:Kr.Closed})));let m={buttonId:v.buttonId,panelId:v.panelId,close(){v.closePopover()}},y=tu(),g=y==null?void 0:y.registerPopover,[p,_]=G2(),k=V2({mainTreeNodeRef:y==null?void 0:y.mainTreeNodeRef,portals:p,defaultContainers:[s,c]});function D(){var w,O,M,C;return(C=y==null?void 0:y.isFocusWithinPopoverGroup())!=null?C:((w=d.value)==null?void 0:w.activeElement)&&(((O=H(s))==null?void 0:O.contains(d.value.activeElement))||((M=H(c))==null?void 0:M.contains(d.value.activeElement)))}return nt(()=>g==null?void 0:g(m)),q2((a=d.value)==null?void 0:a.defaultView,"focus",w=>{var O,M;w.target!==window&&w.target instanceof HTMLElement&&i.value===0&&(D()||s&&c&&(k.contains(w.target)||(O=H(v.beforePanelSentinel))!=null&&O.contains(w.target)||(M=H(v.afterPanelSentinel))!=null&&M.contains(w.target)||v.closePopover()))},!0),W2(k.resolveContainers,(w,O)=>{var M;v.closePopover(),Gl(O,ho.Loose)||(w.preventDefault(),(M=H(s))==null||M.focus())},b(()=>i.value===0)),()=>{let w={open:i.value===0,close:v.close};return et(le,[et(_,{},()=>Zn({theirProps:{...e,...r},ourProps:{ref:o},slot:w,slots:t,attrs:r,name:"Popover"})),et(k.MainTreeNode)])}}}),Q2=te({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:r,expose:n}){var a;let o=(a=e.id)!=null?a:`headlessui-popover-button-${jr()}`,i=po("PopoverButton"),s=b(()=>tn(i.button));n({el:i.button,$el:i.button}),je(()=>{i.buttonId.value=o}),Xt(()=>{i.buttonId.value=null});let l=tu(),u=l==null?void 0:l.closeOthers,c=X2(),d=b(()=>c===null?!1:c.value===i.panelId.value),f=j(null),v=`headlessui-focus-sentinel-${jr()}`;d.value||nt(()=>{i.button.value=H(f)});let m=R2(b(()=>({as:e.as,type:t.type})),f);function y(w){var O,M,C,F,W;if(d.value){if(i.popoverState.value===1)return;switch(w.key){case St.Space:case St.Enter:w.preventDefault(),(M=(O=w.target).click)==null||M.call(O),i.closePopover(),(C=H(i.button))==null||C.focus();break}}else switch(w.key){case St.Space:case St.Enter:w.preventDefault(),w.stopPropagation(),i.popoverState.value===1&&(u==null||u(i.buttonId.value)),i.togglePopover();break;case St.Escape:if(i.popoverState.value!==0)return u==null?void 0:u(i.buttonId.value);if(!H(i.button)||(F=s.value)!=null&&F.activeElement&&!((W=H(i.button))!=null&&W.contains(s.value.activeElement)))return;w.preventDefault(),w.stopPropagation(),i.closePopover();break}}function g(w){d.value||w.key===St.Space&&w.preventDefault()}function p(w){var O,M;e.disabled||(d.value?(i.closePopover(),(O=H(i.button))==null||O.focus()):(w.preventDefault(),w.stopPropagation(),i.popoverState.value===1&&(u==null||u(i.buttonId.value)),i.togglePopover(),(M=H(i.button))==null||M.focus()))}function _(w){w.preventDefault(),w.stopPropagation()}let k=Jl();function D(){let w=H(i.panel);if(!w)return;function O(){mt(k.value,{[dt.Forwards]:()=>zt(w,ct.First),[dt.Backwards]:()=>zt(w,ct.Last)})===Cn.Error&&zt(Kn().filter(M=>M.dataset.headlessuiFocusGuard!=="true"),mt(k.value,{[dt.Forwards]:ct.Next,[dt.Backwards]:ct.Previous}),{relativeTo:H(i.button)})}O()}return()=>{let w=i.popoverState.value===0,O={open:w},{...M}=e,C=d.value?{ref:f,type:m.value,onKeydown:y,onClick:p}:{ref:f,id:o,type:m.value,"aria-expanded":i.popoverState.value===0,"aria-controls":H(i.panel)?i.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:y,onKeyup:g,onClick:p,onMousedown:_};return et(le,[Zn({ourProps:C,theirProps:{...t,...M},slot:O,attrs:t,slots:r,name:"PopoverButton"}),w&&!d.value&&i.isPortalled.value&&et(Yn,{id:v,features:Gr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:D})])}}}),J2=te({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:r,expose:n}){var a;let o=(a=e.id)!=null?a:`headlessui-popover-panel-${jr()}`,{focus:i}=e,s=po("PopoverPanel"),l=b(()=>tn(s.panel)),u=`headlessui-focus-sentinel-before-${jr()}`,c=`headlessui-focus-sentinel-after-${jr()}`;n({el:s.panel,$el:s.panel}),je(()=>{s.panelId.value=o}),Xt(()=>{s.panelId.value=null}),He(ru,s.panelId),nt(()=>{var _,k;if(!i||s.popoverState.value!==0||!s.panel)return;let D=(_=l.value)==null?void 0:_.activeElement;(k=H(s.panel))!=null&&k.contains(D)||zt(H(s.panel),ct.First)});let d=U2(),f=b(()=>d!==null?(d.value&Kr.Open)===Kr.Open:s.popoverState.value===0);function v(_){var k,D;switch(_.key){case St.Escape:if(s.popoverState.value!==0||!H(s.panel)||l.value&&!((k=H(s.panel))!=null&&k.contains(l.value.activeElement)))return;_.preventDefault(),_.stopPropagation(),s.closePopover(),(D=H(s.button))==null||D.focus();break}}function m(_){var k,D,w,O,M;let C=_.relatedTarget;C&&H(s.panel)&&((k=H(s.panel))!=null&&k.contains(C)||(s.closePopover(),((w=(D=H(s.beforePanelSentinel))==null?void 0:D.contains)!=null&&w.call(D,C)||(M=(O=H(s.afterPanelSentinel))==null?void 0:O.contains)!=null&&M.call(O,C))&&C.focus({preventScroll:!0})))}let y=Jl();function g(){let _=H(s.panel);if(!_)return;function k(){mt(y.value,{[dt.Forwards]:()=>{var D;zt(_,ct.First)===Cn.Error&&((D=H(s.afterPanelSentinel))==null||D.focus())},[dt.Backwards]:()=>{var D;(D=H(s.button))==null||D.focus({preventScroll:!0})}})}k()}function p(){let _=H(s.panel);if(!_)return;function k(){mt(y.value,{[dt.Forwards]:()=>{let D=H(s.button),w=H(s.panel);if(!D)return;let O=Kn(),M=O.indexOf(D),C=O.slice(0,M+1),F=[...O.slice(M+1),...C];for(let W of F.slice())if(W.dataset.headlessuiFocusGuard==="true"||w!=null&&w.contains(W)){let z=F.indexOf(W);z!==-1&&F.splice(z,1)}zt(F,ct.First,{sorted:!1})},[dt.Backwards]:()=>{var D;zt(_,ct.Previous)===Cn.Error&&((D=H(s.button))==null||D.focus())}})}k()}return()=>{let _={open:s.popoverState.value===0,close:s.close},{focus:k,...D}=e,w={ref:s.panel,id:o,onKeydown:v,onFocusout:i&&s.popoverState.value===0?m:void 0,tabIndex:-1};return Zn({ourProps:w,theirProps:{...t,...D},attrs:t,slot:_,slots:{...r,default:(...O)=>{var M;return[et(le,[f.value&&s.isPortalled.value&&et(Yn,{id:u,ref:s.beforePanelSentinel,features:Gr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g}),(M=r.default)==null?void 0:M.call(r,...O),f.value&&s.isPortalled.value&&et(Yn,{id:c,ref:s.afterPanelSentinel,features:Gr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:p})])]}},features:Sa.RenderStrategy|Sa.Static,visible:f.value,name:"PopoverPanel"})}}});const eM=Ps({defaultModifiers:[...Nd,_s,$s,Ms,Wa,Ra,bs]});function tM({locked:e=!1,overflowPadding:t=8,offsetDistance:r=8,offsetSkid:n=0,gpuAcceleration:a=!0,adaptive:o=!0,scroll:i=!0,resize:s=!0,arrow:l=!1,placement:u,strategy:c},d){const f=j(null),v=j(null),m=j(null);return je(()=>{nt(y=>{if(!v.value||!f.value&&!(d!=null&&d.value))return;const g=_o(v),p=_o(f);if(!(g instanceof HTMLElement)||!p)return;const _={modifiers:[{name:"flip",enabled:!e},{name:"preventOverflow",options:{padding:t}},{name:"offset",options:{offset:[n,r]}},{name:"computeStyles",options:{adaptive:o,gpuAcceleration:a}},{name:"eventListeners",options:{scroll:i,resize:s}},{name:"arrow",enabled:l}]};u&&(_.placement=u),c&&(_.strategy=c),m.value=eM(p,g,_),y(m.value.destroy)})}),[f,v,m]}const fa=Wn(Vt.ui.strategy,Vt.ui.popover,Ac),rM=te({components:{HPopover:nu,HPopoverButton:Q2,HPopoverPanel:J2},inheritAttrs:!1,props:{mode:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},open:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},openDelay:{type:Number,default:()=>fa.default.openDelay},closeDelay:{type:Number,default:()=>fa.default.closeDelay},overlay:{type:Boolean,default:!1},popper:{type:Object,default:()=>({})},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:open"],setup(e,{emit:t}){const{ui:r,attrs:n}=Ia("popover",ft(e,"ui"),fa,ft(e,"class")),a=b(()=>xa(e.mode==="hover"?{offsetDistance:0}:{},e.popper,r.value.popper)),[o,i]=tM(a.value),s=j(null),l=j(null);let u=null,c=null;je(()=>{var p,_;const y=(p=s.value)==null?void 0:p.$.provides;if(!y)return;const g=Object.getOwnPropertySymbols(y);l.value=g.length&&y[g[0]],e.open&&((_=l.value)==null||_.togglePopover())});const d=b(()=>{var _,k,D;if(e.mode!=="hover")return{};const y=((_=e.popper)==null?void 0:_.offsetDistance)||((k=r.value.popper)==null?void 0:k.offsetDistance)||8,g=(D=a.value.placement)==null?void 0:D.split("-")[0],p=`${y}px`;return g==="top"||g==="bottom"?{paddingTop:p,paddingBottom:p}:g==="left"||g==="right"?{paddingLeft:p,paddingRight:p}:{paddingTop:p,paddingBottom:p,paddingLeft:p,paddingRight:p}});function f(y){!y.cancelable||!l.value||e.mode==="click"||(l.value.popoverState===0?l.value.closePopover():l.value.togglePopover())}function v(){e.mode!=="hover"||!l.value||(c&&(clearTimeout(c),c=null),l.value.popoverState!==0&&(u=u||setTimeout(()=>{l.value.togglePopover&&l.value.togglePopover(),u=null},e.openDelay)))}function m(){e.mode!=="hover"||!l.value||(u&&(clearTimeout(u),u=null),l.value.popoverState!==1&&(c=c||setTimeout(()=>{l.value.closePopover&&l.value.closePopover(),c=null},e.closeDelay)))}return ve(()=>e.open,(y,g)=>{l.value&&(g===void 0||y===g||(y?l.value.popoverState=0:l.value.closePopover()))}),ve(()=>{var y;return(y=l.value)==null?void 0:y.popoverState},(y,g)=>{g===void 0||y===g||t("update:open",y===0)}),O2(()=>as()),{ui:r,attrs:n,popover:s,popper:a,trigger:o,container:i,containerStyle:d,onTouchStart:f,onMouseEnter:v,onMouseLeave:m}}}),nM=["disabled"];function aM(e,t,r,n,a,o){const i=Ne("HPopoverButton"),s=Ne("HPopoverPanel"),l=Ne("HPopover");return x(),oe(l,be({ref:"popover",class:e.ui.wrapper},e.attrs,{onMouseleave:e.onMouseLeave}),{default:G(({open:u,close:c})=>[U(i,{ref:"trigger",as:"div",disabled:e.disabled,class:Z(e.ui.trigger),role:"button",onMouseenter:e.onMouseEnter,onTouchstartPassive:e.onTouchStart},{default:G(()=>[ke(e.$slots,"default",{open:u,close:c},()=>[A("button",{disabled:e.disabled}," Open ",8,nM)])]),_:2},1032,["disabled","class","onMouseenter","onTouchstartPassive"]),e.overlay?(x(),oe(bn,be({key:0,appear:""},e.ui.overlay.transition),{default:G(()=>[u?(x(),E("div",{key:0,class:Z([e.ui.overlay.base,e.ui.overlay.background])},null,2)):X("",!0)]),_:2},1040)):X("",!0),u?(x(),E("div",{key:1,ref:"container",class:Z([e.ui.container,e.ui.width]),style:cr(e.containerStyle),onMouseenter:t[0]||(t[0]=(...d)=>e.onMouseEnter&&e.onMouseEnter(...d))},[U(bn,be({appear:""},e.ui.transition),{default:G(()=>[A("div",null,[e.popper.arrow?(x(),E("div",{key:0,"data-popper-arrow":"",class:Z(Object.values(e.ui.arrow))},null,2)):X("",!0),U(s,{class:Z([e.ui.base,e.ui.background,e.ui.ring,e.ui.rounded,e.ui.shadow]),static:""},{default:G(()=>[ke(e.$slots,"panel",{open:u,close:c})]),_:2},1032,["class"])])]),_:2},1040)],38)):X("",!0)]),_:3},16,["class","onMouseleave"])}const oM=Zr(rM,[["render",aM]]),iM=Wn(Vt.ui.strategy,Vt.ui.card,Ic),sM=te({inheritAttrs:!1,props:{as:{type:String,default:"div"},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:r}=Ia("card",ft(e,"ui"),iM),n=b(()=>ns(vn(t.value.base,t.value.rounded,t.value.divide,t.value.ring,t.value.shadow,t.value.background),e.class));return{ui:t,attrs:r,cardClass:n}}});function lM(e,t,r,n,a,o){return x(),oe(Fn(e.$attrs.onSubmit?"form":e.as),be({class:e.cardClass},e.attrs),{default:G(()=>[e.$slots.header?(x(),E("div",{key:0,class:Z([e.ui.header.base,e.ui.header.padding,e.ui.header.background])},[ke(e.$slots,"header")],2)):X("",!0),e.$slots.default?(x(),E("div",{key:1,class:Z([e.ui.body.base,e.ui.body.padding,e.ui.body.background])},[ke(e.$slots,"default")],2)):X("",!0),e.$slots.footer?(x(),E("div",{key:2,class:Z([e.ui.footer.base,e.ui.footer.padding,e.ui.footer.background])},[ke(e.$slots,"footer")],2)):X("",!0)]),_:3},16,["class"])}const uM=Zr(sM,[["render",lM]]);function En(e){"@babel/helpers - typeof";return En=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},En(e)}function Zt(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)}function Me(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function it(e){Me(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||En(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 cM(e,t){Me(2,arguments);var r=it(e).getTime(),n=Zt(t);return new Date(r+n)}var dM={};function Xn(){return dM}function fM(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 vM(e){return Me(1,arguments),e instanceof Date||En(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function hM(e){if(Me(1,arguments),!vM(e)&&typeof e!="number")return!1;var t=it(e);return!isNaN(Number(t))}function pM(e,t){Me(2,arguments);var r=Zt(t);return cM(e,-r)}var mM=864e5;function gM(e){Me(1,arguments);var t=it(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),a=r-n;return Math.floor(a/mM)+1}function In(e){Me(1,arguments);var t=1,r=it(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function au(e){Me(1,arguments);var t=it(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=In(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var i=In(o);return t.getTime()>=a.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function yM(e){Me(1,arguments);var t=au(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=In(r);return n}var bM=6048e5;function wM(e){Me(1,arguments);var t=it(e),r=In(t).getTime()-yM(t).getTime();return Math.round(r/bM)+1}function An(e,t){var r,n,a,o,i,s,l,u;Me(1,arguments);var c=Xn(),d=Zt((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=it(e),v=f.getUTCDay(),m=(v<d?7:0)+v-d;return f.setUTCDate(f.getUTCDate()-m),f.setUTCHours(0,0,0,0),f}function ou(e,t){var r,n,a,o,i,s,l,u;Me(1,arguments);var c=it(e),d=c.getUTCFullYear(),f=Xn(),v=Zt((r=(n=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&n!==void 0?n:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,v),m.setUTCHours(0,0,0,0);var y=An(m,t),g=new Date(0);g.setUTCFullYear(d,0,v),g.setUTCHours(0,0,0,0);var p=An(g,t);return c.getTime()>=y.getTime()?d+1:c.getTime()>=p.getTime()?d:d-1}function DM(e,t){var r,n,a,o,i,s,l,u;Me(1,arguments);var c=Xn(),d=Zt((r=(n=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&n!==void 0?n:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:1),f=ou(e,t),v=new Date(0);v.setUTCFullYear(f,0,d),v.setUTCHours(0,0,0,0);var m=An(v,t);return m}var $M=6048e5;function _M(e,t){Me(1,arguments);var r=it(e),n=An(r,t).getTime()-DM(r,t).getTime();return Math.round(n/$M)+1}function re(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var Ot={y:function(t,r){var n=t.getUTCFullYear(),a=n>0?n:1-n;return re(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):re(n+1,2)},d:function(t,r){return re(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return re(t.getUTCHours()%12||12,r.length)},H:function(t,r){return re(t.getUTCHours(),r.length)},m:function(t,r){return re(t.getUTCMinutes(),r.length)},s:function(t,r){return re(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,a=t.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,n-3));return re(o,r.length)}},or={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kM={G:function(t,r,n){var a=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var a=t.getUTCFullYear(),o=a>0?a:1-a;return n.ordinalNumber(o,{unit:"year"})}return Ot.y(t,r)},Y:function(t,r,n,a){var o=ou(t,a),i=o>0?o:1-o;if(r==="YY"){var s=i%100;return re(s,2)}return r==="Yo"?n.ordinalNumber(i,{unit:"year"}):re(i,r.length)},R:function(t,r){var n=au(t);return re(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return re(n,r.length)},Q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return re(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return re(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,r,n){var a=t.getUTCMonth();switch(r){case"M":case"MM":return Ot.M(t,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,r,n){var a=t.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return re(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,r,n,a){var o=_M(t,a);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):re(o,r.length)},I:function(t,r,n){var a=wM(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):re(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Ot.d(t,r)},D:function(t,r,n){var a=gM(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):re(a,r.length)},E:function(t,r,n){var a=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,r,n,a){var o=t.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return re(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,a){var o=t.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return re(i,r.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var a=t.getUTCDay(),o=a===0?7:a;switch(r){case"i":return String(o);case"ii":return re(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,r,n){var a=t.getUTCHours(),o=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var a=t.getUTCHours(),o;switch(a===12?o=or.noon:a===0?o=or.midnight:o=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var a=t.getUTCHours(),o;switch(a>=17?o=or.evening:a>=12?o=or.afternoon:a>=4?o=or.morning:o=or.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return Ot.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Ot.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):re(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):re(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Ot.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Ot.s(t,r)},S:function(t,r){return Ot.S(t,r)},X:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return Xi(i);case"XXXX":case"XX":return jt(i);case"XXXXX":case"XXX":default:return jt(i,":")}},x:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"x":return Xi(i);case"xxxx":case"xx":return jt(i);case"xxxxx":case"xxx":default:return jt(i,":")}},O:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Zi(i,":");case"OOOO":default:return"GMT"+jt(i,":")}},z:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Zi(i,":");case"zzzz":default:return"GMT"+jt(i,":")}},t:function(t,r,n,a){var o=a._originalDate||t,i=Math.floor(o.getTime()/1e3);return re(i,r.length)},T:function(t,r,n,a){var o=a._originalDate||t,i=o.getTime();return re(i,r.length)}};function Zi(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),o=n%60;if(o===0)return r+String(a);var i=t;return r+String(a)+i+re(o,2)}function Xi(e,t){if(e%60===0){var r=e>0?"-":"+";return r+re(Math.abs(e)/60,2)}return jt(e,t)}function jt(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),o=re(Math.floor(a/60),2),i=re(a%60,2);return n+o+r+i}var Qi=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},iu=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},MM=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return Qi(t,r);var i;switch(a){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",Qi(a,r)).replace("{{time}}",iu(o,r))},PM={p:iu,P:MM},OM=["D","DD"],SM=["YY","YYYY"];function xM(e){return OM.indexOf(e)!==-1}function TM(e){return SM.indexOf(e)!==-1}function Ji(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var CM={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},YM=function(t,r,n){var a,o=CM[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function va(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var EM={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},IM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},AM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},NM={date:va({formats:EM,defaultWidth:"full"}),time:va({formats:IM,defaultWidth:"full"}),dateTime:va({formats:AM,defaultWidth:"full"})},LM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},FM=function(t,r,n,a){return LM[t]};function Ar(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):o;a=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return a[u]}}var WM={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},RM={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},BM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},jM={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},HM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},UM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zM=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},qM={ordinalNumber:zM,era:Ar({values:WM,defaultWidth:"wide"}),quarter:Ar({values:RM,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ar({values:BM,defaultWidth:"wide"}),day:Ar({values:jM,defaultWidth:"wide"}),dayPeriod:Ar({values:HM,defaultWidth:"wide",formattingValues:UM,defaultFormattingWidth:"wide"})};function Nr(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?GM(s,function(d){return d.test(i)}):VM(s,function(d){return d.test(i)}),u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;var c=t.slice(i.length);return{value:u,rest:c}}}function VM(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function GM(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function KM(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;var s=t.slice(a.length);return{value:i,rest:s}}}var ZM=/^(\d+)(th|st|nd|rd)?/i,XM=/\d+/i,QM={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},JM={any:[/^b/i,/^(a|c)/i]},eP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tP={any:[/1/i,/2/i,/3/i,/4/i]},rP={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},nP={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},aP={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},oP={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},iP={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},sP={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},lP={ordinalNumber:KM({matchPattern:ZM,parsePattern:XM,valueCallback:function(t){return parseInt(t,10)}}),era:Nr({matchPatterns:QM,defaultMatchWidth:"wide",parsePatterns:JM,defaultParseWidth:"any"}),quarter:Nr({matchPatterns:eP,defaultMatchWidth:"wide",parsePatterns:tP,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Nr({matchPatterns:rP,defaultMatchWidth:"wide",parsePatterns:nP,defaultParseWidth:"any"}),day:Nr({matchPatterns:aP,defaultMatchWidth:"wide",parsePatterns:oP,defaultParseWidth:"any"}),dayPeriod:Nr({matchPatterns:iP,defaultMatchWidth:"any",parsePatterns:sP,defaultParseWidth:"any"})},uP={code:"en-US",formatDistance:YM,formatLong:NM,formatRelative:FM,localize:qM,match:lP,options:{weekStartsOn:0,firstWeekContainsDate:1}},cP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fP=/^'([^]*?)'?$/,vP=/''/g,hP=/[a-zA-Z]/;function es(e,t,r){var n,a,o,i,s,l,u,c,d,f,v,m,y,g,p,_,k,D;Me(2,arguments);var w=String(t),O=Xn(),M=(n=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:O.locale)!==null&&n!==void 0?n:uP,C=Zt((o=(i=(s=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(u=r.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:O.firstWeekContainsDate)!==null&&i!==void 0?i:(d=O.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=Zt((v=(m=(y=(g=r==null?void 0:r.weekStartsOn)!==null&&g!==void 0?g:r==null||(p=r.locale)===null||p===void 0||(_=p.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&y!==void 0?y:O.weekStartsOn)!==null&&m!==void 0?m:(k=O.locale)===null||k===void 0||(D=k.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&v!==void 0?v:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!M.localize)throw new RangeError("locale must contain localize property");if(!M.formatLong)throw new RangeError("locale must contain formatLong property");var W=it(e);if(!hM(W))throw new RangeError("Invalid time value");var z=fM(W),N=pM(W,z),R={firstWeekContainsDate:C,weekStartsOn:F,locale:M,_originalDate:W},Q=w.match(dP).map(function(I){var V=I[0];if(V==="p"||V==="P"){var J=PM[V];return J(I,M.formatLong)}return I}).join("").match(cP).map(function(I){if(I==="''")return"'";var V=I[0];if(V==="'")return pP(I);var J=kM[V];if(J)return!(r!=null&&r.useAdditionalWeekYearTokens)&&TM(I)&&Ji(I,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&xM(I)&&Ji(I,t,String(e)),J(N,I,M.localize,R);if(V.match(hP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+V+"`");return I}).join("");return Q}function pP(e){var t=e.match(fP);return t?t[1].replace(vP,"'"):e}const mP=()=>Su("color-mode").value,gP=xu("newsStore",{state:()=>({newsReport:[],date:null,latestDate:null,cachedNews:{}}),actions:{async fetch(){try{const{data:e}=await $o("/api/news","$bdyiBYoUGW");e.value&&(this.newsReport=e.value,this.date=new Date(this.newsReport.timestamp),this.latestDate=new Date(this.newsReport.timestamp))}catch(e){console.error("Failed to fetch news:",e)}},async fetchWithDate(){try{const e=this.date.toLocaleDateString("en-CA");if(this.cachedNews[e]){this.newsReport=this.cachedNews[e];return}const{data:t}=await $o(`/api/news?date=${e}`,"$YSq6UYuVuQ");t.value&&(this.newsReport=t.value[0],this.cachedNews[e]=this.newsReport)}catch(e){console.error("Failed to fetch news:",e)}}}}),yP={class:"bg-gray-100 dark:bg-gray-950 min-h-screen flex flex-col relative"},bP={key:0,class:"absolute inset-0 bg-gray-100/80 dark:bg-gray-950/80 flex items-center justify-center z-50"},wP={class:"bg-gray-100 dark:bg-gray-950 flex flex-row justify-between items-center px-5 py-4 text-2xl font-bold text-gray-900 dark:text-gray-100 sticky top-0 z-20"},DP={class:"flex flex-row gap-6 ml-4"},$P={key:0,class:"flex flex-col items-center"},_P={class:"flex flex-col xl:flex-row"},kP={class:"xl:w-1/3 p-4 xl:sticky xl:top-24 xl:h-[calc(100vh-theme(spacing.24))]"},MP={class:"flex flex-col gap-4 items-center justify-center"},PP={class:"flex flex-col gap-1"},OP={class:"text-sm text-gray-600 dark:text-gray-300"},SP={key:0,class:"xl:relative xl:w-full"},xP=["src"],TP={key:1,class:"relative w-full pt-[56.25%] bg-gray-200 dark:bg-gray-800 animate-pulse rounded-lg"},CP={class:"absolute top-0 left-0 w-full h-full flex items-center justify-center"},YP={class:"xl:w-2/3 p-4 xl:overflow-y-auto"},EP={class:"flex flex-col gap-4"},IP={class:"flex md:flex-row flex-col gap-4 w-full"},AP={class:"md:w-1/3 w-full h-48 bg-gray-200 dark:bg-gray-800 animate-pulse rounded-lg flex items-center justify-center"},NP={class:"flex md:flex-row flex-col gap-4"},LP={key:0,class:"flex items-center justify-center md:w-1/3 h-48 bg-gray-200 dark:bg-gray-800 animate-pulse rounded-lg"},FP={class:"flex flex-col gap-2"},WP={class:"font-bold text-lg text-gray-900 dark:text-gray-100"},RP={class:"text-lg text-gray-700 dark:text-gray-400"},qP={__name:"index",async setup(e){let t,r;const n=j({}),a=mP(),o=b({get(){return a.value==="dark"},set(){a.preference=a.value==="dark"?"light":"dark"}}),i=gP();[t,r]=Tu(()=>rc(i.fetch,"$PslAyef5YX")),await t,r();const{date:s,newsReport:l,latestDate:u}=Cu(i),c=b(()=>!l.value||l.value.length===0||!u.value||!s.value),d=b(()=>new Date("2024-10-09"));ve(s,v=>{v.toLocaleDateString("en-CA").includes("-")&&(l.value=null,i.fetchWithDate()),window.scrollTo({top:0,behavior:"smooth"})}),ve(()=>{var v;return(v=l.value)==null?void 0:v.news},v=>{v&&(n.value=v.reduce((m,y,g)=>(m[g]=!1,m),{}))},{immediate:!0});const f=v=>{n.value[v]=!0};return(v,m)=>{const y=Ea,g=Sc,p=Fc,_=Rc,k=M2,D=oM,w=uM;return x(),E("div",yP,[$(c)?(x(),E("div",bP,[U(y,{name:"i-heroicons-arrow-path",class:"w-12 h-12 text-blue-500 animate-spin"})])):X("",!0),A("div",wP,[U(g,{format:"webp",alt:"website logo",src:"/news.svg",class:"w-12 h-12 sm:w-14 sm:h-14 md:w-16 md:h-16 lg:w-20 lg:h-20"}),A("div",DP,[U(_,null,{fallback:G(()=>m[2]||(m[2]=[A("div",{class:"w-8 h-8"},null,-1)])),default:G(()=>[U(p,{icon:$(o)?"i-heroicons-moon-20-solid":"i-heroicons-sun-20-solid",color:"gray",variant:"ghost","aria-label":"Theme",onClick:m[0]||(m[0]=O=>o.value=!$(o)),size:"lg"},null,8,["icon"])]),_:1}),$(c)?X("",!0):(x(),E("div",$P,[m[3]||(m[3]=A("span",{class:"text-xs md:text-sm text-gray-600 dark:text-gray-300"},"Change news date",-1)),U(D,{popper:{placement:"bottom-start"}},{panel:G(({close:O})=>[U(k,{class:"min-w-[300px]",modelValue:$(s),"onUpdate:modelValue":m[1]||(m[1]=M=>Ht(s)?s.value=M:null),"min-date":$(d),"max-date":$(u),"disabled-dates":[{repeat:{weekdays:[1,7]}}],"is-required":"",onClose:O},null,8,["modelValue","min-date","max-date","onClose"])]),default:G(()=>[U(p,{icon:"i-heroicons-calendar-days-20-solid",label:$(es)($(s),"d MMM, yyy"),color:"blue",size:"lg"},null,8,["label"])]),_:1})]))])]),A("div",_P,[A("div",kP,[A("div",MP,[A("div",PP,[m[4]||(m[4]=A("h3",{class:"text-xl font-bold text-gray-900 dark:text-gray-100"},"Tech headlines 5 min Podcast",-1)),A("span",OP,"Selected Date: "+pe($(es)($(s),"EEEE, d MMMM, yyyy")),1)]),$(l)?(x(),E("div",SP,[A("iframe",{src:`https://www.youtube.com/embed/${$(l).videoId}`,class:"min-w-[300px] min-h-[300px] xl:absolute xl:top-0 xl:left-0 xl:w-full xl:h-full rounded-lg",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen"},null,8,xP)])):(x(),E("div",TP,[A("div",CP,[U(y,{name:"i-heroicons-video-camera",class:"w-12 h-12 text-gray-400 dark:text-gray-600"})])]))])]),A("div",YP,[A("div",EP,[m[6]||(m[6]=A("div",{class:"flex flex-col items-center gap-4"},[A("div",{class:"flex flex-row items-center gap-2 text-xl font-bold text-gray-900 dark:text-gray-100"},[A("h3",null,"AI generated summary")])],-1)),$(l)?(x(!0),E(le,{key:1},Oe($(l).news,(O,M)=>(x(),oe(w,{key:O.id},{default:G(()=>[A("div",NP,[O.image_url?(x(),E(le,{key:0},[Ca(U(g,{format:"webp",src:O.image_url,class:"md:w-1/3 md:h-48 rounded-lg",alt:"image of article "+M,onLoad:C=>f(M)},null,8,["src","alt","onLoad"]),[[Yu,$(n)[M]]]),$(n)[M]?X("",!0):(x(),E("div",LP,[U(y,{name:"i-heroicons-photo",class:"w-12 h-12 text-gray-400 dark:text-gray-600"})]))],64)):X("",!0),A("div",FP,[A("p",WP,pe(O.title),1),A("p",RP,pe(O.summary),1)])])]),_:2},1024))),128)):(x(),E(le,{key:0},Oe(3,O=>U(w,{key:O,class:"w-full"},{default:G(()=>[A("div",IP,[A("div",AP,[U(y,{name:"i-heroicons-photo",class:"w-12 h-12 text-gray-400 dark:text-gray-600"})]),m[5]||(m[5]=A("div",{class:"flex flex-col gap-4 flex-grow w-full"},[A("div",{class:"h-6 bg-gray-200 dark:bg-gray-800 animate-pulse rounded w-3/4"}),A("div",{class:"space-y-3"},[A("div",{class:"h-4 bg-gray-200 dark:bg-gray-800 animate-pulse rounded w-full"}),A("div",{class:"h-4 bg-gray-200 dark:bg-gray-800 animate-pulse rounded w-5/6"}),A("div",{class:"h-4 bg-gray-200 dark:bg-gray-800 animate-pulse rounded w-4/6"})])],-1))])]),_:2},1024)),64))])])])])}}};export{qP as default};
