uikit
Version:
UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.
1 lines • 85.4 kB
JavaScript
/*! UIkit 3.14.1 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(It,qt){typeof exports=="object"&&typeof module<"u"?module.exports=qt():typeof define=="function"&&define.amd?define("uikit",qt):(It=typeof globalThis<"u"?globalThis:It||self,It.UIkit=qt())})(this,function(){"use strict";const{hasOwnProperty:It,toString:qt}=Object.prototype;function bt(t,e){return It.call(t,e)}const Yn=/\B([A-Z])/g,yt=q(t=>t.replace(Yn,"-$1").toLowerCase()),Gn=/-(\w)/g,Et=q(t=>t.replace(Gn,Ai)),ht=q(t=>t.length?Ai(null,t.charAt(0))+t.slice(1):"");function Ai(t,e){return e?e.toUpperCase():""}function V(t,e){return t==null||t.startsWith==null?void 0:t.startsWith(e)}function Yt(t,e){return t==null||t.endsWith==null?void 0:t.endsWith(e)}function p(t,e){return t==null||t.includes==null?void 0:t.includes(e)}function he(t,e){return t==null||t.findIndex==null?void 0:t.findIndex(e)}const{isArray:I,from:Ei}=Array,{assign:Pt}=Object;function U(t){return typeof t=="function"}function ut(t){return t!==null&&typeof t=="object"}function ft(t){return qt.call(t)==="[object Object]"}function $t(t){return ut(t)&&t===t.window}function Gt(t){return Fe(t)===9}function Le(t){return Fe(t)>=1}function Vt(t){return Fe(t)===1}function Fe(t){return!$t(t)&&ut(t)&&t.nodeType}function ue(t){return typeof t=="boolean"}function $(t){return typeof t=="string"}function Re(t){return typeof t=="number"}function dt(t){return Re(t)||$(t)&&!isNaN(t-parseFloat(t))}function je(t){return!(I(t)?t.length:ut(t)?Object.keys(t).length:!1)}function F(t){return t===void 0}function We(t){return ue(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function Xt(t){const e=Number(t);return isNaN(e)?!1:e}function b(t){return parseFloat(t)||0}function A(t){return d(t)[0]}function d(t){return t&&(Le(t)?[t]:Array.from(t).filter(Le))||[]}function _t(t){var e;if($t(t))return t;t=A(t);const i=Gt(t)?t:(e=t)==null?void 0:e.ownerDocument;return i?.defaultView||window}function Ie(t,e){return t===e||ut(t)&&ut(e)&&Object.keys(t).length===Object.keys(e).length&&xt(t,(i,n)=>i===e[n])}function qe(t,e,i){return t.replace(new RegExp(e+"|"+i,"g"),n=>n===e?i:e)}function fe(t){return t[t.length-1]}function xt(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function Ye(t,e){return t.slice().sort((i,n)=>{let{[e]:s=0}=i,{[e]:o=0}=n;return s>o?1:o>s?-1:0})}function Vn(t,e){const i=new Set;return t.filter(n=>{let{[e]:s}=n;return i.has(s)?!1:i.add(s)})}function rt(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=1),Math.min(Math.max(Xt(t)||0,e),i)}function pt(){}function Ge(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return[["bottom","top"],["right","left"]].every(n=>{let[s,o]=n;return Math.min(...e.map(r=>{let{[s]:a}=r;return a}))-Math.max(...e.map(r=>{let{[o]:a}=r;return a}))>0})}function Ve(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Xe(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 Pi(t,e){t={...t};for(const i in t)t=t[i]>e[i]?Xe(t,i,e[i]):t;return t}function Xn(t,e){t=Pi(t,e);for(const i in t)t=t[i]<e[i]?Xe(t,i,e[i]):t;return t}const Je={ratio:Xe,contain:Pi,cover:Xn};function de(t,e,i,n){i===void 0&&(i=0),n===void 0&&(n=!1),e=d(e);const{length:s}=e;return s?(t=dt(t)?Xt(t):t==="next"?i+1:t==="previous"?i-1:e.indexOf(A(t)),n?rt(t,0,s-1):(t%=s,t<0?t+s:t)):-1}function q(t){const e=Object.create(null);return i=>e[i]||(e[i]=t(i))}class _i{constructor(){this.promise=new Promise((e,i)=>{this.reject=i,this.resolve=e})}}function w(t,e,i){if(ut(e)){for(const s in e)w(t,s,e[s]);return}if(F(i)){var n;return(n=A(t))==null?void 0:n.getAttribute(e)}else for(const s of d(t))U(i)&&(i=i.call(s,w(s,e))),i===null?Jt(s,e):s.setAttribute(e,i)}function Ot(t,e){return d(t).some(i=>i.hasAttribute(e))}function Jt(t,e){const i=d(t);for(const n of e.split(" "))for(const s of i)s.removeAttribute(n)}function Bt(t,e){for(const i of[e,"data-"+e])if(Ot(t,i))return w(t,i)}const Jn={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Ke(t){return d(t).some(e=>Jn[e.tagName.toLowerCase()])}function O(t){return d(t).some(e=>e.offsetWidth||e.offsetHeight||e.getClientRects().length)}const pe="input,select,textarea,button";function Oi(t){return d(t).some(e=>P(e,pe))}const ge=pe+",a[href],[tabindex]";function Ze(t){return P(t,ge)}function S(t){var e;return(e=A(t))==null?void 0:e.parentElement}function Kt(t,e){return d(t).filter(i=>P(i,e))}function P(t,e){return d(t).some(i=>i.matches(e))}function X(t,e){return V(e,">")&&(e=e.slice(1)),Vt(t)?t.closest(e):d(t).map(i=>X(i,e)).filter(Boolean)}function B(t,e){return $(e)?P(t,e)||!!X(t,e):t===e||A(e).contains(A(t))}function Zt(t,e){const i=[];for(;t=S(t);)(!e||P(t,e))&&i.push(t);return i}function at(t,e){t=A(t);const i=t?d(t.children):[];return e?Kt(i,e):i}function Qe(t,e){return e?d(t).indexOf(A(e)):at(S(t)).indexOf(t)}function kt(t,e){return Ue(t,Ni(t,e))}function Qt(t,e){return Ut(t,Ni(t,e))}function Ue(t,e){return A(Mi(t,e,"querySelector"))}function Ut(t,e){return d(Mi(t,e,"querySelectorAll"))}const Kn=/(^|[^\\],)\s*[!>+~-]/,Bi=q(t=>t.match(Kn));function Ni(t,e){return e===void 0&&(e=document),$(t)&&Bi(t)||Gt(e)?e:e.ownerDocument}const Zn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Qn=q(t=>t.replace(Zn,"$1 *"));function Mi(t,e,i){if(e===void 0&&(e=document),!t||!$(t))return t;if(t=Qn(t),Bi(t)){const n=ts(t);t="";for(let s of n){let o=e;if(s[0]==="!"){const r=s.substr(1).trim().split(" ");if(o=X(S(e),r[0]),s=r.slice(1).join(" ").trim(),!s.length&&n.length===1)return o}if(s[0]==="-"){const r=s.substr(1).trim().split(" "),a=(o||e).previousElementSibling;o=P(a,s.substr(1))?a:null,s=r.slice(1).join(" ")}o&&(t+=(t?",":"")+es(o)+" "+s)}e=document}try{return e[i](t)}catch{return null}}const Un=/.*?[^\\](?:,|$)/g,ts=q(t=>t.match(Un).map(e=>e.replace(/,$/,"").trim()));function es(t){const e=[];for(;t.parentNode;){const i=w(t,"id");if(i){e.unshift("#"+ti(i));break}else{let{tagName:n}=t;n!=="HTML"&&(n+=":nth-child("+(Qe(t)+1)+")"),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function ti(t){return $(t)?CSS.escape(t):""}function C(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];let[n,s,o,r,a=!1]=ei(e);r.length>1&&(r=ns(r)),a!=null&&a.self&&(r=ss(r)),o&&(r=is(o,r));for(const l of s)for(const h of n)h.addEventListener(l,r,a);return()=>Di(n,s,r,a)}function Di(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];let[n,s,,o,r=!1]=ei(e);for(const a of s)for(const l of n)l.removeEventListener(a,o,r)}function E(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];const[n,s,o,r,a=!1,l]=ei(e),h=C(n,s,o,u=>{const f=!l||l(u);f&&(h(),r(u,f))},a);return h}function x(t,e,i){return ii(t).every(n=>n.dispatchEvent(me(e,!0,!0,i)))}function me(t,e,i,n){return e===void 0&&(e=!0),i===void 0&&(i=!1),$(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:n})),t}function ei(t){return t[0]=ii(t[0]),$(t[1])&&(t[1]=t[1].split(" ")),U(t[2])&&t.splice(2,0,!1),t}function is(t,e){return i=>{const n=t[0]===">"?Ut(t,i.currentTarget).reverse().filter(s=>B(i.target,s))[0]:X(i.target,t);n&&(i.current=n,e.call(this,i))}}function ns(t){return e=>I(e.detail)?t(e,...e.detail):t(e)}function ss(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function zi(t){return t&&"addEventListener"in t}function os(t){return zi(t)?t:A(t)}function ii(t){return I(t)?t.map(os).filter(Boolean):$(t)?Ut(t):zi(t)?[t]:d(t)}function Nt(t){return t.pointerType==="touch"||!!t.touches}function ve(t){var e,i;const{clientX:n,clientY:s}=((e=t.touches)==null?void 0:e[0])||((i=t.changedTouches)==null?void 0:i[0])||t;return{x:n,y:s}}function rs(t,e){const i={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:pt,responseType:"",...e};return Promise.resolve().then(()=>i.beforeSend(i)).then(()=>as(t,i))}function as(t,e){return new Promise((i,n)=>{const{xhr:s}=e;for(const o in e)if(o in s)try{s[o]=e[o]}catch{}s.open(e.method.toUpperCase(),t);for(const o in e.headers)s.setRequestHeader(o,e.headers[o]);C(s,"load",()=>{s.status===0||s.status>=200&&s.status<300||s.status===304?i(s):n(Pt(Error(s.statusText),{xhr:s,status:s.status}))}),C(s,"error",()=>n(Pt(Error("Network Error"),{xhr:s}))),C(s,"timeout",()=>n(Pt(Error("Network Timeout"),{xhr:s}))),s.send(e.data)})}function ls(t,e,i){return new Promise((n,s)=>{const o=new Image;o.onerror=r=>{s(r)},o.onload=()=>{n(o)},i&&(o.sizes=i),e&&(o.srcset=e),o.src=t})}const cs={"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){n===void 0&&(n="");const s=d(t);for(const o of s)if($(e)){if(e=ni(e),F(i))return getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,dt(i)&&!cs[e]?i+"px":i||Re(i)?i:"",n)}else if(I(e)){const r={};for(const a of e)r[a]=c(o,a);return r}else ut(e)&&(n=i,xt(e,(r,a)=>c(o,a,r,n)));return s[0]}const hs=/^\s*(["'])?(.*?)\1\s*$/;function we(t,e){return e===void 0&&(e=document.documentElement),c(e,"--uk-"+t).replace(hs,"$2")}const ni=q(t=>us(t)),Hi=["webkit","moz"];function us(t){if(t[0]==="-")return t;t=yt(t);const{style:e}=document.documentElement;if(t in e)return t;let i=Hi.length,n;for(;i--;)if(n="-"+Hi[i]+"-"+t,n in e)return n}function y(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];Li(t,i,"add")}function H(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];Li(t,i,"remove")}function si(t,e){w(t,"class",i=>(i||"").replace(new RegExp("\\b"+e+"\\b","g"),""))}function oi(t){!(arguments.length<=1)&&arguments[1]&&H(t,arguments.length<=1?void 0:arguments[1]),!(arguments.length<=2)&&arguments[2]&&y(t,arguments.length<=2?void 0:arguments[2])}function m(t,e){return[e]=ri(e),!!e&&d(t).some(i=>i.classList.contains(e))}function R(t,e,i){const n=ri(e);F(i)||(i=!!i);for(const s of d(t))for(const o of n)s.classList.toggle(o,i)}function Li(t,e,i){e=e.reduce((n,s)=>n.concat(ri(s)),[]);for(const n of d(t))n.classList[i](...e)}function ri(t){return String(t).split(/\s|,/).filter(Boolean)}function Fi(t,e,i,n){return i===void 0&&(i=400),n===void 0&&(n="linear"),Promise.all(d(t).map(s=>new Promise((o,r)=>{for(const l in e){const h=c(s,l);h===""&&c(s,l,h)}const a=setTimeout(()=>x(s,"transitionend"),i);E(s,"transitionend transitioncanceled",l=>{let{type:h}=l;clearTimeout(a),H(s,"uk-transition"),c(s,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),h==="transitioncanceled"?r():o(s)},{self:!0}),y(s,"uk-transition"),c(s,{transitionProperty:Object.keys(e).map(ni).join(","),transitionDuration:i+"ms",transitionTimingFunction:n,...e})})))}const gt={start:Fi,stop(t){return x(t,"transitionend"),Promise.resolve()},cancel(t){x(t,"transitioncanceled")},inProgress(t){return m(t,"uk-transition")}},te="uk-animation-";function ai(t,e,i,n,s){return i===void 0&&(i=200),Promise.all(d(t).map(o=>new Promise((r,a)=>{x(o,"animationcanceled");const l=setTimeout(()=>x(o,"animationend"),i);E(o,"animationend animationcanceled",h=>{let{type:u}=h;clearTimeout(l),u==="animationcanceled"?a():r(o),c(o,"animationDuration",""),si(o,te+"\\S*")},{self:!0}),c(o,"animationDuration",i+"ms"),y(o,e,te+(s?"leave":"enter")),V(e,te)&&(n&&y(o,"uk-transform-origin-"+n),s&&y(o,te+"reverse"))})))}const fs=new RegExp(te+"(enter|leave)"),tt={in:ai,out(t,e,i,n){return ai(t,e,i,n,!0)},inProgress(t){return fs.test(w(t,"class"))},cancel(t){x(t,"animationcanceled")}},Tt={width:["left","right"],height:["top","bottom"]};function et(t){const e=Vt(t)?A(t).getBoundingClientRect():{height:N(t),width:ie(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){const i=et(t);if(t){const{scrollY:s,scrollX:o}=_t(t),r={height:s,width:o};for(const a in Tt)for(const l of Tt[a])i[l]+=r[a]}if(!e)return i;const n=c(t,"position");xt(c(t,["left","top"]),(s,o)=>c(t,o,e[o]-i[o]+b(n==="absolute"&&s==="auto"?Ri(t)[o]:s)))}function Ri(t){let{top:e,left:i}=v(t);const{ownerDocument:{body:n,documentElement:s},offsetParent:o}=A(t);let r=o||s;for(;r&&(r===n||r===s)&&c(r,"position")==="static";)r=r.parentNode;if(Vt(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 ee(t){const e=[0,0];t=A(t);do if(e[0]+=t.offsetTop,e[1]+=t.offsetLeft,c(t,"position")==="fixed"){const i=_t(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}while(t=t.offsetParent);return e}const N=ji("height"),ie=ji("width");function ji(t){const e=ht(t);return(i,n)=>{if(F(n)){if($t(i))return i["inner"+e];if(Gt(i)){const s=i.documentElement;return Math.max(s["offset"+e],s["scroll"+e])}return i=A(i),n=c(i,t),n=n==="auto"?i["offset"+e]:b(n)||0,n-ne(i,t)}else return c(i,t,!n&&n!==0?"":+n+ne(i,t)+"px")}}function ne(t,e,i){return i===void 0&&(i="border-box"),c(t,"boxSizing")===i?Tt[e].map(ht).reduce((n,s)=>n+b(c(t,"padding"+s))+b(c(t,"border"+s+"Width")),0):0}function Wi(t){for(const e in Tt)for(const i in Tt[e])if(Tt[e][i]===t)return Tt[e][1-i];return t}function J(t,e,i,n){return e===void 0&&(e="width"),i===void 0&&(i=window),n===void 0&&(n=!1),$(t)?ps(t).reduce((s,o)=>{const r=ms(o);return r&&(o=vs(r==="vh"?N(_t(i)):r==="vw"?ie(_t(i)):n?i["offset"+ht(e)]:et(i)[e],o)),s+b(o)},0):b(t)}const ds=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,ps=q(t=>t.toString().replace(/\s/g,"").match(ds)||[]),gs=/(?:v[hw]|%)$/,ms=q(t=>(t.match(gs)||[])[0]);function vs(t,e){return t*b(e)/100}function li(t){if(document.readyState!=="loading"){t();return}E(document,"DOMContentLoaded",t)}function it(t,e){var i;return(t==null||(i=t.tagName)==null?void 0:i.toLowerCase())===e.toLowerCase()}function ws(t){return ci(t,"")}function be(t,e){return F(e)?g(t).innerHTML:ci(t,e)}const ci=se("replaceChildren"),bs=se("prepend"),lt=se("append"),Ii=se("before"),ye=se("after");function se(t){return function(e,i){var n;const s=d($(i)?Dt(i):i);return(n=g(e))==null||n[t](...s),Yi(s)}}function Mt(t){d(t).forEach(e=>e.remove())}function $e(t,e){for(e=A(Ii(t,e));e.firstChild;)e=e.firstChild;return lt(e,t),e}function qi(t,e){return d(d(t).map(i=>i.hasChildNodes()?$e(d(i.childNodes),e):lt(i,e)))}function xe(t){d(t).map(S).filter((e,i,n)=>n.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const ys=/^\s*<(\w+|!)[^>]*>/,$s=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Dt(t){const e=$s.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("div");return ys.test(t)?i.insertAdjacentHTML("beforeend",t.trim()):i.textContent=t,Yi(i.childNodes)}function Yi(t){return t.length>1?t:t[0]}function mt(t,e){if(!!Vt(t))for(e(t),t=t.firstElementChild;t;){const i=t.nextElementSibling;mt(t,e),t=i}}function g(t,e){return Gi(t)?A(Dt(t)):Ue(t,e)}function M(t,e){return Gi(t)?d(Dt(t)):Ut(t,e)}function Gi(t){return $(t)&&V(t.trim(),"<")}const St=typeof window<"u",oe=St&&w(document.documentElement,"dir")==="rtl",zt=St&&"ontouchstart"in window,Ht=St&&window.PointerEvent,Lt=Ht?"pointerdown":zt?"touchstart":"mousedown",xs=Ht?"pointermove":zt?"touchmove":"mousemove",Ft=Ht?"pointerup":zt?"touchend":"mouseup",ke=Ht?"pointerenter":zt?"":"mouseenter",Te=Ht?"pointerleave":zt?"":"mouseleave",Se=Ht?"pointercancel":"touchcancel",D={reads:[],writes:[],read(t){return this.reads.push(t),ui(),t},write(t){return this.writes.push(t),ui(),t},clear(t){Xi(this.reads,t),Xi(this.writes,t)},flush:hi};function hi(t){Vi(D.reads),Vi(D.writes.splice(0)),D.scheduled=!1,(D.reads.length||D.writes.length)&&ui(t+1)}const ks=4;function ui(t){D.scheduled||(D.scheduled=!0,t&&t<ks?Promise.resolve().then(()=>hi(t)):requestAnimationFrame(()=>hi(1)))}function Vi(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function Xi(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}function fi(){}fi.prototype={positions:[],init(){this.positions=[];let t;this.unbind=C(document,"mousemove",e=>t=ve(e)),this.interval=setInterval(()=>{!t||(this.positions.push(t),this.positions.length>5&&this.positions.shift())},50)},cancel(){var t;(t=this.unbind)==null||t.call(this),this.interval&&clearInterval(this.interval)},movesTo(t){if(this.positions.length<2)return!1;const e=t.getBoundingClientRect(),{left:i,right:n,top:s,bottom:o}=e,[r]=this.positions,a=fe(this.positions),l=[r,a];return Ve(a,e)?!1:[[{x:i,y:s},{x:n,y:o}],[{x:i,y:o},{x:n,y:s}]].some(u=>{const f=Ts(l,u);return f&&Ve(f,e)})}};function Ts(t,e){let[{x:i,y:n},{x:s,y:o}]=t,[{x:r,y:a},{x:l,y:h}]=e;const u=(h-a)*(s-i)-(l-r)*(o-n);if(u===0)return!1;const f=((l-r)*(n-a)-(h-a)*(i-r))/u;return f<0?!1:{x:i+f*(s-i),y:n+f*(o-n)}}function Rt(t,e,i,n){n===void 0&&(n=!0);const s=new IntersectionObserver(n?(o,r)=>{o.some(a=>a.isIntersecting)&&e(o,r)}:e,i);for(const o of d(t))s.observe(o);return s}const Ss=St&&window.ResizeObserver;function di(t,e,i){return i===void 0&&(i={box:"border-box"}),Ss?Ki(ResizeObserver,t,e,i):(Cs(),re.add(e),{disconnect(){re.delete(e)}})}let re;function Cs(){if(re)return;re=new Set;let t;const e=()=>{if(!t){t=!0,D.read(()=>t=!1);for(const i of re)i()}};C(window,"load resize",e),C(document,"loadedmetadata load",e,!0)}function Ji(t,e,i){return Ki(MutationObserver,t,e,i)}function Ki(t,e,i,n){const s=new t(i);for(const o of d(e))s.observe(o,n);return s}const z={};z.events=z.created=z.beforeConnect=z.connected=z.beforeDisconnect=z.disconnected=z.destroy=pi,z.args=function(t,e){return e!==!1&&pi(e||t)},z.update=function(t,e){return Ye(pi(t,U(e)?{read:e}:e),"order")},z.props=function(t,e){if(I(e)){const i={};for(const n of e)i[n]=String;e=i}return z.methods(t,e)},z.computed=z.methods=function(t,e){return e?t?{...t,...e}:e:t},z.data=function(t,e,i){return i?Zi(t,e,i):e?t?function(n){return Zi(t,e,n)}:e:t};function Zi(t,e,i){return z.computed(U(t)?t.call(i,i):t,U(e)?e.call(i,i):e)}function pi(t,e){return t=t&&!I(t)?[t]:t,e?t?t.concat(e):I(e)?e:[e]:t}function As(t,e){return F(e)?t:e}function jt(t,e,i){const n={};if(U(e)&&(e=e.options),e.extends&&(t=jt(t,e.extends,i)),e.mixins)for(const o of e.mixins)t=jt(t,o,i);for(const o in t)s(o);for(const o in e)bt(t,o)||s(o);function s(o){n[o]=(z[o]||As)(t[o],e[o],i)}return n}function gi(t,e){e===void 0&&(e=[]);try{return t?V(t,"{")?JSON.parse(t):e.length&&!p(t,":")?{[e[0]]:t}:t.split(";").reduce((i,n)=>{const[s,o]=n.split(/:(.*)/);return s&&!F(o)&&(i[s.trim()]=o.trim()),i},{}):{}}catch{return{}}}function Qi(t){if(Ae(t)&&mi(t,{func:"playVideo",method:"play"}),Ce(t))try{t.play().catch(pt)}catch{}}function Ui(t){Ae(t)&&mi(t,{func:"pauseVideo",method:"pause"}),Ce(t)&&t.pause()}function tn(t){Ae(t)&&mi(t,{func:"mute",method:"setVolume",value:0}),Ce(t)&&(t.muted=!0)}function en(t){return Ce(t)||Ae(t)}function Ce(t){return it(t,"video")}function Ae(t){return it(t,"iframe")&&(nn(t)||sn(t))}function nn(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function sn(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function mi(t,e){await Ps(t),on(t,e)}function on(t,e){try{t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}catch{}}const vi="_ukPlayer";let Es=0;function Ps(t){if(t[vi])return t[vi];const e=nn(t),i=sn(t),n=++Es;let s;return t[vi]=new Promise(o=>{e&&E(t,"load",()=>{const r=()=>on(t,{event:"listening",id:n});s=setInterval(r,100),r()}),E(window,"message",o,!1,r=>{let{data:a}=r;try{return a=JSON.parse(a),a&&(e&&a.id===n&&a.event==="onReady"||i&&Number(a.player_id)===n)}catch{}}),t.src=""+t.src+(p(t.src,"?")?"&":"?")+(e?"enablejsapi=1":"api=1&player_id="+n)}).then(()=>clearInterval(s))}function wi(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=0),O(t)?Ge(...vt(t).map(n=>{const{top:s,left:o,bottom:r,right:a}=nt(n);return{top:s-e,left:o-i,bottom:r+e,right:a+i}}).concat(v(t))):!1}function ae(t,e){if($t(t)||Gt(t)?t=le(t):t=A(t),F(e))return t.scrollTop;t.scrollTop=e}function bi(t,e){let{offset:i=0}=e===void 0?{}:e;const n=O(t)?vt(t):[];return n.reduce((a,l,h)=>{const{scrollTop:u,scrollHeight:f,offsetHeight:k}=l,L=nt(l),G=f-L.height,{height:T,top:ot}=n[h-1]?nt(n[h-1]):v(t);let Z=Math.ceil(ot-L.top-i+u);return i>0&&k<T+i?Z+=i:i=0,Z>G?(i-=Z-G,Z=G):Z<0&&(i-=Z,Z=0),()=>s(l,Z-u).then(a)},()=>Promise.resolve())();function s(a,l){return new Promise(h=>{const u=a.scrollTop,f=o(Math.abs(l)),k=Date.now();(function L(){const G=r(rt((Date.now()-k)/f));ae(a,u+l*G),G===1?h():requestAnimationFrame(L)})()})}function o(a){return 40*Math.pow(a,.375)}function r(a){return .5*(1-Math.cos(Math.PI*a))}}function rn(t,e,i){if(e===void 0&&(e=0),i===void 0&&(i=0),!O(t))return 0;const[n]=vt(t,/auto|scroll/,!0),{scrollHeight:s,scrollTop:o}=n,{height:r}=nt(n),a=s-r,l=ee(t)[0]-ee(n)[0],h=Math.max(0,l-r+e),u=Math.min(a,l+t.offsetHeight-i);return rt((o-h)/(u-h))}function vt(t,e,i){e===void 0&&(e=/auto|scroll|hidden/),i===void 0&&(i=!1);const n=le(t);let s=Zt(t).reverse();s=s.slice(s.indexOf(n)+1);const o=he(s,r=>c(r,"position")==="fixed");return~o&&(s=s.slice(o)),[n].concat(s.filter(r=>e.test(c(r,"overflow"))&&(!i||r.scrollHeight>nt(r).height))).reverse()}function nt(t){let e=an(t);e===le(e)&&(e=document.documentElement);let i=v(e);for(let[n,s,o,r]of[["width","x","left","right"],["height","y","top","bottom"]])$t(an(e))||(i[o]+=b(c(e,"border"+ht(o)+"Width"))),i[n]=i[s]=($t(e)?le(e):e)["client"+ht(n)],i[r]=i[n]+i[o];return i}function le(t){const{document:{scrollingElement:e}}=_t(t);return e}function an(t){return t===le(t)?window:t}const ct=[["width","x","left","right"],["height","y","top","bottom"]];function ln(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i};const n=i.flip?hn(t,e,i):cn(t,e,i);v(t,n)}function cn(t,e,i){let{attach:n,offset:s}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i};const o=v(t),r=v(e);for(const[a,[l,h,u,f]]of Object.entries(ct))o[u]=o[h]=r[u]+un(n.target[a],f,r[l])-un(n.element[a],f,o[l])+ +s[a],o[f]=o[u]+o[l];return o}function hn(t,e,i){const n=cn(t,e,i),s=v(e);let{flip:o,attach:{element:r,target:a},offset:l,boundary:h,viewport:u,viewportPadding:f}=i,k=vt(t);h===e&&(k=k.filter(T=>T!==h));const[L]=k;k.push(u);const G={...n};for(const[T,[ot,Z,W,Q]]of Object.entries(ct)){if(o!==!0&&!p(o,Z))continue;const Wn=!dn(n,s,T)&&dn(n,s,1-T);u=fn(...k.filter(Boolean).map(nt)),f&&(u[W]+=f,u[Q]-=f),h&&!Wn&&n[ot]<=v(h)[ot]&&(u=fn(u,v(h)));const In=n[W]>=u[W],qn=n[Q]<=u[Q];if(In&&qn)continue;let Wt;if(Wn){if(r[T]===Q&&In||r[T]===W&&qn)continue;if(Wt=(r[T]===W?-n[ot]:r[T]===Q?n[ot]:0)+(a[T]===W?s[ot]:a[T]===Q?-s[ot]:0)-l[T]*2,!yi({...n,[W]:n[W]+Wt,[Q]:n[Q]+Wt},L,T)){if(yi(n,L,T))continue;if(i.recursion)return!1;const Ci=hn(t,e,{...i,attach:{element:r.map(pn).reverse(),target:a.map(pn).reverse()},offset:l.reverse(),flip:o===!0?o:[...o,ct[1-T][1]],recursion:!0});if(Ci&&yi(Ci,L,1-T))return Ci}}else Wt=rt(rt(n[W],u[W],u[Q]-n[ot]),s[W]-n[ot]+l[T],s[Q]-l[T])-n[W];G[W]=n[Z]=n[W]+Wt,G[Q]+=Wt}return G}function un(t,e,i){return t==="center"?i/2:t===e?i:0}function fn(){let t={};for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];for(const s of i)for(const[,,o,r]of ct)t[o]=Math.max(t[o]||0,s[o]),t[r]=Math.min(...[t[r],s[r]].filter(Boolean));return t}function yi(t,e,i){const n=nt(e),[s,,o,r]=ct[i];return n[o]-=e["scroll"+ht(o)],n[r]=n[o]+e["scroll"+ht(s)],t[o]>=n[o]&&t[r]<=n[r]}function dn(t,e,i){const[,,n,s]=ct[i];return t[s]>e[n]&&e[s]>t[n]}function pn(t){for(let e=0;e<ct.length;e++){const i=ct[e].indexOf(t);if(~i)return ct[1-e][i%2+2]}}var _s=Object.freeze({__proto__:null,ajax:rs,getImage:ls,transition:Fi,Transition:gt,animate:ai,Animation:tt,attr:w,hasAttr:Ot,removeAttr:Jt,data:Bt,addClass:y,removeClass:H,removeClasses:si,replaceClass:oi,hasClass:m,toggleClass:R,dimensions:et,offset:v,position:Ri,offsetPosition:ee,height:N,width:ie,boxModelAdjust:ne,flipPosition:Wi,toPx:J,ready:li,isTag:it,empty:ws,html:be,replaceChildren:ci,prepend:bs,append:lt,before:Ii,after:ye,remove:Mt,wrapAll:$e,wrapInner:qi,unwrap:xe,fragment:Dt,apply:mt,$:g,$$:M,inBrowser:St,isRtl:oe,hasTouch:zt,pointerDown:Lt,pointerMove:xs,pointerUp:Ft,pointerEnter:ke,pointerLeave:Te,pointerCancel:Se,on:C,off:Di,once:E,trigger:x,createEvent:me,toEventTargets:ii,isTouch:Nt,getEventPos:ve,fastdom:D,isVoidElement:Ke,isVisible:O,selInput:pe,isInput:Oi,selFocusable:ge,isFocusable:Ze,parent:S,filter:Kt,matches:P,closest:X,within:B,parents:Zt,children:at,index:Qe,hasOwn:bt,hyphenate:yt,camelize:Et,ucfirst:ht,startsWith:V,endsWith:Yt,includes:p,findIndex:he,isArray:I,toArray:Ei,assign:Pt,isFunction:U,isObject:ut,isPlainObject:ft,isWindow:$t,isDocument:Gt,isNode:Le,isElement:Vt,isBoolean:ue,isString:$,isNumber:Re,isNumeric:dt,isEmpty:je,isUndefined:F,toBoolean:We,toNumber:Xt,toFloat:b,toNode:A,toNodes:d,toWindow:_t,isEqual:Ie,swap:qe,last:fe,each:xt,sortBy:Ye,uniqueBy:Vn,clamp:rt,noop:pt,intersectRect:Ge,pointInRect:Ve,Dimensions:Je,getIndex:de,memoize:q,Deferred:_i,MouseTracker:fi,observeIntersection:Rt,observeResize:di,observeMutation:Ji,mergeOptions:jt,parseOptions:gi,play:Qi,pause:Ui,mute:tn,isVideo:en,positionAt:ln,query:kt,queryAll:Qt,find:Ue,findAll:Ut,escape:ti,css:c,getCssVar:we,propName:ni,isInView:wi,scrollTop:ae,scrollIntoView:bi,scrolledOver:rn,scrollParents:vt,offsetViewport:nt});function Os(t){const e=t.data;t.use=function(s){if(!s.installed)return s.call(null,this),s.installed=!0,this},t.mixin=function(s,o){o=($(o)?t.component(o):o)||this,o.options=jt(o.options,s)},t.extend=function(s){s=s||{};const o=this,r=function(l){this._init(l)};return r.prototype=Object.create(o.prototype),r.prototype.constructor=r,r.options=jt(o.options,s),r.super=o,r.extend=o.extend,r},t.update=function(s,o){s=s?A(s):document.body;for(const r of Zt(s).reverse())n(r[e],o);mt(s,r=>n(r[e],o))};let i;Object.defineProperty(t,"container",{get(){return i||document.body},set(s){i=g(s)}});function n(s,o){if(!!s)for(const r in s)s[r]._connected&&s[r]._callUpdate(o)}}function Bs(t){t.prototype._callHook=function(n){var s;(s=this.$options[n])==null||s.forEach(o=>o.call(this))},t.prototype._callConnected=function(){this._connected||(this._data={},this._computed={},this._initProps(),this._callHook("beforeConnect"),this._connected=!0,this._initEvents(),this._initObservers(),this._callHook("connected"),this._callUpdate())},t.prototype._callDisconnected=function(){!this._connected||(this._callHook("beforeDisconnect"),this._disconnectObservers(),this._unbindEvents(),this._callHook("disconnected"),this._connected=!1,delete this._watch)},t.prototype._callUpdate=function(n){n===void 0&&(n="update"),this._connected&&((n==="update"||n==="resize")&&this._callWatches(),this.$options.update&&(this._updates||(this._updates=new Set,D.read(()=>{this._connected&&e.call(this,this._updates),delete this._updates})),this._updates.add(n.type||n)))},t.prototype._callWatches=function(){if(this._watch)return;const n=!bt(this,"_watch");this._watch=D.read(()=>{this._connected&&i.call(this,n),this._watch=null})};function e(n){for(const{read:s,write:o,events:r=[]}of this.$options.update){if(!n.has("update")&&!r.some(l=>n.has(l)))continue;let a;s&&(a=s.call(this,this._data,n),a&&ft(a)&&Pt(this._data,a)),o&&a!==!1&&D.write(()=>o.call(this,this._data,n))}}function i(n){const{$options:{computed:s}}=this,o={...this._computed};this._computed={};for(const r in s){const{watch:a,immediate:l}=s[r];a&&(n&&l||bt(o,r)&&!Ie(o[r],this[r]))&&a.call(this,this[r],o[r])}}}function Ns(t){let e=0;t.prototype._init=function(i){i=i||{},i.data=Hs(i,this.constructor.options),this.$options=jt(this.constructor.options,i,this),this.$el=null,this.$props={},this._uid=e++,this._initData(),this._initMethods(),this._initComputeds(),this._callHook("created"),i.el&&this.$mount(i.el)},t.prototype._initData=function(){const{data:i={}}=this.$options;for(const n in i)this.$props[n]=this[n]=i[n]},t.prototype._initMethods=function(){const{methods:i}=this.$options;if(i)for(const n in i)this[n]=i[n].bind(this)},t.prototype._initComputeds=function(){const{computed:i}=this.$options;if(this._computed={},i)for(const n in i)Ms(this,n,i[n])},t.prototype._initProps=function(i){let n;i=i||gn(this.$options,this.$name);for(n in i)F(i[n])||(this.$props[n]=i[n]);const s=[this.$options.computed,this.$options.methods];for(n in this.$props)n in i&&Ds(s,n)&&(this[n]=this.$props[n])},t.prototype._initEvents=function(){this._events=[];for(const i of this.$options.events||[])if(bt(i,"handler"))Ee(this,i);else for(const n in i)Ee(this,i[n],n)},t.prototype._unbindEvents=function(){this._events.forEach(i=>i()),delete this._events},t.prototype._initObservers=function(){this._observers=[Fs(this)],this.$options.computed&&this.registerObserver(Ls(this))},t.prototype.registerObserver=function(i){this._observers.push(i)},t.prototype._disconnectObservers=function(){this._observers.forEach(i=>i?.disconnect())}}function gn(t,e){const i={},{args:n=[],props:s={},el:o}=t;if(!s)return i;for(const a in s){const l=yt(a);let h=Bt(o,l);F(h)||(h=s[a]===Boolean&&h===""?!0:$i(s[a],h),!(l==="target"&&(!h||V(h,"_")))&&(i[a]=h))}const r=gi(Bt(o,e),n);for(const a in r){const l=Et(a);s[l]!==void 0&&(i[l]=$i(s[l],r[a]))}return i}function Ms(t,e,i){Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:n,$props:s,$el:o}=t;return bt(n,e)||(n[e]=(i.get||i).call(t,s,o)),n[e]},set(n){const{_computed:s}=t;s[e]=i.set?i.set.call(t,n):n,F(s[e])&&delete s[e]}})}function Ee(t,e,i){ft(e)||(e={name:i,handler:e});let{name:n,el:s,handler:o,capture:r,passive:a,delegate:l,filter:h,self:u}=e;if(s=U(s)?s.call(t):s||t.$el,I(s)){s.forEach(f=>Ee(t,{...e,el:f},i));return}!s||h&&!h.call(t)||t._events.push(C(s,n,l?$(l)?l:l.call(t):null,$(o)?t[o]:o.bind(t),{passive:a,capture:r,self:u}))}function Ds(t,e){return t.every(i=>!i||!bt(i,e))}function $i(t,e){return t===Boolean?We(e):t===Number?Xt(e):t==="list"?zs(e):t?t(e):e}function zs(t){return I(t)?t:$(t)?t.split(/,(?![^(]*\))/).map(e=>dt(e)?Xt(e):We(e.trim())):[t]}function Hs(t,e){let{data:i={}}=t,{args:n=[],props:s={}}=e;I(i)&&(i=i.slice(0,n.length).reduce((o,r,a)=>(ft(r)?Pt(o,r):o[n[a]]=r,o),{}));for(const o in i)F(i[o])?delete i[o]:s[o]&&(i[o]=$i(s[o],i[o]));return i}function Ls(t){const{el:e}=t.$options,i=new MutationObserver(()=>t.$emit());return i.observe(e,{childList:!0,subtree:!0}),i}function Fs(t){const{$name:e,$options:i,$props:n}=t,{attrs:s,props:o,el:r}=i;if(!o||s===!1)return;const a=I(s)?s:Object.keys(o),l=a.map(u=>yt(u)).concat(e),h=new MutationObserver(u=>{const f=gn(i,e);u.some(k=>{let{attributeName:L}=k;const G=L.replace("data-","");return(G===e?a:[Et(G),Et(L)]).some(T=>!F(f[T])&&f[T]!==n[T])})&&t.$reset()});return h.observe(r,{attributes:!0,attributeFilter:l.concat(l.map(u=>"data-"+u))}),h}function Rs(t){const e=t.data;t.prototype.$create=function(n,s,o){return t[n](s,o)},t.prototype.$mount=function(n){const{name:s}=this.$options;n[e]||(n[e]={}),!n[e][s]&&(n[e][s]=this,this.$el=this.$options.el=this.$options.el||n,B(n,document)&&this._callConnected())},t.prototype.$reset=function(){this._callDisconnected(),this._callConnected()},t.prototype.$destroy=function(n){n===void 0&&(n=!1);const{el:s,name:o}=this.$options;s&&this._callDisconnected(),this._callHook("destroy"),s!=null&&s[e]&&(delete s[e][o],je(s[e])||delete s[e],n&&Mt(this.$el))},t.prototype.$emit=function(n){this._callUpdate(n)},t.prototype.$update=function(n,s){n===void 0&&(n=this.$el),t.update(n,s)},t.prototype.$getComponent=t.getComponent;const i=q(n=>t.prefix+yt(n));Object.defineProperties(t.prototype,{$container:Object.getOwnPropertyDescriptor(t,"container"),$name:{get(){return i(this.$options.name)}}})}function js(t){const e=t.data,i={};t.component=function(n,s){const o=yt(n);if(n=Et(o),!s)return ft(i[n])&&(i[n]=t.extend(i[n])),i[n];t[n]=function(a,l){const h=t.component(n);return h.options.functional?new h({data:ft(a)?a:[...arguments]}):a?M(a).map(u)[0]:u();function u(f){const k=t.getComponent(f,n);if(k)if(l)k.$destroy();else return k;return new h({el:f,data:l})}};const r=ft(s)?{...s}:s.options;return r.name=n,r.install==null||r.install(t,r,n),t._initialized&&!r.functional&&D.read(()=>t[n]("[uk-"+o+"],[data-uk-"+o+"]")),i[n]=ft(s)?r:s},t.getComponents=n=>n?.[e]||{},t.getComponent=(n,s)=>t.getComponents(n)[s],t.connect=n=>{if(n[e])for(const s in n[e])n[e][s]._callConnected();for(const s of n.attributes){const o=mn(s.name);o&&o in i&&t[o](n)}},t.disconnect=n=>{for(const s in n[e])n[e][s]._callDisconnected()}}const mn=q(t=>V(t,"uk-")||V(t,"data-uk-")?Et(t.replace("data-uk-","").replace("uk-","")):!1),Y=function(t){this._init(t)};Y.util=_s,Y.data="__uikit__",Y.prefix="uk-",Y.options={},Y.version="3.14.1",Os(Y),Bs(Y),Ns(Y),js(Y),Rs(Y);function Ws(t){const{connect:e,disconnect:i}=t;if(!St||!window.MutationObserver)return;D.read(function(){document.body&&mt(document.body,e),new MutationObserver(o=>o.forEach(n)).observe(document,{childList:!0,subtree:!0}),new MutationObserver(o=>o.forEach(s)).observe(document,{attributes:!0,subtree:!0}),t._initialized=!0});function n(o){let{addedNodes:r,removedNodes:a}=o;for(const l of r)mt(l,e);for(const l of a)mt(l,i)}function s(o){var r;let{target:a,attributeName:l}=o;const h=mn(l);if(!(!h||!(h in t))){if(Ot(a,l)){t[h](a);return}(r=t.getComponent(a,h))==null||r.$destroy()}}}var K={connected(){!m(this.$el,this.$name)&&y(this.$el,this.$name)}},Pe={methods:{lazyload(t,e){t===void 0&&(t=this.$el),e===void 0&&(e=this.$el),this.registerObserver(Rt(t,(i,n)=>{for(const s of d(U(e)?e():e))M('[loading="lazy"]',s).forEach(o=>Jt(o,"loading"));for(const s of i.filter(o=>{let{isIntersecting:r}=o;return r}).map(o=>{let{target:r}=o;return r}))n.unobserve(s)}))}}},Ct={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-togglabe-enter",clsLeave:"uk-togglabe-leave",initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:"",boxShadow:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0,boxShadow:"none"}},computed:{hasAnimation(t){let{animation:e}=t;return!!e[0]},hasTransition(t){let{animation:e}=t;return this.hasAnimation&&e[0]===!0}},methods:{toggleElement(t,e,i){return new Promise(n=>Promise.all(d(t).map(s=>{const o=ue(e)?e:!this.isToggled(s);if(!x(s,"before"+(o?"show":"hide"),[this]))return Promise.reject();const r=(U(i)?i:i===!1||!this.hasAnimation?this._toggle:this.hasTransition?vn(this):Is(this))(s,o),a=o?this.clsEnter:this.clsLeave;y(s,a),x(s,o?"show":"hide",[this]);const l=()=>{H(s,a),x(s,o?"shown":"hidden",[this]),this.$update(s)};return r?r.then(l,()=>(H(s,a),Promise.reject())):l()})).then(n,pt))},isToggled(t){return t===void 0&&(t=this.$el),[t]=d(t),m(t,this.clsEnter)?!0:m(t,this.clsLeave)?!1:this.cls?m(t,this.cls.split(" ")[0]):O(t)},_toggle(t,e){if(!t)return;e=Boolean(e);let i;this.cls?(i=p(this.cls," ")||e!==m(t,this.cls),i&&R(t,this.cls,p(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),M("[autofocus]",t).some(n=>O(n)?n.focus()||!0:n.blur()),i&&(x(t,"toggled",[e,this]),this.$update(t))}}};function vn(t){let{isToggled:e,duration:i,velocity:n,initProps:s,hideProps:o,transition:r,_toggle:a}=t;return(l,h)=>{const u=gt.inProgress(l),f=l.hasChildNodes()?b(c(l.firstElementChild,"marginTop"))+b(c(l.lastElementChild,"marginBottom")):0,k=O(l)?N(l)+(u?0:f):0;gt.cancel(l),e(l)||a(l,!0),N(l,""),D.flush();const L=N(l)+(u?0:f);return i=n*l.offsetHeight+i,N(l,k),(h?gt.start(l,{...s,overflow:"hidden",height:L},Math.round(i*(1-k/L)),r):gt.start(l,o,Math.round(i*(k/L)),r).then(()=>a(l,!1))).then(()=>c(l,s))}}function Is(t){return(e,i)=>{tt.cancel(e);const{animation:n,duration:s,_toggle:o}=t;return i?(o(e,!0),tt.in(e,n[0],s,t.origin)):tt.out(e,n[1]||n[0],s,t.origin).then(()=>o(e,!1))}}var wn={mixins:[K,Pe,Ct],props:{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:{get(t,e){let{targets:i}=t;return M(i,e)},watch(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)},immediate:!0},toggles(t){let{toggle:e}=t;return this.items.map(i=>g(e,i))},contents:{get(t){let{content:e}=t;return this.items.map(i=>g(e,i))},watch(t){for(const e of t)_e(e,!m(this.items.find(i=>i.contains(e)),this.clsOpen))},immediate:!0}},connected(){this.lazyload()},events:[{name:"click",delegate(){return this.targets+" "+this.$props.toggle},handler(t){t.preventDefault(),this.toggle(Qe(this.toggles,t.current))}}],methods:{toggle(t,e){let i=[this.items[de(t,this.items)]];const n=Kt(this.items,"."+this.clsOpen);if(!this.multiple&&!p(n,i[0])&&(i=i.concat(n)),!(!this.collapsible&&n.length<2&&!Kt(i,":not(."+this.clsOpen+")").length))for(const s of i)this.toggleElement(s,!m(s,this.clsOpen),async(o,r)=>{R(o,this.clsOpen,r),w(g(this.$props.toggle,o),"aria-expanded",r);const a=g((o._wrapper?"> * ":"")+this.content,o);if(e===!1||!this.hasTransition){_e(a,!r);return}if(o._wrapper||(o._wrapper=$e(a,"<div"+(r?" hidden":"")+">")),_e(a,!1),await vn(this)(o._wrapper,r),_e(a,!r),delete o._wrapper,xe(a),r){const l=g(this.$props.toggle,o);D.read(()=>{wi(l)||bi(l,{offset:this.offset})})}})}}};function _e(t,e){t&&(t.hidden=e)}var qs={mixins:[K,Ct],args:"animation",props:{close:String},data:{animation:[!0],selClose:".uk-alert-close",duration:150,hideProps:{opacity:0,...Ct.data.hideProps}},events:[{name:"click",delegate(){return this.selClose},handler(t){t.preventDefault(),this.close()}}],methods:{async close(){await this.toggleElement(this.$el),this.$destroy(!0)}}},bn={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},connected(){this.inView=this.autoplay==="inview",this.inView&&!Ot(this.$el,"preload")&&(this.$el.preload="none"),this.automute&&tn(this.$el),this.registerObserver(Rt(this.$el,()=>this.$emit(),{},!1))},update:{read(){return en(this.$el)?{visible:O(this.$el)&&c(this.$el,"visibility")!=="hidden",inView:this.inView&&wi(this.$el)}:!1},write(t){let{visible:e,inView:i}=t;!e||this.inView&&!i?Ui(this.$el):(this.autoplay===!0||this.inView&&i)&&Qi(this.$el)}}},wt={connected(){var t;this.registerObserver(di(((t=this.$options.resizeTargets)==null?void 0:t.call(this))||this.$el,()=>this.$emit("resize")))}},Ys={mixins:[wt,bn],props:{width:Number,height:Number},data:{automute:!0},events:{"load loadedmetadata"(){this.$emit("resize")}},resizeTargets(){return[this.$el,S(this.$el)]},update:{read(){const{ratio:t,cover:e}=Je,{$el:i,width:n,height:s}=this;let o={width:n,height:s};if(!o.width||!o.height){const h={width:i.naturalWidth||i.videoWidth||i.clientWidth,height:i.naturalHeight||i.videoHeight||i.clientHeight};o.width?o=t(h,"width",o.width):s?o=t(h,"height",o.height):o=h}const{offsetHeight:r,offsetWidth:a}=Gs(i)||S(i),l=e(o,{width:a+(a%2?1:0),height:r+(r%2?1:0)});return!l.width||!l.height?!1:l},write(t){let{height:e,width:i}=t;c(this.$el,{height:e,width:i})},events:["resize"]}};function Gs(t){for(;t=S(t);)if(c(t,"position")!=="static")return t}var xi={props:{container:Boolean},data:{container:!0},computed:{container(t){let{container:e}=t;return e===!0&&this.$container||e&&g(e)}}},Vs={props:{pos:String,offset:null,flip:Boolean},data:{pos:"bottom-"+(oe?"right":"left"),flip:!0,offset:!1,viewportPadding:10},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),this.axis=p(["top","bottom"],this.pos[0])?"y":"x"},methods:{positionAt(t,e,i){const[n,s]=this.pos;let{offset:o}=this;if(!dt(o)){const a=g(o);o=a?v(a)[this.axis==="x"?"left":"top"]-v(e)[this.axis==="x"?"right":"bottom"]:0}o=J(o)+J(we("position-offset",t)),o=[p(["left","top"],n)?-o:+o,0];const r={element:[Wi(n),s],target:[n,s]};if(this.axis==="y"){for(const a in r)r[a]=r[a].reverse();o=o.reverse()}ln(t,e,{attach:r,offset:o,boundary:i,viewportPadding:this.boundaryAlign?0:this.viewportPadding,flip:this.flip})}}};let _;var yn={mixins:[xi,Pe,Vs,Ct],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryAlign:Boolean,delayShow:Number,delayHide:Number,display:String,clsDrop:String},data:{mode:["click","hover"],toggle:"- *",boundary:!0,boundaryAlign:!1,delayShow:0,delayHide:800,display:null,clsDrop:!1,animation:["uk-animation-fade"],cls:"uk-open",container:!1},created(){this.tracker=new fi},beforeConnect(){this.clsDrop=this.$props.clsDrop||"uk-"+this.$options.name},connected(){y(this.$el,this.clsDrop),this.toggle&&!this.target&&(this.target=this.$create("toggle",kt(this.toggle,this.$el),{target:this.$el,mode:this.mode}).$el,w(this.target,"aria-haspopup",!0),this.lazyload(this.target))},disconnected(){this.isActive()&&(_=null)},events:[{name:"click",delegate(){return"."+this.clsDrop+"-close"},handler(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate(){return'a[href^="#"]'},handler(t){let{defaultPrevented:e,current:{hash:i}}=t;!e&&i&&!B(i,this.$el)&&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?.$el,!1)}},{name:"toggleshow",self:!0,handler(t,e){t.preventDefault(),this.show(e?.$el)}},{name:"togglehide",self:!0,handler(t){t.preventDefault(),P(this.$el,":focus,:hover")||this.hide()}},{name:ke+" focusin",filter(){return p(this.mode,"hover")},handler(t){Nt(t)||this.clearTimers()}},{name:Te+" focusout",filter(){return p(this.mode,"hover")},handler(t){!Nt(t)&&t.relatedTarget&&this.hide()}},{name:"toggled",self:!0,handler(t,e){!e||(this.clearTimers(),this.position())}},{name:"show",self:!0,handler(){_=this,this.tracker.init();for(const t of[C(document,Lt,e=>{let{target:i}=e;return!B(i,this.$el)&&E(document,Ft+" "+Se+" scroll",n=>{let{defaultPrevented:s,type:o,target:r}=n;!s&&o===Ft&&i===r&&!(this.target&&B(i,this.target))&&this.hide(!1)},!0)}),C(document,"keydown",e=>{e.keyCode===27&&this.hide(!1)}),...this.display==="static"?[]:(()=>{const e=()=>this.$emit();return[C(window,"resize",e),C(document,"scroll",e,!0),(()=>{const i=di(vt(this.$el),e);return()=>i.disconnect()})()]})()])E(this.$el,"hide",t,{self:!0})}},{name:"beforehide",self:!0,handler(){this.clearTimers()}},{name:"hide",handler(t){let{target:e}=t;if(this.$el!==e){_=_===null&&B(e,this.$el)&&this.isToggled()?this:_;return}_=this.isActive()?null:_,this.tracker.cancel()}}],update:{write(){this.isToggled()&&!m(this.$el,this.clsEnter)&&this.position()}},methods:{show(t,e){if(t===void 0&&(t=this.target),e===void 0&&(e=!0),this.isToggled()&&t&&this.target&&t!==this.target&&this.hide(!1),this.target=t,this.clearTimers(),!this.isActive()){if(_){if(e&&_.isDelaying){this.showTimer=setTimeout(()=>P(t,":hover")&&this.show(),10);return}let i;for(;_&&i!==_&&!B(this.$el,_.$el);)i=_,_.hide(!1)}this.container&&S(this.$el)!==this.container&<(this.container,this.$el),this.showTimer=setTimeout(()=>this.toggleElement(this.$el,!0),e&&this.delayShow||0)}},hide(t){t===void 0&&(t=!0);const e=()=>this.toggleElement(this.$el,!1,!1);this.clearTimers(),this.isDelaying=Xs(this.$el).some(i=>this.tracker.movesTo(i)),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,50):t&&this.delayHide?this.hideTimer=setTimeout(e,this.delayHide):e()},clearTimers(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive(){return _===this},position(){H(this.$el,this.clsDrop+"-stack"),R(this.$el,this.clsDrop+"-boundary",this.boundaryAlign);const t=kt(this.boundary,this.$el),[e]=vt(this.$el),i=nt(e),n=t?v(t):i;c(this.$el,"maxWidth","");const s=i.width-(this.boundaryAlign?0:2*this.viewportPadding);if(this.pos[1]==="justify"){const o=this.axis==="y"?"width":"height",r=v(this.target),a=this.boundaryAlign?n:r;c(this.$el,o,a[o])}else this.$el.offsetWidth>s&&y(this.$el,this.clsDrop+"-stack");c(this.$el,"maxWidth",s),this.positionAt(this.$el,t&&this.boundaryAlign?t:this.target,t)}}};function Xs(t){const e=[];return mt(t,i=>c(i,"position")!=="static"&&e.push(i)),e}var Js={mixins:[K],args:"target",props:{target:Boolean},data:{target:!1},computed:{input(t,e){return g(pe,e)},state(){return this.input.nextElementSibling},target(t,e){let{target:i}=t;return i&&(i===!0&&S(this.input)===e&&this.input.nextElementSibling||g(i,e))}},update(){var t;const{target:e,input:i}=this;if(!e)return;let n;const s=Oi(e)?"value":"textContent",o=e[s],r=(t=i.files)!=null&&t[0]?i.files[0].name:P(i,"select")&&(n=M("option",i).filter(a=>a.selected)[0])?n.textContent:i.value;o!==r&&(e[s]=r)},events:[{name:"change",handler(){this.$emit()}},{name:"reset",el(){return X(this.$el,"form")},handler(){this.$emit()}}]},$n={mixins:[wt],props:{margin:String,firstColumn:Boolean},data:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},resizeTargets(){return[this.$el,...Ei(this.$el.children)]},connected(){this.registerObserver(Ji(this.$el,()=>this.$reset(),{childList:!0}))},update:{read(){const t=xn(this.$el.children);return{rows:t,columns:Ks(t)}},write(t){let{columns:e,rows:i}=t;for(const n of i)for(const s of n)R(s,this.margin,i[0]!==n),R(s,this.firstColumn,e[0].includes(s))},events:["resize"]}};function xn(t){return kn(t,"top","bottom")}function Ks(t){const e=[];for(const i of t){const n=kn(i,"left","right");for(let s=0;s<n.length;s++)e[s]=e[s]?e[s].concat(n[s]):n[s]}return oe?e.reverse():e}function kn(t,e,i){const n=[[]];for(const s of t){if(!O(s))continue;let o=Oe(s);for(let r=n.length-1;r>=0;r--){const a=n[r];if(!a[0]){a.push(s);break}let l;if(a[0].offsetParent===s.offsetParent?l=Oe(a[0]):(o=Oe(s,!0),l=Oe(a[0],!0)),o[e]>=l[i]-1&&o[e]!==l[e]){n.push([s]);break}if(o[i]-1>l[e]||o[e]===l[e]){a.push(s);break}if(r===0){n.unshift([s]);break}}}return n}function Oe(t,e){e===void 0&&(e=!1);let{offsetTop:i,offsetLeft:n,offsetHeight:s,offsetWidth:o}=t;return e&&([i,n]=ee(t)),{top:i,left:n,bottom:i+s,right:n+o}}var Be={connected(){Zs(this._uid,()=>this.$emit("scroll"))},disconnected(){Qs(this._uid)}};const Ne=new Map;let ce;function Zs(t,e){ce=ce||C(window,"scroll",()=>Ne.forEach(i=>i()),{passive:!0,capture:!0}),Ne.set(t,e)}function Qs(t){Ne.delete(t),ce&&!Ne.size&&(ce(),ce=null)}var Us={extends:$n,mixins:[K,Be],name:"grid",props:{masonry:Boolean,parallax:Number},data:{margin:"uk-grid-margin",clsStack:"uk-grid-stack",masonry:!1,parallax:0},connected(){this.masonry&&y(this.$el,"uk-flex-top uk-flex-wrap-top")},update:[{write(t){let{columns:e}=t;R(this.$el,this.clsStack,e.length<2)},events:["resize"]},{read(t){let{columns:e,rows:i}=t;if(!e.length||!this.masonry&&!this.parallax||Tn(this.$el))return t.translates=!1,!1;let n=!1;const s=at(this.$el),o=io(e),r=eo(s,this.margin)*(i.length-1),a=Math.max(...o)+r;this.masonry&&(e=e.map(h=>Ye(h,"offsetTop")),n=to(i,e));let l=Math.abs(this.parallax);return l&&(l=o.reduce((h,u,f)=>Math.max(h,u+r+(f%2?l:l/8)-a),0)),{padding:l,columns:e,translates:n,height:n?a:""}},write(t){let{height:e,padding:i}=t;c(this.$el,"paddingBottom",i||""),e!==!1&&c(this.$el,"height",e)},events:["resize"]},{read(){return this.parallax&&Tn(this.$el)?!1:{scrolled:this.parallax?rn(this.$el)*Math.abs(this.parallax):!1}},write(t){let{columns:e,scrolled:i,translates:n}=t;i===!1&&!n||e.forEach((s,o)=>s.forEach((r,a)=>c(r,"transform",!i&&!n?"":"translateY("+((n&&-n[o][a])+(i?o%2?i:i/8:0))+"px)")))},events:["scroll","resize"]}]};function Tn(t){return at(t).some(e=>c(e,"position")==="absolute")}function to(t,e){const i=t.map(n=>Math.max(...n.map(s=>s.offsetHeight)));return e.map(n=>{let s=0;return n.map((o,r)=>s+=r?i[r-1]-n[r-1].offsetHeight:0)})}function eo(t,e){const[i]=t.filter(n=>m(n,e));return b(i?c(i,"marginTop"):c(t[0],"paddingLeft"))}function io(t){return t.map(e=>e.reduce((i,n)=>i+n.offsetHeight,0))}var no={mixins:[wt],args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0},computed:{elements:{get(t,e){let{target:i}=t;return M(i,e)},watch(){this.$reset()}}},resizeTargets(){return[this.$el,...this.elements]},update:{read(){return{rows:(this.row?xn(this.elements):[this.elements]).map(so)}},write(t){let{rows:e}=t;for(const{heights:i,elements:n}of e)n.forEach((s,o)=>c(s,"minHeight",i[o]))},events:["resize"]}};function so(t){if(t.length<2)return{heights:[""],elements:t};c(t,"minHeight","");let e=t.map(oo);const i=Math.max(...e);return{heights:t.map((n,s)=>e[s].toFixed(2)===i.toFixed(2)?"":i),elements:t}}function oo(t){let e=!1;O(t)||(e=t.style.display,c(t,"display","block","important"));const i=et(t).height-ne(t,"height","content-box");return e!==!1&&c(t,"display",e),i}var ro={mixins:[K,wt],props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean,minHeight:Number},data:{expand:!1,offsetTop:!1,offsetBottom:!1,minHeight:0},resizeTargets(){return[this.$el,document.documentElement]},update:{read(t){let{minHeight:e}=t;if(!O(this.$el))return!1;let i="";const n=ne(this.$el,"height","content-box");if(this.expand)i=Math.max(N(window)-(et(document.documentElement).height-et(this.$el).height)-n,0);else{if(i="calc(100vh",this.offsetTop){const{top:s}=v(this.$el);i+=s>0&&s<N(window)/2?" - "+s+"px":""}this.offsetBottom===!0?i+=" - "+et(this.$el.nextElementSibling).height+"px":dt(this.offsetBottom)?i+=" - "+this.offsetBottom+"vh":this.offsetBottom&&Yt(this.offsetBottom,"px")?i+=" - "+b(this.offsetBottom)+"px":$(this.offsetBottom)&&(i+=" - "+et(kt(this.offsetBottom,this.$el)).height+"px"),i+=(n?" - "+n+"px":"")+")"}return{minHeight:i,prev:e}},write(t){let{minHeight:e}=t;c(this.$el,{minHeight:e}),this.minHeight&&b(c(this.$el,"minHeight"))<this.minHeight&&c(this.$el,"minHeight",this.minHeight)},events:["resize"]}},Sn={args:"src",props:{id:Boolean,icon:String,src:String,style:String,width:Number,height:Number,ratio:Number,class:String,strokeAnimation:Boolean,focusable:Boolean,attributes:"list"},data:{ratio:1,include:["style","class","focusable"],class:"",strokeAnimation:!1},beforeConnect(){this.class+=" uk-svg"},connected(){!this.icon&&p