@vanduo-oss/vue 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,22 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.0 (unreleased)
3
+ ## 0.2.0
4
+
5
+ - **Decoupled theme defaults from the docs site.** The package now ships the
6
+ generic Vanduo baseline from `@vanduo-oss/core` instead of baking in the vd2
7
+ site override (`PRIMARY_DARK: "blue"`). Apps supply their own overrides via
8
+ the new `setThemeDefaults()` helper, or `app.use(VanduoVue, { themeDefaults })`.
9
+ - Added: `setThemeDefaults(overrides)`, `getThemeDefaults()`, and the
10
+ `ThemeDefaults` type (re-exported from core).
11
+ - Added: `VanduoVue` plugin now accepts a `VanduoVueOptions` argument with
12
+ `themeDefaults`.
13
+ - Removed: the internal `DEFAULTS` constant export (was the site-overridden
14
+ set). Read `getThemeDefaults()` for the effective values.
15
+ - Breaking for consumers that relied on the baked-in `PRIMARY_DARK: "blue"`
16
+ default — pass `{ themeDefaults: { PRIMARY_DARK: "blue" } }` to restore it.
17
+ - Bumped the supported Node floor to `>=24` (CI now runs on Node 24).
18
+
19
+ ## 0.1.0
4
20
 
5
21
  - Initial extraction of VD2 from the docs app: 41 `Vd*` components (incl. 7
6
22
  layout primitives) + 30 composables, published as `@vanduo-oss/vue`.
@@ -4,19 +4,29 @@
4
4
  * truth shared with the Vanilla framework. This file keeps only the Vue-side
5
5
  * application logic that drives the same `data-*` attributes the framework CSS
6
6
  * reads. Re-exports core's data so vd2 consumers keep a single import surface.
7
+ *
8
+ * Defaults are the generic Vanduo baseline from core. Applications that need
9
+ * site-specific defaults (e.g. a different default dark primary) override them
10
+ * with `setThemeDefaults()` — typically via
11
+ * `app.use(VanduoVue, { themeDefaults })` — before the theme model first reads
12
+ * them.
7
13
  */
8
- import { FONT_OPTIONS, NEUTRAL_COLORS, PALETTE_OPTIONS, PRIMARY_COLORS, RADIUS_OPTIONS, THEME_MODES, type ColorDef, type FontDef, type Palette, type PaletteDef, type RadiusOption, type ThemeMode } from "@vanduo-oss/core";
9
- export type { ColorDef, FontDef, Palette, PaletteDef, RadiusOption, ThemeMode };
10
- export declare const DEFAULTS: {
11
- readonly PRIMARY_DARK: "blue";
12
- readonly PALETTE: Palette;
13
- readonly PRIMARY_LIGHT: string;
14
- readonly NEUTRAL: string;
15
- readonly RADIUS: RadiusOption;
16
- readonly FONT: string;
17
- readonly THEME: ThemeMode;
18
- };
14
+ import { FONT_OPTIONS, NEUTRAL_COLORS, PALETTE_OPTIONS, PRIMARY_COLORS, RADIUS_OPTIONS, THEME_MODES, type ColorDef, type FontDef, type Palette, type PaletteDef, type RadiusOption, type ThemeDefaults, type ThemeMode } from "@vanduo-oss/core";
15
+ export type { ColorDef, FontDef, Palette, PaletteDef, RadiusOption, ThemeDefaults, ThemeMode, };
19
16
  export { FONT_OPTIONS, NEUTRAL_COLORS, PALETTE_OPTIONS, PRIMARY_COLORS, RADIUS_OPTIONS, THEME_MODES, };
17
+ /**
18
+ * The defaults currently in effect (core baseline merged with overrides).
19
+ * Returns a shallow copy so `setThemeDefaults()` stays the only mutation path —
20
+ * callers can't accidentally corrupt the shared state via the returned object.
21
+ */
22
+ export declare const getThemeDefaults: () => ThemeDefaults;
23
+ /**
24
+ * Override site-specific theme defaults. Shallow-merges over the current
25
+ * defaults and returns the result. Call once during app bootstrap, before the
26
+ * theme store first reads defaults (e.g.
27
+ * `app.use(VanduoVue, { themeDefaults })`).
28
+ */
29
+ export declare const setThemeDefaults: (overrides: Partial<ThemeDefaults>) => ThemeDefaults;
20
30
  export interface ThemePreference {
21
31
  palette: Palette;
22
32
  theme: ThemeMode;
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("vue"),t=require("pinia"),n=require("@vanduo-oss/core");var r=null;function i(){return typeof window>`u`?Promise.resolve():(r||=import(`@vanduo-oss/framework/iife`),r)}var a={install(e){i()}},o={class:`vd-accordion`},s=[`aria-expanded`,`aria-controls`,`onClick`],c={class:`vd-accordion-icon`,"aria-hidden":`true`},l=[`id`],u=(0,e.defineComponent)({__name:`VdAccordion`,props:{items:{},modelValue:{},exclusive:{type:Boolean}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=e=>r.exclusive?r.modelValue===e:Array.isArray(r.modelValue)&&r.modelValue.includes(e),u=e=>{if(r.exclusive){i(`update:modelValue`,r.modelValue===e?``:e);return}let t=Array.isArray(r.modelValue)?[...r.modelValue]:[],n=t.indexOf(e);n>=0?t.splice(n,1):t.push(e),i(`update:modelValue`,t)};return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`ul`,o,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.items,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`li`,{key:t.id,class:(0,e.normalizeClass)([`vd-accordion-item`,a(t.id)?`is-open`:null])},[(0,e.createElementVNode)(`button`,{type:`button`,class:`vd-accordion-header`,"aria-expanded":a(t.id),"aria-controls":`vd-accordion-panel-${t.id}`,onClick:e=>u(t.id)},[(0,e.createElementVNode)(`span`,null,(0,e.toDisplayString)(t.title),1),(0,e.createElementVNode)(`span`,c,(0,e.toDisplayString)(a(t.id)?`−`:`+`),1)],8,s),(0,e.withDirectives)((0,e.createElementVNode)(`div`,{id:`vd-accordion-panel-${t.id}`,class:`vd-accordion-panel`,role:`region`},[(0,e.renderSlot)(n.$slots,t.id,{item:t},()=>[(0,e.createTextVNode)((0,e.toDisplayString)(t.content),1)])],8,l),[[e.vShow,a(t.id)]])],2))),128))]))}}),d=(0,e.defineComponent)({__name:`VdIcon`,props:{name:{},filled:{type:Boolean,default:!1},size:{default:`md`}},setup(t){let n=t,r=()=>{switch(n.size){case`sm`:return`vd-text-base`;case`lg`:return`vd-text-2xl`;default:return`vd-text-xl`}};return(t,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`i`,{class:(0,e.normalizeClass)([n.filled?`ph-fill`:`ph`,`ph-${n.name}`,r()]),"aria-hidden":`true`},null,2))}}),f={class:`vd-alert-body`},p={key:0,class:`vd-alert-title`},m={class:`vd-alert-content`},h=(0,e.defineComponent)({__name:`VdAlert`,props:{variant:{default:`info`},dismissible:{type:Boolean,default:!1},title:{default:``}},emits:[`dismiss`],setup(t,{emit:n}){let r=t,i=n,a=()=>{i(`dismiss`)},o=()=>{switch(r.variant){case`success`:return`check-circle`;case`warning`:return`warning`;case`danger`:return`x-circle`;default:return`info`}};return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`vd-alert`,`vd-alert-${t.variant}`]),role:`alert`},[(0,e.createVNode)(d,{name:o(),class:`vd-alert-icon`},null,8,[`name`]),(0,e.createElementVNode)(`div`,f,[t.title?((0,e.openBlock)(),(0,e.createElementBlock)(`p`,p,(0,e.toDisplayString)(t.title),1)):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,m,[(0,e.renderSlot)(n.$slots,`default`)])]),t.dismissible?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:0,type:`button`,class:`vd-alert-dismiss`,"aria-label":`Dismiss`,onClick:a},[(0,e.createVNode)(d,{name:`x`})])):(0,e.createCommentVNode)(``,!0)],2))}}),g=[`aria-label`],_=[`src`,`alt`],v={key:1,class:`vd-avatar-initials`},y={key:2,class:`vd-avatar-initials`,"aria-hidden":`true`},b=[`aria-label`],x=(0,e.defineComponent)({__name:`VdAvatar`,props:{src:{default:``},alt:{default:``},initials:{default:``},size:{default:`md`},variant:{default:`primary`},shape:{default:`circle`},status:{default:void 0}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`vd-avatar`,[`vd-avatar-${t.size}`,`vd-avatar-${t.variant}`,`vd-avatar-${t.shape}`]]),"aria-label":t.alt||t.initials||`Avatar`},[t.src?((0,e.openBlock)(),(0,e.createElementBlock)(`img`,{key:0,src:t.src,alt:t.alt,class:`vd-avatar-img`},null,8,_)):t.initials?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,v,(0,e.toDisplayString)(t.initials),1)):((0,e.openBlock)(),(0,e.createElementBlock)(`span`,y,` ? `)),t.status?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{key:3,class:(0,e.normalizeClass)([`vd-avatar-status`,`vd-avatar-status-${t.status}`]),"aria-label":`Status: ${t.status}`},null,10,b)):(0,e.createCommentVNode)(``,!0)],10,g))}}),S=(0,e.defineComponent)({__name:`VdBadge`,props:{variant:{default:`default`},pill:{type:Boolean,default:!1}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{class:(0,e.normalizeClass)([`vd-badge`,[t.variant==="default"?null:`vd-badge-${t.variant}`,t.pill?`vd-badge-pill`:null]])},[(0,e.renderSlot)(n.$slots,`default`)],2))}}),C=[`type`,`disabled`],w={key:0,class:`vd-btn-spinner`,"aria-hidden":`true`},T=(0,e.defineComponent)({__name:`VdButton`,props:{variant:{default:`primary`},size:{default:`md`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:`button`}},emits:[`click`],setup(t,{emit:n}){let r=t,i=n,a=e=>{if(r.disabled||r.loading){e.preventDefault();return}i(`click`,e)};return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{type:t.type,disabled:t.disabled||t.loading,class:(0,e.normalizeClass)([`vd-btn`,`vd-btn-${t.variant}`,t.size===`md`?null:`vd-btn-${t.size}`,t.loading?`is-loading`:null]),onClick:a},[t.loading?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,w)):(0,e.createCommentVNode)(``,!0),(0,e.renderSlot)(n.$slots,`default`)],10,C))}}),E=(0,e.defineComponent)({__name:`VdButtonGroup`,props:{size:{default:`md`},vertical:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`vd-btn-group`,[`vd-btn-group-${t.size}`,{"vd-btn-group-vertical":t.vertical,"vd-btn-group-full":t.fullWidth}]]),role:`group`},[(0,e.renderSlot)(n.$slots,`default`)],2))}}),D={key:0,class:`vd-card-header`},O={class:`vd-card-body`},k={key:1,class:`vd-card-footer`},A=(0,e.defineComponent)({__name:`VdCard`,props:{elevated:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`section`,{class:(0,e.normalizeClass)([`vd-card`,[t.elevated?`vd-card-elevated`:null,t.interactive?`vd-card-interactive`:null]])},[n.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`header`,D,[(0,e.renderSlot)(n.$slots,`header`)])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,O,[(0,e.renderSlot)(n.$slots,`default`)]),n.$slots.footer?((0,e.openBlock)(),(0,e.createElementBlock)(`footer`,k,[(0,e.renderSlot)(n.$slots,`footer`)])):(0,e.createCommentVNode)(``,!0)],2))}}),j=[`id`,`name`,`value`,`checked`,`disabled`,`onChange`],M=[`for`],N=(0,e.defineComponent)({__name:`VdCheckboxGroup`,props:{options:{},modelValue:{},name:{},inline:{type:Boolean,default:!1},size:{default:`md`},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=n,i=(e,t)=>e.includes(t),a=(e,t)=>{let n=[...e],r=n.indexOf(t);return r===-1?n.push(t):n.splice(r,1),n},o=(e,t)=>{r(`update:modelValue`,a(e.modelValue,t))};return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`vd-form-check-group`,{"vd-form-check-group-inline":t.inline}]),role:`group`},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.options,r=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:r.value,class:(0,e.normalizeClass)([`vd-form-check`,[`vd-form-check-${t.size}`,{"vd-form-check-inline":t.inline}]])},[(0,e.createElementVNode)(`input`,{id:`${t.name}-${r.value}`,type:`checkbox`,name:t.name,value:r.value,checked:i(t.modelValue,r.value),disabled:t.disabled||r.disabled,class:`vd-form-check-input`,onChange:e=>o(n.$props,r.value)},null,40,j),(0,e.createElementVNode)(`label`,{for:`${t.name}-${r.value}`,class:`vd-form-check-label`},(0,e.toDisplayString)(r.label),9,M)],2))),128))],2))}}),P=[`src`],F=(0,e.defineComponent)({__name:`VdChip`,props:{variant:{default:`primary`},size:{default:`md`},outline:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1},avatar:{default:``},clickable:{type:Boolean,default:!1}},emits:[`dismiss`,`click`],setup(t,{emit:n}){let r=n,i=e=>{e.stopPropagation(),r(`dismiss`)};return(n,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{class:(0,e.normalizeClass)([`vd-chip`,[`vd-chip-${t.variant}`,`vd-chip-${t.size}`,{"vd-chip-outline":t.outline,"vd-chip-dismissible":t.dismissible,"vd-chip-clickable":t.clickable}]]),role:`status`,onClick:a[0]||=e=>t.clickable&&r(`click`,e)},[t.avatar?((0,e.openBlock)(),(0,e.createElementBlock)(`img`,{key:0,src:t.avatar,class:`vd-chip-avatar`,alt:``},null,8,P)):(0,e.createCommentVNode)(``,!0),(0,e.renderSlot)(n.$slots,`default`),t.dismissible?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:1,type:`button`,class:`vd-chip-close`,"aria-label":`Dismiss`,onClick:i},` × `)):(0,e.createCommentVNode)(``,!0)],2))}}),ee={class:`vd-code-snippet`},te=[`data-language`],ne=[`aria-label`],re=(0,e.defineComponent)({__name:`VdCodeSnippet`,props:{code:{},language:{default:`html`},copyable:{type:Boolean,default:!0}},setup(t){let n=(0,e.ref)(!1),r=async e=>{if(!(typeof navigator>`u`||!navigator.clipboard))try{await navigator.clipboard.writeText(e),n.value=!0,setTimeout(()=>{n.value=!1},1500)}catch{}};return(i,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`figure`,ee,[(0,e.createElementVNode)(`pre`,{class:(0,e.normalizeClass)([`vd-code-snippet-pre`,`language-${t.language}`]),"data-language":t.language},[(0,e.createElementVNode)(`code`,null,(0,e.toDisplayString)(t.code),1)],10,te),t.copyable?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:0,type:`button`,class:`vd-btn vd-btn-ghost vd-btn-sm vd-code-snippet-copy`,"aria-label":n.value?`Copied`:`Copy code`,onClick:a[0]||=e=>r(t.code)},[(0,e.createVNode)(d,{name:n.value?`check`:`copy`},null,8,[`name`]),(0,e.createElementVNode)(`span`,null,(0,e.toDisplayString)(n.value?`Copied`:`Copy`),1)],8,ne)):(0,e.createCommentVNode)(``,!0)]))}}),ie={key:0,class:`vd-collection-header`},ae={class:`vd-collection-title`},oe={class:`vd-collection-list`},se={key:0,class:`vd-collection-avatar`},ce=[`src`,`alt`],le={class:`vd-collection-content`},ue={class:`vd-collection-text`},de={class:`vd-collection-title`},fe={key:0,class:`vd-collection-text-secondary`},pe={key:1,class:`vd-collection-action`},me=(0,e.defineComponent)({__name:`VdCollection`,props:{items:{},header:{default:``},hoverable:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},size:{default:`md`}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`vd-collection`,[`vd-collection-${t.size}`,{"vd-collection-hoverable":t.hoverable,"vd-collection-bordered":t.bordered}]])},[t.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,ie,[(0,e.createElementVNode)(`h3`,ae,(0,e.toDisplayString)(t.header),1)])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`ul`,oe,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.items,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`li`,{key:t.id,class:`vd-collection-item`},[t.avatar?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,se,[(0,e.createElementVNode)(`img`,{src:t.avatar,alt:t.subtitle||t.title},null,8,ce)])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,le,[(0,e.createElementVNode)(`div`,ue,[(0,e.createElementVNode)(`strong`,de,(0,e.toDisplayString)(t.title),1),t.subtitle?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,fe,(0,e.toDisplayString)(t.subtitle),1)):(0,e.createCommentVNode)(``,!0)])]),t.action?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,pe,(0,e.toDisplayString)(t.action),1)):(0,e.createCommentVNode)(``,!0)]))),128))])],2))}}),he=[`id`,`name`,`value`],ge=[`value`,`disabled`],_e=[`aria-expanded`,`aria-labelledby`],ve=[`data-value`,`aria-selected`,`aria-disabled`,`onClick`,`onMouseenter`],ye=(0,e.defineComponent)({__name:`VdCustomSelect`,props:{modelValue:{},options:{},id:{default:``},name:{default:``},placeholder:{default:`Select...`}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.ref)(!1),o=(0,e.ref)(-1),s=(0,e.ref)(null),c=(0,e.computed)(()=>r.id||r.name||`custom-select`),l=(0,e.computed)(()=>r.options.flatMap((e,t)=>e.disabled?[]:[t])),u=(0,e.computed)(()=>{let e=r.options.find(e=>e.value===r.modelValue);return e?e.label:r.placeholder}),d=()=>{a.value=!0;let e=r.options.findIndex(e=>e.value===r.modelValue);o.value=e>=0&&!r.options[e]?.disabled?e:l.value[0]??-1},f=()=>{a.value=!1},p=()=>{a.value?f():d()},m=e=>{e.disabled||(i(`update:modelValue`,e.value),f())},h=e=>{let t=l.value;if(t.length===0)return;let n=t.indexOf(o.value);o.value=t[n<0?0:(n+e+t.length)%t.length]??-1},g=``,_=null,v=e=>{switch(e.key){case`Enter`:case` `:if(e.preventDefault(),a.value&&o.value>=0){let e=r.options[o.value];e&&m(e)}else d();break;case`Escape`:a.value&&(e.preventDefault(),f());break;case`ArrowDown`:e.preventDefault(),a.value?h(1):d();break;case`ArrowUp`:e.preventDefault(),a.value&&h(-1);break;case`Home`:a.value&&(e.preventDefault(),o.value=l.value[0]??-1);break;case`End`:if(a.value){e.preventDefault();let t=l.value;o.value=t[t.length-1]??-1}break;default:if(a.value&&e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey){_!=null&&window.clearTimeout(_),g+=e.key.toLowerCase();let t=r.options.findIndex(e=>!e.disabled&&e.label.toLowerCase().startsWith(g));t>=0&&(o.value=t),_=window.setTimeout(()=>{g=``},500)}}},y=e=>{a.value&&s.value&&!s.value.contains(e.target)&&f()};return(0,e.onMounted)(()=>document.addEventListener(`click`,y)),(0,e.onBeforeUnmount)(()=>{document.removeEventListener(`click`,y),_!=null&&window.clearTimeout(_)}),(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{ref_key:`wrapper`,ref:s,class:`custom-select-wrapper`},[(0,e.createElementVNode)(`select`,{id:t.id||void 0,name:t.name||void 0,value:t.modelValue,tabindex:`-1`,"aria-hidden":`true`},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.options,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`option`,{key:t.value,value:t.value,disabled:t.disabled},(0,e.toDisplayString)(t.label),9,ge))),128))],8,he),(0,e.createElementVNode)(`button`,{type:`button`,class:`custom-select-button`,"aria-haspopup":`listbox`,"aria-expanded":a.value?`true`:`false`,"aria-labelledby":c.value,onClick:(0,e.withModifiers)(p,[`stop`]),onKeydown:v},(0,e.toDisplayString)(u.value),41,_e),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)([`custom-select-dropdown`,{"is-open":a.value}]),role:`listbox`},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.options,(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:n.value,class:(0,e.normalizeClass)([`custom-select-option`,{"is-selected":n.value===t.modelValue,"is-disabled":n.disabled,"is-active":r===o.value}]),role:`option`,"data-value":n.value,"aria-selected":n.value===t.modelValue?`true`:`false`,"aria-disabled":n.disabled?`true`:void 0,onClick:e=>m(n),onMouseenter:e=>o.value=r},(0,e.toDisplayString)(n.label),43,ve))),128))],2)],512))}}),be={class:`vd-flow`,role:`region`,"aria-roledescription":`carousel`},xe=[`aria-hidden`],Se={key:0,class:`vd-flow-controls`},Ce=[`disabled`],we={class:`vd-flow-position`},Te=[`disabled`],Ee=(0,e.defineComponent)({__name:`VdFlow`,props:{modelValue:{},total:{}},emits:[`update:modelValue`],setup(t,{expose:n,emit:r}){let i=t,a=r,o=(0,e.ref)(i.modelValue),s=e=>{let t=Math.max(0,Math.min(i.total-1,e));t!==o.value&&(o.value=t,a(`update:modelValue`,t))},c=()=>s(o.value-1),l=()=>s(o.value+1);n({go:s,prev:c,next:l,index:o});let u=(0,e.computed)(()=>Array.from({length:i.total},(e,t)=>t));return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,be,[(0,e.createElementVNode)(`div`,{class:`vd-flow-track`,style:(0,e.normalizeStyle)({transform:`translateX(-${o.value*100}%)`})},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(u.value,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:t,class:`vd-flow-slide`,"aria-hidden":t!==o.value},[(0,e.renderSlot)(n.$slots,`slide-${t}`,{index:t})],8,xe))),128))],4),t.total>1?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,Se,[(0,e.createElementVNode)(`button`,{type:`button`,class:`vd-btn vd-btn-ghost vd-btn-icon`,"aria-label":`Previous slide`,disabled:o.value===0,onClick:c},` ‹ `,8,Ce),(0,e.createElementVNode)(`span`,we,(0,e.toDisplayString)(o.value+1)+` / `+(0,e.toDisplayString)(t.total),1),(0,e.createElementVNode)(`button`,{type:`button`,class:`vd-btn vd-btn-ghost vd-btn-icon`,"aria-label":`Next slide`,disabled:o.value===t.total-1,onClick:l},` › `,8,Te)])):(0,e.createCommentVNode)(``,!0)]))}}),De=[`id`,`type`,`name`,`value`,`placeholder`,`disabled`,`readonly`,`required`,`minlength`,`maxlength`,`pattern`,`autocomplete`],Oe=(0,e.defineComponent)({__name:`VdInput`,props:{modelValue:{},type:{default:`text`},placeholder:{default:``},size:{default:`md`},variant:{default:`default`},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},name:{default:``},id:{default:``},minlength:{default:void 0},maxlength:{default:void 0},pattern:{default:``},autocomplete:{default:``}},emits:[`update:modelValue`,`blur`,`focus`],setup(t,{emit:n}){let r=t,i=n,a=e=>{let t=e.target;i(`update:modelValue`,t.value)};return r.minlength,r.maxlength,(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`input`,{id:t.id||t.name,type:t.type,name:t.name,value:t.modelValue,placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,required:t.required,minlength:t.minlength,maxlength:t.maxlength,pattern:t.pattern,autocomplete:t.autocomplete,class:(0,e.normalizeClass)([`vd-input`,[`vd-input-${t.size}`,t.variant==="default"?null:`vd-input-${t.variant}`]]),onInput:a,onBlur:r[0]||=e=>i(`blur`,e),onFocus:r[1]||=e=>i(`focus`,e)},null,42,De))}}),ke=[`aria-label`],Ae={key:0,class:`vd-modal-header`},je={key:0,class:`vd-modal-title`},Me={class:`vd-modal-body`},Ne={key:1,class:`vd-modal-footer`},Pe=(0,e.defineComponent)({__name:`VdModal`,props:{open:{type:Boolean},title:{default:``},size:{default:`md`},closeOnBackdrop:{type:Boolean,default:!0}},emits:[`update:open`,`close`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.ref)(null),o=(0,e.computed)(()=>`vd-modal-panel-${r.size}`),s=()=>{i(`update:open`,!1),i(`close`)},c=()=>{r.closeOnBackdrop&&s()},l=e=>{r.open&&e.key===`Escape`&&(e.preventDefault(),s())};return(0,e.watch)(()=>r.open,async t=>{typeof window>`u`||(t?(window.addEventListener(`keydown`,l),await(0,e.nextTick)(),a.value?.focus()):window.removeEventListener(`keydown`,l))},{immediate:!0}),(n,r)=>((0,e.openBlock)(),(0,e.createBlock)(e.Teleport,{to:`body`},[t.open?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:`vd-modal vd-modal-open`,role:`dialog`,"aria-modal":`true`,"aria-label":t.title||`Dialog`,"data-vd-modal":``},[(0,e.createElementVNode)(`div`,{class:`vd-modal-backdrop`,onClick:c}),(0,e.createElementVNode)(`div`,{ref_key:`panel`,ref:a,class:(0,e.normalizeClass)([`vd-modal-panel`,o.value]),tabindex:`-1`},[t.title||n.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`header`,Ae,[t.title?((0,e.openBlock)(),(0,e.createElementBlock)(`h2`,je,(0,e.toDisplayString)(t.title),1)):(0,e.createCommentVNode)(``,!0),(0,e.renderSlot)(n.$slots,`header`),(0,e.createElementVNode)(`button`,{type:`button`,class:`vd-btn vd-btn-ghost vd-btn-icon`,"aria-label":`Close`,onClick:s},[(0,e.createVNode)(d,{name:`x`})])])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,Me,[(0,e.renderSlot)(n.$slots,`default`)]),n.$slots.footer?((0,e.openBlock)(),(0,e.createElementBlock)(`footer`,Ne,[(0,e.renderSlot)(n.$slots,`footer`)])):(0,e.createCommentVNode)(``,!0)],2)],8,ke)):(0,e.createCommentVNode)(``,!0)]))}}),Fe=[`aria-label`],Ie={key:0,class:`vd-sidenav-header`},Le={key:0,class:`vd-sidenav-title`},Re={class:`vd-sidenav-body`},ze=(0,e.defineComponent)({__name:`VdOffcanvas`,props:{modelValue:{type:Boolean},placement:{default:`right`},title:{default:``},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0}},emits:[`update:modelValue`,`close`],setup(t,{emit:n}){let r=t,i=n,a=()=>{i(`update:modelValue`,!1),i(`close`)},o=()=>{r.closeOnBackdrop&&a()},s=e=>{r.modelValue&&e.key===`Escape`&&r.closeOnEsc&&(e.preventDefault(),a())};return(0,e.onMounted)(()=>{typeof window>`u`||window.addEventListener(`keydown`,s)}),(0,e.onBeforeUnmount)(()=>{typeof window>`u`||window.removeEventListener(`keydown`,s)}),(0,e.watch)(()=>r.modelValue,e=>{typeof document>`u`||(document.body.style.overflow=e?`hidden`:``)}),(n,r)=>((0,e.openBlock)(),(0,e.createBlock)(e.Teleport,{to:`body`},[t.modelValue?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:`vd-sidenav-overlay is-visible`,onClick:o})):(0,e.createCommentVNode)(``,!0),t.modelValue?((0,e.openBlock)(),(0,e.createElementBlock)(`aside`,{key:1,class:(0,e.normalizeClass)([`vd-offcanvas`,[`vd-offcanvas-${t.placement}`,`is-open`]]),"aria-label":t.title||`Off-canvas panel`},[t.title||n.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`header`,Ie,[t.title?((0,e.openBlock)(),(0,e.createElementBlock)(`h3`,Le,(0,e.toDisplayString)(t.title),1)):(0,e.createCommentVNode)(``,!0),(0,e.renderSlot)(n.$slots,`header`),(0,e.createElementVNode)(`button`,{type:`button`,class:`vd-sidenav-close`,"aria-label":`Close`,onClick:a},` × `)])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,Re,[(0,e.renderSlot)(n.$slots,`default`)])],10,Fe)):(0,e.createCommentVNode)(``,!0)]))}}),Be={key:0,class:`vd-pagination-item`},Ve=[`data-page`],He=[`aria-label`,`aria-current`,`onClick`],Ue=(0,e.defineComponent)({__name:`VdPagination`,props:{modelValue:{},total:{},maxVisible:{default:7},size:{default:`md`},align:{default:`left`},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.ref)(null),o=(e,t,n)=>{let r=[],i=Math.floor(n/2);if(t<=n){for(let e=1;e<=t;e++)r.push(e);return r}r.push(1);let a=Math.max(2,e-i),o=Math.min(t-1,e+i);e<=i+1&&(o=Math.min(t-1,n-1)),e>=t-i&&(a=Math.max(2,t-n+2)),a>2&&r.push(`ellipsis`);for(let e=a;e<=o;e++)r.push(e);return o<t-1&&r.push(`ellipsis`),t>1&&r.push(t),r},s=(0,e.computed)(()=>o(r.modelValue,r.total,r.maxVisible)),c=e=>{r.disabled||e<1||e>r.total||e===r.modelValue||(i(`update:modelValue`,e),a.value?.dispatchEvent(new CustomEvent(`pagination:change`,{bubbles:!0,detail:{page:e,totalPages:r.total}})))};return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`nav`,{ref_key:`root`,ref:a,"aria-label":`Pagination`},[(0,e.createElementVNode)(`ul`,{class:(0,e.normalizeClass)([`vd-pagination`,[`vd-pagination-${t.size}`,`vd-pagination-${t.align}`]])},[(0,e.createElementVNode)(`li`,{class:(0,e.normalizeClass)([`vd-pagination-item vd-pagination-prev`,{disabled:t.disabled||t.modelValue<=1}])},[(0,e.createElementVNode)(`a`,{class:`vd-pagination-link`,href:`#`,"aria-label":`Previous`,onClick:r[0]||=(0,e.withModifiers)(e=>c(t.modelValue-1),[`prevent`])},`Previous`)],2),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(s.value,(n,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:i},[n===`ellipsis`?((0,e.openBlock)(),(0,e.createElementBlock)(`li`,Be,[...r[2]||=[(0,e.createElementVNode)(`span`,{class:`vd-pagination-ellipsis`,"aria-hidden":`true`},`…`,-1)]])):((0,e.openBlock)(),(0,e.createElementBlock)(`li`,{key:1,class:(0,e.normalizeClass)([`vd-pagination-item`,{active:n===t.modelValue}]),"data-page":n},[(0,e.createElementVNode)(`a`,{class:`vd-pagination-link`,href:`#`,"aria-label":`Page ${n}`,"aria-current":n===t.modelValue?`page`:void 0,onClick:(0,e.withModifiers)(e=>c(n),[`prevent`])},(0,e.toDisplayString)(n),9,He)],10,Ve))],64))),128)),(0,e.createElementVNode)(`li`,{class:(0,e.normalizeClass)([`vd-pagination-item vd-pagination-next`,{disabled:t.disabled||t.modelValue>=t.total}])},[(0,e.createElementVNode)(`a`,{class:`vd-pagination-link`,href:`#`,"aria-label":`Next`,onClick:r[1]||=(0,e.withModifiers)(e=>c(t.modelValue+1),[`prevent`])},`Next`)],2)],2)],512))}}),We={key:0,class:`vd-preloader-text`},Ge=(0,e.defineComponent)({__name:`VdPreloader`,props:{variant:{default:`primary`},size:{default:`md`},theme:{default:`light`},text:{default:``}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`vd-preloader-container`,[`vd-preloader-${t.theme}`]]),role:`status`,"aria-live":`polite`},[(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)([`vd-preloader`,[`vd-preloader-${t.variant}`,`vd-preloader-${t.size}`]])},[...r[0]||=[(0,e.createElementVNode)(`div`,{class:`vd-preloader-spinner`},null,-1)]],2),t.text?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,We,(0,e.toDisplayString)(t.text),1)):(0,e.createCommentVNode)(``,!0)],2))}}),Ke=[`aria-valuemax`,`aria-valuenow`,`aria-label`],qe={class:`vd-progress-track`},Je={key:0,class:`vd-progress-label vd-text-sm vd-muted`},Ye=(0,e.defineComponent)({__name:`VdProgress`,props:{value:{default:0},max:{default:100},indeterminate:{type:Boolean,default:!1},label:{default:``}},setup(t){let n=t,r=()=>{if(n.indeterminate)return 0;let e=n.max||100;return Math.max(0,Math.min(100,n.value/e*100))};return(n,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`vd-progress`,[t.indeterminate?`is-indeterminate`:null]]),role:`progressbar`,"aria-valuemin":0,"aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:t.value,"aria-label":t.label||`Progress`},[(0,e.createElementVNode)(`div`,qe,[(0,e.createElementVNode)(`div`,{class:`vd-progress-fill`,style:(0,e.normalizeStyle)(t.indeterminate?void 0:{width:`${r()}%`})},null,4)]),!t.indeterminate&&t.label?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,Je,(0,e.toDisplayString)(t.label)+` — `+(0,e.toDisplayString)(Math.round(r()))+`% `,1)):(0,e.createCommentVNode)(``,!0)],10,Ke))}}),Xe=[`id`,`name`,`value`,`checked`,`disabled`,`onChange`],Ze=[`for`],Qe=(0,e.defineComponent)({__name:`VdRadioGroup`,props:{options:{},modelValue:{},name:{},inline:{type:Boolean,default:!1},size:{default:`md`},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=n;return(n,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`vd-form-radio-group`,{"vd-form-radio-group-inline":t.inline}]),role:`radiogroup`},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.options,n=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:n.value,class:(0,e.normalizeClass)([`vd-form-radio`,[`vd-form-radio-${t.size}`,{"vd-form-radio-inline":t.inline}]])},[(0,e.createElementVNode)(`input`,{id:`${t.name}-${n.value}`,type:`radio`,name:t.name,value:n.value,checked:t.modelValue===n.value,disabled:t.disabled||n.disabled,class:`vd-form-radio-input`,onChange:e=>r(`update:modelValue`,n.value)},null,40,Xe),(0,e.createElementVNode)(`label`,{for:`${t.name}-${n.value}`,class:`vd-form-radio-label`},(0,e.toDisplayString)(n.label),9,Ze)],2))),128))],2))}}),$e=[`aria-checked`,`aria-label`,`tabindex`,`onMouseenter`,`onClick`],et={class:`vd-rating-value`},tt=(0,e.defineComponent)({__name:`VdRating`,props:{modelValue:{},max:{default:5},size:{default:void 0},readonly:{type:Boolean,default:!1},name:{default:``}},emits:[`update:modelValue`,`change`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.ref)(r.modelValue),o=(0,e.ref)(-1);(0,e.watch)(()=>r.modelValue,e=>{a.value=e});let s=(0,e.computed)(()=>Array.from({length:r.max},(e,t)=>t+1)),c=e=>({"is-active":e<=Math.floor(a.value),"is-half":e>Math.floor(a.value)&&e-.5<=a.value,"is-hovered":o.value>=0&&e<=o.value}),l=e=>{r.readonly||(a.value=e,i(`update:modelValue`,e),i(`change`,e))},u=e=>{r.readonly||((e.key===`ArrowRight`||e.key===`ArrowUp`)&&a.value<r.max?(e.preventDefault(),l(a.value+1)):(e.key===`ArrowLeft`||e.key===`ArrowDown`)&&a.value>1&&(e.preventDefault(),l(a.value-1)))};return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`vd-rating`,[t.size?`vd-rating-${t.size}`:null,{"vd-rating-readonly":t.readonly}]]),role:`radiogroup`,"aria-label":`Rating`,onKeydown:u,onMouseleave:r[0]||=e=>o.value=-1},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(s.value,n=>((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:n,type:`button`,class:(0,e.normalizeClass)([`vd-rating-star`,c(n)]),role:`radio`,"aria-checked":n<=a.value?`true`:`false`,"aria-label":`${n} star${n>1?`s`:``}`,tabindex:t.readonly?-1:0,onMouseenter:e=>t.readonly?null:o.value=n,onClick:e=>l(n)},null,42,$e))),128)),(0,e.createElementVNode)(`span`,et,(0,e.toDisplayString)(a.value>0?a.value:``),1)],34))}}),nt=[`id`,`name`,`value`,`disabled`,`required`],rt={key:0,value:``,disabled:``},it=[`value`,`disabled`],at={class:`vd-visually-hidden`},ot=(0,e.defineComponent)({__name:`VdSelect`,props:{modelValue:{},options:{},name:{default:``},id:{default:``},placeholder:{default:``},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.ref)(r.modelValue);(0,e.watch)(()=>r.modelValue,e=>{a.value=e});let o=(0,e.computed)(()=>r.options.find(e=>e.value===a.value)?.label??``);return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,null,[(0,e.createElementVNode)(`select`,{id:t.id||t.name,name:t.name,value:a.value,disabled:t.disabled,required:t.required,class:`vd-input`,onChange:r[0]||=e=>{let t=e.target.value;a.value=t,i(`update:modelValue`,t)}},[t.placeholder?((0,e.openBlock)(),(0,e.createElementBlock)(`option`,rt,(0,e.toDisplayString)(t.placeholder),1)):(0,e.createCommentVNode)(``,!0),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.options,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`option`,{key:t.value,value:t.value,disabled:t.disabled},(0,e.toDisplayString)(t.label),9,it))),128))],40,nt),(0,e.createElementVNode)(`span`,at,(0,e.toDisplayString)(o.value),1)],64))}}),st=[`aria-label`],ct={key:0,class:`vd-sidenav-header`},lt={key:0,class:`vd-sidenav-title`},ut={class:`vd-sidenav-body`},dt={key:1,class:`vd-sidenav-footer`},ft=(0,e.defineComponent)({__name:`VdSidenav`,props:{modelValue:{type:Boolean},placement:{default:`left`},title:{default:``},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0}},emits:[`update:modelValue`,`close`],setup(t,{emit:n}){let r=t,i=n,a=()=>{i(`update:modelValue`,!1),i(`close`)},o=()=>{r.closeOnBackdrop&&a()},s=e=>{r.modelValue&&e.key===`Escape`&&r.closeOnEsc&&(e.preventDefault(),a())};return(0,e.onMounted)(()=>{typeof window>`u`||window.addEventListener(`keydown`,s)}),(0,e.onBeforeUnmount)(()=>{typeof window>`u`||window.removeEventListener(`keydown`,s)}),(0,e.watch)(()=>r.modelValue,e=>{typeof document>`u`||(document.body.style.overflow=e?`hidden`:``)}),(n,r)=>((0,e.openBlock)(),(0,e.createBlock)(e.Teleport,{to:`body`},[t.modelValue?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:`vd-sidenav-overlay is-visible`,onClick:o})):(0,e.createCommentVNode)(``,!0),t.modelValue?((0,e.openBlock)(),(0,e.createElementBlock)(`aside`,{key:1,class:(0,e.normalizeClass)([`vd-sidenav`,[`vd-sidenav-${t.placement}`,`is-open`]]),"aria-label":t.title||`Side navigation`},[t.title||n.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`header`,ct,[t.title?((0,e.openBlock)(),(0,e.createElementBlock)(`h3`,lt,(0,e.toDisplayString)(t.title),1)):(0,e.createCommentVNode)(``,!0),(0,e.renderSlot)(n.$slots,`header`),(0,e.createElementVNode)(`button`,{type:`button`,class:`vd-sidenav-close`,"aria-label":`Close`,onClick:a},` × `)])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,ut,[(0,e.renderSlot)(n.$slots,`default`)]),n.$slots.footer?((0,e.openBlock)(),(0,e.createElementBlock)(`footer`,dt,[(0,e.renderSlot)(n.$slots,`footer`)])):(0,e.createCommentVNode)(``,!0)],10,st)):(0,e.createCommentVNode)(``,!0)]))}}),pt={key:3,class:`vd-skeleton-lines`},mt=(0,e.defineComponent)({__name:`VdSkeleton`,props:{shape:{default:`text`},size:{default:`md`},width:{default:``},lines:{default:1}},setup(t){return(n,r)=>t.shape===`card`?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:(0,e.normalizeClass)([`vd-skeleton-card`,`vd-skeleton-card-${t.size}`])},[...r[0]||=[(0,e.createStaticVNode)(`<div class="vd-skeleton vd-skeleton-card-header"></div><div class="vd-skeleton-card-body"><div class="vd-skeleton vd-skeleton-text"></div><div class="vd-skeleton vd-skeleton-text"></div><div class="vd-skeleton vd-skeleton-text vd-skeleton-text-short"></div></div>`,2)]],2)):t.shape===`button`?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)([`vd-skeleton vd-skeleton-button`,`vd-skeleton-button-${t.size}`])},null,2)):t.shape===`circle`?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:2,class:(0,e.normalizeClass)([`vd-skeleton vd-skeleton-circle`,`vd-skeleton-circle-${t.size}`])},null,2)):t.lines>1?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,pt,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.lines,n=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:n,class:(0,e.normalizeClass)([`vd-skeleton vd-skeleton-text`,n===t.lines?`vd-skeleton-text-short`:``])},null,2))),128))])):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:4,class:(0,e.normalizeClass)([`vd-skeleton vd-skeleton-text`,`vd-skeleton-text-${t.size}`]),style:(0,e.normalizeStyle)(t.width?`width: ${t.width}`:``)},null,6))}}),ht=[`aria-label`],gt=(0,e.defineComponent)({__name:`VdSpinner`,props:{size:{default:`md`},label:{default:``}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{class:(0,e.normalizeClass)([`vd-spinner`,`vd-spinner-${t.size}`]),role:`status`,"aria-label":t.label||`Loading`},[(0,e.createVNode)(d,{name:`circle-notch`})],10,ht))}}),_t={class:`vd-table-responsive`},vt={key:0,class:`vd-table-caption`},yt={class:`vd-table-header`},bt=(0,e.defineComponent)({__name:`VdTable`,props:{columns:{},rows:{},striped:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},caption:{default:``}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,_t,[(0,e.createElementVNode)(`table`,{class:(0,e.normalizeClass)([`vd-table`,{"vd-table-striped":t.striped,"vd-table-bordered":t.bordered,"vd-table-hover":t.hover}])},[t.caption?((0,e.openBlock)(),(0,e.createElementBlock)(`caption`,vt,(0,e.toDisplayString)(t.caption),1)):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`thead`,yt,[(0,e.createElementVNode)(`tr`,null,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.columns,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`th`,{key:t.key,scope:`col`},(0,e.toDisplayString)(t.label),1))),128))])]),(0,e.createElementVNode)(`tbody`,null,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.rows,(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`tr`,{key:r},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.columns,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`td`,{key:t.key},(0,e.toDisplayString)(n[t.key]),1))),128))]))),128))])],2)]))}}),xt={class:`vd-tabs`,role:`tablist`},St={class:`vd-tab-list`,role:`presentation`},Ct=[`aria-selected`,`onClick`],wt={class:`vd-tab-panels`},Tt=(0,e.defineComponent)({__name:`VdTabs`,props:{tabs:{},modelValue:{}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,i=n,a=e=>{e!==r.modelValue&&i(`update:modelValue`,e)};return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,xt,[(0,e.createElementVNode)(`div`,St,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.tabs,n=>((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:n.id,type:`button`,role:`tab`,"aria-selected":n.id===t.modelValue,class:(0,e.normalizeClass)([`vd-tab`,n.id===t.modelValue?`is-active`:null]),onClick:e=>a(n.id)},(0,e.toDisplayString)(n.label),11,Ct))),128))]),(0,e.createElementVNode)(`div`,wt,[(0,e.renderSlot)(n.$slots,`default`)])]))}}),Et=[`innerHTML`],Dt={class:`vd-toast-content`},Ot={key:0,class:`vd-toast-title`},kt={class:`vd-toast-message`},I=(0,e.defineComponent)({__name:`VdToast`,props:{toast:{}},emits:[`dismiss`],setup(t,{emit:n}){let r=t,i=n,a={success:`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>`,error:`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>`,warning:`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>`,info:`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>`},o=(0,e.ref)(!1),s=(0,e.ref)(!1),c=(0,e.ref)(!1),l=null,u=null,d=0,f=r.toast.duration,p=()=>{l!=null&&(window.clearTimeout(l),l=null)},m=()=>{c.value=!1,r.toast.duration>0&&typeof window<`u`&&(d=Date.now(),l=window.setTimeout(g,f))},h=()=>{l!=null&&(window.clearTimeout(l),l=null,f-=Date.now()-d,c.value=!0)},g=()=>{s.value||(p(),o.value=!1,s.value=!0,u=window.setTimeout(()=>i(`dismiss`,r.toast.id),400))},_=()=>{s.value&&i(`dismiss`,r.toast.id)};return(0,e.onMounted)(()=>{requestAnimationFrame(()=>{o.value=!0,m()})}),(0,e.onBeforeUnmount)(()=>{p(),u!=null&&window.clearTimeout(u)}),(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`vd-toast`,t.toast.type?`vd-toast-${t.toast.type}`:null,t.toast.solid?`vd-toast-solid`:null,t.toast.showProgress&&t.toast.duration>0?`vd-toast-with-progress`:null,{"is-visible":o.value,"is-exiting":s.value}]),role:`status`,"aria-live":`polite`,onMouseenter:h,onMouseleave:m,onTransitionend:_},[t.toast.type?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{key:0,class:`vd-toast-icon`,innerHTML:a[t.toast.type]},null,8,Et)):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,Dt,[t.toast.title?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,Ot,(0,e.toDisplayString)(t.toast.title),1)):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`div`,kt,(0,e.toDisplayString)(t.toast.message),1)]),t.toast.dismissible?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:1,type:`button`,class:`vd-toast-close`,"aria-label":`Close`,onClick:g})):(0,e.createCommentVNode)(``,!0),t.toast.showProgress&&t.toast.duration>0?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:2,class:`vd-toast-progress`,style:(0,e.normalizeStyle)({animationDuration:`${t.toast.duration}ms`,animationPlayState:c.value?`paused`:`running`})},null,4)):(0,e.createCommentVNode)(``,!0)],34))}}),L={duration:5e3,position:`top-right`,dismissible:!0,showProgress:!0,solid:!1},R=0,At=()=>(R+=1,`toast-${Date.now().toString(36)}-${R}`),z=(0,t.defineStore)(`toast`,()=>{let t=(0,e.ref)([]),n=(e,n,r)=>{let i;i=typeof e==`string`?n&&typeof n==`object`?{...n,message:e}:{message:e,type:n,duration:r}:{...e};let a=At(),o={id:a,message:i.message??``,title:i.title,type:i.type,duration:i.duration??L.duration,position:i.position??L.position,dismissible:i.dismissible??L.dismissible,showProgress:i.showProgress??L.showProgress,solid:i.solid??L.solid};return t.value.push(o),a};return{queue:t,show:n,dismiss:e=>{t.value=t.value.filter(t=>t.id!==e)},success:(e,t={})=>n({...t,message:e,type:`success`}),error:(e,t={})=>n({...t,message:e,type:`error`}),warning:(e,t={})=>n({...t,message:e,type:`warning`}),info:(e,t={})=>n({...t,message:e,type:`info`})}}),jt=()=>{let e=z();return{show:e.show,dismiss:e.dismiss,success:e.success,error:e.error,warning:e.warning,info:e.info,queue:e.queue}},Mt=(0,e.defineComponent)({__name:`VdToastContainer`,setup(t){let n=z(),r=[`top-right`,`top-left`,`top-center`,`bottom-right`,`bottom-left`,`bottom-center`],i=(0,e.computed)(()=>r.map(e=>({position:e,toasts:n.queue.filter(t=>t.position===e)})).filter(e=>e.toasts.length>0));return(t,r)=>((0,e.openBlock)(),(0,e.createBlock)(e.Teleport,{to:`body`},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(i.value,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:t.position,class:(0,e.normalizeClass)([`vd-toast-container`,`vd-toast-container-${t.position}`]),role:`status`,"aria-live":`polite`,"aria-atomic":`false`},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.toasts,t=>((0,e.openBlock)(),(0,e.createBlock)(I,{key:t.id,toast:t,onDismiss:(0,e.unref)(n).dismiss},null,8,[`toast`,`onDismiss`]))),128))],2))),128))]))}}),Nt=[`data-tooltip-position`,`data-tooltip`],Pt=(0,e.defineComponent)({__name:`VdTooltip`,props:{text:{},position:{default:`top`}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{class:`vd-tooltip`,"data-tooltip-position":t.position,"data-tooltip":t.text},[(0,e.renderSlot)(n.$slots,`default`)],8,Nt))}}),Ft={class:`vd-transfer-panel`},It={class:`vd-transfer-header`},Lt={class:`vd-transfer-count`,"aria-live":`polite`},Rt={class:`vd-transfer-search`},zt={class:`vd-transfer-list`,role:`listbox`,"aria-multiselectable":`true`},Bt=[`aria-selected`,`onClick`],Vt=[`checked`,`aria-label`],Ht={class:`vd-transfer-actions`},Ut=[`disabled`],Wt=[`disabled`],Gt={class:`vd-transfer-panel`},Kt={class:`vd-transfer-header`},qt={class:`vd-transfer-count`,"aria-live":`polite`},Jt={class:`vd-transfer-search`},Yt={class:`vd-transfer-list`,role:`listbox`,"aria-multiselectable":`true`},Xt=[`aria-selected`,`onClick`],Zt=[`checked`,`aria-label`],Qt=(0,e.defineComponent)({__name:`VdTransfer`,props:{items:{}},setup(t,{expose:n}){let r=t,i=(0,e.ref)(null),a=(0,e.ref)(r.items.map(e=>({...e}))),o=(0,e.ref)([]),s=(0,e.ref)(new Set),c=(0,e.ref)(new Set),l=(0,e.ref)(``),u=(0,e.ref)(``),d=(e,t)=>{if(!t)return e;let n=t.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(n))},f=(0,e.computed)(()=>d(a.value,l.value)),p=(0,e.computed)(()=>d(o.value,u.value)),m=(e,t)=>{let n=e===`source`?s:c,r=new Set(n.value);r.has(t)?r.delete(t):r.add(t),n.value=r},h=()=>{i.value?.dispatchEvent(new CustomEvent(`transfer:change`,{bubbles:!0,detail:{selected:o.value.map(e=>e.id),available:a.value.map(e=>e.id)}}))},g=()=>{if(s.value.size===0)return;let e=a.value.filter(e=>s.value.has(e.id));a.value=a.value.filter(e=>!s.value.has(e.id)),o.value=[...o.value,...e],s.value=new Set,h()},_=()=>{if(c.value.size===0)return;let e=o.value.filter(e=>c.value.has(e.id));o.value=o.value.filter(e=>!c.value.has(e.id)),a.value=[...a.value,...e],c.value=new Set,h()};return n({getSelected:()=>o.value.map(e=>e.id)}),(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{ref_key:`root`,ref:i,class:`vd-transfer`},[(0,e.createElementVNode)(`div`,Ft,[(0,e.createElementVNode)(`div`,It,[n[2]||=(0,e.createElementVNode)(`span`,null,`Source`,-1),(0,e.createElementVNode)(`span`,Lt,(0,e.toDisplayString)(s.value.size)+`/`+(0,e.toDisplayString)(a.value.length),1)]),(0,e.createElementVNode)(`div`,Rt,[(0,e.withDirectives)((0,e.createElementVNode)(`input`,{"onUpdate:modelValue":n[0]||=e=>l.value=e,type:`text`,placeholder:`Search...`,"aria-label":`Search source`},null,512),[[e.vModelText,l.value]])]),(0,e.createElementVNode)(`ul`,zt,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(f.value,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`li`,{key:t.id,class:(0,e.normalizeClass)([`vd-transfer-item`,{"is-selected":s.value.has(t.id)}]),role:`option`,"aria-selected":s.value.has(t.id),onClick:e=>m(`source`,t.id)},[(0,e.createElementVNode)(`input`,{type:`checkbox`,checked:s.value.has(t.id),"aria-label":t.label,tabindex:`-1`},null,8,Vt),(0,e.createElementVNode)(`span`,null,(0,e.toDisplayString)(t.label),1)],10,Bt))),128))])]),(0,e.createElementVNode)(`div`,Ht,[(0,e.createElementVNode)(`button`,{type:`button`,class:`vd-transfer-btn`,"aria-label":`Move to target`,disabled:s.value.size===0,onClick:g},` › `,8,Ut),(0,e.createElementVNode)(`button`,{type:`button`,class:`vd-transfer-btn`,"aria-label":`Move to source`,disabled:c.value.size===0,onClick:_},` ‹ `,8,Wt)]),(0,e.createElementVNode)(`div`,Gt,[(0,e.createElementVNode)(`div`,Kt,[n[3]||=(0,e.createElementVNode)(`span`,null,`Target`,-1),(0,e.createElementVNode)(`span`,qt,(0,e.toDisplayString)(c.value.size)+`/`+(0,e.toDisplayString)(o.value.length),1)]),(0,e.createElementVNode)(`div`,Jt,[(0,e.withDirectives)((0,e.createElementVNode)(`input`,{"onUpdate:modelValue":n[1]||=e=>u.value=e,type:`text`,placeholder:`Search...`,"aria-label":`Search target`},null,512),[[e.vModelText,u.value]])]),(0,e.createElementVNode)(`ul`,Yt,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(p.value,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`li`,{key:t.id,class:(0,e.normalizeClass)([`vd-transfer-item`,{"is-selected":c.value.has(t.id)}]),role:`option`,"aria-selected":c.value.has(t.id),onClick:e=>m(`target`,t.id)},[(0,e.createElementVNode)(`input`,{type:`checkbox`,checked:c.value.has(t.id),"aria-label":t.label,tabindex:`-1`},null,8,Zt),(0,e.createElementVNode)(`span`,null,(0,e.toDisplayString)(t.label),1)],10,Xt))),128))])])],512))}}),$t=[`aria-expanded`],en={class:`vd-tree-node-content`},tn={key:1,class:`vd-tree-toggle-placeholder`},nn=[`checked`,`aria-label`],rn={class:`vd-tree-label`,tabindex:`-1`},an={key:0,class:`vd-tree-children`,role:`group`},B=(0,e.defineComponent)({__name:`VdTreeNode`,props:{node:{},checkbox:{type:Boolean}},emits:[`toggle`,`check`],setup(t,{emit:n}){let r=t,i=n,a=(0,e.computed)(()=>!!r.node.children&&r.node.children.length>0),o=()=>{r.node.open=!r.node.open,i(`toggle`,r.node)},s=e=>{i(`check`,r.node,e.target.checked)};return(n,r)=>{let c=(0,e.resolveComponent)(`VdTreeNode`,!0);return(0,e.openBlock)(),(0,e.createElementBlock)(`li`,{class:(0,e.normalizeClass)([`vd-tree-node`,{"is-open":t.node.open}]),role:`treeitem`,"aria-expanded":a.value?t.node.open?`true`:`false`:void 0},[(0,e.createElementVNode)(`div`,en,[a.value?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:0,type:`button`,class:`vd-tree-toggle`,"aria-label":`Toggle`,onClick:(0,e.withModifiers)(o,[`stop`])})):((0,e.openBlock)(),(0,e.createElementBlock)(`span`,tn)),t.checkbox?((0,e.openBlock)(),(0,e.createElementBlock)(`input`,{key:2,type:`checkbox`,class:`vd-tree-checkbox`,checked:t.node.checked,"aria-label":t.node.label,onChange:(0,e.withModifiers)(s,[`stop`]),onClick:r[0]||=(0,e.withModifiers)(()=>{},[`stop`])},null,40,nn)):(0,e.createCommentVNode)(``,!0),t.node.icon?((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{key:3,class:(0,e.normalizeClass)([`vd-tree-icon`,t.node.icon])},null,2)):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`span`,rn,(0,e.toDisplayString)(t.node.label),1)]),a.value?((0,e.openBlock)(),(0,e.createElementBlock)(`ul`,an,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.node.children,(n,a)=>((0,e.openBlock)(),(0,e.createBlock)(c,{key:n.id??a,node:n,checkbox:t.checkbox,onToggle:r[1]||=e=>i(`toggle`,e),onCheck:r[2]||=(e,t)=>i(`check`,e,t)},null,8,[`node`,`checkbox`]))),128))])):(0,e.createCommentVNode)(``,!0)],10,$t)}}}),on=(0,e.defineComponent)({__name:`VdTree`,props:{nodes:{},checkbox:{type:Boolean},cascade:{type:Boolean}},setup(t,{expose:n}){let r=t,i=(0,e.ref)(null),a=e=>e.map(e=>({...e,children:e.children?a(e.children):void 0})),o=(0,e.reactive)(a(r.nodes)),s=(e,t)=>{e.forEach(e=>{e.checked=t,e.children&&s(e.children,t)})},c=(e,t=[])=>(e.forEach(e=>{e.checked&&t.push(e.id??e.label??``),e.children&&c(e.children,t)}),t),l=(e,t)=>{e.checked=t,(r.cascade??!0)&&e.children&&s(e.children,t),i.value?.dispatchEvent(new CustomEvent(`tree:check`,{bubbles:!0,detail:{checked:c(o),node:e.id}}))},u=e=>{i.value?.dispatchEvent(new CustomEvent(`tree:toggle`,{bubbles:!0,detail:{id:e.id,open:!!e.open}}))},d=e=>{let t=i.value,n=document.activeElement;if(!t||!n||!t.contains(n))return;let r=Array.from(t.querySelectorAll(`.vd-tree-node-content`)),a=n.closest(`.vd-tree-node-content`),o=a?r.indexOf(a):-1;if(o===-1)return;let s=e=>{r[e]?.querySelector(`.vd-tree-toggle, .vd-tree-label`)?.focus()};switch(e.key){case`ArrowDown`:e.preventDefault(),o<r.length-1&&s(o+1);break;case`ArrowUp`:e.preventDefault(),o>0&&s(o-1);break;case`ArrowRight`:{e.preventDefault();let t=a?.closest(`.vd-tree-node`),n=a?.querySelector(`.vd-tree-toggle`);n&&!t?.classList.contains(`is-open`)&&n.click();break}case`ArrowLeft`:{e.preventDefault();let t=a?.closest(`.vd-tree-node`),n=a?.querySelector(`.vd-tree-toggle`);n&&t?.classList.contains(`is-open`)&&n.click();break}}};return n({getChecked:()=>c(o)}),(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{ref_key:`root`,ref:i,class:`vd-tree`,role:`tree`,onKeydown:d},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(o,(n,r)=>((0,e.openBlock)(),(0,e.createBlock)(B,{key:n.id??r,node:n,checkbox:!!t.checkbox,onToggle:u,onCheck:l},null,8,[`node`,`checkbox`]))),128))],544))}}),sn=(0,e.defineComponent)({__name:`VdBox`,props:{as:{default:`div`},pad:{default:`fib-8`}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.as),{class:`vd-box`,"data-pad":t.pad},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`data-pad`]))}}),cn=(0,e.defineComponent)({__name:`VdCenter`,props:{as:{default:`div`},max:{default:`fib-610`},axis:{}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.as),{class:`vd-center`,"data-max":t.max,"data-axis":t.axis},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`data-max`,`data-axis`]))}}),ln=(0,e.defineComponent)({__name:`VdCover`,props:{as:{default:`div`},min:{default:`fib-610`},gap:{}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.as),{class:`vd-cover`,"data-min":t.min,"data-gap":t.gap},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`data-min`,`data-gap`]))}}),un=[`data-ratio`],dn=(0,e.defineComponent)({__name:`VdFrame`,props:{ratio:{default:`golden`}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:`vd-frame`,"data-ratio":t.ratio},[(0,e.renderSlot)(n.$slots,`default`)],8,un))}}),fn=[`data-gap`],pn=(0,e.defineComponent)({__name:`VdInline`,props:{gap:{default:`fib-5`}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:`vd-inline`,"data-gap":t.gap},[(0,e.renderSlot)(n.$slots,`default`)],8,fn))}}),mn=(0,e.defineComponent)({__name:`VdStack`,props:{gap:{default:`fib-8`},as:{default:`div`}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.as),{class:`vd-stack`,"data-gap":t.gap},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`)]),_:3},8,[`data-gap`]))}}),hn=[`data-threshold`,`data-gap`],gn=(0,e.defineComponent)({__name:`VdSwitcher`,props:{threshold:{default:`fib-610`},gap:{default:`fib-5`}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:`vd-switcher`,"data-threshold":t.threshold,"data-gap":t.gap},[(0,e.renderSlot)(n.$slots,`default`)],8,hn))}});function _n(e){if(!e||e===document.body)return!1;let t=window.getComputedStyle(e),n=/(auto|scroll|overlay)/.test(t.overflowY)&&e.scrollHeight>e.clientHeight,r=/(auto|scroll|overlay)/.test(t.overflowX)&&e.scrollWidth>e.clientWidth;return n||r}function vn(e){let t=e.parentElement;for(;t&&t!==document.body&&t!==document.documentElement;){if(_n(t))return t;t=t.parentElement}return null}function yn(t){let n=[];(0,e.onMounted)(()=>{if(typeof window>`u`)return;let e=t.value;e&&e.querySelectorAll(`.vd-affix, .vd-sticky, [data-vd-affix]`).forEach(e=>{let t=parseInt(e.getAttribute(`data-vd-affix-offset`)||`0`,10),r=Number.isNaN(t)?0:t,i=vn(e),a=!1,o=document.createElement(`div`);o.style.cssText=`display:block;height:1px;margin-bottom:-1px;visibility:hidden;pointer-events:none;`,e.parentNode?.insertBefore(o,e),e.style.setProperty(`--vd-affix-top-offset`,r+`px`);let s=()=>{a||(a=!0,e.classList.add(`is-stuck`),e.dispatchEvent(new CustomEvent(`affix:stuck`,{bubbles:!0,detail:{offset:r,root:i||window}})))},c=()=>{a&&(a=!1,e.classList.remove(`is-stuck`),e.dispatchEvent(new CustomEvent(`affix:unstuck`,{bubbles:!0,detail:{offset:r,root:i||window}})))},l=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?c():s()})},{root:i,rootMargin:`-`+r+`px 0px 0px 0px`,threshold:0});l.observe(o),n.push(()=>l.disconnect(),()=>{o.parentNode&&o.parentNode.removeChild(o)},()=>{e.classList.remove(`is-stuck`),e.style.removeProperty(`--vd-affix-top-offset`)})})}),(0,e.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}var bn=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],V=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],xn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);function Sn(e){let t=`^`,n=[],r=0;for(;r<e.length;){let i=e.slice(r);i.toLowerCase().startsWith(`yyyy`)?(t+=`(\\d{4})`,n.push(`y`),r+=4):i.toLowerCase().startsWith(`mm`)?(t+=`(\\d{2})`,n.push(`m`),r+=2):i.toLowerCase().startsWith(`dd`)?(t+=`(\\d{2})`,n.push(`d`),r+=2):(t+=xn(e[r]),r++)}return t+=`$`,{regex:new RegExp(t),order:n}}function Cn(e,t){if(!e||!t)return null;let{regex:n,order:r}=Sn(t),i=e.trim().match(n);if(!i)return null;let a,o,s,c=1;for(let e of r){let t=parseInt(i[c++],10);if(Number.isNaN(t))return null;e===`y`?a=t:e===`m`?o=t-1:e===`d`&&(s=t)}if(a===void 0||o===void 0||s===void 0)return null;let l=new Date(a,o,s);return l.getFullYear()!==a||l.getMonth()!==o||l.getDate()!==s?null:l}function wn(e,t){let n=String(e.getFullYear()),r=String(e.getMonth()+1).padStart(2,`0`),i=String(e.getDate()).padStart(2,`0`),a=``,o=0;for(;o<t.length;){let e=t.slice(o);e.toLowerCase().startsWith(`yyyy`)?(a+=n,o+=4):e.toLowerCase().startsWith(`mm`)?(a+=r,o+=2):e.toLowerCase().startsWith(`dd`)?(a+=i,o+=2):(a+=t[o],o++)}return a}var H=e=>e.getFullYear()+`-`+String(e.getMonth()+1).padStart(2,`0`)+`-`+String(e.getDate()).padStart(2,`0`);function U(e,t){let n=new Date(e.getFullYear(),e.getMonth(),e.getDate());return n.setDate(n.getDate()+t),n}var W=(e,t)=>new Date(e.getFullYear(),e.getMonth()+t,e.getDate());function G(e){if(!e||typeof e!=`string`)return null;let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());if(!t)return null;let n=+t[1],r=t[2]-1,i=+t[3],a=new Date(n,r,i);return a.getFullYear()!==n||a.getMonth()!==r||a.getDate()!==i?null:a}function Tn(e){let t=new Date(e.getFullYear(),e.getMonth(),e.getDate());return t.setDate(t.getDate()-t.getDay()),t}function En(e){let t=new Date(e.getFullYear(),e.getMonth(),e.getDate());return t.setDate(t.getDate()+(6-t.getDay())),t}function Dn(e,t,n=4){let r=e.getBoundingClientRect();t.style.minWidth=Math.max(r.width,0)+`px`;let i=r.bottom+n,a=r.left;t.style.top=i+`px`,t.style.left=a+`px`;let o=t.getBoundingClientRect();o.bottom>window.innerHeight-8&&r.top-o.height>8&&(i=r.top-o.height-n,t.style.top=i+`px`);let s=t.getBoundingClientRect();a=r.left,a+s.width>window.innerWidth-8&&(a=window.innerWidth-s.width-8),t.style.left=Math.max(8,a)+`px`}function On(t){let n=[];(0,e.onMounted)(()=>{if(typeof window>`u`)return;let e=t.value;e&&e.querySelectorAll(`[data-vd-datepicker]`).forEach(e=>kn(e,n))}),(0,e.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}function kn(e,t){let n=e.getAttribute(`data-vd-datepicker-format`)||`YYYY-MM-DD`,r=G(e.getAttribute(`data-vd-datepicker-min`)),i=G(e.getAttribute(`data-vd-datepicker-max`)),a=new Date,o=a.getFullYear(),s=a.getMonth(),c=null,l=`days`,u=null,d=!1,f=0,p=e=>{let t=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return!!(r&&t<r.getTime()||i&&t>i.getTime())},m=(e,t)=>{if(!r&&!i)return{y:e,m:t};let n=new Date(e,t,1),a=new Date(e,t+1,0);return r&&a.getTime()<r.getTime()?{y:r.getFullYear(),m:r.getMonth()}:i&&n.getTime()>i.getTime()?{y:i.getFullYear(),m:i.getMonth()}:{y:e,m:t}},h=(e,t)=>{let n=new Date(e,t+1,0).getDate();for(let r=1;r<=n;r++){let n=new Date(e,t,r);if(!p(n))return n}return new Date(e,t,1)};if(e.value){let t=e.value.trim(),r=Cn(t,n);if(!r){let e=new Date(t);isNaN(e.getTime())||(r=e)}r&&(c=r,o=r.getFullYear(),s=r.getMonth())}let g=m(o,s);o=g.y,s=g.m;let _=document.createElement(`div`);_.className=`vd-datepicker-popup`,_.setAttribute(`role`,`dialog`),_.setAttribute(`aria-label`,`Choose date`),_.tabIndex=-1;let v=e.closest(`.vd-suggest-wrapper`);v||(v=document.createElement(`div`),v.className=`vd-suggest-wrapper`,v.style.position=`relative`,v.style.display=`inline-block`,e.parentNode?.insertBefore(v,e),v.appendChild(e)),document.body.appendChild(_);let y=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),b=t=>{c=t,o=t.getFullYear(),s=t.getMonth(),e.value=wn(t,n),d=!0,A(),e.dispatchEvent(new CustomEvent(`datepicker:select`,{bubbles:!0,detail:{date:t,formatted:e.value}})),e.dispatchEvent(new Event(`change`,{bubbles:!0})),e.focus()},x=()=>{if(l!==`days`||!u)return;let e=_.querySelector(`[data-vd-date="`+H(u)+`"]`);e&&!e.classList.contains(`is-outside`)&&e.getAttribute(`aria-disabled`)!==`true`&&e.focus()},S=(e,t,n)=>{let r=new Date(e.getFullYear(),e.getMonth(),e.getDate()),i=t>0?1:-1;for(let e=0;e<n;e++){if(!p(r))return r;r=U(r,i)}return e},C=(e,t,n)=>{let r=document.createElement(`button`);return r.type=`button`,r.className=`vd-datepicker-day`,r.textContent=String(e),r.setAttribute(`role`,`gridcell`),t?(r.classList.add(`is-outside`),r.tabIndex=-1,r.setAttribute(`aria-disabled`,`true`),r):(r.setAttribute(`data-vd-date`,H(n)),y(n,a)&&r.classList.add(`is-today`),y(n,c)&&r.classList.add(`is-selected`),p(n)?(r.classList.add(`is-disabled`),r.setAttribute(`aria-disabled`,`true`),r.tabIndex=-1,r):(r.tabIndex=u&&y(n,u)?0:-1,r.addEventListener(`click`,()=>{u=new Date(n.getFullYear(),n.getMonth(),n.getDate()),b(n)}),r))},w=()=>{_.innerHTML=``;let e=document.createElement(`div`);e.className=`vd-datepicker-header`;let t=document.createElement(`button`);t.type=`button`,t.className=`vd-datepicker-prev`,t.innerHTML=`&#8249;`,t.setAttribute(`aria-label`,`Previous`);let n=document.createElement(`button`);n.type=`button`,n.className=`vd-datepicker-next`,n.innerHTML=`&#8250;`,n.setAttribute(`aria-label`,`Next`);let r=document.createElement(`span`);if(r.className=`vd-datepicker-title`,l===`days`)r.textContent=V[s]+` `+o,r.addEventListener(`click`,()=>{l=`months`,w()}),t.addEventListener(`click`,()=>{s--,s<0&&(s=11,o--),w()}),n.addEventListener(`click`,()=>{s++,s>11&&(s=0,o++),w()});else if(l===`months`)r.textContent=String(o),r.addEventListener(`click`,()=>{l=`years`,w()}),t.addEventListener(`click`,()=>{o--,w()}),n.addEventListener(`click`,()=>{o++,w()});else{let e=Math.floor(o/10)*10;r.textContent=e+` - `+(e+9),t.addEventListener(`click`,()=>{o-=10,w()}),n.addEventListener(`click`,()=>{o+=10,w()})}if(e.appendChild(t),e.appendChild(r),e.appendChild(n),_.appendChild(e),l===`days`){let e=document.createElement(`div`);e.className=`vd-datepicker-grid`,e.setAttribute(`role`,`grid`),e.setAttribute(`aria-label`,`Calendar`);let t=document.createElement(`div`);t.className=`vd-datepicker-weekdays`,t.setAttribute(`role`,`row`),bn.forEach(e=>{let n=document.createElement(`span`);n.setAttribute(`role`,`columnheader`),n.setAttribute(`aria-label`,e),n.textContent=e,t.appendChild(n)}),e.appendChild(t);let n=new Date(o,s,1).getDay(),r=new Date(o,s+1,0).getDate(),i=new Date(o,s,0).getDate(),a=[];for(let e=n-1;e>=0;e--){let t=i-e,n=s===0?11:s-1,r=s===0?o-1:o;a.push({day:t,outside:!0,date:new Date(r,n,t)})}for(let e=1;e<=r;e++)a.push({day:e,outside:!1,date:new Date(o,s,e)});let c=n+r,l=c%7==0?0:7-c%7;for(let e=1;e<=l;e++)a.push({day:e,outside:!0,date:new Date(o,s+1,e)});for(let t=0;t<a.length;t+=7){let n=document.createElement(`div`);n.className=`vd-datepicker-row`,n.setAttribute(`role`,`row`);for(let e=0;e<7;e++){let r=a[t+e];n.appendChild(C(r.day,r.outside,r.date))}e.appendChild(n)}_.appendChild(e)}else if(l===`months`){let e=document.createElement(`div`);e.className=`vd-datepicker-months`,V.forEach((t,n)=>{let r=document.createElement(`button`);r.type=`button`,r.className=`vd-datepicker-month-btn`,r.textContent=t.slice(0,3),c&&c.getFullYear()===o&&c.getMonth()===n&&r.classList.add(`is-selected`),r.addEventListener(`click`,()=>{s=n,l=`days`,w()}),e.appendChild(r)}),_.appendChild(e)}else{let e=document.createElement(`div`);e.className=`vd-datepicker-years`;let t=Math.floor(o/10)*10;for(let n=t-1;n<=t+10;n++){let r=document.createElement(`button`);r.type=`button`,r.className=`vd-datepicker-year-btn`,r.textContent=String(n),c&&c.getFullYear()===n&&r.classList.add(`is-selected`),(n<t||n>t+9)&&(r.style.opacity=`0.4`),r.addEventListener(`click`,()=>{o=n,l=`months`,w()}),e.appendChild(r)}_.appendChild(e)}_.classList.contains(`is-open`)&&requestAnimationFrame(E)},T=t=>{if(!_.classList.contains(`is-open`)||l!==`days`)return;let n=_.querySelector(`.vd-datepicker-grid`);if(!n||!n.contains(t.target))return;let r=t.key;if(![`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`PageUp`,`PageDown`,`Enter`,` `,`Escape`].includes(r))return;if(r===`Escape`){t.preventDefault(),t.stopPropagation(),d=!0,A(),e.focus();return}if(u||=h(o,s),r===`Enter`||r===` `){t.preventDefault(),u&&!p(u)&&b(new Date(u.getFullYear(),u.getMonth(),u.getDate()));return}t.preventDefault();let i=new Date(u.getFullYear(),u.getMonth(),u.getDate()),a=1;if(r===`ArrowLeft`?(i=U(i,-1),a=-1):r===`ArrowRight`?(i=U(i,1),a=1):r===`ArrowUp`?(i=U(i,-7),a=-1):r===`ArrowDown`?(i=U(i,7),a=1):r===`Home`?(i=Tn(i),a=1):r===`End`?(i=En(i),a=-1):r===`PageUp`?(i=W(i,-1),a=-1):r===`PageDown`&&(i=W(i,1),a=1),i=S(i,a,400),i.getMonth()!==s||i.getFullYear()!==o){o=i.getFullYear(),s=i.getMonth();let e=m(o,s);o=e.y,s=e.m}u=i,w(),requestAnimationFrame(x)},E=()=>{_.classList.contains(`is-open`)&&Dn(e,_)},D=()=>E(),O=()=>{f=Date.now()+100},k=()=>{O(),l=`days`,c&&(o=c.getFullYear(),s=c.getMonth());let t=m(o,s);o=t.y,s=t.m,u=c?new Date(c.getFullYear(),c.getMonth(),c.getDate()):h(o,s),w(),_.classList.add(`is-open`),e.setAttribute(`aria-expanded`,`true`),requestAnimationFrame(()=>{E(),x()})},A=()=>{_.classList.remove(`is-open`),e.setAttribute(`aria-expanded`,`false`),l=`days`},j=()=>{if(d){d=!1;return}k()},M=()=>{_.classList.contains(`is-open`)||k()},N=t=>{if(!t||!(t instanceof Node))return!1;if(t===e||e.contains(t)||_.contains(t))return!0;let n=e.id;if(n){let e=document.querySelector(`label[for="`+n.replace(/"/g,`\\"`)+`"]`);if(e&&(t===e||e.contains(t)))return!0}return!1},P=e=>{Date.now()<f||N(e.target)||A()},F=t=>{t.key===`Escape`&&_.classList.contains(`is-open`)&&(d=!0,A(),e.focus())};e.addEventListener(`focus`,j),e.addEventListener(`click`,M),document.addEventListener(`click`,P,!0),document.addEventListener(`keydown`,F),_.addEventListener(`keydown`,T),window.addEventListener(`resize`,D),window.addEventListener(`scroll`,D,!0),e.setAttribute(`aria-haspopup`,`dialog`),e.setAttribute(`aria-expanded`,`false`),e.setAttribute(`autocomplete`,`off`),t.push(()=>e.removeEventListener(`focus`,j),()=>e.removeEventListener(`click`,M),()=>document.removeEventListener(`click`,P,!0),()=>document.removeEventListener(`keydown`,F),()=>_.removeEventListener(`keydown`,T),()=>window.removeEventListener(`resize`,D),()=>window.removeEventListener(`scroll`,D,!0),()=>_.remove())}function An(t){let n=!1;(0,e.onMounted)(()=>{let e=t.value;if(!e||typeof window>`u`)return;let r=window;n=!0,r.VanduoDraggable&&typeof r.VanduoDraggable.init==`function`?r.VanduoDraggable.init(e):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(e)}),(0,e.onUnmounted)(()=>{if(typeof window>`u`||!n)return;let e=window;e.VanduoDraggable&&typeof e.VanduoDraggable.destroyAll==`function`&&e.VanduoDraggable.destroyAll(),n=!1})}function jn(t){let n=()=>{let e=t.value;if(!e||typeof window>`u`)return;let n=e,r=window;r.VanduoDropdown&&typeof r.VanduoDropdown.init==`function`?r.VanduoDropdown.init(n):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(n)},r=()=>{if(typeof window>`u`)return;let e=window;e.VanduoDropdown&&typeof e.VanduoDropdown.destroyAll==`function`&&e.VanduoDropdown.destroyAll()};(0,e.onMounted)(()=>{n()}),(0,e.onUnmounted)(()=>{r()})}function Mn(t){let n=!1;(0,e.onMounted)(()=>{let e=t.value;if(!e||typeof window>`u`)return;let r=window;n=!0,r.VanduoExpandingCards&&typeof r.VanduoExpandingCards.init==`function`?r.VanduoExpandingCards.init(e):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(e)}),(0,e.onUnmounted)(()=>{if(typeof window>`u`||!n)return;let e=window;e.VanduoExpandingCards&&typeof e.VanduoExpandingCards.destroyAll==`function`&&e.VanduoExpandingCards.destroyAll(),n=!1})}function Nn(t){let n=[],r=e=>{let t=e.querySelector(`.vd-flow-track`);if(!t)return;let r=Array.from(t.querySelectorAll(`.vd-flow-slide`));if(r.length===0)return;let i=e.classList.contains(`vd-flow-fade`),a=e.hasAttribute(`data-vd-autoplay`),o=parseInt(e.getAttribute(`data-vd-interval`)??``,10)||5e3,s=e.getAttribute(`data-vd-loop`)!==`false`,c={current:0,total:r.length},l=null,u=!1,d=0,f=0;r.forEach((e,t)=>{e.setAttribute(`role`,`group`),e.setAttribute(`aria-roledescription`,`slide`),e.setAttribute(`aria-label`,`Slide ${t+1} of ${r.length}`),t===0&&e.classList.add(`is-active`)}),e.setAttribute(`role`,`region`),e.setAttribute(`aria-roledescription`,`carousel`),e.getAttribute(`aria-label`)||e.setAttribute(`aria-label`,`Carousel`);let p=document.createElement(`div`);p.setAttribute(`aria-live`,`polite`),p.setAttribute(`aria-atomic`,`true`),p.className=`sr-only`,p.style.cssText=`position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);`,e.appendChild(p);let m=Array.from(e.querySelectorAll(`.vd-flow-indicators button, .vd-flow-indicator`));m.forEach((e,t)=>{e.classList.add(`vd-flow-indicator`),e.setAttribute(`role`,`tab`),e.setAttribute(`aria-selected`,t===0?`true`:`false`),e.getAttribute(`aria-label`)||e.setAttribute(`aria-label`,`Go to slide ${t+1}`)});let h=(n,a=!0)=>{let o=s?(n%c.total+c.total)%c.total:Math.max(0,Math.min(n,c.total-1)),l=c.current;c.current=o,i?r.forEach((e,t)=>e.classList.toggle(`is-active`,t===o)):t.style.transform=`translateX(-${o*100}%)`,m.forEach((e,t)=>{e.classList.toggle(`is-active`,t===o),e.setAttribute(`aria-selected`,t===o?`true`:`false`),e.setAttribute(`aria-current`,t===o?`true`:`false`)}),r.forEach((e,t)=>{e.setAttribute(`aria-hidden`,t===o?`false`:`true`)}),a&&(p.textContent=`Slide ${o+1} of ${c.total}`),e.dispatchEvent(new CustomEvent(`flow:change`,{detail:{current:o,previous:l,total:c.total}}))},g=()=>h(c.current+1),_=()=>h(c.current-1),v=e.querySelector(`.vd-flow-prev`),y=e.querySelector(`.vd-flow-next`);v&&(v.addEventListener(`click`,_),n.push(()=>v.removeEventListener(`click`,_))),y&&(y.addEventListener(`click`,g),n.push(()=>y.removeEventListener(`click`,g))),m.forEach((e,t)=>{let r=()=>h(t);e.addEventListener(`click`,r),n.push(()=>e.removeEventListener(`click`,r))});let b=e=>{e.key===`ArrowLeft`&&(_(),e.preventDefault()),e.key===`ArrowRight`&&(g(),e.preventDefault())};e.setAttribute(`tabindex`,`0`),e.addEventListener(`keydown`,b),n.push(()=>e.removeEventListener(`keydown`,b));let x=t=>{u=!0,d=t.clientX||t.touches&&t.touches[0]?.clientX||0,f=d,e.classList.add(`is-dragging`)},S=e=>{u&&(f=e.clientX||e.touches&&e.touches[0]?.clientX||0)},C=()=>{if(!u)return;u=!1,e.classList.remove(`is-dragging`);let t=d-f;Math.abs(t)>50&&(t>0?g():_())};e.addEventListener(`mousedown`,x),e.addEventListener(`mousemove`,S),e.addEventListener(`mouseup`,C),e.addEventListener(`mouseleave`,C),e.addEventListener(`touchstart`,x,{passive:!0}),e.addEventListener(`touchmove`,S,{passive:!0}),e.addEventListener(`touchend`,C),n.push(()=>e.removeEventListener(`mousedown`,x),()=>e.removeEventListener(`mousemove`,S),()=>e.removeEventListener(`mouseup`,C),()=>e.removeEventListener(`mouseleave`,C),()=>e.removeEventListener(`touchstart`,x),()=>e.removeEventListener(`touchmove`,S),()=>e.removeEventListener(`touchend`,C));let w=()=>{T(),l=window.setInterval(g,o)},T=()=>{l!=null&&(window.clearInterval(l),l=null)};a&&(w(),e.addEventListener(`mouseenter`,T),e.addEventListener(`mouseleave`,w),e.addEventListener(`focusin`,T),e.addEventListener(`focusout`,w),n.push(()=>e.removeEventListener(`mouseenter`,T),()=>e.removeEventListener(`mouseleave`,w),()=>e.removeEventListener(`focusin`,T),()=>e.removeEventListener(`focusout`,w),()=>T())),h(0,!1)};(0,e.onMounted)(()=>{let e=t.value;e&&e.querySelectorAll(`.vd-flow, .vd-carousel`).forEach(r)}),(0,e.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}var K=[`a[href]`,`button:not([disabled])`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`,`),Pn=t=>{let n=(0,e.ref)(!1),r=e=>{if(!n.value||e.key!==`Tab`||!t.value)return;let r=Array.from(t.value.querySelectorAll(K)).filter(e=>!e.hasAttribute(`disabled`)&&e.tabIndex!==-1);if(r.length===0){e.preventDefault();return}let i=r[0],a=r[r.length-1],o=document.activeElement;e.shiftKey&&o===i?(e.preventDefault(),a.focus()):!e.shiftKey&&o===a&&(e.preventDefault(),i.focus())};return(0,e.onMounted)(()=>{typeof window<`u`&&window.addEventListener(`keydown`,r)}),(0,e.onUnmounted)(()=>{typeof window<`u`&&window.removeEventListener(`keydown`,r)}),{active:n,activate:()=>{n.value=!0,t.value&&t.value.querySelector(K)?.focus()},deactivate:()=>{n.value=!1}}};function Fn(t){let n=[];(0,e.onMounted)(()=>{let e=t.value;!e||typeof IntersectionObserver>`u`||e.querySelectorAll(`[data-glass-scroll]`).forEach(e=>{let t=e.dataset.glassSentinel,r=t?document.querySelector(t):null;if(r||=e.previousElementSibling,!r){e.classList.add(`is-glass-active`);return}let i=new IntersectionObserver(t=>{t.forEach(t=>{e.classList.toggle(`is-glass-active`,!t.isIntersecting)})},{threshold:0,rootMargin:`0px`});i.observe(r),n.push(i)})}),(0,e.onUnmounted)(()=>{n.forEach(e=>e.disconnect()),n.length=0})}function In(t){let n=!1;(0,e.onMounted)(()=>{let e=t.value;if(!e||typeof window>`u`)return;let r=window;n=!0,r.VanduoImageBox&&typeof r.VanduoImageBox.init==`function`?r.VanduoImageBox.init(e):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(e)}),(0,e.onUnmounted)(()=>{if(typeof window>`u`||!n)return;let e=window;e.VanduoImageBox&&typeof e.VanduoImageBox.destroyAll==`function`&&e.VanduoImageBox.destroyAll(),n=!1})}var Ln=(t,n)=>{let r=(0,e.ref)(0),i=0,a=()=>t.value?Array.from(t.value.querySelectorAll(n.itemSelector)):[],o=e=>{let t=a()[e];t&&(t.focus(),r.value=e)};return typeof window<`u`&&t.value&&t.value.addEventListener(`keydown`,e=>{let t=a();if(t.length===0)return;let i=t.length-1,s=r.value;switch(e.key){case`ArrowDown`:case`ArrowRight`:s=Math.min(i,r.value+1);break;case`ArrowUp`:case`ArrowLeft`:s=Math.max(0,r.value-1);break;case`Home`:s=0;break;case`End`:s=i;break;case`Enter`:n.onSelect?.(r.value);return;case`Escape`:n.onEscape?.();return;default:return}e.preventDefault(),o(s)}),{activeIndex:r,setItems:e=>{i=e,r.value>=i&&(r.value=Math.max(0,i-1))}}},Rn=750;function zn(t){let n=[],r=e=>{if(!e.querySelector(`.vd-morph-wave`)){let t=document.createElement(`span`);t.className=`vd-morph-wave`,t.setAttribute(`aria-hidden`,`true`),e.insertBefore(t,e.firstChild)}if(!e.querySelector(`.vd-morph-shine`)){let t=document.createElement(`span`);t.className=`vd-morph-shine`,t.setAttribute(`aria-hidden`,`true`);let n=e.querySelector(`.vd-morph-wave`);n?.nextSibling?e.insertBefore(t,n.nextSibling):e.insertBefore(t,e.firstChild)}},i=(e,t,n)=>{let r=e.querySelector(`.vd-morph-wave`);if(r){let n=e.getBoundingClientRect(),i=n.left+n.width/2,a=n.top+n.height/2,o=t&&t.clientX||i,s=t&&t.clientY||a;r.style.left=`${o-n.left}px`,r.style.top=`${s-n.top}px`}e.classList.add(`is-morphing`);let i=Rn,a=getComputedStyle(e).getPropertyValue(`--vd-morph-duration`);if(a){let e=parseFloat(a);isNaN(e)||(i=e*(a.includes(`ms`)?1:1e3))}window.setTimeout(()=>{e.classList.remove(`is-morphing`);let t=e.querySelector(`.vd-morph-current`),r=e.querySelector(`.vd-morph-next`);t&&r&&(t.classList.replace(`vd-morph-current`,`vd-morph-next`),r.classList.replace(`vd-morph-next`,`vd-morph-current`)),n()},i)};(0,e.onMounted)(()=>{let e=t.value;e&&e.querySelectorAll(`.vd-morph, [data-vd-morph]`).forEach(e=>{if(e.getAttribute(`data-vd-morph`)===`manual`)return;r(e);let t=!1,a=n=>{t||(t=!0,i(e,n,()=>t=!1))};e.addEventListener(`click`,a),n.push(()=>e.removeEventListener(`click`,a))})}),(0,e.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}function Bn(t){let n=[],r=(e,t,n)=>{if(!e)return;let r=String(t||``).replace(/[^a-z0-9-\s]/gi,``).trim();for(;e.firstChild;)e.removeChild(e.firstChild);if(r){let t=document.createElement(`i`);t.className=`ph ${r}`,t.style.marginRight=`0.35rem`,e.appendChild(t)}e.appendChild(document.createTextNode(n==null?``:String(n)))};(0,e.onMounted)(()=>{let e=t.value;e&&e.querySelectorAll(`[data-vd-morph="manual"][data-morph-states]`).forEach(e=>{let t=JSON.parse(e.getAttribute(`data-morph-states`)||`[]`),i=JSON.parse(e.getAttribute(`data-morph-classes`)||`[]`),a=JSON.parse(e.getAttribute(`data-morph-icons`)||`[]`),o=0,s=!1,c=750,l=getComputedStyle(e).getPropertyValue(`--vd-morph-duration`).trim();if(l){let e=parseFloat(l);isNaN(e)||(c=e*(l.includes(`ms`)?1:1e3))}let u=n=>{if(s||t.length===0)return;s=!0;let l=(o+1)%t.length,u=(l+1)%t.length,d=e.querySelector(`.vd-morph-next`);d&&r(d,a[l]??``,t[l]??``);let f=e.querySelector(`.vd-morph-wave`);if(f){let t=e.getBoundingClientRect();f.style.left=`${(n.clientX||t.left+t.width/2)-t.left}px`,f.style.top=`${(n.clientY||t.top+t.height/2)-t.top}px`}e.classList.add(`is-morphing`),window.setTimeout(()=>{e.classList.remove(`is-morphing`),i.forEach(t=>e.classList.remove(t)),i[l]&&e.classList.add(i[l]);let n=e.querySelector(`.vd-morph-current`),c=e.querySelector(`.vd-morph-next`);n&&r(n,a[l]??``,t[l]??``),c&&r(c,a[u]??``,t[u]??``),o=l,s=!1},c)};e.addEventListener(`click`,u),n.push(()=>e.removeEventListener(`click`,u))})}),(0,e.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}function Vn(t){let n=(0,e.ref)(!1),r=null;return(0,e.onMounted)(()=>{let e=t.value;if(!e)return;let i=e.classList.contains(`vd-navbar-glass`),a=e.classList.contains(`vd-navbar-transparent`);if(!i&&!a)return;let o=()=>{let t=parseInt(e.dataset.scrollThreshold??``,10);return Number.isNaN(t)?e.offsetHeight||60:t};r=()=>{n.value=window.scrollY>o()},r(),window.addEventListener(`scroll`,r,{passive:!0})}),(0,e.onUnmounted)(()=>{r&&=(window.removeEventListener(`scroll`,r),null)}),n}function Hn(t){let n=new Map,r=!1,i=null,a=e=>e.classList.contains(`vd-parallax-slow`)?.5:e.classList.contains(`vd-parallax-fast`)?1.5:1,o=e=>{let t=n.get(e);if(!t)return;let r=e.getBoundingClientRect(),i=window.innerHeight,a=(Math.max(0,Math.min(1,(i-r.top)/(i+r.height)))-.5)*t.speed*100;t.layers.forEach(e=>{let n=e.dataset.parallaxSpeed??e.dataset.speed,r=a*(n?parseFloat(n):1);e.style.transform=t.direction===`horizontal`?`translateX(${r}px)`:`translateY(${r}px)`})},s=()=>n.forEach((e,t)=>o(t)),c=()=>{r||=(window.requestAnimationFrame(()=>{s(),r=!1}),!0)};(0,e.onMounted)(()=>{if(typeof window>`u`||window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return;let e=t.value;e&&(e.querySelectorAll(`.vd-parallax`).forEach(e=>{let t=Array.from(e.querySelectorAll(`.vd-parallax-layer, .vd-parallax-bg`)),r=e.classList.contains(`vd-parallax-horizontal`)?`horizontal`:`vertical`;n.set(e,{layers:t,speed:a(e),direction:r}),o(e)}),i=()=>c(),window.addEventListener(`scroll`,i,{passive:!0}),c())}),(0,e.onUnmounted)(()=>{i&&window.removeEventListener(`scroll`,i),i=null,n.forEach(e=>{e.layers.forEach(e=>e.style.transform=``)}),n.clear()})}function Un(t){let n=!1;(0,e.onMounted)(()=>{let e=t.value;if(!e||typeof window>`u`)return;let r=window;n=!0,r.VanduoBubble&&typeof r.VanduoBubble.init==`function`?r.VanduoBubble.init(e):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(e)}),(0,e.onUnmounted)(()=>{if(typeof window>`u`||!n)return;let e=window;e.VanduoBubble&&typeof e.VanduoBubble.destroyAll==`function`&&e.VanduoBubble.destroyAll(),n=!1})}function Wn(t){(0,e.onMounted)(()=>{let e=t.value;if(!e||typeof window>`u`)return;let n=window;n.VanduoRipple&&typeof n.VanduoRipple.init==`function`?n.VanduoRipple.init(e):n.Vanduo&&typeof n.Vanduo.init==`function`&&n.Vanduo.init(e)}),(0,e.onUnmounted)(()=>{if(typeof window>`u`)return;let e=window;e.VanduoRipple&&typeof e.VanduoRipple.destroyAll==`function`&&e.VanduoRipple.destroyAll()})}var Gn=(t,n={})=>{let r=(0,e.ref)(t[0]??null),i=n.offset??96,a=null;return(0,e.onMounted)(()=>{if(typeof window>`u`||!(`IntersectionObserver`in window))return;let e=new Set;a=new IntersectionObserver(n=>{for(let t of n)t.isIntersecting?e.add(t.target.id):e.delete(t.target.id);let i=t.find(t=>e.has(t));i&&(r.value=i)},{rootMargin:n.rootMargin??`-${i}px 0px -60% 0px`,threshold:0});for(let e of t){let t=document.getElementById(e);t&&a.observe(t)}}),(0,e.onUnmounted)(()=>{a?.disconnect(),a=null}),{activeId:r}};function Kn(t){(0,e.onMounted)(()=>{if(typeof window>`u`)return;let e=window;e.VanduoSearch&&e.VanduoSearch.list()}),(0,e.onUnmounted)(()=>{})}function qn(t){let n=[],r=[],i=(e,t)=>{!e.classList.contains(`vd-sidenav-fixed`)&&!e.classList.contains(`vd-offcanvas-fixed`)&&t.classList.add(`is-visible`),e.classList.add(`is-open`),e.setAttribute(`aria-hidden`,`false`),document.body.classList.add(`body-sidenav-open`),e.dispatchEvent(new CustomEvent(`sidenav:open`,{bubbles:!0}))},a=(e,t)=>{t.classList.remove(`is-visible`),e.classList.remove(`is-open`),e.setAttribute(`aria-hidden`,`true`),document.body.classList.remove(`body-sidenav-open`),e.dispatchEvent(new CustomEvent(`sidenav:close`,{bubbles:!0}))},o=(e,t)=>{e.classList.contains(`is-open`)?a(e,t):i(e,t)};(0,e.onMounted)(()=>{let e=t.value;if(!e)return;let i=new Map;e.querySelectorAll(`.vd-sidenav, .vd-offcanvas`).forEach(e=>{let t=e.getAttribute(`data-vd-position`);if(t){let n=e.classList.contains(`vd-offcanvas`)?`vd-offcanvas`:`vd-sidenav`;e.classList.add(`${n}-${t}`)}let o=document.createElement(`div`);o.className=`vd-sidenav-overlay`,document.body.appendChild(o),r.push(o),i.set(e,o),e.setAttribute(`role`,`navigation`),e.setAttribute(`aria-hidden`,`true`);let s=e.querySelector(`.vd-sidenav-close, .vd-offcanvas-close`);if(s){let t=()=>a(e,o);s.addEventListener(`click`,t),n.push(()=>s.removeEventListener(`click`,t))}let c=()=>{e.dataset.backdrop!==`static`&&a(e,o)};o.addEventListener(`click`,c),n.push(()=>o.removeEventListener(`click`,c));let l=t=>{t.key===`Escape`&&e.classList.contains(`is-open`)&&e.dataset.keyboard!==`false`&&a(e,o)};document.addEventListener(`keydown`,l),n.push(()=>document.removeEventListener(`keydown`,l))}),e.querySelectorAll(`[data-sidenav-toggle]`).forEach(e=>{let t=t=>{t.preventDefault();let n=e.dataset.sidenavToggle;if(!n)return;let r=document.querySelector(n),a=r?i.get(r):void 0;r&&a&&o(r,a)};e.addEventListener(`click`,t),n.push(()=>e.removeEventListener(`click`,t))})}),(0,e.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0,r.forEach(e=>e.remove()),r.length=0,document.body.classList.remove(`body-sidenav-open`)})}function Jn(t){let n=!1;(0,e.onMounted)(()=>{let e=t.value;if(!e||typeof window>`u`)return;let r=window;n=!0,r.VanduoSpotlight&&typeof r.VanduoSpotlight.init==`function`?r.VanduoSpotlight.init(e):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(e)}),(0,e.onUnmounted)(()=>{if(typeof window>`u`||!n)return;let e=window;e.VanduoSpotlight&&typeof e.VanduoSpotlight.destroyAll==`function`&&e.VanduoSpotlight.destroyAll(),n=!1})}function Yn(t){let n=new Map,r=[];return(0,e.onMounted)(()=>{let e=t.value;e&&e.querySelectorAll(`.vd-stepper`).forEach(e=>{let t=Array.from(e.querySelectorAll(`.vd-stepper-item`)),i=e.classList.contains(`vd-stepper-clickable`),a=t.findIndex(e=>e.classList.contains(`is-active`));a===-1&&(a=0);let o=n=>{if(n<0||n>=t.length)return;let r=a;a=n,t.forEach((e,t)=>{e.classList.remove(`is-active`,`is-completed`),e.removeAttribute(`aria-current`),t<n?e.classList.add(`is-completed`):t===n&&(e.classList.add(`is-active`),e.setAttribute(`aria-current`,`step`))}),e.dispatchEvent(new CustomEvent(`stepper:change`,{detail:{current:n,previous:r,total:t.length},bubbles:!0}))};i&&t.forEach((e,t)=>{let n=()=>o(t);e.addEventListener(`click`,n);let i=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o(t))};e.addEventListener(`keydown`,i),r.push(()=>e.removeEventListener(`click`,n)),r.push(()=>e.removeEventListener(`keydown`,i))}),o(a),n.set(e,{setStep:o,next:()=>o(a+1),prev:()=>o(a-1)})})}),(0,e.onUnmounted)(()=>{r.forEach(e=>e()),r.length=0,n.clear()}),{next:e=>{e&&n.get(e)?.next()},prev:e=>{e&&n.get(e)?.prev()},setStep:(e,t)=>{e&&n.get(e)?.setStep(t)}}}function Xn(e,t){try{let n=new URL(e,window.location.href);return n.origin===window.location.origin?!0:t.includes(n.origin)}catch{return!1}}var q=e=>typeof e==`object`&&(e.label||e.text)||String(e);function Zn(t){let n=[];(0,e.onMounted)(()=>{if(typeof window>`u`)return;let e=t.value;e&&e.querySelectorAll(`[data-vd-suggest], [data-vd-autocomplete]`).forEach(e=>{let t=parseInt(e.getAttribute(`data-vd-suggest-min-chars`)||`1`,10),r=e.getAttribute(`data-vd-suggest-url`)||``,i=(e.getAttribute(`data-vd-suggest-allowlist`)||``).split(`,`).map(e=>e.trim()).filter(Boolean),a=e.getAttribute(`data-vd-suggest`)||e.getAttribute(`data-vd-autocomplete`)||``,o=[];try{o=JSON.parse(a)}catch{o=a.split(`,`).map(e=>e.trim()).filter(Boolean)}let s=e.closest(`.vd-suggest-wrapper, .vd-autocomplete-wrapper`);s||(s=document.createElement(`div`),s.className=`vd-suggest-wrapper`,e.parentNode?.insertBefore(s,e),s.appendChild(e));let c=document.createElement(`ul`);c.className=`vd-suggest-list`,c.setAttribute(`role`,`listbox`);let l=`vd-suggest-`+Math.random().toString(36).slice(2,9);c.id=l,s.appendChild(c),e.setAttribute(`role`,`combobox`),e.setAttribute(`aria-autocomplete`,`list`),e.setAttribute(`aria-expanded`,`false`),e.setAttribute(`aria-controls`,l),e.setAttribute(`autocomplete`,`off`);let u=-1,d=[],f=null,p=(e,t)=>{if(c.innerHTML=``,d=e,u=-1,e.length===0){let e=document.createElement(`li`);e.className=`vd-suggest-empty`,e.textContent=`No results`,c.appendChild(e);return}e.forEach((e,n)=>{let r=document.createElement(`li`);r.className=`vd-suggest-item`,r.setAttribute(`role`,`option`),r.id=l+`-item-`+n;let i=q(e);if(t){let e=i.toLowerCase(),n=t.toLowerCase(),a=0,o=e.indexOf(n,a);for(;o!==-1;){o>a&&r.appendChild(document.createTextNode(i.slice(a,o)));let s=document.createElement(`span`);s.className=`vd-suggest-match`,s.textContent=i.slice(o,o+t.length),r.appendChild(s),a=o+t.length,o=e.indexOf(n,a)}a<i.length&&r.appendChild(document.createTextNode(i.slice(a)))}else r.textContent=i;r.addEventListener(`click`,()=>g(n)),c.appendChild(r)})},m=()=>{c.classList.add(`is-open`),e.setAttribute(`aria-expanded`,`true`)},h=()=>{c.classList.remove(`is-open`),e.setAttribute(`aria-expanded`,`false`),u=-1,e.removeAttribute(`aria-activedescendant`)},g=t=>{let n=d[t],r=typeof n==`object`&&(n.value||n.label)||String(n);e.value=r,h(),e.dispatchEvent(new CustomEvent(`suggest:select`,{bubbles:!0,detail:{value:r,item:n,index:t}}))},_=t=>{let n=c.querySelectorAll(`.vd-suggest-item`);n.forEach(e=>e.classList.remove(`is-highlighted`)),t>=0&&t<n.length&&(u=t,n[t].classList.add(`is-highlighted`),e.setAttribute(`aria-activedescendant`,n[t].id),n[t].scrollIntoView({block:`nearest`}))},v=async e=>{if(e.length<t){h();return}let n;if(r)try{if(!Xn(r,i))n=[];else{let t=r.includes(`?`)?`&`:`?`;n=await(await window.fetch(r+t+`q=`+encodeURIComponent(e))).json()}}catch{n=[]}else{let t=e.toLowerCase();n=o.filter(e=>q(e).toLowerCase().includes(t))}p(n,e),m()},y=()=>{f&&clearTimeout(f),f=setTimeout(()=>void v(e.value),200)},b=t=>{if(!c.classList.contains(`is-open`)){t.key===`ArrowDown`&&(v(e.value),t.preventDefault());return}let n=d.length;switch(t.key){case`ArrowDown`:t.preventDefault(),_(u<n-1?u+1:0);break;case`ArrowUp`:t.preventDefault(),_(u>0?u-1:n-1);break;case`Enter`:t.preventDefault(),u>=0&&g(u);break;case`Escape`:h();break}},x=()=>{setTimeout(h,200)},S=()=>{e.value.length>=t&&v(e.value)};e.addEventListener(`input`,y),e.addEventListener(`keydown`,b),e.addEventListener(`blur`,x),e.addEventListener(`focus`,S),n.push(()=>e.removeEventListener(`input`,y),()=>e.removeEventListener(`keydown`,b),()=>e.removeEventListener(`blur`,x),()=>e.removeEventListener(`focus`,S),()=>{f&&clearTimeout(f)},()=>{c.parentNode&&c.parentNode.removeChild(c)})})}),(0,e.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}function Qn(t){let n=[];(0,e.onMounted)(()=>{let e=t.value;e&&e.querySelectorAll(`.vd-tabs`).forEach(e=>{e.querySelectorAll(`.vd-tab-link[data-tab-target]`).forEach(t=>{let r=()=>{if(t.classList.contains(`disabled`))return;let n=t.getAttribute(`data-tab-target`);n&&(e.querySelectorAll(`.vd-tab-link`).forEach(e=>{e.classList.remove(`is-active`),e.setAttribute(`aria-selected`,`false`)}),e.querySelectorAll(`.vd-tab-pane`).forEach(e=>e.classList.remove(`is-active`)),t.classList.add(`is-active`),t.setAttribute(`aria-selected`,`true`),e.querySelector(`#${CSS.escape(n)}`)?.classList.add(`is-active`))};t.addEventListener(`click`,r),n.push(()=>t.removeEventListener(`click`,r))})})}),(0,e.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}var J={...n.DEFAULTS,PRIMARY_DARK:`blue`},$n=n.PALETTE_OPTIONS.map(e=>e.key),er=e=>$n.includes(e),Y={PALETTE:`vanduo-palette`,PRIMARY:`vanduo-primary-color`,NEUTRAL:`vanduo-neutral-color`,RADIUS:`vanduo-radius`,FONT:`vanduo-font-preference`,THEME:`vanduo-theme-preference`},X=()=>typeof window<`u`,tr=()=>{if(!X()||typeof window.matchMedia!=`function`)return!1;let e=window.matchMedia(`(prefers-color-scheme: dark)`);return!!e&&e.matches},Z=e=>e===`system`?tr()?J.PRIMARY_DARK:J.PRIMARY_LIGHT:e===`dark`?J.PRIMARY_DARK:J.PRIMARY_LIGHT,Q=(e,t)=>{if(!X())return t;try{return window.localStorage.getItem(e)??t}catch{return t}},$=(e,t)=>{if(X())try{window.localStorage.setItem(e,t)}catch{}},nr=()=>({palette:J.PALETTE,theme:J.THEME,primary:Z(J.THEME),neutral:J.NEUTRAL,radius:J.RADIUS,font:J.FONT}),rr=()=>{let e=Q(Y.THEME,J.THEME),t=Q(Y.RADIUS,J.RADIUS),r=Q(Y.PALETTE,J.PALETTE);return{palette:er(r)?r:J.PALETTE,theme:n.THEME_MODES.includes(e)?e:J.THEME,primary:Q(Y.PRIMARY,Z(e)),neutral:Q(Y.NEUTRAL,J.NEUTRAL),radius:n.RADIUS_OPTIONS.includes(t)?t:J.RADIUS,font:Q(Y.FONT,J.FONT)}},ir=e=>e===J.PRIMARY_LIGHT||e===J.PRIMARY_DARK,ar=e=>{if(!X())return;let t=document.documentElement;ir(e.primary)&&(e.primary=Z(e.theme)),t.setAttribute(`data-palette`,e.palette),t.setAttribute(`data-primary`,e.primary),t.setAttribute(`data-neutral`,e.neutral),t.setAttribute(`data-radius`,e.radius),t.style.setProperty(`--vd-radius-scale`,e.radius),e.font===`system`?t.removeAttribute(`data-font`):t.setAttribute(`data-font`,e.font),e.theme===`system`?t.removeAttribute(`data-theme`):t.setAttribute(`data-theme`,e.theme)},or=e=>{$(Y.PALETTE,e.palette),$(Y.THEME,e.theme),$(Y.PRIMARY,e.primary),$(Y.NEUTRAL,e.neutral),$(Y.RADIUS,e.radius),$(Y.FONT,e.font)};function sr(t){let n=!1;(0,e.onMounted)(()=>{let e=t.value;if(!e||typeof window>`u`)return;let r=window;n=!0,r.VanduoTimeline&&typeof r.VanduoTimeline.init==`function`?r.VanduoTimeline.init(e):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(e)}),(0,e.onUnmounted)(()=>{if(typeof window>`u`||!n)return;let e=window;e.VanduoTimeline&&typeof e.VanduoTimeline.destroyAll==`function`&&e.VanduoTimeline.destroyAll(),n=!1})}function cr(e,t,n=4){let r=e.getBoundingClientRect();t.style.minWidth=Math.max(r.width,0)+`px`;let i=r.bottom+n,a=r.left;t.style.top=i+`px`,t.style.left=a+`px`;let o=t.getBoundingClientRect();o.bottom>window.innerHeight-8&&r.top-o.height>8&&(i=r.top-o.height-n,t.style.top=i+`px`);let s=t.getBoundingClientRect();a=r.left,a+s.width>window.innerWidth-8&&(a=window.innerWidth-s.width-8),t.style.left=Math.max(8,a)+`px`}function lr(t){let n=[];(0,e.onMounted)(()=>{if(typeof window>`u`)return;let e=t.value;e&&e.querySelectorAll(`[data-vd-timepicker]`).forEach(e=>{let t=e.getAttribute(`data-vd-timepicker-format`)===`24h`,r=parseInt(e.getAttribute(`data-vd-timepicker-step`)||`30`,10),i=document.createElement(`div`);i.className=`vd-timepicker-popup`,i.setAttribute(`role`,`listbox`),document.body.appendChild(i);let a=[];for(let e=0;e<24;e++)for(let n=0;n<60;n+=r){let r=String(e).padStart(2,`0`),i=String(n).padStart(2,`0`);if(t)a.push({display:r+`:`+i,value:r+`:`+i});else{let t=e<12?`AM`:`PM`,n=e===0?12:e>12?e-12:e;a.push({display:n+`:`+i+` `+t,value:r+`:`+i})}}let o=()=>{i.innerHTML=``,a.forEach(t=>{let n=document.createElement(`div`);n.className=`vd-timepicker-item`,n.setAttribute(`role`,`option`),n.textContent=t.display,(e.value===t.value||e.value===t.display)&&(n.classList.add(`is-selected`),n.setAttribute(`aria-selected`,`true`)),n.addEventListener(`click`,()=>{e.value=t.display,i.querySelectorAll(`.vd-timepicker-item`).forEach(e=>{e.classList.remove(`is-selected`),e.removeAttribute(`aria-selected`)}),n.classList.add(`is-selected`),n.setAttribute(`aria-selected`,`true`),l();let[r,a]=t.value.split(`:`);e.dispatchEvent(new CustomEvent(`timepicker:select`,{bubbles:!0,detail:{time:t.display,hours:parseInt(r,10),minutes:parseInt(a,10)}})),e.dispatchEvent(new Event(`change`,{bubbles:!0}))}),i.appendChild(n)})},s=()=>{i.classList.contains(`is-open`)&&cr(e,i)},c=()=>{o(),i.classList.add(`is-open`),e.setAttribute(`aria-expanded`,`true`),requestAnimationFrame(()=>{s();let e=i.querySelector(`.is-selected`);e&&e.scrollIntoView({block:`center`})})},l=()=>{i.classList.remove(`is-open`),e.setAttribute(`aria-expanded`,`false`)},u=()=>c(),d=t=>{let n=t.target;!e.contains(n)&&!i.contains(n)&&l()},f=e=>{e.key===`Escape`&&l()},p=()=>s();e.addEventListener(`focus`,u),document.addEventListener(`click`,d,!0),document.addEventListener(`keydown`,f),window.addEventListener(`resize`,p),window.addEventListener(`scroll`,p,!0),e.setAttribute(`aria-haspopup`,`listbox`),e.setAttribute(`aria-expanded`,`false`),e.setAttribute(`autocomplete`,`off`),e.readOnly=!0,n.push(()=>e.removeEventListener(`focus`,u),()=>document.removeEventListener(`click`,d,!0),()=>document.removeEventListener(`keydown`,f),()=>window.removeEventListener(`resize`,p),()=>window.removeEventListener(`scroll`,p,!0),()=>i.remove())})}),(0,e.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}var ur=[`B`,`STRONG`,`I`,`EM`,`BR`,`A`,`SPAN`,`U`,`DIV`,`P`,`KBD`,`CODE`,`SMALL`,`MARK`],dr=[`SVG`,`PATH`,`LINE`,`CIRCLE`,`POLYLINE`,`RECT`,`G`],fr=new Set([`xmlns`,`width`,`height`,`viewBox`,`fill`,`stroke`,`stroke-width`,`stroke-linecap`,`stroke-linejoin`,`d`,`cx`,`cy`,`r`,`x1`,`y1`,`x2`,`y2`,`points`,`transform`,`class`]);function pr(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}function mr(e,t={}){if(!e)return``;if(typeof DOMParser>`u`)return pr(e);let n=t.allowSvg===!0,r=t.allowStyle===!0,i=n?ur.concat(dr):ur,a;try{a=new DOMParser().parseFromString(e,`text/html`)}catch{return pr(e)}let o=e=>{Array.from(e.childNodes).forEach(t=>{if(t.nodeType===Node.TEXT_NODE)return;let a=t;if(!i.includes(a.nodeName)){e.replaceChild(document.createTextNode(a.textContent??``),t);return}if(a.nodeName===`A`){let e=a.getAttribute(`href`)??``;try{let t=new URL(e,location.href);[`http:`,`https:`,`mailto:`].includes(t.protocol)||a.removeAttribute(`href`)}catch{a.removeAttribute(`href`)}a.removeAttribute(`target`),a.removeAttribute(`rel`)}else if(n&&(a.nodeName===`SVG`||a.closest?.(`svg`)))Array.from(a.attributes).forEach(e=>{fr.has(e.name)||a.removeAttribute(e.name)});else{let e=new Set([`class`]);r&&e.add(`style`),Array.from(a.attributes).forEach(t=>{e.has(t.name)||a.removeAttribute(t.name)})}o(a)})};return o(a.body),a.body.innerHTML}function hr(t){let n=null,r=[],i=()=>{n&&=(n.remove(),null)},a=(e,t,n)=>{let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a,o;switch(n){case`bottom`:a=r.bottom+8,o=r.left+r.width/2-i.width/2;break;case`left`:a=r.top+r.height/2-i.height/2,o=r.left-i.width-8;break;case`right`:a=r.top+r.height/2-i.height/2,o=r.right+8;break;default:a=r.top-i.height-8,o=r.left+r.width/2-i.width/2}t.style.top=`${Math.max(4,a)}px`,t.style.left=`${Math.max(4,o)}px`},o=e=>{i();let t=e.getAttribute(`data-tooltip`),r=e.getAttribute(`data-tooltip-html`);if(!t&&!r)return;let o=e.getAttribute(`data-tooltip-placement`)??`top`,s=e.getAttribute(`data-tooltip-variant`),c=e.getAttribute(`data-tooltip-size`),l=document.createElement(`div`);l.className=`vd-tooltip vd-tooltip-`+o+(s?` vd-tooltip-`+s:``)+(c?` vd-tooltip-`+c:``)+(r?` vd-tooltip-html`:``),l.setAttribute(`data-placement`,o),l.style.position=`fixed`,r?l.innerHTML=mr(r,{allowStyle:!1}):l.textContent=t,document.body.appendChild(l),a(e,l,o),requestAnimationFrame(()=>l.classList.add(`is-visible`)),n=l};(0,e.onMounted)(()=>{let e=t.value;e&&e.querySelectorAll(`[data-tooltip],[data-tooltip-html]`).forEach(e=>{let t=()=>o(e),n=()=>i();e.addEventListener(`mouseenter`,t),e.addEventListener(`mouseleave`,n),e.addEventListener(`focus`,t),e.addEventListener(`blur`,n),r.push(()=>{e.removeEventListener(`mouseenter`,t),e.removeEventListener(`mouseleave`,n),e.removeEventListener(`focus`,t),e.removeEventListener(`blur`,n)})})}),(0,e.onUnmounted)(()=>{i(),r.forEach(e=>e()),r.length=0})}var gr={required:e=>e.trim().length>0,email:e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),url:e=>{try{return new URL(e),!0}catch{return!1}},number:e=>!isNaN(parseFloat(e))&&isFinite(Number(e)),min:(e,t)=>e.length>=parseInt(t,10),max:(e,t)=>e.length<=parseInt(t,10),minVal:(e,t)=>parseFloat(e)>=parseFloat(t),maxVal:(e,t)=>parseFloat(e)<=parseFloat(t),pattern:(e,t)=>{try{return t.length>100?!1:new RegExp(t).test(e)}catch{return!1}},match:(e,t)=>{try{let n=typeof CSS<`u`&&CSS.escape?CSS.escape(t):t,r=document.getElementById(t)??document.querySelector(`[name="${n}"]`);return r?e===r.value:!1}catch{return!1}}},_r={required:`This field is required`,email:`Please enter a valid email address`,url:`Please enter a valid URL`,number:`Please enter a valid number`,min:`Minimum {0} characters required`,max:`Maximum {0} characters allowed`,minVal:`Value must be at least {0}`,maxVal:`Value must be at most {0}`,pattern:`Invalid format`,match:`Fields do not match`},vr=0;function yr(e,t){let n=e.closest(`.vd-form-group`)??e.parentElement;if(!n)return;let r=n.querySelector(`.vd-validate-error`);e.classList.remove(`is-valid`,`is-invalid`),t.length>0?(e.classList.add(`is-invalid`),e.setAttribute(`aria-invalid`,`true`),r||(r=document.createElement(`div`),r.className=`vd-validate-error`,vr+=1,r.id=`vd-err-${vr}`,r.setAttribute(`role`,`alert`),n.appendChild(r)),r.textContent=t[0]??``,r.style.display=``,e.setAttribute(`aria-describedby`,r.id)):e.value.trim()?(e.classList.add(`is-valid`),e.removeAttribute(`aria-invalid`),r&&(r.style.display=`none`)):(e.removeAttribute(`aria-invalid`),r&&(r.style.display=`none`))}function br(t){let n=[],r=e=>{let t=(e.getAttribute(`data-vd-rules`)??``).split(`|`).map(e=>e.trim()).filter(Boolean),n=e.value,r=[];for(let i of t){let[t,...a]=i.split(`:`),o=a.join(`:`),s=t?gr[t]:void 0;if(s&&!s(n,o)){let n=(t?e.getAttribute(`data-vd-msg-${t}`):null)??(t?_r[t]:void 0)??`Invalid`;o&&(n=n.replace(`{0}`,o)),r.push(n);break}}return yr(e,r),r.length===0},i=e=>{let t=e.getAttribute(`data-vd-validate-mode`)??`blur`,i=Array.from(e.querySelectorAll(`[data-vd-rules]`)),a=()=>{let e=!0;return i.forEach(t=>{r(t)||(e=!1)}),e};i.forEach(e=>{let i=e.getAttribute(`data-vd-validate-mode`)??t;if(i===`input`||i===`blur`){let t=i===`input`?`input`:`blur`,a=()=>r(e);if(e.addEventListener(t,a),n.push(()=>e.removeEventListener(t,a)),i===`blur`){let t=()=>{(e.classList.contains(`is-invalid`)||e.classList.contains(`is-valid`))&&r(e)};e.addEventListener(`input`,t),n.push(()=>e.removeEventListener(`input`,t))}}});let o=t=>{let n=a();n||(t.preventDefault(),t.stopPropagation(),e.querySelector(`.is-invalid`)?.focus()),e.dispatchEvent(new CustomEvent(`validate:submit`,{detail:{valid:n},bubbles:!0}))};e.addEventListener(`submit`,o),n.push(()=>e.removeEventListener(`submit`,o))};(0,e.onMounted)(()=>{let e=t.value;e&&e.querySelectorAll(`[data-vd-validate], .vd-validate`).forEach(i)}),(0,e.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}function xr(t){let n=[];(0,e.onMounted)(()=>{if(typeof window>`u`)return;let e=t.value;e&&e.querySelectorAll(`[data-vd-waypoint-nav], [data-vd-scrollspy-nav]`).forEach(e=>{let t=Array.from(e.querySelectorAll(`a[href^="#"]`));if(t.length===0)return;let r=parseInt(e.getAttribute(`data-vd-waypoint-offset`)||`80`,10),i=e.getAttribute(`data-vd-waypoint-nav`)||e.getAttribute(`data-vd-scrollspy-nav`)||``,a=null;i&&i!==`window`&&(a=document.querySelector(i));let o=[];if(t.forEach(e=>{let t=(e.getAttribute(`href`)||``).slice(1),n=t?document.getElementById(t):null;n&&(n.setAttribute(`data-vd-waypoint-section`,``),o.push({id:t,link:e,section:n}))}),o.length===0)return;let s=new Set,c=n=>{t.forEach(e=>{e.classList.remove(`is-active`),e.removeAttribute(`aria-current`)});let r=t.find(e=>e.getAttribute(`href`)===`#`+n);r&&(r.classList.add(`is-active`),r.setAttribute(`aria-current`,`true`),e.dispatchEvent(new CustomEvent(`waypoint:change`,{detail:{activeId:n,link:r}})))},l=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?s.add(e.target.id):s.delete(e.target.id)});for(let e of o)if(s.has(e.id)){c(e.id);return}},{root:a,rootMargin:`-`+r+`px 0px -40% 0px`,threshold:0});o.forEach(e=>l.observe(e.section)),t.forEach(e=>{let t=t=>{t.preventDefault();let n=(e.getAttribute(`href`)||``).slice(1),r=n?document.getElementById(n):null;r&&(r.scrollIntoView({behavior:`smooth`}),c(n))};e.addEventListener(`click`,t),n.push(()=>e.removeEventListener(`click`,t))}),n.push(()=>l.disconnect())})}),(0,e.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}exports.DEFAULTS=J,exports.FONT_OPTIONS=n.FONT_OPTIONS,exports.NEUTRAL_COLORS=n.NEUTRAL_COLORS,exports.PALETTE_OPTIONS=n.PALETTE_OPTIONS,exports.PRIMARY_COLORS=n.PRIMARY_COLORS,exports.RADIUS_OPTIONS=n.RADIUS_OPTIONS,exports.THEME_MODES=n.THEME_MODES,exports.VanduoVue=a,exports.VdAccordion=u,exports.VdAlert=h,exports.VdAvatar=x,exports.VdBadge=S,exports.VdBox=sn,exports.VdButton=T,exports.VdButtonGroup=E,exports.VdCard=A,exports.VdCenter=cn,exports.VdCheckboxGroup=N,exports.VdChip=F,exports.VdCodeSnippet=re,exports.VdCollection=me,exports.VdCover=ln,exports.VdCustomSelect=ye,exports.VdFlow=Ee,exports.VdFrame=dn,exports.VdIcon=d,exports.VdInline=pn,exports.VdInput=Oe,exports.VdModal=Pe,exports.VdOffcanvas=ze,exports.VdPagination=Ue,exports.VdPreloader=Ge,exports.VdProgress=Ye,exports.VdRadioGroup=Qe,exports.VdRating=tt,exports.VdSelect=ot,exports.VdSidenav=ft,exports.VdSkeleton=mt,exports.VdSpinner=gt,exports.VdStack=mn,exports.VdSwitcher=gn,exports.VdTable=bt,exports.VdTabs=Tt,exports.VdToast=I,exports.VdToastContainer=Mt,exports.VdTooltip=Pt,exports.VdTransfer=Qt,exports.VdTree=on,exports.VdTreeNode=B,exports.applyPreference=ar,exports.defaultPreference=nr,exports.defaultPrimary=Z,exports.isDefaultPrimary=ir,exports.loadPreference=rr,exports.loadVanduoRuntime=i,exports.persistPreference=or,exports.sanitizeHtml=mr,exports.useAffix=yn,exports.useDatepicker=On,exports.useDraggable=An,exports.useDropdown=jn,exports.useExpandingCards=Mn,exports.useFlow=Nn,exports.useFocusTrap=Pn,exports.useGlass=Fn,exports.useImageBox=In,exports.useKeyboardNav=Ln,exports.useMorph=zn,exports.useMorphBadges=Bn,exports.useNavbarGlassScroll=Vn,exports.useParallax=Hn,exports.usePopover=Un,exports.useRipple=Wn,exports.useScrollspy=Gn,exports.useSearch=Kn,exports.useSidenav=qn,exports.useSpotlight=Jn,exports.useStepper=Yn,exports.useSuggest=Zn,exports.useTabs=Qn,exports.useTimeline=sr,exports.useTimepicker=lr,exports.useToast=jt,exports.useToastStore=z,exports.useTooltips=hr,exports.useValidate=br,exports.useWaypoint=xr;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@vanduo-oss/core"),t=require("vue"),n=require("pinia");var r={...e.DEFAULTS},i=()=>({...r}),a=e=>(r={...r,...e},r),o=e.PALETTE_OPTIONS.map(e=>e.key),s=e=>o.includes(e),c={PALETTE:`vanduo-palette`,PRIMARY:`vanduo-primary-color`,NEUTRAL:`vanduo-neutral-color`,RADIUS:`vanduo-radius`,FONT:`vanduo-font-preference`,THEME:`vanduo-theme-preference`},l=()=>typeof window<`u`,u=()=>{if(!l()||typeof window.matchMedia!=`function`)return!1;let e=window.matchMedia(`(prefers-color-scheme: dark)`);return!!e&&e.matches},d=e=>e===`system`?u()?r.PRIMARY_DARK:r.PRIMARY_LIGHT:e===`dark`?r.PRIMARY_DARK:r.PRIMARY_LIGHT,f=(e,t)=>{if(!l())return t;try{return window.localStorage.getItem(e)??t}catch{return t}},p=(e,t)=>{if(l())try{window.localStorage.setItem(e,t)}catch{}},m=()=>({palette:r.PALETTE,theme:r.THEME,primary:d(r.THEME),neutral:r.NEUTRAL,radius:r.RADIUS,font:r.FONT}),h=()=>{let t=f(c.THEME,r.THEME),n=f(c.RADIUS,r.RADIUS),i=f(c.PALETTE,r.PALETTE);return{palette:s(i)?i:r.PALETTE,theme:e.THEME_MODES.includes(t)?t:r.THEME,primary:f(c.PRIMARY,d(t)),neutral:f(c.NEUTRAL,r.NEUTRAL),radius:e.RADIUS_OPTIONS.includes(n)?n:r.RADIUS,font:f(c.FONT,r.FONT)}},g=e=>e===r.PRIMARY_LIGHT||e===r.PRIMARY_DARK,_=e=>{if(!l())return;let t=document.documentElement;g(e.primary)&&(e.primary=d(e.theme)),t.setAttribute(`data-palette`,e.palette),t.setAttribute(`data-primary`,e.primary),t.setAttribute(`data-neutral`,e.neutral),t.setAttribute(`data-radius`,e.radius),t.style.setProperty(`--vd-radius-scale`,e.radius),e.font===`system`?t.removeAttribute(`data-font`):t.setAttribute(`data-font`,e.font),e.theme===`system`?t.removeAttribute(`data-theme`):t.setAttribute(`data-theme`,e.theme)},v=e=>{p(c.PALETTE,e.palette),p(c.THEME,e.theme),p(c.PRIMARY,e.primary),p(c.NEUTRAL,e.neutral),p(c.RADIUS,e.radius),p(c.FONT,e.font)},y=null;function b(){return typeof window>`u`?Promise.resolve():(y||=import(`@vanduo-oss/framework/iife`),y)}var x={install(e,t={}){t.themeDefaults&&a(t.themeDefaults),b()}},S={class:`vd-accordion`},C=[`aria-expanded`,`aria-controls`,`onClick`],w={class:`vd-accordion-icon`,"aria-hidden":`true`},T=[`id`],E=(0,t.defineComponent)({__name:`VdAccordion`,props:{items:{},modelValue:{},exclusive:{type:Boolean}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=e=>r.exclusive?r.modelValue===e:Array.isArray(r.modelValue)&&r.modelValue.includes(e),o=e=>{if(r.exclusive){i(`update:modelValue`,r.modelValue===e?``:e);return}let t=Array.isArray(r.modelValue)?[...r.modelValue]:[],n=t.indexOf(e);n>=0?t.splice(n,1):t.push(e),i(`update:modelValue`,t)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,S,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e.id,class:(0,t.normalizeClass)([`vd-accordion-item`,a(e.id)?`is-open`:null])},[(0,t.createElementVNode)(`button`,{type:`button`,class:`vd-accordion-header`,"aria-expanded":a(e.id),"aria-controls":`vd-accordion-panel-${e.id}`,onClick:t=>o(e.id)},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)(`span`,w,(0,t.toDisplayString)(a(e.id)?`−`:`+`),1)],8,C),(0,t.withDirectives)((0,t.createElementVNode)(`div`,{id:`vd-accordion-panel-${e.id}`,class:`vd-accordion-panel`,role:`region`},[(0,t.renderSlot)(n.$slots,e.id,{item:e},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.content),1)])],8,T),[[t.vShow,a(e.id)]])],2))),128))]))}}),D=(0,t.defineComponent)({__name:`VdIcon`,props:{name:{},filled:{type:Boolean,default:!1},size:{default:`md`}},setup(e){let n=e,r=()=>{switch(n.size){case`sm`:return`vd-text-base`;case`lg`:return`vd-text-2xl`;default:return`vd-text-xl`}};return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`i`,{class:(0,t.normalizeClass)([n.filled?`ph-fill`:`ph`,`ph-${n.name}`,r()]),"aria-hidden":`true`},null,2))}}),O={class:`vd-alert-body`},k={key:0,class:`vd-alert-title`},A={class:`vd-alert-content`},j=(0,t.defineComponent)({__name:`VdAlert`,props:{variant:{default:`info`},dismissible:{type:Boolean,default:!1},title:{default:``}},emits:[`dismiss`],setup(e,{emit:n}){let r=e,i=n,a=()=>{i(`dismiss`)},o=()=>{switch(r.variant){case`success`:return`check-circle`;case`warning`:return`warning`;case`danger`:return`x-circle`;default:return`info`}};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`vd-alert`,`vd-alert-${e.variant}`]),role:`alert`},[(0,t.createVNode)(D,{name:o(),class:`vd-alert-icon`},null,8,[`name`]),(0,t.createElementVNode)(`div`,O,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,k,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,A,[(0,t.renderSlot)(n.$slots,`default`)])]),e.dismissible?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`vd-alert-dismiss`,"aria-label":`Dismiss`,onClick:a},[(0,t.createVNode)(D,{name:`x`})])):(0,t.createCommentVNode)(``,!0)],2))}}),M=[`aria-label`],N=[`src`,`alt`],P={key:1,class:`vd-avatar-initials`},F={key:2,class:`vd-avatar-initials`,"aria-hidden":`true`},ee=[`aria-label`],te=(0,t.defineComponent)({__name:`VdAvatar`,props:{src:{default:``},alt:{default:``},initials:{default:``},size:{default:`md`},variant:{default:`primary`},shape:{default:`circle`},status:{default:void 0}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`vd-avatar`,[`vd-avatar-${e.size}`,`vd-avatar-${e.variant}`,`vd-avatar-${e.shape}`]]),"aria-label":e.alt||e.initials||`Avatar`},[e.src?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:e.src,alt:e.alt,class:`vd-avatar-img`},null,8,N)):e.initials?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,P,(0,t.toDisplayString)(e.initials),1)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,F,` ? `)),e.status?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,class:(0,t.normalizeClass)([`vd-avatar-status`,`vd-avatar-status-${e.status}`]),"aria-label":`Status: ${e.status}`},null,10,ee)):(0,t.createCommentVNode)(``,!0)],10,M))}}),ne=(0,t.defineComponent)({__name:`VdBadge`,props:{variant:{default:`default`},pill:{type:Boolean,default:!1}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:(0,t.normalizeClass)([`vd-badge`,[e.variant==="default"?null:`vd-badge-${e.variant}`,e.pill?`vd-badge-pill`:null]])},[(0,t.renderSlot)(n.$slots,`default`)],2))}}),re=[`type`,`disabled`],ie={key:0,class:`vd-btn-spinner`,"aria-hidden":`true`},ae=(0,t.defineComponent)({__name:`VdButton`,props:{variant:{default:`primary`},size:{default:`md`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:`button`}},emits:[`click`],setup(e,{emit:n}){let r=e,i=n,a=e=>{if(r.disabled||r.loading){e.preventDefault();return}i(`click`,e)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{type:e.type,disabled:e.disabled||e.loading,class:(0,t.normalizeClass)([`vd-btn`,`vd-btn-${e.variant}`,e.size===`md`?null:`vd-btn-${e.size}`,e.loading?`is-loading`:null]),onClick:a},[e.loading?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ie)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`)],10,re))}}),oe=(0,t.defineComponent)({__name:`VdButtonGroup`,props:{size:{default:`md`},vertical:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`vd-btn-group`,[`vd-btn-group-${e.size}`,{"vd-btn-group-vertical":e.vertical,"vd-btn-group-full":e.fullWidth}]]),role:`group`},[(0,t.renderSlot)(n.$slots,`default`)],2))}}),se={key:0,class:`vd-card-header`},ce={class:`vd-card-body`},le={key:1,class:`vd-card-footer`},ue=(0,t.defineComponent)({__name:`VdCard`,props:{elevated:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,{class:(0,t.normalizeClass)([`vd-card`,[e.elevated?`vd-card-elevated`:null,e.interactive?`vd-card-interactive`:null]])},[n.$slots.header?((0,t.openBlock)(),(0,t.createElementBlock)(`header`,se,[(0,t.renderSlot)(n.$slots,`header`)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,ce,[(0,t.renderSlot)(n.$slots,`default`)]),n.$slots.footer?((0,t.openBlock)(),(0,t.createElementBlock)(`footer`,le,[(0,t.renderSlot)(n.$slots,`footer`)])):(0,t.createCommentVNode)(``,!0)],2))}}),de=[`id`,`name`,`value`,`checked`,`disabled`,`onChange`],fe=[`for`],pe=(0,t.defineComponent)({__name:`VdCheckboxGroup`,props:{options:{},modelValue:{},name:{},inline:{type:Boolean,default:!1},size:{default:`md`},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=n,i=(e,t)=>e.includes(t),a=(e,t)=>{let n=[...e],r=n.indexOf(t);return r===-1?n.push(t):n.splice(r,1),n},o=(e,t)=>{r(`update:modelValue`,a(e.modelValue,t))};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`vd-form-check-group`,{"vd-form-check-group-inline":e.inline}]),role:`group`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,r=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:r.value,class:(0,t.normalizeClass)([`vd-form-check`,[`vd-form-check-${e.size}`,{"vd-form-check-inline":e.inline}]])},[(0,t.createElementVNode)(`input`,{id:`${e.name}-${r.value}`,type:`checkbox`,name:e.name,value:r.value,checked:i(e.modelValue,r.value),disabled:e.disabled||r.disabled,class:`vd-form-check-input`,onChange:e=>o(n.$props,r.value)},null,40,de),(0,t.createElementVNode)(`label`,{for:`${e.name}-${r.value}`,class:`vd-form-check-label`},(0,t.toDisplayString)(r.label),9,fe)],2))),128))],2))}}),me=[`src`],he=(0,t.defineComponent)({__name:`VdChip`,props:{variant:{default:`primary`},size:{default:`md`},outline:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1},avatar:{default:``},clickable:{type:Boolean,default:!1}},emits:[`dismiss`,`click`],setup(e,{emit:n}){let r=n,i=e=>{e.stopPropagation(),r(`dismiss`)};return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:(0,t.normalizeClass)([`vd-chip`,[`vd-chip-${e.variant}`,`vd-chip-${e.size}`,{"vd-chip-outline":e.outline,"vd-chip-dismissible":e.dismissible,"vd-chip-clickable":e.clickable}]]),role:`status`,onClick:a[0]||=t=>e.clickable&&r(`click`,t)},[e.avatar?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:e.avatar,class:`vd-chip-avatar`,alt:``},null,8,me)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),e.dismissible?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,class:`vd-chip-close`,"aria-label":`Dismiss`,onClick:i},` × `)):(0,t.createCommentVNode)(``,!0)],2))}}),ge={class:`vd-code-snippet`},_e=[`data-language`],I=[`aria-label`],ve=(0,t.defineComponent)({__name:`VdCodeSnippet`,props:{code:{},language:{default:`html`},copyable:{type:Boolean,default:!0}},setup(e){let n=(0,t.ref)(!1),r=async e=>{if(!(typeof navigator>`u`||!navigator.clipboard))try{await navigator.clipboard.writeText(e),n.value=!0,setTimeout(()=>{n.value=!1},1500)}catch{}};return(i,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`figure`,ge,[(0,t.createElementVNode)(`pre`,{class:(0,t.normalizeClass)([`vd-code-snippet-pre`,`language-${e.language}`]),"data-language":e.language},[(0,t.createElementVNode)(`code`,null,(0,t.toDisplayString)(e.code),1)],10,_e),e.copyable?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`vd-btn vd-btn-ghost vd-btn-sm vd-code-snippet-copy`,"aria-label":n.value?`Copied`:`Copy code`,onClick:a[0]||=t=>r(e.code)},[(0,t.createVNode)(D,{name:n.value?`check`:`copy`},null,8,[`name`]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(n.value?`Copied`:`Copy`),1)],8,I)):(0,t.createCommentVNode)(``,!0)]))}}),ye={key:0,class:`vd-collection-header`},be={class:`vd-collection-title`},xe={class:`vd-collection-list`},Se={key:0,class:`vd-collection-avatar`},Ce=[`src`,`alt`],we={class:`vd-collection-content`},Te={class:`vd-collection-text`},Ee={class:`vd-collection-title`},De={key:0,class:`vd-collection-text-secondary`},Oe={key:1,class:`vd-collection-action`},ke=(0,t.defineComponent)({__name:`VdCollection`,props:{items:{},header:{default:``},hoverable:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},size:{default:`md`}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`vd-collection`,[`vd-collection-${e.size}`,{"vd-collection-hoverable":e.hoverable,"vd-collection-bordered":e.bordered}]])},[e.header?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ye,[(0,t.createElementVNode)(`h3`,be,(0,t.toDisplayString)(e.header),1)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`ul`,xe,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e.id,class:`vd-collection-item`},[e.avatar?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Se,[(0,t.createElementVNode)(`img`,{src:e.avatar,alt:e.subtitle||e.title},null,8,Ce)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,we,[(0,t.createElementVNode)(`div`,Te,[(0,t.createElementVNode)(`strong`,Ee,(0,t.toDisplayString)(e.title),1),e.subtitle?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,De,(0,t.toDisplayString)(e.subtitle),1)):(0,t.createCommentVNode)(``,!0)])]),e.action?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Oe,(0,t.toDisplayString)(e.action),1)):(0,t.createCommentVNode)(``,!0)]))),128))])],2))}}),Ae=[`id`,`name`,`value`],je=[`value`,`disabled`],Me=[`aria-expanded`,`aria-labelledby`],Ne=[`data-value`,`aria-selected`,`aria-disabled`,`onClick`,`onMouseenter`],Pe=(0,t.defineComponent)({__name:`VdCustomSelect`,props:{modelValue:{},options:{},id:{default:``},name:{default:``},placeholder:{default:`Select...`}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(!1),o=(0,t.ref)(-1),s=(0,t.ref)(null),c=(0,t.computed)(()=>r.id||r.name||`custom-select`),l=(0,t.computed)(()=>r.options.flatMap((e,t)=>e.disabled?[]:[t])),u=(0,t.computed)(()=>{let e=r.options.find(e=>e.value===r.modelValue);return e?e.label:r.placeholder}),d=()=>{a.value=!0;let e=r.options.findIndex(e=>e.value===r.modelValue);o.value=e>=0&&!r.options[e]?.disabled?e:l.value[0]??-1},f=()=>{a.value=!1},p=()=>{a.value?f():d()},m=e=>{e.disabled||(i(`update:modelValue`,e.value),f())},h=e=>{let t=l.value;if(t.length===0)return;let n=t.indexOf(o.value);o.value=t[n<0?0:(n+e+t.length)%t.length]??-1},g=``,_=null,v=e=>{switch(e.key){case`Enter`:case` `:if(e.preventDefault(),a.value&&o.value>=0){let e=r.options[o.value];e&&m(e)}else d();break;case`Escape`:a.value&&(e.preventDefault(),f());break;case`ArrowDown`:e.preventDefault(),a.value?h(1):d();break;case`ArrowUp`:e.preventDefault(),a.value&&h(-1);break;case`Home`:a.value&&(e.preventDefault(),o.value=l.value[0]??-1);break;case`End`:if(a.value){e.preventDefault();let t=l.value;o.value=t[t.length-1]??-1}break;default:if(a.value&&e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey){_!=null&&window.clearTimeout(_),g+=e.key.toLowerCase();let t=r.options.findIndex(e=>!e.disabled&&e.label.toLowerCase().startsWith(g));t>=0&&(o.value=t),_=window.setTimeout(()=>{g=``},500)}}},y=e=>{a.value&&s.value&&!s.value.contains(e.target)&&f()};return(0,t.onMounted)(()=>document.addEventListener(`click`,y)),(0,t.onBeforeUnmount)(()=>{document.removeEventListener(`click`,y),_!=null&&window.clearTimeout(_)}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`wrapper`,ref:s,class:`custom-select-wrapper`},[(0,t.createElementVNode)(`select`,{id:e.id||void 0,name:e.name||void 0,value:e.modelValue,tabindex:`-1`,"aria-hidden":`true`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e.value,value:e.value,disabled:e.disabled},(0,t.toDisplayString)(e.label),9,je))),128))],8,Ae),(0,t.createElementVNode)(`button`,{type:`button`,class:`custom-select-button`,"aria-haspopup":`listbox`,"aria-expanded":a.value?`true`:`false`,"aria-labelledby":c.value,onClick:(0,t.withModifiers)(p,[`stop`]),onKeydown:v},(0,t.toDisplayString)(u.value),41,Me),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`custom-select-dropdown`,{"is-open":a.value}]),role:`listbox`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.value,class:(0,t.normalizeClass)([`custom-select-option`,{"is-selected":n.value===e.modelValue,"is-disabled":n.disabled,"is-active":r===o.value}]),role:`option`,"data-value":n.value,"aria-selected":n.value===e.modelValue?`true`:`false`,"aria-disabled":n.disabled?`true`:void 0,onClick:e=>m(n),onMouseenter:e=>o.value=r},(0,t.toDisplayString)(n.label),43,Ne))),128))],2)],512))}}),Fe={class:`vd-flow`,role:`region`,"aria-roledescription":`carousel`},Ie=[`aria-hidden`],Le={key:0,class:`vd-flow-controls`},Re=[`disabled`],ze={class:`vd-flow-position`},Be=[`disabled`],Ve=(0,t.defineComponent)({__name:`VdFlow`,props:{modelValue:{},total:{}},emits:[`update:modelValue`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=(0,t.ref)(i.modelValue),s=e=>{let t=Math.max(0,Math.min(i.total-1,e));t!==o.value&&(o.value=t,a(`update:modelValue`,t))},c=()=>s(o.value-1),l=()=>s(o.value+1);n({go:s,prev:c,next:l,index:o});let u=(0,t.computed)(()=>Array.from({length:i.total},(e,t)=>t));return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Fe,[(0,t.createElementVNode)(`div`,{class:`vd-flow-track`,style:(0,t.normalizeStyle)({transform:`translateX(-${o.value*100}%)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(u.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e,class:`vd-flow-slide`,"aria-hidden":e!==o.value},[(0,t.renderSlot)(n.$slots,`slide-${e}`,{index:e})],8,Ie))),128))],4),e.total>1?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Le,[(0,t.createElementVNode)(`button`,{type:`button`,class:`vd-btn vd-btn-ghost vd-btn-icon`,"aria-label":`Previous slide`,disabled:o.value===0,onClick:c},` ‹ `,8,Re),(0,t.createElementVNode)(`span`,ze,(0,t.toDisplayString)(o.value+1)+` / `+(0,t.toDisplayString)(e.total),1),(0,t.createElementVNode)(`button`,{type:`button`,class:`vd-btn vd-btn-ghost vd-btn-icon`,"aria-label":`Next slide`,disabled:o.value===e.total-1,onClick:l},` › `,8,Be)])):(0,t.createCommentVNode)(``,!0)]))}}),He=[`id`,`type`,`name`,`value`,`placeholder`,`disabled`,`readonly`,`required`,`minlength`,`maxlength`,`pattern`,`autocomplete`],Ue=(0,t.defineComponent)({__name:`VdInput`,props:{modelValue:{},type:{default:`text`},placeholder:{default:``},size:{default:`md`},variant:{default:`default`},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},name:{default:``},id:{default:``},minlength:{default:void 0},maxlength:{default:void 0},pattern:{default:``},autocomplete:{default:``}},emits:[`update:modelValue`,`blur`,`focus`],setup(e,{emit:n}){let r=e,i=n,a=e=>{let t=e.target;i(`update:modelValue`,t.value)};return r.minlength,r.maxlength,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`input`,{id:e.id||e.name,type:e.type,name:e.name,value:e.modelValue,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,required:e.required,minlength:e.minlength,maxlength:e.maxlength,pattern:e.pattern,autocomplete:e.autocomplete,class:(0,t.normalizeClass)([`vd-input`,[`vd-input-${e.size}`,e.variant==="default"?null:`vd-input-${e.variant}`]]),onInput:a,onBlur:r[0]||=e=>i(`blur`,e),onFocus:r[1]||=e=>i(`focus`,e)},null,42,He))}}),We=[`aria-label`],Ge={key:0,class:`vd-modal-header`},Ke={key:0,class:`vd-modal-title`},qe={class:`vd-modal-body`},Je={key:1,class:`vd-modal-footer`},Ye=(0,t.defineComponent)({__name:`VdModal`,props:{open:{type:Boolean},title:{default:``},size:{default:`md`},closeOnBackdrop:{type:Boolean,default:!0}},emits:[`update:open`,`close`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(null),o=(0,t.computed)(()=>`vd-modal-panel-${r.size}`),s=()=>{i(`update:open`,!1),i(`close`)},c=()=>{r.closeOnBackdrop&&s()},l=e=>{r.open&&e.key===`Escape`&&(e.preventDefault(),s())};return(0,t.watch)(()=>r.open,async e=>{typeof window>`u`||(e?(window.addEventListener(`keydown`,l),await(0,t.nextTick)(),a.value?.focus()):window.removeEventListener(`keydown`,l))},{immediate:!0}),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[e.open?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`vd-modal vd-modal-open`,role:`dialog`,"aria-modal":`true`,"aria-label":e.title||`Dialog`,"data-vd-modal":``},[(0,t.createElementVNode)(`div`,{class:`vd-modal-backdrop`,onClick:c}),(0,t.createElementVNode)(`div`,{ref_key:`panel`,ref:a,class:(0,t.normalizeClass)([`vd-modal-panel`,o.value]),tabindex:`-1`},[e.title||n.$slots.header?((0,t.openBlock)(),(0,t.createElementBlock)(`header`,Ge,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)(`h2`,Ke,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`header`),(0,t.createElementVNode)(`button`,{type:`button`,class:`vd-btn vd-btn-ghost vd-btn-icon`,"aria-label":`Close`,onClick:s},[(0,t.createVNode)(D,{name:`x`})])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,qe,[(0,t.renderSlot)(n.$slots,`default`)]),n.$slots.footer?((0,t.openBlock)(),(0,t.createElementBlock)(`footer`,Je,[(0,t.renderSlot)(n.$slots,`footer`)])):(0,t.createCommentVNode)(``,!0)],2)],8,We)):(0,t.createCommentVNode)(``,!0)]))}}),Xe=[`aria-label`],Ze={key:0,class:`vd-sidenav-header`},Qe={key:0,class:`vd-sidenav-title`},$e={class:`vd-sidenav-body`},et=(0,t.defineComponent)({__name:`VdOffcanvas`,props:{modelValue:{type:Boolean},placement:{default:`right`},title:{default:``},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0}},emits:[`update:modelValue`,`close`],setup(e,{emit:n}){let r=e,i=n,a=()=>{i(`update:modelValue`,!1),i(`close`)},o=()=>{r.closeOnBackdrop&&a()},s=e=>{r.modelValue&&e.key===`Escape`&&r.closeOnEsc&&(e.preventDefault(),a())};return(0,t.onMounted)(()=>{typeof window>`u`||window.addEventListener(`keydown`,s)}),(0,t.onBeforeUnmount)(()=>{typeof window>`u`||window.removeEventListener(`keydown`,s)}),(0,t.watch)(()=>r.modelValue,e=>{typeof document>`u`||(document.body.style.overflow=e?`hidden`:``)}),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`vd-sidenav-overlay is-visible`,onClick:o})):(0,t.createCommentVNode)(``,!0),e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)(`aside`,{key:1,class:(0,t.normalizeClass)([`vd-offcanvas`,[`vd-offcanvas-${e.placement}`,`is-open`]]),"aria-label":e.title||`Off-canvas panel`},[e.title||n.$slots.header?((0,t.openBlock)(),(0,t.createElementBlock)(`header`,Ze,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)(`h3`,Qe,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`header`),(0,t.createElementVNode)(`button`,{type:`button`,class:`vd-sidenav-close`,"aria-label":`Close`,onClick:a},` × `)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,$e,[(0,t.renderSlot)(n.$slots,`default`)])],10,Xe)):(0,t.createCommentVNode)(``,!0)]))}}),tt={key:0,class:`vd-pagination-item`},nt=[`data-page`],rt=[`aria-label`,`aria-current`,`onClick`],it=(0,t.defineComponent)({__name:`VdPagination`,props:{modelValue:{},total:{},maxVisible:{default:7},size:{default:`md`},align:{default:`left`},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(null),o=(e,t,n)=>{let r=[],i=Math.floor(n/2);if(t<=n){for(let e=1;e<=t;e++)r.push(e);return r}r.push(1);let a=Math.max(2,e-i),o=Math.min(t-1,e+i);e<=i+1&&(o=Math.min(t-1,n-1)),e>=t-i&&(a=Math.max(2,t-n+2)),a>2&&r.push(`ellipsis`);for(let e=a;e<=o;e++)r.push(e);return o<t-1&&r.push(`ellipsis`),t>1&&r.push(t),r},s=(0,t.computed)(()=>o(r.modelValue,r.total,r.maxVisible)),c=e=>{r.disabled||e<1||e>r.total||e===r.modelValue||(i(`update:modelValue`,e),a.value?.dispatchEvent(new CustomEvent(`pagination:change`,{bubbles:!0,detail:{page:e,totalPages:r.total}})))};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`nav`,{ref_key:`root`,ref:a,"aria-label":`Pagination`},[(0,t.createElementVNode)(`ul`,{class:(0,t.normalizeClass)([`vd-pagination`,[`vd-pagination-${e.size}`,`vd-pagination-${e.align}`]])},[(0,t.createElementVNode)(`li`,{class:(0,t.normalizeClass)([`vd-pagination-item vd-pagination-prev`,{disabled:e.disabled||e.modelValue<=1}])},[(0,t.createElementVNode)(`a`,{class:`vd-pagination-link`,href:`#`,"aria-label":`Previous`,onClick:r[0]||=(0,t.withModifiers)(t=>c(e.modelValue-1),[`prevent`])},`Previous`)],2),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i},[n===`ellipsis`?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,tt,[...r[2]||=[(0,t.createElementVNode)(`span`,{class:`vd-pagination-ellipsis`,"aria-hidden":`true`},`…`,-1)]])):((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:1,class:(0,t.normalizeClass)([`vd-pagination-item`,{active:n===e.modelValue}]),"data-page":n},[(0,t.createElementVNode)(`a`,{class:`vd-pagination-link`,href:`#`,"aria-label":`Page ${n}`,"aria-current":n===e.modelValue?`page`:void 0,onClick:(0,t.withModifiers)(e=>c(n),[`prevent`])},(0,t.toDisplayString)(n),9,rt)],10,nt))],64))),128)),(0,t.createElementVNode)(`li`,{class:(0,t.normalizeClass)([`vd-pagination-item vd-pagination-next`,{disabled:e.disabled||e.modelValue>=e.total}])},[(0,t.createElementVNode)(`a`,{class:`vd-pagination-link`,href:`#`,"aria-label":`Next`,onClick:r[1]||=(0,t.withModifiers)(t=>c(e.modelValue+1),[`prevent`])},`Next`)],2)],2)],512))}}),at={key:0,class:`vd-preloader-text`},ot=(0,t.defineComponent)({__name:`VdPreloader`,props:{variant:{default:`primary`},size:{default:`md`},theme:{default:`light`},text:{default:``}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`vd-preloader-container`,[`vd-preloader-${e.theme}`]]),role:`status`,"aria-live":`polite`},[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`vd-preloader`,[`vd-preloader-${e.variant}`,`vd-preloader-${e.size}`]])},[...r[0]||=[(0,t.createElementVNode)(`div`,{class:`vd-preloader-spinner`},null,-1)]],2),e.text?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,at,(0,t.toDisplayString)(e.text),1)):(0,t.createCommentVNode)(``,!0)],2))}}),st=[`aria-valuemax`,`aria-valuenow`,`aria-label`],ct={class:`vd-progress-track`},lt={key:0,class:`vd-progress-label vd-text-sm vd-muted`},ut=(0,t.defineComponent)({__name:`VdProgress`,props:{value:{default:0},max:{default:100},indeterminate:{type:Boolean,default:!1},label:{default:``}},setup(e){let n=e,r=()=>{if(n.indeterminate)return 0;let e=n.max||100;return Math.max(0,Math.min(100,n.value/e*100))};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`vd-progress`,[e.indeterminate?`is-indeterminate`:null]]),role:`progressbar`,"aria-valuemin":0,"aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:e.value,"aria-label":e.label||`Progress`},[(0,t.createElementVNode)(`div`,ct,[(0,t.createElementVNode)(`div`,{class:`vd-progress-fill`,style:(0,t.normalizeStyle)(e.indeterminate?void 0:{width:`${r()}%`})},null,4)]),!e.indeterminate&&e.label?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,lt,(0,t.toDisplayString)(e.label)+` — `+(0,t.toDisplayString)(Math.round(r()))+`% `,1)):(0,t.createCommentVNode)(``,!0)],10,st))}}),dt=[`id`,`name`,`value`,`checked`,`disabled`,`onChange`],ft=[`for`],pt=(0,t.defineComponent)({__name:`VdRadioGroup`,props:{options:{},modelValue:{},name:{},inline:{type:Boolean,default:!1},size:{default:`md`},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=n;return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`vd-form-radio-group`,{"vd-form-radio-group-inline":e.inline}]),role:`radiogroup`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.value,class:(0,t.normalizeClass)([`vd-form-radio`,[`vd-form-radio-${e.size}`,{"vd-form-radio-inline":e.inline}]])},[(0,t.createElementVNode)(`input`,{id:`${e.name}-${n.value}`,type:`radio`,name:e.name,value:n.value,checked:e.modelValue===n.value,disabled:e.disabled||n.disabled,class:`vd-form-radio-input`,onChange:e=>r(`update:modelValue`,n.value)},null,40,dt),(0,t.createElementVNode)(`label`,{for:`${e.name}-${n.value}`,class:`vd-form-radio-label`},(0,t.toDisplayString)(n.label),9,ft)],2))),128))],2))}}),mt=[`aria-checked`,`aria-label`,`tabindex`,`onMouseenter`,`onClick`],ht={class:`vd-rating-value`},gt=(0,t.defineComponent)({__name:`VdRating`,props:{modelValue:{},max:{default:5},size:{default:void 0},readonly:{type:Boolean,default:!1},name:{default:``}},emits:[`update:modelValue`,`change`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(r.modelValue),o=(0,t.ref)(-1);(0,t.watch)(()=>r.modelValue,e=>{a.value=e});let s=(0,t.computed)(()=>Array.from({length:r.max},(e,t)=>t+1)),c=e=>({"is-active":e<=Math.floor(a.value),"is-half":e>Math.floor(a.value)&&e-.5<=a.value,"is-hovered":o.value>=0&&e<=o.value}),l=e=>{r.readonly||(a.value=e,i(`update:modelValue`,e),i(`change`,e))},u=e=>{r.readonly||((e.key===`ArrowRight`||e.key===`ArrowUp`)&&a.value<r.max?(e.preventDefault(),l(a.value+1)):(e.key===`ArrowLeft`||e.key===`ArrowDown`)&&a.value>1&&(e.preventDefault(),l(a.value-1)))};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`vd-rating`,[e.size?`vd-rating-${e.size}`:null,{"vd-rating-readonly":e.readonly}]]),role:`radiogroup`,"aria-label":`Rating`,onKeydown:u,onMouseleave:r[0]||=e=>o.value=-1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:n,type:`button`,class:(0,t.normalizeClass)([`vd-rating-star`,c(n)]),role:`radio`,"aria-checked":n<=a.value?`true`:`false`,"aria-label":`${n} star${n>1?`s`:``}`,tabindex:e.readonly?-1:0,onMouseenter:t=>e.readonly?null:o.value=n,onClick:e=>l(n)},null,42,mt))),128)),(0,t.createElementVNode)(`span`,ht,(0,t.toDisplayString)(a.value>0?a.value:``),1)],34))}}),_t=[`id`,`name`,`value`,`disabled`,`required`],vt={key:0,value:``,disabled:``},yt=[`value`,`disabled`],bt={class:`vd-visually-hidden`},xt=(0,t.defineComponent)({__name:`VdSelect`,props:{modelValue:{},options:{},name:{default:``},id:{default:``},placeholder:{default:``},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,e=>{a.value=e});let o=(0,t.computed)(()=>r.options.find(e=>e.value===a.value)?.label??``);return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`select`,{id:e.id||e.name,name:e.name,value:a.value,disabled:e.disabled,required:e.required,class:`vd-input`,onChange:r[0]||=e=>{let t=e.target.value;a.value=t,i(`update:modelValue`,t)}},[e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)(`option`,vt,(0,t.toDisplayString)(e.placeholder),1)):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e.value,value:e.value,disabled:e.disabled},(0,t.toDisplayString)(e.label),9,yt))),128))],40,_t),(0,t.createElementVNode)(`span`,bt,(0,t.toDisplayString)(o.value),1)],64))}}),St=[`aria-label`],Ct={key:0,class:`vd-sidenav-header`},wt={key:0,class:`vd-sidenav-title`},Tt={class:`vd-sidenav-body`},Et={key:1,class:`vd-sidenav-footer`},Dt=(0,t.defineComponent)({__name:`VdSidenav`,props:{modelValue:{type:Boolean},placement:{default:`left`},title:{default:``},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0}},emits:[`update:modelValue`,`close`],setup(e,{emit:n}){let r=e,i=n,a=()=>{i(`update:modelValue`,!1),i(`close`)},o=()=>{r.closeOnBackdrop&&a()},s=e=>{r.modelValue&&e.key===`Escape`&&r.closeOnEsc&&(e.preventDefault(),a())};return(0,t.onMounted)(()=>{typeof window>`u`||window.addEventListener(`keydown`,s)}),(0,t.onBeforeUnmount)(()=>{typeof window>`u`||window.removeEventListener(`keydown`,s)}),(0,t.watch)(()=>r.modelValue,e=>{typeof document>`u`||(document.body.style.overflow=e?`hidden`:``)}),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`vd-sidenav-overlay is-visible`,onClick:o})):(0,t.createCommentVNode)(``,!0),e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)(`aside`,{key:1,class:(0,t.normalizeClass)([`vd-sidenav`,[`vd-sidenav-${e.placement}`,`is-open`]]),"aria-label":e.title||`Side navigation`},[e.title||n.$slots.header?((0,t.openBlock)(),(0,t.createElementBlock)(`header`,Ct,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)(`h3`,wt,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`header`),(0,t.createElementVNode)(`button`,{type:`button`,class:`vd-sidenav-close`,"aria-label":`Close`,onClick:a},` × `)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Tt,[(0,t.renderSlot)(n.$slots,`default`)]),n.$slots.footer?((0,t.openBlock)(),(0,t.createElementBlock)(`footer`,Et,[(0,t.renderSlot)(n.$slots,`footer`)])):(0,t.createCommentVNode)(``,!0)],10,St)):(0,t.createCommentVNode)(``,!0)]))}}),Ot={key:3,class:`vd-skeleton-lines`},kt=(0,t.defineComponent)({__name:`VdSkeleton`,props:{shape:{default:`text`},size:{default:`md`},width:{default:``},lines:{default:1}},setup(e){return(n,r)=>e.shape===`card`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`vd-skeleton-card`,`vd-skeleton-card-${e.size}`])},[...r[0]||=[(0,t.createStaticVNode)(`<div class="vd-skeleton vd-skeleton-card-header"></div><div class="vd-skeleton-card-body"><div class="vd-skeleton vd-skeleton-text"></div><div class="vd-skeleton vd-skeleton-text"></div><div class="vd-skeleton vd-skeleton-text vd-skeleton-text-short"></div></div>`,2)]],2)):e.shape===`button`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)([`vd-skeleton vd-skeleton-button`,`vd-skeleton-button-${e.size}`])},null,2)):e.shape===`circle`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:(0,t.normalizeClass)([`vd-skeleton vd-skeleton-circle`,`vd-skeleton-circle-${e.size}`])},null,2)):e.lines>1?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ot,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.lines,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n,class:(0,t.normalizeClass)([`vd-skeleton vd-skeleton-text`,n===e.lines?`vd-skeleton-text-short`:``])},null,2))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:4,class:(0,t.normalizeClass)([`vd-skeleton vd-skeleton-text`,`vd-skeleton-text-${e.size}`]),style:(0,t.normalizeStyle)(e.width?`width: ${e.width}`:``)},null,6))}}),At=[`aria-label`],jt=(0,t.defineComponent)({__name:`VdSpinner`,props:{size:{default:`md`},label:{default:``}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:(0,t.normalizeClass)([`vd-spinner`,`vd-spinner-${e.size}`]),role:`status`,"aria-label":e.label||`Loading`},[(0,t.createVNode)(D,{name:`circle-notch`})],10,At))}}),Mt={class:`vd-table-responsive`},Nt={key:0,class:`vd-table-caption`},Pt={class:`vd-table-header`},Ft=(0,t.defineComponent)({__name:`VdTable`,props:{columns:{},rows:{},striped:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},caption:{default:``}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Mt,[(0,t.createElementVNode)(`table`,{class:(0,t.normalizeClass)([`vd-table`,{"vd-table-striped":e.striped,"vd-table-bordered":e.bordered,"vd-table-hover":e.hover}])},[e.caption?((0,t.openBlock)(),(0,t.createElementBlock)(`caption`,Nt,(0,t.toDisplayString)(e.caption),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`thead`,Pt,[(0,t.createElementVNode)(`tr`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{key:e.key,scope:`col`},(0,t.toDisplayString)(e.label),1))),128))])]),(0,t.createElementVNode)(`tbody`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.rows,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,{key:r},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`td`,{key:e.key},(0,t.toDisplayString)(n[e.key]),1))),128))]))),128))])],2)]))}}),It={class:`vd-tabs`,role:`tablist`},Lt={class:`vd-tab-list`,role:`presentation`},Rt=[`aria-selected`,`onClick`],zt={class:`vd-tab-panels`},Bt=(0,t.defineComponent)({__name:`VdTabs`,props:{tabs:{},modelValue:{}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=e=>{e!==r.modelValue&&i(`update:modelValue`,e)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,It,[(0,t.createElementVNode)(`div`,Lt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.tabs,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:n.id,type:`button`,role:`tab`,"aria-selected":n.id===e.modelValue,class:(0,t.normalizeClass)([`vd-tab`,n.id===e.modelValue?`is-active`:null]),onClick:e=>a(n.id)},(0,t.toDisplayString)(n.label),11,Rt))),128))]),(0,t.createElementVNode)(`div`,zt,[(0,t.renderSlot)(n.$slots,`default`)])]))}}),Vt=[`innerHTML`],Ht={class:`vd-toast-content`},Ut={key:0,class:`vd-toast-title`},Wt={class:`vd-toast-message`},L=(0,t.defineComponent)({__name:`VdToast`,props:{toast:{}},emits:[`dismiss`],setup(e,{emit:n}){let r=e,i=n,a={success:`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>`,error:`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>`,warning:`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>`,info:`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>`},o=(0,t.ref)(!1),s=(0,t.ref)(!1),c=(0,t.ref)(!1),l=null,u=null,d=0,f=r.toast.duration,p=()=>{l!=null&&(window.clearTimeout(l),l=null)},m=()=>{c.value=!1,r.toast.duration>0&&typeof window<`u`&&(d=Date.now(),l=window.setTimeout(g,f))},h=()=>{l!=null&&(window.clearTimeout(l),l=null,f-=Date.now()-d,c.value=!0)},g=()=>{s.value||(p(),o.value=!1,s.value=!0,u=window.setTimeout(()=>i(`dismiss`,r.toast.id),400))},_=()=>{s.value&&i(`dismiss`,r.toast.id)};return(0,t.onMounted)(()=>{requestAnimationFrame(()=>{o.value=!0,m()})}),(0,t.onBeforeUnmount)(()=>{p(),u!=null&&window.clearTimeout(u)}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`vd-toast`,e.toast.type?`vd-toast-${e.toast.type}`:null,e.toast.solid?`vd-toast-solid`:null,e.toast.showProgress&&e.toast.duration>0?`vd-toast-with-progress`:null,{"is-visible":o.value,"is-exiting":s.value}]),role:`status`,"aria-live":`polite`,onMouseenter:h,onMouseleave:m,onTransitionend:_},[e.toast.type?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`vd-toast-icon`,innerHTML:a[e.toast.type]},null,8,Vt)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Ht,[e.toast.title?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ut,(0,t.toDisplayString)(e.toast.title),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Wt,(0,t.toDisplayString)(e.toast.message),1)]),e.toast.dismissible?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,class:`vd-toast-close`,"aria-label":`Close`,onClick:g})):(0,t.createCommentVNode)(``,!0),e.toast.showProgress&&e.toast.duration>0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:`vd-toast-progress`,style:(0,t.normalizeStyle)({animationDuration:`${e.toast.duration}ms`,animationPlayState:c.value?`paused`:`running`})},null,4)):(0,t.createCommentVNode)(``,!0)],34))}}),R={duration:5e3,position:`top-right`,dismissible:!0,showProgress:!0,solid:!1},z=0,Gt=()=>(z+=1,`toast-${Date.now().toString(36)}-${z}`),B=(0,n.defineStore)(`toast`,()=>{let e=(0,t.ref)([]),n=(t,n,r)=>{let i;i=typeof t==`string`?n&&typeof n==`object`?{...n,message:t}:{message:t,type:n,duration:r}:{...t};let a=Gt(),o={id:a,message:i.message??``,title:i.title,type:i.type,duration:i.duration??R.duration,position:i.position??R.position,dismissible:i.dismissible??R.dismissible,showProgress:i.showProgress??R.showProgress,solid:i.solid??R.solid};return e.value.push(o),a};return{queue:e,show:n,dismiss:t=>{e.value=e.value.filter(e=>e.id!==t)},success:(e,t={})=>n({...t,message:e,type:`success`}),error:(e,t={})=>n({...t,message:e,type:`error`}),warning:(e,t={})=>n({...t,message:e,type:`warning`}),info:(e,t={})=>n({...t,message:e,type:`info`})}}),Kt=()=>{let e=B();return{show:e.show,dismiss:e.dismiss,success:e.success,error:e.error,warning:e.warning,info:e.info,queue:e.queue}},qt=(0,t.defineComponent)({__name:`VdToastContainer`,setup(e){let n=B(),r=[`top-right`,`top-left`,`top-center`,`bottom-right`,`bottom-left`,`bottom-center`],i=(0,t.computed)(()=>r.map(e=>({position:e,toasts:n.queue.filter(t=>t.position===e)})).filter(e=>e.toasts.length>0));return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.position,class:(0,t.normalizeClass)([`vd-toast-container`,`vd-toast-container-${e.position}`]),role:`status`,"aria-live":`polite`,"aria-atomic":`false`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.toasts,e=>((0,t.openBlock)(),(0,t.createBlock)(L,{key:e.id,toast:e,onDismiss:(0,t.unref)(n).dismiss},null,8,[`toast`,`onDismiss`]))),128))],2))),128))]))}}),Jt=[`data-tooltip-position`,`data-tooltip`],Yt=(0,t.defineComponent)({__name:`VdTooltip`,props:{text:{},position:{default:`top`}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:`vd-tooltip`,"data-tooltip-position":e.position,"data-tooltip":e.text},[(0,t.renderSlot)(n.$slots,`default`)],8,Jt))}}),Xt={class:`vd-transfer-panel`},Zt={class:`vd-transfer-header`},Qt={class:`vd-transfer-count`,"aria-live":`polite`},$t={class:`vd-transfer-search`},en={class:`vd-transfer-list`,role:`listbox`,"aria-multiselectable":`true`},tn=[`aria-selected`,`onClick`],nn=[`checked`,`aria-label`],rn={class:`vd-transfer-actions`},an=[`disabled`],on=[`disabled`],sn={class:`vd-transfer-panel`},cn={class:`vd-transfer-header`},ln={class:`vd-transfer-count`,"aria-live":`polite`},un={class:`vd-transfer-search`},dn={class:`vd-transfer-list`,role:`listbox`,"aria-multiselectable":`true`},fn=[`aria-selected`,`onClick`],pn=[`checked`,`aria-label`],mn=(0,t.defineComponent)({__name:`VdTransfer`,props:{items:{}},setup(e,{expose:n}){let r=e,i=(0,t.ref)(null),a=(0,t.ref)(r.items.map(e=>({...e}))),o=(0,t.ref)([]),s=(0,t.ref)(new Set),c=(0,t.ref)(new Set),l=(0,t.ref)(``),u=(0,t.ref)(``),d=(e,t)=>{if(!t)return e;let n=t.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(n))},f=(0,t.computed)(()=>d(a.value,l.value)),p=(0,t.computed)(()=>d(o.value,u.value)),m=(e,t)=>{let n=e===`source`?s:c,r=new Set(n.value);r.has(t)?r.delete(t):r.add(t),n.value=r},h=()=>{i.value?.dispatchEvent(new CustomEvent(`transfer:change`,{bubbles:!0,detail:{selected:o.value.map(e=>e.id),available:a.value.map(e=>e.id)}}))},g=()=>{if(s.value.size===0)return;let e=a.value.filter(e=>s.value.has(e.id));a.value=a.value.filter(e=>!s.value.has(e.id)),o.value=[...o.value,...e],s.value=new Set,h()},_=()=>{if(c.value.size===0)return;let e=o.value.filter(e=>c.value.has(e.id));o.value=o.value.filter(e=>!c.value.has(e.id)),a.value=[...a.value,...e],c.value=new Set,h()};return n({getSelected:()=>o.value.map(e=>e.id)}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`root`,ref:i,class:`vd-transfer`},[(0,t.createElementVNode)(`div`,Xt,[(0,t.createElementVNode)(`div`,Zt,[n[2]||=(0,t.createElementVNode)(`span`,null,`Source`,-1),(0,t.createElementVNode)(`span`,Qt,(0,t.toDisplayString)(s.value.size)+`/`+(0,t.toDisplayString)(a.value.length),1)]),(0,t.createElementVNode)(`div`,$t,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":n[0]||=e=>l.value=e,type:`text`,placeholder:`Search...`,"aria-label":`Search source`},null,512),[[t.vModelText,l.value]])]),(0,t.createElementVNode)(`ul`,en,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e.id,class:(0,t.normalizeClass)([`vd-transfer-item`,{"is-selected":s.value.has(e.id)}]),role:`option`,"aria-selected":s.value.has(e.id),onClick:t=>m(`source`,e.id)},[(0,t.createElementVNode)(`input`,{type:`checkbox`,checked:s.value.has(e.id),"aria-label":e.label,tabindex:`-1`},null,8,nn),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.label),1)],10,tn))),128))])]),(0,t.createElementVNode)(`div`,rn,[(0,t.createElementVNode)(`button`,{type:`button`,class:`vd-transfer-btn`,"aria-label":`Move to target`,disabled:s.value.size===0,onClick:g},` › `,8,an),(0,t.createElementVNode)(`button`,{type:`button`,class:`vd-transfer-btn`,"aria-label":`Move to source`,disabled:c.value.size===0,onClick:_},` ‹ `,8,on)]),(0,t.createElementVNode)(`div`,sn,[(0,t.createElementVNode)(`div`,cn,[n[3]||=(0,t.createElementVNode)(`span`,null,`Target`,-1),(0,t.createElementVNode)(`span`,ln,(0,t.toDisplayString)(c.value.size)+`/`+(0,t.toDisplayString)(o.value.length),1)]),(0,t.createElementVNode)(`div`,un,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":n[1]||=e=>u.value=e,type:`text`,placeholder:`Search...`,"aria-label":`Search target`},null,512),[[t.vModelText,u.value]])]),(0,t.createElementVNode)(`ul`,dn,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(p.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e.id,class:(0,t.normalizeClass)([`vd-transfer-item`,{"is-selected":c.value.has(e.id)}]),role:`option`,"aria-selected":c.value.has(e.id),onClick:t=>m(`target`,e.id)},[(0,t.createElementVNode)(`input`,{type:`checkbox`,checked:c.value.has(e.id),"aria-label":e.label,tabindex:`-1`},null,8,pn),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.label),1)],10,fn))),128))])])],512))}}),hn=[`aria-expanded`],gn={class:`vd-tree-node-content`},_n={key:1,class:`vd-tree-toggle-placeholder`},vn=[`checked`,`aria-label`],yn={class:`vd-tree-label`,tabindex:`-1`},bn={key:0,class:`vd-tree-children`,role:`group`},V=(0,t.defineComponent)({__name:`VdTreeNode`,props:{node:{},checkbox:{type:Boolean}},emits:[`toggle`,`check`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>!!r.node.children&&r.node.children.length>0),o=()=>{r.node.open=!r.node.open,i(`toggle`,r.node)},s=e=>{i(`check`,r.node,e.target.checked)};return(n,r)=>{let c=(0,t.resolveComponent)(`VdTreeNode`,!0);return(0,t.openBlock)(),(0,t.createElementBlock)(`li`,{class:(0,t.normalizeClass)([`vd-tree-node`,{"is-open":e.node.open}]),role:`treeitem`,"aria-expanded":a.value?e.node.open?`true`:`false`:void 0},[(0,t.createElementVNode)(`div`,gn,[a.value?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`vd-tree-toggle`,"aria-label":`Toggle`,onClick:(0,t.withModifiers)(o,[`stop`])})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,_n)),e.checkbox?((0,t.openBlock)(),(0,t.createElementBlock)(`input`,{key:2,type:`checkbox`,class:`vd-tree-checkbox`,checked:e.node.checked,"aria-label":e.node.label,onChange:(0,t.withModifiers)(s,[`stop`]),onClick:r[0]||=(0,t.withModifiers)(()=>{},[`stop`])},null,40,vn)):(0,t.createCommentVNode)(``,!0),e.node.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,class:(0,t.normalizeClass)([`vd-tree-icon`,e.node.icon])},null,2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,yn,(0,t.toDisplayString)(e.node.label),1)]),a.value?((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,bn,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.node.children,(n,a)=>((0,t.openBlock)(),(0,t.createBlock)(c,{key:n.id??a,node:n,checkbox:e.checkbox,onToggle:r[1]||=e=>i(`toggle`,e),onCheck:r[2]||=(e,t)=>i(`check`,e,t)},null,8,[`node`,`checkbox`]))),128))])):(0,t.createCommentVNode)(``,!0)],10,hn)}}}),xn=(0,t.defineComponent)({__name:`VdTree`,props:{nodes:{},checkbox:{type:Boolean},cascade:{type:Boolean}},setup(e,{expose:n}){let r=e,i=(0,t.ref)(null),a=e=>e.map(e=>({...e,children:e.children?a(e.children):void 0})),o=(0,t.reactive)(a(r.nodes)),s=(e,t)=>{e.forEach(e=>{e.checked=t,e.children&&s(e.children,t)})},c=(e,t=[])=>(e.forEach(e=>{e.checked&&t.push(e.id??e.label??``),e.children&&c(e.children,t)}),t),l=(e,t)=>{e.checked=t,(r.cascade??!0)&&e.children&&s(e.children,t),i.value?.dispatchEvent(new CustomEvent(`tree:check`,{bubbles:!0,detail:{checked:c(o),node:e.id}}))},u=e=>{i.value?.dispatchEvent(new CustomEvent(`tree:toggle`,{bubbles:!0,detail:{id:e.id,open:!!e.open}}))},d=e=>{let t=i.value,n=document.activeElement;if(!t||!n||!t.contains(n))return;let r=Array.from(t.querySelectorAll(`.vd-tree-node-content`)),a=n.closest(`.vd-tree-node-content`),o=a?r.indexOf(a):-1;if(o===-1)return;let s=e=>{r[e]?.querySelector(`.vd-tree-toggle, .vd-tree-label`)?.focus()};switch(e.key){case`ArrowDown`:e.preventDefault(),o<r.length-1&&s(o+1);break;case`ArrowUp`:e.preventDefault(),o>0&&s(o-1);break;case`ArrowRight`:{e.preventDefault();let t=a?.closest(`.vd-tree-node`),n=a?.querySelector(`.vd-tree-toggle`);n&&!t?.classList.contains(`is-open`)&&n.click();break}case`ArrowLeft`:{e.preventDefault();let t=a?.closest(`.vd-tree-node`),n=a?.querySelector(`.vd-tree-toggle`);n&&t?.classList.contains(`is-open`)&&n.click();break}}};return n({getChecked:()=>c(o)}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`root`,ref:i,class:`vd-tree`,role:`tree`,onKeydown:d},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(V,{key:n.id??r,node:n,checkbox:!!e.checkbox,onToggle:u,onCheck:l},null,8,[`node`,`checkbox`]))),128))],544))}}),Sn=(0,t.defineComponent)({__name:`VdBox`,props:{as:{default:`div`},pad:{default:`fib-8`}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.as),{class:`vd-box`,"data-pad":e.pad},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`default`)]),_:3},8,[`data-pad`]))}}),Cn=(0,t.defineComponent)({__name:`VdCenter`,props:{as:{default:`div`},max:{default:`fib-610`},axis:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.as),{class:`vd-center`,"data-max":e.max,"data-axis":e.axis},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`default`)]),_:3},8,[`data-max`,`data-axis`]))}}),wn=(0,t.defineComponent)({__name:`VdCover`,props:{as:{default:`div`},min:{default:`fib-610`},gap:{}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.as),{class:`vd-cover`,"data-min":e.min,"data-gap":e.gap},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`default`)]),_:3},8,[`data-min`,`data-gap`]))}}),Tn=[`data-ratio`],En=(0,t.defineComponent)({__name:`VdFrame`,props:{ratio:{default:`golden`}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`vd-frame`,"data-ratio":e.ratio},[(0,t.renderSlot)(n.$slots,`default`)],8,Tn))}}),Dn=[`data-gap`],On=(0,t.defineComponent)({__name:`VdInline`,props:{gap:{default:`fib-5`}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`vd-inline`,"data-gap":e.gap},[(0,t.renderSlot)(n.$slots,`default`)],8,Dn))}}),kn=(0,t.defineComponent)({__name:`VdStack`,props:{gap:{default:`fib-8`},as:{default:`div`}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.as),{class:`vd-stack`,"data-gap":e.gap},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`default`)]),_:3},8,[`data-gap`]))}}),An=[`data-threshold`,`data-gap`],jn=(0,t.defineComponent)({__name:`VdSwitcher`,props:{threshold:{default:`fib-610`},gap:{default:`fib-5`}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`vd-switcher`,"data-threshold":e.threshold,"data-gap":e.gap},[(0,t.renderSlot)(n.$slots,`default`)],8,An))}});function Mn(e){if(!e||e===document.body)return!1;let t=window.getComputedStyle(e),n=/(auto|scroll|overlay)/.test(t.overflowY)&&e.scrollHeight>e.clientHeight,r=/(auto|scroll|overlay)/.test(t.overflowX)&&e.scrollWidth>e.clientWidth;return n||r}function Nn(e){let t=e.parentElement;for(;t&&t!==document.body&&t!==document.documentElement;){if(Mn(t))return t;t=t.parentElement}return null}function Pn(e){let n=[];(0,t.onMounted)(()=>{if(typeof window>`u`)return;let t=e.value;t&&t.querySelectorAll(`.vd-affix, .vd-sticky, [data-vd-affix]`).forEach(e=>{let t=parseInt(e.getAttribute(`data-vd-affix-offset`)||`0`,10),r=Number.isNaN(t)?0:t,i=Nn(e),a=!1,o=document.createElement(`div`);o.style.cssText=`display:block;height:1px;margin-bottom:-1px;visibility:hidden;pointer-events:none;`,e.parentNode?.insertBefore(o,e),e.style.setProperty(`--vd-affix-top-offset`,r+`px`);let s=()=>{a||(a=!0,e.classList.add(`is-stuck`),e.dispatchEvent(new CustomEvent(`affix:stuck`,{bubbles:!0,detail:{offset:r,root:i||window}})))},c=()=>{a&&(a=!1,e.classList.remove(`is-stuck`),e.dispatchEvent(new CustomEvent(`affix:unstuck`,{bubbles:!0,detail:{offset:r,root:i||window}})))},l=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?c():s()})},{root:i,rootMargin:`-`+r+`px 0px 0px 0px`,threshold:0});l.observe(o),n.push(()=>l.disconnect(),()=>{o.parentNode&&o.parentNode.removeChild(o)},()=>{e.classList.remove(`is-stuck`),e.style.removeProperty(`--vd-affix-top-offset`)})})}),(0,t.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}var Fn=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],H=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],In=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);function Ln(e){let t=`^`,n=[],r=0;for(;r<e.length;){let i=e.slice(r);i.toLowerCase().startsWith(`yyyy`)?(t+=`(\\d{4})`,n.push(`y`),r+=4):i.toLowerCase().startsWith(`mm`)?(t+=`(\\d{2})`,n.push(`m`),r+=2):i.toLowerCase().startsWith(`dd`)?(t+=`(\\d{2})`,n.push(`d`),r+=2):(t+=In(e[r]),r++)}return t+=`$`,{regex:new RegExp(t),order:n}}function Rn(e,t){if(!e||!t)return null;let{regex:n,order:r}=Ln(t),i=e.trim().match(n);if(!i)return null;let a,o,s,c=1;for(let e of r){let t=parseInt(i[c++],10);if(Number.isNaN(t))return null;e===`y`?a=t:e===`m`?o=t-1:e===`d`&&(s=t)}if(a===void 0||o===void 0||s===void 0)return null;let l=new Date(a,o,s);return l.getFullYear()!==a||l.getMonth()!==o||l.getDate()!==s?null:l}function zn(e,t){let n=String(e.getFullYear()),r=String(e.getMonth()+1).padStart(2,`0`),i=String(e.getDate()).padStart(2,`0`),a=``,o=0;for(;o<t.length;){let e=t.slice(o);e.toLowerCase().startsWith(`yyyy`)?(a+=n,o+=4):e.toLowerCase().startsWith(`mm`)?(a+=r,o+=2):e.toLowerCase().startsWith(`dd`)?(a+=i,o+=2):(a+=t[o],o++)}return a}var U=e=>e.getFullYear()+`-`+String(e.getMonth()+1).padStart(2,`0`)+`-`+String(e.getDate()).padStart(2,`0`);function W(e,t){let n=new Date(e.getFullYear(),e.getMonth(),e.getDate());return n.setDate(n.getDate()+t),n}var G=(e,t)=>new Date(e.getFullYear(),e.getMonth()+t,e.getDate());function K(e){if(!e||typeof e!=`string`)return null;let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());if(!t)return null;let n=+t[1],r=t[2]-1,i=+t[3],a=new Date(n,r,i);return a.getFullYear()!==n||a.getMonth()!==r||a.getDate()!==i?null:a}function Bn(e){let t=new Date(e.getFullYear(),e.getMonth(),e.getDate());return t.setDate(t.getDate()-t.getDay()),t}function Vn(e){let t=new Date(e.getFullYear(),e.getMonth(),e.getDate());return t.setDate(t.getDate()+(6-t.getDay())),t}function Hn(e,t,n=4){let r=e.getBoundingClientRect();t.style.minWidth=Math.max(r.width,0)+`px`;let i=r.bottom+n,a=r.left;t.style.top=i+`px`,t.style.left=a+`px`;let o=t.getBoundingClientRect();o.bottom>window.innerHeight-8&&r.top-o.height>8&&(i=r.top-o.height-n,t.style.top=i+`px`);let s=t.getBoundingClientRect();a=r.left,a+s.width>window.innerWidth-8&&(a=window.innerWidth-s.width-8),t.style.left=Math.max(8,a)+`px`}function Un(e){let n=[];(0,t.onMounted)(()=>{if(typeof window>`u`)return;let t=e.value;t&&t.querySelectorAll(`[data-vd-datepicker]`).forEach(e=>Wn(e,n))}),(0,t.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}function Wn(e,t){let n=e.getAttribute(`data-vd-datepicker-format`)||`YYYY-MM-DD`,r=K(e.getAttribute(`data-vd-datepicker-min`)),i=K(e.getAttribute(`data-vd-datepicker-max`)),a=new Date,o=a.getFullYear(),s=a.getMonth(),c=null,l=`days`,u=null,d=!1,f=0,p=e=>{let t=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return!!(r&&t<r.getTime()||i&&t>i.getTime())},m=(e,t)=>{if(!r&&!i)return{y:e,m:t};let n=new Date(e,t,1),a=new Date(e,t+1,0);return r&&a.getTime()<r.getTime()?{y:r.getFullYear(),m:r.getMonth()}:i&&n.getTime()>i.getTime()?{y:i.getFullYear(),m:i.getMonth()}:{y:e,m:t}},h=(e,t)=>{let n=new Date(e,t+1,0).getDate();for(let r=1;r<=n;r++){let n=new Date(e,t,r);if(!p(n))return n}return new Date(e,t,1)};if(e.value){let t=e.value.trim(),r=Rn(t,n);if(!r){let e=new Date(t);isNaN(e.getTime())||(r=e)}r&&(c=r,o=r.getFullYear(),s=r.getMonth())}let g=m(o,s);o=g.y,s=g.m;let _=document.createElement(`div`);_.className=`vd-datepicker-popup`,_.setAttribute(`role`,`dialog`),_.setAttribute(`aria-label`,`Choose date`),_.tabIndex=-1;let v=e.closest(`.vd-suggest-wrapper`);v||(v=document.createElement(`div`),v.className=`vd-suggest-wrapper`,v.style.position=`relative`,v.style.display=`inline-block`,e.parentNode?.insertBefore(v,e),v.appendChild(e)),document.body.appendChild(_);let y=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),b=t=>{c=t,o=t.getFullYear(),s=t.getMonth(),e.value=zn(t,n),d=!0,A(),e.dispatchEvent(new CustomEvent(`datepicker:select`,{bubbles:!0,detail:{date:t,formatted:e.value}})),e.dispatchEvent(new Event(`change`,{bubbles:!0})),e.focus()},x=()=>{if(l!==`days`||!u)return;let e=_.querySelector(`[data-vd-date="`+U(u)+`"]`);e&&!e.classList.contains(`is-outside`)&&e.getAttribute(`aria-disabled`)!==`true`&&e.focus()},S=(e,t,n)=>{let r=new Date(e.getFullYear(),e.getMonth(),e.getDate()),i=t>0?1:-1;for(let e=0;e<n;e++){if(!p(r))return r;r=W(r,i)}return e},C=(e,t,n)=>{let r=document.createElement(`button`);return r.type=`button`,r.className=`vd-datepicker-day`,r.textContent=String(e),r.setAttribute(`role`,`gridcell`),t?(r.classList.add(`is-outside`),r.tabIndex=-1,r.setAttribute(`aria-disabled`,`true`),r):(r.setAttribute(`data-vd-date`,U(n)),y(n,a)&&r.classList.add(`is-today`),y(n,c)&&r.classList.add(`is-selected`),p(n)?(r.classList.add(`is-disabled`),r.setAttribute(`aria-disabled`,`true`),r.tabIndex=-1,r):(r.tabIndex=u&&y(n,u)?0:-1,r.addEventListener(`click`,()=>{u=new Date(n.getFullYear(),n.getMonth(),n.getDate()),b(n)}),r))},w=()=>{_.innerHTML=``;let e=document.createElement(`div`);e.className=`vd-datepicker-header`;let t=document.createElement(`button`);t.type=`button`,t.className=`vd-datepicker-prev`,t.innerHTML=`&#8249;`,t.setAttribute(`aria-label`,`Previous`);let n=document.createElement(`button`);n.type=`button`,n.className=`vd-datepicker-next`,n.innerHTML=`&#8250;`,n.setAttribute(`aria-label`,`Next`);let r=document.createElement(`span`);if(r.className=`vd-datepicker-title`,l===`days`)r.textContent=H[s]+` `+o,r.addEventListener(`click`,()=>{l=`months`,w()}),t.addEventListener(`click`,()=>{s--,s<0&&(s=11,o--),w()}),n.addEventListener(`click`,()=>{s++,s>11&&(s=0,o++),w()});else if(l===`months`)r.textContent=String(o),r.addEventListener(`click`,()=>{l=`years`,w()}),t.addEventListener(`click`,()=>{o--,w()}),n.addEventListener(`click`,()=>{o++,w()});else{let e=Math.floor(o/10)*10;r.textContent=e+` - `+(e+9),t.addEventListener(`click`,()=>{o-=10,w()}),n.addEventListener(`click`,()=>{o+=10,w()})}if(e.appendChild(t),e.appendChild(r),e.appendChild(n),_.appendChild(e),l===`days`){let e=document.createElement(`div`);e.className=`vd-datepicker-grid`,e.setAttribute(`role`,`grid`),e.setAttribute(`aria-label`,`Calendar`);let t=document.createElement(`div`);t.className=`vd-datepicker-weekdays`,t.setAttribute(`role`,`row`),Fn.forEach(e=>{let n=document.createElement(`span`);n.setAttribute(`role`,`columnheader`),n.setAttribute(`aria-label`,e),n.textContent=e,t.appendChild(n)}),e.appendChild(t);let n=new Date(o,s,1).getDay(),r=new Date(o,s+1,0).getDate(),i=new Date(o,s,0).getDate(),a=[];for(let e=n-1;e>=0;e--){let t=i-e,n=s===0?11:s-1,r=s===0?o-1:o;a.push({day:t,outside:!0,date:new Date(r,n,t)})}for(let e=1;e<=r;e++)a.push({day:e,outside:!1,date:new Date(o,s,e)});let c=n+r,l=c%7==0?0:7-c%7;for(let e=1;e<=l;e++)a.push({day:e,outside:!0,date:new Date(o,s+1,e)});for(let t=0;t<a.length;t+=7){let n=document.createElement(`div`);n.className=`vd-datepicker-row`,n.setAttribute(`role`,`row`);for(let e=0;e<7;e++){let r=a[t+e];n.appendChild(C(r.day,r.outside,r.date))}e.appendChild(n)}_.appendChild(e)}else if(l===`months`){let e=document.createElement(`div`);e.className=`vd-datepicker-months`,H.forEach((t,n)=>{let r=document.createElement(`button`);r.type=`button`,r.className=`vd-datepicker-month-btn`,r.textContent=t.slice(0,3),c&&c.getFullYear()===o&&c.getMonth()===n&&r.classList.add(`is-selected`),r.addEventListener(`click`,()=>{s=n,l=`days`,w()}),e.appendChild(r)}),_.appendChild(e)}else{let e=document.createElement(`div`);e.className=`vd-datepicker-years`;let t=Math.floor(o/10)*10;for(let n=t-1;n<=t+10;n++){let r=document.createElement(`button`);r.type=`button`,r.className=`vd-datepicker-year-btn`,r.textContent=String(n),c&&c.getFullYear()===n&&r.classList.add(`is-selected`),(n<t||n>t+9)&&(r.style.opacity=`0.4`),r.addEventListener(`click`,()=>{o=n,l=`months`,w()}),e.appendChild(r)}_.appendChild(e)}_.classList.contains(`is-open`)&&requestAnimationFrame(E)},T=t=>{if(!_.classList.contains(`is-open`)||l!==`days`)return;let n=_.querySelector(`.vd-datepicker-grid`);if(!n||!n.contains(t.target))return;let r=t.key;if(![`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`PageUp`,`PageDown`,`Enter`,` `,`Escape`].includes(r))return;if(r===`Escape`){t.preventDefault(),t.stopPropagation(),d=!0,A(),e.focus();return}if(u||=h(o,s),r===`Enter`||r===` `){t.preventDefault(),u&&!p(u)&&b(new Date(u.getFullYear(),u.getMonth(),u.getDate()));return}t.preventDefault();let i=new Date(u.getFullYear(),u.getMonth(),u.getDate()),a=1;if(r===`ArrowLeft`?(i=W(i,-1),a=-1):r===`ArrowRight`?(i=W(i,1),a=1):r===`ArrowUp`?(i=W(i,-7),a=-1):r===`ArrowDown`?(i=W(i,7),a=1):r===`Home`?(i=Bn(i),a=1):r===`End`?(i=Vn(i),a=-1):r===`PageUp`?(i=G(i,-1),a=-1):r===`PageDown`&&(i=G(i,1),a=1),i=S(i,a,400),i.getMonth()!==s||i.getFullYear()!==o){o=i.getFullYear(),s=i.getMonth();let e=m(o,s);o=e.y,s=e.m}u=i,w(),requestAnimationFrame(x)},E=()=>{_.classList.contains(`is-open`)&&Hn(e,_)},D=()=>E(),O=()=>{f=Date.now()+100},k=()=>{O(),l=`days`,c&&(o=c.getFullYear(),s=c.getMonth());let t=m(o,s);o=t.y,s=t.m,u=c?new Date(c.getFullYear(),c.getMonth(),c.getDate()):h(o,s),w(),_.classList.add(`is-open`),e.setAttribute(`aria-expanded`,`true`),requestAnimationFrame(()=>{E(),x()})},A=()=>{_.classList.remove(`is-open`),e.setAttribute(`aria-expanded`,`false`),l=`days`},j=()=>{if(d){d=!1;return}k()},M=()=>{_.classList.contains(`is-open`)||k()},N=t=>{if(!t||!(t instanceof Node))return!1;if(t===e||e.contains(t)||_.contains(t))return!0;let n=e.id;if(n){let e=document.querySelector(`label[for="`+n.replace(/"/g,`\\"`)+`"]`);if(e&&(t===e||e.contains(t)))return!0}return!1},P=e=>{Date.now()<f||N(e.target)||A()},F=t=>{t.key===`Escape`&&_.classList.contains(`is-open`)&&(d=!0,A(),e.focus())};e.addEventListener(`focus`,j),e.addEventListener(`click`,M),document.addEventListener(`click`,P,!0),document.addEventListener(`keydown`,F),_.addEventListener(`keydown`,T),window.addEventListener(`resize`,D),window.addEventListener(`scroll`,D,!0),e.setAttribute(`aria-haspopup`,`dialog`),e.setAttribute(`aria-expanded`,`false`),e.setAttribute(`autocomplete`,`off`),t.push(()=>e.removeEventListener(`focus`,j),()=>e.removeEventListener(`click`,M),()=>document.removeEventListener(`click`,P,!0),()=>document.removeEventListener(`keydown`,F),()=>_.removeEventListener(`keydown`,T),()=>window.removeEventListener(`resize`,D),()=>window.removeEventListener(`scroll`,D,!0),()=>_.remove())}function Gn(e){let n=!1;(0,t.onMounted)(()=>{let t=e.value;if(!t||typeof window>`u`)return;let r=window;n=!0,r.VanduoDraggable&&typeof r.VanduoDraggable.init==`function`?r.VanduoDraggable.init(t):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(t)}),(0,t.onUnmounted)(()=>{if(typeof window>`u`||!n)return;let e=window;e.VanduoDraggable&&typeof e.VanduoDraggable.destroyAll==`function`&&e.VanduoDraggable.destroyAll(),n=!1})}function Kn(e){let n=()=>{let t=e.value;if(!t||typeof window>`u`)return;let n=t,r=window;r.VanduoDropdown&&typeof r.VanduoDropdown.init==`function`?r.VanduoDropdown.init(n):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(n)},r=()=>{if(typeof window>`u`)return;let e=window;e.VanduoDropdown&&typeof e.VanduoDropdown.destroyAll==`function`&&e.VanduoDropdown.destroyAll()};(0,t.onMounted)(()=>{n()}),(0,t.onUnmounted)(()=>{r()})}function qn(e){let n=!1;(0,t.onMounted)(()=>{let t=e.value;if(!t||typeof window>`u`)return;let r=window;n=!0,r.VanduoExpandingCards&&typeof r.VanduoExpandingCards.init==`function`?r.VanduoExpandingCards.init(t):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(t)}),(0,t.onUnmounted)(()=>{if(typeof window>`u`||!n)return;let e=window;e.VanduoExpandingCards&&typeof e.VanduoExpandingCards.destroyAll==`function`&&e.VanduoExpandingCards.destroyAll(),n=!1})}function Jn(e){let n=[],r=e=>{let t=e.querySelector(`.vd-flow-track`);if(!t)return;let r=Array.from(t.querySelectorAll(`.vd-flow-slide`));if(r.length===0)return;let i=e.classList.contains(`vd-flow-fade`),a=e.hasAttribute(`data-vd-autoplay`),o=parseInt(e.getAttribute(`data-vd-interval`)??``,10)||5e3,s=e.getAttribute(`data-vd-loop`)!==`false`,c={current:0,total:r.length},l=null,u=!1,d=0,f=0;r.forEach((e,t)=>{e.setAttribute(`role`,`group`),e.setAttribute(`aria-roledescription`,`slide`),e.setAttribute(`aria-label`,`Slide ${t+1} of ${r.length}`),t===0&&e.classList.add(`is-active`)}),e.setAttribute(`role`,`region`),e.setAttribute(`aria-roledescription`,`carousel`),e.getAttribute(`aria-label`)||e.setAttribute(`aria-label`,`Carousel`);let p=document.createElement(`div`);p.setAttribute(`aria-live`,`polite`),p.setAttribute(`aria-atomic`,`true`),p.className=`sr-only`,p.style.cssText=`position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);`,e.appendChild(p);let m=Array.from(e.querySelectorAll(`.vd-flow-indicators button, .vd-flow-indicator`));m.forEach((e,t)=>{e.classList.add(`vd-flow-indicator`),e.setAttribute(`role`,`tab`),e.setAttribute(`aria-selected`,t===0?`true`:`false`),e.getAttribute(`aria-label`)||e.setAttribute(`aria-label`,`Go to slide ${t+1}`)});let h=(n,a=!0)=>{let o=s?(n%c.total+c.total)%c.total:Math.max(0,Math.min(n,c.total-1)),l=c.current;c.current=o,i?r.forEach((e,t)=>e.classList.toggle(`is-active`,t===o)):t.style.transform=`translateX(-${o*100}%)`,m.forEach((e,t)=>{e.classList.toggle(`is-active`,t===o),e.setAttribute(`aria-selected`,t===o?`true`:`false`),e.setAttribute(`aria-current`,t===o?`true`:`false`)}),r.forEach((e,t)=>{e.setAttribute(`aria-hidden`,t===o?`false`:`true`)}),a&&(p.textContent=`Slide ${o+1} of ${c.total}`),e.dispatchEvent(new CustomEvent(`flow:change`,{detail:{current:o,previous:l,total:c.total}}))},g=()=>h(c.current+1),_=()=>h(c.current-1),v=e.querySelector(`.vd-flow-prev`),y=e.querySelector(`.vd-flow-next`);v&&(v.addEventListener(`click`,_),n.push(()=>v.removeEventListener(`click`,_))),y&&(y.addEventListener(`click`,g),n.push(()=>y.removeEventListener(`click`,g))),m.forEach((e,t)=>{let r=()=>h(t);e.addEventListener(`click`,r),n.push(()=>e.removeEventListener(`click`,r))});let b=e=>{e.key===`ArrowLeft`&&(_(),e.preventDefault()),e.key===`ArrowRight`&&(g(),e.preventDefault())};e.setAttribute(`tabindex`,`0`),e.addEventListener(`keydown`,b),n.push(()=>e.removeEventListener(`keydown`,b));let x=t=>{u=!0,d=t.clientX||t.touches&&t.touches[0]?.clientX||0,f=d,e.classList.add(`is-dragging`)},S=e=>{u&&(f=e.clientX||e.touches&&e.touches[0]?.clientX||0)},C=()=>{if(!u)return;u=!1,e.classList.remove(`is-dragging`);let t=d-f;Math.abs(t)>50&&(t>0?g():_())};e.addEventListener(`mousedown`,x),e.addEventListener(`mousemove`,S),e.addEventListener(`mouseup`,C),e.addEventListener(`mouseleave`,C),e.addEventListener(`touchstart`,x,{passive:!0}),e.addEventListener(`touchmove`,S,{passive:!0}),e.addEventListener(`touchend`,C),n.push(()=>e.removeEventListener(`mousedown`,x),()=>e.removeEventListener(`mousemove`,S),()=>e.removeEventListener(`mouseup`,C),()=>e.removeEventListener(`mouseleave`,C),()=>e.removeEventListener(`touchstart`,x),()=>e.removeEventListener(`touchmove`,S),()=>e.removeEventListener(`touchend`,C));let w=()=>{T(),l=window.setInterval(g,o)},T=()=>{l!=null&&(window.clearInterval(l),l=null)};a&&(w(),e.addEventListener(`mouseenter`,T),e.addEventListener(`mouseleave`,w),e.addEventListener(`focusin`,T),e.addEventListener(`focusout`,w),n.push(()=>e.removeEventListener(`mouseenter`,T),()=>e.removeEventListener(`mouseleave`,w),()=>e.removeEventListener(`focusin`,T),()=>e.removeEventListener(`focusout`,w),()=>T())),h(0,!1)};(0,t.onMounted)(()=>{let t=e.value;t&&t.querySelectorAll(`.vd-flow, .vd-carousel`).forEach(r)}),(0,t.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}var q=[`a[href]`,`button:not([disabled])`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`,`),Yn=e=>{let n=(0,t.ref)(!1),r=t=>{if(!n.value||t.key!==`Tab`||!e.value)return;let r=Array.from(e.value.querySelectorAll(q)).filter(e=>!e.hasAttribute(`disabled`)&&e.tabIndex!==-1);if(r.length===0){t.preventDefault();return}let i=r[0],a=r[r.length-1],o=document.activeElement;t.shiftKey&&o===i?(t.preventDefault(),a.focus()):!t.shiftKey&&o===a&&(t.preventDefault(),i.focus())};return(0,t.onMounted)(()=>{typeof window<`u`&&window.addEventListener(`keydown`,r)}),(0,t.onUnmounted)(()=>{typeof window<`u`&&window.removeEventListener(`keydown`,r)}),{active:n,activate:()=>{n.value=!0,e.value&&e.value.querySelector(q)?.focus()},deactivate:()=>{n.value=!1}}};function Xn(e){let n=[];(0,t.onMounted)(()=>{let t=e.value;!t||typeof IntersectionObserver>`u`||t.querySelectorAll(`[data-glass-scroll]`).forEach(e=>{let t=e.dataset.glassSentinel,r=t?document.querySelector(t):null;if(r||=e.previousElementSibling,!r){e.classList.add(`is-glass-active`);return}let i=new IntersectionObserver(t=>{t.forEach(t=>{e.classList.toggle(`is-glass-active`,!t.isIntersecting)})},{threshold:0,rootMargin:`0px`});i.observe(r),n.push(i)})}),(0,t.onUnmounted)(()=>{n.forEach(e=>e.disconnect()),n.length=0})}function Zn(e){let n=!1;(0,t.onMounted)(()=>{let t=e.value;if(!t||typeof window>`u`)return;let r=window;n=!0,r.VanduoImageBox&&typeof r.VanduoImageBox.init==`function`?r.VanduoImageBox.init(t):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(t)}),(0,t.onUnmounted)(()=>{if(typeof window>`u`||!n)return;let e=window;e.VanduoImageBox&&typeof e.VanduoImageBox.destroyAll==`function`&&e.VanduoImageBox.destroyAll(),n=!1})}var Qn=(e,n)=>{let r=(0,t.ref)(0),i=0,a=()=>e.value?Array.from(e.value.querySelectorAll(n.itemSelector)):[],o=e=>{let t=a()[e];t&&(t.focus(),r.value=e)};return typeof window<`u`&&e.value&&e.value.addEventListener(`keydown`,e=>{let t=a();if(t.length===0)return;let i=t.length-1,s=r.value;switch(e.key){case`ArrowDown`:case`ArrowRight`:s=Math.min(i,r.value+1);break;case`ArrowUp`:case`ArrowLeft`:s=Math.max(0,r.value-1);break;case`Home`:s=0;break;case`End`:s=i;break;case`Enter`:n.onSelect?.(r.value);return;case`Escape`:n.onEscape?.();return;default:return}e.preventDefault(),o(s)}),{activeIndex:r,setItems:e=>{i=e,r.value>=i&&(r.value=Math.max(0,i-1))}}},$n=750;function er(e){let n=[],r=e=>{if(!e.querySelector(`.vd-morph-wave`)){let t=document.createElement(`span`);t.className=`vd-morph-wave`,t.setAttribute(`aria-hidden`,`true`),e.insertBefore(t,e.firstChild)}if(!e.querySelector(`.vd-morph-shine`)){let t=document.createElement(`span`);t.className=`vd-morph-shine`,t.setAttribute(`aria-hidden`,`true`);let n=e.querySelector(`.vd-morph-wave`);n?.nextSibling?e.insertBefore(t,n.nextSibling):e.insertBefore(t,e.firstChild)}},i=(e,t,n)=>{let r=e.querySelector(`.vd-morph-wave`);if(r){let n=e.getBoundingClientRect(),i=n.left+n.width/2,a=n.top+n.height/2,o=t&&t.clientX||i,s=t&&t.clientY||a;r.style.left=`${o-n.left}px`,r.style.top=`${s-n.top}px`}e.classList.add(`is-morphing`);let i=$n,a=getComputedStyle(e).getPropertyValue(`--vd-morph-duration`);if(a){let e=parseFloat(a);isNaN(e)||(i=e*(a.includes(`ms`)?1:1e3))}window.setTimeout(()=>{e.classList.remove(`is-morphing`);let t=e.querySelector(`.vd-morph-current`),r=e.querySelector(`.vd-morph-next`);t&&r&&(t.classList.replace(`vd-morph-current`,`vd-morph-next`),r.classList.replace(`vd-morph-next`,`vd-morph-current`)),n()},i)};(0,t.onMounted)(()=>{let t=e.value;t&&t.querySelectorAll(`.vd-morph, [data-vd-morph]`).forEach(e=>{if(e.getAttribute(`data-vd-morph`)===`manual`)return;r(e);let t=!1,a=n=>{t||(t=!0,i(e,n,()=>t=!1))};e.addEventListener(`click`,a),n.push(()=>e.removeEventListener(`click`,a))})}),(0,t.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}function tr(e){let n=[],r=(e,t,n)=>{if(!e)return;let r=String(t||``).replace(/[^a-z0-9-\s]/gi,``).trim();for(;e.firstChild;)e.removeChild(e.firstChild);if(r){let t=document.createElement(`i`);t.className=`ph ${r}`,t.style.marginRight=`0.35rem`,e.appendChild(t)}e.appendChild(document.createTextNode(n==null?``:String(n)))};(0,t.onMounted)(()=>{let t=e.value;t&&t.querySelectorAll(`[data-vd-morph="manual"][data-morph-states]`).forEach(e=>{let t=JSON.parse(e.getAttribute(`data-morph-states`)||`[]`),i=JSON.parse(e.getAttribute(`data-morph-classes`)||`[]`),a=JSON.parse(e.getAttribute(`data-morph-icons`)||`[]`),o=0,s=!1,c=750,l=getComputedStyle(e).getPropertyValue(`--vd-morph-duration`).trim();if(l){let e=parseFloat(l);isNaN(e)||(c=e*(l.includes(`ms`)?1:1e3))}let u=n=>{if(s||t.length===0)return;s=!0;let l=(o+1)%t.length,u=(l+1)%t.length,d=e.querySelector(`.vd-morph-next`);d&&r(d,a[l]??``,t[l]??``);let f=e.querySelector(`.vd-morph-wave`);if(f){let t=e.getBoundingClientRect();f.style.left=`${(n.clientX||t.left+t.width/2)-t.left}px`,f.style.top=`${(n.clientY||t.top+t.height/2)-t.top}px`}e.classList.add(`is-morphing`),window.setTimeout(()=>{e.classList.remove(`is-morphing`),i.forEach(t=>e.classList.remove(t)),i[l]&&e.classList.add(i[l]);let n=e.querySelector(`.vd-morph-current`),c=e.querySelector(`.vd-morph-next`);n&&r(n,a[l]??``,t[l]??``),c&&r(c,a[u]??``,t[u]??``),o=l,s=!1},c)};e.addEventListener(`click`,u),n.push(()=>e.removeEventListener(`click`,u))})}),(0,t.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}function nr(e){let n=(0,t.ref)(!1),r=null;return(0,t.onMounted)(()=>{let t=e.value;if(!t)return;let i=t.classList.contains(`vd-navbar-glass`),a=t.classList.contains(`vd-navbar-transparent`);if(!i&&!a)return;let o=()=>{let e=parseInt(t.dataset.scrollThreshold??``,10);return Number.isNaN(e)?t.offsetHeight||60:e};r=()=>{n.value=window.scrollY>o()},r(),window.addEventListener(`scroll`,r,{passive:!0})}),(0,t.onUnmounted)(()=>{r&&=(window.removeEventListener(`scroll`,r),null)}),n}function rr(e){let n=new Map,r=!1,i=null,a=e=>e.classList.contains(`vd-parallax-slow`)?.5:e.classList.contains(`vd-parallax-fast`)?1.5:1,o=e=>{let t=n.get(e);if(!t)return;let r=e.getBoundingClientRect(),i=window.innerHeight,a=(Math.max(0,Math.min(1,(i-r.top)/(i+r.height)))-.5)*t.speed*100;t.layers.forEach(e=>{let n=e.dataset.parallaxSpeed??e.dataset.speed,r=a*(n?parseFloat(n):1);e.style.transform=t.direction===`horizontal`?`translateX(${r}px)`:`translateY(${r}px)`})},s=()=>n.forEach((e,t)=>o(t)),c=()=>{r||=(window.requestAnimationFrame(()=>{s(),r=!1}),!0)};(0,t.onMounted)(()=>{if(typeof window>`u`||window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return;let t=e.value;t&&(t.querySelectorAll(`.vd-parallax`).forEach(e=>{let t=Array.from(e.querySelectorAll(`.vd-parallax-layer, .vd-parallax-bg`)),r=e.classList.contains(`vd-parallax-horizontal`)?`horizontal`:`vertical`;n.set(e,{layers:t,speed:a(e),direction:r}),o(e)}),i=()=>c(),window.addEventListener(`scroll`,i,{passive:!0}),c())}),(0,t.onUnmounted)(()=>{i&&window.removeEventListener(`scroll`,i),i=null,n.forEach(e=>{e.layers.forEach(e=>e.style.transform=``)}),n.clear()})}function ir(e){let n=!1;(0,t.onMounted)(()=>{let t=e.value;if(!t||typeof window>`u`)return;let r=window;n=!0,r.VanduoBubble&&typeof r.VanduoBubble.init==`function`?r.VanduoBubble.init(t):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(t)}),(0,t.onUnmounted)(()=>{if(typeof window>`u`||!n)return;let e=window;e.VanduoBubble&&typeof e.VanduoBubble.destroyAll==`function`&&e.VanduoBubble.destroyAll(),n=!1})}function ar(e){(0,t.onMounted)(()=>{let t=e.value;if(!t||typeof window>`u`)return;let n=window;n.VanduoRipple&&typeof n.VanduoRipple.init==`function`?n.VanduoRipple.init(t):n.Vanduo&&typeof n.Vanduo.init==`function`&&n.Vanduo.init(t)}),(0,t.onUnmounted)(()=>{if(typeof window>`u`)return;let e=window;e.VanduoRipple&&typeof e.VanduoRipple.destroyAll==`function`&&e.VanduoRipple.destroyAll()})}var or=(e,n={})=>{let r=(0,t.ref)(e[0]??null),i=n.offset??96,a=null;return(0,t.onMounted)(()=>{if(typeof window>`u`||!(`IntersectionObserver`in window))return;let t=new Set;a=new IntersectionObserver(n=>{for(let e of n)e.isIntersecting?t.add(e.target.id):t.delete(e.target.id);let i=e.find(e=>t.has(e));i&&(r.value=i)},{rootMargin:n.rootMargin??`-${i}px 0px -60% 0px`,threshold:0});for(let t of e){let e=document.getElementById(t);e&&a.observe(e)}}),(0,t.onUnmounted)(()=>{a?.disconnect(),a=null}),{activeId:r}};function sr(e){(0,t.onMounted)(()=>{if(typeof window>`u`)return;let e=window;e.VanduoSearch&&e.VanduoSearch.list()}),(0,t.onUnmounted)(()=>{})}function cr(e){let n=[],r=[],i=(e,t)=>{!e.classList.contains(`vd-sidenav-fixed`)&&!e.classList.contains(`vd-offcanvas-fixed`)&&t.classList.add(`is-visible`),e.classList.add(`is-open`),e.setAttribute(`aria-hidden`,`false`),document.body.classList.add(`body-sidenav-open`),e.dispatchEvent(new CustomEvent(`sidenav:open`,{bubbles:!0}))},a=(e,t)=>{t.classList.remove(`is-visible`),e.classList.remove(`is-open`),e.setAttribute(`aria-hidden`,`true`),document.body.classList.remove(`body-sidenav-open`),e.dispatchEvent(new CustomEvent(`sidenav:close`,{bubbles:!0}))},o=(e,t)=>{e.classList.contains(`is-open`)?a(e,t):i(e,t)};(0,t.onMounted)(()=>{let t=e.value;if(!t)return;let i=new Map;t.querySelectorAll(`.vd-sidenav, .vd-offcanvas`).forEach(e=>{let t=e.getAttribute(`data-vd-position`);if(t){let n=e.classList.contains(`vd-offcanvas`)?`vd-offcanvas`:`vd-sidenav`;e.classList.add(`${n}-${t}`)}let o=document.createElement(`div`);o.className=`vd-sidenav-overlay`,document.body.appendChild(o),r.push(o),i.set(e,o),e.setAttribute(`role`,`navigation`),e.setAttribute(`aria-hidden`,`true`);let s=e.querySelector(`.vd-sidenav-close, .vd-offcanvas-close`);if(s){let t=()=>a(e,o);s.addEventListener(`click`,t),n.push(()=>s.removeEventListener(`click`,t))}let c=()=>{e.dataset.backdrop!==`static`&&a(e,o)};o.addEventListener(`click`,c),n.push(()=>o.removeEventListener(`click`,c));let l=t=>{t.key===`Escape`&&e.classList.contains(`is-open`)&&e.dataset.keyboard!==`false`&&a(e,o)};document.addEventListener(`keydown`,l),n.push(()=>document.removeEventListener(`keydown`,l))}),t.querySelectorAll(`[data-sidenav-toggle]`).forEach(e=>{let t=t=>{t.preventDefault();let n=e.dataset.sidenavToggle;if(!n)return;let r=document.querySelector(n),a=r?i.get(r):void 0;r&&a&&o(r,a)};e.addEventListener(`click`,t),n.push(()=>e.removeEventListener(`click`,t))})}),(0,t.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0,r.forEach(e=>e.remove()),r.length=0,document.body.classList.remove(`body-sidenav-open`)})}function lr(e){let n=!1;(0,t.onMounted)(()=>{let t=e.value;if(!t||typeof window>`u`)return;let r=window;n=!0,r.VanduoSpotlight&&typeof r.VanduoSpotlight.init==`function`?r.VanduoSpotlight.init(t):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(t)}),(0,t.onUnmounted)(()=>{if(typeof window>`u`||!n)return;let e=window;e.VanduoSpotlight&&typeof e.VanduoSpotlight.destroyAll==`function`&&e.VanduoSpotlight.destroyAll(),n=!1})}function ur(e){let n=new Map,r=[];return(0,t.onMounted)(()=>{let t=e.value;t&&t.querySelectorAll(`.vd-stepper`).forEach(e=>{let t=Array.from(e.querySelectorAll(`.vd-stepper-item`)),i=e.classList.contains(`vd-stepper-clickable`),a=t.findIndex(e=>e.classList.contains(`is-active`));a===-1&&(a=0);let o=n=>{if(n<0||n>=t.length)return;let r=a;a=n,t.forEach((e,t)=>{e.classList.remove(`is-active`,`is-completed`),e.removeAttribute(`aria-current`),t<n?e.classList.add(`is-completed`):t===n&&(e.classList.add(`is-active`),e.setAttribute(`aria-current`,`step`))}),e.dispatchEvent(new CustomEvent(`stepper:change`,{detail:{current:n,previous:r,total:t.length},bubbles:!0}))};i&&t.forEach((e,t)=>{let n=()=>o(t);e.addEventListener(`click`,n);let i=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o(t))};e.addEventListener(`keydown`,i),r.push(()=>e.removeEventListener(`click`,n)),r.push(()=>e.removeEventListener(`keydown`,i))}),o(a),n.set(e,{setStep:o,next:()=>o(a+1),prev:()=>o(a-1)})})}),(0,t.onUnmounted)(()=>{r.forEach(e=>e()),r.length=0,n.clear()}),{next:e=>{e&&n.get(e)?.next()},prev:e=>{e&&n.get(e)?.prev()},setStep:(e,t)=>{e&&n.get(e)?.setStep(t)}}}function dr(e,t){try{let n=new URL(e,window.location.href);return n.origin===window.location.origin?!0:t.includes(n.origin)}catch{return!1}}var J=e=>typeof e==`object`&&(e.label||e.text)||String(e);function fr(e){let n=[];(0,t.onMounted)(()=>{if(typeof window>`u`)return;let t=e.value;t&&t.querySelectorAll(`[data-vd-suggest], [data-vd-autocomplete]`).forEach(e=>{let t=parseInt(e.getAttribute(`data-vd-suggest-min-chars`)||`1`,10),r=e.getAttribute(`data-vd-suggest-url`)||``,i=(e.getAttribute(`data-vd-suggest-allowlist`)||``).split(`,`).map(e=>e.trim()).filter(Boolean),a=e.getAttribute(`data-vd-suggest`)||e.getAttribute(`data-vd-autocomplete`)||``,o=[];try{o=JSON.parse(a)}catch{o=a.split(`,`).map(e=>e.trim()).filter(Boolean)}let s=e.closest(`.vd-suggest-wrapper, .vd-autocomplete-wrapper`);s||(s=document.createElement(`div`),s.className=`vd-suggest-wrapper`,e.parentNode?.insertBefore(s,e),s.appendChild(e));let c=document.createElement(`ul`);c.className=`vd-suggest-list`,c.setAttribute(`role`,`listbox`);let l=`vd-suggest-`+Math.random().toString(36).slice(2,9);c.id=l,s.appendChild(c),e.setAttribute(`role`,`combobox`),e.setAttribute(`aria-autocomplete`,`list`),e.setAttribute(`aria-expanded`,`false`),e.setAttribute(`aria-controls`,l),e.setAttribute(`autocomplete`,`off`);let u=-1,d=[],f=null,p=(e,t)=>{if(c.innerHTML=``,d=e,u=-1,e.length===0){let e=document.createElement(`li`);e.className=`vd-suggest-empty`,e.textContent=`No results`,c.appendChild(e);return}e.forEach((e,n)=>{let r=document.createElement(`li`);r.className=`vd-suggest-item`,r.setAttribute(`role`,`option`),r.id=l+`-item-`+n;let i=J(e);if(t){let e=i.toLowerCase(),n=t.toLowerCase(),a=0,o=e.indexOf(n,a);for(;o!==-1;){o>a&&r.appendChild(document.createTextNode(i.slice(a,o)));let s=document.createElement(`span`);s.className=`vd-suggest-match`,s.textContent=i.slice(o,o+t.length),r.appendChild(s),a=o+t.length,o=e.indexOf(n,a)}a<i.length&&r.appendChild(document.createTextNode(i.slice(a)))}else r.textContent=i;r.addEventListener(`click`,()=>g(n)),c.appendChild(r)})},m=()=>{c.classList.add(`is-open`),e.setAttribute(`aria-expanded`,`true`)},h=()=>{c.classList.remove(`is-open`),e.setAttribute(`aria-expanded`,`false`),u=-1,e.removeAttribute(`aria-activedescendant`)},g=t=>{let n=d[t],r=typeof n==`object`&&(n.value||n.label)||String(n);e.value=r,h(),e.dispatchEvent(new CustomEvent(`suggest:select`,{bubbles:!0,detail:{value:r,item:n,index:t}}))},_=t=>{let n=c.querySelectorAll(`.vd-suggest-item`);n.forEach(e=>e.classList.remove(`is-highlighted`)),t>=0&&t<n.length&&(u=t,n[t].classList.add(`is-highlighted`),e.setAttribute(`aria-activedescendant`,n[t].id),n[t].scrollIntoView({block:`nearest`}))},v=async e=>{if(e.length<t){h();return}let n;if(r)try{if(!dr(r,i))n=[];else{let t=r.includes(`?`)?`&`:`?`;n=await(await window.fetch(r+t+`q=`+encodeURIComponent(e))).json()}}catch{n=[]}else{let t=e.toLowerCase();n=o.filter(e=>J(e).toLowerCase().includes(t))}p(n,e),m()},y=()=>{f&&clearTimeout(f),f=setTimeout(()=>void v(e.value),200)},b=t=>{if(!c.classList.contains(`is-open`)){t.key===`ArrowDown`&&(v(e.value),t.preventDefault());return}let n=d.length;switch(t.key){case`ArrowDown`:t.preventDefault(),_(u<n-1?u+1:0);break;case`ArrowUp`:t.preventDefault(),_(u>0?u-1:n-1);break;case`Enter`:t.preventDefault(),u>=0&&g(u);break;case`Escape`:h();break}},x=()=>{setTimeout(h,200)},S=()=>{e.value.length>=t&&v(e.value)};e.addEventListener(`input`,y),e.addEventListener(`keydown`,b),e.addEventListener(`blur`,x),e.addEventListener(`focus`,S),n.push(()=>e.removeEventListener(`input`,y),()=>e.removeEventListener(`keydown`,b),()=>e.removeEventListener(`blur`,x),()=>e.removeEventListener(`focus`,S),()=>{f&&clearTimeout(f)},()=>{c.parentNode&&c.parentNode.removeChild(c)})})}),(0,t.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}function pr(e){let n=[];(0,t.onMounted)(()=>{let t=e.value;t&&t.querySelectorAll(`.vd-tabs`).forEach(e=>{e.querySelectorAll(`.vd-tab-link[data-tab-target]`).forEach(t=>{let r=()=>{if(t.classList.contains(`disabled`))return;let n=t.getAttribute(`data-tab-target`);n&&(e.querySelectorAll(`.vd-tab-link`).forEach(e=>{e.classList.remove(`is-active`),e.setAttribute(`aria-selected`,`false`)}),e.querySelectorAll(`.vd-tab-pane`).forEach(e=>e.classList.remove(`is-active`)),t.classList.add(`is-active`),t.setAttribute(`aria-selected`,`true`),e.querySelector(`#${CSS.escape(n)}`)?.classList.add(`is-active`))};t.addEventListener(`click`,r),n.push(()=>t.removeEventListener(`click`,r))})})}),(0,t.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}function Y(e){let n=!1;(0,t.onMounted)(()=>{let t=e.value;if(!t||typeof window>`u`)return;let r=window;n=!0,r.VanduoTimeline&&typeof r.VanduoTimeline.init==`function`?r.VanduoTimeline.init(t):r.Vanduo&&typeof r.Vanduo.init==`function`&&r.Vanduo.init(t)}),(0,t.onUnmounted)(()=>{if(typeof window>`u`||!n)return;let e=window;e.VanduoTimeline&&typeof e.VanduoTimeline.destroyAll==`function`&&e.VanduoTimeline.destroyAll(),n=!1})}function mr(e,t,n=4){let r=e.getBoundingClientRect();t.style.minWidth=Math.max(r.width,0)+`px`;let i=r.bottom+n,a=r.left;t.style.top=i+`px`,t.style.left=a+`px`;let o=t.getBoundingClientRect();o.bottom>window.innerHeight-8&&r.top-o.height>8&&(i=r.top-o.height-n,t.style.top=i+`px`);let s=t.getBoundingClientRect();a=r.left,a+s.width>window.innerWidth-8&&(a=window.innerWidth-s.width-8),t.style.left=Math.max(8,a)+`px`}function hr(e){let n=[];(0,t.onMounted)(()=>{if(typeof window>`u`)return;let t=e.value;t&&t.querySelectorAll(`[data-vd-timepicker]`).forEach(e=>{let t=e.getAttribute(`data-vd-timepicker-format`)===`24h`,r=parseInt(e.getAttribute(`data-vd-timepicker-step`)||`30`,10),i=document.createElement(`div`);i.className=`vd-timepicker-popup`,i.setAttribute(`role`,`listbox`),document.body.appendChild(i);let a=[];for(let e=0;e<24;e++)for(let n=0;n<60;n+=r){let r=String(e).padStart(2,`0`),i=String(n).padStart(2,`0`);if(t)a.push({display:r+`:`+i,value:r+`:`+i});else{let t=e<12?`AM`:`PM`,n=e===0?12:e>12?e-12:e;a.push({display:n+`:`+i+` `+t,value:r+`:`+i})}}let o=()=>{i.innerHTML=``,a.forEach(t=>{let n=document.createElement(`div`);n.className=`vd-timepicker-item`,n.setAttribute(`role`,`option`),n.textContent=t.display,(e.value===t.value||e.value===t.display)&&(n.classList.add(`is-selected`),n.setAttribute(`aria-selected`,`true`)),n.addEventListener(`click`,()=>{e.value=t.display,i.querySelectorAll(`.vd-timepicker-item`).forEach(e=>{e.classList.remove(`is-selected`),e.removeAttribute(`aria-selected`)}),n.classList.add(`is-selected`),n.setAttribute(`aria-selected`,`true`),l();let[r,a]=t.value.split(`:`);e.dispatchEvent(new CustomEvent(`timepicker:select`,{bubbles:!0,detail:{time:t.display,hours:parseInt(r,10),minutes:parseInt(a,10)}})),e.dispatchEvent(new Event(`change`,{bubbles:!0}))}),i.appendChild(n)})},s=()=>{i.classList.contains(`is-open`)&&mr(e,i)},c=()=>{o(),i.classList.add(`is-open`),e.setAttribute(`aria-expanded`,`true`),requestAnimationFrame(()=>{s();let e=i.querySelector(`.is-selected`);e&&e.scrollIntoView({block:`center`})})},l=()=>{i.classList.remove(`is-open`),e.setAttribute(`aria-expanded`,`false`)},u=()=>c(),d=t=>{let n=t.target;!e.contains(n)&&!i.contains(n)&&l()},f=e=>{e.key===`Escape`&&l()},p=()=>s();e.addEventListener(`focus`,u),document.addEventListener(`click`,d,!0),document.addEventListener(`keydown`,f),window.addEventListener(`resize`,p),window.addEventListener(`scroll`,p,!0),e.setAttribute(`aria-haspopup`,`listbox`),e.setAttribute(`aria-expanded`,`false`),e.setAttribute(`autocomplete`,`off`),e.readOnly=!0,n.push(()=>e.removeEventListener(`focus`,u),()=>document.removeEventListener(`click`,d,!0),()=>document.removeEventListener(`keydown`,f),()=>window.removeEventListener(`resize`,p),()=>window.removeEventListener(`scroll`,p,!0),()=>i.remove())})}),(0,t.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}var X=[`B`,`STRONG`,`I`,`EM`,`BR`,`A`,`SPAN`,`U`,`DIV`,`P`,`KBD`,`CODE`,`SMALL`,`MARK`],gr=[`SVG`,`PATH`,`LINE`,`CIRCLE`,`POLYLINE`,`RECT`,`G`],_r=new Set([`xmlns`,`width`,`height`,`viewBox`,`fill`,`stroke`,`stroke-width`,`stroke-linecap`,`stroke-linejoin`,`d`,`cx`,`cy`,`r`,`x1`,`y1`,`x2`,`y2`,`points`,`transform`,`class`]);function Z(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}function Q(e,t={}){if(!e)return``;if(typeof DOMParser>`u`)return Z(e);let n=t.allowSvg===!0,r=t.allowStyle===!0,i=n?X.concat(gr):X,a;try{a=new DOMParser().parseFromString(e,`text/html`)}catch{return Z(e)}let o=e=>{Array.from(e.childNodes).forEach(t=>{if(t.nodeType===Node.TEXT_NODE)return;let a=t;if(!i.includes(a.nodeName)){e.replaceChild(document.createTextNode(a.textContent??``),t);return}if(a.nodeName===`A`){let e=a.getAttribute(`href`)??``;try{let t=new URL(e,location.href);[`http:`,`https:`,`mailto:`].includes(t.protocol)||a.removeAttribute(`href`)}catch{a.removeAttribute(`href`)}a.removeAttribute(`target`),a.removeAttribute(`rel`)}else if(n&&(a.nodeName===`SVG`||a.closest?.(`svg`)))Array.from(a.attributes).forEach(e=>{_r.has(e.name)||a.removeAttribute(e.name)});else{let e=new Set([`class`]);r&&e.add(`style`),Array.from(a.attributes).forEach(t=>{e.has(t.name)||a.removeAttribute(t.name)})}o(a)})};return o(a.body),a.body.innerHTML}function vr(e){let n=null,r=[],i=()=>{n&&=(n.remove(),null)},a=(e,t,n)=>{let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a,o;switch(n){case`bottom`:a=r.bottom+8,o=r.left+r.width/2-i.width/2;break;case`left`:a=r.top+r.height/2-i.height/2,o=r.left-i.width-8;break;case`right`:a=r.top+r.height/2-i.height/2,o=r.right+8;break;default:a=r.top-i.height-8,o=r.left+r.width/2-i.width/2}t.style.top=`${Math.max(4,a)}px`,t.style.left=`${Math.max(4,o)}px`},o=e=>{i();let t=e.getAttribute(`data-tooltip`),r=e.getAttribute(`data-tooltip-html`);if(!t&&!r)return;let o=e.getAttribute(`data-tooltip-placement`)??`top`,s=e.getAttribute(`data-tooltip-variant`),c=e.getAttribute(`data-tooltip-size`),l=document.createElement(`div`);l.className=`vd-tooltip vd-tooltip-`+o+(s?` vd-tooltip-`+s:``)+(c?` vd-tooltip-`+c:``)+(r?` vd-tooltip-html`:``),l.setAttribute(`data-placement`,o),l.style.position=`fixed`,r?l.innerHTML=Q(r,{allowStyle:!1}):l.textContent=t,document.body.appendChild(l),a(e,l,o),requestAnimationFrame(()=>l.classList.add(`is-visible`)),n=l};(0,t.onMounted)(()=>{let t=e.value;t&&t.querySelectorAll(`[data-tooltip],[data-tooltip-html]`).forEach(e=>{let t=()=>o(e),n=()=>i();e.addEventListener(`mouseenter`,t),e.addEventListener(`mouseleave`,n),e.addEventListener(`focus`,t),e.addEventListener(`blur`,n),r.push(()=>{e.removeEventListener(`mouseenter`,t),e.removeEventListener(`mouseleave`,n),e.removeEventListener(`focus`,t),e.removeEventListener(`blur`,n)})})}),(0,t.onUnmounted)(()=>{i(),r.forEach(e=>e()),r.length=0})}var yr={required:e=>e.trim().length>0,email:e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),url:e=>{try{return new URL(e),!0}catch{return!1}},number:e=>!isNaN(parseFloat(e))&&isFinite(Number(e)),min:(e,t)=>e.length>=parseInt(t,10),max:(e,t)=>e.length<=parseInt(t,10),minVal:(e,t)=>parseFloat(e)>=parseFloat(t),maxVal:(e,t)=>parseFloat(e)<=parseFloat(t),pattern:(e,t)=>{try{return t.length>100?!1:new RegExp(t).test(e)}catch{return!1}},match:(e,t)=>{try{let n=typeof CSS<`u`&&CSS.escape?CSS.escape(t):t,r=document.getElementById(t)??document.querySelector(`[name="${n}"]`);return r?e===r.value:!1}catch{return!1}}},br={required:`This field is required`,email:`Please enter a valid email address`,url:`Please enter a valid URL`,number:`Please enter a valid number`,min:`Minimum {0} characters required`,max:`Maximum {0} characters allowed`,minVal:`Value must be at least {0}`,maxVal:`Value must be at most {0}`,pattern:`Invalid format`,match:`Fields do not match`},$=0;function xr(e,t){let n=e.closest(`.vd-form-group`)??e.parentElement;if(!n)return;let r=n.querySelector(`.vd-validate-error`);e.classList.remove(`is-valid`,`is-invalid`),t.length>0?(e.classList.add(`is-invalid`),e.setAttribute(`aria-invalid`,`true`),r||(r=document.createElement(`div`),r.className=`vd-validate-error`,$+=1,r.id=`vd-err-${$}`,r.setAttribute(`role`,`alert`),n.appendChild(r)),r.textContent=t[0]??``,r.style.display=``,e.setAttribute(`aria-describedby`,r.id)):e.value.trim()?(e.classList.add(`is-valid`),e.removeAttribute(`aria-invalid`),r&&(r.style.display=`none`)):(e.removeAttribute(`aria-invalid`),r&&(r.style.display=`none`))}function Sr(e){let n=[],r=e=>{let t=(e.getAttribute(`data-vd-rules`)??``).split(`|`).map(e=>e.trim()).filter(Boolean),n=e.value,r=[];for(let i of t){let[t,...a]=i.split(`:`),o=a.join(`:`),s=t?yr[t]:void 0;if(s&&!s(n,o)){let n=(t?e.getAttribute(`data-vd-msg-${t}`):null)??(t?br[t]:void 0)??`Invalid`;o&&(n=n.replace(`{0}`,o)),r.push(n);break}}return xr(e,r),r.length===0},i=e=>{let t=e.getAttribute(`data-vd-validate-mode`)??`blur`,i=Array.from(e.querySelectorAll(`[data-vd-rules]`)),a=()=>{let e=!0;return i.forEach(t=>{r(t)||(e=!1)}),e};i.forEach(e=>{let i=e.getAttribute(`data-vd-validate-mode`)??t;if(i===`input`||i===`blur`){let t=i===`input`?`input`:`blur`,a=()=>r(e);if(e.addEventListener(t,a),n.push(()=>e.removeEventListener(t,a)),i===`blur`){let t=()=>{(e.classList.contains(`is-invalid`)||e.classList.contains(`is-valid`))&&r(e)};e.addEventListener(`input`,t),n.push(()=>e.removeEventListener(`input`,t))}}});let o=t=>{let n=a();n||(t.preventDefault(),t.stopPropagation(),e.querySelector(`.is-invalid`)?.focus()),e.dispatchEvent(new CustomEvent(`validate:submit`,{detail:{valid:n},bubbles:!0}))};e.addEventListener(`submit`,o),n.push(()=>e.removeEventListener(`submit`,o))};(0,t.onMounted)(()=>{let t=e.value;t&&t.querySelectorAll(`[data-vd-validate], .vd-validate`).forEach(i)}),(0,t.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}function Cr(e){let n=[];(0,t.onMounted)(()=>{if(typeof window>`u`)return;let t=e.value;t&&t.querySelectorAll(`[data-vd-waypoint-nav], [data-vd-scrollspy-nav]`).forEach(e=>{let t=Array.from(e.querySelectorAll(`a[href^="#"]`));if(t.length===0)return;let r=parseInt(e.getAttribute(`data-vd-waypoint-offset`)||`80`,10),i=e.getAttribute(`data-vd-waypoint-nav`)||e.getAttribute(`data-vd-scrollspy-nav`)||``,a=null;i&&i!==`window`&&(a=document.querySelector(i));let o=[];if(t.forEach(e=>{let t=(e.getAttribute(`href`)||``).slice(1),n=t?document.getElementById(t):null;n&&(n.setAttribute(`data-vd-waypoint-section`,``),o.push({id:t,link:e,section:n}))}),o.length===0)return;let s=new Set,c=n=>{t.forEach(e=>{e.classList.remove(`is-active`),e.removeAttribute(`aria-current`)});let r=t.find(e=>e.getAttribute(`href`)===`#`+n);r&&(r.classList.add(`is-active`),r.setAttribute(`aria-current`,`true`),e.dispatchEvent(new CustomEvent(`waypoint:change`,{detail:{activeId:n,link:r}})))},l=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?s.add(e.target.id):s.delete(e.target.id)});for(let e of o)if(s.has(e.id)){c(e.id);return}},{root:a,rootMargin:`-`+r+`px 0px -40% 0px`,threshold:0});o.forEach(e=>l.observe(e.section)),t.forEach(e=>{let t=t=>{t.preventDefault();let n=(e.getAttribute(`href`)||``).slice(1),r=n?document.getElementById(n):null;r&&(r.scrollIntoView({behavior:`smooth`}),c(n))};e.addEventListener(`click`,t),n.push(()=>e.removeEventListener(`click`,t))}),n.push(()=>l.disconnect())})}),(0,t.onUnmounted)(()=>{n.forEach(e=>e()),n.length=0})}exports.FONT_OPTIONS=e.FONT_OPTIONS,exports.NEUTRAL_COLORS=e.NEUTRAL_COLORS,exports.PALETTE_OPTIONS=e.PALETTE_OPTIONS,exports.PRIMARY_COLORS=e.PRIMARY_COLORS,exports.RADIUS_OPTIONS=e.RADIUS_OPTIONS,exports.THEME_MODES=e.THEME_MODES,exports.VanduoVue=x,exports.VdAccordion=E,exports.VdAlert=j,exports.VdAvatar=te,exports.VdBadge=ne,exports.VdBox=Sn,exports.VdButton=ae,exports.VdButtonGroup=oe,exports.VdCard=ue,exports.VdCenter=Cn,exports.VdCheckboxGroup=pe,exports.VdChip=he,exports.VdCodeSnippet=ve,exports.VdCollection=ke,exports.VdCover=wn,exports.VdCustomSelect=Pe,exports.VdFlow=Ve,exports.VdFrame=En,exports.VdIcon=D,exports.VdInline=On,exports.VdInput=Ue,exports.VdModal=Ye,exports.VdOffcanvas=et,exports.VdPagination=it,exports.VdPreloader=ot,exports.VdProgress=ut,exports.VdRadioGroup=pt,exports.VdRating=gt,exports.VdSelect=xt,exports.VdSidenav=Dt,exports.VdSkeleton=kt,exports.VdSpinner=jt,exports.VdStack=kn,exports.VdSwitcher=jn,exports.VdTable=Ft,exports.VdTabs=Bt,exports.VdToast=L,exports.VdToastContainer=qt,exports.VdTooltip=Yt,exports.VdTransfer=mn,exports.VdTree=xn,exports.VdTreeNode=V,exports.applyPreference=_,exports.defaultPreference=m,exports.defaultPrimary=d,exports.getThemeDefaults=i,exports.isDefaultPrimary=g,exports.loadPreference=h,exports.loadVanduoRuntime=b,exports.persistPreference=v,exports.sanitizeHtml=Q,exports.setThemeDefaults=a,exports.useAffix=Pn,exports.useDatepicker=Un,exports.useDraggable=Gn,exports.useDropdown=Kn,exports.useExpandingCards=qn,exports.useFlow=Jn,exports.useFocusTrap=Yn,exports.useGlass=Xn,exports.useImageBox=Zn,exports.useKeyboardNav=Qn,exports.useMorph=er,exports.useMorphBadges=tr,exports.useNavbarGlassScroll=nr,exports.useParallax=rr,exports.usePopover=ir,exports.useRipple=ar,exports.useScrollspy=or,exports.useSearch=sr,exports.useSidenav=cr,exports.useSpotlight=lr,exports.useStepper=ur,exports.useSuggest=fr,exports.useTabs=pr,exports.useTimeline=Y,exports.useTimepicker=hr,exports.useToast=Kt,exports.useToastStore=B,exports.useTooltips=vr,exports.useValidate=Sr,exports.useWaypoint=Cr;
2
2
  //# sourceMappingURL=index.cjs.map