UNPKG

uikit

Version:

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

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