@vanduo-oss/framework 1.4.2 → 1.4.4
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/README.md +15 -3
- package/css/components/theme-switcher.css +129 -0
- package/css/vanduo.css +1 -1
- package/dist/build-info.json +3 -3
- package/dist/vanduo.cjs.js +328 -1098
- package/dist/vanduo.cjs.js.map +3 -3
- package/dist/vanduo.cjs.min.js +8 -8
- package/dist/vanduo.cjs.min.js.map +4 -4
- package/dist/vanduo.css +117 -690
- package/dist/vanduo.css.map +1 -1
- package/dist/vanduo.esm.js +328 -1098
- package/dist/vanduo.esm.js.map +3 -3
- package/dist/vanduo.esm.min.js +8 -8
- package/dist/vanduo.esm.min.js.map +4 -4
- package/dist/vanduo.js +328 -1098
- package/dist/vanduo.js.map +3 -3
- package/dist/vanduo.min.css +2 -2
- package/dist/vanduo.min.css.map +1 -1
- package/dist/vanduo.min.js +8 -8
- package/dist/vanduo.min.js.map +4 -4
- package/js/components/code-snippet.js +87 -24
- package/js/components/datepicker.js +27 -1
- package/js/components/suggest.js +18 -15
- package/js/components/theme-switcher.js +290 -29
- package/js/index.js +0 -1
- package/package.json +5 -5
- package/css/components/music-player.css +0 -798
- package/js/components/music-player.js +0 -1294
package/dist/vanduo.cjs.min.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! Vanduo v1.4.
|
|
2
|
-
var ce=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var me=Object.prototype.hasOwnProperty;var ge=(m,e)=>{for(var t in e)ce(m,t,{get:e[t],enumerable:!0})},ve=(m,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of pe(e))!me.call(m,s)&&s!==t&&ce(m,s,{get:()=>e[s],enumerable:!(n=he(e,s))||n.enumerable});return m};var ye=m=>ve(ce({},"__esModule",{value:!0}),m);var we={};ge(we,{Vanduo:()=>de,default:()=>be});module.exports=ye(we);(function(){"use strict";function m(s){return s?Array.isArray(s)?s.filter(function(r){return typeof r=="function"}):typeof s=="function"?[s]:[]:[]}function e(s){return typeof s=="function"?{onDestroy:[s]}:s||{}}function t(s,r){try{r()}catch(i){console.warn("[Vanduo Lifecycle] "+s+" error:",i)}}let n={instances:new Map,isRoot:function(s){return!!s&&(s===document||s.nodeType===1||s.nodeType===9||s.nodeType===11)},normalizeRoot:function(s){return this.isRoot(s)?s:document},isInRoot:function(s,r){let i=this.normalizeRoot(s);return r instanceof Element?i===document?document.documentElement?document.documentElement.contains(r):document.contains(r):i===r?!0:typeof i.contains=="function"&&i.contains(r):!1},queryAll:function(s,r){let i=this.normalizeRoot(s),o=[];if(i instanceof Element&&typeof i.matches=="function"&&i.matches(r)&&o.push(i),typeof i.querySelectorAll=="function"){let a=i.querySelectorAll(r);for(let c=0;c<a.length;c++)o.push(a[c])}return o},queryOne:function(s,r){let i=this.queryAll(s,r);return i.length?i[0]:null},runInRoot:function(s,r){let i=this.normalizeRoot(s);return r(i)},register:function(s,r,i,o){if(!(s instanceof Element)||!r)return;let a=e(o),c=m(i),l=m(a.onDestroy),f=this.instances.get(s)||new Map,d=f.get(r);if(d){d.cleanup=d.cleanup.concat(c),d.onDestroy=d.onDestroy.concat(l);return}f.set(r,{component:r,cleanup:c,onDestroy:l,registeredAt:Date.now()}),this.instances.set(s,f)},unregister:function(s,r){let i=this.instances.get(s);if(!i)return;if(r){let a=i.get(r);if(!a)return;i.delete(r),i.size||this.instances.delete(s),a.cleanup.forEach(function(c){t("Cleanup",c)}),a.onDestroy.forEach(function(c){t("Destroy",c)});return}let o=Array.from(i.values());this.instances.delete(s),o.forEach(function(a){a.cleanup.forEach(function(c){t("Cleanup",c)}),a.onDestroy.forEach(function(c){t("Destroy",c)})})},destroyAll:function(s){let r=[];return this.instances.forEach(function(i,o){if(!s){r.push([o,null]);return}i.has(s)&&r.push([o,s])}),r.forEach(function(i){n.unregister(i[0],i[1]||void 0)}),r.length},destroyAllInContainer:function(s,r){let i=this.normalizeRoot(s),o=[];return this.instances.forEach(function(a,c){if(n.isInRoot(i,c)){if(!r){o.push([c,null]);return}a.has(r)&&o.push([c,r])}}),o.forEach(function(a){n.unregister(a[0],a[1]||void 0)}),o.length},getAll:function(){let s=[];return this.instances.forEach(function(r,i){r.forEach(function(o){s.push({element:i,component:o.component,registeredAt:o.registeredAt})})}),s},has:function(s,r){let i=this.instances.get(s);return i?r?i.has(r):i.size>0:!1}};window.addEventListener("beforeunload",function(){n.destroyAll()}),window.VanduoLifecycle=n})();(function(){"use strict";let m="1.4.2",e=Object.prototype.hasOwnProperty,t={version:m,components:{},aliases:{},_decoratedComponents:new WeakSet,resolveComponentName:function(n){return this.aliases[n]||n},_isRoot:function(n){return typeof window.VanduoLifecycle<"u"&&typeof window.VanduoLifecycle.isRoot=="function"?window.VanduoLifecycle.isRoot(n):!!n&&(n===document||n.nodeType===1||n.nodeType===9||n.nodeType===11)},_normalizeRoot:function(n){return this._isRoot(n)?n:document},_queryAll:function(n,s){let r=this._normalizeRoot(n),i=[];if(r instanceof Element&&typeof r.matches=="function"&&r.matches(s)&&i.push(r),typeof r.querySelectorAll=="function"){let o=r.querySelectorAll(s);for(let a=0;a<o.length;a++)i.push(o[a])}return i},queryAll:function(n,s){return typeof s>"u"&&(s=n,n=document),this._queryAll(n,s)},queryOne:function(n,s){let r=this.queryAll(n,s);return r.length?r[0]:null},_isLifecycleManagedComponent:function(n){if(!n||typeof n!="object")return!1;for(let s in n)if(e.call(n,s)&&n[s]instanceof Map)return!0;return!1},_syncComponentLifecycle:function(n,s,r){let i=window.VanduoLifecycle;if(!i||!this._isLifecycleManagedComponent(s))return;let o=this.resolveComponentName(n),a=this._normalizeRoot(r);for(let c in s)!e.call(s,c)||!(s[c]instanceof Map)||s[c].forEach(function(l,f){if(!(f instanceof Element)||!i.isInRoot(a,f)||i.has(f,o))return;if(typeof s.destroy=="function"){i.register(f,o,[],function(){s.destroy(f)});return}let d=l&&Array.isArray(l.cleanup)?l.cleanup:[];i.register(f,o,d,function(){s[c].delete(f)})})},_decorateComponent:function(n,s){let r=this,i=window.VanduoLifecycle;if(!s||typeof s!="object"||this._decoratedComponents.has(s))return;let o=typeof s.init=="function"?s.init:null;o&&(s.init=function(...c){let l=r._isRoot(c[0])?c[0]:null,f=o.apply(this,c);if(window.Vanduo){let d=l||document;window.Vanduo._syncComponentLifecycle(n,this,d)}return f});let a=typeof s.destroyAll=="function"?s.destroyAll:null;a&&(s.destroyAll=function(...c){let l=r._isRoot(c[0])?c[0]:null,f=window.Vanduo?window.Vanduo.resolveComponentName(n):n;if(i&&window.Vanduo&&window.Vanduo._isLifecycleManagedComponent(this)){if(l&&l!==document)return i.destroyAllInContainer(l,f),this.__vanduoScopedDestroyAll===!0?a.apply(this,c):void 0;i.destroyAll(f)}return a.apply(this,c)}),this._decoratedComponents.add(s)},init:function(n){let s=this._normalizeRoot(n);if(s!==document){this.initComponents(s);return}if(typeof ready<"u"){ready(()=>{this.initComponents(document)});return}if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",()=>{this.initComponents(document)});return}this.initComponents(document)},initComponents:function(n){let s=this._normalizeRoot(n);Object.keys(this.components).forEach(r=>{let i=this.components[r];if(i.init&&typeof i.init=="function")try{i.init(s)}catch(o){console.warn('[Vanduo] Failed to initialize component "'+r+'":',o)}})},register:function(n,s,r){let i=r||{};this._decorateComponent(n,s),this.components[n]=s,Array.isArray(i.aliases)&&i.aliases.forEach(o=>{this.aliases[o]=n})},registerAlias:function(n,s){let r=this.resolveComponentName(s);this.components[r]&&(this.aliases[n]=r)},reinit:function(n,s){let r=this._normalizeRoot(s),i=this.resolveComponentName(n),o=this.components[i];if(o&&o.init&&typeof o.init=="function")try{o.destroyAll&&typeof o.destroyAll=="function"&&o.destroyAll(r),o.init(r)}catch(a){console.warn('[Vanduo] Failed to reinitialize component "'+i+'":',a)}},destroy:function(n){let s=this._normalizeRoot(n),r=Object.keys(this.components);for(let i=0;i<r.length;i++){let o=this.components[r[i]];if(o&&o.destroyAll&&typeof o.destroyAll=="function")try{o.destroyAll(s)}catch(a){console.warn('[Vanduo] Failed to destroy component "'+r[i]+'":',a)}}},destroyAll:function(){this.destroy(document)},getComponent:function(n){let s=this.resolveComponentName(n);return this.components[s]||null}};window.Vanduo=t})();(function(){"use strict";let m={_snippetIdCounter:0,resolveRoot:function(e){return e&&(e.nodeType===1||e.nodeType===9||e.nodeType===11)?e:document},queryWithin:function(e,t){let n=this.resolveRoot(e),s=[];if(n instanceof Element&&typeof n.matches=="function"&&n.matches(t)&&s.push(n),typeof n.querySelectorAll=="function"){let r=n.querySelectorAll(t);for(let i=0;i<r.length;i++)s.push(r[i])}return s},getSnippetInstanceId:function(e){if(e.dataset.codeSnippetId)return e.dataset.codeSnippetId;let t=(e.id||"").trim();return t?(e.dataset.codeSnippetId=`snippet-${t}`,e.dataset.codeSnippetId):(this._snippetIdCounter+=1,e.dataset.codeSnippetId=`snippet-auto-${this._snippetIdCounter}`,e.dataset.codeSnippetId)},addListener:function(e,t,n,s){t&&(t.addEventListener(n,s),e._codeSnippetCleanup||(e._codeSnippetCleanup=[]),e._codeSnippetCleanup.push(()=>t.removeEventListener(n,s)))},init:function(e){this.queryWithin(e,".vd-code-snippet").forEach(n=>{n.dataset.initialized||this.initSnippet(n)})},initSnippet:function(e){e.dataset.initialized="true",e._codeSnippetCleanup=[];let t=e.querySelector(".vd-code-snippet-toggle"),n=e.querySelector(".vd-code-snippet-content");t&&n&&this.initCollapsible(e,t,n);let s=e.querySelectorAll(".vd-code-snippet-tab"),r=e.querySelectorAll(".vd-code-snippet-pane");s.length>0&&this.initTabs(e,s,r);let i=e.querySelector(".vd-code-snippet-copy");i&&this.initCopyButton(e,i),e.querySelectorAll("[data-extract]").forEach(l=>{this.extractHtml(l)}),e.querySelectorAll(".vd-code-snippet-pane:not([data-extract])").forEach(l=>{this.applyPaneHighlighting(l)}),e.querySelectorAll(".has-line-numbers").forEach(l=>{this.addLineNumbers(l)})},initCollapsible:function(e,t,n){let s=e.dataset.expanded==="true";t.setAttribute("aria-expanded",s),n.dataset.visible=s,this.addListener(e,t,"click",()=>{let r=e.dataset.expanded==="true";e.dataset.expanded=!r,t.setAttribute("aria-expanded",!r),n.dataset.visible=!r,r||n.querySelectorAll("[data-extract]:not([data-extracted])").forEach(a=>{this.extractHtml(a)});let i=new CustomEvent("codesnippet:toggle",{bubbles:!0,detail:{snippet:e,expanded:!r}});e.dispatchEvent(i)})},initTabs:function(e,t,n){let s=this.getSnippetInstanceId(e),r=e.querySelector(".vd-code-snippet-tabs");r&&r.setAttribute("role","tablist"),t.forEach((i,o)=>{let a=i.dataset.lang,c=i.classList.contains("is-active");i.setAttribute("role","tab"),i.setAttribute("aria-selected",c),i.setAttribute("tabindex",c?"0":"-1"),i.id=i.id||`code-tab-${s}-${a||"tab"}-${o}`;let l=e.querySelector(`.vd-code-snippet-pane[data-lang="${a}"]`);l&&(l.id=l.id||`code-pane-${s}-${a||"pane"}-${o}`,l.setAttribute("role","tabpanel"),i.setAttribute("aria-controls",l.id),l.setAttribute("aria-labelledby",i.id)),this.addListener(e,i,"click",()=>{this.switchTab(e,i,t,n)}),this.addListener(e,i,"keydown",f=>{this.handleTabKeydown(f,e,t,n)})})},switchTab:function(e,t,n,s){let r=t.dataset.lang;n.forEach(a=>{a.classList.remove("is-active"),a.setAttribute("aria-selected","false"),a.setAttribute("tabindex","-1")}),s.forEach(a=>{a.classList.remove("is-active")}),t.classList.add("is-active"),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0");let i=e.querySelector(`.vd-code-snippet-pane[data-lang="${r}"]`);i&&i.classList.add("is-active");let o=new CustomEvent("codesnippet:tabchange",{bubbles:!0,detail:{snippet:e,tab:t,lang:r}});e.dispatchEvent(o)},handleTabKeydown:function(e,t,n,s){let r=Array.from(n),i=r.indexOf(e.target),o;switch(e.key){case"ArrowLeft":e.preventDefault(),o=i>0?i-1:r.length-1;break;case"ArrowRight":e.preventDefault(),o=i<r.length-1?i+1:0;break;case"Home":e.preventDefault(),o=0;break;case"End":e.preventDefault(),o=r.length-1;break;default:return}o!==i&&(r[o].focus(),this.switchTab(t,r[o],n,s))},initCopyButton:function(e,t){this.addListener(e,t,"click",async()=>{await this.copyCode(e,t)})},copyCode:async function(e,t){let n=e.querySelector(".vd-code-snippet-pane.is-active")||e.querySelector(".vd-code-snippet-pane");if(!n){console.warn("CodeSnippet: No code pane found");return}let r=(n.querySelector("code")||n).textContent,i;try{await navigator.clipboard.writeText(r),i=!0}catch{i=this.fallbackCopy(r)}this.showCopyFeedback(t,i);let o=new CustomEvent("codesnippet:copy",{bubbles:!0,detail:{snippet:e,code:r,success:i}});e.dispatchEvent(o)},fallbackCopy:function(e){let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-9999px",t.style.top="-9999px",document.body.appendChild(t),t.focus(),t.select();let n=!1;try{n=document.execCommand("copy")}catch(s){console.warn("CodeSnippet: Fallback copy failed",s)}return document.body.removeChild(t),n},showCopyFeedback:function(e,t){if(t){e.classList.add("is-copied");let n=document.createElement("span");n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.className="sr-only",n.textContent="Code copied to clipboard",e.appendChild(n),setTimeout(()=>{e.classList.remove("is-copied"),n.parentNode&&n.parentNode.removeChild(n)},2e3)}},extractHtml:function(e){let t=e.dataset.extract;if(!t)return;let n=document.querySelector(t);if(!n){console.warn(`CodeSnippet: Source element not found: ${t}`);return}let s=n.innerHTML;s=this.formatHtml(s),s=this.escapeHtml(s),s=this.highlightHtml(s);let r=document.createElement("code");r.innerHTML=s,e.replaceChildren(r),e.dataset.extracted="true",e.dataset.highlighted="true"},formatHtml:function(e){e=e.trim();let t=e.split(`
|
|
3
|
-
`),n=0,s=2,
|
|
4
|
-
`)},escapeHtml:function(e){let t=document.createElement("div");return t.textContent=e,t.innerHTML},needsHighlighting:function(e,t){return!(!t||e.dataset.highlighted==="true"||t.querySelector('[class^="code-"], [class*=" code-"]'))},getHighlightMode:function(e){let t=String(e||"").trim().toLowerCase();return["html","xml","svg","vue","svelte","astro"].includes(t)?"html":["css","scss","sass","less"].includes(t)?"css":["js","mjs","cjs","ts","jsx","tsx","json","bash","sh"].includes(t)?"js":"plain"},highlightCodeByLang:function(e,t){let n=this.escapeHtml(e),s=this.getHighlightMode(t);return s==="html"?this.highlightHtml(n):s==="css"?this.highlightCss(n):s==="js"?this.highlightJs(n):n},applyPaneHighlighting:function(e){if(!e)return;let t=e.querySelector("code")||e;if(!this.needsHighlighting(e,t)){e.dataset.highlighted="true";return}let n=t.textContent||"",s=this.highlightCodeByLang(n,e.dataset.lang),
|
|
5
|
-
`).length,r=document.createElement("div");r.className="vd-code-snippet-line-numbers",r.setAttribute("aria-hidden","true");for(let o=1;o<=s;o++){let a=document.createElement("span");a.textContent=o,r.appendChild(a)}let i=document.createElement("div");i.className="vd-code-snippet-code",i.appendChild(t.cloneNode(!0)),t.parentNode.removeChild(t),e.appendChild(r),e.appendChild(i)},expand:function(e){if(typeof e=="string"&&(e=document.querySelector(e)),!e)return;e.dataset.expanded="true";let t=e.querySelector(".vd-code-snippet-toggle"),n=e.querySelector(".vd-code-snippet-content");t&&t.setAttribute("aria-expanded","true"),n&&(n.dataset.visible="true")},collapse:function(e){if(typeof e=="string"&&(e=document.querySelector(e)),!e)return;e.dataset.expanded="false";let t=e.querySelector(".vd-code-snippet-toggle"),n=e.querySelector(".vd-code-snippet-content");t&&t.setAttribute("aria-expanded","false"),n&&(n.dataset.visible="false")},showLang:function(e,t){if(typeof e=="string"&&(e=document.querySelector(e)),!e)return;let n=e.querySelector(`.vd-code-snippet-tab[data-lang="${t}"]`),s=e.querySelectorAll(".vd-code-snippet-tab"),r=e.querySelectorAll(".vd-code-snippet-pane");n&&this.switchTab(e,n,s,r)},destroy:function(e){typeof e=="string"&&(e=document.querySelector(e)),e&&(e._codeSnippetCleanup&&(e._codeSnippetCleanup.forEach(t=>t()),delete e._codeSnippetCleanup),delete e.dataset.initialized)},destroyAll:function(e){let t=this.resolveRoot(e);this.queryWithin(t,'.vd-code-snippet[data-initialized="true"]').forEach(s=>{this.destroy(s)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("codeSnippet",m),window.CodeSnippet=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-collapsible, .accordion").forEach(n=>{this.instances.has(n)||this.initCollapsible(n)})},initCollapsible:function(e){let t=e.classList.contains("accordion"),n=e.querySelectorAll(".vd-collapsible-item, .accordion-item"),s=[];n.forEach(r=>{let i=r.querySelector(".vd-collapsible-header, .accordion-header"),o=r.querySelector(".vd-collapsible-body, .accordion-body"),a=r.querySelector(".vd-collapsible-trigger, .accordion-trigger")||i;if(!i||!o)return;r.classList.contains("is-open")?this.openItem(r,o,!1):this.closeItem(r,o,!1);let c=l=>{l.preventDefault(),this.toggleItem(r,o,e,t)};a.addEventListener("click",c),s.push(()=>a.removeEventListener("click",c))}),this.instances.set(e,{cleanup:s})},toggleItem:function(e,t,n,s){e.classList.contains("is-open")?this.closeItem(e,t):(s&&n.querySelectorAll(".vd-collapsible-item.is-open, .accordion-item.is-open").forEach(o=>{if(o!==e){let a=o.querySelector(".vd-collapsible-body, .accordion-body");this.closeItem(o,a)}}),this.openItem(e,t))},openItem:function(e,t,n=!0){n||(t.style.transition="none"),e.classList.add("is-open"),e.setAttribute("aria-expanded","true");let s=t.scrollHeight;t.style.maxHeight=`${s}px`,n||setTimeout(()=>{t.style.transition=""},0),e.dispatchEvent(new CustomEvent("collapsible:open",{bubbles:!0}))},closeItem:function(e,t,n=!0){n||(t.style.transition="none"),e.classList.remove("is-open"),e.setAttribute("aria-expanded","false"),t.style.maxHeight="0",n||setTimeout(()=>{t.style.transition=""},0),e.dispatchEvent(new CustomEvent("collapsible:close",{bubbles:!0}))},open:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t){let n=t.querySelector(".vd-collapsible-body, .accordion-body");n&&this.openItem(t,n)}},close:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t){let n=t.querySelector(".vd-collapsible-body, .accordion-body");n&&this.closeItem(t,n)}},toggle:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t){let n=t.querySelector(".vd-collapsible-body, .accordion-body"),s=t.closest(".vd-collapsible, .accordion"),r=s&&s.classList.contains("accordion");n&&this.toggleItem(t,n,s,r)}},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>{this.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("collapsible",m),window.VanduoCollapsible=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-dropdown").forEach(n=>{this.instances.has(n)||this.initDropdown(n)})},initDropdown:function(e){let t=e.querySelector(".vd-dropdown-toggle"),n=e.querySelector(".vd-dropdown-menu");if(!t||!n)return;let s=[];t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded","false"),n.setAttribute("role","menu"),n.setAttribute("aria-hidden","true");let r=c=>{c.preventDefault(),c.stopPropagation(),this.toggleDropdown(e,t,n)};t.addEventListener("click",r),s.push(()=>t.removeEventListener("click",r));let i=c=>{!e.contains(c.target)&&n.classList.contains("is-open")&&this.closeDropdown(e,t,n)};document.addEventListener("click",i),s.push(()=>document.removeEventListener("click",i));let o=c=>{this.handleKeydown(c,e,t,n)};t.addEventListener("keydown",o),s.push(()=>t.removeEventListener("keydown",o)),n.querySelectorAll(".vd-dropdown-item:not(.disabled):not(.is-disabled)").forEach(c=>{let l=d=>{d.preventDefault(),this.selectItem(c,e,t,n)};c.addEventListener("click",l),s.push(()=>c.removeEventListener("click",l));let f=d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),this.selectItem(c,e,t,n))};c.addEventListener("keydown",f),s.push(()=>c.removeEventListener("keydown",f))}),this.instances.set(e,{toggle:t,menu:n,cleanup:s,typeaheadBuffer:"",typeaheadTimer:null})},toggleDropdown:function(e,t,n){n.classList.contains("is-open")?this.closeDropdown(e,t,n):this.openDropdown(e,t,n)},openDropdown:function(e,t,n){document.querySelectorAll(".vd-dropdown-menu.is-open").forEach(i=>{if(i!==n){let o=i.closest(".vd-dropdown"),a=o.querySelector(".vd-dropdown-toggle");this.closeDropdown(o,a,i)}}),e.classList.add("is-open"),n.classList.add("is-open"),t.setAttribute("aria-expanded","true"),n.setAttribute("aria-hidden","false"),this.positionMenu(e,n);let r=n.querySelector(".vd-dropdown-item:not(.disabled):not(.is-disabled)");r&&setTimeout(()=>r.focus(),0)},closeDropdown:function(e,t,n){e.classList.remove("is-open"),n.classList.remove("is-open"),t.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true"),t.focus()},positionMenu:function(e,t){let n=e.getBoundingClientRect(),s=t.getBoundingClientRect(),r=window.innerWidth,i=window.innerHeight,o=8;if(t.classList.remove("vd-dropdown-menu-end","vd-dropdown-menu-start","vd-dropdown-menu-top"),e.classList.contains("vd-dropdown-dropup")){t.classList.add("vd-dropdown-menu-top");return}e.classList.contains("vd-dropdown-dropright")||e.classList.contains("vd-dropdown-dropleft")||(n.left+s.width>r-o?t.classList.add("vd-dropdown-menu-end"):t.classList.add("vd-dropdown-menu-start"),n.bottom+s.height>i-o&&n.top-s.height>o&&t.classList.add("vd-dropdown-menu-top"))},handleKeydown:function(e,t,n,s){let r=s.classList.contains("is-open"),i=Array.from(s.querySelectorAll(".vd-dropdown-item:not(.disabled):not(.is-disabled)")),o=i.findIndex(a=>a===document.activeElement);switch(e.key){case"Enter":case" ":case"ArrowDown":if(e.preventDefault(),!r)this.openDropdown(t,n,s);else if(e.key==="ArrowDown"){let a=o<i.length-1?o+1:0;i[a].focus()}break;case"ArrowUp":if(r){e.preventDefault();let a=o>0?o-1:i.length-1;i[a].focus()}break;case"Escape":r&&(e.preventDefault(),this.closeDropdown(t,n,s));break;case"Home":r&&(e.preventDefault(),i[0].focus());break;case"End":r&&(e.preventDefault(),i[i.length-1].focus());break;default:if(r&&e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey){let a=this.instances.get(t);if(!a)break;clearTimeout(a.typeaheadTimer),a.typeaheadBuffer+=e.key.toLowerCase();let c=i.find(l=>l.textContent.trim().toLowerCase().startsWith(a.typeaheadBuffer));c&&c.focus(),a.typeaheadTimer=setTimeout(()=>{a.typeaheadBuffer=""},500)}break}},selectItem:function(e,t,n,s){s.querySelectorAll(".vd-dropdown-item").forEach(r=>{r.classList.remove("active","is-active")}),e.classList.add("active","is-active"),(n.tagName==="BUTTON"||n.classList.contains("btn"))&&(n.textContent=e.textContent.trim()),this.closeDropdown(t,n,s),e.dispatchEvent(new CustomEvent("dropdown:select",{bubbles:!0,detail:{item:e,value:e.dataset.value||e.textContent}}))},open:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t){let n=t.querySelector(".vd-dropdown-toggle"),s=t.querySelector(".vd-dropdown-menu");n&&s&&this.openDropdown(t,n,s)}},close:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t){let n=t.querySelector(".vd-dropdown-toggle"),s=t.querySelector(".vd-dropdown-menu");n&&s&&this.closeDropdown(t,n,s)}},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>{this.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("dropdown",m),window.VanduoDropdown=m})();(function(){"use strict";let m={STORAGE_KEY:"vanduo-font-preference",isInitialized:!1,fonts:{system:{name:"System Default",family:null},"jetbrains-mono":{name:"JetBrains Mono",family:"'JetBrains Mono', monospace"},ubuntu:{name:"Ubuntu",family:"'Ubuntu', sans-serif",category:"sans-serif",description:"Friendly, humanist sans-serif"},"open-sans":{name:"Open Sans",family:"'Open Sans', sans-serif",category:"sans-serif",description:"Neutral, highly readable"},lato:{name:"Lato",family:"'Lato', sans-serif",category:"sans-serif",description:"Friendly, rounded sans-serif"}},getToggles:function(e){return window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,'[data-toggle="font"]'):Array.from(document.querySelectorAll('[data-toggle="font"]'))},init:function(e){if(this.state={preference:this.getPreference()},this.fonts[this.state.preference]||(this.state.preference="ubuntu",this.setStorageValue(this.STORAGE_KEY,this.state.preference)),this.isInitialized){this.applyFont(),this.renderUI(e),this.updateUI(e);return}this.isInitialized=!0,this.applyFont(),this.renderUI(e)},getPreference:function(){return this.getStorageValue(this.STORAGE_KEY,"ubuntu")},setPreference:function(e){if(!this.fonts[e]){console.warn("Unknown font:",e);return}this.state.preference=e,this.setStorageValue(this.STORAGE_KEY,e),this.applyFont(),this.updateUI();let t=new CustomEvent("font:change",{bubbles:!0,detail:{font:e,fontData:this.fonts[e]}});document.dispatchEvent(t)},applyFont:function(){let e=this.state.preference;e==="system"?document.documentElement.removeAttribute("data-font"):document.documentElement.setAttribute("data-font",e)},renderUI:function(e){this.getToggles(e).forEach(n=>{if(n.getAttribute("data-font-initialized")==="true"){n.tagName==="SELECT"&&(n.value=this.state.preference);return}if(n.tagName==="SELECT"){n.value=this.state.preference;let s=r=>{this.setPreference(r.target.value)};n.addEventListener("change",s),n._fontToggleHandler=s}else{let s=()=>{let r=Object.keys(this.fonts),o=(r.indexOf(this.state.preference)+1)%r.length;this.setPreference(r[o])};n.addEventListener("click",s),n._fontToggleHandler=s}n.setAttribute("data-font-initialized","true")})},updateUI:function(e){this.getToggles(e).forEach(n=>{if(n.tagName==="SELECT")n.value=this.state.preference;else{let s=n.querySelector(".font-current-label");s&&(s.textContent=this.fonts[this.state.preference].name)}})},getCurrentFont:function(){return this.state.preference},getFontData:function(e){return this.fonts[e]||null},destroyAll:function(e){this.getToggles(e||document).filter(function(n){return n.getAttribute("data-font-initialized")==="true"}).forEach(n=>{if(n._fontToggleHandler){let s=n.tagName==="SELECT"?"change":"click";n.removeEventListener(s,n._fontToggleHandler),delete n._fontToggleHandler}n.removeAttribute("data-font-initialized")}),(!e||e===document)&&(this.isInitialized=!1)},getStorageValue:function(e,t){if(typeof window.safeStorageGet=="function")return window.safeStorageGet(e,t);try{let n=localStorage.getItem(e);return n!==null?n:t}catch{return t}},setStorageValue:function(e,t){if(typeof window.safeStorageSet=="function")return window.safeStorageSet(e,t);try{return localStorage.setItem(e,t),!0}catch{return!1}}};window.Vanduo&&window.Vanduo.register("fontSwitcher",m),window.FontSwitcher=m})();(function(){"use strict";let m=(function(){try{return CSS.supports("selector(:has(*))")}catch{return!1}})(),e={instances:new Map,__vanduoScopedDestroyAll:!0,init:function(t){window.Vanduo.queryAll(t,"[data-layout-mode]").forEach(function(s){this.instances.has(s)||this.initContainer(s)}.bind(this)),this.initToggleButtons(t)},initContainer:function(t){let n=t.getAttribute("data-layout-mode")||"standard",s=[];this.applyMode(t,n),t.setAttribute("role","region"),t.setAttribute("aria-label","Grid layout: "+n+" mode"),this.instances.set(t,{cleanup:s,mode:n})},initToggleButtons:function(t){(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(t,"[data-grid-toggle]"):document.querySelectorAll("[data-grid-toggle]")).forEach(function(s){if(s.getAttribute("data-grid-initialized")==="true")return;let r=function(i){i.preventDefault();let o=s.getAttribute("data-grid-toggle"),a;o?a=document.querySelector(o):a=s.closest("[data-layout-mode]"),a&&this.toggle(a)}.bind(this);s.addEventListener("click",r),s.setAttribute("data-grid-initialized","true"),s.setAttribute("aria-pressed","false"),s._gridCleanup=function(){s.removeEventListener("click",r),s.removeAttribute("data-grid-initialized"),s.removeAttribute("aria-pressed")}}.bind(this))},applyFibFallback:function(t){if(m)return;t.querySelectorAll(".vd-row, .row").forEach(function(s){let i=s.querySelectorAll(':scope > [class*="vd-col-"], :scope > [class*="col-"]').length;i===1?s.style.gridTemplateColumns="1fr":i===2?s.style.gridTemplateColumns="1fr 1.618fr":i===3?s.style.gridTemplateColumns="2fr 3fr 5fr":i===4?s.style.gridTemplateColumns="1fr 2fr 3fr 5fr":s.style.gridTemplateColumns="repeat("+i+", 1fr)"})},removeFibFallback:function(t){t.querySelectorAll(".vd-row, .row").forEach(function(s){s.style.gridTemplateColumns=""})},applyMode:function(t,n){t.classList.remove("vd-grid-standard","vd-grid-fibonacci"),n==="fibonacci"?(t.classList.add("vd-grid-fibonacci"),this.applyFibFallback(t)):(t.classList.add("vd-grid-standard"),this.removeFibFallback(t)),t.setAttribute("data-layout-mode",n),t.setAttribute("aria-label","Grid layout: "+n+" mode"),document.querySelectorAll("[data-grid-toggle]").forEach(function(o){let a=o.getAttribute("data-grid-toggle");if(a&&t.matches(a)){let c=n==="fibonacci";c?o.classList.add("is-active"):o.classList.remove("is-active"),o.setAttribute("aria-pressed",c?"true":"false")}});let r=this.instances.get(t);r&&(r.mode=n);let i;try{i=new CustomEvent("grid:modechange",{bubbles:!0,detail:{container:t,mode:n}})}catch{i=document.createEvent("CustomEvent"),i.initCustomEvent("grid:modechange",!0,!0,{container:t,mode:n})}t.dispatchEvent(i)},toggle:function(t){if(typeof t=="string"&&(t=document.querySelector(t)),!t)return;let s=(t.getAttribute("data-layout-mode")||"standard")==="fibonacci"?"standard":"fibonacci";this.applyMode(t,s)},setMode:function(t,n){typeof t=="string"&&(t=document.querySelector(t)),t&&(n!=="fibonacci"&&n!=="standard"||this.applyMode(t,n))},getMode:function(t){return typeof t=="string"&&(t=document.querySelector(t)),t?t.getAttribute("data-layout-mode")||"standard":null},destroy:function(t){let n=this.instances.get(t);n&&(n.cleanup.forEach(function(s){s()}),t.classList.remove("vd-grid-standard","vd-grid-fibonacci"),t.removeAttribute("aria-label"),this.removeFibFallback(t),this.instances.delete(t))},destroyAll:function(t){let n=window.Vanduo&&typeof window.Vanduo._normalizeRoot=="function"?window.Vanduo._normalizeRoot(t):t||document;this.instances.forEach(function(r,i){(n===document||n===i||typeof n.contains=="function"&&n.contains(i))&&this.destroy(i)}.bind(this)),(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(n,'[data-grid-toggle][data-grid-initialized="true"]'):document.querySelectorAll('[data-grid-initialized="true"]')).forEach(function(r){r._gridCleanup&&(r._gridCleanup(),delete r._gridCleanup)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("gridLayout",e),window.VanduoGridLayout=e})();(function(){"use strict";let m={backdrop:null,container:null,img:null,closeBtn:null,caption:null,currentTrigger:null,scrollThreshold:50,initialScrollY:0,isOpen:!1,_cleanupFunctions:[],getTriggers:function(e){return window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,"[data-image-box]"):Array.from(document.querySelectorAll("[data-image-box]"))},init:function(e){this.createBackdrop(),this.bindTriggers(e)},createBackdrop:function(){if(this.backdrop||document.querySelector(".vd-image-box-backdrop")){this.backdrop||(this.backdrop=document.querySelector(".vd-image-box-backdrop"),this.container=this.backdrop.querySelector(".vd-image-box-container"),this.img=this.backdrop.querySelector(".vd-image-box-img"),this.closeBtn=this.backdrop.querySelector(".vd-image-box-close"),this.caption=this.backdrop.querySelector(".vd-image-box-caption"),this.bindBackdropEvents());return}this.backdrop=document.createElement("div"),this.backdrop.className="vd-image-box-backdrop",this.backdrop.setAttribute("role","dialog"),this.backdrop.setAttribute("aria-modal","true"),this.backdrop.setAttribute("aria-label","Image viewer"),this.backdrop.setAttribute("tabindex","-1"),this.container=document.createElement("div"),this.container.className="vd-image-box-container",this.img=document.createElement("img"),this.img.className="vd-image-box-img",this.img.alt="",this.closeBtn=document.createElement("button"),this.closeBtn.className="vd-image-box-close",this.closeBtn.setAttribute("aria-label","Close image viewer"),this.closeBtn.innerHTML="×",this.caption=document.createElement("div"),this.caption.className="vd-image-box-caption",this.container.appendChild(this.img),this.backdrop.appendChild(this.closeBtn),this.backdrop.appendChild(this.container),this.backdrop.appendChild(this.caption),document.body.appendChild(this.backdrop),this.bindBackdropEvents()},bindBackdropEvents:function(){let e=this,t=function(o){(o.target===e.backdrop||o.target===e.container)&&e.close()};this.backdrop.addEventListener("click",t),this._cleanupFunctions.push(()=>this.backdrop.removeEventListener("click",t));let n=function(){e.close()};this.img.addEventListener("click",n),this._cleanupFunctions.push(()=>this.img.removeEventListener("click",n));let s=function(){e.close()};this.closeBtn.addEventListener("click",s),this._cleanupFunctions.push(()=>this.closeBtn.removeEventListener("click",s));let r=function(o){o.key==="Escape"&&e.isOpen&&e.close()};document.addEventListener("keydown",r),this._cleanupFunctions.push(()=>document.removeEventListener("keydown",r));let i=function(){if(!e.isOpen)return;let o=window.scrollY;Math.abs(o-e.initialScrollY)>e.scrollThreshold&&e.close()};window.addEventListener("scroll",i,{passive:!0}),this._cleanupFunctions.push(()=>window.removeEventListener("scroll",i))},bindTriggers:function(e){let t=this;this.getTriggers(e).forEach(function(s){if(s.dataset.imageBoxInitialized)return;if(s.dataset.imageBoxInitialized="true",s.classList.add("vd-image-box-trigger"),s.tagName==="IMG"){s.complete&&s.naturalWidth===0&&s.classList.add("is-broken");let o=function(){s.classList.add("is-broken")};s.addEventListener("error",o);let a=function(){s.classList.remove("is-broken")};s.addEventListener("load",a),s._imageBoxErrorHandler=o,s._imageBoxLoadHandler=a}let r=function(o){o.preventDefault(),t.open(s)};if(s.addEventListener("click",r),s._imageBoxCleanup=()=>s.removeEventListener("click",r),s.tagName!=="BUTTON"&&s.tagName!=="A"){s.setAttribute("role","button"),s.setAttribute("tabindex","0"),s.setAttribute("aria-label","View enlarged image");let o=function(c){(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),t.open(s))};s.addEventListener("keydown",o);let a=s._imageBoxCleanup;s._imageBoxCleanup=()=>{a(),s.removeEventListener("keydown",o)}}let i=s._imageBoxCleanup;s._imageBoxCleanup=()=>{i(),s._imageBoxErrorHandler&&(s.removeEventListener("error",s._imageBoxErrorHandler),delete s._imageBoxErrorHandler),s._imageBoxLoadHandler&&(s.removeEventListener("load",s._imageBoxLoadHandler),delete s._imageBoxLoadHandler)}})},open:function(e){if(this.isOpen)return;this.currentTrigger=e,this.isOpen=!0,this.initialScrollY=window.scrollY;let t=e.dataset.imageBoxFullSrc||e.dataset.imageBoxSrc||e.src||e.href;if(!t){console.warn("[Vanduo ImageBox] No image source found for trigger:",e);return}let n=e.dataset.imageBoxCaption||e.alt||"";this.img.src=t,this.img.alt=e.alt||"",n?(this.caption.textContent=n,this.caption.style.display="block"):this.caption.style.display="none";let s=window.innerWidth-document.documentElement.clientWidth;document.body.style.setProperty("--vd-scrollbar-width",`${s}px`),document.body.classList.add("body-image-box-open"),this.backdrop.classList.add("is-visible"),this.backdrop.focus(),e.dispatchEvent(new CustomEvent("imageBox:open",{bubbles:!0,detail:{src:t}})),this.img.complete||(this.img.style.opacity="0",this._imgLoadHandler=()=>{this.img.style.opacity=""},this.img.addEventListener("load",this._imgLoadHandler,{once:!0}))},close:function(){this.isOpen&&(this.isOpen=!1,this.backdrop.classList.remove("is-visible"),document.body.classList.remove("body-image-box-open"),document.body.style.removeProperty("--vd-scrollbar-width"),this.currentTrigger&&(this.currentTrigger.focus(),this.currentTrigger.dispatchEvent(new CustomEvent("imageBox:close",{bubbles:!0})),this.currentTrigger=null),setTimeout(()=>{this.isOpen||(this._imgLoadHandler&&(this.img.removeEventListener("load",this._imgLoadHandler),this._imgLoadHandler=null),this.img.src="",this.img.alt="")},300))},reinit:function(e){this.bindTriggers(e)},destroy:function(e){if(e&&e!==document){this.getTriggers(e).forEach(s=>{s.classList.remove("vd-image-box-trigger"),s._imageBoxCleanup&&(s._imageBoxCleanup(),delete s._imageBoxCleanup),delete s.dataset.imageBoxInitialized});return}this.isOpen&&this.close(),this.backdrop&&this.backdrop.parentNode&&this.backdrop.parentNode.removeChild(this.backdrop),this._cleanupFunctions.forEach(n=>n()),this._cleanupFunctions=[],(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,"[data-image-box-initialized]"):document.querySelectorAll("[data-image-box-initialized]")).forEach(n=>{n.classList.remove("vd-image-box-trigger"),n._imageBoxCleanup&&(n._imageBoxCleanup(),delete n._imageBoxCleanup),delete n.dataset.imageBoxInitialized}),this.backdrop=null,this.container=null,this.img=null,this.closeBtn=null,this.caption=null,this.currentTrigger=null,this.isOpen=!1},destroyAll:function(e){this.destroy(e)}};typeof window.Vanduo<"u"&&window.Vanduo.register("imageBox",m),window.VanduoImageBox=m})();(function(){"use strict";let m={modals:new Map,openModals:[],zIndexCounter:1050,__vanduoScopedDestroyAll:!0,_triggerCleanups:[],_sharedEscHandler:null,getPortalState:function(e){return e._vdPortalState||(e._vdPortalState={originalParent:null,originalNextSibling:null,placeholder:null}),e._vdPortalState},portalToBody:function(e){if(!e||e.parentNode===document.body)return;let t=this.getPortalState(e);t.originalParent=e.parentNode,t.originalNextSibling=e.nextSibling,t.placeholder||(t.placeholder=document.createComment("vd-modal-placeholder")),t.originalParent.insertBefore(t.placeholder,e),document.body.appendChild(e),e.dataset.vdPortaled="true"},restoreFromPortal:function(e){if(!e)return;let t=this.getPortalState(e);if(!t.placeholder){delete e.dataset.vdPortaled;return}t.placeholder.parentNode?(t.placeholder.parentNode.insertBefore(e,t.placeholder),t.placeholder.parentNode.removeChild(t.placeholder)):t.originalParent&&t.originalParent.isConnected&&(t.originalNextSibling&&t.originalNextSibling.parentNode===t.originalParent?t.originalParent.insertBefore(e,t.originalNextSibling):t.originalParent.appendChild(e)),t.originalParent=null,t.originalNextSibling=null,t.placeholder=null,delete e.dataset.vdPortaled},init:function(e){window.Vanduo.queryAll(e,".vd-modal").forEach(s=>{this.modals.has(s)||this.initModal(s)}),(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,"[data-modal]"):document.querySelectorAll("[data-modal]")).forEach(s=>{if(s.dataset.modalTriggerInitialized)return;s.dataset.modalTriggerInitialized="true";let r=i=>{i.preventDefault();let o=s.dataset.modal,a=document.querySelector(o);a&&this.open(a)};s.addEventListener("click",r),s._modalTriggerCleanup=()=>s.removeEventListener("click",r)})},initModal:function(e){let t=this.createBackdrop(e),n=e.querySelectorAll('.vd-modal-close, [data-dismiss="modal"]'),s=e.querySelector(".vd-modal-dialog");if(!s)return;let r=[];e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-hidden","true"),e.id||(e.id="modal-"+Math.random().toString(36).substr(2,9));let i=e.querySelector(".vd-modal-title");i&&!i.id&&(i.id=e.id+"-title",e.setAttribute("aria-labelledby",i.id)),n.forEach(a=>{let c=()=>{this.close(e)};a.addEventListener("click",c),r.push(()=>a.removeEventListener("click",c))});let o=a=>{a.target===t&&e.dataset.backdrop!=="static"&&this.close(e)};t.addEventListener("click",o),r.push(()=>t.removeEventListener("click",o)),this._sharedEscHandler||(this._sharedEscHandler=a=>{if(a.key==="Escape"&&this.openModals.length>0){let c=this.openModals[this.openModals.length-1];c.dataset.keyboard!=="false"&&this.close(c)}},document.addEventListener("keydown",this._sharedEscHandler)),this.modals.set(e,{backdrop:t,dialog:s,trapHandler:null,cleanup:r})},createBackdrop:function(e){let t=e.querySelector(".vd-modal-backdrop");return t||(t=document.createElement("div"),t.className="vd-modal-backdrop",document.body.appendChild(t)),t},open:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t){console.warn("[Vanduo Modals] Modal element not found:",e);return}if(!this.modals.has(t)){console.warn("[Vanduo Modals] Modal not initialized:",t);return}let n=this.modals.get(t),{backdrop:s,dialog:r}=n;if(this.portalToBody(t),this.zIndexCounter+=10,t.style.zIndex=this.zIndexCounter,s.style.zIndex=this.zIndexCounter-1,this.openModals.push(t),s.classList.add("is-visible"),t.classList.add("is-open"),t.setAttribute("aria-hidden","false"),this.openModals.length===1){document.body.classList.add("body-modal-open");let o=window.innerWidth-document.documentElement.clientWidth;o>0&&(document.body.style.paddingRight=`${o}px`)}let i=this.trapFocus(t);n.trapHandler=i,setTimeout(()=>{let o=this.getFocusableElements(t)[0];o&&o.focus()},100),t.dispatchEvent(new CustomEvent("modal:open",{bubbles:!0}))},close:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t){console.warn("[Vanduo Modals] Modal element not found:",e);return}if(!this.modals.has(t)){console.warn("[Vanduo Modals] Modal not initialized:",t);return}let n=this.modals.get(t),{backdrop:s,trapHandler:r}=n;r&&(t.removeEventListener("keydown",r),n.trapHandler=null);let i=this.openModals.indexOf(t);if(i>-1&&this.openModals.splice(i,1),t.classList.remove("is-open"),t.setAttribute("aria-hidden","true"),this.openModals.length===0)s.classList.remove("is-visible"),document.body.classList.remove("body-modal-open"),document.body.style.paddingRight="",this.zIndexCounter=1050;else{let a=this.openModals[this.openModals.length-1];this.modals.get(a).backdrop.classList.add("is-visible")}let o=document.querySelector(`[data-modal="#${t.id}"]`);o&&o.focus(),t.dispatchEvent(new CustomEvent("modal:close",{bubbles:!0})),this.restoreFromPortal(t)},trapFocus:function(e){let t=this,n=function(s){if(s.key!=="Tab")return;let r=t.getFocusableElements(e),i=r[0],o=r[r.length-1];s.shiftKey?document.activeElement===i&&(s.preventDefault(),o.focus()):document.activeElement===o&&(s.preventDefault(),i.focus())};return e.addEventListener("keydown",n),n},getFocusableElements:function(e){return Array.from(e.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(n=>!n.hasAttribute("disabled")&&n.offsetWidth>0&&n.offsetHeight>0)},toggle:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&(t.classList.contains("is-open")?this.close(t):this.open(t))},destroy:function(e){let t=this.modals.get(e);if(t){if(e.classList.contains("is-open")){let n=this.openModals.indexOf(e);n>-1&&this.openModals.splice(n,1),t.backdrop.classList.remove("is-visible"),e.classList.remove("is-open"),e.setAttribute("aria-hidden","true"),this.openModals.length===0&&(document.body.classList.remove("body-modal-open"),document.body.style.paddingRight="",this.zIndexCounter=1050)}this.restoreFromPortal(e),t.cleanup&&t.cleanup.forEach(n=>n()),t.backdrop&&t.backdrop.parentNode&&t.backdrop.parentNode.removeChild(t.backdrop),this.modals.delete(e)}},destroyAll:function(e){let t=window.Vanduo&&typeof window.Vanduo._normalizeRoot=="function"?window.Vanduo._normalizeRoot(e):e||document;this.modals.forEach((s,r)=>{(t===document||t===r||typeof t.contains=="function"&&t.contains(r))&&this.destroy(r)}),(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(t,"[data-modal][data-modal-trigger-initialized]"):document.querySelectorAll("[data-modal][data-modal-trigger-initialized]")).forEach(s=>{s._modalTriggerCleanup&&(s._modalTriggerCleanup(),delete s._modalTriggerCleanup),delete s.dataset.modalTriggerInitialized}),t===document&&this._sharedEscHandler&&(document.removeEventListener("keydown",this._sharedEscHandler),this._sharedEscHandler=null)}};typeof window.Vanduo<"u"&&window.Vanduo.register("modals",m),window.VanduoModals=m})();(function(){"use strict";let m={instances:new Map,getBreakpoint:function(){let t=getComputedStyle(document.documentElement).getPropertyValue("--vd-breakpoint-lg").trim(),n=parseInt(t,10);return isNaN(n)?992:n},init:function(e){window.Vanduo.queryAll(e,".vd-navbar").forEach(n=>{this.instances.has(n)||this.initNavbar(n)})},initScrollWatcher:function(e){let t=e.classList.contains("vd-navbar-glass"),n=e.classList.contains("vd-navbar-transparent");if(!t&&!n)return null;let s=()=>{let i=parseInt(e.dataset.scrollThreshold,10);return isNaN(i)?e.offsetHeight||60:i},r=()=>{let i=window.scrollY>s();e.classList.toggle("vd-navbar-scrolled",i)};return r(),window.addEventListener("scroll",r,{passive:!0}),()=>window.removeEventListener("scroll",r)},initNavbar:function(e){let t=e.querySelector(".vd-navbar-toggle, .vd-navbar-burger"),n=e.querySelector(".vd-navbar-menu"),s=e.querySelector(".vd-navbar-overlay")||this.createOverlay(e),r=[],i=this.initScrollWatcher(e);if(i&&r.push(i),!t||!n){r.length&&this.instances.set(e,{toggle:null,menu:null,overlay:null,cleanup:r});return}let o=h=>{h.preventDefault(),h.stopPropagation(),this.toggleMenu(e,t,n,s)};if(t.addEventListener("click",o),r.push(()=>t.removeEventListener("click",o)),s){let h=()=>{this.closeMenu(e,t,n,s)};s.addEventListener("click",h),r.push(()=>s.removeEventListener("click",h))}let a=h=>{h.key==="Escape"&&n.classList.contains("is-open")&&this.closeMenu(e,t,n,s)};document.addEventListener("keydown",a),r.push(()=>document.removeEventListener("keydown",a));let c,l=()=>{clearTimeout(c),c=setTimeout(()=>{let h=this.getBreakpoint();window.innerWidth>=h&&n.classList.contains("is-open")&&this.closeMenu(e,t,n,s)},250)};window.addEventListener("resize",l),r.push(()=>{clearTimeout(c),window.removeEventListener("resize",l)});let f=h=>{n.classList.contains("is-open")&&!e.contains(h.target)&&!n.contains(h.target)&&this.closeMenu(e,t,n,s)};document.addEventListener("click",f),r.push(()=>document.removeEventListener("click",f)),n.querySelectorAll(".vd-navbar-dropdown > .vd-nav-link, .vd-navbar-dropdown > .nav-link").forEach(h=>{let u=p=>{let E=this.getBreakpoint();if(window.innerWidth<E){p.preventDefault();let _=h.parentElement.querySelector(".vd-navbar-dropdown-menu");_&&_.classList.toggle("is-open")}};h.addEventListener("click",u),r.push(()=>h.removeEventListener("click",u))}),this.instances.set(e,{toggle:t,menu:n,overlay:s,cleanup:r})},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),t.overlay&&t.overlay.parentNode&&t.overlay.parentNode.removeChild(t.overlay),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>{this.destroy(t)})},toggleMenu:function(e,t,n,s){n.classList.contains("is-open")?this.closeMenu(e,t,n,s):this.openMenu(e,t,n,s)},openMenu:function(e,t,n,s){n.classList.add("is-open"),t.classList.add("is-active"),s&&s.classList.add("is-active"),document.body.classList.add("body-navbar-open"),t.setAttribute("aria-expanded","true"),n.setAttribute("aria-hidden","false")},closeMenu:function(e,t,n,s){n.classList.remove("is-open"),t.classList.remove("is-active"),s&&s.classList.remove("is-active"),document.body.classList.remove("body-navbar-open"),n.querySelectorAll(".vd-navbar-dropdown-menu.is-open").forEach(i=>{i.classList.remove("is-open")}),t.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true")},createOverlay:function(e){let t=document.createElement("div");return t.className="vd-navbar-overlay",document.body.appendChild(t),t}};typeof window.Vanduo<"u"&&window.Vanduo.register("navbar",m),window.VanduoNavbar=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-pagination[data-pagination]").forEach(n=>{this.instances.has(n)||this.initPagination(n)})},initPagination:function(e){let t=parseInt(e.dataset.totalPages)||1,n=parseInt(e.dataset.currentPage)||1,s=parseInt(e.dataset.maxVisible)||7;this.render(e,{totalPages:t,currentPage:n,maxVisible:s});let r=i=>{let o=i.target.closest(".vd-pagination-link");if(!o||o.closest(".vd-pagination-item.disabled")||o.closest(".vd-pagination-item.active"))return;i.preventDefault();let a=o.closest(".vd-pagination-item"),c=a.dataset.page;c?this.goToPage(e,parseInt(c)):a.classList.contains("pagination-prev")?this.prevPage(e):a.classList.contains("pagination-next")&&this.nextPage(e)};e.addEventListener("click",r),this.instances.set(e,{cleanup:[()=>e.removeEventListener("click",r)]})},render:function(e,t){let{totalPages:n,currentPage:s,maxVisible:r}=t;if(n<=1){e.innerHTML="";return}let i="";i+=`<li class="vd-pagination-item vd-pagination-prev pagination-item pagination-prev ${s===1?"disabled":""}">`,i+='<a class="vd-pagination-link pagination-link" href="#" aria-label="Previous">Previous</a>',i+="</li>";let o=this.calculatePages(s,n,r),a=0;o.forEach(c=>{if(c==="ellipsis")i+='<li class="vd-pagination-item pagination-item"><span class="vd-pagination-ellipsis pagination-ellipsis">\u2026</span></li>';else{c!==a+1&&a>0&&(i+='<li class="vd-pagination-item pagination-item"><span class="vd-pagination-ellipsis pagination-ellipsis">\u2026</span></li>');let l=Number(c);i+=`<li class="vd-pagination-item pagination-item ${l===s?"active":""}" data-page="${l}">`,i+=`<a class="vd-pagination-link pagination-link" href="#" aria-label="Page ${l}">${l}</a>`,i+="</li>",a=c}}),i+=`<li class="vd-pagination-item vd-pagination-next pagination-item pagination-next ${s===n?"disabled":""}">`,i+='<a class="vd-pagination-link pagination-link" href="#" aria-label="Next">Next</a>',i+="</li>",e.innerHTML=i,e.dataset.currentPage=s},calculatePages:function(e,t,n){let s=[],r=Math.floor(n/2);if(t<=n)for(let i=1;i<=t;i++)s.push(i);else{s.push(1);let i=Math.max(2,e-r),o=Math.min(t-1,e+r);e<=r+1&&(o=Math.min(t-1,n-1)),e>=t-r&&(i=Math.max(2,t-n+2)),i>2&&s.push("ellipsis");for(let a=i;a<=o;a++)s.push(a);o<t-1&&s.push("ellipsis"),t>1&&s.push(t)}return s},goToPage:function(e,t){let n=parseInt(e.dataset.totalPages)||1,s=parseInt(e.dataset.maxVisible)||7;t<1||t>n||(this.render(e,{totalPages:n,currentPage:t,maxVisible:s}),e.dispatchEvent(new CustomEvent("pagination:change",{bubbles:!0,detail:{page:t,totalPages:n}})))},prevPage:function(e){let t=parseInt(e.dataset.currentPage)||1;t>1&&this.goToPage(e,t-1)},nextPage:function(e){let t=parseInt(e.dataset.currentPage)||1,n=parseInt(e.dataset.totalPages)||1;t<n&&this.goToPage(e,t+1)},update:function(e,t){let n=typeof e=="string"?document.querySelector(e):e;n&&(t.totalPages!==void 0&&(n.dataset.totalPages=t.totalPages),t.currentPage!==void 0&&(n.dataset.currentPage=t.currentPage),t.maxVisible!==void 0&&(n.dataset.maxVisible=t.maxVisible),this.render(n,{totalPages:parseInt(n.dataset.totalPages)||1,currentPage:parseInt(n.dataset.currentPage)||1,maxVisible:parseInt(n.dataset.maxVisible)||7}))},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>{this.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("pagination",m),window.VanduoPagination=m})();(function(){"use strict";let m={parallaxElements:new Map,ticking:!1,isMobile:window.innerWidth<768,reducedMotion:window.matchMedia("(prefers-reduced-motion: reduce)").matches,isInitialized:!1,_onScroll:null,_onResize:null,init:function(e){if(this.reducedMotion)return;if(window.Vanduo.queryAll(e,".vd-parallax").forEach(n=>{n.dataset.parallaxInitialized||this.initParallax(n)}),this.isInitialized){this.refresh();return}this.isInitialized=!0,this.handleScroll(),this._onScroll=()=>{this.handleScroll()},window.addEventListener("scroll",this._onScroll,{passive:!0}),this._onResize=()=>{this.isMobile=window.innerWidth<768,this.updateAll()},window.addEventListener("resize",this._onResize)},initParallax:function(e){e.dataset.parallaxInitialized="true";let t=e.classList.contains("parallax-disable-mobile");if(t&&this.isMobile)return;let n=e.querySelectorAll(".vd-parallax-layer, .vd-parallax-bg"),s=this.getSpeed(e),r=e.classList.contains("parallax-horizontal")?"horizontal":"vertical";this.parallaxElements.set(e,{layers:Array.from(n),speed:s,direction:r,disableMobile:t}),this.updateParallax(e)},getSpeed:function(e){return e.classList.contains("parallax-slow")?.5:e.classList.contains("parallax-fast")?1.5:1},handleScroll:function(){this.ticking||(window.requestAnimationFrame(()=>{this.updateAll(),this.ticking=!1}),this.ticking=!0)},updateAll:function(){this.parallaxElements.forEach((e,t)=>{e.disableMobile&&this.isMobile||this.updateParallax(t)})},updateParallax:function(e){let t=this.parallaxElements.get(e);if(!t)return;let n=e.getBoundingClientRect(),s=window.innerHeight,r=n.top,i=n.height,a=(Math.max(0,Math.min(1,(s-r)/(s+i)))-.5)*t.speed*100;t.layers.forEach((c,l)=>{let f=c.dataset.parallaxSpeed?parseFloat(c.dataset.parallaxSpeed):1,d=a*f;t.direction==="horizontal"?c.style.transform=`translateX(${d}px)`:c.style.transform=`translateY(${d}px)`})},destroy:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&this.parallaxElements.has(t)&&(this.parallaxElements.get(t).layers.forEach(s=>{s.style.transform=""}),this.parallaxElements.delete(t))},refresh:function(){this.updateAll()},destroyAll:function(){this.parallaxElements.forEach((e,t)=>{this.destroy(t)}),this.parallaxElements.clear(),this._onScroll&&(window.removeEventListener("scroll",this._onScroll),this._onScroll=null),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null),this.isInitialized=!1}};typeof window.Vanduo<"u"&&window.Vanduo.register("parallax",m),window.VanduoParallax=m})();(function(){"use strict";let m={getProgressBars:function(e){return window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,".vd-progress-bar[data-progress], .progress-bar[data-progress]"):Array.from(document.querySelectorAll(".vd-progress-bar[data-progress], .progress-bar[data-progress]"))},init:function(e){this.getProgressBars(e).forEach(n=>{n.dataset.progressInitialized||this.initProgressBar(n)})},initProgressBar:function(e){e.dataset.progressInitialized="true";let t=parseInt(e.dataset.progress)||0;this.setProgress(e,t,!1)},setProgress:function(e,t,n=!0){let s=typeof e=="string"?document.querySelector(e):e;if(!s)return;t=Math.max(0,Math.min(100,t)),n?s.style.transition="width var(--vd-transition-duration-slow) var(--vd-transition-ease)":(s.style.transition="none",setTimeout(()=>{s.style.transition=""},0)),s.style.width=t+"%",s.setAttribute("aria-valuenow",t),s.setAttribute("aria-valuemin",0),s.setAttribute("aria-valuemax",100);let r=s.querySelector(".vd-progress-text, .progress-text");r&&(r.textContent=t+"%"),s.dispatchEvent(new CustomEvent("progress:update",{bubbles:!0,detail:{value:t,max:100}})),t>=100&&s.dispatchEvent(new CustomEvent("progress:complete",{bubbles:!0,detail:{value:t,max:100}}))},animateProgress:function(e,t,n=1e3){let s=typeof e=="string"?document.querySelector(e):e;if(!s)return;let r=parseInt(s.style.width)||0,i=t-r,o=performance.now(),a=c=>{let l=c-o,f=Math.min(l/n,1),d=1-Math.pow(1-f,3),h=r+i*d;this.setProgress(s,h,!1),f<1&&requestAnimationFrame(a)};requestAnimationFrame(a)},show:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&(t.style.display="inline-block",t.setAttribute("aria-hidden","false"))},hide:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&(t.style.display="none",t.setAttribute("aria-hidden","true"))},toggle:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&(t.style.display==="none"||t.getAttribute("aria-hidden")==="true"?this.show(t):this.hide(t))},destroyAll:function(e){this.getProgressBars(e||document).filter(function(n){return n.dataset.progressInitialized==="true"}).forEach(n=>{delete n.dataset.progressInitialized})}};typeof window.Vanduo<"u"&&window.Vanduo.register("preloader",m),window.VanduoPreloader=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,"select.vd-custom-select-input, select[data-custom-select]").forEach(n=>{this.instances.has(n)||this.initSelect(n)})},initSelect:function(e){if(e.closest(".vd-custom-select-wrapper"))return;let t=[],n=document.createElement("div");n.className="custom-select-wrapper",e.parentNode.insertBefore(n,e),n.appendChild(e);let s=document.createElement("button");s.type="button",s.className="custom-select-button",s.setAttribute("aria-haspopup","listbox"),s.setAttribute("aria-expanded","false"),s.setAttribute("aria-labelledby",e.id||this.generateId(e));let r=document.createElement("div");if(r.className="custom-select-dropdown",r.setAttribute("role","listbox"),e.dataset.searchable==="true"){let l=document.createElement("div");l.className="custom-select-search";let f=document.createElement("input");f.type="text",f.className="input input-sm",f.placeholder="Search...",f.setAttribute("aria-label","Search options"),l.appendChild(f),r.appendChild(l);let d=u=>{this.filterOptions(r,u.target.value)},h=typeof debounce=="function"?debounce(d,150):d;f.addEventListener("input",h),t.push(()=>f.removeEventListener("input",h))}this.buildOptions(e,r,s),n.appendChild(s),n.appendChild(r),this.updateButtonText(e,s);let i=l=>{l.preventDefault(),l.stopPropagation(),this.toggleDropdown(s,r)};s.addEventListener("click",i),t.push(()=>s.removeEventListener("click",i));let o=l=>{!n.contains(l.target)&&r.classList.contains("is-open")&&this.closeDropdown(s,r)};document.addEventListener("click",o),t.push(()=>document.removeEventListener("click",o));let a=l=>{this.handleKeydown(l,e,s,r)};s.addEventListener("keydown",a),t.push(()=>s.removeEventListener("keydown",a));let c=()=>{this.updateButtonText(e,s),this.updateSelectedOptions(e,r)};e.addEventListener("change",c),t.push(()=>e.removeEventListener("change",c)),this.instances.set(e,{wrapper:n,button:s,dropdown:r,cleanup:t,typeaheadBuffer:"",typeaheadTimer:null})},buildOptions:function(e,t,n){let s=e.querySelectorAll("option"),r=document.createDocumentFragment();s.forEach((i,o)=>{if(i.parentElement.tagName==="OPTGROUP"){let c=i.parentElement;if(!t.querySelector(`[data-group="${c.label}"]`)){let l=document.createElement("div");l.className="custom-select-option-group",l.textContent=c.label,l.dataset.group=c.label,r.appendChild(l)}}if(i.value===""&&!i.textContent.trim())return;let a=document.createElement("div");a.className="custom-select-option",a.textContent=i.textContent,a.setAttribute("role","option"),a.setAttribute("data-value",i.value),a.setAttribute("data-index",o),i.selected&&(a.classList.add("is-selected"),a.setAttribute("aria-selected","true")),i.disabled&&(a.classList.add("is-disabled"),a.setAttribute("aria-disabled","true")),a.addEventListener("click",c=>{i.disabled||this.selectOption(e,i,a,n,t)}),r.appendChild(a)}),t.appendChild(r)},selectOption:function(e,t,n,s,r){e.multiple?(t.selected=!t.selected,n.classList.toggle("is-selected"),n.setAttribute("aria-selected",t.selected)):(e.value=t.value,e.dispatchEvent(new Event("change",{bubbles:!0})),this.closeDropdown(s,r)),this.updateButtonText(e,s)},updateButtonText:function(e,t){if(e.multiple){let n=Array.from(e.selectedOptions);n.length===0?t.textContent=e.dataset.placeholder||"Select options...":n.length===1?t.textContent=n[0].textContent:t.textContent=`${n.length} selected`}else{let n=e.options[e.selectedIndex];t.textContent=n?n.textContent:e.dataset.placeholder||"Select..."}},updateSelectedOptions:function(e,t){let n=t.querySelectorAll(".custom-select-option"),s=Array.from(e.selectedOptions).map(r=>r.value);n.forEach(r=>{let i=r.dataset.value;s.includes(i)?(r.classList.add("is-selected"),r.setAttribute("aria-selected","true")):(r.classList.remove("is-selected"),r.setAttribute("aria-selected","false"))})},toggleDropdown:function(e,t){t.classList.contains("is-open")?this.closeDropdown(e,t):this.openDropdown(e,t)},openDropdown:function(e,t){t.classList.add("is-open"),e.setAttribute("aria-expanded","true");let n=t.querySelector(".custom-select-option:not(.is-disabled)");n&&n.focus()},closeDropdown:function(e,t){t.classList.remove("is-open"),e.setAttribute("aria-expanded","false")},handleKeydown:function(e,t,n,s){let r=s.classList.contains("is-open"),i=Array.from(s.querySelectorAll(".custom-select-option:not(.is-disabled)")),o=i.findIndex(a=>a===document.activeElement);switch(e.key){case"Enter":case" ":if(e.preventDefault(),r&&o>=0){let a=i[o],c=t.options[parseInt(a.dataset.index)];this.selectOption(t,c,a,n,s)}else this.openDropdown(n,s);break;case"Escape":r&&(e.preventDefault(),this.closeDropdown(n,s),n.focus());break;case"ArrowDown":if(e.preventDefault(),!r)this.openDropdown(n,s);else{let a=o<i.length-1?o+1:0;i[a].focus()}break;case"ArrowUp":if(e.preventDefault(),r){let a=o>0?o-1:i.length-1;i[a].focus()}break;case"Home":r&&(e.preventDefault(),i[0].focus());break;case"End":r&&(e.preventDefault(),i[i.length-1].focus());break;default:if(r&&e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey){let a=this.instances.get(t);if(!a)break;clearTimeout(a.typeaheadTimer),a.typeaheadBuffer+=e.key.toLowerCase();let c=i.find(l=>l.textContent.trim().toLowerCase().startsWith(a.typeaheadBuffer));c&&c.focus(),a.typeaheadTimer=setTimeout(()=>{a.typeaheadBuffer=""},500)}break}},filterOptions:function(e,t){let n=e.querySelectorAll(".vd-custom-select-option"),s=t.toLowerCase();n.forEach(r=>{r.textContent.toLowerCase().includes(s)?r.style.display="block":r.style.display="none"})},generateId:function(e){if(e.id)return e.id;let t="select-"+Math.random().toString(36).substr(2,9);return e.id=t,t},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),t.wrapper&&t.wrapper.parentNode&&(t.wrapper.parentNode.insertBefore(e,t.wrapper),t.wrapper.parentNode.removeChild(t.wrapper)),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>{this.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("select",m)})();(function(){"use strict";let m={sidenavs:new Map,breakpoint:992,restoreDelayMs:450,__vanduoScopedDestroyAll:!0,_globalCleanups:[],_resizeCleanup:null,isFixedVariant:function(e){return e.classList.contains("vd-sidenav-fixed")||e.classList.contains("sidenav-fixed")},isPushVariant:function(e){return e.classList.contains("vd-sidenav-push")||e.classList.contains("sidenav-push")},isRightVariant:function(e){return e.classList.contains("vd-sidenav-right")||e.classList.contains("sidenav-right")},getPortalState:function(e){return e._vdPortalState||(e._vdPortalState={originalParent:null,originalNextSibling:null,placeholder:null,restoreTimer:null,restoreHandler:null}),e._vdPortalState},cancelScheduledRestore:function(e){let t=this.getPortalState(e);t.restoreHandler&&(e.removeEventListener("transitionend",t.restoreHandler),t.restoreHandler=null),t.restoreTimer&&(window.clearTimeout(t.restoreTimer),t.restoreTimer=null)},portalToBody:function(e){if(!e)return;if(e.parentNode===document.body){this.cancelScheduledRestore(e);return}let t=this.getPortalState(e);this.cancelScheduledRestore(e),t.originalParent=e.parentNode,t.originalNextSibling=e.nextSibling,t.placeholder||(t.placeholder=document.createComment("vd-sidenav-placeholder")),t.originalParent.insertBefore(t.placeholder,e),document.body.appendChild(e),e.dataset.vdPortaled="true"},restoreFromPortal:function(e){if(!e)return;let t=this.getPortalState(e);if(this.cancelScheduledRestore(e),!t.placeholder){delete e.dataset.vdPortaled;return}t.placeholder.parentNode?(t.placeholder.parentNode.insertBefore(e,t.placeholder),t.placeholder.parentNode.removeChild(t.placeholder)):t.originalParent&&t.originalParent.isConnected&&(t.originalNextSibling&&t.originalNextSibling.parentNode===t.originalParent?t.originalParent.insertBefore(e,t.originalNextSibling):t.originalParent.appendChild(e)),t.originalParent=null,t.originalNextSibling=null,t.placeholder=null,delete e.dataset.vdPortaled},scheduleRestoreFromPortal:function(e){if(!e||e.parentNode!==document.body)return;let t=this.getPortalState(e);this.cancelScheduledRestore(e);let n=()=>{this.restoreFromPortal(e)},s=r=>{r.target!==e||r.propertyName!=="transform"||n()};t.restoreHandler=s,e.addEventListener("transitionend",s),t.restoreTimer=window.setTimeout(()=>{n()},this.restoreDelayMs)},init:function(e){if(window.Vanduo.queryAll(e,".vd-sidenav, .vd-offcanvas").forEach(s=>{this.sidenavs.has(s)||this.initSidenav(s)}),(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,"[data-sidenav-toggle]"):document.querySelectorAll("[data-sidenav-toggle]")).forEach(s=>{if(s.dataset.sidenavToggleInitialized)return;s.dataset.sidenavToggleInitialized="true";let r=i=>{i.preventDefault();let o=s.dataset.sidenavToggle,a=document.querySelector(o);a&&this.toggle(a)};s.addEventListener("click",r),s._sidenavToggleCleanup=()=>s.removeEventListener("click",r)}),this.handleResize(),!this._resizeCleanup){let s=()=>{this.handleResize()};window.addEventListener("resize",s),this._resizeCleanup=()=>window.removeEventListener("resize",s)}},initSidenav:function(e){let t=e.getAttribute("data-vd-position");if(t){let a=e.classList.contains("vd-offcanvas")?"vd-offcanvas":"vd-sidenav";e.classList.add(a+"-"+t)}let n=this.createOverlay(e),s=e.querySelector(".vd-sidenav-close, .vd-offcanvas-close"),r=[];if(e.setAttribute("role","navigation"),e.setAttribute("aria-hidden","true"),s){let a=()=>{this.close(e)};s.addEventListener("click",a),r.push(()=>s.removeEventListener("click",a))}let i=()=>{e.dataset.backdrop!=="static"&&this.close(e)};n.addEventListener("click",i),r.push(()=>n.removeEventListener("click",i));let o=a=>{a.key==="Escape"&&e.classList.contains("is-open")&&e.dataset.keyboard!=="false"&&this.close(e)};document.addEventListener("keydown",o),r.push(()=>document.removeEventListener("keydown",o)),this.sidenavs.set(e,{overlay:n,cleanup:r})},createOverlay:function(e){let t=e.querySelector(".vd-sidenav-overlay");return t||(t=document.createElement("div"),t.className="vd-sidenav-overlay",document.body.appendChild(t)),t},open:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t||!this.sidenavs.has(t))return;let{overlay:n}=this.sidenavs.get(t);this.portalToBody(t),this.isFixedVariant(t)||n.classList.add("is-visible"),t.classList.add("is-open"),t.setAttribute("aria-hidden","false"),document.body.classList.add("body-sidenav-open"),this.isPushVariant(t)&&this.handlePushVariant(t,!0),t.dispatchEvent(new CustomEvent("sidenav:open",{bubbles:!0}))},close:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t||!this.sidenavs.has(t))return;let{overlay:n}=this.sidenavs.get(t);n.classList.remove("is-visible"),t.classList.remove("is-open"),t.setAttribute("aria-hidden","true"),document.body.classList.remove("body-sidenav-open"),this.isPushVariant(t)&&this.handlePushVariant(t,!1),t.dispatchEvent(new CustomEvent("sidenav:close",{bubbles:!0})),this.scheduleRestoreFromPortal(t)},toggle:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&(t.classList.contains("is-open")?this.close(t):this.open(t))},handlePushVariant:function(e,t){let n=document.querySelector('main, .main-content, .content, [role="main"]')||document.body;t?window.innerWidth>=this.breakpoint&&(this.isRightVariant(e)?n.style.marginRight=e.offsetWidth+"px":n.style.marginLeft=e.offsetWidth+"px"):(n.style.marginLeft="",n.style.marginRight="")},handleResize:function(){this.sidenavs.forEach(({overlay:e},t)=>{window.innerWidth>=this.breakpoint?this.isFixedVariant(t)&&!t.classList.contains("is-open")&&(t.classList.add("is-open"),t.setAttribute("aria-hidden","false"),e.classList.remove("is-visible")):this.isFixedVariant(t)&&t.classList.contains("is-open")&&this.close(t)})},destroy:function(e){let t=this.sidenavs.get(e);t&&(e.classList.contains("is-open")&&(t.overlay.classList.remove("is-visible"),e.classList.remove("is-open"),e.setAttribute("aria-hidden","true"),document.body.classList.remove("body-sidenav-open")),this.restoreFromPortal(e),t.cleanup.forEach(n=>n()),t.overlay&&t.overlay.parentNode&&t.overlay.parentNode.removeChild(t.overlay),this.sidenavs.delete(e))},destroyAll:function(e){let t=window.Vanduo&&typeof window.Vanduo._normalizeRoot=="function"?window.Vanduo._normalizeRoot(e):e||document;this.sidenavs.forEach((s,r)=>{(t===document||t===r||typeof t.contains=="function"&&t.contains(r))&&this.destroy(r)}),(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(t,"[data-sidenav-toggle][data-sidenav-toggle-initialized]"):document.querySelectorAll("[data-sidenav-toggle][data-sidenav-toggle-initialized]")).forEach(s=>{s._sidenavToggleCleanup&&(s._sidenavToggleCleanup(),delete s._sidenavToggleCleanup),delete s.dataset.sidenavToggleInitialized}),t===document&&(this._resizeCleanup&&(this._resizeCleanup(),this._resizeCleanup=null),this._globalCleanups.forEach(s=>s()),this._globalCleanups=[])}};typeof window.Vanduo<"u"&&window.Vanduo.register("sidenav",m),window.VanduoSidenav=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-tabs, [data-tabs]").forEach(n=>{this.instances.has(n)||this.initTabs(n)})},initTabs:function(e){let t=e.querySelector('.vd-tab-list, [role="tablist"]'),n=e.querySelectorAll(".vd-tab-link, [data-tab]"),s=e.querySelectorAll(".vd-tab-pane, [data-tab-pane]");if(!t||n.length===0)return;let r=[];t.setAttribute("role","tablist"),n.forEach((o,a)=>{let c=this.getTabId(o,a),l=this.findPane(e,c,s);o.setAttribute("role","tab"),o.setAttribute("aria-selected",o.classList.contains("is-active")?"true":"false"),o.setAttribute("tabindex",o.classList.contains("is-active")?"0":"-1"),o.id||(o.id=`tab-btn-${c}`),l&&(l.setAttribute("role","tabpanel"),l.setAttribute("aria-labelledby",o.id),l.id||(l.id=`tab-pane-${c}`),o.setAttribute("aria-controls",l.id));let f=h=>{h.preventDefault(),!o.classList.contains("disabled")&&!o.disabled&&this.activateTab(e,o,n,s)};o.addEventListener("click",f),r.push(()=>o.removeEventListener("click",f));let d=h=>{this.handleKeydown(h,e,o,n,s)};o.addEventListener("keydown",d),r.push(()=>o.removeEventListener("keydown",d))}),!e.querySelector(".vd-tab-link.is-active, [data-tab].is-active")&&n.length>0&&this.activateTab(e,n[0],n,s),this.instances.set(e,{cleanup:r})},getTabId:function(e,t){return e.dataset.tabTarget||e.dataset.tab||e.getAttribute("href")?.replace("#","")||(typeof t=="number"?`tab-${t}`:e.id)},findPane:function(e,t,n){let s=e.querySelector(`[data-tab-pane="${t}"]`);return s||(s=e.querySelector(`#${t}`)),s||e.querySelectorAll(".vd-tab-link, [data-tab]").forEach((i,o)=>{this.getTabId(i,o)===t&&n[o]&&(s=n[o])}),s},activateTab:function(e,t,n,s){let r=Array.from(n).indexOf(t),i=this.getTabId(t,r);n.forEach(c=>{c.classList.remove("is-active"),c.setAttribute("aria-selected","false"),c.setAttribute("tabindex","-1"),c.parentElement&&c.parentElement.classList.contains("tab-item")&&c.parentElement.classList.remove("is-active")}),s.forEach(c=>{c.classList.remove("is-active")}),t.classList.add("is-active"),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0"),t.parentElement&&t.parentElement.classList.contains("tab-item")&&t.parentElement.classList.add("is-active");let o=this.findPane(e,i,s);o&&o.classList.add("is-active");let a=new CustomEvent("tab:change",{bubbles:!0,detail:{tab:t,pane:o,tabId:i}});e.dispatchEvent(a)},handleKeydown:function(e,t,n,s,r){let i=t.classList.contains("vd-tabs-vertical")||t.classList.contains("tabs-vertical"),o=Array.from(s).filter(l=>!l.classList.contains("disabled")&&!l.disabled),a=o.indexOf(n),c=a;switch(e.key){case"ArrowLeft":i||(e.preventDefault(),c=a>0?a-1:o.length-1);break;case"ArrowRight":i||(e.preventDefault(),c=a<o.length-1?a+1:0);break;case"ArrowUp":i&&(e.preventDefault(),c=a>0?a-1:o.length-1);break;case"ArrowDown":i&&(e.preventDefault(),c=a<o.length-1?a+1:0);break;case"Home":e.preventDefault(),c=0;break;case"End":e.preventDefault(),c=o.length-1;break;case"Enter":case" ":e.preventDefault(),this.activateTab(t,n,s,r);return;default:return}c!==a&&(o[c].focus(),this.activateTab(t,o[c],s,r))},show:function(e){let t;if(typeof e=="string"?t=document.querySelector(`[data-tab-target="${e}"], [data-tab="${e}"], [href="#${e}"]`):t=e,!t)return;let n=t.closest(".vd-tabs, [data-tabs]");if(!n)return;let s=n.querySelectorAll(".vd-tab-link, [data-tab]"),r=n.querySelectorAll(".vd-tab-pane, [data-tab-pane]");this.activateTab(n,t,s,r)},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>{this.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("tabs",m)})();(function(){"use strict";let m={STORAGE_KEYS:{PRIMARY:"vanduo-primary-color",NEUTRAL:"vanduo-neutral-color",RADIUS:"vanduo-radius",FONT:"vanduo-font-preference",THEME:"vanduo-theme-preference"},DEFAULTS:{PRIMARY_LIGHT:"black",PRIMARY_DARK:"amber",NEUTRAL:"charcoal",RADIUS:"0.5",FONT:"ubuntu",THEME:"system"},PRIMARY_COLORS:{black:{name:"Black",color:"#000000"},red:{name:"Red",color:"#fa5252"},orange:{name:"Orange",color:"#fd7e14"},amber:{name:"Amber",color:"#f59f00"},yellow:{name:"Yellow",color:"#fcc419"},lime:{name:"Lime",color:"#82c91e"},green:{name:"Green",color:"#40c057"},emerald:{name:"Emerald",color:"#20c997"},teal:{name:"Teal",color:"#12b886"},cyan:{name:"Cyan",color:"#22b8cf"},sky:{name:"Sky",color:"#3bc9db"},blue:{name:"Blue",color:"#228be6"},indigo:{name:"Indigo",color:"#4c6ef5"},violet:{name:"Violet",color:"#7950f2"},purple:{name:"Purple",color:"#be4bdb"},fuchsia:{name:"Fuchsia",color:"#f06595"},pink:{name:"Pink",color:"#e64980"},rose:{name:"Rose",color:"#ff8787"}},NEUTRAL_COLORS:{charcoal:{name:"Charcoal",color:"#0d1117"},slate:{name:"Slate",color:"#64748b"},gray:{name:"Gray",color:"#6b7280"},zinc:{name:"Zinc",color:"#71717a"},neutral:{name:"Neutral",color:"#737373"},stone:{name:"Stone",color:"#78716c"}},RADIUS_OPTIONS:["0","0.125","0.25","0.375","0.5"],FONT_OPTIONS:{"jetbrains-mono":{name:"JetBrains Mono",family:"'JetBrains Mono', monospace"},system:{name:"System Default",family:null},ubuntu:{name:"Ubuntu",family:"'Ubuntu', sans-serif"},lato:{name:"Lato",family:"'Lato', sans-serif"},"open-sans":{name:"Open Sans",family:"'Open Sans', sans-serif"}},THEME_MODES:["system","dark","light"],state:{primary:null,neutral:null,radius:null,font:null,theme:null,isOpen:!1},isInitialized:!1,_cleanup:[],_ownsDynamicPanel:!1,elements:{customizer:null,trigger:null,activeTrigger:null,triggers:[],panel:null,overlay:null},isRoot:function(e){return!!e&&(e===document||e.nodeType===1||e.nodeType===9||e.nodeType===11)},normalizeRoot:function(e){return this.isRoot(e)?e:document},queryAll:function(e,t){let n=this.normalizeRoot(e);if(typeof window.VanduoLifecycle<"u"&&typeof window.VanduoLifecycle.queryAll=="function")return window.VanduoLifecycle.queryAll(n,t);let s=[];if(n instanceof Element&&typeof n.matches=="function"&&n.matches(t)&&s.push(n),typeof n.querySelectorAll=="function"){let r=n.querySelectorAll(t);for(let i=0;i<r.length;i++)s.push(r[i])}return s},queryOne:function(e,t){let n=this.queryAll(e,t);return n.length?n[0]:null},getTriggers:function(e){return this.queryAll(e,"[data-theme-customizer-trigger]")},pruneTriggers:function(){this.elements.triggers=this.elements.triggers.filter(function(e){return e&&e.isConnected}),this.elements.trigger&&!this.elements.trigger.isConnected&&(this.elements.trigger=null),this.elements.activeTrigger&&!this.elements.activeTrigger.isConnected&&(this.elements.activeTrigger=null)},init:function(e){let t=this.normalizeRoot(e);if(this.isInitialized){this.bindExistingElements(t),this.bindTriggerEvents(t),this.bindPanelEvents(),this.updateUI();return}this.isInitialized=!0,this._cleanup=[],this.loadPreferences(),this.applyAllPreferences(),this.bindExistingElements(t),this.bindEvents(t)},addListener:function(e,t,n,s){e&&(e.addEventListener(t,n,s),this._cleanup.push(()=>e.removeEventListener(t,n,s)))},getDefaultPrimary:function(e){return e==="system"?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?this.DEFAULTS.PRIMARY_DARK:this.DEFAULTS.PRIMARY_LIGHT:e==="dark"?this.DEFAULTS.PRIMARY_DARK:this.DEFAULTS.PRIMARY_LIGHT},loadPreferences:function(){this.state.theme=this.getStorageValue(this.STORAGE_KEYS.THEME,this.DEFAULTS.THEME),this.state.primary=this.getStorageValue(this.STORAGE_KEYS.PRIMARY,this.getDefaultPrimary(this.state.theme)),this._normalizeDefaultPrimaryIfStaleWithStoredTheme(),this.state.neutral=this.getStorageValue(this.STORAGE_KEYS.NEUTRAL,this.DEFAULTS.NEUTRAL),this.state.radius=this.getStorageValue(this.STORAGE_KEYS.RADIUS,this.DEFAULTS.RADIUS),this.state.font=this.getStorageValue(this.STORAGE_KEYS.FONT,this.DEFAULTS.FONT)},savePreference:function(e,t){this.setStorageValue(e,t)},applyAllPreferences:function(){this.applyPrimary(this.state.primary),this.applyNeutral(this.state.neutral),this.applyRadius(this.state.radius),this.applyFont(this.state.font),this.applyTheme(this.state.theme)},applyPrimary:function(e){this.PRIMARY_COLORS[e]||(e=this.getDefaultPrimary(this.state.theme)),this.state.primary=e,document.documentElement.setAttribute("data-primary",e),this.savePreference(this.STORAGE_KEYS.PRIMARY,e),this.dispatchEvent("primary-change",{color:e})},applyNeutral:function(e){this.NEUTRAL_COLORS[e]||(e=this.DEFAULTS.NEUTRAL),this.state.neutral=e,document.documentElement.setAttribute("data-neutral",e),this.savePreference(this.STORAGE_KEYS.NEUTRAL,e),this.dispatchEvent("neutral-change",{neutral:e})},applyRadius:function(e){this.RADIUS_OPTIONS.includes(e)||(e=this.DEFAULTS.RADIUS),this.state.radius=e,document.documentElement.setAttribute("data-radius",e),document.documentElement.style.setProperty("--vd-radius-scale",e),this.savePreference(this.STORAGE_KEYS.RADIUS,e),this.dispatchEvent("radius-change",{radius:e})},applyFont:function(e){this.FONT_OPTIONS[e]||(e=this.DEFAULTS.FONT),this.state.font=e,e==="system"?document.documentElement.removeAttribute("data-font"):document.documentElement.setAttribute("data-font",e),this.savePreference(this.STORAGE_KEYS.FONT,e),window.FontSwitcher&&window.FontSwitcher.setPreference&&(window.FontSwitcher.state.preference=e,window.FontSwitcher.applyFont()),this.dispatchEvent("font-change",{font:e})},applyTheme:function(e){if(this.THEME_MODES.includes(e)||(e=this.DEFAULTS.THEME),this._isApplying=!0,this.isUsingDefaultPrimary()){let t=this.getDefaultPrimary(e);this.state.primary!==t&&this.applyPrimary(t)}if(this.state.theme=e,e==="system"?document.documentElement.removeAttribute("data-theme"):document.documentElement.setAttribute("data-theme",e),this.savePreference(this.STORAGE_KEYS.THEME,e),window.Vanduo&&window.Vanduo.components.themeSwitcher){let t=window.Vanduo.components.themeSwitcher;t.state&&t.state.preference!==e&&(t.state.preference=e,typeof t.setStorageValue=="function"&&t.setStorageValue(t.STORAGE_KEY,e),typeof t.updateUI=="function"&&t.updateUI())}this._isApplying=!1,this.dispatchEvent("mode-change",{mode:e})},dispatchEvent:function(e,t){let n=new CustomEvent("theme:"+e,{bubbles:!0,detail:t});document.dispatchEvent(n);let s=new CustomEvent("theme:change",{bubbles:!0,detail:{type:e,value:t[Object.keys(t)[0]],state:{...this.state}}});document.dispatchEvent(s)},bindExistingElements:function(e){let t=this.normalizeRoot(e);this.pruneTriggers();let n=this.getTriggers(t);n.forEach(r=>{this.elements.triggers.includes(r)||this.elements.triggers.push(r)}),!this.elements.trigger&&this.elements.triggers.length&&(this.elements.trigger=this.elements.triggers[0]);let s=this.queryOne(t,".vd-theme-customizer")||(this.elements.customizer&&typeof this.elements.customizer.contains=="function"?this.elements.customizer:null)||document.querySelector(".vd-theme-customizer");s instanceof Element?(this.elements.customizer=s,this.elements.trigger=this.elements.customizer.querySelector(".vd-theme-customizer-trigger")||this.elements.trigger,this.elements.panel=this.elements.customizer.querySelector(".vd-theme-customizer-panel"),this.elements.overlay=this.elements.customizer.querySelector(".vd-theme-customizer-overlay")):n.length&&!this.elements.panel&&this.createDynamicPanel(),this.updateUI()},createDynamicPanel:function(){if(!this.elements.triggers.length||this.elements.panel&&this.elements.panel.isConnected)return;this.elements.trigger=this.elements.triggers[0];let e=document.createElement("div");e.className="vd-theme-customizer-overlay";let t=document.createElement("div");t.className="vd-theme-customizer-panel",t.innerHTML=this.getPanelHTML(),document.body.appendChild(e),document.body.appendChild(t),this.elements.panel=t,this.elements.overlay=e,this._ownsDynamicPanel=!0,this.elements.customizer={contains:n=>t.contains(n)||this.elements.triggers.some(s=>s.contains(n))},this.positionPanel(),this.bindPanelEvents(),this.addListener(window,"resize",()=>this.positionPanel())},positionPanel:function(){if(!this.elements.panel||!this.elements.trigger)return;let e=this.elements.activeTrigger||this.elements.trigger;if(window.innerWidth<768)this.elements.panel.style.top="",this.elements.panel.style.right="",this.elements.panel.style.left="",this.elements.panel.style.height="",this.elements.panel.style.maxHeight="";else{let n=e.getBoundingClientRect(),s=320,r=n.bottom+8,i=window.innerWidth,o=i-n.right;i-o-s<8&&(o=i-s-8),this.elements.panel.style.top=r+"px",this.elements.panel.style.right=o+"px",this.elements.panel.style.left="",this.elements.panel.style.height="auto",this.elements.panel.style.maxHeight="calc(100vh - "+r+"px)"}},bindPanelEvents:function(){if(!this.elements.panel||this.elements.panel.getAttribute("data-customizer-initialized")==="true")return;this.elements.panel.setAttribute("data-customizer-initialized","true"),this.elements.panel.querySelectorAll("[data-color]").forEach(s=>{this.addListener(s,"click",()=>{this.applyPrimary(s.dataset.color),this.updateUI()})}),this.elements.panel.querySelectorAll("[data-neutral]").forEach(s=>{this.addListener(s,"click",()=>{this.applyNeutral(s.dataset.neutral),this.updateUI()})}),this.elements.panel.querySelectorAll("[data-radius]").forEach(s=>{this.addListener(s,"click",()=>{this.applyRadius(s.dataset.radius),this.updateUI()})});let e=this.elements.panel.querySelector("[data-customizer-font]");e&&this.addListener(e,"change",s=>{this.applyFont(s.target.value),this.updateUI()});let t=this.elements.panel.querySelector(".customizer-reset");t&&this.addListener(t,"click",()=>{this.reset()});let n=this.elements.panel.querySelector(".customizer-mobile-close");n&&this.addListener(n,"click",()=>{this.close()}),this.elements.overlay&&this.addListener(this.elements.overlay,"click",()=>{this.close()})},getPanelHTML:function(){let e=typeof escapeHtml=="function"?escapeHtml:function(o){let a=document.createElement("div");return a.textContent=String(o??""),a.innerHTML},t=function(o){let a=String(o??"").trim();return/^(#[0-9a-fA-F]{3,8}|rgb[a]?\([^)]{1,60}\)|hsl[a]?\([^)]{1,60}\)|var\(--[a-zA-Z0-9_-]{1,40}\))$/.test(a)?a:"#000000"},n="";for(let[o,a]of Object.entries(this.PRIMARY_COLORS))n+=`<button class="tc-color-swatch${o===this.state.primary?" is-active":""}" data-color="${e(o)}" style="--vd-swatch-color: ${t(a.color)}" title="${e(a.name)}"></button>`;let s="";for(let[o,a]of Object.entries(this.NEUTRAL_COLORS))s+=`<button class="tc-neutral-swatch${o===this.state.neutral?" is-active":""}" data-neutral="${e(o)}" style="--vd-swatch-color: ${t(a.color)}" title="${e(a.name)}"><span>${e(a.name)}</span></button>`;let r="";this.RADIUS_OPTIONS.forEach(o=>{r+=`<button class="tc-radius-btn${o===this.state.radius?" is-active":""}" data-radius="${e(o)}">${e(o)}</button>`});let i="";for(let[o,a]of Object.entries(this.FONT_OPTIONS))i+=`<option value="${e(o)}"${o===this.state.font?" selected":""}>${e(a.name)}</option>`;return`
|
|
1
|
+
/*! Vanduo v1.4.4 | Built: 2026-06-07T19:14:20.877Z | git:781df0d | production */
|
|
2
|
+
var ue=Object.defineProperty;var ve=Object.getOwnPropertyDescriptor;var ye=Object.getOwnPropertyNames;var be=Object.prototype.hasOwnProperty;var we=(m,e)=>{for(var t in e)ue(m,t,{get:e[t],enumerable:!0})},Ee=(m,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ye(e))!be.call(m,s)&&s!==t&&ue(m,s,{get:()=>e[s],enumerable:!(n=ve(e,s))||n.enumerable});return m};var Le=m=>Ee(ue({},"__esModule",{value:!0}),m);var Se={};we(Se,{Vanduo:()=>fe,default:()=>Ae});module.exports=Le(Se);(function(){"use strict";function m(s){return s?Array.isArray(s)?s.filter(function(i){return typeof i=="function"}):typeof s=="function"?[s]:[]:[]}function e(s){return typeof s=="function"?{onDestroy:[s]}:s||{}}function t(s,i){try{i()}catch(o){console.warn("[Vanduo Lifecycle] "+s+" error:",o)}}let n={instances:new Map,isRoot:function(s){return!!s&&(s===document||s.nodeType===1||s.nodeType===9||s.nodeType===11)},normalizeRoot:function(s){return this.isRoot(s)?s:document},isInRoot:function(s,i){let o=this.normalizeRoot(s);return i instanceof Element?o===document?document.documentElement?document.documentElement.contains(i):document.contains(i):o===i?!0:typeof o.contains=="function"&&o.contains(i):!1},queryAll:function(s,i){let o=this.normalizeRoot(s),a=[];if(o instanceof Element&&typeof o.matches=="function"&&o.matches(i)&&a.push(o),typeof o.querySelectorAll=="function"){let r=o.querySelectorAll(i);for(let c=0;c<r.length;c++)a.push(r[c])}return a},queryOne:function(s,i){let o=this.queryAll(s,i);return o.length?o[0]:null},runInRoot:function(s,i){let o=this.normalizeRoot(s);return i(o)},register:function(s,i,o,a){if(!(s instanceof Element)||!i)return;let r=e(a),c=m(o),l=m(r.onDestroy),d=this.instances.get(s)||new Map,u=d.get(i);if(u){u.cleanup=u.cleanup.concat(c),u.onDestroy=u.onDestroy.concat(l);return}d.set(i,{component:i,cleanup:c,onDestroy:l,registeredAt:Date.now()}),this.instances.set(s,d)},unregister:function(s,i){let o=this.instances.get(s);if(!o)return;if(i){let r=o.get(i);if(!r)return;o.delete(i),o.size||this.instances.delete(s),r.cleanup.forEach(function(c){t("Cleanup",c)}),r.onDestroy.forEach(function(c){t("Destroy",c)});return}let a=Array.from(o.values());this.instances.delete(s),a.forEach(function(r){r.cleanup.forEach(function(c){t("Cleanup",c)}),r.onDestroy.forEach(function(c){t("Destroy",c)})})},destroyAll:function(s){let i=[];return this.instances.forEach(function(o,a){if(!s){i.push([a,null]);return}o.has(s)&&i.push([a,s])}),i.forEach(function(o){n.unregister(o[0],o[1]||void 0)}),i.length},destroyAllInContainer:function(s,i){let o=this.normalizeRoot(s),a=[];return this.instances.forEach(function(r,c){if(n.isInRoot(o,c)){if(!i){a.push([c,null]);return}r.has(i)&&a.push([c,i])}}),a.forEach(function(r){n.unregister(r[0],r[1]||void 0)}),a.length},getAll:function(){let s=[];return this.instances.forEach(function(i,o){i.forEach(function(a){s.push({element:o,component:a.component,registeredAt:a.registeredAt})})}),s},has:function(s,i){let o=this.instances.get(s);return o?i?o.has(i):o.size>0:!1}};window.addEventListener("beforeunload",function(){n.destroyAll()}),window.VanduoLifecycle=n})();(function(){"use strict";let m="1.4.4",e=Object.prototype.hasOwnProperty,t={version:m,components:{},aliases:{},_decoratedComponents:new WeakSet,resolveComponentName:function(n){return this.aliases[n]||n},_isRoot:function(n){return typeof window.VanduoLifecycle<"u"&&typeof window.VanduoLifecycle.isRoot=="function"?window.VanduoLifecycle.isRoot(n):!!n&&(n===document||n.nodeType===1||n.nodeType===9||n.nodeType===11)},_normalizeRoot:function(n){return this._isRoot(n)?n:document},_queryAll:function(n,s){let i=this._normalizeRoot(n),o=[];if(i instanceof Element&&typeof i.matches=="function"&&i.matches(s)&&o.push(i),typeof i.querySelectorAll=="function"){let a=i.querySelectorAll(s);for(let r=0;r<a.length;r++)o.push(a[r])}return o},queryAll:function(n,s){return typeof s>"u"&&(s=n,n=document),this._queryAll(n,s)},queryOne:function(n,s){let i=this.queryAll(n,s);return i.length?i[0]:null},_isLifecycleManagedComponent:function(n){if(!n||typeof n!="object")return!1;for(let s in n)if(e.call(n,s)&&n[s]instanceof Map)return!0;return!1},_syncComponentLifecycle:function(n,s,i){let o=window.VanduoLifecycle;if(!o||!this._isLifecycleManagedComponent(s))return;let a=this.resolveComponentName(n),r=this._normalizeRoot(i);for(let c in s)!e.call(s,c)||!(s[c]instanceof Map)||s[c].forEach(function(l,d){if(!(d instanceof Element)||!o.isInRoot(r,d)||o.has(d,a))return;if(typeof s.destroy=="function"){o.register(d,a,[],function(){s.destroy(d)});return}let u=l&&Array.isArray(l.cleanup)?l.cleanup:[];o.register(d,a,u,function(){s[c].delete(d)})})},_decorateComponent:function(n,s){let i=this,o=window.VanduoLifecycle;if(!s||typeof s!="object"||this._decoratedComponents.has(s))return;let a=typeof s.init=="function"?s.init:null;a&&(s.init=function(...c){let l=i._isRoot(c[0])?c[0]:null,d=a.apply(this,c);if(window.Vanduo){let u=l||document;window.Vanduo._syncComponentLifecycle(n,this,u)}return d});let r=typeof s.destroyAll=="function"?s.destroyAll:null;r&&(s.destroyAll=function(...c){let l=i._isRoot(c[0])?c[0]:null,d=window.Vanduo?window.Vanduo.resolveComponentName(n):n;if(o&&window.Vanduo&&window.Vanduo._isLifecycleManagedComponent(this)){if(l&&l!==document)return o.destroyAllInContainer(l,d),this.__vanduoScopedDestroyAll===!0?r.apply(this,c):void 0;o.destroyAll(d)}return r.apply(this,c)}),this._decoratedComponents.add(s)},init:function(n){let s=this._normalizeRoot(n);if(s!==document){this.initComponents(s);return}if(typeof ready<"u"){ready(()=>{this.initComponents(document)});return}if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",()=>{this.initComponents(document)});return}this.initComponents(document)},initComponents:function(n){let s=this._normalizeRoot(n);Object.keys(this.components).forEach(i=>{let o=this.components[i];if(o.init&&typeof o.init=="function")try{o.init(s)}catch(a){console.warn('[Vanduo] Failed to initialize component "'+i+'":',a)}})},register:function(n,s,i){let o=i||{};this._decorateComponent(n,s),this.components[n]=s,Array.isArray(o.aliases)&&o.aliases.forEach(a=>{this.aliases[a]=n})},registerAlias:function(n,s){let i=this.resolveComponentName(s);this.components[i]&&(this.aliases[n]=i)},reinit:function(n,s){let i=this._normalizeRoot(s),o=this.resolveComponentName(n),a=this.components[o];if(a&&a.init&&typeof a.init=="function")try{a.destroyAll&&typeof a.destroyAll=="function"&&a.destroyAll(i),a.init(i)}catch(r){console.warn('[Vanduo] Failed to reinitialize component "'+o+'":',r)}},destroy:function(n){let s=this._normalizeRoot(n),i=Object.keys(this.components);for(let o=0;o<i.length;o++){let a=this.components[i[o]];if(a&&a.destroyAll&&typeof a.destroyAll=="function")try{a.destroyAll(s)}catch(r){console.warn('[Vanduo] Failed to destroy component "'+i[o]+'":',r)}}},destroyAll:function(){this.destroy(document)},getComponent:function(n){let s=this.resolveComponentName(n);return this.components[s]||null}};window.Vanduo=t})();(function(){"use strict";let m={_snippetIdCounter:0,resolveRoot:function(e){return e&&(e.nodeType===1||e.nodeType===9||e.nodeType===11)?e:document},queryWithin:function(e,t){let n=this.resolveRoot(e),s=[];if(n instanceof Element&&typeof n.matches=="function"&&n.matches(t)&&s.push(n),typeof n.querySelectorAll=="function"){let i=n.querySelectorAll(t);for(let o=0;o<i.length;o++)s.push(i[o])}return s},getSnippetInstanceId:function(e){if(e.dataset.codeSnippetId)return e.dataset.codeSnippetId;let t=(e.id||"").trim();return t?(e.dataset.codeSnippetId=`snippet-${t}`,e.dataset.codeSnippetId):(this._snippetIdCounter+=1,e.dataset.codeSnippetId=`snippet-auto-${this._snippetIdCounter}`,e.dataset.codeSnippetId)},addListener:function(e,t,n,s){t&&(t.addEventListener(n,s),e._codeSnippetCleanup||(e._codeSnippetCleanup=[]),e._codeSnippetCleanup.push(()=>t.removeEventListener(n,s)))},init:function(e){this.queryWithin(e,".vd-code-snippet").forEach(n=>{n.dataset.initialized!=="true"&&this.initSnippet(n)})},initSnippet:function(e){if(e.dataset.initialized==="true")return;e._codeSnippetCleanup=[];let t=e.querySelector(".vd-code-snippet-toggle"),n=e.querySelector(".vd-code-snippet-content");t&&n&&this.initCollapsible(e,t,n);let s=e.querySelectorAll(".vd-code-snippet-tab"),i=e.querySelectorAll(".vd-code-snippet-pane");s.length>0&&this.initTabs(e,s,i);let o=e.querySelector(".vd-code-snippet-copy");o&&this.initCopyButton(e,o),e.querySelectorAll("[data-extract]").forEach(l=>{this.extractHtml(l)}),e.querySelectorAll(".vd-code-snippet-pane:not([data-extract])").forEach(l=>{this.applyPaneHighlighting(l)}),e.querySelectorAll(".has-line-numbers").forEach(l=>{this.addLineNumbers(l)}),e.dataset.initialized="true"},initCollapsible:function(e,t,n){let s=e.dataset.expanded==="true";t.setAttribute("aria-expanded",s?"true":"false"),n.dataset.visible=s?"true":"false",this.addListener(e,t,"click",()=>{let i=e.dataset.expanded==="true",o=!i;e.dataset.expanded=o?"true":"false",t.setAttribute("aria-expanded",o?"true":"false"),n.dataset.visible=o?"true":"false",i||n.querySelectorAll("[data-extract]:not([data-extracted])").forEach(c=>{this.extractHtml(c)});let a=new CustomEvent("codesnippet:toggle",{bubbles:!0,detail:{snippet:e,expanded:!i}});e.dispatchEvent(a)})},initTabs:function(e,t,n){let s=this.getSnippetInstanceId(e),i=e.querySelector(".vd-code-snippet-tabs");i&&i.setAttribute("role","tablist"),t.forEach((o,a)=>{let r=o.dataset.lang,c=o.classList.contains("is-active");o.setAttribute("role","tab"),o.setAttribute("aria-selected",c),o.setAttribute("tabindex",c?"0":"-1"),o.id=o.id||`code-tab-${s}-${r||"tab"}-${a}`;let l=e.querySelector(`.vd-code-snippet-pane[data-lang="${r}"]`);l&&(l.id=l.id||`code-pane-${s}-${r||"pane"}-${a}`,l.setAttribute("role","tabpanel"),o.setAttribute("aria-controls",l.id),l.setAttribute("aria-labelledby",o.id)),this.addListener(e,o,"click",()=>{this.switchTab(e,o,t,n)}),this.addListener(e,o,"keydown",d=>{this.handleTabKeydown(d,e,t,n)})})},switchTab:function(e,t,n,s){let i=t.dataset.lang;n.forEach(r=>{r.classList.remove("is-active"),r.setAttribute("aria-selected","false"),r.setAttribute("tabindex","-1")}),s.forEach(r=>{r.classList.remove("is-active")}),t.classList.add("is-active"),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0");let o=e.querySelector(`.vd-code-snippet-pane[data-lang="${i}"]`);o&&o.classList.add("is-active");let a=new CustomEvent("codesnippet:tabchange",{bubbles:!0,detail:{snippet:e,tab:t,lang:i}});e.dispatchEvent(a)},handleTabKeydown:function(e,t,n,s){let i=Array.from(n),o=i.indexOf(e.target),a;switch(e.key){case"ArrowLeft":e.preventDefault(),a=o>0?o-1:i.length-1;break;case"ArrowRight":e.preventDefault(),a=o<i.length-1?o+1:0;break;case"Home":e.preventDefault(),a=0;break;case"End":e.preventDefault(),a=i.length-1;break;default:return}a!==o&&(i[a].focus(),this.switchTab(t,i[a],n,s))},initCopyButton:function(e,t){this.addListener(e,t,"click",async()=>{await this.copyCode(e,t)})},copyCode:async function(e,t){let n=e.querySelector(".vd-code-snippet-pane.is-active")||e.querySelector(".vd-code-snippet-pane");if(!n){console.warn("CodeSnippet: No code pane found");return}let i=(n.querySelector("code")||n).textContent,o;try{await navigator.clipboard.writeText(i),o=!0}catch{o=this.fallbackCopy(i)}this.showCopyFeedback(t,o);let a=new CustomEvent("codesnippet:copy",{bubbles:!0,detail:{snippet:e,code:i,success:o}});e.dispatchEvent(a)},fallbackCopy:function(e){let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-9999px",t.style.top="-9999px",document.body.appendChild(t),t.focus(),t.select();let n=!1;try{n=document.execCommand("copy")}catch(s){console.warn("CodeSnippet: Fallback copy failed",s)}return document.body.removeChild(t),n},showCopyFeedback:function(e,t){if(t){e.classList.add("is-copied");let n=document.createElement("span");n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.className="sr-only",n.textContent="Code copied to clipboard",e.appendChild(n),setTimeout(()=>{e.classList.remove("is-copied"),n.parentNode&&n.parentNode.removeChild(n)},2e3)}},extractHtml:function(e){let t=e.dataset.extract;if(!t)return;let n=document.querySelector(t);if(!n){console.warn(`CodeSnippet: Source element not found: ${t}`);return}let s=n.innerHTML;s=this.formatHtml(s),s=this.escapeHtml(s),s=this.highlightHtml(s);let i=document.createElement("code");i.innerHTML=s,e.replaceChildren(i),e.dataset.extracted="true",e.dataset.highlighted="true"},formatHtml:function(e){e=e.trim();let t=e.split(`
|
|
3
|
+
`),n=0,s=2,i=[];return t.forEach(o=>{if(o=o.trim(),!o)return;o.match(/^<\/\w/)&&(n=Math.max(0,n-s)),i.push(" ".repeat(n)+o);let a=/<[a-zA-Z]/.test(o),r=o.includes("/>");a&&!r&&(o.match(/<(br|hr|img|input|meta|link|area|base|col|embed|param|source|track|wbr)/i)||o.match(/<\/\w+>$/)||(n+=s))}),i.join(`
|
|
4
|
+
`)},escapeHtml:function(e){let t=document.createElement("div");return t.textContent=e,t.innerHTML},needsHighlighting:function(e,t){return!(!t||e.dataset.highlighted==="true"||t.querySelector('[class^="code-"], [class*=" code-"]'))},getHighlightMode:function(e){let t=String(e||"").trim().toLowerCase();return["html","xml","svg","vue","svelte","astro"].includes(t)?"html":["css","scss","sass","less"].includes(t)?"css":["js","mjs","cjs","ts","jsx","tsx","json","bash","sh"].includes(t)?"js":"plain"},highlightCodeByLang:function(e,t){let n=this.escapeHtml(e),s=this.getHighlightMode(t);return s==="html"?this.highlightHtml(n):s==="css"?this.highlightCss(n):s==="js"?this.highlightJs(n):n},applyPaneHighlighting:function(e){if(!e)return;let t=e.querySelector("code")||e;if(!this.needsHighlighting(e,t)){e.dataset.highlighted="true";return}let n=t.textContent||"",s=this.highlightCodeByLang(n,e.dataset.lang),i=t.tagName==="CODE"?t:document.createElement("code");i.innerHTML=s,i!==t&&e.replaceChildren(i),e.dataset.highlighted="true"},highlightHtml:function(e){return e=e.replace(/(<!--)(.*?)(-->)/g,'<span class="code-comment">$1$2$3</span>'),e=e.replace(/<(?!--)([\s\S]*?)>/g,function(t,n){let s=n.match(/^(\/)([\w-]+)\s*$/);if(s)return"<"+s[1]+'<span class="code-tag">'+s[2]+"</span>>";let i=n.match(/(\s*\/)\s*$/),o=i?i[1]:"",r=(i?n.slice(0,n.length-i[0].length):n).match(/^([\w-]+)([\s\S]*)$/);if(!r)return t;let c=r[1],l=r[2];return l=l.replace(/([\w:-]+)(\s*=\s*)(["'])([\s\S]*?)\3/g,function(d,u,f,h,p){return'<span class="code-attr">'+u+"</span>"+f+h+'<span class="code-string">'+p+"</span>"+h}),l=l.replace(/([\w:-]+)(\s*=\s*)("|')([\s\S]*?)("|')/g,function(d,u,f,h,p,g){return h!==g?d:'<span class="code-attr">'+u+"</span>"+f+h+'<span class="code-string">'+p+"</span>"+g}),'<<span class="code-tag">'+c+"</span>"+l+o+">"}),e},highlightCss:function(e){return e=e.replace(/([.#]?[a-zA-Z][a-zA-Z0-9_-]{0,200})(\s*\{)/g,'<span class="code-selector">$1</span>$2'),e=e.replace(/([a-zA-Z][a-zA-Z0-9_-]{0,200})(\s*:)/g,'<span class="code-property">$1</span>$2'),e=e.replace(/:\s*([^;{}]+)(;)/g,': <span class="code-value">$1</span>$2'),e=e.replace(/(\d+)(px|rem|em|%|vh|vw|deg|s|ms)/g,'<span class="code-number">$1</span><span class="code-unit">$2</span>'),e=e.replace(/(\/\*[\s\S]*?\*\/)/g,'<span class="code-comment">$1</span>'),e},highlightJs:function(e){let t=[],n=(i,o)=>{let a=String.fromCharCode(57344+t.length);return t.push({marker:a,html:'<span class="'+o+'">'+i+"</span>"}),a};return e=e.replace(/\/\*[\s\S]*?\*\/|\/\/.*$|'(?:[^'\\]|\\.){0,10000}'|"(?:[^"\\]|\\.){0,10000}"|`(?:[^`\\]|\\.){0,10000}`/gm,i=>n(i,i.startsWith("/")?"code-comment":"code-string")),["const","let","var","function","return","if","else","for","while","switch","case","break","continue","new","this","class","extends","import","export","default","async","await","try","catch","throw","typeof","instanceof"].forEach(i=>{let o=new RegExp(`\\b(${i})\\b`,"g");e=e.replace(o,'<span class="code-keyword">$1</span>')}),e=e.replace(/\b(\d+\.?\d*)\b/g,'<span class="code-number">$1</span>'),e=e.replace(/\b([\w]+)(\s*\()/g,'<span class="code-function">$1</span>$2'),t.forEach(i=>{e=e.replace(i.marker,i.html)}),e},addLineNumbers:function(e){let t=e.querySelector("code");if(!t)return;let s=t.innerHTML.split(`
|
|
5
|
+
`).length,i=document.createElement("div");i.className="vd-code-snippet-line-numbers",i.setAttribute("aria-hidden","true");for(let a=1;a<=s;a++){let r=document.createElement("span");r.textContent=a,i.appendChild(r)}let o=document.createElement("div");o.className="vd-code-snippet-code",o.appendChild(t.cloneNode(!0)),t.parentNode.removeChild(t),e.appendChild(i),e.appendChild(o)},expand:function(e){if(typeof e=="string"&&(e=document.querySelector(e)),!e)return;e.dataset.expanded="true";let t=e.querySelector(".vd-code-snippet-toggle"),n=e.querySelector(".vd-code-snippet-content");t&&t.setAttribute("aria-expanded","true"),n&&(n.dataset.visible="true")},collapse:function(e){if(typeof e=="string"&&(e=document.querySelector(e)),!e)return;e.dataset.expanded="false";let t=e.querySelector(".vd-code-snippet-toggle"),n=e.querySelector(".vd-code-snippet-content");t&&t.setAttribute("aria-expanded","false"),n&&(n.dataset.visible="false")},showLang:function(e,t){if(typeof e=="string"&&(e=document.querySelector(e)),!e)return;let n=e.querySelector(`.vd-code-snippet-tab[data-lang="${t}"]`),s=e.querySelectorAll(".vd-code-snippet-tab"),i=e.querySelectorAll(".vd-code-snippet-pane");n&&this.switchTab(e,n,s,i)},destroy:function(e){typeof e=="string"&&(e=document.querySelector(e)),e&&(e._codeSnippetCleanup&&(e._codeSnippetCleanup.forEach(t=>t()),delete e._codeSnippetCleanup),delete e.dataset.initialized)},destroyAll:function(e){let t=this.resolveRoot(e);this.queryWithin(t,'.vd-code-snippet[data-initialized="true"]').forEach(s=>{this.destroy(s)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("codeSnippet",m),window.CodeSnippet=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-collapsible, .accordion").forEach(n=>{this.instances.has(n)||this.initCollapsible(n)})},initCollapsible:function(e){let t=e.classList.contains("accordion"),n=e.querySelectorAll(".vd-collapsible-item, .accordion-item"),s=[];n.forEach(i=>{let o=i.querySelector(".vd-collapsible-header, .accordion-header"),a=i.querySelector(".vd-collapsible-body, .accordion-body"),r=i.querySelector(".vd-collapsible-trigger, .accordion-trigger")||o;if(!o||!a)return;i.classList.contains("is-open")?this.openItem(i,a,!1):this.closeItem(i,a,!1);let c=l=>{l.preventDefault(),this.toggleItem(i,a,e,t)};r.addEventListener("click",c),s.push(()=>r.removeEventListener("click",c))}),this.instances.set(e,{cleanup:s})},toggleItem:function(e,t,n,s){e.classList.contains("is-open")?this.closeItem(e,t):(s&&n.querySelectorAll(".vd-collapsible-item.is-open, .accordion-item.is-open").forEach(a=>{if(a!==e){let r=a.querySelector(".vd-collapsible-body, .accordion-body");this.closeItem(a,r)}}),this.openItem(e,t))},openItem:function(e,t,n=!0){n||(t.style.transition="none"),e.classList.add("is-open"),e.setAttribute("aria-expanded","true");let s=t.scrollHeight;t.style.maxHeight=`${s}px`,n||setTimeout(()=>{t.style.transition=""},0),e.dispatchEvent(new CustomEvent("collapsible:open",{bubbles:!0}))},closeItem:function(e,t,n=!0){n||(t.style.transition="none"),e.classList.remove("is-open"),e.setAttribute("aria-expanded","false"),t.style.maxHeight="0",n||setTimeout(()=>{t.style.transition=""},0),e.dispatchEvent(new CustomEvent("collapsible:close",{bubbles:!0}))},open:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t){let n=t.querySelector(".vd-collapsible-body, .accordion-body");n&&this.openItem(t,n)}},close:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t){let n=t.querySelector(".vd-collapsible-body, .accordion-body");n&&this.closeItem(t,n)}},toggle:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t){let n=t.querySelector(".vd-collapsible-body, .accordion-body"),s=t.closest(".vd-collapsible, .accordion"),i=s&&s.classList.contains("accordion");n&&this.toggleItem(t,n,s,i)}},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>{this.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("collapsible",m),window.VanduoCollapsible=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-dropdown").forEach(n=>{this.instances.has(n)||this.initDropdown(n)})},initDropdown:function(e){let t=e.querySelector(".vd-dropdown-toggle"),n=e.querySelector(".vd-dropdown-menu");if(!t||!n)return;let s=[];t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded","false"),n.setAttribute("role","menu"),n.setAttribute("aria-hidden","true");let i=c=>{c.preventDefault(),c.stopPropagation(),this.toggleDropdown(e,t,n)};t.addEventListener("click",i),s.push(()=>t.removeEventListener("click",i));let o=c=>{!e.contains(c.target)&&n.classList.contains("is-open")&&this.closeDropdown(e,t,n)};document.addEventListener("click",o),s.push(()=>document.removeEventListener("click",o));let a=c=>{this.handleKeydown(c,e,t,n)};t.addEventListener("keydown",a),s.push(()=>t.removeEventListener("keydown",a)),n.querySelectorAll(".vd-dropdown-item:not(.disabled):not(.is-disabled)").forEach(c=>{let l=u=>{u.preventDefault(),this.selectItem(c,e,t,n)};c.addEventListener("click",l),s.push(()=>c.removeEventListener("click",l));let d=u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),this.selectItem(c,e,t,n))};c.addEventListener("keydown",d),s.push(()=>c.removeEventListener("keydown",d))}),this.instances.set(e,{toggle:t,menu:n,cleanup:s,typeaheadBuffer:"",typeaheadTimer:null})},toggleDropdown:function(e,t,n){n.classList.contains("is-open")?this.closeDropdown(e,t,n):this.openDropdown(e,t,n)},openDropdown:function(e,t,n){document.querySelectorAll(".vd-dropdown-menu.is-open").forEach(o=>{if(o!==n){let a=o.closest(".vd-dropdown"),r=a.querySelector(".vd-dropdown-toggle");this.closeDropdown(a,r,o)}}),e.classList.add("is-open"),n.classList.add("is-open"),t.setAttribute("aria-expanded","true"),n.setAttribute("aria-hidden","false"),this.positionMenu(e,n);let i=n.querySelector(".vd-dropdown-item:not(.disabled):not(.is-disabled)");i&&setTimeout(()=>i.focus(),0)},closeDropdown:function(e,t,n){e.classList.remove("is-open"),n.classList.remove("is-open"),t.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true"),t.focus()},positionMenu:function(e,t){let n=e.getBoundingClientRect(),s=t.getBoundingClientRect(),i=window.innerWidth,o=window.innerHeight,a=8;if(t.classList.remove("vd-dropdown-menu-end","vd-dropdown-menu-start","vd-dropdown-menu-top"),e.classList.contains("vd-dropdown-dropup")){t.classList.add("vd-dropdown-menu-top");return}e.classList.contains("vd-dropdown-dropright")||e.classList.contains("vd-dropdown-dropleft")||(n.left+s.width>i-a?t.classList.add("vd-dropdown-menu-end"):t.classList.add("vd-dropdown-menu-start"),n.bottom+s.height>o-a&&n.top-s.height>a&&t.classList.add("vd-dropdown-menu-top"))},handleKeydown:function(e,t,n,s){let i=s.classList.contains("is-open"),o=Array.from(s.querySelectorAll(".vd-dropdown-item:not(.disabled):not(.is-disabled)")),a=o.findIndex(r=>r===document.activeElement);switch(e.key){case"Enter":case" ":case"ArrowDown":if(e.preventDefault(),!i)this.openDropdown(t,n,s);else if(e.key==="ArrowDown"){let r=a<o.length-1?a+1:0;o[r].focus()}break;case"ArrowUp":if(i){e.preventDefault();let r=a>0?a-1:o.length-1;o[r].focus()}break;case"Escape":i&&(e.preventDefault(),this.closeDropdown(t,n,s));break;case"Home":i&&(e.preventDefault(),o[0].focus());break;case"End":i&&(e.preventDefault(),o[o.length-1].focus());break;default:if(i&&e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey){let r=this.instances.get(t);if(!r)break;clearTimeout(r.typeaheadTimer),r.typeaheadBuffer+=e.key.toLowerCase();let c=o.find(l=>l.textContent.trim().toLowerCase().startsWith(r.typeaheadBuffer));c&&c.focus(),r.typeaheadTimer=setTimeout(()=>{r.typeaheadBuffer=""},500)}break}},selectItem:function(e,t,n,s){s.querySelectorAll(".vd-dropdown-item").forEach(i=>{i.classList.remove("active","is-active")}),e.classList.add("active","is-active"),(n.tagName==="BUTTON"||n.classList.contains("btn"))&&(n.textContent=e.textContent.trim()),this.closeDropdown(t,n,s),e.dispatchEvent(new CustomEvent("dropdown:select",{bubbles:!0,detail:{item:e,value:e.dataset.value||e.textContent}}))},open:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t){let n=t.querySelector(".vd-dropdown-toggle"),s=t.querySelector(".vd-dropdown-menu");n&&s&&this.openDropdown(t,n,s)}},close:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t){let n=t.querySelector(".vd-dropdown-toggle"),s=t.querySelector(".vd-dropdown-menu");n&&s&&this.closeDropdown(t,n,s)}},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>{this.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("dropdown",m),window.VanduoDropdown=m})();(function(){"use strict";let m={STORAGE_KEY:"vanduo-font-preference",isInitialized:!1,fonts:{system:{name:"System Default",family:null},"jetbrains-mono":{name:"JetBrains Mono",family:"'JetBrains Mono', monospace"},ubuntu:{name:"Ubuntu",family:"'Ubuntu', sans-serif",category:"sans-serif",description:"Friendly, humanist sans-serif"},"open-sans":{name:"Open Sans",family:"'Open Sans', sans-serif",category:"sans-serif",description:"Neutral, highly readable"},lato:{name:"Lato",family:"'Lato', sans-serif",category:"sans-serif",description:"Friendly, rounded sans-serif"}},getToggles:function(e){return window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,'[data-toggle="font"]'):Array.from(document.querySelectorAll('[data-toggle="font"]'))},init:function(e){if(this.state={preference:this.getPreference()},this.fonts[this.state.preference]||(this.state.preference="ubuntu",this.setStorageValue(this.STORAGE_KEY,this.state.preference)),this.isInitialized){this.applyFont(),this.renderUI(e),this.updateUI(e);return}this.isInitialized=!0,this.applyFont(),this.renderUI(e)},getPreference:function(){return this.getStorageValue(this.STORAGE_KEY,"ubuntu")},setPreference:function(e){if(!this.fonts[e]){console.warn("Unknown font:",e);return}this.state.preference=e,this.setStorageValue(this.STORAGE_KEY,e),this.applyFont(),this.updateUI();let t=new CustomEvent("font:change",{bubbles:!0,detail:{font:e,fontData:this.fonts[e]}});document.dispatchEvent(t)},applyFont:function(){let e=this.state.preference;e==="system"?document.documentElement.removeAttribute("data-font"):document.documentElement.setAttribute("data-font",e)},renderUI:function(e){this.getToggles(e).forEach(n=>{if(n.getAttribute("data-font-initialized")==="true"){n.tagName==="SELECT"&&(n.value=this.state.preference);return}if(n.tagName==="SELECT"){n.value=this.state.preference;let s=i=>{this.setPreference(i.target.value)};n.addEventListener("change",s),n._fontToggleHandler=s}else{let s=()=>{let i=Object.keys(this.fonts),a=(i.indexOf(this.state.preference)+1)%i.length;this.setPreference(i[a])};n.addEventListener("click",s),n._fontToggleHandler=s}n.setAttribute("data-font-initialized","true")})},updateUI:function(e){this.getToggles(e).forEach(n=>{if(n.tagName==="SELECT")n.value=this.state.preference;else{let s=n.querySelector(".font-current-label");s&&(s.textContent=this.fonts[this.state.preference].name)}})},getCurrentFont:function(){return this.state.preference},getFontData:function(e){return this.fonts[e]||null},destroyAll:function(e){this.getToggles(e||document).filter(function(n){return n.getAttribute("data-font-initialized")==="true"}).forEach(n=>{if(n._fontToggleHandler){let s=n.tagName==="SELECT"?"change":"click";n.removeEventListener(s,n._fontToggleHandler),delete n._fontToggleHandler}n.removeAttribute("data-font-initialized")}),(!e||e===document)&&(this.isInitialized=!1)},getStorageValue:function(e,t){if(typeof window.safeStorageGet=="function")return window.safeStorageGet(e,t);try{let n=localStorage.getItem(e);return n!==null?n:t}catch{return t}},setStorageValue:function(e,t){if(typeof window.safeStorageSet=="function")return window.safeStorageSet(e,t);try{return localStorage.setItem(e,t),!0}catch{return!1}}};window.Vanduo&&window.Vanduo.register("fontSwitcher",m),window.FontSwitcher=m})();(function(){"use strict";let m=(function(){try{return CSS.supports("selector(:has(*))")}catch{return!1}})(),e={instances:new Map,__vanduoScopedDestroyAll:!0,init:function(t){window.Vanduo.queryAll(t,"[data-layout-mode]").forEach(function(s){this.instances.has(s)||this.initContainer(s)}.bind(this)),this.initToggleButtons(t)},initContainer:function(t){let n=t.getAttribute("data-layout-mode")||"standard",s=[];this.applyMode(t,n),t.setAttribute("role","region"),t.setAttribute("aria-label","Grid layout: "+n+" mode"),this.instances.set(t,{cleanup:s,mode:n})},initToggleButtons:function(t){(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(t,"[data-grid-toggle]"):document.querySelectorAll("[data-grid-toggle]")).forEach(function(s){if(s.getAttribute("data-grid-initialized")==="true")return;let i=function(o){o.preventDefault();let a=s.getAttribute("data-grid-toggle"),r;a?r=document.querySelector(a):r=s.closest("[data-layout-mode]"),r&&this.toggle(r)}.bind(this);s.addEventListener("click",i),s.setAttribute("data-grid-initialized","true"),s.setAttribute("aria-pressed","false"),s._gridCleanup=function(){s.removeEventListener("click",i),s.removeAttribute("data-grid-initialized"),s.removeAttribute("aria-pressed")}}.bind(this))},applyFibFallback:function(t){if(m)return;t.querySelectorAll(".vd-row, .row").forEach(function(s){let o=s.querySelectorAll(':scope > [class*="vd-col-"], :scope > [class*="col-"]').length;o===1?s.style.gridTemplateColumns="1fr":o===2?s.style.gridTemplateColumns="1fr 1.618fr":o===3?s.style.gridTemplateColumns="2fr 3fr 5fr":o===4?s.style.gridTemplateColumns="1fr 2fr 3fr 5fr":s.style.gridTemplateColumns="repeat("+o+", 1fr)"})},removeFibFallback:function(t){t.querySelectorAll(".vd-row, .row").forEach(function(s){s.style.gridTemplateColumns=""})},applyMode:function(t,n){t.classList.remove("vd-grid-standard","vd-grid-fibonacci"),n==="fibonacci"?(t.classList.add("vd-grid-fibonacci"),this.applyFibFallback(t)):(t.classList.add("vd-grid-standard"),this.removeFibFallback(t)),t.setAttribute("data-layout-mode",n),t.setAttribute("aria-label","Grid layout: "+n+" mode"),document.querySelectorAll("[data-grid-toggle]").forEach(function(a){let r=a.getAttribute("data-grid-toggle");if(r&&t.matches(r)){let c=n==="fibonacci";c?a.classList.add("is-active"):a.classList.remove("is-active"),a.setAttribute("aria-pressed",c?"true":"false")}});let i=this.instances.get(t);i&&(i.mode=n);let o;try{o=new CustomEvent("grid:modechange",{bubbles:!0,detail:{container:t,mode:n}})}catch{o=document.createEvent("CustomEvent"),o.initCustomEvent("grid:modechange",!0,!0,{container:t,mode:n})}t.dispatchEvent(o)},toggle:function(t){if(typeof t=="string"&&(t=document.querySelector(t)),!t)return;let s=(t.getAttribute("data-layout-mode")||"standard")==="fibonacci"?"standard":"fibonacci";this.applyMode(t,s)},setMode:function(t,n){typeof t=="string"&&(t=document.querySelector(t)),t&&(n!=="fibonacci"&&n!=="standard"||this.applyMode(t,n))},getMode:function(t){return typeof t=="string"&&(t=document.querySelector(t)),t?t.getAttribute("data-layout-mode")||"standard":null},destroy:function(t){let n=this.instances.get(t);n&&(n.cleanup.forEach(function(s){s()}),t.classList.remove("vd-grid-standard","vd-grid-fibonacci"),t.removeAttribute("aria-label"),this.removeFibFallback(t),this.instances.delete(t))},destroyAll:function(t){let n=window.Vanduo&&typeof window.Vanduo._normalizeRoot=="function"?window.Vanduo._normalizeRoot(t):t||document;this.instances.forEach(function(i,o){(n===document||n===o||typeof n.contains=="function"&&n.contains(o))&&this.destroy(o)}.bind(this)),(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(n,'[data-grid-toggle][data-grid-initialized="true"]'):document.querySelectorAll('[data-grid-initialized="true"]')).forEach(function(i){i._gridCleanup&&(i._gridCleanup(),delete i._gridCleanup)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("gridLayout",e),window.VanduoGridLayout=e})();(function(){"use strict";let m={backdrop:null,container:null,img:null,closeBtn:null,caption:null,currentTrigger:null,scrollThreshold:50,initialScrollY:0,isOpen:!1,_cleanupFunctions:[],getTriggers:function(e){return window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,"[data-image-box]"):Array.from(document.querySelectorAll("[data-image-box]"))},init:function(e){this.createBackdrop(),this.bindTriggers(e)},createBackdrop:function(){if(this.backdrop||document.querySelector(".vd-image-box-backdrop")){this.backdrop||(this.backdrop=document.querySelector(".vd-image-box-backdrop"),this.container=this.backdrop.querySelector(".vd-image-box-container"),this.img=this.backdrop.querySelector(".vd-image-box-img"),this.closeBtn=this.backdrop.querySelector(".vd-image-box-close"),this.caption=this.backdrop.querySelector(".vd-image-box-caption"),this.bindBackdropEvents());return}this.backdrop=document.createElement("div"),this.backdrop.className="vd-image-box-backdrop",this.backdrop.setAttribute("role","dialog"),this.backdrop.setAttribute("aria-modal","true"),this.backdrop.setAttribute("aria-label","Image viewer"),this.backdrop.setAttribute("tabindex","-1"),this.container=document.createElement("div"),this.container.className="vd-image-box-container",this.img=document.createElement("img"),this.img.className="vd-image-box-img",this.img.alt="",this.closeBtn=document.createElement("button"),this.closeBtn.className="vd-image-box-close",this.closeBtn.setAttribute("aria-label","Close image viewer"),this.closeBtn.innerHTML="×",this.caption=document.createElement("div"),this.caption.className="vd-image-box-caption",this.container.appendChild(this.img),this.backdrop.appendChild(this.closeBtn),this.backdrop.appendChild(this.container),this.backdrop.appendChild(this.caption),document.body.appendChild(this.backdrop),this.bindBackdropEvents()},bindBackdropEvents:function(){let e=this,t=function(a){(a.target===e.backdrop||a.target===e.container)&&e.close()};this.backdrop.addEventListener("click",t),this._cleanupFunctions.push(()=>this.backdrop.removeEventListener("click",t));let n=function(){e.close()};this.img.addEventListener("click",n),this._cleanupFunctions.push(()=>this.img.removeEventListener("click",n));let s=function(){e.close()};this.closeBtn.addEventListener("click",s),this._cleanupFunctions.push(()=>this.closeBtn.removeEventListener("click",s));let i=function(a){a.key==="Escape"&&e.isOpen&&e.close()};document.addEventListener("keydown",i),this._cleanupFunctions.push(()=>document.removeEventListener("keydown",i));let o=function(){if(!e.isOpen)return;let a=window.scrollY;Math.abs(a-e.initialScrollY)>e.scrollThreshold&&e.close()};window.addEventListener("scroll",o,{passive:!0}),this._cleanupFunctions.push(()=>window.removeEventListener("scroll",o))},bindTriggers:function(e){let t=this;this.getTriggers(e).forEach(function(s){if(s.dataset.imageBoxInitialized)return;if(s.dataset.imageBoxInitialized="true",s.classList.add("vd-image-box-trigger"),s.tagName==="IMG"){s.complete&&s.naturalWidth===0&&s.classList.add("is-broken");let a=function(){s.classList.add("is-broken")};s.addEventListener("error",a);let r=function(){s.classList.remove("is-broken")};s.addEventListener("load",r),s._imageBoxErrorHandler=a,s._imageBoxLoadHandler=r}let i=function(a){a.preventDefault(),t.open(s)};if(s.addEventListener("click",i),s._imageBoxCleanup=()=>s.removeEventListener("click",i),s.tagName!=="BUTTON"&&s.tagName!=="A"){s.setAttribute("role","button"),s.setAttribute("tabindex","0"),s.setAttribute("aria-label","View enlarged image");let a=function(c){(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),t.open(s))};s.addEventListener("keydown",a);let r=s._imageBoxCleanup;s._imageBoxCleanup=()=>{r(),s.removeEventListener("keydown",a)}}let o=s._imageBoxCleanup;s._imageBoxCleanup=()=>{o(),s._imageBoxErrorHandler&&(s.removeEventListener("error",s._imageBoxErrorHandler),delete s._imageBoxErrorHandler),s._imageBoxLoadHandler&&(s.removeEventListener("load",s._imageBoxLoadHandler),delete s._imageBoxLoadHandler)}})},open:function(e){if(this.isOpen)return;this.currentTrigger=e,this.isOpen=!0,this.initialScrollY=window.scrollY;let t=e.dataset.imageBoxFullSrc||e.dataset.imageBoxSrc||e.src||e.href;if(!t){console.warn("[Vanduo ImageBox] No image source found for trigger:",e);return}let n=e.dataset.imageBoxCaption||e.alt||"";this.img.src=t,this.img.alt=e.alt||"",n?(this.caption.textContent=n,this.caption.style.display="block"):this.caption.style.display="none";let s=window.innerWidth-document.documentElement.clientWidth;document.body.style.setProperty("--vd-scrollbar-width",`${s}px`),document.body.classList.add("body-image-box-open"),this.backdrop.classList.add("is-visible"),this.backdrop.focus(),e.dispatchEvent(new CustomEvent("imageBox:open",{bubbles:!0,detail:{src:t}})),this.img.complete||(this.img.style.opacity="0",this._imgLoadHandler=()=>{this.img.style.opacity=""},this.img.addEventListener("load",this._imgLoadHandler,{once:!0}))},close:function(){this.isOpen&&(this.isOpen=!1,this.backdrop.classList.remove("is-visible"),document.body.classList.remove("body-image-box-open"),document.body.style.removeProperty("--vd-scrollbar-width"),this.currentTrigger&&(this.currentTrigger.focus(),this.currentTrigger.dispatchEvent(new CustomEvent("imageBox:close",{bubbles:!0})),this.currentTrigger=null),setTimeout(()=>{this.isOpen||(this._imgLoadHandler&&(this.img.removeEventListener("load",this._imgLoadHandler),this._imgLoadHandler=null),this.img.src="",this.img.alt="")},300))},reinit:function(e){this.bindTriggers(e)},destroy:function(e){if(e&&e!==document){this.getTriggers(e).forEach(s=>{s.classList.remove("vd-image-box-trigger"),s._imageBoxCleanup&&(s._imageBoxCleanup(),delete s._imageBoxCleanup),delete s.dataset.imageBoxInitialized});return}this.isOpen&&this.close(),this.backdrop&&this.backdrop.parentNode&&this.backdrop.parentNode.removeChild(this.backdrop),this._cleanupFunctions.forEach(n=>n()),this._cleanupFunctions=[],(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,"[data-image-box-initialized]"):document.querySelectorAll("[data-image-box-initialized]")).forEach(n=>{n.classList.remove("vd-image-box-trigger"),n._imageBoxCleanup&&(n._imageBoxCleanup(),delete n._imageBoxCleanup),delete n.dataset.imageBoxInitialized}),this.backdrop=null,this.container=null,this.img=null,this.closeBtn=null,this.caption=null,this.currentTrigger=null,this.isOpen=!1},destroyAll:function(e){this.destroy(e)}};typeof window.Vanduo<"u"&&window.Vanduo.register("imageBox",m),window.VanduoImageBox=m})();(function(){"use strict";let m={modals:new Map,openModals:[],zIndexCounter:1050,__vanduoScopedDestroyAll:!0,_triggerCleanups:[],_sharedEscHandler:null,getPortalState:function(e){return e._vdPortalState||(e._vdPortalState={originalParent:null,originalNextSibling:null,placeholder:null}),e._vdPortalState},portalToBody:function(e){if(!e||e.parentNode===document.body)return;let t=this.getPortalState(e);t.originalParent=e.parentNode,t.originalNextSibling=e.nextSibling,t.placeholder||(t.placeholder=document.createComment("vd-modal-placeholder")),t.originalParent.insertBefore(t.placeholder,e),document.body.appendChild(e),e.dataset.vdPortaled="true"},restoreFromPortal:function(e){if(!e)return;let t=this.getPortalState(e);if(!t.placeholder){delete e.dataset.vdPortaled;return}t.placeholder.parentNode?(t.placeholder.parentNode.insertBefore(e,t.placeholder),t.placeholder.parentNode.removeChild(t.placeholder)):t.originalParent&&t.originalParent.isConnected&&(t.originalNextSibling&&t.originalNextSibling.parentNode===t.originalParent?t.originalParent.insertBefore(e,t.originalNextSibling):t.originalParent.appendChild(e)),t.originalParent=null,t.originalNextSibling=null,t.placeholder=null,delete e.dataset.vdPortaled},init:function(e){window.Vanduo.queryAll(e,".vd-modal").forEach(s=>{this.modals.has(s)||this.initModal(s)}),(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,"[data-modal]"):document.querySelectorAll("[data-modal]")).forEach(s=>{if(s.dataset.modalTriggerInitialized)return;s.dataset.modalTriggerInitialized="true";let i=o=>{o.preventDefault();let a=s.dataset.modal,r=document.querySelector(a);r&&this.open(r)};s.addEventListener("click",i),s._modalTriggerCleanup=()=>s.removeEventListener("click",i)})},initModal:function(e){let t=this.createBackdrop(e),n=e.querySelectorAll('.vd-modal-close, [data-dismiss="modal"]'),s=e.querySelector(".vd-modal-dialog");if(!s)return;let i=[];e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-hidden","true"),e.id||(e.id="modal-"+Math.random().toString(36).substr(2,9));let o=e.querySelector(".vd-modal-title");o&&!o.id&&(o.id=e.id+"-title",e.setAttribute("aria-labelledby",o.id)),n.forEach(r=>{let c=()=>{this.close(e)};r.addEventListener("click",c),i.push(()=>r.removeEventListener("click",c))});let a=r=>{r.target===t&&e.dataset.backdrop!=="static"&&this.close(e)};t.addEventListener("click",a),i.push(()=>t.removeEventListener("click",a)),this._sharedEscHandler||(this._sharedEscHandler=r=>{if(r.key==="Escape"&&this.openModals.length>0){let c=this.openModals[this.openModals.length-1];c.dataset.keyboard!=="false"&&this.close(c)}},document.addEventListener("keydown",this._sharedEscHandler)),this.modals.set(e,{backdrop:t,dialog:s,trapHandler:null,cleanup:i})},createBackdrop:function(e){let t=e.querySelector(".vd-modal-backdrop");return t||(t=document.createElement("div"),t.className="vd-modal-backdrop",document.body.appendChild(t)),t},open:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t){console.warn("[Vanduo Modals] Modal element not found:",e);return}if(!this.modals.has(t)){console.warn("[Vanduo Modals] Modal not initialized:",t);return}let n=this.modals.get(t),{backdrop:s,dialog:i}=n;if(this.portalToBody(t),this.zIndexCounter+=10,t.style.zIndex=this.zIndexCounter,s.style.zIndex=this.zIndexCounter-1,this.openModals.push(t),s.classList.add("is-visible"),t.classList.add("is-open"),t.setAttribute("aria-hidden","false"),this.openModals.length===1){document.body.classList.add("body-modal-open");let a=window.innerWidth-document.documentElement.clientWidth;a>0&&(document.body.style.paddingRight=`${a}px`)}let o=this.trapFocus(t);n.trapHandler=o,setTimeout(()=>{let a=this.getFocusableElements(t)[0];a&&a.focus()},100),t.dispatchEvent(new CustomEvent("modal:open",{bubbles:!0}))},close:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t){console.warn("[Vanduo Modals] Modal element not found:",e);return}if(!this.modals.has(t)){console.warn("[Vanduo Modals] Modal not initialized:",t);return}let n=this.modals.get(t),{backdrop:s,trapHandler:i}=n;i&&(t.removeEventListener("keydown",i),n.trapHandler=null);let o=this.openModals.indexOf(t);if(o>-1&&this.openModals.splice(o,1),t.classList.remove("is-open"),t.setAttribute("aria-hidden","true"),this.openModals.length===0)s.classList.remove("is-visible"),document.body.classList.remove("body-modal-open"),document.body.style.paddingRight="",this.zIndexCounter=1050;else{let r=this.openModals[this.openModals.length-1];this.modals.get(r).backdrop.classList.add("is-visible")}let a=document.querySelector(`[data-modal="#${t.id}"]`);a&&a.focus(),t.dispatchEvent(new CustomEvent("modal:close",{bubbles:!0})),this.restoreFromPortal(t)},trapFocus:function(e){let t=this,n=function(s){if(s.key!=="Tab")return;let i=t.getFocusableElements(e),o=i[0],a=i[i.length-1];s.shiftKey?document.activeElement===o&&(s.preventDefault(),a.focus()):document.activeElement===a&&(s.preventDefault(),o.focus())};return e.addEventListener("keydown",n),n},getFocusableElements:function(e){return Array.from(e.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(n=>!n.hasAttribute("disabled")&&n.offsetWidth>0&&n.offsetHeight>0)},toggle:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&(t.classList.contains("is-open")?this.close(t):this.open(t))},destroy:function(e){let t=this.modals.get(e);if(t){if(e.classList.contains("is-open")){let n=this.openModals.indexOf(e);n>-1&&this.openModals.splice(n,1),t.backdrop.classList.remove("is-visible"),e.classList.remove("is-open"),e.setAttribute("aria-hidden","true"),this.openModals.length===0&&(document.body.classList.remove("body-modal-open"),document.body.style.paddingRight="",this.zIndexCounter=1050)}this.restoreFromPortal(e),t.cleanup&&t.cleanup.forEach(n=>n()),t.backdrop&&t.backdrop.parentNode&&t.backdrop.parentNode.removeChild(t.backdrop),this.modals.delete(e)}},destroyAll:function(e){let t=window.Vanduo&&typeof window.Vanduo._normalizeRoot=="function"?window.Vanduo._normalizeRoot(e):e||document;this.modals.forEach((s,i)=>{(t===document||t===i||typeof t.contains=="function"&&t.contains(i))&&this.destroy(i)}),(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(t,"[data-modal][data-modal-trigger-initialized]"):document.querySelectorAll("[data-modal][data-modal-trigger-initialized]")).forEach(s=>{s._modalTriggerCleanup&&(s._modalTriggerCleanup(),delete s._modalTriggerCleanup),delete s.dataset.modalTriggerInitialized}),t===document&&this._sharedEscHandler&&(document.removeEventListener("keydown",this._sharedEscHandler),this._sharedEscHandler=null)}};typeof window.Vanduo<"u"&&window.Vanduo.register("modals",m),window.VanduoModals=m})();(function(){"use strict";let m={instances:new Map,getBreakpoint:function(){let t=getComputedStyle(document.documentElement).getPropertyValue("--vd-breakpoint-lg").trim(),n=parseInt(t,10);return isNaN(n)?992:n},init:function(e){window.Vanduo.queryAll(e,".vd-navbar").forEach(n=>{this.instances.has(n)||this.initNavbar(n)})},initScrollWatcher:function(e){let t=e.classList.contains("vd-navbar-glass"),n=e.classList.contains("vd-navbar-transparent");if(!t&&!n)return null;let s=()=>{let o=parseInt(e.dataset.scrollThreshold,10);return isNaN(o)?e.offsetHeight||60:o},i=()=>{let o=window.scrollY>s();e.classList.toggle("vd-navbar-scrolled",o)};return i(),window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},initNavbar:function(e){let t=e.querySelector(".vd-navbar-toggle, .vd-navbar-burger"),n=e.querySelector(".vd-navbar-menu"),s=e.querySelector(".vd-navbar-overlay")||this.createOverlay(e),i=[],o=this.initScrollWatcher(e);if(o&&i.push(o),!t||!n){i.length&&this.instances.set(e,{toggle:null,menu:null,overlay:null,cleanup:i});return}let a=f=>{f.preventDefault(),f.stopPropagation(),this.toggleMenu(e,t,n,s)};if(t.addEventListener("click",a),i.push(()=>t.removeEventListener("click",a)),s){let f=()=>{this.closeMenu(e,t,n,s)};s.addEventListener("click",f),i.push(()=>s.removeEventListener("click",f))}let r=f=>{f.key==="Escape"&&n.classList.contains("is-open")&&this.closeMenu(e,t,n,s)};document.addEventListener("keydown",r),i.push(()=>document.removeEventListener("keydown",r));let c,l=()=>{clearTimeout(c),c=setTimeout(()=>{let f=this.getBreakpoint();window.innerWidth>=f&&n.classList.contains("is-open")&&this.closeMenu(e,t,n,s)},250)};window.addEventListener("resize",l),i.push(()=>{clearTimeout(c),window.removeEventListener("resize",l)});let d=f=>{n.classList.contains("is-open")&&!e.contains(f.target)&&!n.contains(f.target)&&this.closeMenu(e,t,n,s)};document.addEventListener("click",d),i.push(()=>document.removeEventListener("click",d)),n.querySelectorAll(".vd-navbar-dropdown > .vd-nav-link, .vd-navbar-dropdown > .nav-link").forEach(f=>{let h=p=>{let g=this.getBreakpoint();if(window.innerWidth<g){p.preventDefault();let T=f.parentElement.querySelector(".vd-navbar-dropdown-menu");T&&T.classList.toggle("is-open")}};f.addEventListener("click",h),i.push(()=>f.removeEventListener("click",h))}),this.instances.set(e,{toggle:t,menu:n,overlay:s,cleanup:i})},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),t.overlay&&t.overlay.parentNode&&t.overlay.parentNode.removeChild(t.overlay),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>{this.destroy(t)})},toggleMenu:function(e,t,n,s){n.classList.contains("is-open")?this.closeMenu(e,t,n,s):this.openMenu(e,t,n,s)},openMenu:function(e,t,n,s){n.classList.add("is-open"),t.classList.add("is-active"),s&&s.classList.add("is-active"),document.body.classList.add("body-navbar-open"),t.setAttribute("aria-expanded","true"),n.setAttribute("aria-hidden","false")},closeMenu:function(e,t,n,s){n.classList.remove("is-open"),t.classList.remove("is-active"),s&&s.classList.remove("is-active"),document.body.classList.remove("body-navbar-open"),n.querySelectorAll(".vd-navbar-dropdown-menu.is-open").forEach(o=>{o.classList.remove("is-open")}),t.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true")},createOverlay:function(e){let t=document.createElement("div");return t.className="vd-navbar-overlay",document.body.appendChild(t),t}};typeof window.Vanduo<"u"&&window.Vanduo.register("navbar",m),window.VanduoNavbar=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-pagination[data-pagination]").forEach(n=>{this.instances.has(n)||this.initPagination(n)})},initPagination:function(e){let t=parseInt(e.dataset.totalPages)||1,n=parseInt(e.dataset.currentPage)||1,s=parseInt(e.dataset.maxVisible)||7;this.render(e,{totalPages:t,currentPage:n,maxVisible:s});let i=o=>{let a=o.target.closest(".vd-pagination-link");if(!a||a.closest(".vd-pagination-item.disabled")||a.closest(".vd-pagination-item.active"))return;o.preventDefault();let r=a.closest(".vd-pagination-item"),c=r.dataset.page;c?this.goToPage(e,parseInt(c)):r.classList.contains("pagination-prev")?this.prevPage(e):r.classList.contains("pagination-next")&&this.nextPage(e)};e.addEventListener("click",i),this.instances.set(e,{cleanup:[()=>e.removeEventListener("click",i)]})},render:function(e,t){let{totalPages:n,currentPage:s,maxVisible:i}=t;if(n<=1){e.innerHTML="";return}let o="";o+=`<li class="vd-pagination-item vd-pagination-prev pagination-item pagination-prev ${s===1?"disabled":""}">`,o+='<a class="vd-pagination-link pagination-link" href="#" aria-label="Previous">Previous</a>',o+="</li>";let a=this.calculatePages(s,n,i),r=0;a.forEach(c=>{if(c==="ellipsis")o+='<li class="vd-pagination-item pagination-item"><span class="vd-pagination-ellipsis pagination-ellipsis">\u2026</span></li>';else{c!==r+1&&r>0&&(o+='<li class="vd-pagination-item pagination-item"><span class="vd-pagination-ellipsis pagination-ellipsis">\u2026</span></li>');let l=Number(c);o+=`<li class="vd-pagination-item pagination-item ${l===s?"active":""}" data-page="${l}">`,o+=`<a class="vd-pagination-link pagination-link" href="#" aria-label="Page ${l}">${l}</a>`,o+="</li>",r=c}}),o+=`<li class="vd-pagination-item vd-pagination-next pagination-item pagination-next ${s===n?"disabled":""}">`,o+='<a class="vd-pagination-link pagination-link" href="#" aria-label="Next">Next</a>',o+="</li>",e.innerHTML=o,e.dataset.currentPage=s},calculatePages:function(e,t,n){let s=[],i=Math.floor(n/2);if(t<=n)for(let o=1;o<=t;o++)s.push(o);else{s.push(1);let o=Math.max(2,e-i),a=Math.min(t-1,e+i);e<=i+1&&(a=Math.min(t-1,n-1)),e>=t-i&&(o=Math.max(2,t-n+2)),o>2&&s.push("ellipsis");for(let r=o;r<=a;r++)s.push(r);a<t-1&&s.push("ellipsis"),t>1&&s.push(t)}return s},goToPage:function(e,t){let n=parseInt(e.dataset.totalPages)||1,s=parseInt(e.dataset.maxVisible)||7;t<1||t>n||(this.render(e,{totalPages:n,currentPage:t,maxVisible:s}),e.dispatchEvent(new CustomEvent("pagination:change",{bubbles:!0,detail:{page:t,totalPages:n}})))},prevPage:function(e){let t=parseInt(e.dataset.currentPage)||1;t>1&&this.goToPage(e,t-1)},nextPage:function(e){let t=parseInt(e.dataset.currentPage)||1,n=parseInt(e.dataset.totalPages)||1;t<n&&this.goToPage(e,t+1)},update:function(e,t){let n=typeof e=="string"?document.querySelector(e):e;n&&(t.totalPages!==void 0&&(n.dataset.totalPages=t.totalPages),t.currentPage!==void 0&&(n.dataset.currentPage=t.currentPage),t.maxVisible!==void 0&&(n.dataset.maxVisible=t.maxVisible),this.render(n,{totalPages:parseInt(n.dataset.totalPages)||1,currentPage:parseInt(n.dataset.currentPage)||1,maxVisible:parseInt(n.dataset.maxVisible)||7}))},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>{this.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("pagination",m),window.VanduoPagination=m})();(function(){"use strict";let m={parallaxElements:new Map,ticking:!1,isMobile:window.innerWidth<768,reducedMotion:window.matchMedia("(prefers-reduced-motion: reduce)").matches,isInitialized:!1,_onScroll:null,_onResize:null,init:function(e){if(this.reducedMotion)return;if(window.Vanduo.queryAll(e,".vd-parallax").forEach(n=>{n.dataset.parallaxInitialized||this.initParallax(n)}),this.isInitialized){this.refresh();return}this.isInitialized=!0,this.handleScroll(),this._onScroll=()=>{this.handleScroll()},window.addEventListener("scroll",this._onScroll,{passive:!0}),this._onResize=()=>{this.isMobile=window.innerWidth<768,this.updateAll()},window.addEventListener("resize",this._onResize)},initParallax:function(e){e.dataset.parallaxInitialized="true";let t=e.classList.contains("parallax-disable-mobile");if(t&&this.isMobile)return;let n=e.querySelectorAll(".vd-parallax-layer, .vd-parallax-bg"),s=this.getSpeed(e),i=e.classList.contains("parallax-horizontal")?"horizontal":"vertical";this.parallaxElements.set(e,{layers:Array.from(n),speed:s,direction:i,disableMobile:t}),this.updateParallax(e)},getSpeed:function(e){return e.classList.contains("parallax-slow")?.5:e.classList.contains("parallax-fast")?1.5:1},handleScroll:function(){this.ticking||(window.requestAnimationFrame(()=>{this.updateAll(),this.ticking=!1}),this.ticking=!0)},updateAll:function(){this.parallaxElements.forEach((e,t)=>{e.disableMobile&&this.isMobile||this.updateParallax(t)})},updateParallax:function(e){let t=this.parallaxElements.get(e);if(!t)return;let n=e.getBoundingClientRect(),s=window.innerHeight,i=n.top,o=n.height,r=(Math.max(0,Math.min(1,(s-i)/(s+o)))-.5)*t.speed*100;t.layers.forEach((c,l)=>{let d=c.dataset.parallaxSpeed?parseFloat(c.dataset.parallaxSpeed):1,u=r*d;t.direction==="horizontal"?c.style.transform=`translateX(${u}px)`:c.style.transform=`translateY(${u}px)`})},destroy:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&this.parallaxElements.has(t)&&(this.parallaxElements.get(t).layers.forEach(s=>{s.style.transform=""}),this.parallaxElements.delete(t))},refresh:function(){this.updateAll()},destroyAll:function(){this.parallaxElements.forEach((e,t)=>{this.destroy(t)}),this.parallaxElements.clear(),this._onScroll&&(window.removeEventListener("scroll",this._onScroll),this._onScroll=null),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null),this.isInitialized=!1}};typeof window.Vanduo<"u"&&window.Vanduo.register("parallax",m),window.VanduoParallax=m})();(function(){"use strict";let m={getProgressBars:function(e){return window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,".vd-progress-bar[data-progress], .progress-bar[data-progress]"):Array.from(document.querySelectorAll(".vd-progress-bar[data-progress], .progress-bar[data-progress]"))},init:function(e){this.getProgressBars(e).forEach(n=>{n.dataset.progressInitialized||this.initProgressBar(n)})},initProgressBar:function(e){e.dataset.progressInitialized="true";let t=parseInt(e.dataset.progress)||0;this.setProgress(e,t,!1)},setProgress:function(e,t,n=!0){let s=typeof e=="string"?document.querySelector(e):e;if(!s)return;t=Math.max(0,Math.min(100,t)),n?s.style.transition="width var(--vd-transition-duration-slow) var(--vd-transition-ease)":(s.style.transition="none",setTimeout(()=>{s.style.transition=""},0)),s.style.width=t+"%",s.setAttribute("aria-valuenow",t),s.setAttribute("aria-valuemin",0),s.setAttribute("aria-valuemax",100);let i=s.querySelector(".vd-progress-text, .progress-text");i&&(i.textContent=t+"%"),s.dispatchEvent(new CustomEvent("progress:update",{bubbles:!0,detail:{value:t,max:100}})),t>=100&&s.dispatchEvent(new CustomEvent("progress:complete",{bubbles:!0,detail:{value:t,max:100}}))},animateProgress:function(e,t,n=1e3){let s=typeof e=="string"?document.querySelector(e):e;if(!s)return;let i=parseInt(s.style.width)||0,o=t-i,a=performance.now(),r=c=>{let l=c-a,d=Math.min(l/n,1),u=1-Math.pow(1-d,3),f=i+o*u;this.setProgress(s,f,!1),d<1&&requestAnimationFrame(r)};requestAnimationFrame(r)},show:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&(t.style.display="inline-block",t.setAttribute("aria-hidden","false"))},hide:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&(t.style.display="none",t.setAttribute("aria-hidden","true"))},toggle:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&(t.style.display==="none"||t.getAttribute("aria-hidden")==="true"?this.show(t):this.hide(t))},destroyAll:function(e){this.getProgressBars(e||document).filter(function(n){return n.dataset.progressInitialized==="true"}).forEach(n=>{delete n.dataset.progressInitialized})}};typeof window.Vanduo<"u"&&window.Vanduo.register("preloader",m),window.VanduoPreloader=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,"select.vd-custom-select-input, select[data-custom-select]").forEach(n=>{this.instances.has(n)||this.initSelect(n)})},initSelect:function(e){if(e.closest(".vd-custom-select-wrapper"))return;let t=[],n=document.createElement("div");n.className="custom-select-wrapper",e.parentNode.insertBefore(n,e),n.appendChild(e);let s=document.createElement("button");s.type="button",s.className="custom-select-button",s.setAttribute("aria-haspopup","listbox"),s.setAttribute("aria-expanded","false"),s.setAttribute("aria-labelledby",e.id||this.generateId(e));let i=document.createElement("div");if(i.className="custom-select-dropdown",i.setAttribute("role","listbox"),e.dataset.searchable==="true"){let l=document.createElement("div");l.className="custom-select-search";let d=document.createElement("input");d.type="text",d.className="input input-sm",d.placeholder="Search...",d.setAttribute("aria-label","Search options"),l.appendChild(d),i.appendChild(l);let u=h=>{this.filterOptions(i,h.target.value)},f=typeof debounce=="function"?debounce(u,150):u;d.addEventListener("input",f),t.push(()=>d.removeEventListener("input",f))}this.buildOptions(e,i,s),n.appendChild(s),n.appendChild(i),this.updateButtonText(e,s);let o=l=>{l.preventDefault(),l.stopPropagation(),this.toggleDropdown(s,i)};s.addEventListener("click",o),t.push(()=>s.removeEventListener("click",o));let a=l=>{!n.contains(l.target)&&i.classList.contains("is-open")&&this.closeDropdown(s,i)};document.addEventListener("click",a),t.push(()=>document.removeEventListener("click",a));let r=l=>{this.handleKeydown(l,e,s,i)};s.addEventListener("keydown",r),t.push(()=>s.removeEventListener("keydown",r));let c=()=>{this.updateButtonText(e,s),this.updateSelectedOptions(e,i)};e.addEventListener("change",c),t.push(()=>e.removeEventListener("change",c)),this.instances.set(e,{wrapper:n,button:s,dropdown:i,cleanup:t,typeaheadBuffer:"",typeaheadTimer:null})},buildOptions:function(e,t,n){let s=e.querySelectorAll("option"),i=document.createDocumentFragment();s.forEach((o,a)=>{if(o.parentElement.tagName==="OPTGROUP"){let c=o.parentElement;if(!t.querySelector(`[data-group="${c.label}"]`)){let l=document.createElement("div");l.className="custom-select-option-group",l.textContent=c.label,l.dataset.group=c.label,i.appendChild(l)}}if(o.value===""&&!o.textContent.trim())return;let r=document.createElement("div");r.className="custom-select-option",r.textContent=o.textContent,r.setAttribute("role","option"),r.setAttribute("data-value",o.value),r.setAttribute("data-index",a),o.selected&&(r.classList.add("is-selected"),r.setAttribute("aria-selected","true")),o.disabled&&(r.classList.add("is-disabled"),r.setAttribute("aria-disabled","true")),r.addEventListener("click",c=>{o.disabled||this.selectOption(e,o,r,n,t)}),i.appendChild(r)}),t.appendChild(i)},selectOption:function(e,t,n,s,i){e.multiple?(t.selected=!t.selected,n.classList.toggle("is-selected"),n.setAttribute("aria-selected",t.selected)):(e.value=t.value,e.dispatchEvent(new Event("change",{bubbles:!0})),this.closeDropdown(s,i)),this.updateButtonText(e,s)},updateButtonText:function(e,t){if(e.multiple){let n=Array.from(e.selectedOptions);n.length===0?t.textContent=e.dataset.placeholder||"Select options...":n.length===1?t.textContent=n[0].textContent:t.textContent=`${n.length} selected`}else{let n=e.options[e.selectedIndex];t.textContent=n?n.textContent:e.dataset.placeholder||"Select..."}},updateSelectedOptions:function(e,t){let n=t.querySelectorAll(".custom-select-option"),s=Array.from(e.selectedOptions).map(i=>i.value);n.forEach(i=>{let o=i.dataset.value;s.includes(o)?(i.classList.add("is-selected"),i.setAttribute("aria-selected","true")):(i.classList.remove("is-selected"),i.setAttribute("aria-selected","false"))})},toggleDropdown:function(e,t){t.classList.contains("is-open")?this.closeDropdown(e,t):this.openDropdown(e,t)},openDropdown:function(e,t){t.classList.add("is-open"),e.setAttribute("aria-expanded","true");let n=t.querySelector(".custom-select-option:not(.is-disabled)");n&&n.focus()},closeDropdown:function(e,t){t.classList.remove("is-open"),e.setAttribute("aria-expanded","false")},handleKeydown:function(e,t,n,s){let i=s.classList.contains("is-open"),o=Array.from(s.querySelectorAll(".custom-select-option:not(.is-disabled)")),a=o.findIndex(r=>r===document.activeElement);switch(e.key){case"Enter":case" ":if(e.preventDefault(),i&&a>=0){let r=o[a],c=t.options[parseInt(r.dataset.index)];this.selectOption(t,c,r,n,s)}else this.openDropdown(n,s);break;case"Escape":i&&(e.preventDefault(),this.closeDropdown(n,s),n.focus());break;case"ArrowDown":if(e.preventDefault(),!i)this.openDropdown(n,s);else{let r=a<o.length-1?a+1:0;o[r].focus()}break;case"ArrowUp":if(e.preventDefault(),i){let r=a>0?a-1:o.length-1;o[r].focus()}break;case"Home":i&&(e.preventDefault(),o[0].focus());break;case"End":i&&(e.preventDefault(),o[o.length-1].focus());break;default:if(i&&e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey){let r=this.instances.get(t);if(!r)break;clearTimeout(r.typeaheadTimer),r.typeaheadBuffer+=e.key.toLowerCase();let c=o.find(l=>l.textContent.trim().toLowerCase().startsWith(r.typeaheadBuffer));c&&c.focus(),r.typeaheadTimer=setTimeout(()=>{r.typeaheadBuffer=""},500)}break}},filterOptions:function(e,t){let n=e.querySelectorAll(".vd-custom-select-option"),s=t.toLowerCase();n.forEach(i=>{i.textContent.toLowerCase().includes(s)?i.style.display="block":i.style.display="none"})},generateId:function(e){if(e.id)return e.id;let t="select-"+Math.random().toString(36).substr(2,9);return e.id=t,t},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),t.wrapper&&t.wrapper.parentNode&&(t.wrapper.parentNode.insertBefore(e,t.wrapper),t.wrapper.parentNode.removeChild(t.wrapper)),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>{this.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("select",m)})();(function(){"use strict";let m={sidenavs:new Map,breakpoint:992,restoreDelayMs:450,__vanduoScopedDestroyAll:!0,_globalCleanups:[],_resizeCleanup:null,isFixedVariant:function(e){return e.classList.contains("vd-sidenav-fixed")||e.classList.contains("sidenav-fixed")},isPushVariant:function(e){return e.classList.contains("vd-sidenav-push")||e.classList.contains("sidenav-push")},isRightVariant:function(e){return e.classList.contains("vd-sidenav-right")||e.classList.contains("sidenav-right")},getPortalState:function(e){return e._vdPortalState||(e._vdPortalState={originalParent:null,originalNextSibling:null,placeholder:null,restoreTimer:null,restoreHandler:null}),e._vdPortalState},cancelScheduledRestore:function(e){let t=this.getPortalState(e);t.restoreHandler&&(e.removeEventListener("transitionend",t.restoreHandler),t.restoreHandler=null),t.restoreTimer&&(window.clearTimeout(t.restoreTimer),t.restoreTimer=null)},portalToBody:function(e){if(!e)return;if(e.parentNode===document.body){this.cancelScheduledRestore(e);return}let t=this.getPortalState(e);this.cancelScheduledRestore(e),t.originalParent=e.parentNode,t.originalNextSibling=e.nextSibling,t.placeholder||(t.placeholder=document.createComment("vd-sidenav-placeholder")),t.originalParent.insertBefore(t.placeholder,e),document.body.appendChild(e),e.dataset.vdPortaled="true"},restoreFromPortal:function(e){if(!e)return;let t=this.getPortalState(e);if(this.cancelScheduledRestore(e),!t.placeholder){delete e.dataset.vdPortaled;return}t.placeholder.parentNode?(t.placeholder.parentNode.insertBefore(e,t.placeholder),t.placeholder.parentNode.removeChild(t.placeholder)):t.originalParent&&t.originalParent.isConnected&&(t.originalNextSibling&&t.originalNextSibling.parentNode===t.originalParent?t.originalParent.insertBefore(e,t.originalNextSibling):t.originalParent.appendChild(e)),t.originalParent=null,t.originalNextSibling=null,t.placeholder=null,delete e.dataset.vdPortaled},scheduleRestoreFromPortal:function(e){if(!e||e.parentNode!==document.body)return;let t=this.getPortalState(e);this.cancelScheduledRestore(e);let n=()=>{this.restoreFromPortal(e)},s=i=>{i.target!==e||i.propertyName!=="transform"||n()};t.restoreHandler=s,e.addEventListener("transitionend",s),t.restoreTimer=window.setTimeout(()=>{n()},this.restoreDelayMs)},init:function(e){if(window.Vanduo.queryAll(e,".vd-sidenav, .vd-offcanvas").forEach(s=>{this.sidenavs.has(s)||this.initSidenav(s)}),(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,"[data-sidenav-toggle]"):document.querySelectorAll("[data-sidenav-toggle]")).forEach(s=>{if(s.dataset.sidenavToggleInitialized)return;s.dataset.sidenavToggleInitialized="true";let i=o=>{o.preventDefault();let a=s.dataset.sidenavToggle,r=document.querySelector(a);r&&this.toggle(r)};s.addEventListener("click",i),s._sidenavToggleCleanup=()=>s.removeEventListener("click",i)}),this.handleResize(),!this._resizeCleanup){let s=()=>{this.handleResize()};window.addEventListener("resize",s),this._resizeCleanup=()=>window.removeEventListener("resize",s)}},initSidenav:function(e){let t=e.getAttribute("data-vd-position");if(t){let r=e.classList.contains("vd-offcanvas")?"vd-offcanvas":"vd-sidenav";e.classList.add(r+"-"+t)}let n=this.createOverlay(e),s=e.querySelector(".vd-sidenav-close, .vd-offcanvas-close"),i=[];if(e.setAttribute("role","navigation"),e.setAttribute("aria-hidden","true"),s){let r=()=>{this.close(e)};s.addEventListener("click",r),i.push(()=>s.removeEventListener("click",r))}let o=()=>{e.dataset.backdrop!=="static"&&this.close(e)};n.addEventListener("click",o),i.push(()=>n.removeEventListener("click",o));let a=r=>{r.key==="Escape"&&e.classList.contains("is-open")&&e.dataset.keyboard!=="false"&&this.close(e)};document.addEventListener("keydown",a),i.push(()=>document.removeEventListener("keydown",a)),this.sidenavs.set(e,{overlay:n,cleanup:i})},createOverlay:function(e){let t=e.querySelector(".vd-sidenav-overlay");return t||(t=document.createElement("div"),t.className="vd-sidenav-overlay",document.body.appendChild(t)),t},open:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t||!this.sidenavs.has(t))return;let{overlay:n}=this.sidenavs.get(t);this.portalToBody(t),this.isFixedVariant(t)||n.classList.add("is-visible"),t.classList.add("is-open"),t.setAttribute("aria-hidden","false"),document.body.classList.add("body-sidenav-open"),this.isPushVariant(t)&&this.handlePushVariant(t,!0),t.dispatchEvent(new CustomEvent("sidenav:open",{bubbles:!0}))},close:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t||!this.sidenavs.has(t))return;let{overlay:n}=this.sidenavs.get(t);n.classList.remove("is-visible"),t.classList.remove("is-open"),t.setAttribute("aria-hidden","true"),document.body.classList.remove("body-sidenav-open"),this.isPushVariant(t)&&this.handlePushVariant(t,!1),t.dispatchEvent(new CustomEvent("sidenav:close",{bubbles:!0})),this.scheduleRestoreFromPortal(t)},toggle:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&(t.classList.contains("is-open")?this.close(t):this.open(t))},handlePushVariant:function(e,t){let n=document.querySelector('main, .main-content, .content, [role="main"]')||document.body;t?window.innerWidth>=this.breakpoint&&(this.isRightVariant(e)?n.style.marginRight=e.offsetWidth+"px":n.style.marginLeft=e.offsetWidth+"px"):(n.style.marginLeft="",n.style.marginRight="")},handleResize:function(){this.sidenavs.forEach(({overlay:e},t)=>{window.innerWidth>=this.breakpoint?this.isFixedVariant(t)&&!t.classList.contains("is-open")&&(t.classList.add("is-open"),t.setAttribute("aria-hidden","false"),e.classList.remove("is-visible")):this.isFixedVariant(t)&&t.classList.contains("is-open")&&this.close(t)})},destroy:function(e){let t=this.sidenavs.get(e);t&&(e.classList.contains("is-open")&&(t.overlay.classList.remove("is-visible"),e.classList.remove("is-open"),e.setAttribute("aria-hidden","true"),document.body.classList.remove("body-sidenav-open")),this.restoreFromPortal(e),t.cleanup.forEach(n=>n()),t.overlay&&t.overlay.parentNode&&t.overlay.parentNode.removeChild(t.overlay),this.sidenavs.delete(e))},destroyAll:function(e){let t=window.Vanduo&&typeof window.Vanduo._normalizeRoot=="function"?window.Vanduo._normalizeRoot(e):e||document;this.sidenavs.forEach((s,i)=>{(t===document||t===i||typeof t.contains=="function"&&t.contains(i))&&this.destroy(i)}),(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(t,"[data-sidenav-toggle][data-sidenav-toggle-initialized]"):document.querySelectorAll("[data-sidenav-toggle][data-sidenav-toggle-initialized]")).forEach(s=>{s._sidenavToggleCleanup&&(s._sidenavToggleCleanup(),delete s._sidenavToggleCleanup),delete s.dataset.sidenavToggleInitialized}),t===document&&(this._resizeCleanup&&(this._resizeCleanup(),this._resizeCleanup=null),this._globalCleanups.forEach(s=>s()),this._globalCleanups=[])}};typeof window.Vanduo<"u"&&window.Vanduo.register("sidenav",m),window.VanduoSidenav=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-tabs, [data-tabs]").forEach(n=>{this.instances.has(n)||this.initTabs(n)})},initTabs:function(e){let t=e.querySelector('.vd-tab-list, [role="tablist"]'),n=e.querySelectorAll(".vd-tab-link, [data-tab]"),s=e.querySelectorAll(".vd-tab-pane, [data-tab-pane]");if(!t||n.length===0)return;let i=[];t.setAttribute("role","tablist"),n.forEach((a,r)=>{let c=this.getTabId(a,r),l=this.findPane(e,c,s);a.setAttribute("role","tab"),a.setAttribute("aria-selected",a.classList.contains("is-active")?"true":"false"),a.setAttribute("tabindex",a.classList.contains("is-active")?"0":"-1"),a.id||(a.id=`tab-btn-${c}`),l&&(l.setAttribute("role","tabpanel"),l.setAttribute("aria-labelledby",a.id),l.id||(l.id=`tab-pane-${c}`),a.setAttribute("aria-controls",l.id));let d=f=>{f.preventDefault(),!a.classList.contains("disabled")&&!a.disabled&&this.activateTab(e,a,n,s)};a.addEventListener("click",d),i.push(()=>a.removeEventListener("click",d));let u=f=>{this.handleKeydown(f,e,a,n,s)};a.addEventListener("keydown",u),i.push(()=>a.removeEventListener("keydown",u))}),!e.querySelector(".vd-tab-link.is-active, [data-tab].is-active")&&n.length>0&&this.activateTab(e,n[0],n,s),this.instances.set(e,{cleanup:i})},getTabId:function(e,t){return e.dataset.tabTarget||e.dataset.tab||e.getAttribute("href")?.replace("#","")||(typeof t=="number"?`tab-${t}`:e.id)},findPane:function(e,t,n){let s=e.querySelector(`[data-tab-pane="${t}"]`);return s||(s=e.querySelector(`#${t}`)),s||e.querySelectorAll(".vd-tab-link, [data-tab]").forEach((o,a)=>{this.getTabId(o,a)===t&&n[a]&&(s=n[a])}),s},activateTab:function(e,t,n,s){let i=Array.from(n).indexOf(t),o=this.getTabId(t,i);n.forEach(c=>{c.classList.remove("is-active"),c.setAttribute("aria-selected","false"),c.setAttribute("tabindex","-1"),c.parentElement&&c.parentElement.classList.contains("tab-item")&&c.parentElement.classList.remove("is-active")}),s.forEach(c=>{c.classList.remove("is-active")}),t.classList.add("is-active"),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0"),t.parentElement&&t.parentElement.classList.contains("tab-item")&&t.parentElement.classList.add("is-active");let a=this.findPane(e,o,s);a&&a.classList.add("is-active");let r=new CustomEvent("tab:change",{bubbles:!0,detail:{tab:t,pane:a,tabId:o}});e.dispatchEvent(r)},handleKeydown:function(e,t,n,s,i){let o=t.classList.contains("vd-tabs-vertical")||t.classList.contains("tabs-vertical"),a=Array.from(s).filter(l=>!l.classList.contains("disabled")&&!l.disabled),r=a.indexOf(n),c=r;switch(e.key){case"ArrowLeft":o||(e.preventDefault(),c=r>0?r-1:a.length-1);break;case"ArrowRight":o||(e.preventDefault(),c=r<a.length-1?r+1:0);break;case"ArrowUp":o&&(e.preventDefault(),c=r>0?r-1:a.length-1);break;case"ArrowDown":o&&(e.preventDefault(),c=r<a.length-1?r+1:0);break;case"Home":e.preventDefault(),c=0;break;case"End":e.preventDefault(),c=a.length-1;break;case"Enter":case" ":e.preventDefault(),this.activateTab(t,n,s,i);return;default:return}c!==r&&(a[c].focus(),this.activateTab(t,a[c],s,i))},show:function(e){let t;if(typeof e=="string"?t=document.querySelector(`[data-tab-target="${e}"], [data-tab="${e}"], [href="#${e}"]`):t=e,!t)return;let n=t.closest(".vd-tabs, [data-tabs]");if(!n)return;let s=n.querySelectorAll(".vd-tab-link, [data-tab]"),i=n.querySelectorAll(".vd-tab-pane, [data-tab-pane]");this.activateTab(n,t,s,i)},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>{this.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("tabs",m)})();(function(){"use strict";let m={STORAGE_KEYS:{PRIMARY:"vanduo-primary-color",NEUTRAL:"vanduo-neutral-color",RADIUS:"vanduo-radius",FONT:"vanduo-font-preference",THEME:"vanduo-theme-preference"},DEFAULTS:{PRIMARY_LIGHT:"black",PRIMARY_DARK:"amber",NEUTRAL:"charcoal",RADIUS:"0.5",FONT:"ubuntu",THEME:"system"},PRIMARY_COLORS:{black:{name:"Black",color:"#000000"},red:{name:"Red",color:"#fa5252"},orange:{name:"Orange",color:"#fd7e14"},amber:{name:"Amber",color:"#f59f00"},yellow:{name:"Yellow",color:"#fcc419"},lime:{name:"Lime",color:"#82c91e"},green:{name:"Green",color:"#40c057"},emerald:{name:"Emerald",color:"#20c997"},teal:{name:"Teal",color:"#12b886"},cyan:{name:"Cyan",color:"#22b8cf"},sky:{name:"Sky",color:"#3bc9db"},blue:{name:"Blue",color:"#228be6"},indigo:{name:"Indigo",color:"#4c6ef5"},violet:{name:"Violet",color:"#7950f2"},purple:{name:"Purple",color:"#be4bdb"},fuchsia:{name:"Fuchsia",color:"#f06595"},pink:{name:"Pink",color:"#e64980"},rose:{name:"Rose",color:"#ff8787"}},NEUTRAL_COLORS:{charcoal:{name:"Charcoal",color:"#0d1117"},slate:{name:"Slate",color:"#64748b"},gray:{name:"Gray",color:"#6b7280"},zinc:{name:"Zinc",color:"#71717a"},neutral:{name:"Neutral",color:"#737373"},stone:{name:"Stone",color:"#78716c"}},RADIUS_OPTIONS:["0","0.125","0.25","0.375","0.5"],FONT_OPTIONS:{"jetbrains-mono":{name:"JetBrains Mono",family:"'JetBrains Mono', monospace"},system:{name:"System Default",family:null},ubuntu:{name:"Ubuntu",family:"'Ubuntu', sans-serif"},lato:{name:"Lato",family:"'Lato', sans-serif"},"open-sans":{name:"Open Sans",family:"'Open Sans', sans-serif"}},THEME_MODES:["system","dark","light"],state:{primary:null,neutral:null,radius:null,font:null,theme:null,isOpen:!1},isInitialized:!1,_cleanup:[],_ownsDynamicPanel:!1,elements:{customizer:null,trigger:null,activeTrigger:null,triggers:[],panel:null,overlay:null},isRoot:function(e){return!!e&&(e===document||e.nodeType===1||e.nodeType===9||e.nodeType===11)},normalizeRoot:function(e){return this.isRoot(e)?e:document},queryAll:function(e,t){let n=this.normalizeRoot(e);if(typeof window.VanduoLifecycle<"u"&&typeof window.VanduoLifecycle.queryAll=="function")return window.VanduoLifecycle.queryAll(n,t);let s=[];if(n instanceof Element&&typeof n.matches=="function"&&n.matches(t)&&s.push(n),typeof n.querySelectorAll=="function"){let i=n.querySelectorAll(t);for(let o=0;o<i.length;o++)s.push(i[o])}return s},queryOne:function(e,t){let n=this.queryAll(e,t);return n.length?n[0]:null},getTriggers:function(e){return this.queryAll(e,"[data-theme-customizer-trigger]")},pruneTriggers:function(){this.elements.triggers=this.elements.triggers.filter(function(e){return e&&e.isConnected}),this.elements.trigger&&!this.elements.trigger.isConnected&&(this.elements.trigger=null),this.elements.activeTrigger&&!this.elements.activeTrigger.isConnected&&(this.elements.activeTrigger=null)},init:function(e){let t=this.normalizeRoot(e);if(this.isInitialized){this.bindExistingElements(t),this.bindTriggerEvents(t),this.bindPanelEvents(),this.updateUI();return}this.isInitialized=!0,this._cleanup=[],this.loadPreferences(),this.applyAllPreferences(),this.bindExistingElements(t),this.bindEvents(t)},addListener:function(e,t,n,s){e&&(e.addEventListener(t,n,s),this._cleanup.push(()=>e.removeEventListener(t,n,s)))},getDefaultPrimary:function(e){return e==="system"?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?this.DEFAULTS.PRIMARY_DARK:this.DEFAULTS.PRIMARY_LIGHT:e==="dark"?this.DEFAULTS.PRIMARY_DARK:this.DEFAULTS.PRIMARY_LIGHT},loadPreferences:function(){this.state.theme=this.getStorageValue(this.STORAGE_KEYS.THEME,this.DEFAULTS.THEME),this.state.primary=this.getStorageValue(this.STORAGE_KEYS.PRIMARY,this.getDefaultPrimary(this.state.theme)),this._normalizeDefaultPrimaryIfStaleWithStoredTheme(),this.state.neutral=this.getStorageValue(this.STORAGE_KEYS.NEUTRAL,this.DEFAULTS.NEUTRAL),this.state.radius=this.getStorageValue(this.STORAGE_KEYS.RADIUS,this.DEFAULTS.RADIUS),this.state.font=this.getStorageValue(this.STORAGE_KEYS.FONT,this.DEFAULTS.FONT)},savePreference:function(e,t){this.setStorageValue(e,t)},applyAllPreferences:function(){this.applyPrimary(this.state.primary),this.applyNeutral(this.state.neutral),this.applyRadius(this.state.radius),this.applyFont(this.state.font),this.applyTheme(this.state.theme)},applyPrimary:function(e){this.PRIMARY_COLORS[e]||(e=this.getDefaultPrimary(this.state.theme)),this.state.primary=e,document.documentElement.setAttribute("data-primary",e),this.savePreference(this.STORAGE_KEYS.PRIMARY,e),this.dispatchEvent("primary-change",{color:e})},applyNeutral:function(e){this.NEUTRAL_COLORS[e]||(e=this.DEFAULTS.NEUTRAL),this.state.neutral=e,document.documentElement.setAttribute("data-neutral",e),this.savePreference(this.STORAGE_KEYS.NEUTRAL,e),this.dispatchEvent("neutral-change",{neutral:e})},applyRadius:function(e){this.RADIUS_OPTIONS.includes(e)||(e=this.DEFAULTS.RADIUS),this.state.radius=e,document.documentElement.setAttribute("data-radius",e),document.documentElement.style.setProperty("--vd-radius-scale",e),this.savePreference(this.STORAGE_KEYS.RADIUS,e),this.dispatchEvent("radius-change",{radius:e})},applyFont:function(e){this.FONT_OPTIONS[e]||(e=this.DEFAULTS.FONT),this.state.font=e,e==="system"?document.documentElement.removeAttribute("data-font"):document.documentElement.setAttribute("data-font",e),this.savePreference(this.STORAGE_KEYS.FONT,e),window.FontSwitcher&&window.FontSwitcher.setPreference&&(window.FontSwitcher.state.preference=e,window.FontSwitcher.applyFont()),this.dispatchEvent("font-change",{font:e})},applyTheme:function(e){if(this.THEME_MODES.includes(e)||(e=this.DEFAULTS.THEME),this._isApplying=!0,this.isUsingDefaultPrimary()){let t=this.getDefaultPrimary(e);this.state.primary!==t&&this.applyPrimary(t)}if(this.state.theme=e,e==="system"?document.documentElement.removeAttribute("data-theme"):document.documentElement.setAttribute("data-theme",e),this.savePreference(this.STORAGE_KEYS.THEME,e),window.Vanduo&&window.Vanduo.components.themeSwitcher){let t=window.Vanduo.components.themeSwitcher;t.state&&t.state.preference!==e&&(t.state.preference=e,typeof t.setStorageValue=="function"&&t.setStorageValue(t.STORAGE_KEY,e),typeof t.updateUI=="function"&&t.updateUI())}this._isApplying=!1,this.dispatchEvent("mode-change",{mode:e})},dispatchEvent:function(e,t){let n=new CustomEvent("theme:"+e,{bubbles:!0,detail:t});document.dispatchEvent(n);let s=new CustomEvent("theme:change",{bubbles:!0,detail:{type:e,value:t[Object.keys(t)[0]],state:{...this.state}}});document.dispatchEvent(s)},bindExistingElements:function(e){let t=this.normalizeRoot(e);this.pruneTriggers();let n=this.getTriggers(t);n.forEach(i=>{this.elements.triggers.includes(i)||this.elements.triggers.push(i)}),!this.elements.trigger&&this.elements.triggers.length&&(this.elements.trigger=this.elements.triggers[0]);let s=this.queryOne(t,".vd-theme-customizer")||(this.elements.customizer&&typeof this.elements.customizer.contains=="function"?this.elements.customizer:null)||document.querySelector(".vd-theme-customizer");s instanceof Element?(this.elements.customizer=s,this.elements.trigger=this.elements.customizer.querySelector(".vd-theme-customizer-trigger")||this.elements.trigger,this.elements.panel=this.elements.customizer.querySelector(".vd-theme-customizer-panel"),this.elements.overlay=this.elements.customizer.querySelector(".vd-theme-customizer-overlay")):n.length&&!this.elements.panel&&this.createDynamicPanel(),this.updateUI()},createDynamicPanel:function(){if(!this.elements.triggers.length||this.elements.panel&&this.elements.panel.isConnected)return;this.elements.trigger=this.elements.triggers[0];let e=document.createElement("div");e.className="vd-theme-customizer-overlay";let t=document.createElement("div");t.className="vd-theme-customizer-panel",t.innerHTML=this.getPanelHTML(),document.body.appendChild(e),document.body.appendChild(t),this.elements.panel=t,this.elements.overlay=e,this._ownsDynamicPanel=!0,this.elements.customizer={contains:n=>t.contains(n)||this.elements.triggers.some(s=>s.contains(n))},this.positionPanel(),this.bindPanelEvents(),this.addListener(window,"resize",()=>this.positionPanel())},positionPanel:function(){if(!this.elements.panel||!this.elements.trigger)return;let e=this.elements.activeTrigger||this.elements.trigger;if(window.innerWidth<768)this.elements.panel.style.top="",this.elements.panel.style.right="",this.elements.panel.style.left="",this.elements.panel.style.height="",this.elements.panel.style.maxHeight="";else{let n=e.getBoundingClientRect(),s=320,i=n.bottom+8,o=window.innerWidth,a=o-n.right;o-a-s<8&&(a=o-s-8),this.elements.panel.style.top=i+"px",this.elements.panel.style.right=a+"px",this.elements.panel.style.left="",this.elements.panel.style.height="auto",this.elements.panel.style.maxHeight="calc(100vh - "+i+"px)"}},bindPanelEvents:function(){if(!this.elements.panel||this.elements.panel.getAttribute("data-customizer-initialized")==="true")return;this.elements.panel.setAttribute("data-customizer-initialized","true"),this.elements.panel.querySelectorAll("[data-color]").forEach(s=>{this.addListener(s,"click",()=>{this.applyPrimary(s.dataset.color),this.updateUI()})}),this.elements.panel.querySelectorAll("[data-neutral]").forEach(s=>{this.addListener(s,"click",()=>{this.applyNeutral(s.dataset.neutral),this.updateUI()})}),this.elements.panel.querySelectorAll("[data-radius]").forEach(s=>{this.addListener(s,"click",()=>{this.applyRadius(s.dataset.radius),this.updateUI()})});let e=this.elements.panel.querySelector("[data-customizer-font]");e&&this.addListener(e,"change",s=>{this.applyFont(s.target.value),this.updateUI()});let t=this.elements.panel.querySelector(".customizer-reset");t&&this.addListener(t,"click",()=>{this.reset()});let n=this.elements.panel.querySelector(".customizer-mobile-close");n&&this.addListener(n,"click",()=>{this.close()}),this.elements.overlay&&this.addListener(this.elements.overlay,"click",()=>{this.close()})},getPanelHTML:function(){let e=typeof escapeHtml=="function"?escapeHtml:function(a){let r=document.createElement("div");return r.textContent=String(a??""),r.innerHTML},t=function(a){let r=String(a??"").trim();return/^(#[0-9a-fA-F]{3,8}|rgb[a]?\([^)]{1,60}\)|hsl[a]?\([^)]{1,60}\)|var\(--[a-zA-Z0-9_-]{1,40}\))$/.test(r)?r:"#000000"},n="";for(let[a,r]of Object.entries(this.PRIMARY_COLORS))n+=`<button class="tc-color-swatch${a===this.state.primary?" is-active":""}" data-color="${e(a)}" style="--vd-swatch-color: ${t(r.color)}" title="${e(r.name)}"></button>`;let s="";for(let[a,r]of Object.entries(this.NEUTRAL_COLORS))s+=`<button class="tc-neutral-swatch${a===this.state.neutral?" is-active":""}" data-neutral="${e(a)}" style="--vd-swatch-color: ${t(r.color)}" title="${e(r.name)}"><span>${e(r.name)}</span></button>`;let i="";this.RADIUS_OPTIONS.forEach(a=>{i+=`<button class="tc-radius-btn${a===this.state.radius?" is-active":""}" data-radius="${e(a)}">${e(a)}</button>`});let o="";for(let[a,r]of Object.entries(this.FONT_OPTIONS))o+=`<option value="${e(a)}"${a===this.state.font?" selected":""}>${e(r.name)}</option>`;return`
|
|
6
6
|
<div class="tc-header">
|
|
7
7
|
<h3 class="tc-title">Customize Theme</h3>
|
|
8
8
|
<button class="customizer-mobile-close" aria-label="Close">
|
|
@@ -26,18 +26,18 @@ var ce=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var pe=Objec
|
|
|
26
26
|
<div class="tc-section">
|
|
27
27
|
<label class="tc-label">Border Radius</label>
|
|
28
28
|
<div class="tc-radius-group">
|
|
29
|
-
${
|
|
29
|
+
${i}
|
|
30
30
|
</div>
|
|
31
31
|
</div>
|
|
32
32
|
<div class="tc-section">
|
|
33
33
|
<label class="tc-label">Font Family</label>
|
|
34
34
|
<select class="tc-font-select" data-customizer-font>
|
|
35
|
-
${
|
|
35
|
+
${o}
|
|
36
36
|
</select>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
39
39
|
<div class="tc-footer">
|
|
40
40
|
<button class="customizer-reset btn btn-sm btn-outline">Reset to Defaults</button>
|
|
41
41
|
</div>
|
|
42
|
-
`},isUsingDefaultPrimary:function(){return this.state.primary===this.DEFAULTS.PRIMARY_LIGHT||this.state.primary===this.DEFAULTS.PRIMARY_DARK},_normalizeDefaultPrimaryIfStaleWithStoredTheme:function(){if(!this.isUsingDefaultPrimary())return;let e=this.getDefaultPrimary(this.state.theme);this.state.primary!==e&&(this.state.primary=e)},bindEvents:function(e){if(this.bindTriggerEvents(e),this.bindPanelEvents(),window.matchMedia){let t=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>{if(this.state.theme==="system"&&this.isUsingDefaultPrimary()){let s=this.getDefaultPrimary("system");s!==this.state.primary&&(this.applyPrimary(s),this.updateUI())}};t.addEventListener("change",n),this._cleanup.push(()=>t.removeEventListener("change",n))}this.addListener(document,"click",t=>{this.state.isOpen&&this.elements.customizer&&!this.elements.customizer.contains(t.target)&&this.close()}),this.addListener(document,"keydown",t=>{t.key==="Escape"&&this.state.isOpen&&this.close()})},bindTriggerEvents:function(e){(e?this.getTriggers(e):this.elements.triggers).forEach(n=>{if(n.getAttribute("data-customizer-trigger-initialized")==="true")return;let s=r=>{r.preventDefault(),r.stopPropagation(),this.elements.activeTrigger=n,this.elements.trigger=n,this.toggle()};n.addEventListener("click",s),n._themeCustomizerTriggerHandler=s,n.setAttribute("data-customizer-trigger-initialized","true")})},cleanupTrigger:function(e){!e||e.getAttribute("data-customizer-trigger-initialized")!=="true"||(e._themeCustomizerTriggerHandler&&(e.removeEventListener("click",e._themeCustomizerTriggerHandler),delete e._themeCustomizerTriggerHandler),e.setAttribute("aria-expanded","false"),e.removeAttribute("data-customizer-trigger-initialized"),this.elements.activeTrigger===e&&(this.elements.activeTrigger=null),this.elements.triggers=this.elements.triggers.filter(function(t){return t!==e}),this.elements.trigger===e&&(this.elements.trigger=this.elements.triggers[0]||null))},toggle:function(){this.state.isOpen?this.close():this.open()},open:function(){this.state.isOpen=!0,this.positionPanel(),this.elements.panel&&this.elements.panel.classList.add("is-open"),this.elements.triggers.forEach(e=>e.setAttribute("aria-expanded","false")),this.elements.trigger&&this.elements.trigger.setAttribute("aria-expanded","true"),this.elements.overlay&&this.elements.overlay.classList.add("is-active"),this.dispatchEvent("panel-open",{isOpen:!0})},close:function(){this.state.isOpen=!1,this.elements.panel&&this.elements.panel.classList.remove("is-open"),this.elements.triggers.forEach(e=>e.setAttribute("aria-expanded","false")),this.elements.overlay&&this.elements.overlay.classList.remove("is-active"),this.dispatchEvent("panel-close",{isOpen:!1})},updateUI:function(){if(!this.elements.panel)return;this.elements.panel.querySelectorAll("[data-color]").forEach(t=>{t.classList.toggle("is-active",t.dataset.color===this.state.primary)}),this.elements.panel.querySelectorAll("[data-neutral]").forEach(t=>{t.classList.toggle("is-active",t.dataset.neutral===this.state.neutral)}),this.elements.panel.querySelectorAll("[data-radius]").forEach(t=>{t.classList.toggle("is-active",t.dataset.radius===this.state.radius)});let e=this.elements.panel.querySelector("[data-customizer-font]");e&&(e.value=this.state.font)},reset:function(){this.applyTheme(this.DEFAULTS.THEME),this.applyPrimary(this.getDefaultPrimary(this.DEFAULTS.THEME)),this.applyNeutral(this.DEFAULTS.NEUTRAL),this.applyRadius(this.DEFAULTS.RADIUS),this.applyFont(this.DEFAULTS.FONT),this.updateUI(),this.dispatchEvent("reset",{state:{...this.state}})},getState:function(){return{...this.state}},setPreferences:function(e){e.primary&&this.applyPrimary(e.primary),e.neutral&&this.applyNeutral(e.neutral),e.radius&&this.applyRadius(e.radius),e.font&&this.applyFont(e.font),e.theme&&this.applyTheme(e.theme),this.updateUI()},getStorageValue:function(e,t){if(typeof window.safeStorageGet=="function")return window.safeStorageGet(e,t);try{let n=localStorage.getItem(e);return n!==null?n:t}catch{return t}},setStorageValue:function(e,t){if(typeof window.safeStorageSet=="function")return window.safeStorageSet(e,t);try{return localStorage.setItem(e,t),!0}catch{return!1}},destroyAll:function(e){let t=this.normalizeRoot(e);if(t!==document){this.getTriggers(t).forEach(n=>{this.cleanupTrigger(n)}),this.pruneTriggers(),this.elements.triggers.length||this.destroyAll(document);return}this._cleanup.forEach(n=>n()),this._cleanup=[],this.elements.panel&&this.elements.panel.removeAttribute("data-customizer-initialized"),this.elements.triggers.slice().forEach(n=>{this.cleanupTrigger(n)}),this._ownsDynamicPanel&&(this.elements.panel&&this.elements.panel.parentNode&&this.elements.panel.parentNode.removeChild(this.elements.panel),this.elements.overlay&&this.elements.overlay.parentNode&&this.elements.overlay.parentNode.removeChild(this.elements.overlay),this._ownsDynamicPanel=!1),this.close(),this.elements.customizer=null,this.elements.trigger=null,this.elements.activeTrigger=null,this.elements.triggers=[],this.elements.panel=null,this.elements.overlay=null,this.isInitialized=!1}};window.Vanduo&&window.Vanduo.register("themeCustomizer",m),window.ThemeCustomizer=m})();(function(){"use strict";let m={isInitialized:!1,_mediaQuery:null,_onMediaChange:null,getToggles:function(e){return window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(e,'[data-toggle="theme"]'):Array.from(document.querySelectorAll('[data-toggle="theme"]'))},init:function(e){if(this.STORAGE_KEY="vanduo-theme-preference",this.state={preference:this.getPreference()},this.isInitialized){this.applyTheme(),this.renderUI(e),this.updateUI(e);return}this.isInitialized=!0,this.applyTheme(),this.listenForSystemChanges(),this.renderUI(e)},getPreference:function(){return this.getStorageValue(this.STORAGE_KEY,"system")},setPreference:function(e){this.state.preference=e,this.setStorageValue(this.STORAGE_KEY,e),this.applyTheme(),window.ThemeCustomizer&&window.ThemeCustomizer.applyTheme&&!window.ThemeCustomizer._isApplying&&window.ThemeCustomizer.applyTheme(e),this.updateUI()},getStorageValue:function(e,t){if(typeof window.safeStorageGet=="function")return window.safeStorageGet(e,t);try{let n=localStorage.getItem(e);return n!==null?n:t}catch{return t}},setStorageValue:function(e,t){if(typeof window.safeStorageSet=="function")return window.safeStorageSet(e,t);try{return localStorage.setItem(e,t),!0}catch{return!1}},applyTheme:function(){let e=this.state.preference;e==="system"?document.documentElement.removeAttribute("data-theme"):document.documentElement.setAttribute("data-theme",e)},listenForSystemChanges:function(){this._mediaQuery&&this._onMediaChange||(this._mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this._onMediaChange=e=>{this.state.preference==="system"&&(this.applyTheme(),window.ThemeCustomizer&&typeof window.ThemeCustomizer.applyTheme=="function"&&!window.ThemeCustomizer._isApplying&&window.ThemeCustomizer.applyTheme("system"))},this._mediaQuery.addEventListener("change",this._onMediaChange))},renderUI:function(e){this.getToggles(e).forEach(n=>{if(n.getAttribute("data-theme-initialized")==="true"){n.tagName==="SELECT"&&(n.value=this.state.preference);return}if(n.tagName==="SELECT"){n.value=this.state.preference;let s=r=>{this.setPreference(r.target.value)};n.addEventListener("change",s),n._themeToggleHandler=s}else{let s=()=>{let r=["system","light","dark"],i=(r.indexOf(this.state.preference)+1)%r.length;this.setPreference(r[i])};n.addEventListener("click",s),n._themeToggleHandler=s}n.setAttribute("data-theme-initialized","true")})},updateUI:function(e){this.getToggles(e).forEach(n=>{if(n.tagName==="SELECT")n.value=this.state.preference;else{let s=n.querySelector(".theme-current-label");s&&(s.textContent=this.state.preference.charAt(0).toUpperCase()+this.state.preference.slice(1))}})},destroyAll:function(e){let t=e||document;this.getToggles(t).filter(function(s){return s.getAttribute("data-theme-initialized")==="true"}).forEach(s=>{if(s._themeToggleHandler){let r=s.tagName==="SELECT"?"change":"click";s.removeEventListener(r,s._themeToggleHandler),delete s._themeToggleHandler}s.removeAttribute("data-theme-initialized")}),t===document&&this._mediaQuery&&this._onMediaChange&&this._mediaQuery.removeEventListener("change",this._onMediaChange),t===document&&(this._mediaQuery=null,this._onMediaChange=null,this.isInitialized=!1)}};window.Vanduo&&window.Vanduo.register("themeSwitcher",m)})();(function(){"use strict";let m={defaults:{position:"top-right",duration:5e3,dismissible:!0,showProgress:!0,pauseOnHover:!0},containers:{},getContainer:function(e){if(this.containers[e])return this.containers[e];let t=document.createElement("div");return t.className=`vd-toast-container vd-toast-container-${e}`,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","false"),document.body.appendChild(t),this.containers[e]=t,t},show:function(e,t,n){typeof e=="string"&&(t&&typeof t=="object"?e=Object.assign({},t,{message:e}):e={message:e,type:t,duration:n});let s=Object.assign({},this.defaults,e),r=this.getContainer(s.position),i=document.createElement("div");i.className="vd-toast",s.type&&i.classList.add(`vd-toast-${s.type}`),s.solid&&i.classList.add("vd-toast-solid"),s.showProgress&&s.duration>0&&i.classList.add("vd-toast-with-progress");let o="";if(s.icon){let p=s.iconAllowSvg===!0,E=typeof sanitizeHtml=="function"?sanitizeHtml(s.icon,{allowSvg:p,allowStyle:!1}):escapeHtml(s.icon);o+=`<span class="vd-toast-icon">${E}</span>`}else s.type&&(o+=`<span class="vd-toast-icon">${this.getDefaultIcon(s.type)}</span>`);let a=typeof escapeHtml=="function"?escapeHtml:function(p){let E=document.createElement("div");return E.appendChild(document.createTextNode(p)),E.innerHTML};if(o+='<div class="vd-toast-content">',s.title&&(o+=`<div class="vd-toast-title">${a(String(s.title))}</div>`),s.message&&(o+=`<div class="vd-toast-message">${a(String(s.message))}</div>`),o+="</div>",s.dismissible&&(o+='<button type="button" class="vd-toast-close" aria-label="Close"></button>'),s.showProgress&&s.duration>0){let p=parseInt(s.duration,10)||0;o+=`<div class="vd-toast-progress" style="animation-duration: ${p}ms"></div>`}if(i.innerHTML=o,r.appendChild(i),i._toastCleanup=[],s.dismissible){let p=i.querySelector(".vd-toast-close"),E=()=>{this.dismiss(i)};p.addEventListener("click",E),i._toastCleanup.push(()=>p.removeEventListener("click",E))}let c=null,l=s.duration,f=null,d=()=>{if(s.duration>0){f=Date.now(),c=setTimeout(()=>{this.dismiss(i)},l),i._toastTimeoutId=c;let p=i.querySelector(".vd-toast-progress");p&&(p.style.animationPlayState="running")}},h=()=>{if(c){clearTimeout(c),c=null,i._toastTimeoutId=null,l-=Date.now()-f;let p=i.querySelector(".vd-toast-progress");p&&(p.style.animationPlayState="paused")}};s.pauseOnHover&&(i.addEventListener("mouseenter",h),i.addEventListener("mouseleave",d),i._toastCleanup.push(()=>i.removeEventListener("mouseenter",h),()=>i.removeEventListener("mouseleave",d))),requestAnimationFrame(()=>{i.classList.add("is-visible"),d()}),i._toastConfig=s;let u=new CustomEvent("toast:show",{bubbles:!0,detail:{toast:i,config:s}});return i.dispatchEvent(u),i},dismiss:function(e){if(!e||e.classList.contains("is-exiting"))return;e._toastTimeoutId&&(clearTimeout(e._toastTimeoutId),e._toastTimeoutId=null),e.classList.remove("is-visible"),e.classList.add("is-exiting");let t=new CustomEvent("toast:dismiss",{bubbles:!0,detail:{toast:e}});e.dispatchEvent(t);let n=()=>{e.removeEventListener("transitionend",n),e._toastCleanup&&(e._toastCleanup.forEach(s=>s()),delete e._toastCleanup),e.parentElement&&e.parentElement.removeChild(e)};e.addEventListener("transitionend",n),setTimeout(()=>{e._toastCleanup&&(e._toastCleanup.forEach(s=>s()),delete e._toastCleanup),e.parentElement&&e.parentElement.removeChild(e)},400)},destroyAll:function(){Object.keys(this.containers).forEach(e=>{let t=this.containers[e];if(!t)return;t.querySelectorAll(".vd-toast").forEach(s=>{s._toastTimeoutId&&clearTimeout(s._toastTimeoutId),s._toastCleanup&&(s._toastCleanup.forEach(r=>r()),delete s._toastCleanup),s.parentElement&&s.parentElement.removeChild(s)}),t.parentElement&&t.parentElement.removeChild(t)}),this.containers={}},dismissAll:function(e){e&&this.containers[e]?this.containers[e].querySelectorAll(".vd-toast").forEach(n=>this.dismiss(n)):Object.values(this.containers).forEach(t=>{t.querySelectorAll(".vd-toast").forEach(s=>this.dismiss(s))})},getDefaultIcon:function(e){return{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>'}[e]||""},success:function(e,t){return this.show(Object.assign({message:e,type:"success"},t))},error:function(e,t){return this.show(Object.assign({message:e,type:"error"},t))},warning:function(e,t){return this.show(Object.assign({message:e,type:"warning"},t))},info:function(e,t){return this.show(Object.assign({message:e,type:"info"},t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("toast",m),window.Toast=m})();(function(){"use strict";let m={tooltips:new Map,delayTimers:new Map,sanitizeHtml:function(e,t){return typeof sanitizeHtml=="function"?sanitizeHtml(e,t):e||""},init:function(e){window.Vanduo.queryAll(e,"[data-tooltip], [data-tooltip-html]").forEach(n=>{this.tooltips.has(n)||this.initTooltip(n)})},initTooltip:function(e){let t=this.createTooltip(e),n=[],s=()=>{this.showTooltip(e,t)},r=()=>{this.hideTooltip(e,t)},i=()=>{this.showTooltip(e,t)},o=()=>{this.hideTooltip(e,t)};e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",r),e.addEventListener("focus",i),e.addEventListener("blur",o),n.push(()=>e.removeEventListener("mouseenter",s),()=>e.removeEventListener("mouseleave",r),()=>e.removeEventListener("focus",i),()=>e.removeEventListener("blur",o)),this.tooltips.set(e,{tooltip:t,cleanup:n})},createTooltip:function(e){let t=document.createElement("div");t.className="vd-tooltip",t.setAttribute("role","tooltip"),t.setAttribute("aria-hidden","true");let n="tooltip-"+Math.random().toString(36).substr(2,9);t.id=n,e.setAttribute("aria-describedby",n);let s=e.dataset.tooltipHtml,r=e.dataset.tooltip;if(s){let a=e.hasAttribute("data-tooltip-allow-svg");t.innerHTML=this.sanitizeHtml(s,{allowSvg:a,allowStyle:!1}),t.classList.add("vd-tooltip-html")}else r&&(t.textContent=r);let i=e.dataset.tooltipPlacement||e.dataset.placement||"top";t.setAttribute("data-placement",i),t.classList.add(`vd-tooltip-${i}`),e.dataset.tooltipVariant&&t.classList.add(`vd-tooltip-${e.dataset.tooltipVariant}`),e.dataset.tooltipSize&&t.classList.add(`vd-tooltip-${e.dataset.tooltipSize}`);let o=parseInt(e.dataset.tooltipDelay)||0;return t.dataset.delay=o,document.body.appendChild(t),t},showTooltip:function(e,t){let n=parseInt(t.dataset.delay)||0;if(n>0){let s=setTimeout(()=>{this.positionTooltip(e,t),t.classList.add("is-visible"),t.setAttribute("aria-hidden","false")},n);this.delayTimers.set(e,s)}else this.positionTooltip(e,t),t.classList.add("is-visible"),t.setAttribute("aria-hidden","false")},hideTooltip:function(e,t){let n=this.delayTimers.get(e);n&&(clearTimeout(n),this.delayTimers.delete(e)),t.classList.remove("is-visible"),t.setAttribute("aria-hidden","true")},positionTooltip:function(e,t){let n=t.dataset.placement||"top",s=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop,o=window.pageXOffset||document.documentElement.scrollLeft,a=0,c=0;switch(n){case"top":a=s.top+i-r.height-8,c=s.left+o+s.width/2-r.width/2;break;case"bottom":a=s.bottom+i+8,c=s.left+o+s.width/2-r.width/2;break;case"left":a=s.top+i+s.height/2-r.height/2,c=s.left+o-r.width-8;break;case"right":a=s.top+i+s.height/2-r.height/2,c=s.right+o+8;break}let l=window.innerWidth,f=window.innerHeight,d=8;c<d?c=d:c+r.width>l-d&&(c=l-r.width-d),a<i+d?a=i+d:a+r.height>i+f-d&&(a=i+f-r.height-d),t.style.cssText=`position: absolute; top: 0; left: 0; transform: translate(${c}px, ${a}px);`},show:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t&&this.tooltips.has(t)){let{tooltip:n}=this.tooltips.get(t);this.showTooltip(t,n)}},hide:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t&&this.tooltips.has(t)){let{tooltip:n}=this.tooltips.get(t);this.hideTooltip(t,n)}},update:function(e,t,n=!1){let s=typeof e=="string"?document.querySelector(e):e;if(s&&this.tooltips.has(s)){let{tooltip:r}=this.tooltips.get(s);if(n){let i=s.hasAttribute("data-tooltip-allow-svg");r.innerHTML=this.sanitizeHtml(t,{allowSvg:i,allowStyle:!1}),r.classList.add("vd-tooltip-html")}else r.textContent=t,r.classList.remove("vd-tooltip-html")}},destroy:function(e){let t=this.tooltips.get(e);if(!t)return;let n=this.delayTimers.get(e);n&&(clearTimeout(n),this.delayTimers.delete(e)),t.cleanup.forEach(s=>s()),t.tooltip&&t.tooltip.parentNode&&t.tooltip.parentNode.removeChild(t.tooltip),this.tooltips.delete(e)},destroyAll:function(){this.tooltips.forEach((e,t)=>{this.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("tooltips",m),window.VanduoTooltips=m})();(function(){"use strict";let m={minQueryLength:2,maxResults:10,debounceMs:150,highlightTag:"mark",keyboardShortcut:!0,containerSelector:".vd-doc-search",inputSelector:".vd-doc-search-input",resultsSelector:".vd-doc-search-results",contentSelector:".doc-content section[id]",titleSelector:".demo-title, h2, h3",navSelector:".doc-nav-link",sectionSelector:".doc-nav-section",excludeFromContent:"pre, code, script, style",maxContentLength:500,data:null,categoryIcons:{"getting-started":"ph-rocket-launch",core:"ph-cube",components:"ph-puzzle-piece",interactive:"ph-cursor-click","data-display":"ph-table",feedback:"ph-bell",meta:"ph-info",default:"ph-file-text"},onSelect:null,onSearch:null,onOpen:null,onClose:null,emptyTitle:"No results found",emptyText:"Try different keywords or check spelling",placeholder:"Search..."},e={mark:!0,span:!0,strong:!0,em:!0};function t(o){return typeof window.VanduoLifecycle<"u"&&window.VanduoLifecycle.isRoot(o)}function n(o){return t(o)?o:document}function s(o){let a=typeof o=="string"?o.toLowerCase():"mark";return e[a]?a:"mark"}function r(o){let a=Object.assign({},m,o||{});a.root=n(a.root),a.highlightTag=s(a.highlightTag);let c={initialized:!1,index:[],results:[],activeIndex:-1,isOpen:!1,query:"",container:null,input:null,resultsContainer:null,debounceTimer:null,boundHandlers:{}};function l(x){if(window.Vanduo&&typeof window.Vanduo.queryAll=="function")return window.Vanduo.queryAll(a.root,x);let D=n(a.root);if(D===document)return Array.from(document.querySelectorAll(x));let y=[];return D instanceof Element&&D.matches(x)&&y.push(D),y.concat(Array.from(D.querySelectorAll(x)))}function f(x){let D=l(x);return D.length?D[0]:null}function d(x,D,...y){try{D(...y)}catch(T){console.warn('[Vanduo Search] Callback error in "'+x+'":',T)}}function h(x){if(c.resultsContainer)try{c.resultsContainer.innerHTML=x}catch(D){console.warn("[Vanduo Search] Failed to render results:",D)}}function u(){return c.initialized?ee:(c.container=f(a.containerSelector),!c.container||(c.input=c.container.querySelector(a.inputSelector),c.resultsContainer=c.container.querySelector(a.resultsSelector),!c.input||!c.resultsContainer)?(c.initialized=!1,null):(a.placeholder&&c.input.setAttribute("placeholder",a.placeholder),p(),S(),b(),c.initialized=!0,ee))}function p(){if(c.index=[],a.data&&Array.isArray(a.data)){a.data.forEach(function(y){c.index.push({id:y.id||C(y.title),title:y.title||"",category:y.category||"",categorySlug:C(y.category||""),content:y.content||"",keywords:y.keywords||g(y.title+" "+y.content),url:y.url||"#"+(y.id||C(y.title)),icon:y.icon||""})});return}let x=l(a.contentSelector),D=E();x.forEach(function(y){let T=y.id;if(!T)return;let A=y.querySelector(a.titleSelector),k=A?A.textContent.replace(/v[\d.]+/g,"").trim():T,z=D[T]||"Documentation",R=L(y),O=_(y,k),B=A?A.querySelector("i.ph"):null,X="";if(B&&B.classList){for(let G=0;G<B.classList.length;G++)if(B.classList[G].indexOf("ph-")===0){X=B.classList[G];break}}c.index.push({id:T,title:k,category:z,categorySlug:C(z),content:R,keywords:O,url:"#"+T,icon:X})})}function E(){let x={},D="Documentation";return l(a.navSelector+", "+a.sectionSelector).forEach(function(T){if(T.classList.contains("doc-nav-section"))D=T.textContent.trim();else{let A=T.getAttribute("href");if(A&&A.startsWith("#")){let k=A.substring(1);x[k]=D}}}),x}function L(x){let D=x.cloneNode(!0);D.querySelectorAll(a.excludeFromContent).forEach(function(A){A.remove()});let T=D.textContent||"";return T=T.replace(/\s+/g," ").trim(),T.substring(0,a.maxContentLength)}function _(x,D){let y=[];return D.toLowerCase().split(/\s+/).forEach(function(k){k.length>2&&y.push(k)}),x.querySelectorAll("code").forEach(function(k){let R=(k.textContent||"").match(/\.([\w-]+)/g);R&&R.forEach(function(O){y.push(O.substring(1).toLowerCase())})}),x.querySelectorAll("[data-tooltip], [data-modal]").forEach(function(k){k.getAttributeNames().filter(function(R){return R.startsWith("data-")}).forEach(function(R){y.push(R.replace("data-",""))})}),Array.from(new Set(y))}function g(x){return x.toLowerCase().split(/\s+/).filter(function(y){return y.length>2})}function C(x){return x.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function S(){c.boundHandlers.handleInput=function(x){V(x)},c.boundHandlers.handleFocus=function(){c.query.length>=a.minQueryLength&&J()},c.boundHandlers.handleKeydown=function(x){I(x)},c.boundHandlers.handleOutsideClick=function(x){c.container.contains(x.target)||U()},c.boundHandlers.handleGlobalKeydown=function(x){a.keyboardShortcut&&(x.metaKey||x.ctrlKey)&&x.key==="k"&&(x.preventDefault(),c.input.focus(),c.input.select())},c.boundHandlers.handleResultClick=function(x){let D=x.target.closest(".vd-doc-search-result");if(D){let y=parseInt(D.dataset.index,10);Z(y)}},c.input.addEventListener("input",c.boundHandlers.handleInput),c.input.addEventListener("focus",c.boundHandlers.handleFocus),c.input.addEventListener("keydown",c.boundHandlers.handleKeydown),document.addEventListener("click",c.boundHandlers.handleOutsideClick),document.addEventListener("keydown",c.boundHandlers.handleGlobalKeydown),c.resultsContainer.addEventListener("click",c.boundHandlers.handleResultClick)}function w(){c.input&&(c.input.removeEventListener("input",c.boundHandlers.handleInput),c.input.removeEventListener("focus",c.boundHandlers.handleFocus),c.input.removeEventListener("keydown",c.boundHandlers.handleKeydown)),document.removeEventListener("click",c.boundHandlers.handleOutsideClick),document.removeEventListener("keydown",c.boundHandlers.handleGlobalKeydown),c.resultsContainer&&c.resultsContainer.removeEventListener("click",c.boundHandlers.handleResultClick)}function b(){let x=c.resultsContainer.id||"search-results-"+Math.random().toString(36).substr(2,9);c.resultsContainer.id=x,c.input.setAttribute("role","combobox"),c.input.setAttribute("aria-autocomplete","list"),c.input.setAttribute("aria-controls",x),c.input.setAttribute("aria-expanded","false"),c.resultsContainer.setAttribute("role","listbox"),c.resultsContainer.setAttribute("aria-label","Search results")}function V(x){let D=x.target.value.trim();c.debounceTimer&&clearTimeout(c.debounceTimer),c.debounceTimer=setTimeout(function(){if(c.query=D,D.length<a.minQueryLength){U();return}c.results=q(D),c.activeIndex=-1,M(),J(),typeof a.onSearch=="function"&&d("onSearch",a.onSearch,D,c.results)},a.debounceMs)}function I(x){if(!c.isOpen){x.key==="ArrowDown"&&c.query.length>=a.minQueryLength&&(x.preventDefault(),c.results=q(c.query),M(),J());return}switch(x.key){case"ArrowDown":x.preventDefault(),K(1);break;case"ArrowUp":x.preventDefault(),K(-1);break;case"Enter":x.preventDefault(),c.activeIndex>=0?Z(c.activeIndex):c.results.length>0&&Z(0);break;case"Escape":x.preventDefault(),U();break;case"Tab":U();break}}function q(x){let D=x.toLowerCase().split(/\s+/).filter(function(T){return T.length>0}),y=[];return c.index.forEach(function(T){let A=0,k=T.title.toLowerCase(),z=T.category.toLowerCase(),R=T.content.toLowerCase();D.forEach(function(O){k.includes(O)&&(A+=100,k===O?A+=50:k.startsWith(O)&&(A+=25)),z.includes(O)&&(A+=50),T.keywords.some(function(X){return X.includes(O)})&&(A+=30),R.includes(O)&&(A+=10)}),A>0&&y.push({id:T.id,title:T.title,category:T.category,categorySlug:T.categorySlug,content:T.content,url:T.url,icon:T.icon,score:A})}),y.sort(function(T,A){return A.score-T.score}),y.slice(0,a.maxResults)}function M(){if(c.results.length===0){h(v());return}let x='<ul class="vd-doc-search-results-list" role="listbox">';c.results.forEach(function(D,y){let T=y===c.activeIndex,A=D.icon||N(D.categorySlug),k=F(D.content,c.query);x+='<li class="vd-doc-search-result'+(T?" is-active":"")+'" role="option" id="vd-doc-search-result-'+y+'" data-index="'+y+'" data-category="'+$(D.categorySlug)+'" aria-selected="'+T+'"><div class="vd-doc-search-result-icon"><i class="ph '+$(A)+'"></i></div><div class="vd-doc-search-result-content"><div class="vd-doc-search-result-title">'+H(D.title,c.query)+'</div><div class="vd-doc-search-result-category">'+$(D.category)+'</div><div class="vd-doc-search-result-excerpt">'+H(k,c.query)+"</div></div></li>"}),x+="</ul>",x+=P(),h(x)}function v(){return'<div class="vd-doc-search-empty"><div class="vd-doc-search-empty-icon"><i class="ph ph-magnifying-glass"></i></div><div class="vd-doc-search-empty-title">'+$(a.emptyTitle)+'</div><div class="vd-doc-search-empty-text">'+$(a.emptyText)+"</div></div>"}function P(){return'<div class="vd-doc-search-footer"><span class="vd-doc-search-footer-item"><kbd>\u2191</kbd><kbd>\u2193</kbd> to navigate</span><span class="vd-doc-search-footer-item"><kbd>\u21B5</kbd> to select</span><span class="vd-doc-search-footer-item"><kbd>esc</kbd> to close</span></div>'}function N(x){return a.categoryIcons[x]||a.categoryIcons.default||"ph-file-text"}function F(x,D){let y=D.toLowerCase().split(/\s+/),T=x.toLowerCase(),A=100,k=-1;for(let B=0;B<y.length;B++){let X=T.indexOf(y[B]);X!==-1&&(k===-1||X<k)&&(k=X)}if(k===-1)return x.substring(0,A)+"...";let z=Math.max(0,k-30),R=Math.min(x.length,k+A),O=x.substring(z,R);return z>0&&(O="..."+O),R<x.length&&(O=O+"..."),O}function H(x,D){if(!D)return $(x);let y=D.toLowerCase().split(/\s+/).filter(function(A){return A.length>0}),T=$(x);return y.forEach(function(A){if(A.length>50)return;let k=new RegExp("("+A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")","gi");T=T.replace(k,"<"+a.highlightTag+">$1</"+a.highlightTag+">")}),T}function $(x){let D=document.createElement("div");return D.textContent=x,D.innerHTML}function K(x){let D=c.activeIndex+x;D<0?D=c.results.length-1:D>=c.results.length&&(D=0),ae(D)}function ae(x){let D=c.resultsContainer.querySelector(".vd-doc-search-result.is-active");D&&(D.classList.remove("is-active"),D.setAttribute("aria-selected","false")),c.activeIndex=x;let y=c.resultsContainer.querySelector('[data-index="'+x+'"]');y&&(y.classList.add("is-active"),y.setAttribute("aria-selected","true"),c.input.setAttribute("aria-activedescendant","vd-doc-search-result-"+x),y.scrollIntoView({block:"nearest"}))}function Z(x){let D=c.results[x];if(!D)return;if(U(),c.input.value="",c.query="",typeof a.onSelect=="function"){d("onSelect",a.onSelect,D);return}let y=f(D.url)||document.querySelector(D.url);y&&(y.scrollIntoView({behavior:"smooth",block:"start"}),window.history.pushState(null,"",D.url),re(D.id))}function re(x){l(a.navSelector).forEach(function(y){y.classList.remove("active"),y.getAttribute("href")==="#"+x&&y.classList.add("active")})}function J(){c.isOpen||(c.isOpen=!0,c.resultsContainer.classList.add("is-open"),c.input.setAttribute("aria-expanded","true"),typeof a.onOpen=="function"&&d("onOpen",a.onOpen))}function U(){c.isOpen&&(c.isOpen=!1,c.activeIndex=-1,c.resultsContainer.classList.remove("is-open"),c.input.setAttribute("aria-expanded","false"),c.input.removeAttribute("aria-activedescendant"),typeof a.onClose=="function"&&d("onClose",a.onClose))}function ie(){w(),c.initialized=!1,c.index=[],c.results=[],c.isOpen=!1,c.query="",c.debounceTimer&&clearTimeout(c.debounceTimer),c.resultsContainer&&h("")}function te(){p()}function Q(x){Object.assign(a,x),a.root=n(a.root),a.highlightTag=s(a.highlightTag)}function oe(){return Object.assign({},a)}function j(){return c.index.slice()}let ee={init:u,destroy:ie,rebuild:te,search:q,open:J,close:U,setConfig:Q,getConfig:oe,getIndex:j,getContainer:function(){return c.container}};return ee}let i={create:function(o){let a=r(o);return a&&a.init(),a||null},_instance:null,config:Object.assign({},m),init:function(o,a){let c=t(o)?o:null,l=c?a:o;return this._instance&&this._instance.destroy(),l&&Object.assign(this.config,l),this._instance=r(Object.assign({},this.config,c?{root:c}:{})),this._instance?this._instance.init():null},destroy:function(o){o&&this._instance&&this._instance.getContainer()&&typeof window.VanduoLifecycle<"u"&&!window.VanduoLifecycle.isInRoot(o,this._instance.getContainer())||this._instance&&(this._instance.destroy(),this._instance=null)},destroyAll:function(o){this.destroy(o)},rebuild:function(){this._instance&&this._instance.rebuild()},search:function(o){return this._instance?this._instance.search(o):[]},open:function(){this._instance&&this._instance.open()},close:function(){this._instance&&this._instance.close()}};typeof window.Vanduo<"u"&&window.Vanduo.register("docSearch",i),window.Search=i,window.DocSearch=i,window.VanduoDocSearch=i})();(function(){"use strict";let m={instances:new Map,currentDrag:null,touchState:null,feedbackElement:null,containerSelector:".vd-draggable-container, .vd-draggable-container-vertical",init:function(e){window.Vanduo.queryAll(e,".vd-draggable, [data-draggable]").forEach(r=>{this.instances.has(r)||this.initDraggable(r)}),window.Vanduo.queryAll(e,this.containerSelector).forEach(r=>{this.instances.has(r)||this.initContainer(r)}),window.Vanduo.queryAll(e,".vd-drop-zone").forEach(r=>{this.instances.has(r)||this.initDropZone(r)}),this.createFeedbackElement()},initDraggable:function(e){let t=[];e.hasAttribute("draggable")||e.setAttribute("draggable","true"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.setAttribute("role","option"),e.setAttribute("aria-roledescription","draggable item"),e.setAttribute("aria-grabbed","false");let n=f=>{this.handleDragStart(f,e)};e.addEventListener("dragstart",n),t.push(()=>e.removeEventListener("dragstart",n));let s=f=>{this.handleDrag(f,e)};e.addEventListener("drag",s),t.push(()=>e.removeEventListener("drag",s));let r=f=>{this.handleDragEnd(f,e)};e.addEventListener("dragend",r),t.push(()=>e.removeEventListener("dragend",r));let i=f=>{this.handleTouchStart(f,e)};e.addEventListener("touchstart",i),t.push(()=>e.removeEventListener("touchstart",i));let o=f=>{this.handleTouchMove(f,e)};e.addEventListener("touchmove",o,{passive:!1}),t.push(()=>e.removeEventListener("touchmove",o));let a=f=>{this.handleTouchEnd(f,e)};e.addEventListener("touchend",a,{passive:!1}),t.push(()=>e.removeEventListener("touchend",a));let c=f=>{this.handleTouchEnd(f,e)};e.addEventListener("touchcancel",c),t.push(()=>e.removeEventListener("touchcancel",c));let l=f=>{this.handleKeydown(f,e)};e.addEventListener("keydown",l),t.push(()=>e.removeEventListener("keydown",l)),this.instances.set(e,{cleanup:t})},initContainer:function(e){e.setAttribute("role","listbox"),e.setAttribute("aria-label",e.getAttribute("aria-label")||"Draggable items"),e.querySelectorAll(".vd-draggable-item").forEach(o=>{this.instances.has(o)||this.initDraggable(o)});let n=[],s=o=>{o.preventDefault(),o.dataTransfer.dropEffect="move"},r=o=>{if(o.preventDefault(),o.dataTransfer.dropEffect="move",!this.currentDrag)return;let a=this.currentDrag.element;e.contains(a)&&(o.clientX===0&&o.clientY===0||this.handleReorder(e,a,o.clientX,o.clientY))},i=o=>{o.preventDefault()};e.addEventListener("dragenter",s),e.addEventListener("dragover",r),e.addEventListener("drop",i),n.push(()=>{e.removeEventListener("dragenter",s),e.removeEventListener("dragover",r),e.removeEventListener("drop",i)}),this.instances.set(e,{cleanup:n})},initDropZone:function(e){let t=[];e.setAttribute("role","region"),e.setAttribute("aria-dropeffect","move"),e.hasAttribute("aria-label")||e.setAttribute("aria-label","Drop zone");let n=o=>{o.preventDefault(),this.handleDragOver(o,e)};e.addEventListener("dragover",n),t.push(()=>e.removeEventListener("dragover",n));let s=o=>{o.preventDefault(),this.handleDragEnter(o,e)};e.addEventListener("dragenter",s),t.push(()=>e.removeEventListener("dragenter",s));let r=o=>{this.handleDragLeave(o,e)};e.addEventListener("dragleave",r),t.push(()=>e.removeEventListener("dragleave",r));let i=o=>{o.preventDefault(),this.handleDrop(o,e)};e.addEventListener("drop",i),t.push(()=>e.removeEventListener("drop",i)),this.instances.set(e,{cleanup:t})},createFeedbackElement:function(){if(!this.feedbackElement){let e=document.querySelector(".vd-drag-feedback");if(e){this.feedbackElement=e;return}this.feedbackElement=document.createElement("div"),this.feedbackElement.className="vd-drag-feedback hidden",this.feedbackElement.setAttribute("role","presentation"),document.body.appendChild(this.feedbackElement)}},handleDragStart:function(e,t){t.classList.add("is-dragging"),t.setAttribute("aria-grabbed","true"),this.currentDrag={element:t,initialPosition:{x:e.clientX,y:e.clientY},initialBounds:t.getBoundingClientRect(),data:this.getData(t)},e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",this.currentDrag.data),t.dispatchEvent(new CustomEvent("draggable:start",{bubbles:!0,detail:{element:t,data:this.currentDrag.data,position:{x:e.clientX,y:e.clientY}}}))},handleDrag:function(e,t){this.currentDrag&&t.dispatchEvent(new CustomEvent("draggable:drag",{bubbles:!0,detail:{element:t,data:this.currentDrag.data,position:{x:e.clientX,y:e.clientY},delta:{x:e.clientX-this.currentDrag.initialPosition.x,y:e.clientY-this.currentDrag.initialPosition.y}}}))},handleDragEnd:function(e,t){t.classList.remove("is-dragging"),t.classList.add("is-dropped"),setTimeout(()=>t.classList.remove("is-dropped"),300),t.setAttribute("aria-grabbed","false"),this.feedbackElement&&this.feedbackElement.classList.add("hidden");let n=this.currentDrag?.data||this.getData(t),s=this.currentDrag?.initialPosition||{x:0,y:0};t.dispatchEvent(new CustomEvent("draggable:end",{bubbles:!0,detail:{element:t,data:n,position:{x:e.clientX,y:e.clientY},delta:{x:e.clientX-s.x,y:e.clientY-s.y}}})),this.currentDrag=null},handleTouchStart:function(e,t){let n=e.touches[0],s=t.getBoundingClientRect();this.touchState={element:t,startX:n.clientX,startY:n.clientY,lastX:n.clientX,lastY:n.clientY,offsetX:n.clientX-s.left,offsetY:n.clientY-s.top,startTime:Date.now(),isDragging:!1}},handleTouchMove:function(e,t){if(!this.touchState)return;let n=e.touches[0];this.touchState.lastX=n.clientX,this.touchState.lastY=n.clientY;let s=n.clientX-this.touchState.startX,r=n.clientY-this.touchState.startY;if((Math.abs(s)>10||Math.abs(r)>10)&&(e.cancelable&&e.preventDefault(),this.touchState.isDragging||(this.touchState.isDragging=!0,t.classList.add("is-dragging"),t.setAttribute("aria-grabbed","true"),this.currentDrag={element:t,initialPosition:{x:this.touchState.startX,y:this.touchState.startY},initialBounds:t.getBoundingClientRect(),data:this.getData(t),offsetX:this.touchState.offsetX,offsetY:this.touchState.offsetY},t.dispatchEvent(new CustomEvent("draggable:start",{bubbles:!0,detail:{element:t,data:this.currentDrag.data,position:{x:n.clientX,y:n.clientY}}}))),this.updateFeedback(n.clientX,n.clientY),this.currentDrag)){t.dispatchEvent(new CustomEvent("draggable:drag",{bubbles:!0,detail:{element:t,data:this.currentDrag.data,position:{x:n.clientX,y:n.clientY},delta:{x:s,y:r}}})),this.updateTouchDropZone(n.clientX,n.clientY);let i=t.closest(this.containerSelector);i&&i.contains(t)&&this.handleReorder(i,t,n.clientX,n.clientY)}},handleTouchEnd:function(e,t){if(this.touchState&&this.touchState.isDragging){e.cancelable&&e.preventDefault();let n=e.changedTouches?.[0],s={x:n?.clientX??this.touchState.lastX??this.touchState.startX,y:n?.clientY??this.touchState.lastY??this.touchState.startY},r=this.resolveDropZoneAtPoint(s.x,s.y)||this.touchState.overZone;r?this.dispatchDrop(r,s):this.touchState.overZone&&this.touchState.overZone.classList.remove("is-drag-over"),t.classList.remove("is-dragging"),t.classList.add("is-dropped"),t.setAttribute("aria-grabbed","false"),setTimeout(()=>t.classList.remove("is-dropped"),300),this.feedbackElement&&this.feedbackElement.classList.add("hidden");let i=this.currentDrag?.data||this.getData(t),o=this.touchState?.startX||0,a=this.touchState?.startY||0;t.dispatchEvent(new CustomEvent("draggable:end",{bubbles:!0,detail:{element:t,data:i,position:s,delta:{x:s.x-o,y:s.y-a}}}))}this.touchState=null,this.currentDrag=null},handleDragOver:function(e,t){e.preventDefault(),e.dataTransfer.dropEffect="move"},handleDragEnter:function(e,t){e.preventDefault(),t.classList.add("is-drag-over")},handleDragLeave:function(e,t){t.classList.remove("is-drag-over")},handleDrop:function(e,t){e.preventDefault(),this.dispatchDrop(t,{x:e.clientX,y:e.clientY})},resolveDropZoneAtPoint:function(e,t){if(!Number.isFinite(e)||!Number.isFinite(t))return null;if(typeof document.elementsFromPoint=="function"){let i=document.elementsFromPoint(e,t);for(let o of i){let a=o.closest(".vd-drop-zone");if(a)return a}}let n=document.elementFromPoint(e,t),s=n?n.closest(".vd-drop-zone"):null;if(s)return s;let r=document.querySelectorAll(".vd-drop-zone");for(let i of r){let o=i.getBoundingClientRect();if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)return i}return null},updateTouchDropZone:function(e,t){if(!this.touchState)return;let n=this.resolveDropZoneAtPoint(e,t),s=this.touchState.overZone||null;s&&s!==n&&s.classList.remove("is-drag-over"),n&&n!==s&&n.classList.add("is-drag-over"),this.touchState.overZone=n||null},dispatchDrop:function(e,t){e.classList.remove("is-drag-over"),e.dispatchEvent(new CustomEvent("draggable:drop",{bubbles:!0,detail:{zone:e,element:this.currentDrag?.element,data:this.currentDrag?.data,position:t}}))},handleReorder:function(e,t,n,s){let r=e.classList.contains("vd-draggable-container-vertical"),o=[...e.querySelectorAll(".vd-draggable-item:not(.is-dragging), .vd-draggable:not(.is-dragging)")].reduce((a,c)=>{let l=c.getBoundingClientRect(),f=r?s-l.top-l.height/2:n-l.left-l.width/2;return f<0&&f>a.offset?{offset:f,element:c}:a},{offset:Number.NEGATIVE_INFINITY}).element;o==null?e.appendChild(t):e.insertBefore(t,o)},handleKeydown:function(e,t){switch(e.key){case"Enter":case" ":e.preventDefault(),t.click();break;case"Escape":t.classList.contains("is-dragging")&&(t.classList.remove("is-dragging"),t.setAttribute("aria-grabbed","false"),this.feedbackElement&&this.feedbackElement.classList.add("hidden"),this.currentDrag=null);break;case"ArrowUp":case"ArrowLeft":{e.preventDefault();let n=t.previousElementSibling;n&&(n.classList.contains("vd-draggable")||n.classList.contains("vd-draggable-item"))&&(t.parentNode.insertBefore(t,n),t.focus(),t.dispatchEvent(new CustomEvent("draggable:reorder",{bubbles:!0,detail:{element:t,direction:"up"}})));break}case"ArrowDown":case"ArrowRight":{e.preventDefault();let n=t.nextElementSibling;n&&(n.classList.contains("vd-draggable")||n.classList.contains("vd-draggable-item"))&&(t.parentNode.insertBefore(n,t),t.focus(),t.dispatchEvent(new CustomEvent("draggable:reorder",{bubbles:!0,detail:{element:t,direction:"down"}})));break}}},getData:function(e){return e.dataset.draggable||e.textContent.trim()},updateFeedback:function(e,t){if(!this.currentDrag)return;this.feedbackElement.classList.remove("hidden");let n=this.currentDrag.initialBounds;this.feedbackElement.innerHTML="";let s=this.currentDrag.element.cloneNode(!0);this.feedbackElement.appendChild(s);let r=this.currentDrag.offsetX??20,i=this.currentDrag.offsetY??20;Object.assign(this.feedbackElement.style,{left:e-r+"px",top:t-i+"px",width:n.width+"px",height:n.height+"px"})},makeDraggable:function(e,t={}){let n=typeof e=="string"?document.querySelector(e):e;n&&!this.instances.has(n)&&(n.classList.add("vd-draggable"),n.setAttribute("draggable","true"),t.data&&(n.dataset.draggable=t.data),this.initDraggable(n))},removeDraggable:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&this.instances.has(t)&&(this.instances.get(t).cleanup.forEach(s=>s()),this.instances.delete(t),t.classList.remove("vd-draggable"),t.removeAttribute("draggable"),t.removeAttribute("data-draggable"))},destroy:function(e){this.removeDraggable(e)},destroyAll:function(){Array.from(this.instances.keys()).forEach(t=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("draggable",m),window.VanduoDraggable=m})();(function(){"use strict";let m=new Map;function e(d){return!!d&&(d===document||d.nodeType===1||d.nodeType===9||d.nodeType===11)}function t(d){return e(d)?d:document}function n(d,h){let u=t(d);return h instanceof Element?u===document?document.documentElement?document.documentElement.contains(h):document.contains(h):u===h?!0:typeof u.contains=="function"&&u.contains(h):!1}function s(d,h){let u=t(d),p=[];if(u instanceof Element&&typeof u.matches=="function"&&u.matches(h)&&p.push(u),typeof u.querySelectorAll=="function"){let E=u.querySelectorAll(h);for(let L=0;L<E.length;L++)p.push(E[L])}return p}function r(d){try{return new URL(d,window.location.href).origin===window.location.origin}catch{return!1}}function i(d,h){let p=new DOMParser().parseFromString(h.trim(),"text/html"),E=["SCRIPT","IFRAME","OBJECT","EMBED","FORM","BASE","LINK","META","STYLE"];for(let g of E){let C=p.querySelectorAll(g);for(let S=C.length-1;S>=0;S--)C[S].parentNode.removeChild(C[S])}function L(g){if(g.nodeType===Node.ELEMENT_NODE){let C=g.attributes;for(let w=C.length-1;w>=0;w--){let b=C[w].name.toLowerCase(),I=C[w].value.toLowerCase().trim();(b.startsWith("on")||I.startsWith("javascript:")||I.startsWith("data:")||I.startsWith("vbscript:"))&&g.removeAttribute(C[w].name)}let S=g.childNodes;for(let w=0;w<S.length;w++)L(S[w])}}L(p.body);let _=Array.from(p.body.childNodes);for(;d.firstChild;)d.removeChild(d.firstChild);_.forEach(function(g){d.appendChild(document.adoptNode(g))})}function o(){return'<div class="vd-skeleton-card" style="position:relative;min-height:200px;padding:2rem;overflow:hidden;"><div class="vd-skeleton vd-skeleton-heading-lg" style="margin-bottom:1.5rem;"></div><div class="vd-skeleton vd-skeleton-paragraph"><div class="vd-skeleton vd-skeleton-text"></div><div class="vd-skeleton vd-skeleton-text"></div><div class="vd-skeleton vd-skeleton-text"></div></div><div class="vd-dynamic-loader" style="position:absolute;inset:0;"><div class="vd-dynamic-loader-grid"><div class="vd-spinner vd-spinner-sm vd-spinner-success"></div><div class="vd-spinner vd-spinner-sm vd-spinner-warning"></div><div class="vd-spinner vd-spinner-sm vd-spinner-error"></div><div class="vd-spinner vd-spinner-sm vd-spinner-info"></div></div><span class="vd-dynamic-loader-text">Loading\u2026</span></div></div>'}function a(){return'<div class="vd-dynamic-loader" style="min-height:180px;display:flex;align-items:center;justify-content:center;"><div class="vd-dynamic-loader-grid"><div class="vd-spinner vd-spinner-sm vd-spinner-success"></div><div class="vd-spinner vd-spinner-sm vd-spinner-warning"></div><div class="vd-spinner vd-spinner-sm vd-spinner-error"></div><div class="vd-spinner vd-spinner-sm vd-spinner-info"></div></div><span class="vd-dynamic-loader-text">Loading\u2026</span></div>'}function c(d){return!d||d==="skeleton"?o():d==="spinner"?a():d}function l(d,h,u){d.dispatchEvent(new CustomEvent(h,{bubbles:!0,detail:u||{}}))}let f={observe:function(d,h,u){if(!(d instanceof Element)){console.warn("[VanduoLazyLoad] observe() requires a DOM Element.");return}if(typeof h!="function"){console.warn("[VanduoLazyLoad] observe() requires a callback function.");return}if(m.has(d))return;let p=u&&u.threshold!=null?u.threshold:0,E=u&&u.rootMargin?u.rootMargin:"0px",L=new IntersectionObserver(function(_,g){_.forEach(function(C){if(C.isIntersecting){g.unobserve(C.target),m.delete(C.target),typeof window.VanduoLifecycle<"u"&&window.VanduoLifecycle.has(C.target,"lazyLoad")&&window.VanduoLifecycle.unregister(C.target,"lazyLoad");try{h(C.target)}catch(S){console.error("[VanduoLazyLoad] Callback threw:",S)}}})},{threshold:p,rootMargin:E});m.set(d,L),typeof window.VanduoLifecycle<"u"&&!window.VanduoLifecycle.has(d,"lazyLoad")&&window.VanduoLifecycle.register(d,"lazyLoad",[()=>{f.unobserve(d,{skipLifecycle:!0})}]),L.observe(d)},unobserve:function(d,h){let u=h||{},p=m.get(d);p&&(p.unobserve(d),typeof p.disconnect=="function"&&p.disconnect(),m.delete(d)),!u.skipLifecycle&&typeof window.VanduoLifecycle<"u"&&window.VanduoLifecycle.has(d,"lazyLoad")&&window.VanduoLifecycle.unregister(d,"lazyLoad")},unobserveAll:function(){Array.from(m.keys()).forEach(function(h){f.unobserve(h)})},loadSection:function(d,h,u){if(typeof d!="string"||!d){console.warn("[VanduoLazyLoad] loadSection() requires a non-empty URL string.");return}if(!(h instanceof Element)){console.warn("[VanduoLazyLoad] loadSection() requires a DOM Element as containerEl.");return}if(!r(d)){console.error("[VanduoLazyLoad] loadSection() blocked cross-origin URL:",d);return}let p=u||{},E=c(p.placeholder);i(h,E),l(h,"lazysection:loading",{url:d}),this.observe(h,function(){let L=new window.AbortController,_=setTimeout(function(){L.abort()},1e4);window.fetch(d,{signal:L.signal}).then(function(g){if(clearTimeout(_),!g.ok)throw new Error("HTTP "+g.status);return g.text()}).then(function(g){i(h,g),l(h,"lazysection:loaded",{url:d}),typeof window.Vanduo<"u"&&window.Vanduo.init(h),typeof p.onLoaded=="function"&&p.onLoaded(h)}).catch(function(g){let C=document.createElement("div");C.className="vd-alert vd-alert-error",C.setAttribute("role","alert");let S=document.createElement("span");S.textContent="Failed to load content. ";let w=document.createElement("small");for(w.style.opacity="0.7",w.textContent=g.message,C.appendChild(S),C.appendChild(w);h.firstChild;)h.removeChild(h.firstChild);h.appendChild(C),l(h,"lazysection:error",{url:d,error:g}),console.error("[VanduoLazyLoad] loadSection failed:",g),typeof p.onError=="function"&&p.onError(g)})},{threshold:p.threshold,rootMargin:p.rootMargin})},init:function(d){let h=this;s(d,"[data-vd-lazy]").forEach(function(p){if(m.has(p)||p.dataset.vdLazyState==="loading"||p.dataset.vdLazyState==="loaded")return;let E=p.getAttribute("data-vd-lazy");if(!E)return;p.dataset.vdLazyState="loading";let L=p.getAttribute("data-vd-lazy-placeholder")||"skeleton";h.loadSection(E,p,{placeholder:L,onLoaded:function(){p.dataset.vdLazyState="loaded"},onError:function(){p.dataset.vdLazyState="error"}})})},destroy:function(d){this.unobserve(d)},destroyAll:function(d){let h=t(d);if(h===document){this.unobserveAll();return}Array.from(m.keys()).forEach(p=>{n(h,p)&&this.unobserve(p)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("lazyLoad",f,{aliases:["LazyLoad"]}),window.VanduoLazyLoad=f})();(function(){"use strict";let m={observers:new Map,init:function(e){window.Vanduo.queryAll(e,"[data-glass-scroll]").forEach(t=>{this.observers.has(t)||this.initElement(t)})},initElement:function(e){let t=e.dataset.glassSentinel,n;if(t&&(n=document.querySelector(t)),n||(n=e.previousElementSibling),!n){e.classList.add("is-glass-active");return}let s=new IntersectionObserver(r=>{r.forEach(i=>{e.classList.toggle("is-glass-active",!i.isIntersecting)})},{threshold:0,rootMargin:"0px"});s.observe(n),this.observers.set(e,s)},destroy:function(e){let t=this.observers.get(e);t&&(t.disconnect(),this.observers.delete(e))},destroyAll:function(){this.observers.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("glassScroll",m),window.VanduoGlassScroll=m})();(function(){"use strict";let e={instances:new Map,init:function(t){window.Vanduo.queryAll(t,".vd-morph, [data-vd-morph]").forEach(function(s){e.instances.has(s)||s.getAttribute("data-vd-morph")!=="manual"&&e.initInstance(s)})},initInstance:function(t){e._ensureLayers(t);let n=[],s=!1,r=function(i){s||(e._runMorph(t,i,function(){s=!1}),s=!0)};t.addEventListener("click",r),n.push(function(){t.removeEventListener("click",r)}),this.instances.set(t,{cleanup:n})},morph:function(t){t&&(this.instances.has(t)||this.initInstance(t),this._runMorph(t,null,null))},destroy:function(t){let n=this.instances.get(t);n&&(n.cleanup.forEach(function(s){s()}),this.instances.delete(t))},destroyAll:function(){this.instances.forEach(function(t,n){e.destroy(n)})},_ensureLayers:function(t){if(!t.querySelector(".vd-morph-wave")){let n=document.createElement("span");n.className="vd-morph-wave",n.setAttribute("aria-hidden","true"),t.insertBefore(n,t.firstChild)}if(!t.querySelector(".vd-morph-shine")){let n=document.createElement("span");n.className="vd-morph-shine",n.setAttribute("aria-hidden","true");let s=t.querySelector(".vd-morph-wave");s&&s.nextSibling?t.insertBefore(n,s.nextSibling):t.insertBefore(n,t.firstChild)}},_runMorph:function(t,n,s){let r=t.querySelector(".vd-morph-wave");if(r){let a=t.getBoundingClientRect(),c=a.left+a.width/2,l=a.top+a.height/2,f=n&&n.clientX||c,d=n&&n.clientY||l;r.style.left=f-a.left+"px",r.style.top=d-a.top+"px"}t.classList.add("is-morphing");let i=750,o=getComputedStyle(t).getPropertyValue("--vd-morph-duration");if(o){let a=parseFloat(o);isNaN(a)||(i=a*(o.indexOf("ms")!==-1?1:1e3))}setTimeout(function(){t.classList.remove("is-morphing");let a=t.querySelector(".vd-morph-current"),c=t.querySelector(".vd-morph-next");a&&c&&(a.classList.remove("vd-morph-current"),a.classList.add("vd-morph-next"),c.classList.remove("vd-morph-next"),c.classList.add("vd-morph-current")),typeof s=="function"&&s()},i)}};typeof window.Vanduo<"u"&&window.Vanduo.register("morph",e),window.VanduoMorph=e})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-expanding-cards").forEach(function(t){t.getAttribute("data-vd-expanding-cards")!=="manual"&&(m.instances.has(t)||m.initContainer(t))})},initContainer:function(e){let t=[],n=function(){return Array.prototype.slice.call(e.querySelectorAll(".vd-expanding-card"))},s=function(c){let l=n();!c||l.indexOf(c)===-1||(l.forEach(function(f){f.classList.toggle("is-active",f===c)}),c.focus({preventScroll:!0}))},r=function(c){let l=c.target,f=l.closest?l.closest(".vd-expanding-card"):null;!f||!e.contains(f)||s(f)},i=function(c){if(c.key!=="ArrowLeft"&&c.key!=="ArrowRight"&&c.key!=="Home"&&c.key!=="End")return;let l=n().filter(function(h){return h.offsetParent!==null||h.getClientRects().length>0});if(!l.length)return;let f=document.activeElement,d=l.indexOf(f);d<0&&(d=l.findIndex(function(h){return h.classList.contains("is-active")})),d<0&&(d=0),c.key==="ArrowLeft"?(c.preventDefault(),s(l[Math.max(0,d-1)])):c.key==="ArrowRight"?(c.preventDefault(),s(l[Math.min(l.length-1,d+1)])):c.key==="Home"?(c.preventDefault(),s(l[0])):c.key==="End"&&(c.preventDefault(),s(l[l.length-1]))};e.addEventListener("click",r),t.push(function(){e.removeEventListener("click",r)}),e.addEventListener("keydown",i),t.push(function(){e.removeEventListener("keydown",i)}),n().forEach(function(c){c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),c.setAttribute("role","button"),c.hasAttribute("aria-pressed")||c.setAttribute("aria-pressed",c.classList.contains("is-active")?"true":"false")});let o=function(){n().forEach(function(c){c.setAttribute("aria-pressed",c.classList.contains("is-active")?"true":"false")})},a=new MutationObserver(o);a.observe(e,{attributes:!0,subtree:!0,attributeFilter:["class"]}),t.push(function(){a.disconnect()}),o(),m.instances.set(e,{cleanup:t})},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(function(n){n()}),this.instances.delete(e))},destroyAll:function(){this.instances.forEach(function(e,t){m.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("expandingCards",m),window.VanduoExpandingCards=m})();(function(){"use strict";function n(o){let a=0;for(let c=0;c<o.length&&o[c].classList.contains("is-revealed");c++)a++;return a}function s(o){return o.parentElement||document.body}function r(o,a,c){a.forEach(function(I){I.classList.remove("is-revealed")});let l=s(o),f=l.querySelector("[data-vd-timeline-prev]"),d=l.querySelector("[data-vd-timeline-next]"),h=l.querySelector("[data-vd-timeline-play]"),u=l.querySelector("[data-vd-timeline-pause]"),p=null,E=!1,L=0;function _(){let I=n(a),q=a.length;if(f){let M=I===0;f.disabled=M,f.setAttribute("aria-disabled",M?"true":"false")}if(d){let M=I>=q;d.disabled=M,d.setAttribute("aria-disabled",M?"true":"false")}h&&h.setAttribute("aria-pressed",E?"true":"false"),u&&(u.disabled=!E)}function g(){let I=n(a);I<a.length&&a[I].classList.add("is-revealed"),_()}function C(){let I=n(a);I>0&&a[I-1].classList.remove("is-revealed"),_()}function S(){let I=++L;p=setTimeout(function(){if(p=null,!(!E||I!==L)){if(n(a)>=a.length){b();return}if(g(),n(a)>=a.length){b();return}S()}},800)}function w(){E||(E=!0,S(),_())}function b(){E=!1,L++,p&&(clearTimeout(p),p=null),_()}function V(I,q){if(!I)return;let M=function(v){v.preventDefault(),q()};I.addEventListener("click",M),c.push(function(){I.removeEventListener("click",M)})}return V(f,C),V(d,g),V(h,w),V(u,b),c.push(function(){b()}),_(),{stepNext:g,stepPrev:C,play:w,pause:b}}let i={instances:new Map,init:function(o){window.Vanduo.queryAll(o,".vd-timeline.vd-timeline-animated").forEach(function(a){i.instances.has(a)||i.initInstance(a)})},reinit:function(o){i.destroyAll(o),i.init(o)},initInstance:function(o){let a=[],c=Array.prototype.filter.call(o.children,function(h){return h.classList&&h.classList.contains("vd-timeline-item")});if(c.forEach(function(h,u){let p=Math.min(u,7);h.style.setProperty("--vd-timeline-reveal-delay",p*140+"ms")}),typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches){c.forEach(function(h){h.classList.add("is-revealed")}),i.instances.set(o,{cleanup:a});return}if(o.classList&&o.classList.contains("vd-timeline-playback")){let h=r(o,c,a);i.instances.set(o,{cleanup:a,playback:h});return}if(typeof IntersectionObserver>"u"){c.forEach(function(h){h.classList.add("is-revealed")}),i.instances.set(o,{cleanup:a});return}let d=new IntersectionObserver(function(h){h.forEach(function(u){u.isIntersecting&&(u.target.classList.add("is-revealed"),d.unobserve(u.target))})},{root:null,rootMargin:"0px 0px -10% 0px",threshold:.15});c.forEach(function(h){d.observe(h)}),a.push(function(){d.disconnect()}),i.instances.set(o,{cleanup:a})},destroy:function(o){let a=this.instances.get(o);a&&(a.cleanup.forEach(function(c){c()}),this.instances.delete(o))},destroyAll:function(o){let a=window.Vanduo&&typeof window.Vanduo._normalizeRoot=="function"?window.Vanduo._normalizeRoot(o):document;this.instances.forEach(function(c,l){a!==document&&a!==l&&(!a.contains||!a.contains(l))||i.destroy(l)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("timeline",i),window.VanduoTimeline=i})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-flow, .vd-carousel").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=e.querySelector(".vd-flow-track");if(!t)return;let n=Array.from(t.querySelectorAll(".vd-flow-slide"));if(n.length===0)return;let s=e.classList.contains("vd-flow-fade"),r=e.hasAttribute("data-vd-autoplay"),i=parseInt(e.getAttribute("data-vd-interval"),10)||5e3,o=e.getAttribute("data-vd-loop")!=="false",a={current:0,total:n.length,autoplayTimer:null,isFade:s,loop:o,isDragging:!1,startX:0,currentX:0,threshold:50},c=[];n.forEach((b,V)=>{b.setAttribute("role","group"),b.setAttribute("aria-roledescription","slide"),b.setAttribute("aria-label","Slide "+(V+1)+" of "+n.length),V===0&&b.classList.add("is-active")}),e.setAttribute("role","region"),e.setAttribute("aria-roledescription","carousel"),e.getAttribute("aria-label")||e.setAttribute("aria-label","Carousel");let l=document.createElement("div");l.setAttribute("aria-live","polite"),l.setAttribute("aria-atomic","true"),l.className="sr-only",l.style.cssText="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);",e.appendChild(l);let f=(b,V)=>{V===void 0&&(V=!0);let I=b;a.loop?I=(b%a.total+a.total)%a.total:I=Math.max(0,Math.min(b,a.total-1));let q=a.current;a.current=I,a.isFade?n.forEach((v,P)=>{v.classList.toggle("is-active",P===I)}):t.style.transform="translateX(-"+I*100+"%)",e.querySelectorAll(".vd-flow-indicator").forEach((v,P)=>{v.classList.toggle("is-active",P===I),v.setAttribute("aria-selected",P===I?"true":"false")}),n.forEach((v,P)=>{v.setAttribute("aria-hidden",P!==I?"true":"false")}),V&&(l.textContent="Slide "+(I+1)+" of "+a.total),e.dispatchEvent(new CustomEvent("flow:change",{detail:{current:I,previous:q,total:a.total}}))},d=()=>f(a.current+1),h=()=>f(a.current-1),u=e.querySelector(".vd-flow-prev"),p=e.querySelector(".vd-flow-next");if(u){let b=()=>h();u.addEventListener("click",b),c.push(()=>u.removeEventListener("click",b))}if(p){let b=()=>d();p.addEventListener("click",b),c.push(()=>p.removeEventListener("click",b))}e.querySelectorAll(".vd-flow-indicator").forEach((b,V)=>{b.setAttribute("role","tab"),b.setAttribute("aria-selected",V===0?"true":"false"),b.setAttribute("aria-label","Go to slide "+(V+1));let I=()=>f(V);b.addEventListener("click",I),c.push(()=>b.removeEventListener("click",I))});let L=b=>{b.key==="ArrowLeft"&&(h(),b.preventDefault()),b.key==="ArrowRight"&&(d(),b.preventDefault())};e.setAttribute("tabindex","0"),e.addEventListener("keydown",L),c.push(()=>e.removeEventListener("keydown",L));let _=b=>{a.isDragging=!0,a.startX=b.clientX||b.touches&&b.touches[0].clientX||0,a.currentX=a.startX,e.classList.add("is-dragging")},g=b=>{a.isDragging&&(a.currentX=b.clientX||b.touches&&b.touches[0].clientX||0)},C=()=>{if(!a.isDragging)return;a.isDragging=!1,e.classList.remove("is-dragging");let b=a.startX-a.currentX;Math.abs(b)>a.threshold&&(b>0?d():h())};e.addEventListener("mousedown",_),e.addEventListener("mousemove",g),e.addEventListener("mouseup",C),e.addEventListener("mouseleave",C),e.addEventListener("touchstart",_,{passive:!0}),e.addEventListener("touchmove",g,{passive:!0}),e.addEventListener("touchend",C),c.push(()=>e.removeEventListener("mousedown",_),()=>e.removeEventListener("mousemove",g),()=>e.removeEventListener("mouseup",C),()=>e.removeEventListener("mouseleave",C),()=>e.removeEventListener("touchstart",_),()=>e.removeEventListener("touchmove",g),()=>e.removeEventListener("touchend",C));let S=()=>{w(),a.autoplayTimer=setInterval(d,i)},w=()=>{a.autoplayTimer&&(clearInterval(a.autoplayTimer),a.autoplayTimer=null)};if(r){S();let b=()=>w(),V=()=>S();e.addEventListener("mouseenter",b),e.addEventListener("mouseleave",V),e.addEventListener("focusin",b),e.addEventListener("focusout",V),c.push(()=>e.removeEventListener("mouseenter",b),()=>e.removeEventListener("mouseleave",V),()=>e.removeEventListener("focusin",b),()=>e.removeEventListener("focusout",V),()=>w())}f(0,!1),this.instances.set(e,{cleanup:c,goTo:f,next:d,prev:h,getState:()=>({...a})})},goTo:function(e,t){let n=this.instances.get(e);n&&n.goTo(t)},next:function(e){let t=this.instances.get(e);t&&t.next()},prev:function(e){let t=this.instances.get(e);t&&t.prev()},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("flow",m),window.VanduoFlow=m})();(function(){"use strict";let m={instances:new Map,_globalCleanups:[],init:function(e){if(window.Vanduo.queryAll(e,"[data-vd-bubble], [data-vd-popover]").forEach(n=>{this.instances.has(n)||this.initInstance(n)}),this._globalCleanups.length===0){let n=r=>{this.instances.forEach((i,o)=>{!i.popover.contains(r.target)&&!o.contains(r.target)&&this.hide(o)})},s=r=>{r.key==="Escape"&&this.instances.forEach((i,o)=>this.hide(o))};document.addEventListener("click",n,!0),document.addEventListener("keydown",s),this._globalCleanups.push(()=>document.removeEventListener("click",n,!0),()=>document.removeEventListener("keydown",s))}},initInstance:function(e){let t=[],n=e.getAttribute("data-vd-bubble-placement")||e.getAttribute("data-vd-popover-placement")||"bottom",s=document.createElement("div");s.className="vd-bubble-content",s.setAttribute("role","dialog"),s.setAttribute("aria-modal","false"),s.setAttribute("data-placement",n);let r=e.getAttribute("data-vd-bubble-title")||e.getAttribute("data-vd-popover-title"),i=e.getAttribute("data-vd-bubble")||e.getAttribute("data-vd-popover")||"",o=e.getAttribute("data-vd-bubble-html")||e.getAttribute("data-vd-popover-html"),a=e.hasAttribute("data-vd-bubble-allow-svg")||e.hasAttribute("data-vd-popover-allow-svg");if(r){let d=document.createElement("div");d.className="vd-bubble-header";let h=document.createElement("span");h.textContent=r;let u=document.createElement("button");u.className="vd-bubble-close",u.setAttribute("aria-label","Close"),u.innerHTML="×",d.appendChild(h),d.appendChild(u),s.appendChild(d);let p=E=>{E.stopPropagation(),this.hide(e)};u.addEventListener("click",p),t.push(()=>u.removeEventListener("click",p))}let c=document.createElement("div");c.className="vd-bubble-body",o?typeof sanitizeHtml=="function"?c.innerHTML=sanitizeHtml(o,{allowSvg:a,allowStyle:!1}):c.textContent=o:c.textContent=i,s.appendChild(c),document.body.appendChild(s);let l="vd-bubble-"+Math.random().toString(36).slice(2,9);s.id=l,e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded","false"),e.setAttribute("aria-controls",l);let f=d=>{d.stopPropagation(),s.classList.contains("is-visible")?this.hide(e):(this.hideAll(),this.show(e))};e.addEventListener("click",f),t.push(()=>e.removeEventListener("click",f)),this.instances.set(e,{popover:s,cleanup:t,placement:n})},position:function(e,t,n){let s=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=10,o,a;switch(n){case"top":o=s.top-r.height-i+window.scrollY,a=s.left+(s.width-r.width)/2+window.scrollX;break;case"left":o=s.top+(s.height-r.height)/2+window.scrollY,a=s.left-r.width-i+window.scrollX;break;case"right":o=s.top+(s.height-r.height)/2+window.scrollY,a=s.right+i+window.scrollX;break;default:o=s.bottom+i+window.scrollY,a=s.left+(s.width-r.width)/2+window.scrollX}a=Math.max(8,Math.min(a,window.innerWidth-r.width-8)),o=Math.max(8,o),t.style.top=o+"px",t.style.left=a+"px"},show:function(e){let t=this.instances.get(e);if(!t)return;let{popover:n,placement:s}=t;n.style.display="block",n.classList.add("is-visible"),e.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>{this.position(e,n,s)}),e.dispatchEvent(new CustomEvent("bubble:show",{bubbles:!0,detail:{trigger:e,placement:s}}))},hide:function(e){let t=this.instances.get(e);t&&(t.popover.classList.remove("is-visible"),e.setAttribute("aria-expanded","false"),e.dispatchEvent(new CustomEvent("bubble:hide",{bubbles:!0,detail:{trigger:e}})))},hideAll:function(){this.instances.forEach((e,t)=>this.hide(t))},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),t.popover.parentNode&&t.popover.parentNode.removeChild(t.popover),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls"),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t)),this._globalCleanups.forEach(e=>e()),this._globalCleanups=[]}};typeof window.Vanduo<"u"&&window.Vanduo.register("bubble",m),window.VanduoBubble=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,"[data-vd-waypoint-nav], [data-vd-scrollspy-nav]").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=Array.from(e.querySelectorAll('a[href^="#"]'));if(t.length===0)return;let n=[],s=parseInt(e.getAttribute("data-vd-waypoint-offset")||"80",10),r=[];if(t.forEach(l=>{let f=l.getAttribute("href").slice(1),d=document.getElementById(f);d&&(d.setAttribute("data-vd-waypoint-section",""),r.push({id:f,link:l,section:d}))}),r.length===0)return;let i=new Set,o=l=>{t.forEach(d=>d.classList.remove("is-active"));let f=t.find(d=>d.getAttribute("href")==="#"+l);f&&(f.classList.add("is-active"),e.dispatchEvent(new CustomEvent("waypoint:change",{detail:{activeId:l,link:f}})))},a="-"+s+"px 0px -40% 0px",c=new IntersectionObserver(l=>{l.forEach(f=>{f.isIntersecting?i.add(f.target.id):i.delete(f.target.id)});for(let f=0;f<r.length;f++)if(i.has(r[f].id)){o(r[f].id);return}},{rootMargin:a,threshold:0});r.forEach(l=>c.observe(l.section)),t.forEach(l=>{let f=d=>{d.preventDefault();let h=l.getAttribute("href").slice(1),u=document.getElementById(h);u&&(u.scrollIntoView({behavior:"smooth"}),o(h))};l.addEventListener("click",f),n.push(()=>l.removeEventListener("click",f))}),n.push(()=>c.disconnect()),this.instances.set(e,{observer:c,cleanup:n,sections:r,setActive:o})},refresh:function(e){this.destroy(e),this.initInstance(e)},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("waypoint",m),window.VanduoWaypoint=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-ripple, [data-vd-ripple]").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=[],n=s=>{let r=e.getBoundingClientRect(),i=Math.max(r.width,r.height),o=(s.clientX||s.touches&&s.touches[0].clientX||r.left+r.width/2)-r.left-i/2,a=(s.clientY||s.touches&&s.touches[0].clientY||r.top+r.height/2)-r.top-i/2,c=document.createElement("span");c.className="vd-ripple-wave",c.style.width=i+"px",c.style.height=i+"px",c.style.left=o+"px",c.style.top=a+"px",e.appendChild(c),c.addEventListener("animationend",()=>{c.parentNode&&c.parentNode.removeChild(c)})};e.addEventListener("mousedown",n),e.addEventListener("touchstart",n,{passive:!0}),t.push(()=>e.removeEventListener("mousedown",n),()=>e.removeEventListener("touchstart",n)),this.instances.set(e,{cleanup:t})},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),e.querySelectorAll(".vd-ripple-wave").forEach(n=>n.remove()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("ripple",m),window.VanduoRipple=m})();(function(){"use strict";function m(n){if(!n||n===document.body)return!1;let s=window.getComputedStyle(n),r=s.overflowY,i=s.overflowX,o=/(auto|scroll|overlay)/.test(r)&&n.scrollHeight>n.clientHeight,a=/(auto|scroll|overlay)/.test(i)&&n.scrollWidth>n.clientWidth;return o||a}function e(n){let s=n.parentElement;for(;s&&s!==document.body&&s!==document.documentElement;){if(m(s))return s;s=s.parentElement}return null}let t={instances:new Map,init:function(n){window.Vanduo.queryAll(n,".vd-affix, .vd-sticky, [data-vd-affix]").forEach(r=>{this.instances.has(r)||this.initInstance(r)})},initInstance:function(n){let s=[],r=parseInt(n.getAttribute("data-vd-affix-offset")||"0",10),i=Number.isNaN(r)?0:r,o=e(n),a=!1,c=document.createElement("div");c.style.cssText="display:block;height:1px;margin-bottom:-1px;visibility:hidden;pointer-events:none;",n.parentNode.insertBefore(c,n),n.style.setProperty("--vd-affix-top-offset",i+"px");function l(){a||(a=!0,n.classList.add("is-stuck"),n.dispatchEvent(new CustomEvent("affix:stuck",{bubbles:!0,detail:{offset:i,root:o||window}})))}function f(){a&&(a=!1,n.classList.remove("is-stuck"),n.dispatchEvent(new CustomEvent("affix:unstuck",{bubbles:!0,detail:{offset:i,root:o||window}})))}let d=new IntersectionObserver(function(h){h.forEach(u=>{u.isIntersecting?f():l()})},{root:o,rootMargin:"-"+i+"px 0px 0px 0px",threshold:0});d.observe(c),s.push(()=>d.disconnect(),()=>{c.parentNode&&c.parentNode.removeChild(c)},()=>{n.classList.remove("is-stuck"),n.style.removeProperty("--vd-affix-top-offset")}),this.instances.set(n,{cleanup:s,observer:d,sentinel:c,scrollParent:o})},destroy:function(n){let s=this.instances.get(n);s&&(s.cleanup.forEach(r=>r()),n.classList.remove("is-stuck"),this.instances.delete(n))},destroyAll:function(){this.instances.forEach((n,s)=>this.destroy(s))}};typeof window.Vanduo<"u"&&window.Vanduo.register("affix",t),window.VanduoAffix=t})();(function(){"use strict";function m(n){let s=document.createElement("div");return s.textContent=n,s.innerHTML}function e(n,s){try{let r=new URL(n,window.location.href);return r.origin===window.location.origin?!0:s.includes(r.origin)}catch{return!1}}let t={instances:new Map,init:function(n){window.Vanduo.queryAll(n,"[data-vd-suggest], [data-vd-autocomplete]").forEach(r=>{this.instances.has(r)||this.initInstance(r)})},initInstance:function(n){let s=[],r=parseInt(n.getAttribute("data-vd-suggest-min-chars")||"1",10),i=n.getAttribute("data-vd-suggest-url")||"",a=(n.getAttribute("data-vd-suggest-allowlist")||"").split(",").map(M=>M.trim()).filter(Boolean),c=n.getAttribute("data-vd-suggest")||n.getAttribute("data-vd-autocomplete")||"",l=[];try{l=JSON.parse(c)}catch{l=c.split(",").map(v=>v.trim()).filter(Boolean)}let f=n.closest(".vd-suggest-wrapper, .vd-autocomplete-wrapper");f||(f=document.createElement("div"),f.className="vd-suggest-wrapper",n.parentNode.insertBefore(f,n),f.appendChild(n));let d=document.createElement("ul");d.className="vd-suggest-list",d.setAttribute("role","listbox");let h="vd-suggest-"+Math.random().toString(36).slice(2,9);d.id=h,f.appendChild(d),n.setAttribute("role","combobox"),n.setAttribute("aria-autocomplete","list"),n.setAttribute("aria-expanded","false"),n.setAttribute("aria-controls",h),n.setAttribute("autocomplete","off");let u=-1,p=[],E=null,L=(M,v)=>{if(d.innerHTML="",p=M,u=-1,M.length===0){let P=document.createElement("li");P.className="vd-suggest-empty",P.textContent="No results",d.appendChild(P);return}M.forEach((P,N)=>{let F=document.createElement("li");F.className="vd-suggest-item",F.setAttribute("role","option"),F.id=h+"-item-"+N;let H=typeof P=="object"&&(P.label||P.text)||String(P);if(v){let $=m(H),K=new RegExp("("+v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")","gi");F.innerHTML=$.replace(K,'<span class="vd-suggest-match">$1</span>')}else F.textContent=H;F.addEventListener("click",()=>C(N)),d.appendChild(F)})},_=()=>{d.classList.add("is-open"),n.setAttribute("aria-expanded","true")},g=()=>{d.classList.remove("is-open"),n.setAttribute("aria-expanded","false"),u=-1,n.removeAttribute("aria-activedescendant")},C=M=>{let v=p[M],P=typeof v=="object"&&(v.value||v.label)||String(v);n.value=P,g(),n.dispatchEvent(new CustomEvent("suggest:select",{detail:{value:P,item:v,index:M},bubbles:!0}))},S=M=>{let v=d.querySelectorAll(".vd-suggest-item");v.forEach(P=>P.classList.remove("is-highlighted")),M>=0&&M<v.length&&(u=M,v[M].classList.add("is-highlighted"),n.setAttribute("aria-activedescendant",v[M].id),v[M].scrollIntoView({block:"nearest"}))},w=async M=>{if(M.length<r){g();return}let v;if(i)try{if(!e(i,a))console.warn("[VanduoSuggest] Blocked non-allowlisted URL:",i),v=[];else{let P=i.includes("?")?"&":"?";v=await(await window.fetch(i+P+"q="+encodeURIComponent(M))).json()}}catch{v=[]}else{let P=M.toLowerCase();v=l.filter(N=>(typeof N=="object"&&(N.label||N.text)||String(N)).toLowerCase().includes(P))}L(v,M),v.length>0,_()},b=()=>{clearTimeout(E),E=setTimeout(()=>w(n.value),200)},V=M=>{if(!d.classList.contains("is-open")){M.key==="ArrowDown"&&(w(n.value),M.preventDefault());return}let v=p.length;switch(M.key){case"ArrowDown":M.preventDefault(),S(u<v-1?u+1:0);break;case"ArrowUp":M.preventDefault(),S(u>0?u-1:v-1);break;case"Enter":M.preventDefault(),u>=0&&C(u);break;case"Escape":g();break}},I=()=>{setTimeout(g,200)},q=()=>{n.value.length>=r&&w(n.value)};n.addEventListener("input",b),n.addEventListener("keydown",V),n.addEventListener("blur",I),n.addEventListener("focus",q),s.push(()=>n.removeEventListener("input",b),()=>n.removeEventListener("keydown",V),()=>n.removeEventListener("blur",I),()=>n.removeEventListener("focus",q),()=>clearTimeout(E),()=>{d.parentNode&&d.parentNode.removeChild(d)}),this.instances.set(n,{cleanup:s,list:d,close:g})},destroy:function(n){let s=this.instances.get(n);s&&(s.cleanup.forEach(r=>r()),this.instances.delete(n))},destroyAll:function(){this.instances.forEach((n,s)=>this.destroy(s))}};typeof window.Vanduo<"u"&&window.Vanduo.register("suggest",t),window.VanduoSuggest=t})();(function(){"use strict";let m={instances:new Map,rules:{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(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,s=document.querySelector('[name="'+n+'"]');return s?e===s.value:!1}catch{return!1}}},messages:{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"},init:function(e){window.Vanduo.queryAll(e,"[data-vd-validate], .vd-validate").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=[],n=e.getAttribute("data-vd-validate-mode")||"blur",s=e.querySelectorAll("[data-vd-rules]"),r=a=>{let l=(a.getAttribute("data-vd-rules")||"").split("|").map(h=>h.trim()).filter(Boolean),f=a.value,d=[];for(let h of l){let[u,...p]=h.split(":"),E=p.join(":"),L=this.rules[u];if(L&&!L(f,E)){let g=a.getAttribute("data-vd-msg-"+u)||this.messages[u]||"Invalid";E&&(g=g.replace("{0}",E)),d.push(g);break}}return this.setFieldState(a,d),d.length===0},i=()=>{let a=!0;return s.forEach(c=>{r(c)||(a=!1)}),a};s.forEach(a=>{if(n==="input"||n==="blur"){let c=n==="input"?"input":"blur",l=()=>r(a);if(a.addEventListener(c,l),t.push(()=>a.removeEventListener(c,l)),n==="blur"){let f=()=>{(a.classList.contains("is-invalid")||a.classList.contains("is-valid"))&&r(a)};a.addEventListener("input",f),t.push(()=>a.removeEventListener("input",f))}}});let o=a=>{let c=i();if(!c){a.preventDefault(),a.stopPropagation();let l=e.querySelector(".is-invalid");l&&l.focus()}e.dispatchEvent(new CustomEvent("validate:submit",{detail:{valid:c},bubbles:!0}))};e.addEventListener("submit",o),t.push(()=>e.removeEventListener("submit",o)),this.instances.set(e,{cleanup:t,validateAll:i,validateField:r})},setFieldState:function(e,t){let n=e.closest(".vd-form-group")||e.parentElement,s=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"),s||(s=document.createElement("div"),s.className="vd-validate-error",s.id="vd-err-"+Math.random().toString(36).slice(2,9),s.setAttribute("role","alert"),n.appendChild(s)),s.textContent=t[0],s.style.display="",e.setAttribute("aria-describedby",s.id)):e.value.trim()?(e.classList.add("is-valid"),e.removeAttribute("aria-invalid"),s&&(s.style.display="none")):(e.removeAttribute("aria-invalid"),s&&(s.style.display="none"))},validateForm:function(e){let t=this.instances.get(e);return t?t.validateAll():!1},addRule:function(e,t,n){this.rules[e]=t,n&&(this.messages[e]=n)},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("validate",m),window.VanduoValidate=m})();(function(){"use strict";let m=["Su","Mo","Tu","We","Th","Fr","Sa"],e=["January","February","March","April","May","June","July","August","September","October","November","December"];function t(u){return u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function n(u){let p="^",E=[],L=0;for(;L<u.length;){let _=u.slice(L);_.toLowerCase().startsWith("yyyy")?(p+="(\\d{4})",E.push("y"),L+=4):_.toLowerCase().startsWith("mm")?(p+="(\\d{2})",E.push("m"),L+=2):_.toLowerCase().startsWith("dd")?(p+="(\\d{2})",E.push("d"),L+=2):(p+=t(u[L]),L++)}return p+="$",{regex:new RegExp(p),order:E}}function s(u,p){if(!u||!p)return null;let{regex:E,order:L}=n(p),_=u.trim().match(E);if(!_)return null;let g,C,S,w=1;for(let V=0;V<L.length;V++){let I=L[V],q=parseInt(_[w++],10);if(Number.isNaN(q))return null;I==="y"?g=q:I==="m"?C=q-1:I==="d"&&(S=q)}if(g===void 0||C===void 0||S===void 0)return null;let b=new Date(g,C,S);return b.getFullYear()!==g||b.getMonth()!==C||b.getDate()!==S?null:b}function r(u,p){let E=String(u.getFullYear()),L=String(u.getMonth()+1).padStart(2,"0"),_=String(u.getDate()).padStart(2,"0"),g="",C=0;for(;C<p.length;){let S=p.slice(C);S.toLowerCase().startsWith("yyyy")?(g+=E,C+=4):S.toLowerCase().startsWith("mm")?(g+=L,C+=2):S.toLowerCase().startsWith("dd")?(g+=_,C+=2):(g+=p[C],C++)}return g}function i(u){return u.getFullYear()+"-"+String(u.getMonth()+1).padStart(2,"0")+"-"+String(u.getDate()).padStart(2,"0")}function o(u,p){let E=new Date(u.getFullYear(),u.getMonth(),u.getDate());return E.setDate(E.getDate()+p),E}function a(u,p){return new Date(u.getFullYear(),u.getMonth()+p,u.getDate())}function c(u){if(!u||typeof u!="string")return null;let p=/^(\d{4})-(\d{2})-(\d{2})$/.exec(u.trim());if(!p)return null;let E=+p[1],L=+p[2]-1,_=+p[3],g=new Date(E,L,_);return g.getFullYear()!==E||g.getMonth()!==L||g.getDate()!==_?null:g}function l(u){let p=new Date(u.getFullYear(),u.getMonth(),u.getDate()),E=p.getDay();return p.setDate(p.getDate()-E),p}function f(u){let p=new Date(u.getFullYear(),u.getMonth(),u.getDate()),E=p.getDay();return p.setDate(p.getDate()+(6-E)),p}function d(u,p,E){let _=E??4,g=u.getBoundingClientRect();p.style.minWidth=Math.max(g.width,0)+"px";let C=g.bottom+_,S=g.left;p.style.top=C+"px",p.style.left=S+"px";let w=p.getBoundingClientRect();w.bottom>window.innerHeight-8&&g.top-w.height>8&&(C=g.top-w.height-_,p.style.top=C+"px");let b=p.getBoundingClientRect();S=g.left,S+b.width>window.innerWidth-8&&(S=window.innerWidth-b.width-8),p.style.left=Math.max(8,S)+"px"}let h={instances:new Map,init:function(u){window.Vanduo.queryAll(u,"[data-vd-datepicker]").forEach(E=>{this.instances.has(E)||this.initInstance(E)})},initInstance:function(u){let p=[],E=u.getAttribute("data-vd-datepicker-format")||"YYYY-MM-DD",L=u.getAttribute("data-vd-datepicker-min"),_=u.getAttribute("data-vd-datepicker-max"),g=L?c(L):null,C=_?c(_):null,S=new Date,w=S.getFullYear(),b=S.getMonth(),V=null,I="days",q=null,M=!1,v=y=>!!(g&&new Date(y.getFullYear(),y.getMonth(),y.getDate()).getTime()<g.getTime()||C&&new Date(y.getFullYear(),y.getMonth(),y.getDate()).getTime()>C.getTime()),P=(y,T)=>{if(!g&&!C)return{y,m:T};let A=new Date(y,T,1),k=new Date(y,T+1,0);return g&&k.getTime()<g.getTime()?{y:g.getFullYear(),m:g.getMonth()}:C&&A.getTime()>C.getTime()?{y:C.getFullYear(),m:C.getMonth()}:{y,m:T}},N=(y,T)=>{let A=new Date(y,T+1,0).getDate();for(let k=1;k<=A;k++){let z=new Date(y,T,k);if(!v(z))return z}return new Date(y,T,1)};if(u.value){let y=u.value.trim(),T=s(y,E);if(!T){let A=new Date(y);isNaN(A.getTime())||(T=A)}T&&(V=T,w=T.getFullYear(),b=T.getMonth())}let F=P(w,b);w=F.y,b=F.m;let H=document.createElement("div");H.className="vd-datepicker-popup",H.setAttribute("role","dialog"),H.setAttribute("aria-label","Choose date"),H.tabIndex=-1;let $=document.createElement("div");$.className="vd-suggest-wrapper",$.style.position="relative",$.style.display="inline-block",u.parentNode.insertBefore($,u),$.appendChild(u),document.body.appendChild(H);let K=(y,T)=>y&&T&&y.getFullYear()===T.getFullYear()&&y.getMonth()===T.getMonth()&&y.getDate()===T.getDate(),ae=y=>{V=y,w=y.getFullYear(),b=y.getMonth(),u.value=r(y,E),M=!0,j(),u.dispatchEvent(new CustomEvent("datepicker:select",{detail:{date:y,formatted:u.value},bubbles:!0})),u.dispatchEvent(new Event("change",{bubbles:!0})),u.focus()},Z=()=>{if(I!=="days"||!q)return;let y=i(q),T=H.querySelector('[data-vd-date="'+y+'"]');T&&!T.classList.contains("is-outside")&&T.getAttribute("aria-disabled")!=="true"&&T.focus()},re=(y,T,A)=>{let k=new Date(y.getFullYear(),y.getMonth(),y.getDate()),z=T>0?1:-1;for(let R=0;R<A;R++){if(!v(k))return k;k=o(k,z)}return y},J=(y,T,A)=>{let k=document.createElement("button");if(k.type="button",k.className="vd-datepicker-day",k.textContent=y,k.setAttribute("role","gridcell"),T)return k.classList.add("is-outside"),k.tabIndex=-1,k.setAttribute("aria-disabled","true"),k;if(k.setAttribute("data-vd-date",i(A)),A&&K(A,S)&&k.classList.add("is-today"),A&&K(A,V)&&k.classList.add("is-selected"),A&&v(A))return k.classList.add("is-disabled"),k.setAttribute("aria-disabled","true"),k.tabIndex=-1,k;if(A){let z=q&&K(A,q);k.tabIndex=z?0:-1,k.addEventListener("click",()=>{V=A,w=A.getFullYear(),b=A.getMonth(),q=new Date(A.getFullYear(),A.getMonth(),A.getDate()),u.value=r(A,E),M=!0,j(),u.dispatchEvent(new CustomEvent("datepicker:select",{detail:{date:A,formatted:u.value},bubbles:!0})),u.dispatchEvent(new Event("change",{bubbles:!0})),u.focus()})}return k},U=()=>{H.innerHTML="";let y=document.createElement("div");y.className="vd-datepicker-header";let T=document.createElement("button");T.type="button",T.className="vd-datepicker-prev",T.innerHTML="‹",T.setAttribute("aria-label","Previous");let A=document.createElement("button");A.type="button",A.className="vd-datepicker-next",A.innerHTML="›",A.setAttribute("aria-label","Next");let k=document.createElement("span");if(k.className="vd-datepicker-title",I==="days")k.textContent=e[b]+" "+w,k.addEventListener("click",()=>{I="months",U()}),T.addEventListener("click",()=>{b--,b<0&&(b=11,w--),U()}),A.addEventListener("click",()=>{b++,b>11&&(b=0,w++),U()});else if(I==="months")k.textContent=String(w),k.addEventListener("click",()=>{I="years",U()}),T.addEventListener("click",()=>{w--,U()}),A.addEventListener("click",()=>{w++,U()});else{let z=Math.floor(w/10)*10;k.textContent=z+" - "+(z+9),T.addEventListener("click",()=>{w-=10,U()}),A.addEventListener("click",()=>{w+=10,U()})}if(y.appendChild(T),y.appendChild(k),y.appendChild(A),H.appendChild(y),I==="days"){let z=document.createElement("div");z.className="vd-datepicker-grid",z.setAttribute("role","grid"),z.setAttribute("aria-label","Calendar");let R=document.createElement("div");R.className="vd-datepicker-weekdays",R.setAttribute("role","row"),m.forEach(function(Y){let W=document.createElement("span");W.setAttribute("role","columnheader"),W.setAttribute("aria-label",Y),W.textContent=Y,R.appendChild(W)}),z.appendChild(R);let O=new Date(w,b,1).getDay(),B=new Date(w,b+1,0).getDate(),X=new Date(w,b,0).getDate(),G=[];for(let Y=O-1;Y>=0;Y--){let W=X-Y,ne=b===0?11:b-1,se=b===0?w-1:w,fe=new Date(se,ne,W);G.push({day:W,outside:!0,date:fe})}for(let Y=1;Y<=B;Y++){let W=new Date(w,b,Y);G.push({day:Y,outside:!1,date:W})}let le=O+B,ue=le%7===0?0:7-le%7;for(let Y=1;Y<=ue;Y++){let W=new Date(w,b+1,Y);G.push({day:Y,outside:!0,date:W})}for(let Y=0;Y<G.length;Y+=7){let W=document.createElement("div");W.className="vd-datepicker-row",W.setAttribute("role","row");for(let ne=0;ne<7;ne++){let se=G[Y+ne];W.appendChild(J(se.day,se.outside,se.date))}z.appendChild(W)}H.appendChild(z)}else if(I==="months"){let z=document.createElement("div");z.className="vd-datepicker-months",e.forEach((R,O)=>{let B=document.createElement("button");B.type="button",B.className="vd-datepicker-month-btn",B.textContent=R.slice(0,3),V&&V.getFullYear()===w&&V.getMonth()===O&&B.classList.add("is-selected"),B.addEventListener("click",()=>{b=O,I="days",U()}),z.appendChild(B)}),H.appendChild(z)}else{let z=document.createElement("div");z.className="vd-datepicker-years";let R=Math.floor(w/10)*10;for(let O=R-1;O<=R+10;O++){let B=document.createElement("button");B.type="button",B.className="vd-datepicker-year-btn",B.textContent=O,V&&V.getFullYear()===O&&B.classList.add("is-selected"),(O<R||O>R+9)&&(B.style.opacity="0.4"),B.addEventListener("click",()=>{w=O,I="months",U()}),z.appendChild(B)}H.appendChild(z)}H.classList.contains("is-open")&&requestAnimationFrame(te)},ie=y=>{if(!H.classList.contains("is-open")||I!=="days")return;let T=H.querySelector(".vd-datepicker-grid");if(!T||!T.contains(y.target))return;let A=y.key;if(A!=="ArrowLeft"&&A!=="ArrowRight"&&A!=="ArrowUp"&&A!=="ArrowDown"&&A!=="Home"&&A!=="End"&&A!=="PageUp"&&A!=="PageDown"&&A!=="Enter"&&A!==" "&&A!=="Escape")return;if(A==="Escape"){y.preventDefault(),y.stopPropagation(),M=!0,j(),u.focus();return}if(q||(q=N(w,b)),A==="Enter"||A===" "){y.preventDefault(),q&&!v(q)&&ae(new Date(q.getFullYear(),q.getMonth(),q.getDate()));return}y.preventDefault();let k=new Date(q.getFullYear(),q.getMonth(),q.getDate()),z=1;if(A==="ArrowLeft"?(k=o(k,-1),z=-1):A==="ArrowRight"?(k=o(k,1),z=1):A==="ArrowUp"?(k=o(k,-7),z=-1):A==="ArrowDown"?(k=o(k,7),z=1):A==="Home"?(k=l(k),z=1):A==="End"?(k=f(k),z=-1):A==="PageUp"?(k=a(k,-1),z=-1):A==="PageDown"&&(k=a(k,1),z=1),k=re(k,z,400),k.getMonth()!==b||k.getFullYear()!==w){w=k.getFullYear(),b=k.getMonth();let R=P(w,b);w=R.y,b=R.m}q=k,U(),requestAnimationFrame(Z)},te=()=>{H.classList.contains("is-open")&&d(u,H)},Q=()=>{te()},oe=()=>{I="days",V&&(w=V.getFullYear(),b=V.getMonth());let y=P(w,b);w=y.y,b=y.m,V?q=new Date(V.getFullYear(),V.getMonth(),V.getDate()):q=N(w,b),U(),H.classList.add("is-open"),u.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>{te(),Z()})},j=()=>{H.classList.remove("is-open"),u.setAttribute("aria-expanded","false"),I="days"},ee=()=>{if(M){M=!1;return}oe()},x=y=>{!u.contains(y.target)&&!H.contains(y.target)&&j()},D=y=>{y.key==="Escape"&&H.classList.contains("is-open")&&(M=!0,j(),u.focus())};u.addEventListener("focus",ee),document.addEventListener("click",x,!0),document.addEventListener("keydown",D),H.addEventListener("keydown",ie),window.addEventListener("resize",Q),window.addEventListener("scroll",Q,!0),u.setAttribute("aria-haspopup","dialog"),u.setAttribute("aria-expanded","false"),u.setAttribute("autocomplete","off"),p.push(()=>u.removeEventListener("focus",ee),()=>document.removeEventListener("click",x,!0),()=>document.removeEventListener("keydown",D),()=>H.removeEventListener("keydown",ie),()=>window.removeEventListener("resize",Q),()=>window.removeEventListener("scroll",Q,!0),()=>H.remove()),this.instances.set(u,{cleanup:p,open:oe,close:j,popup:H})},destroy:function(u){let p=this.instances.get(u);p&&(p.cleanup.forEach(E=>E()),this.instances.delete(u))},destroyAll:function(){this.instances.forEach((u,p)=>this.destroy(p))}};typeof window.Vanduo<"u"&&window.Vanduo.register("datepicker",h),window.VanduoDatepicker=h})();(function(){"use strict";function m(t,n,s){let i=s??4,o=t.getBoundingClientRect();n.style.minWidth=Math.max(o.width,0)+"px";let a=o.bottom+i,c=o.left;n.style.top=a+"px",n.style.left=c+"px";let l=n.getBoundingClientRect();l.bottom>window.innerHeight-8&&o.top-l.height>8&&(a=o.top-l.height-i,n.style.top=a+"px");let f=n.getBoundingClientRect();c=o.left,c+f.width>window.innerWidth-8&&(c=window.innerWidth-f.width-8),n.style.left=Math.max(8,c)+"px"}let e={instances:new Map,init:function(t){window.Vanduo.queryAll(t,"[data-vd-timepicker]").forEach(s=>{this.instances.has(s)||this.initInstance(s)})},initInstance:function(t){let n=[],s=t.getAttribute("data-vd-timepicker-format")==="24h",r=parseInt(t.getAttribute("data-vd-timepicker-step")||"30",10),i=t.closest(".vd-suggest-wrapper");i||(i=document.createElement("div"),i.style.position="relative",i.style.display="inline-block",t.parentNode.insertBefore(i,t),i.appendChild(t));let o=document.createElement("div");o.className="vd-timepicker-popup",o.setAttribute("role","listbox"),document.body.appendChild(o);let a=[];for(let L=0;L<24;L++)for(let _=0;_<60;_+=r){let g=String(L).padStart(2,"0"),C=String(_).padStart(2,"0");if(s)a.push({display:g+":"+C,value:g+":"+C});else{let S=L<12?"AM":"PM",b=(L===0?12:L>12?L-12:L)+":"+C+" "+S;a.push({display:b,value:g+":"+C})}}let c=()=>{o.innerHTML="",a.forEach(L=>{let _=document.createElement("div");_.className="vd-timepicker-item",_.setAttribute("role","option"),_.textContent=L.display,(t.value===L.value||t.value===L.display)&&_.classList.add("is-selected"),_.addEventListener("click",()=>{t.value=L.display,o.querySelectorAll(".vd-timepicker-item").forEach(g=>g.classList.remove("is-selected")),_.classList.add("is-selected"),h(),t.dispatchEvent(new CustomEvent("timepicker:select",{detail:{display:L.display,value:L.value},bubbles:!0})),t.dispatchEvent(new Event("change",{bubbles:!0}))}),o.appendChild(_)})},l=()=>{o.classList.contains("is-open")&&m(t,o)},f=()=>{l()},d=()=>{c(),o.classList.add("is-open"),t.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>{l();let L=o.querySelector(".is-selected");L&&L.scrollIntoView({block:"center"})})},h=()=>{o.classList.remove("is-open"),t.setAttribute("aria-expanded","false")},u=()=>d(),p=L=>{!t.contains(L.target)&&!o.contains(L.target)&&h()},E=L=>{L.key==="Escape"&&h()};t.addEventListener("focus",u),document.addEventListener("click",p,!0),document.addEventListener("keydown",E),window.addEventListener("resize",f),window.addEventListener("scroll",f,!0),t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-expanded","false"),t.setAttribute("autocomplete","off"),t.readOnly=!0,n.push(()=>t.removeEventListener("focus",u),()=>document.removeEventListener("click",p,!0),()=>document.removeEventListener("keydown",E),()=>window.removeEventListener("resize",f),()=>window.removeEventListener("scroll",f,!0),()=>o.remove()),this.instances.set(t,{cleanup:n,open:d,close:h})},destroy:function(t){let n=this.instances.get(t);n&&(n.cleanup.forEach(s=>s()),this.instances.delete(t))},destroyAll:function(){this.instances.forEach((t,n)=>this.destroy(n))}};typeof window.Vanduo<"u"&&window.Vanduo.register("timepicker",e),window.VanduoTimepicker=e})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-stepper").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=[],n=Array.from(e.querySelectorAll(".vd-stepper-item")),s=e.classList.contains("vd-stepper-clickable"),r=n.findIndex(o=>o.classList.contains("is-active"));r===-1&&(r=0);let i=o=>{if(o<0||o>=n.length)return;let a=r;r=o,n.forEach((c,l)=>{c.classList.remove("is-active","is-completed"),l<o?c.classList.add("is-completed"):l===o&&c.classList.add("is-active")}),e.dispatchEvent(new CustomEvent("stepper:change",{detail:{current:o,previous:a,total:n.length},bubbles:!0}))};s&&n.forEach((o,a)=>{let c=()=>i(a);o.addEventListener("click",c),t.push(()=>o.removeEventListener("click",c))}),i(r),this.instances.set(e,{cleanup:t,setStep:i,next:()=>i(r+1),prev:()=>i(r-1),getCurrent:()=>r})},setStep:function(e,t){let n=this.instances.get(e);n&&n.setStep(t)},next:function(e){let t=this.instances.get(e);t&&t.next()},prev:function(e){let t=this.instances.get(e);t&&t.prev()},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("stepper",m),window.VanduoStepper=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,"[data-vd-rating]").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=[],n=parseInt(e.getAttribute("data-vd-rating-max")||"5",10),s=parseFloat(e.getAttribute("data-vd-rating-value")||"0"),r=e.classList.contains("vd-rating-readonly")||e.hasAttribute("data-vd-rating-readonly"),i=s;e.classList.add("vd-rating"),e.setAttribute("role","radiogroup"),e.setAttribute("aria-label",e.getAttribute("aria-label")||"Rating"),e.innerHTML="";let o=[];for(let l=1;l<=n;l++){let f=document.createElement("button");f.type="button",f.className="vd-rating-star",f.setAttribute("role","radio"),f.setAttribute("aria-label",l+" star"+(l>1?"s":"")),f.setAttribute("aria-checked",l<=i?"true":"false"),r&&(f.tabIndex=-1),o.push(f),e.appendChild(f)}let a=document.createElement("span");a.className="vd-rating-value",a.textContent=i>0?i.toString():"",e.appendChild(a);let c=l=>{o.forEach((f,d)=>{f.classList.remove("is-active","is-half");let h=d+1;h<=Math.floor(l)?f.classList.add("is-active"):h-.5<=l&&f.classList.add("is-half"),f.setAttribute("aria-checked",h<=l?"true":"false")}),a.textContent=l>0?l.toString():""};if(c(i),!r){o.forEach((f,d)=>{let h=()=>{o.forEach((E,L)=>{E.classList.toggle("is-hovered",L<=d)})},u=()=>{o.forEach(E=>E.classList.remove("is-hovered"))},p=()=>{i=d+1,e.setAttribute("data-vd-rating-value",i),c(i),e.dispatchEvent(new CustomEvent("rating:change",{detail:{value:i,max:n},bubbles:!0}))};f.addEventListener("mouseenter",h),f.addEventListener("mouseleave",u),f.addEventListener("click",p),t.push(()=>f.removeEventListener("mouseenter",h),()=>f.removeEventListener("mouseleave",u),()=>f.removeEventListener("click",p))});let l=f=>{f.key==="ArrowRight"||f.key==="ArrowUp"?(f.preventDefault(),i<n&&(i++,c(i),o[i-1].focus(),e.dispatchEvent(new CustomEvent("rating:change",{detail:{value:i,max:n},bubbles:!0})))):(f.key==="ArrowLeft"||f.key==="ArrowDown")&&(f.preventDefault(),i>1&&(i--,c(i),o[i-1].focus(),e.dispatchEvent(new CustomEvent("rating:change",{detail:{value:i,max:n},bubbles:!0}))))};e.addEventListener("keydown",l),t.push(()=>e.removeEventListener("keydown",l))}this.instances.set(e,{cleanup:t,getValue:()=>i,setValue:l=>{i=l,c(l)}})},getValue:function(e){let t=this.instances.get(e);return t?t.getValue():0},setValue:function(e,t){let n=this.instances.get(e);n&&n.setValue(t)},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("rating",m),window.VanduoRating=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,"[data-vd-transfer]").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=[];e.classList.add("vd-transfer");let n,s;try{n=JSON.parse(e.getAttribute("data-vd-transfer")||"[]").map((h,u)=>({id:h.id||"item-"+u,label:h.label||h.text||String(h),selected:!1}))}catch{n=[]}s=[];let r=new Set,i=new Set,o=()=>{e.innerHTML="";let d=a("Source",n,r,"source"),h=document.createElement("div");h.className="vd-transfer-actions";let u=document.createElement("button");u.type="button",u.className="vd-transfer-btn",u.innerHTML="›",u.setAttribute("aria-label","Move to target"),u.disabled=r.size===0,u.addEventListener("click",()=>c());let p=document.createElement("button");p.type="button",p.className="vd-transfer-btn",p.innerHTML="‹",p.setAttribute("aria-label","Move to source"),p.disabled=i.size===0,p.addEventListener("click",()=>l()),h.appendChild(u),h.appendChild(p);let E=a("Target",s,i,"target");e.appendChild(d),e.appendChild(h),e.appendChild(E)},a=(d,h,u,p)=>{let E=document.createElement("div");E.className="vd-transfer-panel";let L=document.createElement("div");L.className="vd-transfer-header";let _=document.createElement("span");_.textContent=d;let g=document.createElement("span");g.className="vd-transfer-count",g.textContent=u.size+"/"+h.length,L.appendChild(_),L.appendChild(g),E.appendChild(L);let C=document.createElement("div");C.className="vd-transfer-search";let S=document.createElement("input");S.type="text",S.placeholder="Search...",S.setAttribute("aria-label","Search "+d.toLowerCase()),C.appendChild(S),E.appendChild(C);let w=document.createElement("ul");w.className="vd-transfer-list",w.setAttribute("role","listbox");let b=V=>{w.innerHTML="",(V?h.filter(q=>(q.label||q.text||String(q)).toLowerCase().includes(V.toLowerCase())):h).forEach(q=>{let M=document.createElement("li");M.className="vd-transfer-item",M.setAttribute("role","option"),u.has(q.id)&&M.classList.add("is-selected");let v=document.createElement("input");v.type="checkbox",v.checked=u.has(q.id),v.setAttribute("aria-label",q.label);let P=document.createElement("span");P.textContent=q.label,M.addEventListener("click",()=>{u.has(q.id)?u.delete(q.id):u.add(q.id),o()}),M.appendChild(v),M.appendChild(P),w.appendChild(M)})};return S.addEventListener("input",()=>b(S.value)),b(""),E.appendChild(w),E},c=()=>{let d=n.filter(h=>r.has(h.id));n=n.filter(h=>!r.has(h.id)),s=s.concat(d),r.clear(),o(),f()},l=()=>{let d=s.filter(h=>i.has(h.id));s=s.filter(h=>!i.has(h.id)),n=n.concat(d),i.clear(),o(),f()},f=()=>{e.dispatchEvent(new CustomEvent("transfer:change",{detail:{source:n.map(d=>d.id),target:s.map(d=>d.id)},bubbles:!0}))};o(),this.instances.set(e,{cleanup:t,getTarget:()=>s.map(d=>d.id),getSource:()=>n.map(d=>d.id)})},getSelected:function(e){let t=this.instances.get(e);return t?t.getTarget():[]},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),e.innerHTML="",this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("transfer",m),window.VanduoTransfer=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,"[data-vd-tree]").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=[],n=e.getAttribute("data-vd-tree-cascade")!=="false",s;try{s=JSON.parse(e.getAttribute("data-vd-tree")||"[]")}catch{s=[]}e.classList.add("vd-tree"),e.setAttribute("role","tree");let r=(a,c)=>{c.innerHTML="",a.forEach(l=>{let f=document.createElement("li");f.className="vd-tree-node",f.setAttribute("role","treeitem"),f.setAttribute("aria-expanded",l.open?"true":"false"),l.open&&f.classList.add("is-open");let d=document.createElement("div");if(d.className="vd-tree-node-content",l.children&&l.children.length>0){let u=document.createElement("button");u.type="button",u.className="vd-tree-toggle",u.setAttribute("aria-label","Toggle"),u.addEventListener("click",p=>{p.stopPropagation(),l.open=!l.open,f.classList.toggle("is-open"),f.setAttribute("aria-expanded",l.open?"true":"false")}),d.appendChild(u)}else{let u=document.createElement("span");u.className="vd-tree-toggle-placeholder",d.appendChild(u)}if(e.hasAttribute("data-vd-tree-checkbox")){let u=document.createElement("input");u.type="checkbox",u.className="vd-tree-checkbox",u.checked=!!l.checked,u.setAttribute("aria-label",l.label),u.addEventListener("change",p=>{p.stopPropagation(),l.checked=u.checked,n&&l.children&&(i(l.children,u.checked),r(s,e)),e.dispatchEvent(new CustomEvent("tree:check",{detail:{id:l.id,checked:u.checked,label:l.label},bubbles:!0}))}),d.appendChild(u)}if(l.icon){let u=document.createElement("span");u.className="vd-tree-icon "+l.icon,d.appendChild(u)}let h=document.createElement("span");if(h.className="vd-tree-label",h.textContent=l.label||"",d.appendChild(h),f.appendChild(d),l.children&&l.children.length>0){let u=document.createElement("ul");u.className="vd-tree-children",u.setAttribute("role","group"),r(l.children,u),f.appendChild(u)}c.appendChild(f)})},i=(a,c)=>{a.forEach(l=>{l.checked=c,l.children&&i(l.children,c)})},o=a=>{let c=document.activeElement;if(!e.contains(c))return;let l=Array.from(e.querySelectorAll(".vd-tree-node-content")),f=l.indexOf(c.closest(".vd-tree-node-content"));if(f!==-1)switch(a.key){case"ArrowDown":if(a.preventDefault(),f<l.length-1){let d=l[f+1].querySelector(".vd-tree-toggle, .vd-tree-label");d&&d.focus()}break;case"ArrowUp":if(a.preventDefault(),f>0){let d=l[f-1].querySelector(".vd-tree-toggle, .vd-tree-label");d&&d.focus()}break}};e.addEventListener("keydown",o),t.push(()=>e.removeEventListener("keydown",o)),r(s,e),this.instances.set(e,{cleanup:t,getData:()=>s,getChecked:()=>{let a=[],c=l=>{l.forEach(f=>{f.checked&&a.push(f.id||f.label),f.children&&c(f.children)})};return c(s),a}})},getChecked:function(e){let t=this.instances.get(e);return t?t.getChecked():[]},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),e.innerHTML="",this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("tree",m),window.VanduoTree=m})();(function(){"use strict";let m={_active:!1,_steps:[],_currentStep:0,_elements:{},_cleanup:[],_boundTriggers:new WeakMap,_triggerElement:null,init:function(e){window.Vanduo.queryAll(e,"[data-vd-spotlight]").forEach(n=>{if(this._boundTriggers.has(n))return;let s=r=>{r.preventDefault();let i=this._parseSteps(n.getAttribute("data-vd-spotlight"));i.length!==0&&this.start(i,{trigger:n})};n.addEventListener("click",s),this._boundTriggers.set(n,s)})},_parseSteps:function(e){if(typeof e!="string"||e.trim()==="")return[];try{let t=JSON.parse(e);return this._normalizeSteps(t)}catch(t){return console.error("VanduoSpotlight: invalid data-vd-spotlight payload.",t),[]}},_normalizeStep:function(e){if(!e||typeof e!="object")return null;let t=e.target,n=typeof t=="string"&&t.trim()!=="",s=typeof Element<"u"&&t instanceof Element;if(!n&&!s)return null;let r=typeof e.title=="string"?e.title:"",i=typeof e.description=="string"?e.description:typeof e.content=="string"?e.content:"";return{target:t,title:r,description:i}},_normalizeSteps:function(e){return Array.isArray(e)?e.map(t=>this._normalizeStep(t)).filter(Boolean):[]},start:function(e,t){this._active&&this.stop();let n=this._normalizeSteps(e);if(n.length===0)return;let s=t||{};this._steps=n,this._currentStep=0,this._active=!0,this._triggerElement=s.trigger||(document.activeElement instanceof HTMLElement?document.activeElement:null);let r=document.createElement("div");r.className="vd-spotlight-overlay",r.setAttribute("aria-hidden","true"),document.body.appendChild(r);let i=document.createElement("div");i.className="vd-spotlight-tooltip",i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.tabIndex=-1,document.body.appendChild(i),this._elements={overlay:r,tooltip:i};let o=a=>{a.key==="Escape"&&this.stop()};document.addEventListener("keydown",o),this._cleanup.push(()=>document.removeEventListener("keydown",o)),r.addEventListener("click",()=>this.stop()),this._showStep(this._currentStep)},_showStep:function(e){let t=this._steps[e];if(!t)return;let n=typeof t.target=="string"?document.querySelector(t.target):t.target,{tooltip:s}=this._elements;document.querySelectorAll(".vd-spotlight-target").forEach(l=>{l.classList.remove("vd-spotlight-target")}),n&&(n.classList.add("vd-spotlight-target"),n.scrollIntoView({behavior:"smooth",block:"center"}));let r=this._steps.length;if(s.innerHTML="",s.removeAttribute("aria-labelledby"),s.removeAttribute("aria-describedby"),t.title){let l=document.createElement("h4");l.className="vd-spotlight-title",l.id="vd-spotlight-title-"+e+"-"+Date.now(),l.textContent=t.title,s.appendChild(l),s.setAttribute("aria-labelledby",l.id)}if(t.description){let l=document.createElement("p");l.className="vd-spotlight-description",l.id="vd-spotlight-description-"+e+"-"+Date.now(),l.textContent=t.description,s.appendChild(l),s.setAttribute("aria-describedby",l.id)}let i=document.createElement("div");i.className="vd-spotlight-footer",i.setAttribute("aria-label","Step "+(e+1)+" of "+r);let o=document.createElement("span");o.className="vd-spotlight-counter",o.textContent=e+1+" / "+r;let a=document.createElement("div");if(a.className="vd-spotlight-actions",e>0){let l=document.createElement("button");l.type="button",l.className="vd-spotlight-btn",l.textContent="Back",l.addEventListener("click",()=>this.prev()),a.appendChild(l)}let c=document.createElement("button");if(c.type="button",c.className="vd-spotlight-btn",c.textContent="Skip",c.addEventListener("click",()=>this.stop()),a.appendChild(c),e<r-1){let l=document.createElement("button");l.type="button",l.className="vd-spotlight-btn vd-spotlight-btn-primary",l.textContent="Next",l.addEventListener("click",()=>this.next()),a.appendChild(l)}else{let l=document.createElement("button");l.type="button",l.className="vd-spotlight-btn vd-spotlight-btn-primary",l.textContent="Done",l.addEventListener("click",()=>this.stop()),a.appendChild(l)}i.appendChild(o),i.appendChild(a),s.appendChild(i),n&&requestAnimationFrame(()=>{let l=n.getBoundingClientRect(),f=s.getBoundingClientRect(),d=l.bottom+12+window.scrollY,h=l.left+(l.width-f.width)/2+window.scrollX;h=Math.max(8,Math.min(h,window.innerWidth-f.width-8)),d+f.height>window.innerHeight+window.scrollY&&(d=l.top-f.height-12+window.scrollY),s.style.top=d+"px",s.style.left=h+"px"}),document.dispatchEvent(new CustomEvent("spotlight:step",{detail:{index:e,step:e,total:r,data:t}}))},next:function(){this._currentStep<this._steps.length-1&&(this._currentStep++,this._showStep(this._currentStep))},prev:function(){this._currentStep>0&&(this._currentStep--,this._showStep(this._currentStep))},stop:function(){if(!this._active)return;let e=this._steps.length,t={completedSteps:e===0?0:Math.min(this._currentStep+1,e),total:e,completed:e>0&&this._currentStep>=e-1};this._active=!1,document.querySelectorAll(".vd-spotlight-target").forEach(n=>{n.classList.remove("vd-spotlight-target")}),this._elements.overlay&&this._elements.overlay.parentNode&&this._elements.overlay.parentNode.removeChild(this._elements.overlay),this._elements.tooltip&&this._elements.tooltip.parentNode&&this._elements.tooltip.parentNode.removeChild(this._elements.tooltip),this._cleanup.forEach(n=>n()),this._cleanup=[],this._elements={},this._steps=[],this._currentStep=0,this._triggerElement&&this._triggerElement.isConnected&&typeof this._triggerElement.focus=="function"&&this._triggerElement.focus(),this._triggerElement=null,document.dispatchEvent(new CustomEvent("spotlight:end",{detail:t}))},destroyAll:function(){this.stop()}};typeof window.Vanduo<"u"&&window.Vanduo.register("spotlight",m),window.VanduoSpotlight=m})();(function(){"use strict";function m(i){let o=i.slice();for(let a=o.length-1;a>0;a--){let c=Math.floor(Math.random()*(a+1)),l=o[a];o[a]=o[c],o[c]=l}return o}function e(i){if(!isFinite(i)||i<0)return"0:00";let o=Math.floor(i/60),a=Math.floor(i%60);return o+":"+(a<10?"0":"")+a}function t(i){return"vanduo:music-player:"+(i&&i.trim()?i.trim():"default")+":pos"}function n(i){let o=parseFloat(i.min)||0,a=parseFloat(i.max)||1,l=((parseFloat(i.value)||0)-o)/(a-o)*100;i.style.setProperty("--vd-fill",l+"%"),i.style.backgroundImage="linear-gradient(to right, var(--vd-music-player-track-fill, currentColor) 0%, var(--vd-music-player-track-fill, currentColor) "+l+"%, var(--vd-music-player-track-bg, #ccc) "+l+"%, var(--vd-music-player-track-bg, #ccc) 100%)"}function s(i){let o=document.createElement("i");return o.className="ph ph-"+i,o.setAttribute("aria-hidden","true"),o}let r={instances:new Map,defaults:{tracks:[],volume:.5,shuffle:!1,showProgress:!1,showPlaylist:!1,autoAdvance:!0,glass:!1,detachable:!1,floatingPosition:null,draggable:!1,minimizable:!1,startMinimized:!1,persistPosition:!1,persistKey:""},init:function(i){window.Vanduo.queryAll(i,".vd-music-player, [data-music-player]").forEach(o=>{if(this.instances.has(o))return;let a={},c=o.getAttribute("data-music-player-options");if(c)try{a=JSON.parse(c)}catch{}this.initPlayer(o,a)})},initPlayer:function(i,o){let a=Object.assign({},this.defaults,o||{}),l=(Array.isArray(a.tracks)?a.tracks:[]).filter(v=>v&&typeof v.url=="string"&&v.url.trim()),d={tracks:a.shuffle?m(l):l.slice(),originalTracks:l.slice(),currentIndex:0,isPlaying:!1,volume:Math.max(0,Math.min(1,a.volume)),shuffle:a.shuffle,showProgress:a.showProgress,showPlaylist:a.showPlaylist,autoAdvance:a.autoAdvance,audio:null,glass:!!a.glass,detachable:!!a.detachable,floatingPosition:a.floatingPosition||"bottom-right",draggable:!!a.draggable&&!!a.detachable,minimizable:!!a.minimizable,startMinimized:!!a.startMinimized,persistPosition:!!a.persistPosition,persistKey:typeof a.persistKey=="string"?a.persistKey:"",isDetached:!1,isMinimized:!1,_startMinimizeApplied:!1},h=new Audio;h.volume=d.volume,h.preload="metadata",d.audio=h,this._buildDOM(i,d);let u={btnPlay:i.querySelector(".vd-music-player-btn-play"),btnPrev:i.querySelector(".vd-music-player-btn-prev"),btnNext:i.querySelector(".vd-music-player-btn-next"),btnShuffle:i.querySelector(".vd-music-player-btn-shuffle"),btnPlaylist:i.querySelector(".vd-music-player-btn-playlist"),btnDetach:i.querySelector(".vd-music-player-btn-detach"),btnAttach:i.querySelector(".vd-music-player-btn-attach"),btnMinimize:i.querySelector(".vd-music-player-btn-minimize"),dragHandle:i.querySelector(".vd-music-player-drag-handle"),trackName:i.querySelector(".vd-music-player-track-name"),volumeSlider:i.querySelector(".vd-music-player-volume-slider"),volumeIcon:i.querySelector(".vd-music-player-volume-icon"),progressBar:i.querySelector(".vd-music-player-progress-bar"),timeElapsed:i.querySelector(".vd-music-player-time-elapsed"),timeDuration:i.querySelector(".vd-music-player-time-duration"),playlistPanel:i.querySelector(".vd-music-player-playlist")},p=()=>{let v=u.btnPlay;v&&(v.innerHTML="",v.appendChild(s(d.isPlaying?"pause":"play")),v.setAttribute("aria-label",d.isPlaying?"Pause":"Play"),v.classList.toggle("is-active",d.isPlaying))},E=()=>{let v=u.trackName;if(!v)return;let P=d.tracks[d.currentIndex];P?(v.textContent=P.name||"Unknown Track",v.classList.remove("is-idle")):(v.textContent="No tracks loaded",v.classList.add("is-idle"))},L=()=>{let v=u.volumeIcon;if(!v)return;v.innerHTML="";let P=d.volume,N=P===0?"speaker-none":P<.5?"speaker-low":"speaker-high";v.appendChild(s(N))},_=()=>{let v=u.btnShuffle;v&&(v.classList.toggle("is-active",d.shuffle),v.setAttribute("aria-pressed",d.shuffle?"true":"false"))},g=()=>{let v=u.playlistPanel;v&&(v.innerHTML="",d.tracks.forEach((P,N)=>{let F=document.createElement("button");F.className="vd-music-player-playlist-item"+(N===d.currentIndex?" is-active":""),F.type="button",F.setAttribute("data-index",String(N)),F.setAttribute("aria-current",N===d.currentIndex?"true":"false");let H=document.createElement("span");H.className="vd-music-player-playlist-num",H.textContent=String(N+1);let $=document.createElement("span");$.className="vd-music-player-playlist-name",$.textContent=P.name||"Track "+(N+1),F.appendChild(H),F.appendChild($),v.appendChild(F)}))},C=()=>{let v=u.progressBar;if(!v||!h.duration)return;let P=h.currentTime/h.duration*100;v.value=String(P),n(v),u.timeElapsed&&(u.timeElapsed.textContent=e(h.currentTime)),u.timeDuration&&(u.timeDuration.textContent=e(h.duration))},S=(v,P)=>{let N=d.tracks[v];N&&(d.currentIndex=v,h.src=N.url,E(),g(),u.progressBar&&(u.progressBar.value="0",n(u.progressBar)),u.timeElapsed&&(u.timeElapsed.textContent="0:00"),u.timeDuration&&(u.timeDuration.textContent="0:00"),i.dispatchEvent(new CustomEvent("musicplayer:trackchange",{bubbles:!0,detail:{index:v,name:N.name,url:N.url}})),P&&h.play().catch(()=>{}))},w=[],b=()=>{d.isPlaying=!0,p(),i.dispatchEvent(new CustomEvent("musicplayer:play",{bubbles:!0}))},V=()=>{d.isPlaying=!1,p(),i.dispatchEvent(new CustomEvent("musicplayer:pause",{bubbles:!0}))},I=()=>{if(d.autoAdvance&&d.tracks.length>1){let v=(d.currentIndex+1)%d.tracks.length;S(v,!0)}else d.isPlaying=!1,p(),i.dispatchEvent(new CustomEvent("musicplayer:ended",{bubbles:!0}))},q=()=>{d.showProgress&&C()},M=()=>{u.timeDuration&&(u.timeDuration.textContent=e(h.duration)),u.progressBar&&(u.progressBar.max="100",n(u.progressBar))};if(h.addEventListener("play",b),h.addEventListener("pause",V),h.addEventListener("ended",I),h.addEventListener("timeupdate",q),h.addEventListener("loadedmetadata",M),w.push(()=>{h.removeEventListener("play",b),h.removeEventListener("pause",V),h.removeEventListener("ended",I),h.removeEventListener("timeupdate",q),h.removeEventListener("loadedmetadata",M),h.pause(),h.src=""}),u.btnPlay){let v=()=>{!h.src&&d.tracks.length&&S(d.currentIndex,!1),d.isPlaying?h.pause():h.play().catch(()=>{})};u.btnPlay.addEventListener("click",v),w.push(()=>u.btnPlay.removeEventListener("click",v));let P=N=>{(N.key===" "||N.key==="Enter")&&(N.preventDefault(),v())};u.btnPlay.addEventListener("keydown",P),w.push(()=>u.btnPlay.removeEventListener("keydown",P))}if(u.btnPrev){let v=()=>{if(d.tracks.length)if(h.currentTime>3)h.currentTime=0;else{let P=d.currentIndex===0?d.tracks.length-1:d.currentIndex-1;S(P,d.isPlaying)}};u.btnPrev.addEventListener("click",v),w.push(()=>u.btnPrev.removeEventListener("click",v))}if(u.btnNext){let v=()=>{if(!d.tracks.length)return;let P=(d.currentIndex+1)%d.tracks.length;S(P,d.isPlaying)};u.btnNext.addEventListener("click",v),w.push(()=>u.btnNext.removeEventListener("click",v))}if(u.btnShuffle){let v=()=>{if(d.shuffle=!d.shuffle,d.shuffle){let P=d.tracks[d.currentIndex];d.tracks=m(d.tracks);let N=d.tracks.findIndex(F=>F===P);N>0&&(d.tracks.splice(N,1),d.tracks.unshift(P)),d.currentIndex=0}else{let P=d.tracks[d.currentIndex];d.tracks=d.originalTracks.slice(),d.currentIndex=d.tracks.findIndex(N=>N===P),d.currentIndex<0&&(d.currentIndex=0)}_(),g()};u.btnShuffle.addEventListener("click",v),w.push(()=>u.btnShuffle.removeEventListener("click",v))}if(u.btnPlaylist){let v=()=>{let P=u.playlistPanel;if(!P)return;let N=P.classList.toggle("is-open");u.btnPlaylist.classList.toggle("is-active",N),u.btnPlaylist.setAttribute("aria-expanded",N?"true":"false")};u.btnPlaylist.addEventListener("click",v),w.push(()=>u.btnPlaylist.removeEventListener("click",v))}if(u.volumeSlider){let v=P=>{let N=parseFloat(P.target.value);d.volume=N,h.volume=N,L(),n(u.volumeSlider),i.dispatchEvent(new CustomEvent("musicplayer:volumechange",{bubbles:!0,detail:{volume:N}}))};u.volumeSlider.addEventListener("input",v),w.push(()=>u.volumeSlider.removeEventListener("input",v)),n(u.volumeSlider)}if(u.progressBar){let v=P=>{if(!h.duration)return;let N=parseFloat(P.target.value);h.currentTime=N/100*h.duration,n(u.progressBar)};u.progressBar.addEventListener("input",v),w.push(()=>u.progressBar.removeEventListener("input",v))}if(u.playlistPanel){let v=P=>{let N=P.target.closest(".vd-music-player-playlist-item");if(!N)return;let F=parseInt(N.getAttribute("data-index"),10);isNaN(F)||S(F,!0)};u.playlistPanel.addEventListener("click",v),w.push(()=>u.playlistPanel.removeEventListener("click",v))}if(u.btnDetach){let v=()=>{this.detach(i)};u.btnDetach.addEventListener("click",v),w.push(()=>u.btnDetach.removeEventListener("click",v))}if(u.btnAttach){let v=()=>{this.attach(i)};u.btnAttach.addEventListener("click",v),w.push(()=>u.btnAttach.removeEventListener("click",v))}if(u.btnMinimize){let v=()=>{this.toggleMinimize(i)};u.btnMinimize.addEventListener("click",v),w.push(()=>u.btnMinimize.removeEventListener("click",v))}p(),E(),L(),a.showPlaylist&&g(),this.instances.set(i,{state:d,audio:h,refs:u,cleanup:w,ui:{restore:null,unbindDrag:null}}),i.setAttribute("data-music-player-initialized","true")},_buildDOM:function(i,o){if(i.querySelector(".vd-music-player-controls"))return;if(i.setAttribute("role","region"),i.setAttribute("aria-label","Music Player"),o.showProgress&&i.classList.add("has-progress"),o.showPlaylist&&i.classList.add("has-playlist"),o.glass&&i.classList.add("vd-music-player-glass"),o.draggable&&i.classList.add("vd-music-player-draggable"),o.detachable||o.minimizable){let g=document.createElement("div");if(g.className="vd-music-player-toolbar",g.setAttribute("role","toolbar"),g.setAttribute("aria-label","Player window"),o.draggable){let S=document.createElement("button");S.type="button",S.className="vd-music-player-drag-handle",S.setAttribute("aria-label","Drag to move player"),S.appendChild(s("dots-six-vertical")),g.appendChild(S)}let C=document.createElement("span");if(C.className="vd-music-player-toolbar-spacer",C.setAttribute("aria-hidden","true"),g.appendChild(C),o.minimizable){let S=document.createElement("button");S.type="button",S.className="vd-music-player-btn vd-music-player-btn-minimize",S.setAttribute("aria-label","Minimize player"),S.setAttribute("aria-expanded","true"),S.appendChild(s("minus")),g.appendChild(S)}if(o.detachable){let S=document.createElement("button");S.type="button",S.className="vd-music-player-btn vd-music-player-btn-detach",S.setAttribute("aria-label","Detach player"),S.appendChild(s("arrows-out")),g.appendChild(S);let w=document.createElement("button");w.type="button",w.className="vd-music-player-btn vd-music-player-btn-attach",w.setAttribute("aria-label","Attach player"),w.appendChild(s("arrows-in")),g.appendChild(w)}i.classList.add("vd-music-player-has-chrome"),i.appendChild(g)}let a=document.createElement("div");a.className="vd-music-player-info";let c=document.createElement("span");c.className="vd-music-player-icon",c.setAttribute("aria-hidden","true"),c.appendChild(s("music-note"));let l=document.createElement("span");l.className="vd-music-player-track-name",l.setAttribute("aria-live","polite"),l.setAttribute("aria-atomic","true"),a.appendChild(c),a.appendChild(l),i.appendChild(a);let f=document.createElement("div");f.className="vd-music-player-controls",f.setAttribute("role","group"),f.setAttribute("aria-label","Playback controls");let d=document.createElement("button");d.type="button",d.className="vd-music-player-btn vd-music-player-btn-prev",d.setAttribute("aria-label","Previous track"),d.appendChild(s("skip-back"));let h=document.createElement("button");h.type="button",h.className="vd-music-player-btn vd-music-player-btn-play",h.setAttribute("aria-label","Play"),h.appendChild(s("play"));let u=document.createElement("button");if(u.type="button",u.className="vd-music-player-btn vd-music-player-btn-next",u.setAttribute("aria-label","Next track"),u.appendChild(s("skip-forward")),f.appendChild(d),f.appendChild(h),f.appendChild(u),o.showPlaylist||o.shuffle!==void 0){let g=document.createElement("button");g.type="button",g.className="vd-music-player-btn vd-music-player-btn-shuffle",g.setAttribute("aria-label","Shuffle"),g.setAttribute("aria-pressed",o.shuffle?"true":"false"),g.appendChild(s("shuffle")),f.appendChild(g)}let p=document.createElement("span");p.className="vd-music-player-spacer",p.setAttribute("aria-hidden","true"),f.appendChild(p);let E=document.createElement("div");E.className="vd-music-player-volume";let L=document.createElement("span");L.className="vd-music-player-volume-icon",L.setAttribute("aria-hidden","true");let _=document.createElement("input");if(_.type="range",_.className="vd-music-player-volume-slider",_.min="0",_.max="1",_.step="0.01",_.value=String(o.volume),_.setAttribute("aria-label","Volume"),E.appendChild(L),E.appendChild(_),f.appendChild(E),o.showPlaylist){let g=document.createElement("button");g.type="button",g.className="vd-music-player-btn vd-music-player-btn-playlist",g.setAttribute("aria-label","Show playlist"),g.setAttribute("aria-expanded","false"),g.appendChild(s("playlist")),f.appendChild(g)}if(i.appendChild(f),o.showProgress){let g=document.createElement("div");g.className="vd-music-player-progress";let C=document.createElement("span");C.className="vd-music-player-time vd-music-player-time-elapsed",C.textContent="0:00",C.setAttribute("aria-hidden","true");let S=document.createElement("input");S.type="range",S.className="vd-music-player-progress-bar",S.min="0",S.max="100",S.step="0.1",S.value="0",S.setAttribute("aria-label","Seek");let w=document.createElement("span");w.className="vd-music-player-time vd-music-player-time-duration",w.textContent="0:00",w.setAttribute("aria-hidden","true"),g.appendChild(C),g.appendChild(S),g.appendChild(w),i.appendChild(g)}if(o.showPlaylist){let g=document.createElement("div");g.className="vd-music-player-playlist",g.setAttribute("aria-label","Playlist"),i.appendChild(g)}},play:function(i){let o=this.instances.get(i);o&&(!o.audio.src&&o.state.tracks.length&&(o.audio.src=o.state.tracks[o.state.currentIndex].url),o.audio.play().catch(()=>{}))},pause:function(i){let o=this.instances.get(i);o&&o.audio.pause()},toggle:function(i){let o=this.instances.get(i);o&&(o.state.isPlaying?this.pause(i):this.play(i))},next:function(i){let o=this.instances.get(i);if(!o||!o.state.tracks.length)return;let a=(o.state.currentIndex+1)%o.state.tracks.length;this._loadTrack(o,a,o.state.isPlaying)},previous:function(i){let o=this.instances.get(i);if(!o||!o.state.tracks.length)return;let a=o.state.tracks.length,c=(o.state.currentIndex-1+a)%a;this._loadTrack(o,c,o.state.isPlaying)},setVolume:function(i,o){let a=this.instances.get(i);if(!a)return;let c=Math.max(0,Math.min(1,o));a.state.volume=c,a.audio.volume=c,a.refs.volumeSlider&&(a.refs.volumeSlider.value=String(c),n(a.refs.volumeSlider)),i.dispatchEvent(new CustomEvent("musicplayer:volumechange",{bubbles:!0,detail:{volume:c}}))},setTrack:function(i,o){let a=this.instances.get(i);a&&this._loadTrack(a,o,a.state.isPlaying)},shuffle:function(i){let o=this.instances.get(i);!o||!o.refs.btnShuffle||o.refs.btnShuffle.click()},detach:function(i,o){let a=this.instances.get(i);if(!a||!a.state.detachable||a.state.isDetached)return;let c=a.state;a.ui=a.ui||{restore:null,unbindDrag:null},c.isDetached=!0,a.ui.restore={parent:i.parentNode,next:i.nextSibling},document.body.appendChild(i),i.classList.add("vd-music-player-floating","vd-music-player-detached");let l=o!=null&&o!==void 0?o:c.floatingPosition;this._setCornerPosition(i,l==="bottom-left"||l==="bottom-right"?l:"bottom-right"),this._loadPersistedPosition(i,a),c.startMinimized&&!c._startMinimizeApplied&&(c._startMinimizeApplied=!0,this.minimize(i)),this._bindFloatingDrag(a),i.dispatchEvent(new CustomEvent("musicplayer:detach",{bubbles:!0}))},attach:function(i){let o=this.instances.get(i);if(!o||!o.state.isDetached)return;this._unbindFloatingDrag(o),o.state.isDetached=!1;let a=o.ui&&o.ui.restore;i.classList.remove("vd-music-player-floating","vd-music-player-detached","vd-music-player-floating-bottom-left","vd-music-player-floating-bottom-right","is-position-custom"),i.style.removeProperty("--vd-music-player-floating-top"),i.style.removeProperty("--vd-music-player-floating-left"),a&&a.parent&&a.parent.isConnected&&a.parent.insertBefore(i,a.next),o.ui&&(o.ui.restore=null,o.ui.unbindDrag=null),i.dispatchEvent(new CustomEvent("musicplayer:attach",{bubbles:!0}))},minimize:function(i){let o=this.instances.get(i);if(!o||!o.state.minimizable||o.state.isMinimized)return;let a=o.state;a.isMinimized=!0,i.classList.add("vd-music-player-minimized"),this._setMinimizeButtonState(o,!0),o.refs.playlistPanel&&o.refs.playlistPanel.classList.contains("is-open")&&o.refs.btnPlaylist&&(o.refs.playlistPanel.classList.remove("is-open"),o.refs.btnPlaylist.classList.remove("is-active"),o.refs.btnPlaylist.setAttribute("aria-expanded","false")),i.dispatchEvent(new CustomEvent("musicplayer:minimize",{bubbles:!0}))},expand:function(i){let o=this.instances.get(i);!o||!o.state.minimizable||!o.state.isMinimized||(o.state.isMinimized=!1,i.classList.remove("vd-music-player-minimized"),this._setMinimizeButtonState(o,!1),i.dispatchEvent(new CustomEvent("musicplayer:expand",{bubbles:!0})))},toggleMinimize:function(i){let o=this.instances.get(i);!o||!o.state.minimizable||(o.state.isMinimized?this.expand(i):this.minimize(i))},setPosition:function(i,o){let a=this.instances.get(i);if(!(!a||!a.state.isDetached)&&(typeof o=="string"?this._setCornerPosition(i,o==="bottom-left"||o==="bottom-right"?o:"bottom-right"):o&&typeof o.x=="number"&&typeof o.y=="number"&&this._setCustomPositionFromRect(i,o.x,o.y),a.state.persistPosition)){let c=i.getBoundingClientRect();this._savePositionPixels(a,c.left,c.top)}},_setMinimizeButtonState:function(i,o){let a=i.refs&&i.refs.btnMinimize;a&&(a.innerHTML="",a.appendChild(s(o?"plus":"minus")),a.setAttribute("aria-label",o?"Expand player":"Minimize player"),a.setAttribute("aria-expanded",o?"false":"true"))},_setCornerPosition:function(i,o){i.classList.remove("is-position-custom","vd-music-player-floating-bottom-left","vd-music-player-floating-bottom-right"),i.style.removeProperty("--vd-music-player-floating-top"),i.style.removeProperty("--vd-music-player-floating-left"),o==="bottom-left"?i.classList.add("vd-music-player-floating-bottom-left"):i.classList.add("vd-music-player-floating-bottom-right")},_setCustomPositionFromRect:function(i,o,a){i.classList.remove("vd-music-player-floating-bottom-left","vd-music-player-floating-bottom-right"),i.classList.add("is-position-custom"),i.style.setProperty("--vd-music-player-floating-left",o+"px"),i.style.setProperty("--vd-music-player-floating-top",a+"px")},_loadPersistedPosition:function(i,o){if(!o.state.persistPosition)return;let a=this._persistKeyForInstance(o,i),c=null;if(typeof window.safeStorageGet=="function")c=window.safeStorageGet(a,null);else try{c=localStorage.getItem(a)}catch{}if(c)try{let l=JSON.parse(c);l&&typeof l.x=="number"&&typeof l.y=="number"&&this._setCustomPositionFromRect(i,l.x,l.y)}catch{}},_savePositionPixels:function(i,o,a){if(!i.state.persistPosition)return;let c=this._containerOf(i);if(!c)return;let l=this._persistKeyForInstance(i,c),f=JSON.stringify({x:o,y:a});if(typeof window.safeStorageSet=="function")window.safeStorageSet(l,f);else try{localStorage.setItem(l,f)}catch{}},_persistKeyForInstance:function(i,o){let a=i.state.persistKey;return a&&String(a).trim()?t(String(a).trim()):t(o.id||"")},_unbindFloatingDrag:function(i){i.ui&&typeof i.ui.unbindDrag=="function"&&(i.ui.unbindDrag(),i.ui.unbindDrag=null)},_bindFloatingDrag:function(i){this._unbindFloatingDrag(i);let o=i.refs&&i.refs.dragHandle;if(!o||!i.state||!i.state.draggable)return;let a=this,c=this._containerOf(i);if(!c)return;let l=0,f=0,d=0,h=0,u=!1,p=function(_){if(_.pointerType==="mouse"&&_.button!==0)return;_.preventDefault(),u=!0;let g=c.getBoundingClientRect();d=g.left,h=g.top,l=_.clientX,f=_.clientY,a._setCustomPositionFromRect(c,d,h);try{o.setPointerCapture(_.pointerId)}catch{}},E=function(_){if(!u)return;let g=_.clientX-l,C=_.clientY-f,S=d+g,w=h+C,b=c.getBoundingClientRect(),V=b.width,I=b.height,q=window.innerWidth,M=window.innerHeight,v=8;S=Math.max(v,Math.min(S,q-V-v)),w=Math.max(v,Math.min(w,M-I-v)),a._setCustomPositionFromRect(c,S,w)},L=function(_){if(u){if(u=!1,typeof o.hasPointerCapture=="function"&&o.hasPointerCapture(_.pointerId))try{o.releasePointerCapture(_.pointerId)}catch{}if(i.state.persistPosition){let g=c.getBoundingClientRect();a._savePositionPixels(i,g.left,g.top)}}};o.addEventListener("pointerdown",p),o.addEventListener("pointermove",E),o.addEventListener("pointerup",L),o.addEventListener("pointercancel",L),i.ui=i.ui||{restore:null,unbindDrag:null},i.ui.unbindDrag=function(){o.removeEventListener("pointerdown",p),o.removeEventListener("pointermove",E),o.removeEventListener("pointerup",L),o.removeEventListener("pointercancel",L)}},getState:function(i){let o=this.instances.get(i);if(!o)return null;let a=o.state;return{isPlaying:a.isPlaying,currentIndex:a.currentIndex,currentTrack:a.tracks[a.currentIndex]||null,volume:a.volume,shuffle:a.shuffle,tracks:a.tracks.slice(),isDetached:!!a.isDetached,isMinimized:!!a.isMinimized}},destroy:function(i){let o=this.instances.get(i);if(o){if(this._unbindFloatingDrag(o),o.state&&o.state.isDetached)try{this.attach(i)}catch{}o.cleanup.forEach(a=>a()),this.instances.delete(i),i.removeAttribute("data-music-player-initialized")}},destroyAll:function(){this.instances.forEach((i,o)=>this.destroy(o))},_loadTrack:function(i,o,a){let c=i.state.tracks[o];if(!c)return;let l=this._containerOf(i);i.state.currentIndex=o,i.audio.src=c.url,i.refs.trackName&&(i.refs.trackName.textContent=c.name||"Unknown Track",i.refs.trackName.classList.remove("is-idle")),i.refs.playlistPanel&&i.refs.playlistPanel.querySelectorAll(".vd-music-player-playlist-item").forEach((f,d)=>{let h=d===o;f.classList.toggle("is-active",h),f.setAttribute("aria-current",h?"true":"false")}),i.refs.progressBar&&(i.refs.progressBar.value="0",n(i.refs.progressBar)),i.refs.timeElapsed&&(i.refs.timeElapsed.textContent="0:00"),i.refs.timeDuration&&(i.refs.timeDuration.textContent="0:00"),l&&l.dispatchEvent(new CustomEvent("musicplayer:trackchange",{bubbles:!0,detail:{index:o,name:c.name,url:c.url}})),a&&i.audio.play().catch(()=>{})},_containerOf:function(i){for(let[o,a]of this.instances)if(a===i)return o;return null}};typeof window.Vanduo<"u"&&window.Vanduo.register("musicPlayer",r),window.VanduoMusicPlayer=r})();var de=window.Vanduo;var be=de;
|
|
42
|
+
`},isUsingDefaultPrimary:function(){return this.state.primary===this.DEFAULTS.PRIMARY_LIGHT||this.state.primary===this.DEFAULTS.PRIMARY_DARK},_normalizeDefaultPrimaryIfStaleWithStoredTheme:function(){if(!this.isUsingDefaultPrimary())return;let e=this.getDefaultPrimary(this.state.theme);this.state.primary!==e&&(this.state.primary=e)},bindEvents:function(e){if(this.bindTriggerEvents(e),this.bindPanelEvents(),window.matchMedia){let t=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>{if(this.state.theme==="system"&&this.isUsingDefaultPrimary()){let s=this.getDefaultPrimary("system");s!==this.state.primary&&(this.applyPrimary(s),this.updateUI())}};t.addEventListener("change",n),this._cleanup.push(()=>t.removeEventListener("change",n))}this.addListener(document,"click",t=>{this.state.isOpen&&this.elements.customizer&&!this.elements.customizer.contains(t.target)&&this.close()}),this.addListener(document,"keydown",t=>{t.key==="Escape"&&this.state.isOpen&&this.close()})},bindTriggerEvents:function(e){(e?this.getTriggers(e):this.elements.triggers).forEach(n=>{if(n.getAttribute("data-customizer-trigger-initialized")==="true")return;let s=i=>{i.preventDefault(),i.stopPropagation(),this.elements.activeTrigger=n,this.elements.trigger=n,this.toggle()};n.addEventListener("click",s),n._themeCustomizerTriggerHandler=s,n.setAttribute("data-customizer-trigger-initialized","true")})},cleanupTrigger:function(e){!e||e.getAttribute("data-customizer-trigger-initialized")!=="true"||(e._themeCustomizerTriggerHandler&&(e.removeEventListener("click",e._themeCustomizerTriggerHandler),delete e._themeCustomizerTriggerHandler),e.setAttribute("aria-expanded","false"),e.removeAttribute("data-customizer-trigger-initialized"),this.elements.activeTrigger===e&&(this.elements.activeTrigger=null),this.elements.triggers=this.elements.triggers.filter(function(t){return t!==e}),this.elements.trigger===e&&(this.elements.trigger=this.elements.triggers[0]||null))},toggle:function(){this.state.isOpen?this.close():this.open()},open:function(){this.state.isOpen=!0,this.positionPanel(),this.elements.panel&&this.elements.panel.classList.add("is-open"),this.elements.triggers.forEach(e=>e.setAttribute("aria-expanded","false")),this.elements.trigger&&this.elements.trigger.setAttribute("aria-expanded","true"),this.elements.overlay&&this.elements.overlay.classList.add("is-active"),this.dispatchEvent("panel-open",{isOpen:!0})},close:function(){this.state.isOpen=!1,this.elements.panel&&this.elements.panel.classList.remove("is-open"),this.elements.triggers.forEach(e=>e.setAttribute("aria-expanded","false")),this.elements.overlay&&this.elements.overlay.classList.remove("is-active"),this.dispatchEvent("panel-close",{isOpen:!1})},updateUI:function(){if(!this.elements.panel)return;this.elements.panel.querySelectorAll("[data-color]").forEach(t=>{t.classList.toggle("is-active",t.dataset.color===this.state.primary)}),this.elements.panel.querySelectorAll("[data-neutral]").forEach(t=>{t.classList.toggle("is-active",t.dataset.neutral===this.state.neutral)}),this.elements.panel.querySelectorAll("[data-radius]").forEach(t=>{t.classList.toggle("is-active",t.dataset.radius===this.state.radius)});let e=this.elements.panel.querySelector("[data-customizer-font]");e&&(e.value=this.state.font)},reset:function(){this.applyTheme(this.DEFAULTS.THEME),this.applyPrimary(this.getDefaultPrimary(this.DEFAULTS.THEME)),this.applyNeutral(this.DEFAULTS.NEUTRAL),this.applyRadius(this.DEFAULTS.RADIUS),this.applyFont(this.DEFAULTS.FONT),this.updateUI(),this.dispatchEvent("reset",{state:{...this.state}})},getState:function(){return{...this.state}},setPreferences:function(e){e.primary&&this.applyPrimary(e.primary),e.neutral&&this.applyNeutral(e.neutral),e.radius&&this.applyRadius(e.radius),e.font&&this.applyFont(e.font),e.theme&&this.applyTheme(e.theme),this.updateUI()},getStorageValue:function(e,t){if(typeof window.safeStorageGet=="function")return window.safeStorageGet(e,t);try{let n=localStorage.getItem(e);return n!==null?n:t}catch{return t}},setStorageValue:function(e,t){if(typeof window.safeStorageSet=="function")return window.safeStorageSet(e,t);try{return localStorage.setItem(e,t),!0}catch{return!1}},destroyAll:function(e){let t=this.normalizeRoot(e);if(t!==document){this.getTriggers(t).forEach(n=>{this.cleanupTrigger(n)}),this.pruneTriggers(),this.elements.triggers.length||this.destroyAll(document);return}this._cleanup.forEach(n=>n()),this._cleanup=[],this.elements.panel&&this.elements.panel.removeAttribute("data-customizer-initialized"),this.elements.triggers.slice().forEach(n=>{this.cleanupTrigger(n)}),this._ownsDynamicPanel&&(this.elements.panel&&this.elements.panel.parentNode&&this.elements.panel.parentNode.removeChild(this.elements.panel),this.elements.overlay&&this.elements.overlay.parentNode&&this.elements.overlay.parentNode.removeChild(this.elements.overlay),this._ownsDynamicPanel=!1),this.close(),this.elements.customizer=null,this.elements.trigger=null,this.elements.activeTrigger=null,this.elements.triggers=[],this.elements.panel=null,this.elements.overlay=null,this.isInitialized=!1}};window.Vanduo&&window.Vanduo.register("themeCustomizer",m),window.ThemeCustomizer=m})();(function(){"use strict";let m=["system","light","dark"],e={system:"ph ph-desktop",light:"ph ph-sun",dark:"ph ph-moon"},t={system:"Theme: System",light:"Theme: Light",dark:"Theme: Dark"},n={system:"Use system preference",light:"Light theme",dark:"Dark theme"},s={isInitialized:!1,_mediaQuery:null,_onMediaChange:null,menuInstances:new Map,getToggles:function(i){let o=i||document;return(window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(o,'[data-toggle="theme"]'):Array.from(o.querySelectorAll('[data-toggle="theme"]'))).filter(function(r){return!r.closest('.vd-theme-switcher[data-theme-ui="menu"]')})},getMenuSwitchers:function(i){let o=i||document;return window.Vanduo&&typeof window.Vanduo.queryAll=="function"?window.Vanduo.queryAll(o,'.vd-theme-switcher[data-theme-ui="menu"]'):Array.from(o.querySelectorAll('.vd-theme-switcher[data-theme-ui="menu"]'))},init:function(i){if(this.STORAGE_KEY="vanduo-theme-preference",this.state={preference:this.getPreference()},this.isInitialized){this.applyTheme(),this.renderUI(i),this.updateUI(i);return}this.isInitialized=!0,this.applyTheme(),this.listenForSystemChanges(),this.renderUI(i)},getPreference:function(){return this.getStorageValue(this.STORAGE_KEY,"system")},setPreference:function(i){m.includes(i)&&(this.state.preference=i,this.setStorageValue(this.STORAGE_KEY,i),this.applyTheme(),window.ThemeCustomizer&&window.ThemeCustomizer.applyTheme&&!window.ThemeCustomizer._isApplying&&window.ThemeCustomizer.applyTheme(i),this.updateUI())},getStorageValue:function(i,o){if(typeof window.safeStorageGet=="function")return window.safeStorageGet(i,o);try{let a=localStorage.getItem(i);return a!==null?a:o}catch{return o}},setStorageValue:function(i,o){if(typeof window.safeStorageSet=="function")return window.safeStorageSet(i,o);try{return localStorage.setItem(i,o),!0}catch{return!1}},applyTheme:function(){let i=this.state.preference;i==="system"?document.documentElement.removeAttribute("data-theme"):document.documentElement.setAttribute("data-theme",i)},listenForSystemChanges:function(){this._mediaQuery&&this._onMediaChange||(this._mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this._onMediaChange=i=>{this.state.preference==="system"&&(this.applyTheme(),window.ThemeCustomizer&&typeof window.ThemeCustomizer.applyTheme=="function"&&!window.ThemeCustomizer._isApplying&&window.ThemeCustomizer.applyTheme("system"))},this._mediaQuery.addEventListener("change",this._onMediaChange))},renderUI:function(i){this.renderMenuSwitchers(i),this.getToggles(i).forEach(a=>{if(a.getAttribute("data-theme-initialized")==="true"){a.tagName==="SELECT"&&(a.value=this.state.preference);return}if(a.tagName==="SELECT"){a.value=this.state.preference;let r=c=>{this.setPreference(c.target.value)};a.addEventListener("change",r),a._themeToggleHandler=r}else{let r=()=>{let c=m,l=(c.indexOf(this.state.preference)+1)%c.length;this.setPreference(c[l])};a.addEventListener("click",r),a._themeToggleHandler=r}a.setAttribute("data-theme-initialized","true")}),this.updateUI(i)},renderMenuSwitchers:function(i){this.getMenuSwitchers(i).forEach(a=>{if(a.getAttribute("data-theme-menu-initialized")==="true")return;let r=a.querySelector(".vd-theme-switcher-toggle"),c=a.querySelector(".vd-theme-switcher-menu");if(!r||!c)return;let l=c.querySelectorAll("[data-theme-value]"),d=[];r.setAttribute("aria-haspopup","true"),r.setAttribute("aria-expanded","false"),c.setAttribute("aria-hidden","true");let u=g=>{g.preventDefault(),g.stopPropagation(),this.toggleMenu(a,r,c)};r.addEventListener("click",u),d.push(()=>r.removeEventListener("click",u)),l.forEach(g=>{let w=b=>{b.preventDefault(),b.stopPropagation();let L=g.getAttribute("data-theme-value");L&&this.setPreference(L),this.closeMenu(a,r,c)};g.addEventListener("click",w),d.push(()=>g.removeEventListener("click",w));let T=b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),w(b))};g.addEventListener("keydown",T),d.push(()=>g.removeEventListener("keydown",T))});let f=g=>{g.key==="ArrowDown"||g.key==="Enter"||g.key===" "?(g.preventDefault(),c.classList.contains("is-open")||this.openMenu(a,r,c)):g.key==="Escape"&&c.classList.contains("is-open")&&(g.preventDefault(),this.closeMenu(a,r,c))};r.addEventListener("keydown",f),d.push(()=>r.removeEventListener("keydown",f));let h=g=>{this.handleMenuKeydown(g,a,r,c,l)};c.addEventListener("keydown",h),d.push(()=>c.removeEventListener("keydown",h));let p=g=>{!a.contains(g.target)&&c.classList.contains("is-open")&&this.closeMenu(a,r,c)};document.addEventListener("click",p),d.push(()=>document.removeEventListener("click",p)),this.menuInstances.set(a,{toggle:r,menu:c,cleanup:d}),a.setAttribute("data-theme-menu-initialized","true"),this.initMenuTooltips(a)})},initMenuTooltips:function(i){let o=window.Vanduo&&typeof window.Vanduo.getComponent=="function"?window.Vanduo.getComponent("tooltips"):null;o&&typeof o.init=="function"&&o.init(i)},closeOtherMenus:function(i){this.menuInstances.forEach((o,a)=>{o.menu!==i&&o.menu.classList.contains("is-open")&&this.closeMenu(a,o.toggle,o.menu)})},toggleMenu:function(i,o,a){a.classList.contains("is-open")?this.closeMenu(i,o,a):this.openMenu(i,o,a)},openMenu:function(i,o,a){this.closeOtherMenus(a),i.classList.add("is-open"),a.classList.add("is-open"),o.setAttribute("aria-expanded","true"),a.setAttribute("aria-hidden","false");let r=a.querySelector("[data-theme-value].is-active")||a.querySelector("[data-theme-value]");r&&setTimeout(()=>r.focus(),0)},closeMenu:function(i,o,a){i.classList.remove("is-open"),a.classList.remove("is-open"),o.setAttribute("aria-expanded","false"),a.setAttribute("aria-hidden","true")},handleMenuKeydown:function(i,o,a,r,c){let l=Array.from(c),d=l.indexOf(document.activeElement);if(i.key==="Escape"){i.preventDefault(),this.closeMenu(o,a,r),a.focus();return}if(i.key==="ArrowDown"){i.preventDefault();let u=d<l.length-1?d+1:0;l[u].focus();return}if(i.key==="ArrowUp"){i.preventDefault();let u=d>0?d-1:l.length-1;l[u].focus()}},updateMenuSwitcher:function(i){let o=i.querySelector(".vd-theme-switcher-toggle"),a=i.querySelector(".vd-theme-switcher-menu");if(!o||!a)return;let r=this.state.preference,c=o.querySelector("[data-theme-icon]"),l=t[r]||t.system;c&&(c.className=e[r]||e.system),o.setAttribute("aria-label",l),o.hasAttribute("data-tooltip")&&(o.setAttribute("data-tooltip",l),this.refreshTooltipContent(o,l)),a.querySelectorAll("[data-theme-value]").forEach(d=>{let u=d.getAttribute("data-theme-value"),f=u===r;d.classList.toggle("is-active",f),d.setAttribute("aria-checked",f?"true":"false");let h=n[u];h&&d.hasAttribute("data-tooltip")&&(d.setAttribute("data-tooltip",h),this.refreshTooltipContent(d,h))})},refreshTooltipContent:function(i,o){let a=window.Vanduo&&typeof window.Vanduo.getComponent=="function"?window.Vanduo.getComponent("tooltips"):null;!a||typeof a.update!="function"||a.update(i,o)},updateCycleToggle:function(i){let o=this.state.preference,a=i.querySelector("[data-theme-icon]"),r=t[o]||t.system;a&&(a.className=e[o]||e.system),i.setAttribute("aria-label",r),i.hasAttribute("data-tooltip")&&(i.setAttribute("data-tooltip",r),this.refreshTooltipContent(i,r))},updateUI:function(i){this.getToggles(i).forEach(a=>{if(a.tagName==="SELECT")a.value=this.state.preference;else{let r=a.querySelector(".theme-current-label");r&&(r.textContent=this.state.preference.charAt(0).toUpperCase()+this.state.preference.slice(1)),a.querySelector("[data-theme-icon]")&&this.updateCycleToggle(a)}}),this.getMenuSwitchers(i).forEach(a=>{this.updateMenuSwitcher(a)})},destroyAll:function(i){let o=i||document;this.getMenuSwitchers(o).forEach(r=>{let c=this.menuInstances.get(r);c&&(c.cleanup.forEach(l=>l()),this.closeMenu(r,c.toggle,c.menu),this.menuInstances.delete(r)),r.removeAttribute("data-theme-menu-initialized")}),this.getToggles(o).filter(function(r){return r.getAttribute("data-theme-initialized")==="true"}).forEach(r=>{if(r._themeToggleHandler){let c=r.tagName==="SELECT"?"change":"click";r.removeEventListener(c,r._themeToggleHandler),delete r._themeToggleHandler}r.removeAttribute("data-theme-initialized")}),o===document&&this._mediaQuery&&this._onMediaChange&&this._mediaQuery.removeEventListener("change",this._onMediaChange),o===document&&(this._mediaQuery=null,this._onMediaChange=null,this.isInitialized=!1)}};window.Vanduo&&window.Vanduo.register("themeSwitcher",s)})();(function(){"use strict";let m={defaults:{position:"top-right",duration:5e3,dismissible:!0,showProgress:!0,pauseOnHover:!0},containers:{},getContainer:function(e){if(this.containers[e])return this.containers[e];let t=document.createElement("div");return t.className=`vd-toast-container vd-toast-container-${e}`,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","false"),document.body.appendChild(t),this.containers[e]=t,t},show:function(e,t,n){typeof e=="string"&&(t&&typeof t=="object"?e=Object.assign({},t,{message:e}):e={message:e,type:t,duration:n});let s=Object.assign({},this.defaults,e),i=this.getContainer(s.position),o=document.createElement("div");o.className="vd-toast",s.type&&o.classList.add(`vd-toast-${s.type}`),s.solid&&o.classList.add("vd-toast-solid"),s.showProgress&&s.duration>0&&o.classList.add("vd-toast-with-progress");let a="";if(s.icon){let p=s.iconAllowSvg===!0,g=typeof sanitizeHtml=="function"?sanitizeHtml(s.icon,{allowSvg:p,allowStyle:!1}):escapeHtml(s.icon);a+=`<span class="vd-toast-icon">${g}</span>`}else s.type&&(a+=`<span class="vd-toast-icon">${this.getDefaultIcon(s.type)}</span>`);let r=typeof escapeHtml=="function"?escapeHtml:function(p){let g=document.createElement("div");return g.appendChild(document.createTextNode(p)),g.innerHTML};if(a+='<div class="vd-toast-content">',s.title&&(a+=`<div class="vd-toast-title">${r(String(s.title))}</div>`),s.message&&(a+=`<div class="vd-toast-message">${r(String(s.message))}</div>`),a+="</div>",s.dismissible&&(a+='<button type="button" class="vd-toast-close" aria-label="Close"></button>'),s.showProgress&&s.duration>0){let p=parseInt(s.duration,10)||0;a+=`<div class="vd-toast-progress" style="animation-duration: ${p}ms"></div>`}if(o.innerHTML=a,i.appendChild(o),o._toastCleanup=[],s.dismissible){let p=o.querySelector(".vd-toast-close"),g=()=>{this.dismiss(o)};p.addEventListener("click",g),o._toastCleanup.push(()=>p.removeEventListener("click",g))}let c=null,l=s.duration,d=null,u=()=>{if(s.duration>0){d=Date.now(),c=setTimeout(()=>{this.dismiss(o)},l),o._toastTimeoutId=c;let p=o.querySelector(".vd-toast-progress");p&&(p.style.animationPlayState="running")}},f=()=>{if(c){clearTimeout(c),c=null,o._toastTimeoutId=null,l-=Date.now()-d;let p=o.querySelector(".vd-toast-progress");p&&(p.style.animationPlayState="paused")}};s.pauseOnHover&&(o.addEventListener("mouseenter",f),o.addEventListener("mouseleave",u),o._toastCleanup.push(()=>o.removeEventListener("mouseenter",f),()=>o.removeEventListener("mouseleave",u))),requestAnimationFrame(()=>{o.classList.add("is-visible"),u()}),o._toastConfig=s;let h=new CustomEvent("toast:show",{bubbles:!0,detail:{toast:o,config:s}});return o.dispatchEvent(h),o},dismiss:function(e){if(!e||e.classList.contains("is-exiting"))return;e._toastTimeoutId&&(clearTimeout(e._toastTimeoutId),e._toastTimeoutId=null),e.classList.remove("is-visible"),e.classList.add("is-exiting");let t=new CustomEvent("toast:dismiss",{bubbles:!0,detail:{toast:e}});e.dispatchEvent(t);let n=()=>{e.removeEventListener("transitionend",n),e._toastCleanup&&(e._toastCleanup.forEach(s=>s()),delete e._toastCleanup),e.parentElement&&e.parentElement.removeChild(e)};e.addEventListener("transitionend",n),setTimeout(()=>{e._toastCleanup&&(e._toastCleanup.forEach(s=>s()),delete e._toastCleanup),e.parentElement&&e.parentElement.removeChild(e)},400)},destroyAll:function(){Object.keys(this.containers).forEach(e=>{let t=this.containers[e];if(!t)return;t.querySelectorAll(".vd-toast").forEach(s=>{s._toastTimeoutId&&clearTimeout(s._toastTimeoutId),s._toastCleanup&&(s._toastCleanup.forEach(i=>i()),delete s._toastCleanup),s.parentElement&&s.parentElement.removeChild(s)}),t.parentElement&&t.parentElement.removeChild(t)}),this.containers={}},dismissAll:function(e){e&&this.containers[e]?this.containers[e].querySelectorAll(".vd-toast").forEach(n=>this.dismiss(n)):Object.values(this.containers).forEach(t=>{t.querySelectorAll(".vd-toast").forEach(s=>this.dismiss(s))})},getDefaultIcon:function(e){return{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>'}[e]||""},success:function(e,t){return this.show(Object.assign({message:e,type:"success"},t))},error:function(e,t){return this.show(Object.assign({message:e,type:"error"},t))},warning:function(e,t){return this.show(Object.assign({message:e,type:"warning"},t))},info:function(e,t){return this.show(Object.assign({message:e,type:"info"},t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("toast",m),window.Toast=m})();(function(){"use strict";let m={tooltips:new Map,delayTimers:new Map,sanitizeHtml:function(e,t){return typeof sanitizeHtml=="function"?sanitizeHtml(e,t):e||""},init:function(e){window.Vanduo.queryAll(e,"[data-tooltip], [data-tooltip-html]").forEach(n=>{this.tooltips.has(n)||this.initTooltip(n)})},initTooltip:function(e){let t=this.createTooltip(e),n=[],s=()=>{this.showTooltip(e,t)},i=()=>{this.hideTooltip(e,t)},o=()=>{this.showTooltip(e,t)},a=()=>{this.hideTooltip(e,t)};e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",i),e.addEventListener("focus",o),e.addEventListener("blur",a),n.push(()=>e.removeEventListener("mouseenter",s),()=>e.removeEventListener("mouseleave",i),()=>e.removeEventListener("focus",o),()=>e.removeEventListener("blur",a)),this.tooltips.set(e,{tooltip:t,cleanup:n})},createTooltip:function(e){let t=document.createElement("div");t.className="vd-tooltip",t.setAttribute("role","tooltip"),t.setAttribute("aria-hidden","true");let n="tooltip-"+Math.random().toString(36).substr(2,9);t.id=n,e.setAttribute("aria-describedby",n);let s=e.dataset.tooltipHtml,i=e.dataset.tooltip;if(s){let r=e.hasAttribute("data-tooltip-allow-svg");t.innerHTML=this.sanitizeHtml(s,{allowSvg:r,allowStyle:!1}),t.classList.add("vd-tooltip-html")}else i&&(t.textContent=i);let o=e.dataset.tooltipPlacement||e.dataset.placement||"top";t.setAttribute("data-placement",o),t.classList.add(`vd-tooltip-${o}`),e.dataset.tooltipVariant&&t.classList.add(`vd-tooltip-${e.dataset.tooltipVariant}`),e.dataset.tooltipSize&&t.classList.add(`vd-tooltip-${e.dataset.tooltipSize}`);let a=parseInt(e.dataset.tooltipDelay)||0;return t.dataset.delay=a,document.body.appendChild(t),t},showTooltip:function(e,t){let n=parseInt(t.dataset.delay)||0;if(n>0){let s=setTimeout(()=>{this.positionTooltip(e,t),t.classList.add("is-visible"),t.setAttribute("aria-hidden","false")},n);this.delayTimers.set(e,s)}else this.positionTooltip(e,t),t.classList.add("is-visible"),t.setAttribute("aria-hidden","false")},hideTooltip:function(e,t){let n=this.delayTimers.get(e);n&&(clearTimeout(n),this.delayTimers.delete(e)),t.classList.remove("is-visible"),t.setAttribute("aria-hidden","true")},positionTooltip:function(e,t){let n=t.dataset.placement||"top",s=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop,a=window.pageXOffset||document.documentElement.scrollLeft,r=0,c=0;switch(n){case"top":r=s.top+o-i.height-8,c=s.left+a+s.width/2-i.width/2;break;case"bottom":r=s.bottom+o+8,c=s.left+a+s.width/2-i.width/2;break;case"left":r=s.top+o+s.height/2-i.height/2,c=s.left+a-i.width-8;break;case"right":r=s.top+o+s.height/2-i.height/2,c=s.right+a+8;break}let l=window.innerWidth,d=window.innerHeight,u=8;c<u?c=u:c+i.width>l-u&&(c=l-i.width-u),r<o+u?r=o+u:r+i.height>o+d-u&&(r=o+d-i.height-u),t.style.cssText=`position: absolute; top: 0; left: 0; transform: translate(${c}px, ${r}px);`},show:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t&&this.tooltips.has(t)){let{tooltip:n}=this.tooltips.get(t);this.showTooltip(t,n)}},hide:function(e){let t=typeof e=="string"?document.querySelector(e):e;if(t&&this.tooltips.has(t)){let{tooltip:n}=this.tooltips.get(t);this.hideTooltip(t,n)}},update:function(e,t,n=!1){let s=typeof e=="string"?document.querySelector(e):e;if(s&&this.tooltips.has(s)){let{tooltip:i}=this.tooltips.get(s);if(n){let o=s.hasAttribute("data-tooltip-allow-svg");i.innerHTML=this.sanitizeHtml(t,{allowSvg:o,allowStyle:!1}),i.classList.add("vd-tooltip-html")}else i.textContent=t,i.classList.remove("vd-tooltip-html")}},destroy:function(e){let t=this.tooltips.get(e);if(!t)return;let n=this.delayTimers.get(e);n&&(clearTimeout(n),this.delayTimers.delete(e)),t.cleanup.forEach(s=>s()),t.tooltip&&t.tooltip.parentNode&&t.tooltip.parentNode.removeChild(t.tooltip),this.tooltips.delete(e)},destroyAll:function(){this.tooltips.forEach((e,t)=>{this.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("tooltips",m),window.VanduoTooltips=m})();(function(){"use strict";let m={minQueryLength:2,maxResults:10,debounceMs:150,highlightTag:"mark",keyboardShortcut:!0,containerSelector:".vd-doc-search",inputSelector:".vd-doc-search-input",resultsSelector:".vd-doc-search-results",contentSelector:".doc-content section[id]",titleSelector:".demo-title, h2, h3",navSelector:".doc-nav-link",sectionSelector:".doc-nav-section",excludeFromContent:"pre, code, script, style",maxContentLength:500,data:null,categoryIcons:{"getting-started":"ph-rocket-launch",core:"ph-cube",components:"ph-puzzle-piece",interactive:"ph-cursor-click","data-display":"ph-table",feedback:"ph-bell",meta:"ph-info",default:"ph-file-text"},onSelect:null,onSearch:null,onOpen:null,onClose:null,emptyTitle:"No results found",emptyText:"Try different keywords or check spelling",placeholder:"Search..."},e={mark:!0,span:!0,strong:!0,em:!0};function t(a){return typeof window.VanduoLifecycle<"u"&&window.VanduoLifecycle.isRoot(a)}function n(a){return t(a)?a:document}function s(a){let r=typeof a=="string"?a.toLowerCase():"mark";return e[r]?r:"mark"}function i(a){let r=Object.assign({},m,a||{});r.root=n(r.root),r.highlightTag=s(r.highlightTag);let c={initialized:!1,index:[],results:[],activeIndex:-1,isOpen:!1,query:"",container:null,input:null,resultsContainer:null,debounceTimer:null,boundHandlers:{}};function l(y){if(window.Vanduo&&typeof window.Vanduo.queryAll=="function")return window.Vanduo.queryAll(r.root,y);let x=n(r.root);if(x===document)return Array.from(document.querySelectorAll(y));let _=[];return x instanceof Element&&x.matches(y)&&_.push(x),_.concat(Array.from(x.querySelectorAll(y)))}function d(y){let x=l(y);return x.length?x[0]:null}function u(y,x,..._){try{x(..._)}catch(N){console.warn('[Vanduo Search] Callback error in "'+y+'":',N)}}function f(y){if(c.resultsContainer)try{c.resultsContainer.innerHTML=y}catch(x){console.warn("[Vanduo Search] Failed to render results:",x)}}function h(){return c.initialized?te:(c.container=d(r.containerSelector),!c.container||(c.input=c.container.querySelector(r.inputSelector),c.resultsContainer=c.container.querySelector(r.resultsSelector),!c.input||!c.resultsContainer)?(c.initialized=!1,null):(r.placeholder&&c.input.setAttribute("placeholder",r.placeholder),p(),V(),v(),c.initialized=!0,te))}function p(){if(c.index=[],r.data&&Array.isArray(r.data)){r.data.forEach(function(_){c.index.push({id:_.id||L(_.title),title:_.title||"",category:_.category||"",categorySlug:L(_.category||""),content:_.content||"",keywords:_.keywords||b(_.title+" "+_.content),url:_.url||"#"+(_.id||L(_.title)),icon:_.icon||""})});return}let y=l(r.contentSelector),x=g();y.forEach(function(_){let N=_.id;if(!N)return;let z=_.querySelector(r.titleSelector),O=z?z.textContent.replace(/v[\d.]+/g,"").trim():N,A=x[N]||"Documentation",D=w(_),E=T(_,O),k=z?z.querySelector("i.ph"):null,H="";if(k&&k.classList){for(let B=0;B<k.classList.length;B++)if(k.classList[B].indexOf("ph-")===0){H=k.classList[B];break}}c.index.push({id:N,title:O,category:A,categorySlug:L(A),content:D,keywords:E,url:"#"+N,icon:H})})}function g(){let y={},x="Documentation";return l(r.navSelector+", "+r.sectionSelector).forEach(function(N){if(N.classList.contains("doc-nav-section"))x=N.textContent.trim();else{let z=N.getAttribute("href");if(z&&z.startsWith("#")){let O=z.substring(1);y[O]=x}}}),y}function w(y){let x=y.cloneNode(!0);x.querySelectorAll(r.excludeFromContent).forEach(function(z){z.remove()});let N=x.textContent||"";return N=N.replace(/\s+/g," ").trim(),N.substring(0,r.maxContentLength)}function T(y,x){let _=[];return x.toLowerCase().split(/\s+/).forEach(function(O){O.length>2&&_.push(O)}),y.querySelectorAll("code").forEach(function(O){let D=(O.textContent||"").match(/\.([\w-]+)/g);D&&D.forEach(function(E){_.push(E.substring(1).toLowerCase())})}),y.querySelectorAll("[data-tooltip], [data-modal]").forEach(function(O){O.getAttributeNames().filter(function(D){return D.startsWith("data-")}).forEach(function(D){_.push(D.replace("data-",""))})}),Array.from(new Set(_))}function b(y){return y.toLowerCase().split(/\s+/).filter(function(_){return _.length>2})}function L(y){return y.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function V(){c.boundHandlers.handleInput=function(y){q(y)},c.boundHandlers.handleFocus=function(){c.query.length>=r.minQueryLength&&ne()},c.boundHandlers.handleKeydown=function(y){I(y)},c.boundHandlers.handleOutsideClick=function(y){c.container.contains(y.target)||ee()},c.boundHandlers.handleGlobalKeydown=function(y){r.keyboardShortcut&&(y.metaKey||y.ctrlKey)&&y.key==="k"&&(y.preventDefault(),c.input.focus(),c.input.select())},c.boundHandlers.handleResultClick=function(y){let x=y.target.closest(".vd-doc-search-result");if(x){let _=parseInt(x.dataset.index,10);J(_)}},c.input.addEventListener("input",c.boundHandlers.handleInput),c.input.addEventListener("focus",c.boundHandlers.handleFocus),c.input.addEventListener("keydown",c.boundHandlers.handleKeydown),document.addEventListener("click",c.boundHandlers.handleOutsideClick),document.addEventListener("keydown",c.boundHandlers.handleGlobalKeydown),c.resultsContainer.addEventListener("click",c.boundHandlers.handleResultClick)}function C(){c.input&&(c.input.removeEventListener("input",c.boundHandlers.handleInput),c.input.removeEventListener("focus",c.boundHandlers.handleFocus),c.input.removeEventListener("keydown",c.boundHandlers.handleKeydown)),document.removeEventListener("click",c.boundHandlers.handleOutsideClick),document.removeEventListener("keydown",c.boundHandlers.handleGlobalKeydown),c.resultsContainer&&c.resultsContainer.removeEventListener("click",c.boundHandlers.handleResultClick)}function v(){let y=c.resultsContainer.id||"search-results-"+Math.random().toString(36).substr(2,9);c.resultsContainer.id=y,c.input.setAttribute("role","combobox"),c.input.setAttribute("aria-autocomplete","list"),c.input.setAttribute("aria-controls",y),c.input.setAttribute("aria-expanded","false"),c.resultsContainer.setAttribute("role","listbox"),c.resultsContainer.setAttribute("aria-label","Search results")}function q(y){let x=y.target.value.trim();c.debounceTimer&&clearTimeout(c.debounceTimer),c.debounceTimer=setTimeout(function(){if(c.query=x,x.length<r.minQueryLength){ee();return}c.results=S(x),c.activeIndex=-1,M(),ne(),typeof r.onSearch=="function"&&u("onSearch",r.onSearch,x,c.results)},r.debounceMs)}function I(y){if(!c.isOpen){y.key==="ArrowDown"&&c.query.length>=r.minQueryLength&&(y.preventDefault(),c.results=S(c.query),M(),ne());return}switch(y.key){case"ArrowDown":y.preventDefault(),W(1);break;case"ArrowUp":y.preventDefault(),W(-1);break;case"Enter":y.preventDefault(),c.activeIndex>=0?J(c.activeIndex):c.results.length>0&&J(0);break;case"Escape":y.preventDefault(),ee();break;case"Tab":ee();break}}function S(y){let x=y.toLowerCase().split(/\s+/).filter(function(N){return N.length>0}),_=[];return c.index.forEach(function(N){let z=0,O=N.title.toLowerCase(),A=N.category.toLowerCase(),D=N.content.toLowerCase();x.forEach(function(E){O.includes(E)&&(z+=100,O===E?z+=50:O.startsWith(E)&&(z+=25)),A.includes(E)&&(z+=50),N.keywords.some(function(H){return H.includes(E)})&&(z+=30),D.includes(E)&&(z+=10)}),z>0&&_.push({id:N.id,title:N.title,category:N.category,categorySlug:N.categorySlug,content:N.content,url:N.url,icon:N.icon,score:z})}),_.sort(function(N,z){return z.score-N.score}),_.slice(0,r.maxResults)}function M(){if(c.results.length===0){f(P());return}let y='<ul class="vd-doc-search-results-list" role="listbox">';c.results.forEach(function(x,_){let N=_===c.activeIndex,z=x.icon||$(x.categorySlug),O=Z(x.content,c.query);y+='<li class="vd-doc-search-result'+(N?" is-active":"")+'" role="option" id="vd-doc-search-result-'+_+'" data-index="'+_+'" data-category="'+R(x.categorySlug)+'" aria-selected="'+N+'"><div class="vd-doc-search-result-icon"><i class="ph '+R(z)+'"></i></div><div class="vd-doc-search-result-content"><div class="vd-doc-search-result-title">'+Q(x.title,c.query)+'</div><div class="vd-doc-search-result-category">'+R(x.category)+'</div><div class="vd-doc-search-result-excerpt">'+Q(O,c.query)+"</div></div></li>"}),y+="</ul>",y+=F(),f(y)}function P(){return'<div class="vd-doc-search-empty"><div class="vd-doc-search-empty-icon"><i class="ph ph-magnifying-glass"></i></div><div class="vd-doc-search-empty-title">'+R(r.emptyTitle)+'</div><div class="vd-doc-search-empty-text">'+R(r.emptyText)+"</div></div>"}function F(){return'<div class="vd-doc-search-footer"><span class="vd-doc-search-footer-item"><kbd>\u2191</kbd><kbd>\u2193</kbd> to navigate</span><span class="vd-doc-search-footer-item"><kbd>\u21B5</kbd> to select</span><span class="vd-doc-search-footer-item"><kbd>esc</kbd> to close</span></div>'}function $(y){return r.categoryIcons[y]||r.categoryIcons.default||"ph-file-text"}function Z(y,x){let _=x.toLowerCase().split(/\s+/),N=y.toLowerCase(),z=100,O=-1;for(let k=0;k<_.length;k++){let H=N.indexOf(_[k]);H!==-1&&(O===-1||H<O)&&(O=H)}if(O===-1)return y.substring(0,z)+"...";let A=Math.max(0,O-30),D=Math.min(y.length,O+z),E=y.substring(A,D);return A>0&&(E="..."+E),D<y.length&&(E=E+"..."),E}function Q(y,x){if(!x)return R(y);let _=x.toLowerCase().split(/\s+/).filter(function(z){return z.length>0}),N=R(y);return _.forEach(function(z){if(z.length>50)return;let O=new RegExp("("+z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")","gi");N=N.replace(O,"<"+r.highlightTag+">$1</"+r.highlightTag+">")}),N}function R(y){let x=document.createElement("div");return x.textContent=y,x.innerHTML}function W(y){let x=c.activeIndex+y;x<0?x=c.results.length-1:x>=c.results.length&&(x=0),K(x)}function K(y){let x=c.resultsContainer.querySelector(".vd-doc-search-result.is-active");x&&(x.classList.remove("is-active"),x.setAttribute("aria-selected","false")),c.activeIndex=y;let _=c.resultsContainer.querySelector('[data-index="'+y+'"]');_&&(_.classList.add("is-active"),_.setAttribute("aria-selected","true"),c.input.setAttribute("aria-activedescendant","vd-doc-search-result-"+y),_.scrollIntoView({block:"nearest"}))}function J(y){let x=c.results[y];if(!x)return;if(ee(),c.input.value="",c.query="",typeof r.onSelect=="function"){u("onSelect",r.onSelect,x);return}let _=d(x.url)||document.querySelector(x.url);_&&(_.scrollIntoView({behavior:"smooth",block:"start"}),window.history.pushState(null,"",x.url),ce(x.id))}function ce(y){l(r.navSelector).forEach(function(_){_.classList.remove("active"),_.getAttribute("href")==="#"+y&&_.classList.add("active")})}function ne(){c.isOpen||(c.isOpen=!0,c.resultsContainer.classList.add("is-open"),c.input.setAttribute("aria-expanded","true"),typeof r.onOpen=="function"&&u("onOpen",r.onOpen))}function ee(){c.isOpen&&(c.isOpen=!1,c.activeIndex=-1,c.resultsContainer.classList.remove("is-open"),c.input.setAttribute("aria-expanded","false"),c.input.removeAttribute("aria-activedescendant"),typeof r.onClose=="function"&&u("onClose",r.onClose))}function G(){C(),c.initialized=!1,c.index=[],c.results=[],c.isOpen=!1,c.query="",c.debounceTimer&&clearTimeout(c.debounceTimer),c.resultsContainer&&f("")}function le(){p()}function ie(y){Object.assign(r,y),r.root=n(r.root),r.highlightTag=s(r.highlightTag)}function se(){return Object.assign({},r)}function de(){return c.index.slice()}let te={init:h,destroy:G,rebuild:le,search:S,open:ne,close:ee,setConfig:ie,getConfig:se,getIndex:de,getContainer:function(){return c.container}};return te}let o={create:function(a){let r=i(a);return r&&r.init(),r||null},_instance:null,config:Object.assign({},m),init:function(a,r){let c=t(a)?a:null,l=c?r:a;return this._instance&&this._instance.destroy(),l&&Object.assign(this.config,l),this._instance=i(Object.assign({},this.config,c?{root:c}:{})),this._instance?this._instance.init():null},destroy:function(a){a&&this._instance&&this._instance.getContainer()&&typeof window.VanduoLifecycle<"u"&&!window.VanduoLifecycle.isInRoot(a,this._instance.getContainer())||this._instance&&(this._instance.destroy(),this._instance=null)},destroyAll:function(a){this.destroy(a)},rebuild:function(){this._instance&&this._instance.rebuild()},search:function(a){return this._instance?this._instance.search(a):[]},open:function(){this._instance&&this._instance.open()},close:function(){this._instance&&this._instance.close()}};typeof window.Vanduo<"u"&&window.Vanduo.register("docSearch",o),window.Search=o,window.DocSearch=o,window.VanduoDocSearch=o})();(function(){"use strict";let m={instances:new Map,currentDrag:null,touchState:null,feedbackElement:null,containerSelector:".vd-draggable-container, .vd-draggable-container-vertical",init:function(e){window.Vanduo.queryAll(e,".vd-draggable, [data-draggable]").forEach(i=>{this.instances.has(i)||this.initDraggable(i)}),window.Vanduo.queryAll(e,this.containerSelector).forEach(i=>{this.instances.has(i)||this.initContainer(i)}),window.Vanduo.queryAll(e,".vd-drop-zone").forEach(i=>{this.instances.has(i)||this.initDropZone(i)}),this.createFeedbackElement()},initDraggable:function(e){let t=[];e.hasAttribute("draggable")||e.setAttribute("draggable","true"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.setAttribute("role","option"),e.setAttribute("aria-roledescription","draggable item"),e.setAttribute("aria-grabbed","false");let n=d=>{this.handleDragStart(d,e)};e.addEventListener("dragstart",n),t.push(()=>e.removeEventListener("dragstart",n));let s=d=>{this.handleDrag(d,e)};e.addEventListener("drag",s),t.push(()=>e.removeEventListener("drag",s));let i=d=>{this.handleDragEnd(d,e)};e.addEventListener("dragend",i),t.push(()=>e.removeEventListener("dragend",i));let o=d=>{this.handleTouchStart(d,e)};e.addEventListener("touchstart",o),t.push(()=>e.removeEventListener("touchstart",o));let a=d=>{this.handleTouchMove(d,e)};e.addEventListener("touchmove",a,{passive:!1}),t.push(()=>e.removeEventListener("touchmove",a));let r=d=>{this.handleTouchEnd(d,e)};e.addEventListener("touchend",r,{passive:!1}),t.push(()=>e.removeEventListener("touchend",r));let c=d=>{this.handleTouchEnd(d,e)};e.addEventListener("touchcancel",c),t.push(()=>e.removeEventListener("touchcancel",c));let l=d=>{this.handleKeydown(d,e)};e.addEventListener("keydown",l),t.push(()=>e.removeEventListener("keydown",l)),this.instances.set(e,{cleanup:t})},initContainer:function(e){e.setAttribute("role","listbox"),e.setAttribute("aria-label",e.getAttribute("aria-label")||"Draggable items"),e.querySelectorAll(".vd-draggable-item").forEach(a=>{this.instances.has(a)||this.initDraggable(a)});let n=[],s=a=>{a.preventDefault(),a.dataTransfer.dropEffect="move"},i=a=>{if(a.preventDefault(),a.dataTransfer.dropEffect="move",!this.currentDrag)return;let r=this.currentDrag.element;e.contains(r)&&(a.clientX===0&&a.clientY===0||this.handleReorder(e,r,a.clientX,a.clientY))},o=a=>{a.preventDefault()};e.addEventListener("dragenter",s),e.addEventListener("dragover",i),e.addEventListener("drop",o),n.push(()=>{e.removeEventListener("dragenter",s),e.removeEventListener("dragover",i),e.removeEventListener("drop",o)}),this.instances.set(e,{cleanup:n})},initDropZone:function(e){let t=[];e.setAttribute("role","region"),e.setAttribute("aria-dropeffect","move"),e.hasAttribute("aria-label")||e.setAttribute("aria-label","Drop zone");let n=a=>{a.preventDefault(),this.handleDragOver(a,e)};e.addEventListener("dragover",n),t.push(()=>e.removeEventListener("dragover",n));let s=a=>{a.preventDefault(),this.handleDragEnter(a,e)};e.addEventListener("dragenter",s),t.push(()=>e.removeEventListener("dragenter",s));let i=a=>{this.handleDragLeave(a,e)};e.addEventListener("dragleave",i),t.push(()=>e.removeEventListener("dragleave",i));let o=a=>{a.preventDefault(),this.handleDrop(a,e)};e.addEventListener("drop",o),t.push(()=>e.removeEventListener("drop",o)),this.instances.set(e,{cleanup:t})},createFeedbackElement:function(){if(!this.feedbackElement){let e=document.querySelector(".vd-drag-feedback");if(e){this.feedbackElement=e;return}this.feedbackElement=document.createElement("div"),this.feedbackElement.className="vd-drag-feedback hidden",this.feedbackElement.setAttribute("role","presentation"),document.body.appendChild(this.feedbackElement)}},handleDragStart:function(e,t){t.classList.add("is-dragging"),t.setAttribute("aria-grabbed","true"),this.currentDrag={element:t,initialPosition:{x:e.clientX,y:e.clientY},initialBounds:t.getBoundingClientRect(),data:this.getData(t)},e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",this.currentDrag.data),t.dispatchEvent(new CustomEvent("draggable:start",{bubbles:!0,detail:{element:t,data:this.currentDrag.data,position:{x:e.clientX,y:e.clientY}}}))},handleDrag:function(e,t){this.currentDrag&&t.dispatchEvent(new CustomEvent("draggable:drag",{bubbles:!0,detail:{element:t,data:this.currentDrag.data,position:{x:e.clientX,y:e.clientY},delta:{x:e.clientX-this.currentDrag.initialPosition.x,y:e.clientY-this.currentDrag.initialPosition.y}}}))},handleDragEnd:function(e,t){t.classList.remove("is-dragging"),t.classList.add("is-dropped"),setTimeout(()=>t.classList.remove("is-dropped"),300),t.setAttribute("aria-grabbed","false"),this.feedbackElement&&this.feedbackElement.classList.add("hidden");let n=this.currentDrag?.data||this.getData(t),s=this.currentDrag?.initialPosition||{x:0,y:0};t.dispatchEvent(new CustomEvent("draggable:end",{bubbles:!0,detail:{element:t,data:n,position:{x:e.clientX,y:e.clientY},delta:{x:e.clientX-s.x,y:e.clientY-s.y}}})),this.currentDrag=null},handleTouchStart:function(e,t){let n=e.touches[0],s=t.getBoundingClientRect();this.touchState={element:t,startX:n.clientX,startY:n.clientY,lastX:n.clientX,lastY:n.clientY,offsetX:n.clientX-s.left,offsetY:n.clientY-s.top,startTime:Date.now(),isDragging:!1}},handleTouchMove:function(e,t){if(!this.touchState)return;let n=e.touches[0];this.touchState.lastX=n.clientX,this.touchState.lastY=n.clientY;let s=n.clientX-this.touchState.startX,i=n.clientY-this.touchState.startY;if((Math.abs(s)>10||Math.abs(i)>10)&&(e.cancelable&&e.preventDefault(),this.touchState.isDragging||(this.touchState.isDragging=!0,t.classList.add("is-dragging"),t.setAttribute("aria-grabbed","true"),this.currentDrag={element:t,initialPosition:{x:this.touchState.startX,y:this.touchState.startY},initialBounds:t.getBoundingClientRect(),data:this.getData(t),offsetX:this.touchState.offsetX,offsetY:this.touchState.offsetY},t.dispatchEvent(new CustomEvent("draggable:start",{bubbles:!0,detail:{element:t,data:this.currentDrag.data,position:{x:n.clientX,y:n.clientY}}}))),this.updateFeedback(n.clientX,n.clientY),this.currentDrag)){t.dispatchEvent(new CustomEvent("draggable:drag",{bubbles:!0,detail:{element:t,data:this.currentDrag.data,position:{x:n.clientX,y:n.clientY},delta:{x:s,y:i}}})),this.updateTouchDropZone(n.clientX,n.clientY);let o=t.closest(this.containerSelector);o&&o.contains(t)&&this.handleReorder(o,t,n.clientX,n.clientY)}},handleTouchEnd:function(e,t){if(this.touchState&&this.touchState.isDragging){e.cancelable&&e.preventDefault();let n=e.changedTouches?.[0],s={x:n?.clientX??this.touchState.lastX??this.touchState.startX,y:n?.clientY??this.touchState.lastY??this.touchState.startY},i=this.resolveDropZoneAtPoint(s.x,s.y)||this.touchState.overZone;i?this.dispatchDrop(i,s):this.touchState.overZone&&this.touchState.overZone.classList.remove("is-drag-over"),t.classList.remove("is-dragging"),t.classList.add("is-dropped"),t.setAttribute("aria-grabbed","false"),setTimeout(()=>t.classList.remove("is-dropped"),300),this.feedbackElement&&this.feedbackElement.classList.add("hidden");let o=this.currentDrag?.data||this.getData(t),a=this.touchState?.startX||0,r=this.touchState?.startY||0;t.dispatchEvent(new CustomEvent("draggable:end",{bubbles:!0,detail:{element:t,data:o,position:s,delta:{x:s.x-a,y:s.y-r}}}))}this.touchState=null,this.currentDrag=null},handleDragOver:function(e,t){e.preventDefault(),e.dataTransfer.dropEffect="move"},handleDragEnter:function(e,t){e.preventDefault(),t.classList.add("is-drag-over")},handleDragLeave:function(e,t){t.classList.remove("is-drag-over")},handleDrop:function(e,t){e.preventDefault(),this.dispatchDrop(t,{x:e.clientX,y:e.clientY})},resolveDropZoneAtPoint:function(e,t){if(!Number.isFinite(e)||!Number.isFinite(t))return null;if(typeof document.elementsFromPoint=="function"){let o=document.elementsFromPoint(e,t);for(let a of o){let r=a.closest(".vd-drop-zone");if(r)return r}}let n=document.elementFromPoint(e,t),s=n?n.closest(".vd-drop-zone"):null;if(s)return s;let i=document.querySelectorAll(".vd-drop-zone");for(let o of i){let a=o.getBoundingClientRect();if(e>=a.left&&e<=a.right&&t>=a.top&&t<=a.bottom)return o}return null},updateTouchDropZone:function(e,t){if(!this.touchState)return;let n=this.resolveDropZoneAtPoint(e,t),s=this.touchState.overZone||null;s&&s!==n&&s.classList.remove("is-drag-over"),n&&n!==s&&n.classList.add("is-drag-over"),this.touchState.overZone=n||null},dispatchDrop:function(e,t){e.classList.remove("is-drag-over"),e.dispatchEvent(new CustomEvent("draggable:drop",{bubbles:!0,detail:{zone:e,element:this.currentDrag?.element,data:this.currentDrag?.data,position:t}}))},handleReorder:function(e,t,n,s){let i=e.classList.contains("vd-draggable-container-vertical"),a=[...e.querySelectorAll(".vd-draggable-item:not(.is-dragging), .vd-draggable:not(.is-dragging)")].reduce((r,c)=>{let l=c.getBoundingClientRect(),d=i?s-l.top-l.height/2:n-l.left-l.width/2;return d<0&&d>r.offset?{offset:d,element:c}:r},{offset:Number.NEGATIVE_INFINITY}).element;a==null?e.appendChild(t):e.insertBefore(t,a)},handleKeydown:function(e,t){switch(e.key){case"Enter":case" ":e.preventDefault(),t.click();break;case"Escape":t.classList.contains("is-dragging")&&(t.classList.remove("is-dragging"),t.setAttribute("aria-grabbed","false"),this.feedbackElement&&this.feedbackElement.classList.add("hidden"),this.currentDrag=null);break;case"ArrowUp":case"ArrowLeft":{e.preventDefault();let n=t.previousElementSibling;n&&(n.classList.contains("vd-draggable")||n.classList.contains("vd-draggable-item"))&&(t.parentNode.insertBefore(t,n),t.focus(),t.dispatchEvent(new CustomEvent("draggable:reorder",{bubbles:!0,detail:{element:t,direction:"up"}})));break}case"ArrowDown":case"ArrowRight":{e.preventDefault();let n=t.nextElementSibling;n&&(n.classList.contains("vd-draggable")||n.classList.contains("vd-draggable-item"))&&(t.parentNode.insertBefore(n,t),t.focus(),t.dispatchEvent(new CustomEvent("draggable:reorder",{bubbles:!0,detail:{element:t,direction:"down"}})));break}}},getData:function(e){return e.dataset.draggable||e.textContent.trim()},updateFeedback:function(e,t){if(!this.currentDrag)return;this.feedbackElement.classList.remove("hidden");let n=this.currentDrag.initialBounds;this.feedbackElement.innerHTML="";let s=this.currentDrag.element.cloneNode(!0);this.feedbackElement.appendChild(s);let i=this.currentDrag.offsetX??20,o=this.currentDrag.offsetY??20;Object.assign(this.feedbackElement.style,{left:e-i+"px",top:t-o+"px",width:n.width+"px",height:n.height+"px"})},makeDraggable:function(e,t={}){let n=typeof e=="string"?document.querySelector(e):e;n&&!this.instances.has(n)&&(n.classList.add("vd-draggable"),n.setAttribute("draggable","true"),t.data&&(n.dataset.draggable=t.data),this.initDraggable(n))},removeDraggable:function(e){let t=typeof e=="string"?document.querySelector(e):e;t&&this.instances.has(t)&&(this.instances.get(t).cleanup.forEach(s=>s()),this.instances.delete(t),t.classList.remove("vd-draggable"),t.removeAttribute("draggable"),t.removeAttribute("data-draggable"))},destroy:function(e){this.removeDraggable(e)},destroyAll:function(){Array.from(this.instances.keys()).forEach(t=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("draggable",m),window.VanduoDraggable=m})();(function(){"use strict";let m=new Map;function e(u){return!!u&&(u===document||u.nodeType===1||u.nodeType===9||u.nodeType===11)}function t(u){return e(u)?u:document}function n(u,f){let h=t(u);return f instanceof Element?h===document?document.documentElement?document.documentElement.contains(f):document.contains(f):h===f?!0:typeof h.contains=="function"&&h.contains(f):!1}function s(u,f){let h=t(u),p=[];if(h instanceof Element&&typeof h.matches=="function"&&h.matches(f)&&p.push(h),typeof h.querySelectorAll=="function"){let g=h.querySelectorAll(f);for(let w=0;w<g.length;w++)p.push(g[w])}return p}function i(u){try{return new URL(u,window.location.href).origin===window.location.origin}catch{return!1}}function o(u,f){let p=new DOMParser().parseFromString(f.trim(),"text/html"),g=["SCRIPT","IFRAME","OBJECT","EMBED","FORM","BASE","LINK","META","STYLE"];for(let b of g){let L=p.querySelectorAll(b);for(let V=L.length-1;V>=0;V--)L[V].parentNode.removeChild(L[V])}function w(b){if(b.nodeType===Node.ELEMENT_NODE){let L=b.attributes;for(let C=L.length-1;C>=0;C--){let v=L[C].name.toLowerCase(),I=L[C].value.toLowerCase().trim();(v.startsWith("on")||I.startsWith("javascript:")||I.startsWith("data:")||I.startsWith("vbscript:"))&&b.removeAttribute(L[C].name)}let V=b.childNodes;for(let C=0;C<V.length;C++)w(V[C])}}w(p.body);let T=Array.from(p.body.childNodes);for(;u.firstChild;)u.removeChild(u.firstChild);T.forEach(function(b){u.appendChild(document.adoptNode(b))})}function a(){return'<div class="vd-skeleton-card" style="position:relative;min-height:200px;padding:2rem;overflow:hidden;"><div class="vd-skeleton vd-skeleton-heading-lg" style="margin-bottom:1.5rem;"></div><div class="vd-skeleton vd-skeleton-paragraph"><div class="vd-skeleton vd-skeleton-text"></div><div class="vd-skeleton vd-skeleton-text"></div><div class="vd-skeleton vd-skeleton-text"></div></div><div class="vd-dynamic-loader" style="position:absolute;inset:0;"><div class="vd-dynamic-loader-grid"><div class="vd-spinner vd-spinner-sm vd-spinner-success"></div><div class="vd-spinner vd-spinner-sm vd-spinner-warning"></div><div class="vd-spinner vd-spinner-sm vd-spinner-error"></div><div class="vd-spinner vd-spinner-sm vd-spinner-info"></div></div><span class="vd-dynamic-loader-text">Loading\u2026</span></div></div>'}function r(){return'<div class="vd-dynamic-loader" style="min-height:180px;display:flex;align-items:center;justify-content:center;"><div class="vd-dynamic-loader-grid"><div class="vd-spinner vd-spinner-sm vd-spinner-success"></div><div class="vd-spinner vd-spinner-sm vd-spinner-warning"></div><div class="vd-spinner vd-spinner-sm vd-spinner-error"></div><div class="vd-spinner vd-spinner-sm vd-spinner-info"></div></div><span class="vd-dynamic-loader-text">Loading\u2026</span></div>'}function c(u){return!u||u==="skeleton"?a():u==="spinner"?r():u}function l(u,f,h){u.dispatchEvent(new CustomEvent(f,{bubbles:!0,detail:h||{}}))}let d={observe:function(u,f,h){if(!(u instanceof Element)){console.warn("[VanduoLazyLoad] observe() requires a DOM Element.");return}if(typeof f!="function"){console.warn("[VanduoLazyLoad] observe() requires a callback function.");return}if(m.has(u))return;let p=h&&h.threshold!=null?h.threshold:0,g=h&&h.rootMargin?h.rootMargin:"0px",w=new IntersectionObserver(function(T,b){T.forEach(function(L){if(L.isIntersecting){b.unobserve(L.target),m.delete(L.target),typeof window.VanduoLifecycle<"u"&&window.VanduoLifecycle.has(L.target,"lazyLoad")&&window.VanduoLifecycle.unregister(L.target,"lazyLoad");try{f(L.target)}catch(V){console.error("[VanduoLazyLoad] Callback threw:",V)}}})},{threshold:p,rootMargin:g});m.set(u,w),typeof window.VanduoLifecycle<"u"&&!window.VanduoLifecycle.has(u,"lazyLoad")&&window.VanduoLifecycle.register(u,"lazyLoad",[()=>{d.unobserve(u,{skipLifecycle:!0})}]),w.observe(u)},unobserve:function(u,f){let h=f||{},p=m.get(u);p&&(p.unobserve(u),typeof p.disconnect=="function"&&p.disconnect(),m.delete(u)),!h.skipLifecycle&&typeof window.VanduoLifecycle<"u"&&window.VanduoLifecycle.has(u,"lazyLoad")&&window.VanduoLifecycle.unregister(u,"lazyLoad")},unobserveAll:function(){Array.from(m.keys()).forEach(function(f){d.unobserve(f)})},loadSection:function(u,f,h){if(typeof u!="string"||!u){console.warn("[VanduoLazyLoad] loadSection() requires a non-empty URL string.");return}if(!(f instanceof Element)){console.warn("[VanduoLazyLoad] loadSection() requires a DOM Element as containerEl.");return}if(!i(u)){console.error("[VanduoLazyLoad] loadSection() blocked cross-origin URL:",u);return}let p=h||{},g=c(p.placeholder);o(f,g),l(f,"lazysection:loading",{url:u}),this.observe(f,function(){let w=new window.AbortController,T=setTimeout(function(){w.abort()},1e4);window.fetch(u,{signal:w.signal}).then(function(b){if(clearTimeout(T),!b.ok)throw new Error("HTTP "+b.status);return b.text()}).then(function(b){o(f,b),l(f,"lazysection:loaded",{url:u}),typeof window.Vanduo<"u"&&window.Vanduo.init(f),typeof p.onLoaded=="function"&&p.onLoaded(f)}).catch(function(b){let L=document.createElement("div");L.className="vd-alert vd-alert-error",L.setAttribute("role","alert");let V=document.createElement("span");V.textContent="Failed to load content. ";let C=document.createElement("small");for(C.style.opacity="0.7",C.textContent=b.message,L.appendChild(V),L.appendChild(C);f.firstChild;)f.removeChild(f.firstChild);f.appendChild(L),l(f,"lazysection:error",{url:u,error:b}),console.error("[VanduoLazyLoad] loadSection failed:",b),typeof p.onError=="function"&&p.onError(b)})},{threshold:p.threshold,rootMargin:p.rootMargin})},init:function(u){let f=this;s(u,"[data-vd-lazy]").forEach(function(p){if(m.has(p)||p.dataset.vdLazyState==="loading"||p.dataset.vdLazyState==="loaded")return;let g=p.getAttribute("data-vd-lazy");if(!g)return;p.dataset.vdLazyState="loading";let w=p.getAttribute("data-vd-lazy-placeholder")||"skeleton";f.loadSection(g,p,{placeholder:w,onLoaded:function(){p.dataset.vdLazyState="loaded"},onError:function(){p.dataset.vdLazyState="error"}})})},destroy:function(u){this.unobserve(u)},destroyAll:function(u){let f=t(u);if(f===document){this.unobserveAll();return}Array.from(m.keys()).forEach(p=>{n(f,p)&&this.unobserve(p)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("lazyLoad",d,{aliases:["LazyLoad"]}),window.VanduoLazyLoad=d})();(function(){"use strict";let m={observers:new Map,init:function(e){window.Vanduo.queryAll(e,"[data-glass-scroll]").forEach(t=>{this.observers.has(t)||this.initElement(t)})},initElement:function(e){let t=e.dataset.glassSentinel,n;if(t&&(n=document.querySelector(t)),n||(n=e.previousElementSibling),!n){e.classList.add("is-glass-active");return}let s=new IntersectionObserver(i=>{i.forEach(o=>{e.classList.toggle("is-glass-active",!o.isIntersecting)})},{threshold:0,rootMargin:"0px"});s.observe(n),this.observers.set(e,s)},destroy:function(e){let t=this.observers.get(e);t&&(t.disconnect(),this.observers.delete(e))},destroyAll:function(){this.observers.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("glassScroll",m),window.VanduoGlassScroll=m})();(function(){"use strict";let e={instances:new Map,init:function(t){window.Vanduo.queryAll(t,".vd-morph, [data-vd-morph]").forEach(function(s){e.instances.has(s)||s.getAttribute("data-vd-morph")!=="manual"&&e.initInstance(s)})},initInstance:function(t){e._ensureLayers(t);let n=[],s=!1,i=function(o){s||(e._runMorph(t,o,function(){s=!1}),s=!0)};t.addEventListener("click",i),n.push(function(){t.removeEventListener("click",i)}),this.instances.set(t,{cleanup:n})},morph:function(t){t&&(this.instances.has(t)||this.initInstance(t),this._runMorph(t,null,null))},destroy:function(t){let n=this.instances.get(t);n&&(n.cleanup.forEach(function(s){s()}),this.instances.delete(t))},destroyAll:function(){this.instances.forEach(function(t,n){e.destroy(n)})},_ensureLayers:function(t){if(!t.querySelector(".vd-morph-wave")){let n=document.createElement("span");n.className="vd-morph-wave",n.setAttribute("aria-hidden","true"),t.insertBefore(n,t.firstChild)}if(!t.querySelector(".vd-morph-shine")){let n=document.createElement("span");n.className="vd-morph-shine",n.setAttribute("aria-hidden","true");let s=t.querySelector(".vd-morph-wave");s&&s.nextSibling?t.insertBefore(n,s.nextSibling):t.insertBefore(n,t.firstChild)}},_runMorph:function(t,n,s){let i=t.querySelector(".vd-morph-wave");if(i){let r=t.getBoundingClientRect(),c=r.left+r.width/2,l=r.top+r.height/2,d=n&&n.clientX||c,u=n&&n.clientY||l;i.style.left=d-r.left+"px",i.style.top=u-r.top+"px"}t.classList.add("is-morphing");let o=750,a=getComputedStyle(t).getPropertyValue("--vd-morph-duration");if(a){let r=parseFloat(a);isNaN(r)||(o=r*(a.indexOf("ms")!==-1?1:1e3))}setTimeout(function(){t.classList.remove("is-morphing");let r=t.querySelector(".vd-morph-current"),c=t.querySelector(".vd-morph-next");r&&c&&(r.classList.remove("vd-morph-current"),r.classList.add("vd-morph-next"),c.classList.remove("vd-morph-next"),c.classList.add("vd-morph-current")),typeof s=="function"&&s()},o)}};typeof window.Vanduo<"u"&&window.Vanduo.register("morph",e),window.VanduoMorph=e})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-expanding-cards").forEach(function(t){t.getAttribute("data-vd-expanding-cards")!=="manual"&&(m.instances.has(t)||m.initContainer(t))})},initContainer:function(e){let t=[],n=function(){return Array.prototype.slice.call(e.querySelectorAll(".vd-expanding-card"))},s=function(c){let l=n();!c||l.indexOf(c)===-1||(l.forEach(function(d){d.classList.toggle("is-active",d===c)}),c.focus({preventScroll:!0}))},i=function(c){let l=c.target,d=l.closest?l.closest(".vd-expanding-card"):null;!d||!e.contains(d)||s(d)},o=function(c){if(c.key!=="ArrowLeft"&&c.key!=="ArrowRight"&&c.key!=="Home"&&c.key!=="End")return;let l=n().filter(function(f){return f.offsetParent!==null||f.getClientRects().length>0});if(!l.length)return;let d=document.activeElement,u=l.indexOf(d);u<0&&(u=l.findIndex(function(f){return f.classList.contains("is-active")})),u<0&&(u=0),c.key==="ArrowLeft"?(c.preventDefault(),s(l[Math.max(0,u-1)])):c.key==="ArrowRight"?(c.preventDefault(),s(l[Math.min(l.length-1,u+1)])):c.key==="Home"?(c.preventDefault(),s(l[0])):c.key==="End"&&(c.preventDefault(),s(l[l.length-1]))};e.addEventListener("click",i),t.push(function(){e.removeEventListener("click",i)}),e.addEventListener("keydown",o),t.push(function(){e.removeEventListener("keydown",o)}),n().forEach(function(c){c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),c.setAttribute("role","button"),c.hasAttribute("aria-pressed")||c.setAttribute("aria-pressed",c.classList.contains("is-active")?"true":"false")});let a=function(){n().forEach(function(c){c.setAttribute("aria-pressed",c.classList.contains("is-active")?"true":"false")})},r=new MutationObserver(a);r.observe(e,{attributes:!0,subtree:!0,attributeFilter:["class"]}),t.push(function(){r.disconnect()}),a(),m.instances.set(e,{cleanup:t})},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(function(n){n()}),this.instances.delete(e))},destroyAll:function(){this.instances.forEach(function(e,t){m.destroy(t)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("expandingCards",m),window.VanduoExpandingCards=m})();(function(){"use strict";function n(a){let r=0;for(let c=0;c<a.length&&a[c].classList.contains("is-revealed");c++)r++;return r}function s(a){return a.parentElement||document.body}function i(a,r,c){r.forEach(function(I){I.classList.remove("is-revealed")});let l=s(a),d=l.querySelector("[data-vd-timeline-prev]"),u=l.querySelector("[data-vd-timeline-next]"),f=l.querySelector("[data-vd-timeline-play]"),h=l.querySelector("[data-vd-timeline-pause]"),p=null,g=!1,w=0;function T(){let I=n(r),S=r.length;if(d){let M=I===0;d.disabled=M,d.setAttribute("aria-disabled",M?"true":"false")}if(u){let M=I>=S;u.disabled=M,u.setAttribute("aria-disabled",M?"true":"false")}f&&f.setAttribute("aria-pressed",g?"true":"false"),h&&(h.disabled=!g)}function b(){let I=n(r);I<r.length&&r[I].classList.add("is-revealed"),T()}function L(){let I=n(r);I>0&&r[I-1].classList.remove("is-revealed"),T()}function V(){let I=++w;p=setTimeout(function(){if(p=null,!(!g||I!==w)){if(n(r)>=r.length){v();return}if(b(),n(r)>=r.length){v();return}V()}},800)}function C(){g||(g=!0,V(),T())}function v(){g=!1,w++,p&&(clearTimeout(p),p=null),T()}function q(I,S){if(!I)return;let M=function(P){P.preventDefault(),S()};I.addEventListener("click",M),c.push(function(){I.removeEventListener("click",M)})}return q(d,L),q(u,b),q(f,C),q(h,v),c.push(function(){v()}),T(),{stepNext:b,stepPrev:L,play:C,pause:v}}let o={instances:new Map,init:function(a){window.Vanduo.queryAll(a,".vd-timeline.vd-timeline-animated").forEach(function(r){o.instances.has(r)||o.initInstance(r)})},reinit:function(a){o.destroyAll(a),o.init(a)},initInstance:function(a){let r=[],c=Array.prototype.filter.call(a.children,function(f){return f.classList&&f.classList.contains("vd-timeline-item")});if(c.forEach(function(f,h){let p=Math.min(h,7);f.style.setProperty("--vd-timeline-reveal-delay",p*140+"ms")}),typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches){c.forEach(function(f){f.classList.add("is-revealed")}),o.instances.set(a,{cleanup:r});return}if(a.classList&&a.classList.contains("vd-timeline-playback")){let f=i(a,c,r);o.instances.set(a,{cleanup:r,playback:f});return}if(typeof IntersectionObserver>"u"){c.forEach(function(f){f.classList.add("is-revealed")}),o.instances.set(a,{cleanup:r});return}let u=new IntersectionObserver(function(f){f.forEach(function(h){h.isIntersecting&&(h.target.classList.add("is-revealed"),u.unobserve(h.target))})},{root:null,rootMargin:"0px 0px -10% 0px",threshold:.15});c.forEach(function(f){u.observe(f)}),r.push(function(){u.disconnect()}),o.instances.set(a,{cleanup:r})},destroy:function(a){let r=this.instances.get(a);r&&(r.cleanup.forEach(function(c){c()}),this.instances.delete(a))},destroyAll:function(a){let r=window.Vanduo&&typeof window.Vanduo._normalizeRoot=="function"?window.Vanduo._normalizeRoot(a):document;this.instances.forEach(function(c,l){r!==document&&r!==l&&(!r.contains||!r.contains(l))||o.destroy(l)})}};typeof window.Vanduo<"u"&&window.Vanduo.register("timeline",o),window.VanduoTimeline=o})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-flow, .vd-carousel").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=e.querySelector(".vd-flow-track");if(!t)return;let n=Array.from(t.querySelectorAll(".vd-flow-slide"));if(n.length===0)return;let s=e.classList.contains("vd-flow-fade"),i=e.hasAttribute("data-vd-autoplay"),o=parseInt(e.getAttribute("data-vd-interval"),10)||5e3,a=e.getAttribute("data-vd-loop")!=="false",r={current:0,total:n.length,autoplayTimer:null,isFade:s,loop:a,isDragging:!1,startX:0,currentX:0,threshold:50},c=[];n.forEach((v,q)=>{v.setAttribute("role","group"),v.setAttribute("aria-roledescription","slide"),v.setAttribute("aria-label","Slide "+(q+1)+" of "+n.length),q===0&&v.classList.add("is-active")}),e.setAttribute("role","region"),e.setAttribute("aria-roledescription","carousel"),e.getAttribute("aria-label")||e.setAttribute("aria-label","Carousel");let l=document.createElement("div");l.setAttribute("aria-live","polite"),l.setAttribute("aria-atomic","true"),l.className="sr-only",l.style.cssText="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);",e.appendChild(l);let d=(v,q)=>{q===void 0&&(q=!0);let I=v;r.loop?I=(v%r.total+r.total)%r.total:I=Math.max(0,Math.min(v,r.total-1));let S=r.current;r.current=I,r.isFade?n.forEach((P,F)=>{P.classList.toggle("is-active",F===I)}):t.style.transform="translateX(-"+I*100+"%)",e.querySelectorAll(".vd-flow-indicator").forEach((P,F)=>{P.classList.toggle("is-active",F===I),P.setAttribute("aria-selected",F===I?"true":"false")}),n.forEach((P,F)=>{P.setAttribute("aria-hidden",F!==I?"true":"false")}),q&&(l.textContent="Slide "+(I+1)+" of "+r.total),e.dispatchEvent(new CustomEvent("flow:change",{detail:{current:I,previous:S,total:r.total}}))},u=()=>d(r.current+1),f=()=>d(r.current-1),h=e.querySelector(".vd-flow-prev"),p=e.querySelector(".vd-flow-next");if(h){let v=()=>f();h.addEventListener("click",v),c.push(()=>h.removeEventListener("click",v))}if(p){let v=()=>u();p.addEventListener("click",v),c.push(()=>p.removeEventListener("click",v))}e.querySelectorAll(".vd-flow-indicator").forEach((v,q)=>{v.setAttribute("role","tab"),v.setAttribute("aria-selected",q===0?"true":"false"),v.setAttribute("aria-label","Go to slide "+(q+1));let I=()=>d(q);v.addEventListener("click",I),c.push(()=>v.removeEventListener("click",I))});let w=v=>{v.key==="ArrowLeft"&&(f(),v.preventDefault()),v.key==="ArrowRight"&&(u(),v.preventDefault())};e.setAttribute("tabindex","0"),e.addEventListener("keydown",w),c.push(()=>e.removeEventListener("keydown",w));let T=v=>{r.isDragging=!0,r.startX=v.clientX||v.touches&&v.touches[0].clientX||0,r.currentX=r.startX,e.classList.add("is-dragging")},b=v=>{r.isDragging&&(r.currentX=v.clientX||v.touches&&v.touches[0].clientX||0)},L=()=>{if(!r.isDragging)return;r.isDragging=!1,e.classList.remove("is-dragging");let v=r.startX-r.currentX;Math.abs(v)>r.threshold&&(v>0?u():f())};e.addEventListener("mousedown",T),e.addEventListener("mousemove",b),e.addEventListener("mouseup",L),e.addEventListener("mouseleave",L),e.addEventListener("touchstart",T,{passive:!0}),e.addEventListener("touchmove",b,{passive:!0}),e.addEventListener("touchend",L),c.push(()=>e.removeEventListener("mousedown",T),()=>e.removeEventListener("mousemove",b),()=>e.removeEventListener("mouseup",L),()=>e.removeEventListener("mouseleave",L),()=>e.removeEventListener("touchstart",T),()=>e.removeEventListener("touchmove",b),()=>e.removeEventListener("touchend",L));let V=()=>{C(),r.autoplayTimer=setInterval(u,o)},C=()=>{r.autoplayTimer&&(clearInterval(r.autoplayTimer),r.autoplayTimer=null)};if(i){V();let v=()=>C(),q=()=>V();e.addEventListener("mouseenter",v),e.addEventListener("mouseleave",q),e.addEventListener("focusin",v),e.addEventListener("focusout",q),c.push(()=>e.removeEventListener("mouseenter",v),()=>e.removeEventListener("mouseleave",q),()=>e.removeEventListener("focusin",v),()=>e.removeEventListener("focusout",q),()=>C())}d(0,!1),this.instances.set(e,{cleanup:c,goTo:d,next:u,prev:f,getState:()=>({...r})})},goTo:function(e,t){let n=this.instances.get(e);n&&n.goTo(t)},next:function(e){let t=this.instances.get(e);t&&t.next()},prev:function(e){let t=this.instances.get(e);t&&t.prev()},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("flow",m),window.VanduoFlow=m})();(function(){"use strict";let m={instances:new Map,_globalCleanups:[],init:function(e){if(window.Vanduo.queryAll(e,"[data-vd-bubble], [data-vd-popover]").forEach(n=>{this.instances.has(n)||this.initInstance(n)}),this._globalCleanups.length===0){let n=i=>{this.instances.forEach((o,a)=>{!o.popover.contains(i.target)&&!a.contains(i.target)&&this.hide(a)})},s=i=>{i.key==="Escape"&&this.instances.forEach((o,a)=>this.hide(a))};document.addEventListener("click",n,!0),document.addEventListener("keydown",s),this._globalCleanups.push(()=>document.removeEventListener("click",n,!0),()=>document.removeEventListener("keydown",s))}},initInstance:function(e){let t=[],n=e.getAttribute("data-vd-bubble-placement")||e.getAttribute("data-vd-popover-placement")||"bottom",s=document.createElement("div");s.className="vd-bubble-content",s.setAttribute("role","dialog"),s.setAttribute("aria-modal","false"),s.setAttribute("data-placement",n);let i=e.getAttribute("data-vd-bubble-title")||e.getAttribute("data-vd-popover-title"),o=e.getAttribute("data-vd-bubble")||e.getAttribute("data-vd-popover")||"",a=e.getAttribute("data-vd-bubble-html")||e.getAttribute("data-vd-popover-html"),r=e.hasAttribute("data-vd-bubble-allow-svg")||e.hasAttribute("data-vd-popover-allow-svg");if(i){let u=document.createElement("div");u.className="vd-bubble-header";let f=document.createElement("span");f.textContent=i;let h=document.createElement("button");h.className="vd-bubble-close",h.setAttribute("aria-label","Close"),h.innerHTML="×",u.appendChild(f),u.appendChild(h),s.appendChild(u);let p=g=>{g.stopPropagation(),this.hide(e)};h.addEventListener("click",p),t.push(()=>h.removeEventListener("click",p))}let c=document.createElement("div");c.className="vd-bubble-body",a?typeof sanitizeHtml=="function"?c.innerHTML=sanitizeHtml(a,{allowSvg:r,allowStyle:!1}):c.textContent=a:c.textContent=o,s.appendChild(c),document.body.appendChild(s);let l="vd-bubble-"+Math.random().toString(36).slice(2,9);s.id=l,e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded","false"),e.setAttribute("aria-controls",l);let d=u=>{u.stopPropagation(),s.classList.contains("is-visible")?this.hide(e):(this.hideAll(),this.show(e))};e.addEventListener("click",d),t.push(()=>e.removeEventListener("click",d)),this.instances.set(e,{popover:s,cleanup:t,placement:n})},position:function(e,t,n){let s=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=10,a,r;switch(n){case"top":a=s.top-i.height-o+window.scrollY,r=s.left+(s.width-i.width)/2+window.scrollX;break;case"left":a=s.top+(s.height-i.height)/2+window.scrollY,r=s.left-i.width-o+window.scrollX;break;case"right":a=s.top+(s.height-i.height)/2+window.scrollY,r=s.right+o+window.scrollX;break;default:a=s.bottom+o+window.scrollY,r=s.left+(s.width-i.width)/2+window.scrollX}r=Math.max(8,Math.min(r,window.innerWidth-i.width-8)),a=Math.max(8,a),t.style.top=a+"px",t.style.left=r+"px"},show:function(e){let t=this.instances.get(e);if(!t)return;let{popover:n,placement:s}=t;n.style.display="block",n.classList.add("is-visible"),e.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>{this.position(e,n,s)}),e.dispatchEvent(new CustomEvent("bubble:show",{bubbles:!0,detail:{trigger:e,placement:s}}))},hide:function(e){let t=this.instances.get(e);t&&(t.popover.classList.remove("is-visible"),e.setAttribute("aria-expanded","false"),e.dispatchEvent(new CustomEvent("bubble:hide",{bubbles:!0,detail:{trigger:e}})))},hideAll:function(){this.instances.forEach((e,t)=>this.hide(t))},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),t.popover.parentNode&&t.popover.parentNode.removeChild(t.popover),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls"),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t)),this._globalCleanups.forEach(e=>e()),this._globalCleanups=[]}};typeof window.Vanduo<"u"&&window.Vanduo.register("bubble",m),window.VanduoBubble=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,"[data-vd-waypoint-nav], [data-vd-scrollspy-nav]").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=Array.from(e.querySelectorAll('a[href^="#"]'));if(t.length===0)return;let n=[],s=parseInt(e.getAttribute("data-vd-waypoint-offset")||"80",10),i=[];if(t.forEach(l=>{let d=l.getAttribute("href").slice(1),u=document.getElementById(d);u&&(u.setAttribute("data-vd-waypoint-section",""),i.push({id:d,link:l,section:u}))}),i.length===0)return;let o=new Set,a=l=>{t.forEach(u=>u.classList.remove("is-active"));let d=t.find(u=>u.getAttribute("href")==="#"+l);d&&(d.classList.add("is-active"),e.dispatchEvent(new CustomEvent("waypoint:change",{detail:{activeId:l,link:d}})))},r="-"+s+"px 0px -40% 0px",c=new IntersectionObserver(l=>{l.forEach(d=>{d.isIntersecting?o.add(d.target.id):o.delete(d.target.id)});for(let d=0;d<i.length;d++)if(o.has(i[d].id)){a(i[d].id);return}},{rootMargin:r,threshold:0});i.forEach(l=>c.observe(l.section)),t.forEach(l=>{let d=u=>{u.preventDefault();let f=l.getAttribute("href").slice(1),h=document.getElementById(f);h&&(h.scrollIntoView({behavior:"smooth"}),a(f))};l.addEventListener("click",d),n.push(()=>l.removeEventListener("click",d))}),n.push(()=>c.disconnect()),this.instances.set(e,{observer:c,cleanup:n,sections:i,setActive:a})},refresh:function(e){this.destroy(e),this.initInstance(e)},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("waypoint",m),window.VanduoWaypoint=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-ripple, [data-vd-ripple]").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=[],n=s=>{let i=e.getBoundingClientRect(),o=Math.max(i.width,i.height),a=(s.clientX||s.touches&&s.touches[0].clientX||i.left+i.width/2)-i.left-o/2,r=(s.clientY||s.touches&&s.touches[0].clientY||i.top+i.height/2)-i.top-o/2,c=document.createElement("span");c.className="vd-ripple-wave",c.style.width=o+"px",c.style.height=o+"px",c.style.left=a+"px",c.style.top=r+"px",e.appendChild(c),c.addEventListener("animationend",()=>{c.parentNode&&c.parentNode.removeChild(c)})};e.addEventListener("mousedown",n),e.addEventListener("touchstart",n,{passive:!0}),t.push(()=>e.removeEventListener("mousedown",n),()=>e.removeEventListener("touchstart",n)),this.instances.set(e,{cleanup:t})},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),e.querySelectorAll(".vd-ripple-wave").forEach(n=>n.remove()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("ripple",m),window.VanduoRipple=m})();(function(){"use strict";function m(n){if(!n||n===document.body)return!1;let s=window.getComputedStyle(n),i=s.overflowY,o=s.overflowX,a=/(auto|scroll|overlay)/.test(i)&&n.scrollHeight>n.clientHeight,r=/(auto|scroll|overlay)/.test(o)&&n.scrollWidth>n.clientWidth;return a||r}function e(n){let s=n.parentElement;for(;s&&s!==document.body&&s!==document.documentElement;){if(m(s))return s;s=s.parentElement}return null}let t={instances:new Map,init:function(n){window.Vanduo.queryAll(n,".vd-affix, .vd-sticky, [data-vd-affix]").forEach(i=>{this.instances.has(i)||this.initInstance(i)})},initInstance:function(n){let s=[],i=parseInt(n.getAttribute("data-vd-affix-offset")||"0",10),o=Number.isNaN(i)?0:i,a=e(n),r=!1,c=document.createElement("div");c.style.cssText="display:block;height:1px;margin-bottom:-1px;visibility:hidden;pointer-events:none;",n.parentNode.insertBefore(c,n),n.style.setProperty("--vd-affix-top-offset",o+"px");function l(){r||(r=!0,n.classList.add("is-stuck"),n.dispatchEvent(new CustomEvent("affix:stuck",{bubbles:!0,detail:{offset:o,root:a||window}})))}function d(){r&&(r=!1,n.classList.remove("is-stuck"),n.dispatchEvent(new CustomEvent("affix:unstuck",{bubbles:!0,detail:{offset:o,root:a||window}})))}let u=new IntersectionObserver(function(f){f.forEach(h=>{h.isIntersecting?d():l()})},{root:a,rootMargin:"-"+o+"px 0px 0px 0px",threshold:0});u.observe(c),s.push(()=>u.disconnect(),()=>{c.parentNode&&c.parentNode.removeChild(c)},()=>{n.classList.remove("is-stuck"),n.style.removeProperty("--vd-affix-top-offset")}),this.instances.set(n,{cleanup:s,observer:u,sentinel:c,scrollParent:a})},destroy:function(n){let s=this.instances.get(n);s&&(s.cleanup.forEach(i=>i()),n.classList.remove("is-stuck"),this.instances.delete(n))},destroyAll:function(){this.instances.forEach((n,s)=>this.destroy(s))}};typeof window.Vanduo<"u"&&window.Vanduo.register("affix",t),window.VanduoAffix=t})();(function(){"use strict";function m(t,n){try{let s=new URL(t,window.location.href);return s.origin===window.location.origin?!0:n.includes(s.origin)}catch{return!1}}let e={instances:new Map,init:function(t){window.Vanduo.queryAll(t,"[data-vd-suggest], [data-vd-autocomplete]").forEach(s=>{this.instances.has(s)||this.initInstance(s)})},initInstance:function(t){let n=[],s=parseInt(t.getAttribute("data-vd-suggest-min-chars")||"1",10),i=t.getAttribute("data-vd-suggest-url")||"",a=(t.getAttribute("data-vd-suggest-allowlist")||"").split(",").map(S=>S.trim()).filter(Boolean),r=t.getAttribute("data-vd-suggest")||t.getAttribute("data-vd-autocomplete")||"",c=[];try{c=JSON.parse(r)}catch{c=r.split(",").map(M=>M.trim()).filter(Boolean)}let l=t.closest(".vd-suggest-wrapper, .vd-autocomplete-wrapper");l||(l=document.createElement("div"),l.className="vd-suggest-wrapper",t.parentNode.insertBefore(l,t),l.appendChild(t));let d=document.createElement("ul");d.className="vd-suggest-list",d.setAttribute("role","listbox");let u="vd-suggest-"+Math.random().toString(36).slice(2,9);d.id=u,l.appendChild(d),t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",u),t.setAttribute("autocomplete","off");let f=-1,h=[],p=null,g=(S,M)=>{if(d.innerHTML="",h=S,f=-1,S.length===0){let P=document.createElement("li");P.className="vd-suggest-empty",P.textContent="No results",d.appendChild(P);return}S.forEach((P,F)=>{let $=document.createElement("li");$.className="vd-suggest-item",$.setAttribute("role","option"),$.id=u+"-item-"+F;let Z=typeof P=="object"&&(P.label||P.text)||String(P);if(M){let Q=Z.toLowerCase(),R=M.toLowerCase(),W=0,K=Q.indexOf(R,W);for(;K!==-1;){K>W&&$.appendChild(document.createTextNode(Z.slice(W,K)));let J=document.createElement("span");J.className="vd-suggest-match",J.textContent=Z.slice(K,K+M.length),$.appendChild(J),W=K+M.length,K=Q.indexOf(R,W)}W<Z.length&&$.appendChild(document.createTextNode(Z.slice(W)))}else $.textContent=Z;$.addEventListener("click",()=>b(F)),d.appendChild($)})},w=()=>{d.classList.add("is-open"),t.setAttribute("aria-expanded","true")},T=()=>{d.classList.remove("is-open"),t.setAttribute("aria-expanded","false"),f=-1,t.removeAttribute("aria-activedescendant")},b=S=>{let M=h[S],P=typeof M=="object"&&(M.value||M.label)||String(M);t.value=P,T(),t.dispatchEvent(new CustomEvent("suggest:select",{detail:{value:P,item:M,index:S},bubbles:!0}))},L=S=>{let M=d.querySelectorAll(".vd-suggest-item");M.forEach(P=>P.classList.remove("is-highlighted")),S>=0&&S<M.length&&(f=S,M[S].classList.add("is-highlighted"),t.setAttribute("aria-activedescendant",M[S].id),M[S].scrollIntoView({block:"nearest"}))},V=async S=>{if(S.length<s){T();return}let M;if(i)try{if(!m(i,a))console.warn("[VanduoSuggest] Blocked non-allowlisted URL:",i),M=[];else{let P=i.includes("?")?"&":"?";M=await(await window.fetch(i+P+"q="+encodeURIComponent(S))).json()}}catch{M=[]}else{let P=S.toLowerCase();M=c.filter(F=>(typeof F=="object"&&(F.label||F.text)||String(F)).toLowerCase().includes(P))}g(M,S),M.length>0,w()},C=()=>{clearTimeout(p),p=setTimeout(()=>V(t.value),200)},v=S=>{if(!d.classList.contains("is-open")){S.key==="ArrowDown"&&(V(t.value),S.preventDefault());return}let M=h.length;switch(S.key){case"ArrowDown":S.preventDefault(),L(f<M-1?f+1:0);break;case"ArrowUp":S.preventDefault(),L(f>0?f-1:M-1);break;case"Enter":S.preventDefault(),f>=0&&b(f);break;case"Escape":T();break}},q=()=>{setTimeout(T,200)},I=()=>{t.value.length>=s&&V(t.value)};t.addEventListener("input",C),t.addEventListener("keydown",v),t.addEventListener("blur",q),t.addEventListener("focus",I),n.push(()=>t.removeEventListener("input",C),()=>t.removeEventListener("keydown",v),()=>t.removeEventListener("blur",q),()=>t.removeEventListener("focus",I),()=>clearTimeout(p),()=>{d.parentNode&&d.parentNode.removeChild(d)}),this.instances.set(t,{cleanup:n,list:d,close:T})},destroy:function(t){let n=this.instances.get(t);n&&(n.cleanup.forEach(s=>s()),this.instances.delete(t))},destroyAll:function(){this.instances.forEach((t,n)=>this.destroy(n))}};typeof window.Vanduo<"u"&&window.Vanduo.register("suggest",e),window.VanduoSuggest=e})();(function(){"use strict";let m={instances:new Map,rules:{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(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,s=document.querySelector('[name="'+n+'"]');return s?e===s.value:!1}catch{return!1}}},messages:{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"},init:function(e){window.Vanduo.queryAll(e,"[data-vd-validate], .vd-validate").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=[],n=e.getAttribute("data-vd-validate-mode")||"blur",s=e.querySelectorAll("[data-vd-rules]"),i=r=>{let l=(r.getAttribute("data-vd-rules")||"").split("|").map(f=>f.trim()).filter(Boolean),d=r.value,u=[];for(let f of l){let[h,...p]=f.split(":"),g=p.join(":"),w=this.rules[h];if(w&&!w(d,g)){let b=r.getAttribute("data-vd-msg-"+h)||this.messages[h]||"Invalid";g&&(b=b.replace("{0}",g)),u.push(b);break}}return this.setFieldState(r,u),u.length===0},o=()=>{let r=!0;return s.forEach(c=>{i(c)||(r=!1)}),r};s.forEach(r=>{if(n==="input"||n==="blur"){let c=n==="input"?"input":"blur",l=()=>i(r);if(r.addEventListener(c,l),t.push(()=>r.removeEventListener(c,l)),n==="blur"){let d=()=>{(r.classList.contains("is-invalid")||r.classList.contains("is-valid"))&&i(r)};r.addEventListener("input",d),t.push(()=>r.removeEventListener("input",d))}}});let a=r=>{let c=o();if(!c){r.preventDefault(),r.stopPropagation();let l=e.querySelector(".is-invalid");l&&l.focus()}e.dispatchEvent(new CustomEvent("validate:submit",{detail:{valid:c},bubbles:!0}))};e.addEventListener("submit",a),t.push(()=>e.removeEventListener("submit",a)),this.instances.set(e,{cleanup:t,validateAll:o,validateField:i})},setFieldState:function(e,t){let n=e.closest(".vd-form-group")||e.parentElement,s=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"),s||(s=document.createElement("div"),s.className="vd-validate-error",s.id="vd-err-"+Math.random().toString(36).slice(2,9),s.setAttribute("role","alert"),n.appendChild(s)),s.textContent=t[0],s.style.display="",e.setAttribute("aria-describedby",s.id)):e.value.trim()?(e.classList.add("is-valid"),e.removeAttribute("aria-invalid"),s&&(s.style.display="none")):(e.removeAttribute("aria-invalid"),s&&(s.style.display="none"))},validateForm:function(e){let t=this.instances.get(e);return t?t.validateAll():!1},addRule:function(e,t,n){this.rules[e]=t,n&&(this.messages[e]=n)},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("validate",m),window.VanduoValidate=m})();(function(){"use strict";let m=["Su","Mo","Tu","We","Th","Fr","Sa"],e=["January","February","March","April","May","June","July","August","September","October","November","December"];function t(h){return h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function n(h){let p="^",g=[],w=0;for(;w<h.length;){let T=h.slice(w);T.toLowerCase().startsWith("yyyy")?(p+="(\\d{4})",g.push("y"),w+=4):T.toLowerCase().startsWith("mm")?(p+="(\\d{2})",g.push("m"),w+=2):T.toLowerCase().startsWith("dd")?(p+="(\\d{2})",g.push("d"),w+=2):(p+=t(h[w]),w++)}return p+="$",{regex:new RegExp(p),order:g}}function s(h,p){if(!h||!p)return null;let{regex:g,order:w}=n(p),T=h.trim().match(g);if(!T)return null;let b,L,V,C=1;for(let q=0;q<w.length;q++){let I=w[q],S=parseInt(T[C++],10);if(Number.isNaN(S))return null;I==="y"?b=S:I==="m"?L=S-1:I==="d"&&(V=S)}if(b===void 0||L===void 0||V===void 0)return null;let v=new Date(b,L,V);return v.getFullYear()!==b||v.getMonth()!==L||v.getDate()!==V?null:v}function i(h,p){let g=String(h.getFullYear()),w=String(h.getMonth()+1).padStart(2,"0"),T=String(h.getDate()).padStart(2,"0"),b="",L=0;for(;L<p.length;){let V=p.slice(L);V.toLowerCase().startsWith("yyyy")?(b+=g,L+=4):V.toLowerCase().startsWith("mm")?(b+=w,L+=2):V.toLowerCase().startsWith("dd")?(b+=T,L+=2):(b+=p[L],L++)}return b}function o(h){return h.getFullYear()+"-"+String(h.getMonth()+1).padStart(2,"0")+"-"+String(h.getDate()).padStart(2,"0")}function a(h,p){let g=new Date(h.getFullYear(),h.getMonth(),h.getDate());return g.setDate(g.getDate()+p),g}function r(h,p){return new Date(h.getFullYear(),h.getMonth()+p,h.getDate())}function c(h){if(!h||typeof h!="string")return null;let p=/^(\d{4})-(\d{2})-(\d{2})$/.exec(h.trim());if(!p)return null;let g=+p[1],w=+p[2]-1,T=+p[3],b=new Date(g,w,T);return b.getFullYear()!==g||b.getMonth()!==w||b.getDate()!==T?null:b}function l(h){let p=new Date(h.getFullYear(),h.getMonth(),h.getDate()),g=p.getDay();return p.setDate(p.getDate()-g),p}function d(h){let p=new Date(h.getFullYear(),h.getMonth(),h.getDate()),g=p.getDay();return p.setDate(p.getDate()+(6-g)),p}function u(h,p,g){let T=g??4,b=h.getBoundingClientRect();p.style.minWidth=Math.max(b.width,0)+"px";let L=b.bottom+T,V=b.left;p.style.top=L+"px",p.style.left=V+"px";let C=p.getBoundingClientRect();C.bottom>window.innerHeight-8&&b.top-C.height>8&&(L=b.top-C.height-T,p.style.top=L+"px");let v=p.getBoundingClientRect();V=b.left,V+v.width>window.innerWidth-8&&(V=window.innerWidth-v.width-8),p.style.left=Math.max(8,V)+"px"}let f={instances:new Map,init:function(h){window.Vanduo.queryAll(h,"[data-vd-datepicker]").forEach(g=>{this.instances.has(g)||this.initInstance(g)})},initInstance:function(h){let p=[],g=h.getAttribute("data-vd-datepicker-format")||"YYYY-MM-DD",w=h.getAttribute("data-vd-datepicker-min"),T=h.getAttribute("data-vd-datepicker-max"),b=w?c(w):null,L=T?c(T):null,V=new Date,C=V.getFullYear(),v=V.getMonth(),q=null,I="days",S=null,M=!1,P=0,F=A=>!!(b&&new Date(A.getFullYear(),A.getMonth(),A.getDate()).getTime()<b.getTime()||L&&new Date(A.getFullYear(),A.getMonth(),A.getDate()).getTime()>L.getTime()),$=(A,D)=>{if(!b&&!L)return{y:A,m:D};let E=new Date(A,D,1),k=new Date(A,D+1,0);return b&&k.getTime()<b.getTime()?{y:b.getFullYear(),m:b.getMonth()}:L&&E.getTime()>L.getTime()?{y:L.getFullYear(),m:L.getMonth()}:{y:A,m:D}},Z=(A,D)=>{let E=new Date(A,D+1,0).getDate();for(let k=1;k<=E;k++){let H=new Date(A,D,k);if(!F(H))return H}return new Date(A,D,1)};if(h.value){let A=h.value.trim(),D=s(A,g);if(!D){let E=new Date(A);isNaN(E.getTime())||(D=E)}D&&(q=D,C=D.getFullYear(),v=D.getMonth())}let Q=$(C,v);C=Q.y,v=Q.m;let R=document.createElement("div");R.className="vd-datepicker-popup",R.setAttribute("role","dialog"),R.setAttribute("aria-label","Choose date"),R.tabIndex=-1;let W=document.createElement("div");W.className="vd-suggest-wrapper",W.style.position="relative",W.style.display="inline-block",h.parentNode.insertBefore(W,h),W.appendChild(h),document.body.appendChild(R);let K=(A,D)=>A&&D&&A.getFullYear()===D.getFullYear()&&A.getMonth()===D.getMonth()&&A.getDate()===D.getDate(),J=A=>{q=A,C=A.getFullYear(),v=A.getMonth(),h.value=i(A,g),M=!0,y(),h.dispatchEvent(new CustomEvent("datepicker:select",{detail:{date:A,formatted:h.value},bubbles:!0})),h.dispatchEvent(new Event("change",{bubbles:!0})),h.focus()},ce=()=>{if(I!=="days"||!S)return;let A=o(S),D=R.querySelector('[data-vd-date="'+A+'"]');D&&!D.classList.contains("is-outside")&&D.getAttribute("aria-disabled")!=="true"&&D.focus()},ne=(A,D,E)=>{let k=new Date(A.getFullYear(),A.getMonth(),A.getDate()),H=D>0?1:-1;for(let B=0;B<E;B++){if(!F(k))return k;k=a(k,H)}return A},ee=(A,D,E)=>{let k=document.createElement("button");if(k.type="button",k.className="vd-datepicker-day",k.textContent=A,k.setAttribute("role","gridcell"),D)return k.classList.add("is-outside"),k.tabIndex=-1,k.setAttribute("aria-disabled","true"),k;if(k.setAttribute("data-vd-date",o(E)),E&&K(E,V)&&k.classList.add("is-today"),E&&K(E,q)&&k.classList.add("is-selected"),E&&F(E))return k.classList.add("is-disabled"),k.setAttribute("aria-disabled","true"),k.tabIndex=-1,k;if(E){let H=S&&K(E,S);k.tabIndex=H?0:-1,k.addEventListener("click",()=>{q=E,C=E.getFullYear(),v=E.getMonth(),S=new Date(E.getFullYear(),E.getMonth(),E.getDate()),h.value=i(E,g),M=!0,y(),h.dispatchEvent(new CustomEvent("datepicker:select",{detail:{date:E,formatted:h.value},bubbles:!0})),h.dispatchEvent(new Event("change",{bubbles:!0})),h.focus()})}return k},G=()=>{R.innerHTML="";let A=document.createElement("div");A.className="vd-datepicker-header";let D=document.createElement("button");D.type="button",D.className="vd-datepicker-prev",D.innerHTML="‹",D.setAttribute("aria-label","Previous");let E=document.createElement("button");E.type="button",E.className="vd-datepicker-next",E.innerHTML="›",E.setAttribute("aria-label","Next");let k=document.createElement("span");if(k.className="vd-datepicker-title",I==="days")k.textContent=e[v]+" "+C,k.addEventListener("click",()=>{I="months",G()}),D.addEventListener("click",()=>{v--,v<0&&(v=11,C--),G()}),E.addEventListener("click",()=>{v++,v>11&&(v=0,C++),G()});else if(I==="months")k.textContent=String(C),k.addEventListener("click",()=>{I="years",G()}),D.addEventListener("click",()=>{C--,G()}),E.addEventListener("click",()=>{C++,G()});else{let H=Math.floor(C/10)*10;k.textContent=H+" - "+(H+9),D.addEventListener("click",()=>{C-=10,G()}),E.addEventListener("click",()=>{C+=10,G()})}if(A.appendChild(D),A.appendChild(k),A.appendChild(E),R.appendChild(A),I==="days"){let H=document.createElement("div");H.className="vd-datepicker-grid",H.setAttribute("role","grid"),H.setAttribute("aria-label","Calendar");let B=document.createElement("div");B.className="vd-datepicker-weekdays",B.setAttribute("role","row"),m.forEach(function(Y){let X=document.createElement("span");X.setAttribute("role","columnheader"),X.setAttribute("aria-label",Y),X.textContent=Y,B.appendChild(X)}),H.appendChild(B);let j=new Date(C,v,1).getDay(),U=new Date(C,v+1,0).getDate(),pe=new Date(C,v,0).getDate(),oe=[];for(let Y=j-1;Y>=0;Y--){let X=pe-Y,ae=v===0?11:v-1,re=v===0?C-1:C,ge=new Date(re,ae,X);oe.push({day:X,outside:!0,date:ge})}for(let Y=1;Y<=U;Y++){let X=new Date(C,v,Y);oe.push({day:Y,outside:!1,date:X})}let he=j+U,me=he%7===0?0:7-he%7;for(let Y=1;Y<=me;Y++){let X=new Date(C,v+1,Y);oe.push({day:Y,outside:!0,date:X})}for(let Y=0;Y<oe.length;Y+=7){let X=document.createElement("div");X.className="vd-datepicker-row",X.setAttribute("role","row");for(let ae=0;ae<7;ae++){let re=oe[Y+ae];X.appendChild(ee(re.day,re.outside,re.date))}H.appendChild(X)}R.appendChild(H)}else if(I==="months"){let H=document.createElement("div");H.className="vd-datepicker-months",e.forEach((B,j)=>{let U=document.createElement("button");U.type="button",U.className="vd-datepicker-month-btn",U.textContent=B.slice(0,3),q&&q.getFullYear()===C&&q.getMonth()===j&&U.classList.add("is-selected"),U.addEventListener("click",()=>{v=j,I="days",G()}),H.appendChild(U)}),R.appendChild(H)}else{let H=document.createElement("div");H.className="vd-datepicker-years";let B=Math.floor(C/10)*10;for(let j=B-1;j<=B+10;j++){let U=document.createElement("button");U.type="button",U.className="vd-datepicker-year-btn",U.textContent=j,q&&q.getFullYear()===j&&U.classList.add("is-selected"),(j<B||j>B+9)&&(U.style.opacity="0.4"),U.addEventListener("click",()=>{C=j,I="months",G()}),H.appendChild(U)}R.appendChild(H)}R.classList.contains("is-open")&&requestAnimationFrame(ie)},le=A=>{if(!R.classList.contains("is-open")||I!=="days")return;let D=R.querySelector(".vd-datepicker-grid");if(!D||!D.contains(A.target))return;let E=A.key;if(E!=="ArrowLeft"&&E!=="ArrowRight"&&E!=="ArrowUp"&&E!=="ArrowDown"&&E!=="Home"&&E!=="End"&&E!=="PageUp"&&E!=="PageDown"&&E!=="Enter"&&E!==" "&&E!=="Escape")return;if(E==="Escape"){A.preventDefault(),A.stopPropagation(),M=!0,y(),h.focus();return}if(S||(S=Z(C,v)),E==="Enter"||E===" "){A.preventDefault(),S&&!F(S)&&J(new Date(S.getFullYear(),S.getMonth(),S.getDate()));return}A.preventDefault();let k=new Date(S.getFullYear(),S.getMonth(),S.getDate()),H=1;if(E==="ArrowLeft"?(k=a(k,-1),H=-1):E==="ArrowRight"?(k=a(k,1),H=1):E==="ArrowUp"?(k=a(k,-7),H=-1):E==="ArrowDown"?(k=a(k,7),H=1):E==="Home"?(k=l(k),H=1):E==="End"?(k=d(k),H=-1):E==="PageUp"?(k=r(k,-1),H=-1):E==="PageDown"&&(k=r(k,1),H=1),k=ne(k,H,400),k.getMonth()!==v||k.getFullYear()!==C){C=k.getFullYear(),v=k.getMonth();let B=$(C,v);C=B.y,v=B.m}S=k,G(),requestAnimationFrame(ce)},ie=()=>{R.classList.contains("is-open")&&u(h,R)},se=()=>{ie()},de=()=>{P=Date.now()+100},te=()=>{de(),I="days",q&&(C=q.getFullYear(),v=q.getMonth());let A=$(C,v);C=A.y,v=A.m,q?S=new Date(q.getFullYear(),q.getMonth(),q.getDate()):S=Z(C,v),G(),R.classList.add("is-open"),h.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>{ie(),ce()})},y=()=>{R.classList.remove("is-open"),h.setAttribute("aria-expanded","false"),I="days"},x=()=>{if(M){M=!1;return}te()},_=()=>{R.classList.contains("is-open")||te()},N=A=>{if(!A||!(A instanceof Node))return!1;if(A===h||h.contains(A)||R.contains(A))return!0;let D=h.id;if(D){let E=document.querySelector('label[for="'+D.replace(/"/g,'\\"')+'"]');if(E&&(A===E||E.contains(A)))return!0}return!1},z=A=>{Date.now()<P||N(A.target)||y()},O=A=>{A.key==="Escape"&&R.classList.contains("is-open")&&(M=!0,y(),h.focus())};h.addEventListener("focus",x),h.addEventListener("click",_),document.addEventListener("click",z,!0),document.addEventListener("keydown",O),R.addEventListener("keydown",le),window.addEventListener("resize",se),window.addEventListener("scroll",se,!0),h.setAttribute("aria-haspopup","dialog"),h.setAttribute("aria-expanded","false"),h.setAttribute("autocomplete","off"),p.push(()=>h.removeEventListener("focus",x),()=>h.removeEventListener("click",_),()=>document.removeEventListener("click",z,!0),()=>document.removeEventListener("keydown",O),()=>R.removeEventListener("keydown",le),()=>window.removeEventListener("resize",se),()=>window.removeEventListener("scroll",se,!0),()=>R.remove()),this.instances.set(h,{cleanup:p,open:te,close:y,popup:R})},destroy:function(h){let p=this.instances.get(h);p&&(p.cleanup.forEach(g=>g()),this.instances.delete(h))},destroyAll:function(){this.instances.forEach((h,p)=>this.destroy(p))}};typeof window.Vanduo<"u"&&window.Vanduo.register("datepicker",f),window.VanduoDatepicker=f})();(function(){"use strict";function m(t,n,s){let o=s??4,a=t.getBoundingClientRect();n.style.minWidth=Math.max(a.width,0)+"px";let r=a.bottom+o,c=a.left;n.style.top=r+"px",n.style.left=c+"px";let l=n.getBoundingClientRect();l.bottom>window.innerHeight-8&&a.top-l.height>8&&(r=a.top-l.height-o,n.style.top=r+"px");let d=n.getBoundingClientRect();c=a.left,c+d.width>window.innerWidth-8&&(c=window.innerWidth-d.width-8),n.style.left=Math.max(8,c)+"px"}let e={instances:new Map,init:function(t){window.Vanduo.queryAll(t,"[data-vd-timepicker]").forEach(s=>{this.instances.has(s)||this.initInstance(s)})},initInstance:function(t){let n=[],s=t.getAttribute("data-vd-timepicker-format")==="24h",i=parseInt(t.getAttribute("data-vd-timepicker-step")||"30",10),o=t.closest(".vd-suggest-wrapper");o||(o=document.createElement("div"),o.style.position="relative",o.style.display="inline-block",t.parentNode.insertBefore(o,t),o.appendChild(t));let a=document.createElement("div");a.className="vd-timepicker-popup",a.setAttribute("role","listbox"),document.body.appendChild(a);let r=[];for(let w=0;w<24;w++)for(let T=0;T<60;T+=i){let b=String(w).padStart(2,"0"),L=String(T).padStart(2,"0");if(s)r.push({display:b+":"+L,value:b+":"+L});else{let V=w<12?"AM":"PM",v=(w===0?12:w>12?w-12:w)+":"+L+" "+V;r.push({display:v,value:b+":"+L})}}let c=()=>{a.innerHTML="",r.forEach(w=>{let T=document.createElement("div");T.className="vd-timepicker-item",T.setAttribute("role","option"),T.textContent=w.display,(t.value===w.value||t.value===w.display)&&T.classList.add("is-selected"),T.addEventListener("click",()=>{t.value=w.display,a.querySelectorAll(".vd-timepicker-item").forEach(b=>b.classList.remove("is-selected")),T.classList.add("is-selected"),f(),t.dispatchEvent(new CustomEvent("timepicker:select",{detail:{display:w.display,value:w.value},bubbles:!0})),t.dispatchEvent(new Event("change",{bubbles:!0}))}),a.appendChild(T)})},l=()=>{a.classList.contains("is-open")&&m(t,a)},d=()=>{l()},u=()=>{c(),a.classList.add("is-open"),t.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>{l();let w=a.querySelector(".is-selected");w&&w.scrollIntoView({block:"center"})})},f=()=>{a.classList.remove("is-open"),t.setAttribute("aria-expanded","false")},h=()=>u(),p=w=>{!t.contains(w.target)&&!a.contains(w.target)&&f()},g=w=>{w.key==="Escape"&&f()};t.addEventListener("focus",h),document.addEventListener("click",p,!0),document.addEventListener("keydown",g),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0),t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-expanded","false"),t.setAttribute("autocomplete","off"),t.readOnly=!0,n.push(()=>t.removeEventListener("focus",h),()=>document.removeEventListener("click",p,!0),()=>document.removeEventListener("keydown",g),()=>window.removeEventListener("resize",d),()=>window.removeEventListener("scroll",d,!0),()=>a.remove()),this.instances.set(t,{cleanup:n,open:u,close:f})},destroy:function(t){let n=this.instances.get(t);n&&(n.cleanup.forEach(s=>s()),this.instances.delete(t))},destroyAll:function(){this.instances.forEach((t,n)=>this.destroy(n))}};typeof window.Vanduo<"u"&&window.Vanduo.register("timepicker",e),window.VanduoTimepicker=e})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,".vd-stepper").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=[],n=Array.from(e.querySelectorAll(".vd-stepper-item")),s=e.classList.contains("vd-stepper-clickable"),i=n.findIndex(a=>a.classList.contains("is-active"));i===-1&&(i=0);let o=a=>{if(a<0||a>=n.length)return;let r=i;i=a,n.forEach((c,l)=>{c.classList.remove("is-active","is-completed"),l<a?c.classList.add("is-completed"):l===a&&c.classList.add("is-active")}),e.dispatchEvent(new CustomEvent("stepper:change",{detail:{current:a,previous:r,total:n.length},bubbles:!0}))};s&&n.forEach((a,r)=>{let c=()=>o(r);a.addEventListener("click",c),t.push(()=>a.removeEventListener("click",c))}),o(i),this.instances.set(e,{cleanup:t,setStep:o,next:()=>o(i+1),prev:()=>o(i-1),getCurrent:()=>i})},setStep:function(e,t){let n=this.instances.get(e);n&&n.setStep(t)},next:function(e){let t=this.instances.get(e);t&&t.next()},prev:function(e){let t=this.instances.get(e);t&&t.prev()},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("stepper",m),window.VanduoStepper=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,"[data-vd-rating]").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=[],n=parseInt(e.getAttribute("data-vd-rating-max")||"5",10),s=parseFloat(e.getAttribute("data-vd-rating-value")||"0"),i=e.classList.contains("vd-rating-readonly")||e.hasAttribute("data-vd-rating-readonly"),o=s;e.classList.add("vd-rating"),e.setAttribute("role","radiogroup"),e.setAttribute("aria-label",e.getAttribute("aria-label")||"Rating"),e.innerHTML="";let a=[];for(let l=1;l<=n;l++){let d=document.createElement("button");d.type="button",d.className="vd-rating-star",d.setAttribute("role","radio"),d.setAttribute("aria-label",l+" star"+(l>1?"s":"")),d.setAttribute("aria-checked",l<=o?"true":"false"),i&&(d.tabIndex=-1),a.push(d),e.appendChild(d)}let r=document.createElement("span");r.className="vd-rating-value",r.textContent=o>0?o.toString():"",e.appendChild(r);let c=l=>{a.forEach((d,u)=>{d.classList.remove("is-active","is-half");let f=u+1;f<=Math.floor(l)?d.classList.add("is-active"):f-.5<=l&&d.classList.add("is-half"),d.setAttribute("aria-checked",f<=l?"true":"false")}),r.textContent=l>0?l.toString():""};if(c(o),!i){a.forEach((d,u)=>{let f=()=>{a.forEach((g,w)=>{g.classList.toggle("is-hovered",w<=u)})},h=()=>{a.forEach(g=>g.classList.remove("is-hovered"))},p=()=>{o=u+1,e.setAttribute("data-vd-rating-value",o),c(o),e.dispatchEvent(new CustomEvent("rating:change",{detail:{value:o,max:n},bubbles:!0}))};d.addEventListener("mouseenter",f),d.addEventListener("mouseleave",h),d.addEventListener("click",p),t.push(()=>d.removeEventListener("mouseenter",f),()=>d.removeEventListener("mouseleave",h),()=>d.removeEventListener("click",p))});let l=d=>{d.key==="ArrowRight"||d.key==="ArrowUp"?(d.preventDefault(),o<n&&(o++,c(o),a[o-1].focus(),e.dispatchEvent(new CustomEvent("rating:change",{detail:{value:o,max:n},bubbles:!0})))):(d.key==="ArrowLeft"||d.key==="ArrowDown")&&(d.preventDefault(),o>1&&(o--,c(o),a[o-1].focus(),e.dispatchEvent(new CustomEvent("rating:change",{detail:{value:o,max:n},bubbles:!0}))))};e.addEventListener("keydown",l),t.push(()=>e.removeEventListener("keydown",l))}this.instances.set(e,{cleanup:t,getValue:()=>o,setValue:l=>{o=l,c(l)}})},getValue:function(e){let t=this.instances.get(e);return t?t.getValue():0},setValue:function(e,t){let n=this.instances.get(e);n&&n.setValue(t)},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("rating",m),window.VanduoRating=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,"[data-vd-transfer]").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=[];e.classList.add("vd-transfer");let n,s;try{n=JSON.parse(e.getAttribute("data-vd-transfer")||"[]").map((f,h)=>({id:f.id||"item-"+h,label:f.label||f.text||String(f),selected:!1}))}catch{n=[]}s=[];let i=new Set,o=new Set,a=()=>{e.innerHTML="";let u=r("Source",n,i,"source"),f=document.createElement("div");f.className="vd-transfer-actions";let h=document.createElement("button");h.type="button",h.className="vd-transfer-btn",h.innerHTML="›",h.setAttribute("aria-label","Move to target"),h.disabled=i.size===0,h.addEventListener("click",()=>c());let p=document.createElement("button");p.type="button",p.className="vd-transfer-btn",p.innerHTML="‹",p.setAttribute("aria-label","Move to source"),p.disabled=o.size===0,p.addEventListener("click",()=>l()),f.appendChild(h),f.appendChild(p);let g=r("Target",s,o,"target");e.appendChild(u),e.appendChild(f),e.appendChild(g)},r=(u,f,h,p)=>{let g=document.createElement("div");g.className="vd-transfer-panel";let w=document.createElement("div");w.className="vd-transfer-header";let T=document.createElement("span");T.textContent=u;let b=document.createElement("span");b.className="vd-transfer-count",b.textContent=h.size+"/"+f.length,w.appendChild(T),w.appendChild(b),g.appendChild(w);let L=document.createElement("div");L.className="vd-transfer-search";let V=document.createElement("input");V.type="text",V.placeholder="Search...",V.setAttribute("aria-label","Search "+u.toLowerCase()),L.appendChild(V),g.appendChild(L);let C=document.createElement("ul");C.className="vd-transfer-list",C.setAttribute("role","listbox");let v=q=>{C.innerHTML="",(q?f.filter(S=>(S.label||S.text||String(S)).toLowerCase().includes(q.toLowerCase())):f).forEach(S=>{let M=document.createElement("li");M.className="vd-transfer-item",M.setAttribute("role","option"),h.has(S.id)&&M.classList.add("is-selected");let P=document.createElement("input");P.type="checkbox",P.checked=h.has(S.id),P.setAttribute("aria-label",S.label);let F=document.createElement("span");F.textContent=S.label,M.addEventListener("click",()=>{h.has(S.id)?h.delete(S.id):h.add(S.id),a()}),M.appendChild(P),M.appendChild(F),C.appendChild(M)})};return V.addEventListener("input",()=>v(V.value)),v(""),g.appendChild(C),g},c=()=>{let u=n.filter(f=>i.has(f.id));n=n.filter(f=>!i.has(f.id)),s=s.concat(u),i.clear(),a(),d()},l=()=>{let u=s.filter(f=>o.has(f.id));s=s.filter(f=>!o.has(f.id)),n=n.concat(u),o.clear(),a(),d()},d=()=>{e.dispatchEvent(new CustomEvent("transfer:change",{detail:{source:n.map(u=>u.id),target:s.map(u=>u.id)},bubbles:!0}))};a(),this.instances.set(e,{cleanup:t,getTarget:()=>s.map(u=>u.id),getSource:()=>n.map(u=>u.id)})},getSelected:function(e){let t=this.instances.get(e);return t?t.getTarget():[]},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),e.innerHTML="",this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("transfer",m),window.VanduoTransfer=m})();(function(){"use strict";let m={instances:new Map,init:function(e){window.Vanduo.queryAll(e,"[data-vd-tree]").forEach(n=>{this.instances.has(n)||this.initInstance(n)})},initInstance:function(e){let t=[],n=e.getAttribute("data-vd-tree-cascade")!=="false",s;try{s=JSON.parse(e.getAttribute("data-vd-tree")||"[]")}catch{s=[]}e.classList.add("vd-tree"),e.setAttribute("role","tree");let i=(r,c)=>{c.innerHTML="",r.forEach(l=>{let d=document.createElement("li");d.className="vd-tree-node",d.setAttribute("role","treeitem"),d.setAttribute("aria-expanded",l.open?"true":"false"),l.open&&d.classList.add("is-open");let u=document.createElement("div");if(u.className="vd-tree-node-content",l.children&&l.children.length>0){let h=document.createElement("button");h.type="button",h.className="vd-tree-toggle",h.setAttribute("aria-label","Toggle"),h.addEventListener("click",p=>{p.stopPropagation(),l.open=!l.open,d.classList.toggle("is-open"),d.setAttribute("aria-expanded",l.open?"true":"false")}),u.appendChild(h)}else{let h=document.createElement("span");h.className="vd-tree-toggle-placeholder",u.appendChild(h)}if(e.hasAttribute("data-vd-tree-checkbox")){let h=document.createElement("input");h.type="checkbox",h.className="vd-tree-checkbox",h.checked=!!l.checked,h.setAttribute("aria-label",l.label),h.addEventListener("change",p=>{p.stopPropagation(),l.checked=h.checked,n&&l.children&&(o(l.children,h.checked),i(s,e)),e.dispatchEvent(new CustomEvent("tree:check",{detail:{id:l.id,checked:h.checked,label:l.label},bubbles:!0}))}),u.appendChild(h)}if(l.icon){let h=document.createElement("span");h.className="vd-tree-icon "+l.icon,u.appendChild(h)}let f=document.createElement("span");if(f.className="vd-tree-label",f.textContent=l.label||"",u.appendChild(f),d.appendChild(u),l.children&&l.children.length>0){let h=document.createElement("ul");h.className="vd-tree-children",h.setAttribute("role","group"),i(l.children,h),d.appendChild(h)}c.appendChild(d)})},o=(r,c)=>{r.forEach(l=>{l.checked=c,l.children&&o(l.children,c)})},a=r=>{let c=document.activeElement;if(!e.contains(c))return;let l=Array.from(e.querySelectorAll(".vd-tree-node-content")),d=l.indexOf(c.closest(".vd-tree-node-content"));if(d!==-1)switch(r.key){case"ArrowDown":if(r.preventDefault(),d<l.length-1){let u=l[d+1].querySelector(".vd-tree-toggle, .vd-tree-label");u&&u.focus()}break;case"ArrowUp":if(r.preventDefault(),d>0){let u=l[d-1].querySelector(".vd-tree-toggle, .vd-tree-label");u&&u.focus()}break}};e.addEventListener("keydown",a),t.push(()=>e.removeEventListener("keydown",a)),i(s,e),this.instances.set(e,{cleanup:t,getData:()=>s,getChecked:()=>{let r=[],c=l=>{l.forEach(d=>{d.checked&&r.push(d.id||d.label),d.children&&c(d.children)})};return c(s),r}})},getChecked:function(e){let t=this.instances.get(e);return t?t.getChecked():[]},destroy:function(e){let t=this.instances.get(e);t&&(t.cleanup.forEach(n=>n()),e.innerHTML="",this.instances.delete(e))},destroyAll:function(){this.instances.forEach((e,t)=>this.destroy(t))}};typeof window.Vanduo<"u"&&window.Vanduo.register("tree",m),window.VanduoTree=m})();(function(){"use strict";let m={_active:!1,_steps:[],_currentStep:0,_elements:{},_cleanup:[],_boundTriggers:new WeakMap,_triggerElement:null,init:function(e){window.Vanduo.queryAll(e,"[data-vd-spotlight]").forEach(n=>{if(this._boundTriggers.has(n))return;let s=i=>{i.preventDefault();let o=this._parseSteps(n.getAttribute("data-vd-spotlight"));o.length!==0&&this.start(o,{trigger:n})};n.addEventListener("click",s),this._boundTriggers.set(n,s)})},_parseSteps:function(e){if(typeof e!="string"||e.trim()==="")return[];try{let t=JSON.parse(e);return this._normalizeSteps(t)}catch(t){return console.error("VanduoSpotlight: invalid data-vd-spotlight payload.",t),[]}},_normalizeStep:function(e){if(!e||typeof e!="object")return null;let t=e.target,n=typeof t=="string"&&t.trim()!=="",s=typeof Element<"u"&&t instanceof Element;if(!n&&!s)return null;let i=typeof e.title=="string"?e.title:"",o=typeof e.description=="string"?e.description:typeof e.content=="string"?e.content:"";return{target:t,title:i,description:o}},_normalizeSteps:function(e){return Array.isArray(e)?e.map(t=>this._normalizeStep(t)).filter(Boolean):[]},start:function(e,t){this._active&&this.stop();let n=this._normalizeSteps(e);if(n.length===0)return;let s=t||{};this._steps=n,this._currentStep=0,this._active=!0,this._triggerElement=s.trigger||(document.activeElement instanceof HTMLElement?document.activeElement:null);let i=document.createElement("div");i.className="vd-spotlight-overlay",i.setAttribute("aria-hidden","true"),document.body.appendChild(i);let o=document.createElement("div");o.className="vd-spotlight-tooltip",o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.tabIndex=-1,document.body.appendChild(o),this._elements={overlay:i,tooltip:o};let a=r=>{r.key==="Escape"&&this.stop()};document.addEventListener("keydown",a),this._cleanup.push(()=>document.removeEventListener("keydown",a)),i.addEventListener("click",()=>this.stop()),this._showStep(this._currentStep)},_showStep:function(e){let t=this._steps[e];if(!t)return;let n=typeof t.target=="string"?document.querySelector(t.target):t.target,{tooltip:s}=this._elements;document.querySelectorAll(".vd-spotlight-target").forEach(l=>{l.classList.remove("vd-spotlight-target")}),n&&(n.classList.add("vd-spotlight-target"),n.scrollIntoView({behavior:"smooth",block:"center"}));let i=this._steps.length;if(s.innerHTML="",s.removeAttribute("aria-labelledby"),s.removeAttribute("aria-describedby"),t.title){let l=document.createElement("h4");l.className="vd-spotlight-title",l.id="vd-spotlight-title-"+e+"-"+Date.now(),l.textContent=t.title,s.appendChild(l),s.setAttribute("aria-labelledby",l.id)}if(t.description){let l=document.createElement("p");l.className="vd-spotlight-description",l.id="vd-spotlight-description-"+e+"-"+Date.now(),l.textContent=t.description,s.appendChild(l),s.setAttribute("aria-describedby",l.id)}let o=document.createElement("div");o.className="vd-spotlight-footer",o.setAttribute("aria-label","Step "+(e+1)+" of "+i);let a=document.createElement("span");a.className="vd-spotlight-counter",a.textContent=e+1+" / "+i;let r=document.createElement("div");if(r.className="vd-spotlight-actions",e>0){let l=document.createElement("button");l.type="button",l.className="vd-spotlight-btn",l.textContent="Back",l.addEventListener("click",()=>this.prev()),r.appendChild(l)}let c=document.createElement("button");if(c.type="button",c.className="vd-spotlight-btn",c.textContent="Skip",c.addEventListener("click",()=>this.stop()),r.appendChild(c),e<i-1){let l=document.createElement("button");l.type="button",l.className="vd-spotlight-btn vd-spotlight-btn-primary",l.textContent="Next",l.addEventListener("click",()=>this.next()),r.appendChild(l)}else{let l=document.createElement("button");l.type="button",l.className="vd-spotlight-btn vd-spotlight-btn-primary",l.textContent="Done",l.addEventListener("click",()=>this.stop()),r.appendChild(l)}o.appendChild(a),o.appendChild(r),s.appendChild(o),n&&requestAnimationFrame(()=>{let l=n.getBoundingClientRect(),d=s.getBoundingClientRect(),u=l.bottom+12+window.scrollY,f=l.left+(l.width-d.width)/2+window.scrollX;f=Math.max(8,Math.min(f,window.innerWidth-d.width-8)),u+d.height>window.innerHeight+window.scrollY&&(u=l.top-d.height-12+window.scrollY),s.style.top=u+"px",s.style.left=f+"px"}),document.dispatchEvent(new CustomEvent("spotlight:step",{detail:{index:e,step:e,total:i,data:t}}))},next:function(){this._currentStep<this._steps.length-1&&(this._currentStep++,this._showStep(this._currentStep))},prev:function(){this._currentStep>0&&(this._currentStep--,this._showStep(this._currentStep))},stop:function(){if(!this._active)return;let e=this._steps.length,t={completedSteps:e===0?0:Math.min(this._currentStep+1,e),total:e,completed:e>0&&this._currentStep>=e-1};this._active=!1,document.querySelectorAll(".vd-spotlight-target").forEach(n=>{n.classList.remove("vd-spotlight-target")}),this._elements.overlay&&this._elements.overlay.parentNode&&this._elements.overlay.parentNode.removeChild(this._elements.overlay),this._elements.tooltip&&this._elements.tooltip.parentNode&&this._elements.tooltip.parentNode.removeChild(this._elements.tooltip),this._cleanup.forEach(n=>n()),this._cleanup=[],this._elements={},this._steps=[],this._currentStep=0,this._triggerElement&&this._triggerElement.isConnected&&typeof this._triggerElement.focus=="function"&&this._triggerElement.focus(),this._triggerElement=null,document.dispatchEvent(new CustomEvent("spotlight:end",{detail:t}))},destroyAll:function(){this.stop()}};typeof window.Vanduo<"u"&&window.Vanduo.register("spotlight",m),window.VanduoSpotlight=m})();var fe=window.Vanduo;var Ae=fe;
|
|
43
43
|
//# sourceMappingURL=vanduo.cjs.min.js.map
|