UNPKG

uikit

Version:

UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.

1 lines • 102 kB
/*! UIkit 3.25.13 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(Qt,te){typeof exports=="object"&&typeof module<"u"?module.exports=te():typeof define=="function"&&define.amd?define("uikit",te):(Qt=typeof globalThis<"u"?globalThis:Qt||self,Qt.UIkit=te())})(this,(function(){"use strict";const{hasOwnProperty:Qt,toString:te}=Object.prototype;function at(t,e){return Qt.call(t,e)}const Vo=/\B([A-Z])/g,wt=X(t=>t.replace(Vo,"-$1").toLowerCase()),Yo=/-(\w)/g,ee=X(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(Yo,(e,i)=>i.toUpperCase())),It=X(t=>t.charAt(0).toUpperCase()+t.slice(1));function lt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}function ie(t,e){var i;return(i=t==null?void 0:t.endsWith)==null?void 0:i.call(t,e)}function d(t,e){var i;return(i=t==null?void 0:t.includes)==null?void 0:i.call(t,e)}function Be(t,e){var i;return(i=t==null?void 0:t.findIndex)==null?void 0:i.call(t,e)}const{isArray:q,from:Me}=Array,{assign:ne}=Object;function G(t){return typeof t=="function"}function dt(t){return t!==null&&typeof t=="object"}function oe(t){return te.call(t)==="[object Object]"}function De(t){return dt(t)&&t===t.window}function se(t){return ri(t)===9}function Ae(t){return ri(t)>=1}function re(t){return ri(t)===1}function ri(t){return!De(t)&&dt(t)&&t.nodeType}function Ft(t){return typeof t=="boolean"}function O(t){return typeof t=="string"}function Ne(t){return typeof t=="number"}function pt(t){return Ne(t)||O(t)&&!isNaN(t-parseFloat(t))}function ai(t){return!(q(t)?t.length:dt(t)&&Object.keys(t).length)}function U(t){return t===void 0}function li(t){return Ft(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function ae(t){const e=Number(t);return isNaN(e)?!1:e}function x(t){return parseFloat(t)||0}function B(t){return t&&g(t)[0]}function g(t){return Ae(t)?[t]:Array.from(t||[]).filter(Ae)}function $t(t){if(De(t))return t;t=B(t);const e=se(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function fn(t,e){return t===e||dt(t)&&dt(e)&&Object.keys(t).length===Object.keys(e).length&&ce(t,(i,n)=>i===e[n])}function ci(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),n=>n===e?i:e)}function le(t){return t[t.length-1]}function ce(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function dn(t,e){return t.slice().sort(({[e]:i=0},{[e]:n=0})=>i>n?1:n>i?-1:0)}function he(t,e){return t.reduce((i,n)=>i+x(G(e)?e(n):n[e]),0)}function Go(t,e){const i=new Set;return t.filter(({[e]:n})=>i.has(n)?!1:i.add(n))}function hi(t,e){return e.reduce((i,n)=>({...i,[n]:t[n]}),{})}function ot(t,e=0,i=1){return Math.min(Math.max(ae(t)||0,e),i)}function st(){}function Ie(...t){return[["bottom","top"],["right","left"]].every(([e,i])=>Math.min(...t.map(({[e]:n})=>n))-Math.max(...t.map(({[i]:n})=>n))>0)}function ui(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function fi(t,e,i){const n=e==="width"?"height":"width";return{[n]:t[e]?Math.round(i*t[n]/t[e]):t[n],[e]:i}}function pn(t,e){t={...t};for(const i in t)t=t[i]>e[i]?fi(t,i,e[i]):t;return t}function Xo(t,e){t=pn(t,e);for(const i in t)t=t[i]<e[i]?fi(t,i,e[i]):t;return t}const gn={ratio:fi,contain:pn,cover:Xo};function yt(t,e,i=0,n=!1){e=g(e);const{length:o}=e;return o?(t=pt(t)?ae(t):t==="next"?i+1:t==="previous"?i-1:t==="last"?o-1:e.indexOf(B(t)),n?ot(t,0,o-1):(t%=o,t<0?t+o:t)):-1}function X(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function E(t,...e){for(const i of g(t)){const n=xt(e).filter(o=>!m(i,o));n.length&&i.classList.add(...n)}}function A(t,...e){for(const i of g(t)){const n=xt(e).filter(o=>m(i,o));n.length&&i.classList.remove(...n)}}function Fe(t,e,i){i=xt(i),e=xt(e).filter(n=>!d(i,n)),A(t,e),E(t,i)}function m(t,e){return[e]=xt(e),g(t).some(i=>i.classList.contains(e))}function j(t,e,i){const n=xt(e);U(i)||(i=!!i);for(const o of g(t))for(const s of n)o.classList.toggle(s,i)}function xt(t){return t?q(t)?t.map(xt).flat():String(t).split(" ").filter(Boolean):[]}function _(t,e,i){var n;if(dt(e)){for(const o in e)_(t,o,e[o]);return}if(U(i))return(n=B(t))==null?void 0:n.getAttribute(e);for(const o of g(t))i===null?ue(o,e):o.setAttribute(e,i)}function ct(t,e){return g(t).some(i=>i.hasAttribute(e))}function ue(t,e){g(t).forEach(i=>i.removeAttribute(e))}function Ht(t,e){for(const i of[e,`data-${e}`])if(ct(t,i))return _(t,i)}const kt=typeof window<"u",St=kt&&document.dir==="rtl",zt=kt&&"ontouchstart"in window,qt=kt&&window.PointerEvent,Et=qt?"pointerdown":zt?"touchstart":"mousedown",di=qt?"pointermove":zt?"touchmove":"mousemove",Tt=qt?"pointerup":zt?"touchend":"mouseup",Lt=qt?"pointerenter":zt?"":"mouseenter",Wt=qt?"pointerleave":zt?"":"mouseleave",fe=qt?"pointercancel":"touchcancel",Jo={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function pi(t){return g(t).some(e=>Jo[e.tagName.toLowerCase()])}const Ko=kt&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function L(t){return g(t).some(e=>Ko.call(e))}const de="input,select,textarea,button";function He(t){return g(t).some(e=>T(e,de))}const pe=`${de},a[href],[tabindex]`;function ze(t){return T(t,pe)}function M(t){var e;return(e=B(t))==null?void 0:e.parentElement}function ge(t,e){return g(t).filter(i=>T(i,e))}function T(t,e){return g(t).some(i=>i.matches(e))}function me(t,e){const i=[];for(;t=M(t);)(!e||T(t,e))&&i.push(t);return i}function tt(t,e){t=B(t);const i=t?Me(t.children):[];return e?ge(i,e):i}function jt(t,e){return e?g(t).indexOf(B(e)):tt(M(t)).indexOf(t)}function Rt(t){return t=B(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function qe(t){if(Rt(t)){const{hash:e,ownerDocument:i}=B(t),n=decodeURIComponent(e).slice(1);return n?i.getElementById(n)||i.getElementsByName(n)[0]:i.documentElement}}function W(t,e){return gi(t,mn(t,e))}function ve(t,e){return be(t,mn(t,e))}function gi(t,e){return B(wn(t,B(e),"querySelector"))}function be(t,e){return g(wn(t,B(e),"querySelectorAll"))}function mn(t,e=document){return se(e)||vn(t).isContextSelector?e:e.ownerDocument}const Zo=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Qo=/(\([^)]*\)|[^,])+/g,vn=X(t=>{let e=!1;if(!t||!O(t))return{};const i=[];for(let n of t.match(Qo))n=n.trim().replace(Zo,"$1 *"),e||(e=["!","+","~","-",">"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}}),ts=/(\([^)]*\)|\S)*/,bn=X(t=>{t=t.slice(1).trim();const[e]=t.match(ts);return[e,t.slice(e.length+1)]});function wn(t,e=document,i){var n;const o=vn(t);if(!o.isContextSelector)return o.selector?mi(e,i,o.selector):t;t="";const s=o.selectors.length===1;for(let r of o.selectors){let a,l=e;if(r[0]==="!"&&([a,r]=bn(r),l=(n=e.parentElement)==null?void 0:n.closest(a),!r&&s)||l&&r[0]==="-"&&([a,r]=bn(r),l=l.previousElementSibling,l=T(l,a)?l:null,!r&&s))return l;if(l){if(s)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${jt(l)+1}) ${r}`,l=l.parentElement):r[0]===">"&&(r=`:scope ${r}`),mi(l,i,r);t+=`${t?",":""}${es(l)} ${r}`}}return se(e)||(e=e.ownerDocument),mi(e,i,t)}function mi(t,e,i){try{return t[e](i)}catch{return null}}function es(t){const e=[];for(;t.parentNode;){const i=_(t,"id");if(i){e.unshift(`#${vi(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${jt(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function vi(t){return O(t)?CSS.escape(t):""}function w(...t){let[e,i,n,o,s=!1]=wi(t);o.length>1&&(o=ns(o)),s!=null&&s.self&&(o=os(o)),n&&(o=is(n,o));for(const r of i)for(const a of e)a.addEventListener(r,o,s);return()=>bi(e,i,o,s)}function bi(...t){let[e,i,,n,o=!1]=wi(t);for(const s of i)for(const r of e)r.removeEventListener(s,n,o)}function D(...t){const[e,i,n,o,s=!1,r]=wi(t),a=w(e,i,n,l=>{const h=!r||r(l);h&&(a(),o(l,h))},s);return a}function C(t,e,i){return $i(t).every(n=>n.dispatchEvent(Le(e,!0,!0,i)))}function Le(t,e=!0,i=!1,n){return O(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:n})),t}function wi(t){return t[0]=$i(t[0]),O(t[1])&&(t[1]=t[1].split(" ")),G(t[2])&&t.splice(2,0,!1),t}function is(t,e){return i=>{const n=t[0]===">"?be(t,i.currentTarget).reverse().find(o=>o.contains(i.target)):i.target.closest(t);n&&(i.current=n,e.call(this,i),delete i.current)}}function ns(t){return e=>q(e.detail)?t(e,...e.detail):t(e)}function os(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function $n(t){return t&&"addEventListener"in t}function ss(t){return $n(t)?t:B(t)}function $i(t){return q(t)?t.map(ss).filter(Boolean):O(t)?be(t):$n(t)?[t]:g(t)}function ht(t){return t.pointerType==="touch"||!!t.touches}function gt(t){var e,i;const{clientX:n,clientY:o}=((e=t.touches)==null?void 0:e[0])||((i=t.changedTouches)==null?void 0:i[0])||t;return{x:n,y:o}}const rs={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function c(t,e,i,n){const o=g(t);for(const s of o)if(O(e)){if(e=xi(e),U(i))return getComputedStyle(s).getPropertyValue(e);s.style.setProperty(e,pt(i)&&!rs[e]&&!yn(e)?`${i}px`:i||Ne(i)?i:"",n)}else if(q(e)){const r={};for(const a of e)r[a]=c(s,a);return r}else if(dt(e))for(const r in e)c(s,r,e[r],i);return o[0]}function yi(t,e){for(const i in e)c(t,i,"")}const xi=X(t=>{if(yn(t))return t;t=wt(t);const{style:e}=document.documentElement;if(t in e)return t;for(const i of["webkit","moz"]){const n=`-${i}-${t}`;if(n in e)return n}});function yn(t){return lt(t,"--")}const ki="uk-transition",Si="transitionend",Ei="transitioncanceled";function as(t,e,i=400,n="linear",o){return i=Math.round(i),Promise.all(g(t).map(s=>new Promise((r,a)=>{o||s.offsetHeight;const l=setTimeout(()=>C(s,Si),i);D(s,[Si,Ei],({type:u})=>{clearTimeout(l),A(s,ki),yi(s,h),u===Ei?a():r(s)},{self:!0}),E(s,ki);const h={transitionProperty:Object.keys(e).map(xi).join(","),transitionDuration:`${i}ms`,transitionTimingFunction:n};c(s,{...h,...e})})))}const J={start:as,async stop(t){C(t,Si),await Promise.resolve()},async cancel(t){C(t,Ei),await Promise.resolve()},inProgress(t){return m(t,ki)}},we="uk-animation",xn="animationend",We="animationcanceled";function kn(t,e,i=200,n,o){return Promise.all(g(t).map(s=>new Promise((r,a)=>{m(s,we)&&C(s,We);const l=[e,we,`${we}-${o?"leave":"enter"}`,n&&`uk-transform-origin-${n}`,o&&`${we}-reverse`],h=setTimeout(()=>C(s,xn),i);D(s,[xn,We],({type:u})=>{clearTimeout(h),u===We?a():r(s),c(s,"animationDuration",""),A(s,l)},{self:!0}),c(s,"animationDuration",`${i}ms`),E(s,l)})))}const mt={in:kn,out(t,e,i,n){return kn(t,e,i,n,!0)},inProgress(t){return m(t,we)},cancel(t){C(t,We)}};function ls(t){if(document.readyState!=="loading"){t();return}D(document,"DOMContentLoaded",t)}function I(t,...e){return e.some(i=>{var n;return((n=t==null?void 0:t.tagName)==null?void 0:n.toLowerCase())===i.toLowerCase()})}function Sn(t){return t=k(t),t&&(t.innerHTML=""),t}function je(t,e){return U(e)?k(t).innerHTML:et(Sn(t),e)}const cs=Ue("prepend"),et=Ue("append"),Ti=Ue("before"),Re=Ue("after");function Ue(t){return function(e,i){var n;const o=g(O(i)?_t(i):i);return(n=k(e))==null||n[t](...o),En(o)}}function Ct(t){g(t).forEach(e=>e.remove())}function Ve(t,e){for(e=B(Ti(t,e));e.firstElementChild;)e=e.firstElementChild;return et(e,t),e}function Ci(t,e){return g(g(t).map(i=>i.hasChildNodes()?Ve(Me(i.childNodes),e):et(i,e)))}function $e(t){g(t).map(M).filter((e,i,n)=>n.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const hs=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function _t(t){const e=hs.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),En(i.content.childNodes)}function En(t){return t.length>1?t:t[0]}function Pt(t,e){if(re(t))for(e(t),t=t.firstElementChild;t;)Pt(t,e),t=t.nextElementSibling}function k(t,e){return Tn(t)?B(_t(t)):gi(t,e)}function F(t,e){return Tn(t)?g(_t(t)):be(t,e)}function Tn(t){return O(t)&&lt(t.trim(),"<")}const Ot={width:["left","right"],height:["top","bottom"]};function P(t){const e=re(t)?B(t).getBoundingClientRect():{height:ut(t),width:Ye(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function v(t,e){e&&c(t,{left:0,top:0});const i=P(t);if(t){const{scrollY:n,scrollX:o}=$t(t),s={height:n,width:o};for(const r in Ot)for(const a of Ot[r])i[a]+=s[r]}if(!e)return i;for(const n of["left","top"])c(t,n,e[n]-i[n])}function us(t){let{top:e,left:i}=v(t);const{ownerDocument:{body:n,documentElement:o},offsetParent:s}=B(t);let r=s||o;for(;r&&(r===n||r===o)&&c(r,"position")==="static";)r=r.parentNode;if(re(r)){const a=v(r);e-=a.top+x(c(r,"borderTopWidth")),i-=a.left+x(c(r,"borderLeftWidth"))}return{top:e-x(c(t,"marginTop")),left:i-x(c(t,"marginLeft"))}}function ye(t){t=B(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+x(c(t,"borderTopWidth")),e[1]+=t.offsetLeft+x(c(t,"borderLeftWidth")),c(t,"position")==="fixed"){const i=$t(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}return e}const ut=Cn("height"),Ye=Cn("width");function Cn(t){const e=It(t);return(i,n)=>{if(U(n)){if(De(i))return i[`inner${e}`];if(se(i)){const o=i.documentElement;return Math.max(o[`offset${e}`],o[`scroll${e}`])}return i=B(i),n=c(i,t),n=n==="auto"?i[`offset${e}`]:x(n)||0,n-Ut(i,t)}else return c(i,t,!n&&n!==0?"":+n+Ut(i,t)+"px")}}function Ut(t,e,i="border-box"){return c(t,"boxSizing")===i?he(Ot[e],n=>x(c(t,`padding-${n}`))+x(c(t,`border-${n}-width`))):0}function _n(t){for(const e in Ot)for(const i in Ot[e])if(Ot[e][i]===t)return Ot[e][1-i];return t}function K(t,e="width",i=window,n=!1){return O(t)?he(ds(t),o=>{const s=gs(o);return s?ms(s==="vh"?vs():s==="vw"?Ye($t(i)):n?i[`offset${It(e)}`]:P(i)[e],o):o}):x(t)}const fs=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,ds=X(t=>t.toString().replace(/\s/g,"").match(fs)||[]),ps=/(?:v[hw]|%)$/,gs=X(t=>(t.match(ps)||[])[0]);function ms(t,e){return t*x(e)/100}let xe,Vt;function vs(){return xe||(Vt||(Vt=k("<div>"),c(Vt,{height:"100vh",position:"fixed"}),w(window,"resize",()=>xe=null)),et(document.body,Vt),xe=Vt.clientHeight,Ct(Vt),xe)}const _i={read:bs,write:ws,clear:$s,flush:Pn},Ge=[],Xe=[];function bs(t){return Ge.push(t),Oi(),t}function ws(t){return Xe.push(t),Oi(),t}function $s(t){Bn(Ge,t),Bn(Xe,t)}let Pi=!1;function Pn(){On(Ge),On(Xe.splice(0)),Pi=!1,(Ge.length||Xe.length)&&Oi()}function Oi(){Pi||(Pi=!0,queueMicrotask(Pn))}function On(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function Bn(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}class Mn{init(){this.positions=[];let e;this.unbind=w(document,"mousemove",i=>e=gt(i)),this.interval=setInterval(()=>{e&&(this.positions.push(e),this.positions.length>5&&this.positions.shift())},50)}cancel(){var e;(e=this.unbind)==null||e.call(this),clearInterval(this.interval)}movesTo(e){if(!this.positions||this.positions.length<2)return!1;const i=P(e),{left:n,right:o,top:s,bottom:r}=i,[a]=this.positions,l=le(this.positions),h=[a,l];return ui(l,i)?!1:[[{x:n,y:s},{x:o,y:r}],[{x:n,y:r},{x:o,y:s}]].some(f=>{const p=ys(h,f);return p&&ui(p,i)})}}function ys([{x:t,y:e},{x:i,y:n}],[{x:o,y:s},{x:r,y:a}]){const l=(a-s)*(i-t)-(r-o)*(n-e);if(l===0)return!1;const h=((r-o)*(e-s)-(a-s)*(t-o))/l;return h<0?!1:{x:t+h*(i-t),y:e+h*(n-e)}}function Dn(t,e,i={},{intersecting:n=!0}={}){const o=new IntersectionObserver(n?(s,r)=>{s.some(a=>a.isIntersecting)&&e(s,r)}:e,i);for(const s of g(t))o.observe(s);return o}const xs=kt&&window.ResizeObserver;function ke(t,e,i={box:"border-box"}){if(xs)return An(ResizeObserver,t,e,i);const n=[w(window,"load resize",e),w(document,"loadedmetadata load",e,!0)];return{disconnect:()=>n.map(o=>o())}}function Bi(t){return{disconnect:w([window,window.visualViewport],"resize",t)}}function Mi(t,e,i){return An(MutationObserver,t,e,i)}function An(t,e,i,n){const o=new t(i);for(const s of g(e))o.observe(s,n);return o}function Di(t){Ni(t)&&Ii(t,{func:"playVideo",method:"play"}),Ai(t)&&t.play().catch(st)}function Nn(t){Ni(t)&&t[Je]&&Ii(t,{func:"pauseVideo",method:"pause"}),Ai(t)&&t.pause()}function In(t){Ni(t)&&Ii(t,{func:"mute",method:"setVolume",value:0}),Ai(t)&&(t.muted=!0)}function Ai(t){return I(t,"video")}function Ni(t){return I(t,"iframe")&&(Fn(t)||Hn(t))}function Fn(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function Hn(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function Ii(t,e){await Ss(t),zn(t,e)}function zn(t,e){t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}const Je="_ukPlayer";let ks=0;function Ss(t){if(t[Je])return t[Je];const e=Fn(t),i=Hn(t),n=++ks;let o;return t[Je]=new Promise(s=>{e&&D(t,"load",()=>{const r=()=>zn(t,{event:"listening",id:n});o=setInterval(r,100),r()}),D(window,"message",s,!1,({data:r})=>{try{return r=JSON.parse(r),e&&(r==null?void 0:r.id)===n&&r.event==="onReady"||i&&Number(r==null?void 0:r.player_id)===n}catch{}}),t.src=`${t.src}${d(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${n}`}`}).then(()=>clearInterval(o))}function Es(t,e=0,i=0){return L(t)?Ie(...Gt(t).map(n=>{const{top:o,left:s,bottom:r,right:a}=Z(n);return{top:o-e,left:s-i,bottom:r+e,right:a+i}}).concat(v(t))):!1}function qn(t,{offset:e=0}={}){const i=L(t)?Yt(t,!1,["hidden"]):[];return i.reduce((r,a,l)=>{const{scrollTop:h,scrollHeight:u,offsetHeight:f}=a,p=Z(a),y=u-p.height,{height:b,top:$}=i[l-1]?Z(i[l-1]):v(t);let S=Math.ceil($-p.top-e+h);return e>0&&f<b+e?S+=e:e=0,S>y?(e-=S-y,S=y):S<0&&(e-=S,S=0),()=>n(a,S-h,t,y).then(r)},()=>Promise.resolve())();function n(r,a,l,h){return new Promise(u=>{const f=r.scrollTop,p=o(Math.abs(a)),y=Date.now(),b=zi(r)===r,$=v(l).top+(b?0:f);let S=0,Y=15;(function nt(){const bt=s(ot((Date.now()-y)/p));let rt=0;i[0]===r&&f+a<h&&(rt=v(l).top+(b?0:r.scrollTop)-$-P(Fi(l)).height),c(r,"scrollBehavior")!=="auto"&&c(r,"scrollBehavior","auto"),r.scrollTop=f+(a+rt)*bt,c(r,"scrollBehavior",""),bt===1&&(S===rt||!Y--)?u():(S=rt,requestAnimationFrame(nt))})()})}function o(r){return 40*Math.pow(r,.375)}function s(r){return .5*(1-Math.cos(Math.PI*r))}}function Ln(t,e=0,i=0){if(!L(t))return 0;const n=Bt(t,!0),{scrollHeight:o,scrollTop:s}=n,{height:r}=Z(n),a=o-r,l=ye(t)[0]-ye(n)[0],h=Math.max(0,l-r+e),u=Math.min(a,l+t.offsetHeight-i);return h<u?ot((s-h)/(u-h)):1}function Yt(t,e=!1,i=[]){const n=zi(t);let o=me(t).reverse();o=o.slice(o.indexOf(n)+1);const s=Be(o,r=>c(r,"position")==="fixed");return~s&&(o=o.slice(s)),[n].concat(o.filter(r=>c(r,"overflow").split(" ").some(a=>d(["auto","scroll",...i],a))&&(!e||r.scrollHeight>Z(r).height))).reverse()}function Bt(...t){return Yt(...t)[0]}function Gt(t){return Yt(t,!1,["hidden","clip"])}function Z(t){const e=$t(t),i=zi(t),n=!Ae(t)||t.contains(i);if(n&&e.visualViewport){let{height:l,width:h,scale:u,pageTop:f,pageLeft:p}=e.visualViewport;return l=Math.round(l*u),h=Math.round(h*u),{height:l,width:h,top:f,left:p,bottom:f+l,right:p+h}}let o=v(n?e:t);if(c(t,"display")==="inline")return o;const{body:s,documentElement:r}=e.document,a=n?i===r||i.clientHeight<s.clientHeight?i:s:t;for(let[l,h,u,f]of[["width","x","left","right"],["height","y","top","bottom"]]){const p=o[l]%1;o[u]+=x(c(a,`border-${u}-width`)),o[l]=o[h]=a[`client${It(l)}`]-(p?p<.5?-p:1-p:0),o[f]=o[l]+o[u]}return o}function Fi(t){const{document:e}=$t(t);t=t||e.body;const{left:i,width:n,top:o}=P(t);for(const s of o?[0,o]:[0]){let r;for(const a of e.elementsFromPoint(i+n/2,s))!a.contains(t)&&!m(a,"uk-togglable-leave")&&(Hi(a,"fixed")&&Wn(me(t).reverse().find(l=>!l.contains(a)&&!Hi(l,"static")))<Wn(a)||Hi(a,"sticky")&&(!t||M(a).contains(t)))&&(!r||P(r).height<P(a).height)&&(r=a);if(r)return r}}function Wn(t){return x(c(t,"zIndex"))}function Hi(t,e){return c(t,"position")===e}function zi(t){return $t(t).document.scrollingElement}const V=[["width","x","left","right"],["height","y","top","bottom"]];function jn(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],placement:[],...i},q(e)||(e=[e,e]),v(t,Rn(t,e,i))}function Rn(t,e,i){const n=Un(t,e,i),{boundary:o,viewportOffset:s=0,placement:r}=i;let a=n;for(const[l,[h,,u,f]]of Object.entries(V)){const p=Ts(t,e[l],s,o,l);if(Ke(n,p,l))continue;let y=0;if(r[l]==="flip"){const b=i.attach.target[l];if(b===f&&n[f]<=p[f]||b===u&&n[u]>=p[u])continue;y=_s(t,e,i,l)[u]-n[u];const $=Cs(t,e[l],s,l);if(!Ke(qi(n,y,l),$,l)){if(Ke(n,$,l))continue;if(i.recursion)return!1;const S=Ps(t,e,i);if(S&&Ke(S,$,1-l))return S;continue}}else if(r[l]==="shift"){const b=v(e[l]),{offset:$}=i;y=ot(ot(n[u],p[u],p[f]-n[h]),b[u]-n[h]+$[l],b[f]-$[l])-n[u]}a=qi(a,y,l)}return a}function Un(t,e,i){let{attach:n,offset:o}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i},s=v(t);for(const[r,[a,,l,h]]of Object.entries(V)){const u=n.target[r]===n.element[r]?Z(e[r]):v(e[r]);s=qi(s,u[l]-s[l]+Vn(n.target[r],h,u[a])-Vn(n.element[r],h,s[a])+ +o[r],r)}return s}function qi(t,e,i){const[,n,o,s]=V[i],r={...t};return r[o]=t[n]=t[o]+e,r[s]+=e,r}function Vn(t,e,i){return t==="center"?i/2:t===e?i:0}function Ts(t,e,i,n,o){let s=Gn(...Yn(t,e).map(Z));return i&&(s[V[o][2]]+=i,s[V[o][3]]-=i),n&&(s=Gn(s,v(q(n)?n[o]:n))),s}function Cs(t,e,i,n){const[o,s,r,a]=V[n],[l]=Yn(t,e),h=Z(l);return["auto","scroll"].includes(c(l,`overflow-${s}`))&&(h[r]-=l[`scroll${It(r)}`],h[a]=h[r]+l[`scroll${It(o)}`]),h[r]+=i,h[a]-=i,h}function Yn(t,e){return Gt(e).filter(i=>i.contains(t))}function Gn(...t){let e={};for(const i of t)for(const[,,n,o]of V)e[n]=Math.max(e[n]||0,i[n]),e[o]=Math.min(...[e[o],i[o]].filter(Ne));return e}function Ke(t,e,i){const[,,n,o]=V[i];return t[n]>=e[n]&&t[o]<=e[o]}function _s(t,e,{offset:i,attach:n},o){return Un(t,e,{attach:{element:Xn(n.element,o),target:Xn(n.target,o)},offset:Os(i,o)})}function Ps(t,e,i){return Rn(t,e,{...i,attach:{element:i.attach.element.map(Jn).reverse(),target:i.attach.target.map(Jn).reverse()},offset:i.offset.reverse(),placement:i.placement.reverse(),recursion:!0})}function Xn(t,e){const i=[...t],n=V[e].indexOf(t[e]);return~n&&(i[e]=V[e][1-n%2+2]),i}function Jn(t){for(let e=0;e<V.length;e++){const i=V[e].indexOf(t);if(~i)return V[1-e][i%2+2]}}function Os(t,e){return t=[...t],t[e]*=-1,t}var Bs=Object.freeze({__proto__:null,$:k,$$:F,Animation:mt,Dimensions:gn,MouseTracker:Mn,Transition:J,addClass:E,after:Re,append:et,apply:Pt,assign:ne,attr:_,before:Ti,boxModelAdjust:Ut,camelize:ee,children:tt,clamp:ot,createEvent:Le,css:c,data:Ht,dimensions:P,each:ce,empty:Sn,endsWith:ie,escape:vi,fastdom:_i,filter:ge,find:gi,findAll:be,findIndex:Be,flipPosition:_n,fragment:_t,getCoveringElement:Fi,getEventPos:gt,getIndex:yt,getTargetedElement:qe,hasAttr:ct,hasClass:m,hasOwn:at,hasTouch:zt,height:ut,html:je,hyphenate:wt,inBrowser:kt,includes:d,index:jt,intersectRect:Ie,isArray:q,isBoolean:Ft,isDocument:se,isElement:re,isEmpty:ai,isEqual:fn,isFocusable:ze,isFunction:G,isInView:Es,isInput:He,isNode:Ae,isNumber:Ne,isNumeric:pt,isObject:dt,isPlainObject:oe,isRtl:St,isSameSiteAnchor:Rt,isString:O,isTag:I,isTouch:ht,isUndefined:U,isVisible:L,isVoidElement:pi,isWindow:De,last:le,matches:T,memoize:X,mute:In,noop:st,observeIntersection:Dn,observeMutation:Mi,observeResize:ke,observeViewportResize:Bi,off:bi,offset:v,offsetPosition:ye,offsetViewport:Z,on:w,once:D,overflowParents:Gt,parent:M,parents:me,pause:Nn,pick:hi,play:Di,pointInRect:ui,pointerCancel:fe,pointerDown:Et,pointerEnter:Lt,pointerLeave:Wt,pointerMove:di,pointerUp:Tt,position:us,positionAt:jn,prepend:cs,propName:xi,query:W,queryAll:ve,ready:ls,remove:Ct,removeAttr:ue,removeClass:A,replaceClass:Fe,resetProps:yi,scrollIntoView:qn,scrollParent:Bt,scrollParents:Yt,scrolledOver:Ln,selFocusable:pe,selInput:de,sortBy:dn,startsWith:lt,sumBy:he,swap:ci,toArray:Me,toBoolean:li,toEventTargets:$i,toFloat:x,toNode:B,toNodes:g,toNumber:ae,toPx:K,toWindow:$t,toggleClass:j,trigger:C,ucfirst:It,uniqueBy:Go,unwrap:$e,width:Ye,wrapAll:Ve,wrapInner:Ci});function Ms(t){t._data={},t._updates=[...t.$options.update||[]],t._disconnect.push(()=>t._updates=t._data=null)}function Ds(t,e){t._updates.unshift(e)}function Se(t,e="update"){t._connected&&t._updates.length&&(t._updateCount||(t._updateCount=0,requestAnimationFrame(()=>t._updateCount=0)),t._queued||(t._queued=new Set,_i.read(()=>{t._connected&&As(t,t._queued),t._queued=null})),t._updateCount++<20&&t._queued.add(e.type||e))}function As(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(r=>e.has(r)))continue;let s;i&&(s=i.call(t,t._data,e),s&&oe(s)&&ne(t._data,s)),n&&s!==!1&&_i.write(()=>{t._connected&&n.call(t,t._data,e)})}}function Ns(t){t._watches=[];for(const e of t.$options.watch||[])for(const[i,n]of Object.entries(e))Kn(t,n,i);t._initial=!0}function Kn(t,e,i){t._watches.push({name:i,...oe(e)?e:{handler:e}})}function Is(t,e){for(const{name:i,handler:n,immediate:o=!0}of t._watches)(t._initial&&o||at(e,i)&&!fn(e[i],t[i]))&&n.call(t,t[i],e[i]);t._initial=!1}function Fs(t){const{computed:e}=t.$options;if(t._computed={},e)for(const i in e)Qn(t,i,e[i])}const Zn={subtree:!0,childList:!0};function Qn(t,e,i){t._hasComputed=!0,Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:n,$props:o,$el:s}=t;if(!at(n,e)&&(n[e]=(i.get||i).call(t,o,s),i.observe&&t._computedObserver)){const r=i.observe.call(t,o);t._computedObserver.observe(["~","+","-"].includes(r[0])?s.parentElement:s.getRootNode(),Zn)}return n[e]},set(n){const{_computed:o}=t;o[e]=i.set?i.set.call(t,n):n,U(o[e])&&delete o[e]}})}function Hs(t){t._hasComputed&&(Ds(t,{read:()=>Is(t,to(t)),events:["resize","computed"]}),t._computedObserver=Mi(t.$el,()=>Se(t,"computed"),Zn),t._disconnect.push(()=>{t._computedObserver.disconnect(),t._computedObserver=null,to(t)}))}function to(t){const e={...t._computed};return t._computed={},e}function zs(t){for(const e of t.$options.events||[])if(at(e,"handler"))eo(t,e);else for(const i in e)eo(t,{name:i,handler:e[i]})}function eo(t,{name:e,el:i,handler:n,capture:o,passive:s,delegate:r,filter:a,self:l}){a&&!a.call(t,t)||t._disconnect.push(w(i?i.call(t,t):t.$el,e,r==null?void 0:r.call(t,t),n.bind(t),{passive:s,capture:o,self:l}))}function qs(t){for(const e of t.$options.observe||[])Ls(t,e)}function Ls(t,e){let{observe:i,target:n=t.$el,handler:o,options:s,filter:r,args:a}=e;if(r&&!r.call(t,t))return;const l=`_observe${t._disconnect.length}`;G(n)&&!at(t,l)&&Qn(t,l,()=>{const f=n.call(t,t);return q(f)?g(f):f}),o=O(o)?t[o]:o.bind(t),G(s)&&(s=s.call(t,t));const h=at(t,l)?t[l]:n,u=i(h,o,s,a);G(n)&&q(t[l])&&Kn(t,{handler:Ws(u,s),immediate:!1},l),t._disconnect.push(()=>u.disconnect())}function Ws(t,e){return(i,n)=>{for(const o of n)d(i,o)||(t.unobserve?t.unobserve(o):t.observe&&t.disconnect());for(const o of i)(!d(n,o)||!t.unobserve)&&t.observe(o,e)}}const H={};H.events=H.watch=H.observe=H.created=H.beforeConnect=H.connected=H.beforeDisconnect=H.disconnected=H.destroy=Li,H.args=function(t,e){return e!==!1&&Li(e||t)},H.update=function(t,e){return dn(Li(t,G(e)?{read:e}:e),"order")},H.props=function(t,e){if(q(e)){const i={};for(const n of e)i[n]=String;e=i}return H.methods(t,e)},H.computed=H.methods=function(t,e){return e?t?{...t,...e}:e:t},H.i18n=H.data=function(t,e,i){return i?io(t,e,i):e?t?function(n){return io(t,e,n)}:e:t};function io(t,e,i){return H.computed(G(t)?t.call(i,i):t,G(e)?e.call(i,i):e)}function Li(t,e){return t=t&&!q(t)?[t]:t,e?t?t.concat(e):q(e)?e:[e]:t}function js(t,e){return U(e)?t:e}function Ee(t,e,i){const n={};if(G(e)&&(e=e.options),e.extends&&(t=Ee(t,e.extends,i)),e.mixins)for(const s of e.mixins)t=Ee(t,s,i);for(const s in t)o(s);for(const s in e)at(t,s)||o(s);function o(s){n[s]=(H[s]||js)(t[s],e[s],i)}return n}function Wi(t,e=[]){try{return t?lt(t,"{")?JSON.parse(t):e.length&&!d(t,":")?{[e[0]]:t}:t.split(";").reduce((i,n)=>{const[o,s]=n.split(/:(.*)/);return o&&!U(s)&&(i[o.trim()]=s.trim()),i},{}):{}}catch{return{}}}function ji(t,e){return t===Boolean?li(e):t===Number?ae(e):t==="list"?Us(e):t===Object&&O(e)?Wi(e):t?t(e):e}const Rs=/,(?![^(]*\))/;function Us(t){return q(t)?t:O(t)?t.split(Rs).map(e=>pt(e)?ae(e):li(e.trim())):[t]}function Vs(t){const{$options:e,$props:i}=t,n=no(e);ne(i,n);const{computed:o,methods:s}=e;for(let r in i)r in n&&(!o||!at(o,r))&&(!s||!at(s,r))&&(t[r]=i[r])}function no(t){const e={},{args:i=[],props:n={},el:o,id:s}=t;if(!n)return e;for(const a in n){const l=wt(a);let h=Ht(o,l);U(h)||(h=n[a]===Boolean&&h===""?!0:ji(n[a],h),!(l==="target"&&lt(h,"_"))&&(e[a]=h))}const r=Wi(Ht(o,s),i);for(const a in r){const l=ee(a);U(n[l])||(e[l]=ji(n[l],r[a]))}return e}const Ys=X((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[wt(o),`data-${wt(o)}`]).flat();return{attributes:i,filter:n}});function Gs(t){const{$options:e,$props:i}=t,{id:n,props:o,el:s}=e;if(!o)return;const{attributes:r,filter:a}=Ys(n,o),l=new MutationObserver(h=>{const u=no(e);h.some(({attributeName:f})=>{const p=f.replace("data-","");return(p===n?r:[ee(p),ee(f)]).some(y=>!U(u[y])&&u[y]!==i[y])})&&t.$reset()});l.observe(s,{attributes:!0,attributeFilter:a}),t._disconnect.push(()=>l.disconnect())}function Xt(t,e){var i;(i=t.$options[e])==null||i.forEach(n=>n.call(t))}function Ri(t){t._connected||(Vs(t),Xt(t,"beforeConnect"),t._connected=!0,t._disconnect=[],zs(t),Ms(t),Ns(t),qs(t),Gs(t),Hs(t),Xt(t,"connected"),Se(t))}function Ui(t){t._connected&&(Xt(t,"beforeDisconnect"),t._disconnect.forEach(e=>e()),t._disconnect=null,Xt(t,"disconnected"),t._connected=!1)}let Xs=0;function oo(t,e={}){e.data=Zs(e,t.constructor.options),t.$options=Ee(t.constructor.options,e,t),t.$props={},t._uid=Xs++,Js(t),Ks(t),Fs(t),Xt(t,"created"),e.el&&t.$mount(e.el)}function Js(t){const{data:e={}}=t.$options;for(const i in e)t.$props[i]=t[i]=e[i]}function Ks(t){const{methods:e}=t.$options;if(e)for(const i in e)t[i]=e[i].bind(t)}function Zs({data:t={}},{args:e=[],props:i={}}){q(t)&&(t=t.slice(0,e.length).reduce((n,o,s)=>(oe(o)?ne(n,o):n[e[s]]=o,n),{}));for(const n in t)U(t[n])?delete t[n]:i[n]&&(t[n]=ji(i[n],t[n]));return t}const Q=function(t){oo(this,t)};Q.util=Bs,Q.options={},Q.version="3.25.13";const Qs="uk-",Mt="__uikit__",Jt={};function so(t,e){var i,n;const o=Qs+wt(t);if(!e)return Jt[o].options||(Jt[o]=Q.extend(Jt[o])),Jt[o];t=ee(t),Q[t]=(r,a)=>Te(t,r,a);const s=(i=e.options)!=null?i:{...e};return s.id=o,s.name=t,(n=s.install)==null||n.call(s,Q,s,t),Q._initialized&&!s.functional&&requestAnimationFrame(()=>Te(t,`[${o}],[data-${o}]`)),Jt[o]=s}function Te(t,e,i,...n){const o=so(t);return o.options.functional?new o({data:oe(e)?e:[e,i,...n]}):e?F(e).map(s)[0]:s();function s(r){const a=Ze(r,t);if(a)if(i)a.$destroy();else return a;return new o({el:r,data:i})}}function Ce(t){return(t==null?void 0:t[Mt])||{}}function Ze(t,e){return Ce(t)[e]}function tr(t,e){t[Mt]||(t[Mt]={}),t[Mt][e.$options.name]=e}function er(t,e){var i;(i=t[Mt])==null||delete i[e.$options.name],ai(t[Mt])&&delete t[Mt]}function ir(t){kt&&window.MutationObserver&&(document.body?requestAnimationFrame(()=>ro(t)):new MutationObserver((e,i)=>{document.body&&(ro(t),i.disconnect())}).observe(document.documentElement,{childList:!0}))}function ro(t){C(document,"uikit:init",t),document.body&&Pt(document.body,ao),new MutationObserver(nr).observe(document,{subtree:!0,childList:!0,attributes:!0}),t._initialized=!0}function nr(t){var e;for(const{addedNodes:i,removedNodes:n,target:o,attributeName:s}of t){for(const a of i)Pt(a,ao);for(const a of n)Pt(a,or);const r=s&&lo(s);r&&(ct(o,s)?Te(r,o):(e=Ze(o,r))==null||e.$destroy())}}function ao(t){const e=Ce(t);for(const i in e)Ri(e[i]);for(const i of t.getAttributeNames()){const n=lo(i);n&&Te(n,t)}}function or(t){const e=Ce(t);for(const i in e)Ui(e[i])}function lo(t){lt(t,"data-")&&(t=t.slice(5));const e=Jt[t];return e&&(e.options||e).name}function sr(t){t.component=so,t.getComponents=Ce,t.getComponent=Ze,t.update=co,t.use=function(i){if(!i.installed)return i.call(null,this),i.installed=!0,this},t.mixin=function(i,n){n=(O(n)?this.component(n):n)||this,n.options=Ee(n.options,i)},t.extend=function(i){i||(i={});const n=this,o=function(r){oo(this,r)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.options=Ee(n.options,i),o.super=n,o.extend=n.extend,o};let e;Object.defineProperty(t,"container",{get(){return e||document.body},set(i){e=k(i)}})}function co(t,e){t=t?B(t):document.body;for(const i of me(t).reverse())ho(i,e);Pt(t,i=>ho(i,e))}function ho(t,e){const i=Ce(t);for(const n in i)Se(i[n],e)}function rr(t){t.prototype.$mount=function(e){const i=this;tr(e,i),i.$options.el=e,e.isConnected&&Ri(i)},t.prototype.$destroy=function(e=!1){const i=this,{el:n}=i.$options;n&&Ui(i),Xt(i,"destroy"),er(n,i),e&&Ct(i.$el)},t.prototype.$create=Te,t.prototype.$emit=function(e){Se(this,e)},t.prototype.$update=function(e=this.$el,i){co(e,i)},t.prototype.$reset=function(){Ui(this),Ri(this)},t.prototype.$getComponent=Ze,Object.defineProperties(t.prototype,{$el:{get(){return this.$options.el}},$container:Object.getOwnPropertyDescriptor(t,"container")})}let ar=1;function Qe(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${ar++}`}sr(Q),rr(Q);function ft(t){return Pe(ke,t,"resize")}function Dt(t){return Pe(Dn,t)}function _e(t){return Pe(Mi,t)}function Vi(t={}){return Dt({handler:function(e,i){const{targets:n=this.$el,preload:o=5}=t;for(const s of g(G(n)?n(this):n))F('[loading="lazy"]',s).slice(0,o-1).forEach(r=>ue(r,"loading"));for(const s of e.filter(({isIntersecting:r})=>r).map(({target:r})=>r))i.unobserve(s)},...t})}function uo(t){return Pe((e,i)=>Bi(i),t,"resize")}function Yi(t){return Pe((e,i)=>({disconnect:w(cr(e),"scroll",i,{passive:!0})}),t,"scroll")}function fo(t){return{observe(e,i){return{observe:st,unobserve:st,disconnect:w(e,Et,i,{passive:!0})}},handler(e){if(!ht(e))return;const i=gt(e),n="tagName"in e.target?e.target:M(e.target);D(document,`${Tt} ${fe} scroll`,o=>{const{x:s,y:r}=gt(o);(o.type!=="scroll"&&n&&s&&Math.abs(i.x-s)>100||r&&Math.abs(i.y-r)>100)&&setTimeout(()=>{C(n,"swipe"),C(n,`swipe${lr(i.x,i.y,s,r)}`)})})},...t}}function Pe(t,e,i){return{observe:t,handler(){Se(this,i)},...e}}function lr(t,e,i,n){return Math.abs(t-i)>=Math.abs(e-n)?t-i>0?"Left":"Right":e-n>0?"Up":"Down"}function cr(t){return g(t).map(e=>{const{ownerDocument:i}=e,n=Bt(e,!0);return n===i.scrollingElement?i:n})}var it={connected(){E(this.$el,this.$options.id)}};function Kt(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault()}var Zt={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:t})=>!!t[0],hasTransition:({animation:t})=>["slide","reveal"].some(e=>lt(t[0],e))},methods:{async toggleElement(t,e,i){try{return await Promise.all(g(t).map(n=>{const o=Ft(e)?e:!this.isToggled(n);if(!C(n,`before${o?"show":"hide"}`,[this]))return Promise.reject();const s=(G(i)?i:i===!1||!this.hasAnimation?hr:this.hasTransition?ur:fr)(n,o,this),r=o?this.clsEnter:this.clsLeave;E(n,r),C(n,o?"show":"hide",[this]);const a=()=>{var l;A(n,r),C(n,o?"shown":"hidden",[this]),o&&((l=F("[autofocus]",n).find(L))==null||l.focus({preventScroll:!0}))};return s?s.then(a,()=>(A(n,r),Promise.reject())):a()})),!0}catch{return!1}},isToggled(t=this.$el){return t=B(t),m(t,this.clsEnter)?!0:m(t,this.clsLeave)?!1:this.cls?m(t,this.cls.split(" ")[0]):L(t)},_toggle(t,e){if(!t)return;e=!!e;let i;this.cls?(i=d(this.cls," ")||e!==m(t,this.cls),i&&j(t,this.cls,d(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),i&&C(t,"toggled",[e,this])}}};function hr(t,e,{_toggle:i}){return mt.cancel(t),J.cancel(t),i(t,e)}async function ur(t,e,{animation:i,duration:n,velocity:o,transition:s,_toggle:r}){var a;const[l="reveal",h="top"]=((a=i[0])==null?void 0:a.split("-"))||[],u=[["left","right"],["top","bottom"]],f=u[d(u[0],h)?0:1],p=f[1]===h,b=["width","height"][u.indexOf(f)],$=`margin-${f[0]}`,S=`margin-${h}`;let Y=P(t)[b];const nt=J.inProgress(t);await J.cancel(t),e&&r(t,!0);const bt=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",$,S].map(Uo=>[Uo,t.style[Uo]])),rt=P(t),un=x(c(t,$)),Wo=x(c(t,S)),Nt=rt[b]+Wo;!nt&&!e&&(Y+=Wo);const[si]=Ci(t,"<div>");c(si,{boxSizing:"border-box",height:rt.height,width:rt.width,...c(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",S])}),c(t,{padding:0,border:0,minWidth:0,minHeight:0,[S]:0,width:rt.width,height:rt.height,overflow:"hidden",[b]:Y});const jo=Y/Nt;n=(o*Nt+n)*(e?1-jo:jo);const Ro={[b]:e?Nt:0};p&&(c(t,$,Nt-Y+un),Ro[$]=e?un:Nt+un),!p^l==="reveal"&&(c(si,$,-Nt+Y),J.start(si,{[$]:e?0:-Nt},n,s));try{await J.start(t,Ro,n,s)}finally{c(t,bt),$e(si.firstChild),e||r(t,!1)}}function fr(t,e,i){const{animation:n,duration:o,_toggle:s}=i;return e?(s(t,!0),mt.in(t,n[0],o,i.origin)):mt.out(t,n[1]||n[0],o,i.origin).then(()=>s(t,!1))}const N={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var po={mixins:[it,Zt],props:{animation:Boolean,targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,offset:Number},data:{targets:"> *",active:!1,animation:!0,collapsible:!0,multiple:!1,clsOpen:"uk-open",toggle:".uk-accordion-title",content:".uk-accordion-content",offset:0},computed:{items:({targets:t},e)=>F(t,e),toggles({toggle:t}){return this.items.map(e=>k(t,e))},contents({content:t}){return this.items.map(e=>{var i;return((i=e._wrapper)==null?void 0:i.firstElementChild)||k(t,e)})}},watch:{items(t,e){if(e||m(t,this.clsOpen))return;const i=this.active!==!1&&t[Number(this.active)]||!this.collapsible&&t[0];i&&this.toggle(i,!1)},toggles(){this.$emit()},contents(t){for(const e of t){const i=m(this.items.find(n=>n.contains(e)),this.clsOpen);ti(e,!i)}this.$emit()}},observe:Vi(),events:[{name:"click keydown",delegate:({targets:t,$props:e})=>`${t} ${e.toggle}`,handler(t){if(t.type==="keydown"&&t.keyCode!==N.SPACE)return;const e=jt(this.toggles,t.current);if(e===-1)return;Kt(t);const i=pr(t.target);this.toggle(e).finally(i)}},{name:"show hide shown hidden",self:!0,delegate:({targets:t})=>t,handler(){this.$emit()}}],update(){const t=ge(this.items,`.${this.clsOpen}`);for(const e in this.items){const i=this.toggles[e],n=this.contents[e];if(!i||!n)continue;i.id=Qe(this,i),n.id=Qe(this,n);const o=d(t,this.items[e]);_(i,{role:I(i,"a")?"button":null,"aria-controls":n.id,"aria-expanded":o,"aria-disabled":!this.collapsible&&t.length<2&&o}),_(n,{role:"region","aria-labelledby":i.id}),I(n,"ul")&&_(tt(n),"role","presentation")}},methods:{toggle(t,e){t=this.items[yt(t,this.items)];let i=[t];const n=ge(this.items,`.${this.clsOpen}`);return!this.multiple&&!d(n,i[0])&&(i=i.concat(n)),!this.collapsible&&n.length<2&&d(n,t)&&(i=[]),Promise.all(i.map(o=>this.toggleElement(o,!d(n,o),(s,r)=>{if(j(s,this.clsOpen,r),e===!1||!this.animation){ti(k(this.content,s),!r);return}return dr(s,r,this)})))}}};function ti(t,e){t&&(t.hidden=e)}async function dr(t,e,{content:i,duration:n,velocity:o,transition:s}){var r;i=((r=t._wrapper)==null?void 0:r.firstElementChild)||k(i,t),t._wrapper||(t._wrapper=Ve(i,"<div>"));const a=t._wrapper;c(a,"overflow","hidden");const l=x(c(a,"height"));await J.cancel(a),ti(i,!1);const h=he(["marginTop","marginBottom"],f=>c(i,f))+P(i).height,u=l/h;n=h?(o*h+n)*(e?1-u:u):0,c(a,"height",l),await J.start(a,{height:e?h:0},n,s),$e(i),delete t._wrapper,e||ti(i,!0)}function pr(t){const e=Bt(t,!0);let i;return(function n(){i=requestAnimationFrame(()=>{const{top:o}=P(t);o<0&&(e.scrollTop+=o),n()})})(),()=>requestAnimationFrame(()=>cancelAnimationFrame(i))}var gr={mixins:[it,Zt],args:"animation",props:{animation:Boolean,close:String},data:{animation:!0,selClose:".uk-alert-close",duration:150},events:{name:"click",delegate:({selClose:t})=>t,handler(t){Kt(t),this.close()}},methods:{async close(){await this.toggleElement(this.$el,!1,mr),this.$destroy(!0)}}};function mr(t,e,{duration:i,transition:n,velocity:o}){const s=x(c(t,"height"));return c(t,"height",s),J.start(t,{height:0,marginTop:0,marginBottom:0,paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,opacity:0},o*s+i,n)}var go={args:"autoplay",props:{automute:Boolean,autoplay:Boolean,restart:Boolean,hoverTarget:Boolean},data:{automute:!1,autoplay:!0,restart:!1,hoverTarget:!1},beforeConnect(){const t=I(this.$el,"video");this.autoplay==="inview"&&t&&!ct(this.$el,"preload")&&(this.$el.preload="none"),!t&&!ct(this.$el,"allow")&&(this.$el.allow="autoplay"),this.autoplay==="hover"&&(t?this.$el.tabIndex=0:this.autoplay=!0),(this.automute||ct(this.$el,"muted"))&&In(this.$el)},events:[{name:`${Lt} focusin`,el:({hoverTarget:t,$el:e})=>W(t,e)||e,filter:({autoplay:t})=>d(t,"hover"),handler(t){!ht(t)||!vr(this.$el)?Di(this.$el):Gi(this.$el,this.restart)}},{name:`${Wt} focusout`,el:({hoverTarget:t,$el:e})=>W(t,e)||e,filter:({autoplay:t})=>d(t,"hover"),handler(t){ht(t)||Gi(this.$el,this.restart)}}],observe:[Dt({filter:({$el:t})=>t.preload==="none",handler([{target:t}]){t.preload="",this.$reset()}}),Dt({filter:({$el:t,autoplay:e})=>e!=="hover"&&t.preload!=="none",handler([{isIntersecting:t,target:e}]){document.fullscreenElement||(t?this.autoplay&&Di(e):Gi(e,this.restart))},args:{intersecting:!1},options:({$el:t,autoplay:e})=>({root:e==="inview"?null:M(t).closest(":not(a)")})})]};function vr(t){return!t.paused&&!t.ended}function Gi(t,e){Nn(t),e&&I(t,"video")&&(t.currentTime=0)}var br={mixins:[go],props:{width:Number,height:Number},data:{automute:!0},created(){this.useObjectFit=I(this.$el,"img","video")},observe:ft({target:({$el:t})=>mo(t)||M(t),filter:({useObjectFit:t})=>!t}),update:{read(){if(this.useObjectFit)return!1;const{$el:t,width:e=t.clientWidth,height:i=t.clientHeight}=this,n=mo(t)||M(t),o=gn.cover({width:e,height:i},{width:n.offsetWidth,height:n.offsetHeight});return o.width&&o.height?o:!1},write({height:t,width:e}){c(this.$el,{height:t,width:e})},events:["resize"]}};function mo(t){for(;t=M(t);)if(c(t,"position")!=="static")return t}var Xi={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&k(t)}}},wr={props:{pos:String,offset:Boolean,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${St?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=d(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(t,e,i){let n=[this.getPositionOffset(t),this.getShiftOffset(t)];const o=[this.flip&&"flip",this.shift&&"shift"],s={element:[this.inset?this.dir:_n(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const l in s)s[l].reverse();n.reverse(),o.reverse()}const r=vo(t),a=P(t);c(t,{top:-a.height,left:-a.width}),jn(t,e,{attach:s,offset:n,boundary:i,placement:o,viewportOffset:this.getViewportOffset(t)}),r()},getPositionOffset(t=this.$el){return K(this.offset===!1?c(t,"--uk-position-offset"):this.offset,this.axis==="x"?"width":"height",t)*(d(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(t=this.$el){return this.align==="center"?0:K(c(t,"--uk-position-shift-offset"),this.axis==="y"?"width":"height",t)*(d(["left","top"],this.align)?1:-1)},getViewportOffset(t){return K(c(t,"--uk-position-viewport-offset"))}}};function vo(t){const e=Bt(t),{scrollTop:i}=e;return()=>{i!==e.scrollTop&&(e.scrollTop=i)}}let Ji;function bo(t){const e=w(t,"touchstart",o=>{if(o.targetTouches.length!==1||T(o.target,'input[type="range"]'))return;let s=gt(o).y;const r=w(t,"touchmove",a=>{const l=gt(a).y;l!==s&&(s=l,Yt(a.target).some(h=>{if(!t.contains(h))return!1;let{scrollHeight:u,clientHeight:f}=h;return f<u})||a.preventDefault())},{passive:!1});D(t,"scroll touchend touchcancel",r,{capture:!0})},{passive:!0});if(Ji)return e;Ji=!0;const{scrollingElement:i}=document,n={overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",scrollbarGutter:Ye(window)-i.clientWidth?"stable":""};return c(i,n),()=>{Ji=!1,e(),yi(i,n)}}let z;var wo={mixins:[it,Xi,wr,Zt],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryX:Boolean,boundaryY:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,stretch:Boolean,delayShow:Number,delayHide:Number,autoUpdate:Boolean,animateOut:Boolean,bgScroll:Boolean,closeOnScroll:Boolean},data:{mode:["click","hover"],toggle:"- *",boundary:!1,boundaryX:!1,boundaryY:!1,target:!1,targetX:!1,targetY:!1,stretch:!1,delayShow:0,delayHide:800,autoUpdate:!0,animateOut:!1,bgScroll:!0,animation:["uk-animation-fade"],cls:"uk-open",container:!1,closeOnScroll:!1,selClose:".uk-drop-close"},computed:{boundary({boundary:t,boundaryX:e,boundaryY:i},n){return[W(e||t,n)||window,W(i||t,n)||window]},target({target:t,targetX:e,targetY:i},n){return e||(e=t||this.targetEl),i||(i=t||this.targetEl),[e===!0?window:W(e,n),i===!0?window:W(i,n)]}},created(){this.tracker=new Mn},connected(){E(this.$el,"uk-drop"),this.toggle&&!this.targetEl&&(this.targetEl=yr(this)),_(this.targetEl,"aria-expanded",!1),this._style=hi(this.$el.style,["width","height"])},disconnected(){this.isActive()&&(this.hide(!1),z=null),c(this.$el,this._style)},events:[{name:"click",delegate:({selClose:t})=>t,handler(t){Kt(t),this.hide(!1)}},{name:"click",delegate:()=>'a[href*="#"]',handler({defaultPrevented:t,current:e}){const{hash:i}=e;!t&&i&&Rt(e)&&!this.$el.contains(k(i))&&this.hide(!1)}},{name:"beforescroll",handler(){this.hide(!1)}},{name:"toggle",self:!0,handler(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e==null?void 0:e.$el,!1)}},{name:"toggleshow",self:!0,handler(t,e){t.preventDefault(),this.show(e==null?void 0:e.$el)}},{name:"togglehide",self:!0,handler(t){t.preventDefault(),T(this.$el,":focus,:hover")||this.hide()}},{name:`${Lt} focusin`,filter:({mode:t})=>d(t,"hover"),handler(t){ht(t)||this.clearTimers()}},{name:`${Wt} focusout`,filter:({mode:t})=>d(t,"hover"),handler(t){!ht(t)&&t.relatedTarget&&this.hide()}},{name:"toggled",self:!0,handler(t,e){e&&(this.clearTimers(),this.position())}},{name:"show",self:!0,handler(){z=this,this.tracker.init(),_(this.targetEl,"aria-expanded",!0);const t=[xr(this),kr(this),Er(this),this.autoUpdate&&$o(this),this.closeOnScroll&&Sr(this)];D(this.$el,"hide",()=>t.forEach(e=>e&&e()),{self:!0}),this.bgScroll||D(this.$el,"hidden",bo(this.$el),{self:!0})}},{name:"beforehide",self:!0,handler(){this.clearTimers()}},{name:"hide",handler({target:t}){if(this.$el!==t){z=z===null&&this.$el.contains(t)&&this.isToggled()?this:z;return}z=this.isActive()?null:z,this.tracker.cancel(),_(this.targetEl,"aria-expanded",!1)}}],update:{write(){this.isToggled()&&!m(this.$el,this.clsEnter)&&this.position()}},methods:{show(t=this.targetEl,e=!0){if(this.isToggled()&&t&&this.targetEl&&t!==this.targetEl&&this.hide(!1,!1),this.targetEl=t,this.clearTimers(),!this.isActive()){if(z){if(e&&z.isDelaying()){this.showTimer=setTimeout(()=>T(t,":hover")&&this.show(),10);return}let i;for(;z&&i!==z&&!z.$el.contains(this.$el);)i=z,z.hide(!1,!1);e=!1}this.container&&M(this.$el)!==this.container&&et(this.container,this.$el),E(this.$el,this.clsEnter),this.showTimer=setTimeout(()=>this.toggleElement(this.$el,!0),e&&this.delayShow||0)}},hide(t=!0,e=!0){const i=()=>{A(this.$el,this.clsEnter),this.toggleElement(this.$el,!1,this.animateOut&&e)};this.clearTimers(),this.isDelayedHide=t,t&&this.isDelaying()?this.hideTimer=setTimeout(this.hide,50):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null},isActive(){return z===this},isDelaying(){return[this.$el,...F(".uk-drop",this.$el)].some(t=>this.tracker.movesTo(t))},position(){const t=vo(this.$el);A(this.$el,"uk-drop-stack"),c(this.$el,this._style),this.$el.hidden=!0;const e=this.target.map(s=>$r(this.$el,s)),i=this.getViewportOffset(this.$el),n=[[0,["x","width","left","right"]],[1,["y","height","top","bottom"]]];for(const[s,[r,a]]of n)this.axis!==r&&d([r,!0],this.stretch)&&c(this.$el,{[a]:Math.min(v(this.boundary[s])[a],e[s][a]-2*i),[`overflow-${r}`]:"auto"});const o=e[0].width-2*i;this.$el.hidden=!1,c(this.$el,"maxWidth",""),this.$el.offsetWidth>o&&E(this.$el,"uk-drop-stack"),c(this.$el,"maxWidth",o),this.positionAt(this.$el,this.target,this.boundary);for(const[s,[r,a,l,h]]of n)if(this.axis===r&&d([r,!0],this.stretch)){const u=Math.abs(this.getPositionOffset()),f=v(this.target[s]),p=v(this.$el);c(this.$el,{[a]:(f[l]>p[l]?f[this.inset?h:l]-Math.max(v(this.boundary[s])[l],e[s][l]+i):Math.min(v(this.boundary[s])[h],e[s][h]-i)-f[this.inset?l:h])-u,[`overflow-${r}`]:"auto"}),this.positionAt(this.$el,this.target,this.boundary)}t()}}};function $r(t,e){return Z(Gt(e).find(i=>i.contains(t)))}function yr(t){const{$el:e}=t.$create("toggle",W(t.toggle,t.$el),{target:t.$el,mode:t.mode});return e.ariaHasPopup=!0,e}function xr(t){const e=()=>t.$emit(),i=[Bi(e),ke(Gt(t.$el).concat(t.target),e)];return()=>i.map(n=>n.disconnect())}function $o(t,e=()=>t.$emit()){return w([document,...Gt(t.$el)],"scroll",e,{passive:!0})}function kr(t){return w(document,"keydown",e=>{e.keyCode===N.ESC&&t.hide(!1)})}function Sr(t){return $o(t,()=>t.hide(!1))}function Er(t){return w(document,Et,({target:e})=>{t.$el.contains(e)||D(document,`${Tt} ${fe} scroll`,({defaultPrevented:i,type:n,target:o})=>{var s;!i&&n===Tt&&e===o&&!((s=t.targetEl)!=null&&s.contains(e))&&t.hide(!1)},!0)})}var yo={mixins:[it,Xi],props:{align:String,boundary:Boolean,dropbar:Boolean,dropbarAnchor:Boolean,duration:Number,mode:Boolean,offset:Boolean,stretch:Boolean,delayShow:Boolean,delayHide:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,animation:Boolean,animateOut:Boolean,closeOnScroll:Boolean},data:{align:St?"right":"left",clsDrop:"uk-dropdown",clsDropbar:"uk-dropnav-dropbar",boundary:!0,dropbar:!1,dropbarAnchor:!1,flip:!0,delayShow:160,duration:200,container:!1,selNavItem:"> li > a, > ul > li > a"},computed:{dropbarAnchor:({dropbarAnchor:t},e)=>W(t,e)||e,dropbar({dropbar:t}){return t?(t=this._d