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