vuikit
Version:
A responsive Vue UI library for web site interfaces based on UIkit
10 lines (8 loc) • 93.9 kB
JavaScript
/**
* Vuikit 0.8.10
* (c) 2018 Miljan Aleksic
* @license MIT
**/
/* Substantial part of the code is adapted from UIkit,
Copyright (c) 2013-2018 YOOtheme GmbH, getuikit.com */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vuikit=e()}(this,function(){"use strict";var u=Object.prototype.hasOwnProperty;var e=/([a-z\d])([A-Z])/g;function o(t){return t.replace(e,"$1-$2").toLowerCase()}function f(t){return t.length?((e=t.charAt(0))?e.toUpperCase():"")+t.slice(1):"";var e}var t=String.prototype,n=t.startsWith||function(t){return 0===this.lastIndexOf(t,0)};function c(t,e){return n.call(t,e)}var r=t.endsWith||function(t){return this.substr(-t.length)===t};function p(t,e){return r.call(t,e)}var i=function(t){return~this.indexOf(t)},a=t.includes||i,s=Array.prototype.includes||i;function y(t,e){return t&&(w(t)?a:s).call(t,e)}var l=Array.isArray;function d(t){return"function"==typeof t}function h(t){return null!==t&&"object"==typeof t}function v(t){return h(t)&&t===t.window}function m(t){return h(t)&&9===t.nodeType}function g(t){return h(t)&&!!t.jquery}function k(t){return"undefined"!=typeof Node&&t instanceof Node||h(t)&&1===t.nodeType}function b(t){return"undefined"!=typeof NodeList&&t instanceof NodeList||"undefined"!=typeof HTMLCollection&&t instanceof HTMLCollection}function w(t){return"string"==typeof t}function $(t){return"number"==typeof t}function x(t){return $(t)||w(t)&&!isNaN(t-parseFloat(t))}function S(t){return void 0===t}function T(t){return parseFloat(t)||0}function B(t){return k(t)||v(t)||m(t)?t:b(t)||g(t)?t[0]:l(t)?B(t[0]):null}var _=Array.prototype;function N(t){return k(t)?[t]:b(t)?_.slice.call(t):l(t)?t.map(B).filter(Boolean):g(t)?t.toArray():[]}var O=Object.assign||function(t){for(var e,n,r=[],i=arguments.length-1;0<i--;)r[i]=arguments[i+1];t=Object(t);for(var o=0;o<r.length;o++){var a=r[o];if(null!==a)for(var s in a)e=a,n=s,u.call(e,n)&&(t[s]=a[s])}return t};function E(t,e){for(var n in t)if(!1===e.call(t[n],t[n],n))break}function V(){}function C(t,e,n){if(h(e))for(var r in e)C(t,r,e[r]);else{if(S(n))return(t=B(t))&&t.getAttribute(e);N(t).forEach(function(t){d(n)&&(n=n.call(t,C(t,e))),null===n?A(t,e):t.setAttribute(e,n)})}}function M(t,e){return N(t).some(function(t){return t.hasAttribute(e)})}function A(t,e){t=N(t),e.split(" ").forEach(function(e){return t.forEach(function(t){return t.removeAttribute(e)})})}function P(t,e){return B(t)||R(t,j(t)?e:document)}function R(t,e){return B(D(t,e,"querySelector"))}function I(t,e){return N(D(t,e,"querySelectorAll"))}function D(t,i,e){if(void 0===i&&(i=document),!t||!w(t))return null;var o;j(t=t.replace(L,"$1 *"))&&(o=[],t=t.split(",").map(function(t,e){var n=i;if("!"===(t=t.trim())[0]){var r=t.substr(1).trim().split(" ");n=z(i.parentNode,r[0]),t=r.slice(1).join(" ")}return n?(n.id||(n.id="uk-"+Date.now()+e,o.push(function(){return A(n,"id")})),"#"+q(n.id)+" "+t):null}).filter(Boolean).join(","),i=document);try{return i[e](t)}catch(t){return null}finally{o&&o.forEach(function(t){return t()})}}var H=/(^|,)\s*[!>+~]/,L=/([!>+~])(?=\s+[!>+~]|\s*$)/g;function j(t){return w(t)&&t.match(H)}function U(t,e){var n=window.Element.prototype,r=n.matches||n.webkitMatchesSelector||n.msMatchesSelector;return N(t).some(function(t){return r.call(t,e)})}function z(t,e){var n=window.Element.prototype.closest||function(t){var e=this;do{if(U(e,t))return e;e=e.parentNode}while(e&&1===e.nodeType)};return c(e,">")&&(e=e.slice(1)),k(t)?t.parentNode&&n.call(t,e):N(t).map(function(t){return t.parentNode&&n.call(t,e)}).filter(Boolean)}function q(t){var e=window.CSS&&CSS.escape||function(t){return t.replace(/([^\x7f-\uFFFF\w-])/g,function(t){return"\\"+t})};return w(t)?e.call(null,t):""}function F(t){return N(t).some(function(t){return t.offsetHeight||t.getBoundingClientRect().height})}function Y(t,e){return N(t).filter(function(t){return U(t,e)})}function J(t,e){return w(e)?U(t,e)||z(t,e):t===e||(m(e)?e.documentElement:B(e)).contains(B(t))}function W(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r=Z(t),i=r[0],o=r[1],a=r[2],s=r[3],u=r[4];return i=et(i),a&&(s=function(r,i,o){var a=this;return function(t){var e=t.target,n=">"===i[0]?I(i,r).reverse().filter(function(t){return J(e,t)})[0]:z(e,i);n&&(t.delegate=r,t.current=n,o.call(a,t))}}(i,a,s)),1<s.length&&(n=s,s=function(t){return l(t.detail)?n.apply(n,[t].concat(t.detail)):n(t)}),o.split(" ").forEach(function(t){return i&&i.addEventListener(t,s,u)}),function(){return K(i,o,s,u)}}function K(e,t,n,r){void 0===r&&(r=!1),(e=et(e))&&t.split(" ").forEach(function(t){return e.removeEventListener(t,n,r)})}function X(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=Z(t),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],l=W(r,i,o,function(t){var e=!u||u(t);e&&(l(),a(t,e))},s);return l}function Q(t,n,r){return(e=t,tt(e)?[e]:l(e)?e.map(et).filter(Boolean):N(e)).reduce(function(t,e){return t&&e.dispatchEvent(G(n,!0,!0,r))},!0);var e}function G(t,e,n,r){if(void 0===e&&(e=!0),void 0===n&&(n=!1),w(t)){var i=document.createEvent("CustomEvent");i.initCustomEvent(t,e,n,r),t=i}return t}function Z(t){return w(t[0])&&(t[0]=R(t[0])),d(t[2])&&t.splice(2,0,!1),t}function tt(t){return"undefined"!=typeof window&&"EventTarget"in window?t instanceof window.EventTarget:t&&"addEventListener"in t}function et(t){return tt(t)?t:B(t)}var nt="undefined"!=typeof document&&document;function rt(t){if(nt)if(!nt||"complete"!==document.readyState&&("loading"===document.readyState||document.documentElement.doScroll))var e=function(){n(),r(),t()},n=W(document,"DOMContentLoaded",e),r=W(window,"load",e);else t()}function it(e,t){return e=B(e),at(t,function(t){return e.appendChild(t)})}function ot(r,t){return r=B(r),at(t,function(t){return r.nextSibling?(e=r.nextSibling,n=t,e=B(e),at(n,function(t){return e.parentNode.insertBefore(t,e)})):it(r.parentNode,t);var e,n})}function at(t,e){return(t=w(t)?ct(t):t)?"length"in t?N(t).map(e):e(t):null}function st(t){N(t).map(function(t){return t.parentNode&&t.parentNode.removeChild(t)})}var ut=/^\s*<(\w+|!)[^>]*>/,lt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function ct(t){var e=lt.exec(t);if(e)return document.createElement(e[1]);var n=document.createElement("div");return ut.test(t)?n.insertAdjacentHTML("beforeend",t.trim()):n.textContent=t,1<n.childNodes.length?N(n.childNodes):n.firstChild}function dt(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];gt(t,e,"add")}function ft(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];gt(t,e,"remove")}function pt(t,e){var n,r,i,o;n=t,r="class",i=new RegExp("(^|\\s)"+e+"(?!\\S)","g"),o="",C(n,r,function(t){return t?t.replace(i,o):t})}function ht(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];e[0]&&ft(t,e[0]),e[1]&&dt(t,e[1])}function vt(t,e){return N(t).some(function(t){return t.classList.contains(e)})}function mt(t){for(var r=[],e=arguments.length-1;0<e--;)r[e]=arguments[e+1];if(r.length){var i=w((r=kt(r))[r.length-1])?[]:r.pop();r=r.filter(Boolean),N(t).forEach(function(t){for(var e=t.classList,n=0;n<r.length;n++)yt.Force?e.toggle.apply(e,[r[n]].concat(i)):e[(S(i)?!e.contains(r[n]):i)?"add":"remove"](r[n])})}}function gt(t,n,r){(n=kt(n).filter(Boolean)).length&&N(t).forEach(function(t){var e=t.classList;yt.Multiple?e[r].apply(e,n):n.forEach(function(t){return e[r](t)})})}function kt(t){return t.reduce(function(t,e){return t.concat.call(t,w(e)&&y(e," ")?e.trim().split(" "):e)},[])}var yt={};!function(){if("undefined"!=typeof document&&document.createElement("_").classList){var t=document.createElement("_").classList;t.add("a","b"),t.toggle("c",!1),yt.Multiple=t.contains("b"),yt.Force=!t.contains("c"),t=null}}();var bt={"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,widows:!0,"z-index":!0,zoom:!0};function wt(t,e,i){return N(t).map(function(n){if(w(e)){if(e=Bt(e),S(i))return xt(n,e);i||0===i?n.style[e]=x(i)&&!bt[e]?i+"px":i:n.style.removeProperty(e)}else{if(l(e)){var r=$t(n);return e.reduce(function(t,e){return t[e]=r[Bt(e)],t},{})}h(e)&&E(e,function(t,e){return wt(n,e,t)})}return n})[0]}function $t(t,e){return(t=B(t)).ownerDocument.defaultView.getComputedStyle(t,e)}function xt(t,e,n){return $t(t,n)[e]}var St={};var Tt={};function Bt(t){var e=Tt[t];return e||(e=Tt[t]=function(t){var e=document.createElement("_").style;if((t=o(t))in e)return t;var n,r=_t.length;for(;r--;)if((n="-"+_t[r]+"-"+t)in e)return n}(t)||t),e}var _t=["webkit","moz","ms"];function Nt(t){if(w(t))if("@"===t[0])t=T(function(t){if(!(t in St)){var e=it(document.documentElement,document.createElement("div"));dt(e,"var-"+t);try{St[t]=xt(e,"content",":before").replace(/^["'](.*)["']$/,"$1"),St[t]=JSON.parse(St[t])}catch(t){}document.documentElement.removeChild(e)}return St[t]}("media-"+t.substr(1)));else if(isNaN(t))return t;return!(!t||isNaN(t))&&"(min-width: "+t+"px)"}function Ot(t,e,n){var r,i=h(t)&&w(e)?(r=t,e.split(".").reduce(function(t,e){return t&&t[e]},r)):void 0;return void 0===i?n:i}function Et(n,t,r){return void 0===r&&(r=1),void 0===t&&(t=n,n=0),Array.from(new Array(Math.floor((t-n)/r)),function(t,e){return n+e*r})}function Vt(t){return Ct(t).pop()}function Ct(t){for(var e=[],n=t.$options.name,r=t.$parent;r;)r.$options.name===n&&e.unshift(r),r=r.$parent;return e}function Mt(t){return t.filter(function(t){return t.tag||(e=t).isComment&&e.asyncFactory;var e})}function At(){for(var t,e,n=arguments,r={},i=arguments.length;i--;)for(var o=0,a=Object.keys(arguments[i]);o<a.length;o++)switch(t=a[o]){case"class":case"style":case"directives":Array.isArray(r[t])||(r[t]=[]),r[t]=r[t].concat(n[i][t]);break;case"staticClass":if(!n[i][t])break;void 0===r[t]&&(r[t]=""),r[t]&&(r[t]+=" "),r[t]+=n[i][t].trim();break;case"on":case"nativeOn":r[t]||(r[t]={});for(var s=0,u=Object.keys(arguments[i][t]);s<u.length;s++)e=u[s],r[t][e]?r[t][e]=[].concat(r[t][e],n[i][t][e]):r[t][e]=n[i][t][e];break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":r[t]||(r[t]={}),r[t]=Pt({},n[i][t],r[t]);break;case"slot":case"key":case"ref":case"tag":case"show":case"keepAlive":default:r[t]||(r[t]=n[i][t])}return r}var Pt=Object.assign||function(t){for(var e,n=arguments,r=1,i=arguments.length;r<i;r++)for(var o in e=n[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Rt={functional:!0,render:function(t,e){e.props;var n=e.data,r=e.children;return t("ul",At(n,{class:"uk-breadcrumb"}),r)}},It={functional:!0,props:{href:String,target:String,disabled:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.disabled,a=n.href,s=n.target;return t("li",At(r,{class:{"uk-disabled":o}}),[S(a)||o?t("span",i):t("a",{attrs:{href:a,target:s}},i)])}},Dt={name:"VkBreadcrumb",functional:!0,props:Rt.props,render:Rt.render},Ht={name:"VkBreadcrumbItem",functional:!0,props:It.props,render:It.render},Lt={active:{type:Boolean,default:!1},size:{type:String,validator:function(t){return!t||/^(small|large)$/.test(t)}},type:{type:String,validator:function(t){return!t||/^(primary|secondary|danger|text|link)$/.test(t)}}},jt=function(t){var e,n=t.type,r=t.active,i=t.size;return{class:["uk-button","uk-button-"+(n||"default"),(e={"uk-active":r},e["uk-button-"+i]=i,e)]}},Ut={functional:!0,props:O({},Lt,{htmlType:{type:String,default:"button"}}),render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.htmlType;return t("button",At(r,jt(n),{attrs:{type:o}}),i)}},zt={functional:!0,props:Lt,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t("a",At(r,jt(n)),i)}},qt={functional:!0,render:function(t,e){var n=e.data,r=e.children;return t("div",At(n,{class:"uk-button-group"}),r)}},Ft={name:"VkButton",functional:!0,props:Ut.props,render:Ut.render},Yt={name:"VkButtonLink",functional:!0,props:zt.props,render:zt.render},Jt={name:"VkButtonGroup",functional:!0,props:qt.props,render:qt.render},Wt={functional:!0,props:{type:{type:String,default:"default",validator:function(t){return/^(default|primary|secondary|blank)$/.test(t)}},padding:{type:String,validator:function(t){return!t||/^(small|large)$/.test(t)}},hover:{type:Boolean,default:!1}},render:function(t,e){var n,r=e.props,i=e.data,o=e.slots,a=r.type,s=r.padding,u=r.hover,l=o(),c=l.body;return c&&c.length||(l.body=l.default,delete l.default),t("div",At(i,{class:["uk-card",(n={"uk-card-hover":u},n["uk-card-"+a]=a,n["uk-card-"+s]=s,n)]}),[l.default&&l.default,l["media-top"]&&t("div",{class:"uk-card-media-top"},l["media-top"]),l.badge&&t("div",{class:"uk-card-badge"},l.badge),l.header&&t("div",{class:"uk-card-header"},l.header),l.media&&t("div",{class:"uk-card-media"},l.media),l.body&&t("div",{class:"uk-card-body"},l.body),l.footer&&t("div",{class:"uk-card-footer"},l.footer),l["media-bottom"]&&t("div",{class:"uk-card-media-bottom"},l["media-bottom"])])}},Kt={functional:!0,props:{tag:{type:String,default:"h3"}},render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,At(r,{class:"uk-card-title"}),i)}},Xt={name:"VkCard",functional:!0,props:Wt.props,render:Wt.render},Qt={name:"VkCardTitle",functional:!0,props:Kt.props,render:Kt.render};var Gt={width:["x","left","right"],height:["y","top","bottom"]};function Zt(t,e,c,d,f,n,p,h){c=se(c),d=se(d);var v={element:c,target:d};if(!t||!e)return v;var m=ee(t),g=ee(e),k=g;return ae(k,c,m,-1),ae(k,d,g,1),f=ue(f,m.width,m.height),n=ue(n,g.width,g.height),f.x+=n.x,f.y+=n.y,k.left+=f.x,k.top+=f.y,h=ee(h||de(t)),p&&E(Gt,function(t,r){var i=t[0],o=t[1],a=t[2];if(!0===p||y(p,i)){var e=c[i]===o?-m[r]:c[i]===a?m[r]:0,n=d[i]===o?g[r]:d[i]===a?-g[r]:0;if(k[o]<h[o]||k[o]+m[r]>h[a]){var s=m[r]/2,u="center"===d[i]?-g[r]/2:0;"center"===c[i]&&(l(s,u)||l(-s,-u))||l(e,n)}}function l(e,t){var n=k[o]+e+t-2*f[i];if(n>=h[o]&&n+m[r]<=h[a])return k[o]=n,["element","target"].forEach(function(t){v[t][i]=e?v[t][i]===Gt[r][1]?Gt[r][2]:Gt[r][1]:v[t][i]}),!0}}),te(t,k),v}function te(u,l){if(u=B(u),!l)return ee(u);var c=te(u),d=wt(u,"position");["left","top"].forEach(function(t){if(t in l){var e=wt(u,t);u.style[t]=l[t]-c[t]+T("absolute"===d&&"auto"===e?(r=u,i=function(t){var e=B(t).offsetParent;for(;e&&"static"===wt(e,"position");)e=e.offsetParent;return e||pe(t)}(r=B(r)),o=i===pe(r)?{top:0,left:0}:te(i),n=["top","left"].reduce(function(t,e){var n=f(e);return t[e]-=o[e]+(T(wt(r,"margin"+n))||0)+(T(wt(i,"border"+n+"Width"))||0),t},te(r)),a=n.top,s=n.left,{top:a,left:s})[t]:e)+"px"}var r,i,o,n,a,s})}function ee(t){var e=de(t=B(t)),n=e.pageYOffset,r=e.pageXOffset;if(v(t)){var i=t.innerHeight,o=t.innerWidth;return{top:n,left:r,height:i,width:o,bottom:n+i,right:r+o}}var a=!1;F(t)||(a=t.style.display,t.style.display="block");var s=t.getBoundingClientRect();return!1!==a&&(t.style.display=a),{height:s.height,width:s.width,top:s.top+n,left:s.left+r,bottom:s.bottom+n,right:s.right+r}}var ne=ie("height"),re=ie("width");function ie(r){var i=f(r);return function(t,e){if(t=B(t),S(e)){if(v(t))return t["inner"+i];if(m(t)){var n=t.documentElement;return Math.max(n["offset"+i],n["scroll"+i])}return e="auto"===(e=wt(t,r))?t["offset"+i]:T(e)||0,oe(r,t,e)}wt(t,r,e||0===e?oe(r,t,e)+"px":"")}}function oe(t,n,e){return"border-box"===wt(n,"boxSizing")?Gt[t].slice(1).map(f).reduce(function(t,e){return t-T(wt(n,"padding"+e))-T(wt(n,"border"+e+"Width"))},e):e}function ae(o,a,s,u){E(Gt,function(t,e){var n=t[0],r=t[1],i=t[2];a[n]===i?o[r]+=s[e]*u:"center"===a[n]&&(o[r]+=s[e]*u/2)})}function se(t){var e=/left|center|right/,n=/top|center|bottom/;return 1===(t=(t||"").split(" ")).length&&(t=e.test(t[0])?t.concat(["center"]):n.test(t[0])?["center"].concat(t):["center","center"]),{x:e.test(t[0])?t[0]:"center",y:n.test(t[1])?t[1]:"center"}}function ue(t,e,n){var r=(t||"").split(" "),i=r[0],o=r[1];return{x:i?T(i)*(p(i,"%")?e/100:1):0,y:o?T(o)*(p(o,"%")?n/100:1):0}}function le(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}}function ce(t,e,n){void 0===e&&(e=0),void 0===n&&(n=0);var r,i,o=de(t=B(t));return r=t.getBoundingClientRect(),i={top:e,left:n,bottom:e+ne(o),right:n+re(o)},r.left<=i.right&&i.left<=r.right&&r.top<=i.bottom&&i.top<=r.bottom}function de(t){return v(t)?t:fe(t).defaultView}function fe(t){return B(t).ownerDocument}function pe(t){return fe(t).documentElement}var he="v-vk-position:before",ve="v-vk-position:after",me={inserted:function(t,e,n){var r=ke(t,e,n);r&&ge(r)},componentUpdated:function(t,e,n){var r=ke(t,e,n);r&&ge(r)}};function ge(t){var e=t.el,n=t.props,r=(t.vnode,n.target),i=n.position,o=n.offset,a=n.boundary,s=n.flip,u=n.mainClass,l=i.split("-"),c=l[0],d=l[1];Q(e,he);var f=new RegExp(u+"-(top|bottom|left|right)(-[a-z]+)?");e.className=e.className.replace(f,""),wt(e,{top:"",left:""});var p,h="top"===(p=i.split("-")[0])||"bottom"===p?"y":"x",v=Zt(e,r,"x"===h?le(c)+" "+d:d+" "+le(c),"x"===h?c+" "+d:d+" "+c,"x"===h?""+("left"===c?-1*o:o):" "+("top"===c?-1*o:o),null,s,a).target,m=v.x,g=v.y;mt(e,u+"-"+(c="x"===h?m:g)+"-"+(d="x"===h?g:m),!1===o),Q(e,ve)}function ke(t,e,n){var r={el:t,binding:e,vnode:n};if(r.props=function(t){t.vnode;var e=t.binding.value;return O({target:null,position:"top-center",boundary:window,flip:!0,offset:!1,mainClass:""},e)}(r),r.props)return r;e.def.unbind(t,e)}var ye={methods:{on:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];this._vk_events_off.push(W.apply(void 0,t))},off:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];K.apply(void 0,t)}},created:function(){this._vk_events_off=[]},beforeDestroy:function(){this._vk_events_off.forEach(function(t){return t()})}};function be(t,e){return w(t)?$e(t)?B(ct(t)):R(t,e):B(t)}function we(t,e){return w(t)?$e(t)?N(ct(t)):I(t,e):N(t)}function $e(t){return"<"===t[0]||t.match(/^\s*</)}function xe(){}function Se(t,e){return(e.y-t.y)/(e.x-t.x)}xe.prototype={positions:[],position:null,init:function(){var r=this;this.positions=[],this.position=null;var i=!1;this.unbind=W(document,"mousemove",function(n){i||(setTimeout(function(){var t=Date.now(),e=r.positions.length;e&&100<t-r.positions[e-1].time&&r.positions.splice(0,e),r.positions.push({time:t,x:n.pageX,y:n.pageY}),5<r.positions.length&&r.positions.shift(),i=!1},5),i=!0)})},cancel:function(){this.unbind&&this.unbind()},movesTo:function(t){if(this.positions.length<2)return!1;var e=te(t),n=this.positions[this.positions.length-1],r=this.positions[0];if(e.left<=n.x&&n.x<=e.right&&e.top<=n.y&&n.y<=e.bottom)return!1;var i=[[{x:e.left,y:e.top},{x:e.right,y:e.bottom}],[{x:e.right,y:e.top},{x:e.left,y:e.bottom}]];return e.right<=n.x||(e.left>=n.x?(i[0].reverse(),i[1].reverse()):e.bottom<=n.y?i[0].reverse():e.top>=n.y&&i[1].reverse()),!!i.reduce(function(t,e){return t+(Se(r,e[0])<Se(n,e[0])&&Se(r,e[1])>Se(n,e[1]))},0)}};var Te="undefined"!=typeof document&&document,Be="undefined"!=typeof window&&window,_e="undefined"!=typeof navigator&&navigator,Ne=Te&&"rtl"===C(document.documentElement,"dir"),Oe=Be&&"ontouchstart"in window,Ee=Be&&window.PointerEvent,Ve=Oe||Be&&window.DocumentTouch&&Te&&document instanceof window.DocumentTouch||_e&&navigator.maxTouchPoints,Ce=Ve?"mousedown "+(Oe?"touchstart":"pointerdown"):"mousedown",Me=Ve?"mousemove "+(Oe?"touchmove":"pointermove"):"mousemove",Ae=Ve?"mouseup "+(Oe?"touchend":"pointerup"):"mouseup",Pe=Ve&&Ee?"pointerenter":"mouseenter",Re=Ve&&Ee?"pointerleave":"mouseleave",Ie={target:{},boundary:{},boundaryAlign:{type:Boolean,default:!1},flip:{type:[String,Boolean],default:!0},position:{type:String,default:"bottom-"+(Ne?"right":"left"),validator:function(t){return/^(top|bottom)-(left|right|center|justify)$/.test(t)||/^(left|right)-(top|bottom|center|justify)$/.test(t)}},offset:{type:[Boolean,Number],default:!1},animation:{type:String,default:"fade"},duration:{type:Number,default:200},mode:{type:String,default:"click hover"},delayShow:{type:Number,default:0},delayHide:{type:Number,default:800},mainClass:{type:String,default:"uk-drop"}},De={functional:!0,props:{show:{type:Boolean,default:!1}},render:function(t,e){var n=e.children,r=e.data,i=e.props.show;return t("div",At(r,{class:{"uk-open":i},style:{display:i?"block":null}}),n)}},He="undefined"!=typeof window&&window,Le=He&&"Promise"in window?window.Promise:ze,je=2,Ue=He&&"setImmediate"in window?setImmediate:setTimeout;function ze(t){this.state=je,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}ze.reject=function(n){return new ze(function(t,e){e(n)})},ze.resolve=function(n){return new ze(function(t,e){t(n)})},ze.all=function(a){return new ze(function(n,t){var r=[],i=0;function e(e){return function(t){r[e]=t,(i+=1)===a.length&&n(r)}}0===a.length&&n(r);for(var o=0;o<a.length;o+=1)ze.resolve(a[o]).then(e(o),t)})},ze.race=function(r){return new ze(function(t,e){for(var n=0;n<r.length;n+=1)ze.resolve(r[n]).then(t,e)})};var qe=ze.prototype;qe.resolve=function(t){var e=this;if(e.state===je){if(t===e)throw new TypeError("Promise settled with itself.");var n=!1;try{var r=t&&t.then;if(null!==t&&h(t)&&d(r))return void r.call(t,function(t){n||e.resolve(t),n=!0},function(t){n||e.reject(t),n=!0})}catch(t){return void(n||e.reject(t))}e.state=0,e.value=t,e.notify()}},qe.reject=function(t){var e=this;if(e.state===je){if(t===e)throw new TypeError("Promise settled with itself.");e.state=1,e.value=t,e.notify()}},qe.notify=function(){var o=this;Ue(function(){if(o.state!==je)for(;o.deferred.length;){var t=o.deferred.shift(),e=t[0],n=t[1],r=t[2],i=t[3];try{0===o.state?d(e)?r(e.call(void 0,o.value)):r(o.value):1===o.state&&(d(n)?r(n.call(void 0,o.value)):i(o.value))}catch(t){i(t)}}})},qe.then=function(n,r){var i=this;return new ze(function(t,e){i.deferred.push([n,r,t,e]),i.notify()})},qe.catch=function(t){return this.then(void 0,t)};var Fe={start:function(t,a,s,u){return void 0===s&&(s=400),void 0===u&&(u="linear"),Le.all(N(t).map(function(o){return new Le(function(n,r){for(var t in a){var e=wt(o,t);""===e&&wt(o,t,e)}var i=setTimeout(function(){return Q(o,"transitionend")},s);X(o,"transitionend transitioncanceled",function(t){var e=t.type;clearTimeout(i),ft(o,"uk-transition"),wt(o,{"transition-property":"","transition-duration":"","transition-timing-function":""}),"transitioncanceled"===e?r():n()},!1,function(t){var e=t.target;return o===e}),dt(o,"uk-transition"),wt(o,O({"transition-property":Object.keys(a).map(Bt).join(","),"transition-duration":s+"ms","transition-timing-function":u},a))})}))},stop:function(t){return Q(t,"transitionend"),Le.resolve()},cancel:function(t){Q(t,"transitioncanceled")},inProgress:function(t){return vt(t,"uk-transition")}},Ye="uk-animation-",Je="uk-cancel-animation";function We(t,e,n,s,u){var l=arguments;return void 0===n&&(n=200),Le.all(N(t).map(function(a){return new Le(function(r,i){if(vt(a,Je))requestAnimationFrame(function(){return Le.resolve().then(function(){return We.apply(void 0,l).then(r,i)})});else{var t=e+" "+Ye+(u?"leave":"enter");c(e,Ye)&&(s&&(t+=" uk-transform-origin-"+s),u&&(t+=" "+Ye+"reverse")),o(),X(a,"animationend animationcancel",function(t){var e=t.type,n=!1;"animationcancel"===e?(i(),o()):(r(),Le.resolve().then(function(){n=!0,o()})),requestAnimationFrame(function(){n||(dt(a,Je),requestAnimationFrame(function(){return ft(a,Je)}))})},!1,function(t){var e=t.target;return a===e}),wt(a,"animationDuration",n+"ms"),dt(a,t)}function o(){wt(a,"animationDuration",""),pt(a,Ye+"\\S*")}})}))}var Ke=new RegExp(Ye+"(enter|leave)"),Xe={in:function(t,e,n,r){return We(t,e,n,r,!1)},out:function(t,e,n,r){return We(t,e,n,r,!0)},inProgress:function(t){return Ke.test(C(t,"class"))},cancel:function(t){Q(t,"animationcancel")}},Qe={name:"VkTransition",functional:!0,props:{name:{type:[String,Array],required:!0},duration:{type:Number},mode:{type:String,default:"out-in"}},render:function(t,e){var n=e.props,r=(e.data,e.children),i=n.name,o=n.duration,a=w(i)?[i,i]:i,s=a[0],u=a[1];return t("transition",{props:{css:!1,mode:n.mode},on:{enter:function(t,e){s?Xe.in(t,"uk-animation-"+s,o).then(e):e()},leave:function(t,e){u?Xe.out(t,"uk-animation-"+u,o).then(e):e()}}},r)}},Ge={mounted:function(){this.$refs.target=this.queryElement(this.target)||this.$el.previousElementSibling,this.$refs.boundary=this.queryElement(this.boundary)||window,this.$forceUpdate()},render:function(t){var e,n,a=this,s=this.position,r=this.$refs,u=r.boundary,l=r.target,c=s.split("-")[1],i=this,o=i.boundaryAlign,d=i.animation,f=i.duration,p=i.mainClass,h=i.flip,v=i.offset;if(l&&u){s=s.replace("justify","center"),l=o?u:l;var m={on:(e={},e[he]=function(t){var e,n=a.$el,r=te(l),i=te(u);if(wt(n,{width:"",height:""}),ft(n,p+"-stack"),"justify"===c){var o="y"==("top"===(e=s.split("-")[0])||"bottom"===e?"y":"x")?"width":"height";wt(n,o,r[o])}else n.offsetWidth>Math.max(i.right-r.left,r.right-i.left)&&dt(n,p+"-stack")},e),props:{show:this.shown},class:[p,(n={},n[p+"-boundary"]=this.boundaryAlign,n)],directives:[{name:"show",value:this.shown},{name:"vk-position",value:{flip:h,offset:v,target:l,boundary:u,position:s,mainClass:p}}]};return t(Qe,{props:{name:[d],duration:f}},[t(De,m,this.$slots.default)])}}};var Ze,tn,en,nn,rn="show",on={};function an(){Ze&&clearTimeout(Ze),tn&&clearTimeout(tn),en&&clearTimeout(en),Ze=tn=en=null,on={}}rt(function(){W(document,"click",function(){return nn=!0},!0),W(document,Ce,function(t){var e=t.target,n=cn(t),r=n.x,i=n.y,o=Date.now(),a=dn(t.type);on.type&&on.type!==a||(on.el="tagName"in e?e:e.parentNode,Ze&&clearTimeout(Ze),on.x1=r,on.y1=i,on.last&&o-on.last<=250&&(on={}),on.type=a,on.last=o,nn=0<t.button)}),W(document,Me,function(t){if(!t.defaultPrevented){var e=cn(t),n=e.x,r=e.y;on.x2=n,on.y2=r}}),W(document,Ae,function(t){var e=t.type,n=t.target;on.type===dn(e)&&(on.x2&&30<Math.abs(on.x1-on.x2)||on.y2&&30<Math.abs(on.y1-on.y2)?tn=setTimeout(function(){var t,e,n,r,i;on.el&&(Q(on.el,"swipe"),Q(on.el,"swipe"+(e=(t=on).x1,n=t.x2,r=t.y1,i=t.y2,Math.abs(e-n)>=Math.abs(r-i)?0<e-n?"Left":"Right":0<r-i?"Up":"Down"))),on={}}):"last"in on?(en=setTimeout(function(){return Q(on.el,"tap")}),on.el&&"mouseup"!==e&&J(n,on.el)&&(Ze=setTimeout(function(){Ze=null,on.el&&!nn&&Q(on.el,"click"),on={}},350))):on={})}),W(document,"touchcancel",an),W(window,"scroll",an)});var sn,un=!1;function ln(t){return un||"touch"===t.pointerType}function cn(t){var e=t.touches,n=t.changedTouches,r=e&&e[0]||n&&n[0]||t;return{x:r.pageX,y:r.pageY}}function dn(t){return t.slice(0,5)}"undefined"!=typeof document&&(W(document,"touchstart",function(){return un=!0},!0),W(document,"click",function(){un=!1}),W(document,"touchcancel",function(){return un=!1},!0)),"undefined"!=typeof document&&"undefined"!=typeof window&&(W(window,"resize",function(t){var e=t.defaultPrevented,n=sn&&/justify/.test(sn.position);!e&&n&&sn.$forceUpdate()}),W(document.documentElement,"click",function(t){var e=t.target;if(!t.defaultPrevented&&sn)for(;sn&&!J(e,sn.$el)&&!J(e,sn.$refs.target);){var n=Vt(sn);sn._hide(),sn=n}}));var fn={name:"VkDrop",mixins:[Ge,{data:function(){return{shown:!1}},methods:{show:function(){this.clearTimers(),this.showTimer=setTimeout(this._show,this.delayShow)},_show:function(){for(;sn&&!this.isChildOf(sn)&&!this.isParentOf(sn);){var t=Vt(sn);sn._hide(),sn=t}this.shown=!0,this.tracker.init(),(sn=this).$emit(rn)},hide:function(){this.clearTimers(),this.isDelaying=this.tracker.movesTo(this.$el),this.isDelaying?this.hideTimer=setTimeout(this.hide,200):this.hideTimer=setTimeout(this._hide,this.delayHide)},_hide:function(){if(this.shown=!1,this.tracker.cancel(),sn===this){var t=Vt(sn);sn=t||null}this.$emit("hide")},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null},toggle:function(){this.shown?this._hide():this.show()}},mounted:function(){var t=this,e=this,n=e.on,r=e.show,i=e.hide,o=e.toggle,a=e.mode,s=e.clearTimers;this.$nextTick(function(){(/click/.test(a)||Ve)&&n(t.$refs.target,"click",o),/hover/.test(a)&&(n(t.$refs.target,Pe,function(t){ln(t)||(t.preventDefault(),r())}),n(t.$refs.target,Re,function(t){ln(t)||(t.preventDefault(),i())}),n(t.$el,Re,i),n(t.$el,Pe,s))})}},ye],directives:{VkRoot:{inserted:function(t,e,n){n.context.$nextTick(function(){n.context.$root.$el.appendChild(t)})}},VkPosition:me},props:Ie,methods:{isParentOf:function(t){return y(Ct(t),this)},isChildOf:function(t){return y(Ct(this),t)},queryElement:function(t){return k(t)?t:w(t)?Ot(this.$vnode.context.$refs,t)||be(t,this.$el):t}},created:function(){this.tracker=new xe},beforeDestroy:function(){this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},pn={name:"VkDropdown",extends:fn,props:{mainClass:{default:"uk-dropdown"}}},hn={functional:!0,props:{tag:{type:String,default:"div"},divided:{type:Boolean,default:!1},matched:{type:Boolean,default:!1},gutter:{type:String,validator:function(t){return!t||/^(small|medium|large|collapse)$/.test(t)}}},render:function(t,e){var n,r=e.props,i=e.data,o=e.children,a=r.tag,s=r.gutter,u=r.divided;return t(a,At(i,{class:["uk-grid",(n={"uk-grid-match":r.matched,"uk-grid-divider":u},n["uk-grid-"+s]=s,n)]}),o)}},vn="__vkMargin",mn={bind:function(t,e,n){t[vn]={}},inserted:function(t,e,n){n.context.$nextTick(function(){return gn(t,{binding:e,vnode:n})}),t[vn].unbind=W(window,"resize",function(){return gn(t,{binding:e,vnode:n})})},componentUpdated:function(t,e,n){n.context.$nextTick(function(){return gn(t,{binding:e,vnode:n})})},unbind:function(t){t[vn]&&(t[vn].unbind(),delete t[vn])}};function gn(t,e){var n,r=(n=e.binding.value,O({onUpdate:V,margin:"uk-margin-small-top",firstColumn:"uk-first-column"},n)),i=t.children;if(i.length&&F(t)){var o=function(t){var e={},n=[[]];e.stacks=!0;for(var r=0;r<t.length;r++){var i=t[r],o=i.getBoundingClientRect();if(o.height)for(var a=n.length-1;0<=a;a--){var s=n[a];if(!s[0]){s.push(i);break}var u=s[0].getBoundingClientRect();if(o.top>=Math.floor(u.bottom)){n.push([i]);break}if(Math.floor(o.bottom)>u.top){if(e.stacks=!1,o.left<u.left&&!Ne){s.unshift(i);break}s.push(i);break}if(0===a){n.unshift([i]);break}}}return e.rows=n,e}(i);o.rows.forEach(function(t,n){return t.forEach(function(t,e){mt(t,r.margin,0!==n),mt(t,r.firstColumn,0===e)})}),r.onUpdate(t,o)}}var kn,yn,bn={name:"VkGrid",directives:{VkMargin:mn},props:O({},hn.props,{margin:{type:String,default:"uk-grid-margin"},firstColumn:{type:String,default:"uk-first-column"}}),render:function(t){var e=this.margin,n=this.firstColumn;return t(hn,{props:this.$props,directives:[{name:"vk-margin",value:{margin:e,firstColumn:n,onUpdate:function(t,e){mt(t,"uk-grid-stack",e.stacks)}}}]},this.$slots.default)}},wn={functional:!0,props:{icon:{type:String,required:!0},ratio:{type:[Number,String],default:1}},render:function(t,e){var n=e.data,r=e.props,i=r.icon,o=r.ratio,a=n.attrs||{},s=t("vk-icons-"+i,{attrs:{width:a.width,height:a.height,viewBox:a.viewBox}});return 1!==o&&(s.data.attrs.width*=o,s.data.attrs.height*=o,s.data.attrs.ratio=o),s}},$n={functional:!0,render:function(t,e){var n=e.data,r=e.children;return t("span",At(n,{class:"uk-icon"}),r)}},xn={functional:!0,props:{reset:{type:Boolean,default:!1}},render:function(t,e){var n=e.data,r=e.props,i=e.children;return t("a",At(n,{class:["uk-icon",{"uk-icon-link":r.reset}]}),i)}},Sn={functional:!0,render:function(t,e){var n=e.data,r=e.children;return t("a",At(n,{class:"uk-icon uk-icon-button"}),r)}},Tn={functional:!0,props:{src:{type:String,required:!0}},render:function(t,e){return t("span",At(e.data,{class:"uk-icon uk-icon-image",style:{"background-image":"url("+e.props.src+")"}}))}},Bn={name:"VkIcon",functional:!0,props:wn.props,render:function(t,e){var n=e.data,r=e.props;return t($n,n,[t(wn,At(n,{props:r}))])}},_n={name:"VkIconLink",functional:!0,props:O({},wn.props,xn.props),render:function(t,e){var n=At(e.data,{props:e.props});return t(xn,n,[t(wn,n)])}},Nn={name:"VkIconButton",functional:!0,props:wn.props,render:function(t,e){var n=e.data,r=e.props;return t(Sn,n,[t(wn,At(n,{props:r}))])}},On={name:"VkIconImage",functional:!0,props:Tn.props,render:Tn.render},En={functional:!0,props:{href:String,target:String,active:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.active,a=n.href,s=n.target;return t("li",At(r,{class:{"uk-active":o}}),[t(xn,{attrs:{href:a,target:s}},i)])}},Vn={name:"VkIconnav",functional:!0,render:{functional:!0,render:function(t,e){var n=e.data,r=e.children;return t("ul",At(n,{class:"uk-iconnav"}),r)}}.render},Cn={name:"VkIconnavVertical",functional:!0,render:{functional:!0,render:function(t,e){var n=e.data,r=e.children;return t("ul",At(n,{class:"uk-iconnav uk-iconnav-vertical"}),r)}}.render},Mn={name:"VkIconnavItem",functional:!0,props:O({icon:{type:String,required:!0}},En.props),render:function(t,e){var n=e.data,r=e.props;return t(En,At(n,{props:r}),[t("vk-icons-"+r.icon)])}},An={functional:!0,props:{type:{type:String,validator:function(t){return!t||/^(success|warning|danger)$/.test(t)}}},render:function(t,e){var n,r=e.data,i=e.props,o=e.children,a=i.type;return t("span",At(r,{class:["uk-label",(n={},n["uk-label-"+a]=a,n)]}),o)}},Pn={name:"VkLabel",functional:!0,props:An.props,render:An.render},Rn="update:show",In="undefined"!=typeof document&&document.documentElement,Dn={functional:!0,render:function(t,e){e.data;var n=e.children,r=e.parent;function i(e,t){r.$root.$el.appendChild(e),e.offsetWidth,X(e,"transitionend",t,!1,function(t){return t.target===e}),dt(e,"uk-open")}return t("transition",{props:{css:!1,appear:!0},on:{beforeEnter:function(){dt(In,"uk-modal-page")},enter:function(t,e){var n=kn!==r&&kn;if(n&&!r.stack)return n.hide(),void X(n.$el,"transitionend",function(){return i(t,e)},!1,function(t){return t.target===n.$el});setTimeout(function(){return i(t,e)},0)},afterEnter:function(t){yn++,(kn=r).$emit("shown")},beforeLeave:function(t){ft(t,"uk-open")},leave:function(e,t){X(e,"transitionend",t,!1,function(t){return t.target===e})},afterLeave:function(t){--yn||ft(In,"uk-modal-page"),kn===r&&(kn=null),r.$emit("hidden")}}},n)}};W(In,"click",function(t){kn&&(t.target===kn.$el&&!kn.stuck&&kn.$emit(Rn,!1))}),W(In,"keyup",function(t){kn&&kn.$emit("keyup",t)});var Hn="undefined"!=typeof document&&document.documentElement,Ln={mixins:[ye],props:{show:{type:Boolean,default:!1}},methods:{hide:function(){this.$emit(Rn,!1)}},beforeDestroy:function(){this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),yn||ft(Hn,"uk-modal-page")}};function jn(t,e){var n=z(t,".uk-modal"),r=z(t,".uk-modal-dialog");if(r&&n){var i=wt(t,"maxHeight");wt(t,"maxHeight",150),wt(t,"maxHeight",Math.max(150,150+ne(n)-r.offsetHeight)),i!==wt(t,"maxHeight")&&jn(t,e)}}var Un={functional:!0,props:{expand:{type:Boolean,default:!1}},render:function(t,e){var n=e.children;return t("div",At(e.data,{class:["uk-modal",{"uk-modal-container":e.props.expand}],style:{display:"block"}}),n)}},zn={functional:!0,render:function(t,e){var n=e.children,r=e.data;e.props;return t("div",At(r,{class:"uk-modal uk-modal-full",style:{display:"block"}}),n)}},qn={functional:!0,render:function(t,e){var n=e.props;return t("svg",{attrs:{version:"1.1",width:n.width||14,height:n.height||14,viewBox:n.viewBox||"0 0 14 14"},domProps:{innerHTML:'<path fill="none" stroke="#000" stroke-width="1.1" d="M1 1l12 12M13 1L1 13"/>'}})}},Fn={functional:!0,render:function(t,e){var n=e.props;return t("svg",{attrs:{version:"1.1",width:n.width||20,height:n.height||20,viewBox:n.viewBox||"0 0 20 20"},domProps:{innerHTML:'<path fill="none" stroke="#000" stroke-width="1.4" d="M1 1l18 18M19 1L1 19"/>'}})}},Yn={functional:!0,props:{large:{type:Boolean,default:!1},outside:{type:Boolean,default:!1}},render:function(t,e){var n,r=e.data,i=e.props,o=i.large,a=i.outside;return t("button",At(r,{class:["uk-close uk-icon",(n={"uk-close-large":o},n["uk-modal-close-outside"]=a,n["uk-modal-close-default"]=!a,n)],attrs:{type:"button"}}),[t(o?Fn:qn)])}},Jn={functional:!0,props:{large:{type:Boolean,default:!1}},render:function(t,e){var n=e.data,r=e.props.large;return t("button",At(n,{class:["uk-close uk-icon uk-modal-close-full",{"uk-close-large":r}],attrs:{type:"button"}}),[t(r?Fn:qn)])}},Wn={functional:!0,props:{tag:{type:String,default:"h2"}},render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,At(r,{class:"uk-modal-title"}),i)}},Kn={functional:!0,render:function(t,e){e.props;var n=e.data,r=e.children;return t("div",At(n,{class:"uk-modal-body"}),r)}},Xn={functional:!0,render:function(t,e){e.props;var n=e.data,r=e.children;return t("div",At(n,{class:"uk-modal-dialog"}),r)}},Qn={functional:!0,render:function(t,e){e.props;var n=e.data,r=e.children;return t("div",At(n,{class:"uk-modal-footer"}),r)}},Gn={functional:!0,render:function(t,e){e.props;var n=e.data,r=e.children;return t("div",At(n,{class:"uk-modal-header"}),r)}},Zn={name:"VkModal",extends:Ln,directives:{VkModalOverflowAuto:{bind:function(t,e){t.vkModalOverflowAutoOff=W(window,"resize",function(){return jn(t,e)}),dt(t,"uk-overflow-auto")},inserted:function(t,e,n){n.context.$nextTick(function(){return jn(t,e)})},componentUpdated:function(t,e){jn(t,e)},unbind:function(t){t.vkModalOverflowAutoOff()}}},props:{stuck:{type:Boolean,default:!1},overflowAuto:{type:Boolean,default:!1},center:{type:Boolean,default:!1},size:{type:String,default:""},stack:{type:Boolean,default:!1}},computed:{widthClasses:function(){return this.size?this.size.split(" ").map(function(t){return"uk-width-"+t}):""}},render:function(t){var e=this,n={class:{"uk-flex uk-flex-top":this.center},style:{display:this.center?"flex":"block"},props:{expand:"container"===this.size},directives:[{name:"show",value:this.show}],on:{}};Object.keys(this.$slots).forEach(function(t){return E(e.$slots[t],function(t){t.fnOptions&&"VkModalClose"===t.fnOptions.name&&O(t.data,{on:O({click:function(t){return e.$emit(Rn,!1)}},t.data.on||{})})})});var r=t(Un,n,[t(Xn,{class:[this.widthClasses,{"uk-margin-auto-vertical":this.center}]},[this.$slots.dialog&&this.$slots.dialog,this.$slots.header&&t(Gn,this.$slots.header),this.$slots.default&&t(Kn,{directives:this.overflowAuto?[{name:"vk-modal-overflow-auto"}]:[]},this.$slots.default),this.$slots.footer&&t(Qn,this.$slots.footer)])]);return t(Dn,[r])}},tr="__vkHeightViewport",er={bind:function(t,e,n){t[tr]={}},inserted:function(t,e,n){n.context.$nextTick(function(){return nr(t,{binding:e,vnode:n})}),t[tr].unbind=W(window,"resize",function(){return nr(t,{binding:e,vnode:n})})},componentUpdated:function(t,e,n){n.context.$nextTick(function(){return nr(t,{binding:e,vnode:n})})},unbind:function(t){t[tr]&&(t[tr].unbind(),delete t[tr])}};function nr(t,e){var n,r,i,o=(n=e.binding,r=n.value,i=n.modifiers,O({minHeight:0,expand:!1,offsetTop:!1,offsetBottom:!1},i,r));wt(t,"boxSizing","border-box");var a,s=ne(window),u=0;if(o.expand){wt(t,{height:"",minHeight:""});var l=s-rr(document.documentElement);0<l&&(a=rr(t)+l)}else{var c=te(t).top;c<s/2&&o.offsetTop&&(u+=c),!0===o.offsetBottom?u+=rr(t.nextElementSibling):x(o.offsetBottom)?u+=s/100*o.offsetBottom:o.offsetBottom&&p(o.offsetBottom,"px")?u+=T(o.offsetBottom):w(o.offsetBottom)&&(u+=rr(P(o.offsetBottom,t))),a=u?"calc(100vh - "+u+"px)":"100vh"}if(a){wt(t,{height:"",minHeight:a});var d=t.offsetHeight;o.minHeight&&o.minHeight>d&&wt(t,"minHeight",o.minHeight),d<=s-u&&wt(t,"height",a)}}function rr(t){return t&&(t.offsetHeight||0)}var ir={name:"VkModalFull",extends:Ln,directives:{VkHeightViewport:er},render:function(t){var e=this,n={props:{expand:"full"},directives:[{name:"show",value:this.show}]};Object.keys(this.$slots).forEach(function(t){return E(e.$slots[t],function(t){t.fnOptions&&"VkModalFullClose"===t.fnOptions.name&&O(t.data,{on:O({click:function(t){return e.$emit(Rn,!1)}},t.data.on||{})})})});var r=t(zn,n,[t(Xn,{directives:[{name:"vk-height-viewport"}]},this.$slots.default)]);return t(Dn,[r])}},or={name:"VkModalClose",functional:!0,props:Yn.props,render:Yn.render},ar={name:"VkModalFullClose",functional:!0,props:Jn.props,render:Jn.render},sr={name:"VkModalTitle",functional:!0,props:Wn.props,render:Wn.render},ur={functional:!0,props:{center:{type:Boolean,default:!1},type:{type:String,default:"default",validator:function(t){return/^(default|primary|blank)$/.test(t)}}},render:function(t,e){var n,r=e.props,i=e.data,o=e.children,a=r.center,s=r.type;return t("ul",At(i,{class:["uk-nav",(n={"uk-nav-center":a},n["uk-nav-"+s]=s,n)]}),o)}},lr={functional:!0,props:{icon:{},href:String,target:String,title:{type:String,required:!0},active:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,r=e.data,i=n.active,o=n.icon,a=n.title,s=n.href,u=n.target,l=a;return o&&(l=[t($n,{class:"uk-margin-small-right"},[o]),t("span",{class:"uk-text-middle"},a)]),t("li",At(r,{class:{"uk-active":i}}),[t("a",{attrs:{href:s,target:u}},l)])}},cr={functional:!0,render:function(t,e){return t("li",At(e.data,{class:"uk-nav-divider"}))}},dr={functional:!0,props:{title:{type:String,required:!0}},render:function(t,e){var n=e.data,r=e.props;return t("li",At(n,{class:"uk-nav-header"}),r.title)}},fr={functional:!0,props:{href:String,target:String,title:{type:String,required:!0}},render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.title,a=n.href,s=n.target;return t("li",At(r,{class:"uk-parent"}),[t("a",{attrs:{href:a,target:s}},[o]),t("ul",{class:"uk-nav-sub"},i)])}},pr={name:"VkNav",functional:!0,props:ur.props,render:ur.render},hr={name:"VkNavDropdown",functional:!0,render:{functional:!0,render:function(t,e){var n=e.data,r=e.children;return t("ul",At(n,{class:"uk-nav uk-dropdown-nav"}),r)}}.render},vr={name:"VkNavItem",functional:!0,props:O({},lr.props,{icon:{type:String}}),render:function(t,e){var n=e.data,r=e.props;return r.icon=r.icon&&t("vk-icons-"+r.icon),t(lr,At(n,{props:r}))}},mr={name:"VkNavItemDivider",functional:!0,render:cr.render},gr={name:"VkNavItemHeader",functional:!0,props:dr.props,render:dr.render},kr={name:"VkNavItemParent",functional:!0,props:fr.props,render:fr.render},yr={functional:!0,props:{align:{type:String,default:"left",validator:function(t){return/^(left|center(-left|-right)?|right)$/.test(t)}}},render:function(t,e){var n=e.data,r=e.props,i=e.children,o=r.align,a=/center-(left|right)/.test(o);return t("div",At(n,{class:"uk-navbar-"+o}),[a?t("div",i):i])}};function br(t,e){return[(e.left||e.default)&&t(yr,[e.left,e.default]),(e.center||e["center-left"]||e["center-right"])&&t(yr,{props:{align:"center"}},[e["center-left"]&&t(yr,{props:{align:"center-left"}},e["center-left"]),e.center&&e.center,e["center-right"]&&t(yr,{props:{align:"center-right"}},e["center-right"])]),e.right&&t(yr,{props:{align:"right"}},e.right)]}var wr={functional:!0,props:{container:{type:Boolean,default:!0},transparent:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,r=e.data,i=e.slots,o=n.container,a=n.transparent;return t("nav",At(r,{class:["uk-navbar",{"uk-navbar-container":o&&!a,"uk-navbar-transparent":a}]}),br(t,i()))}},$r={functional:!0,props:{expanded:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,r=e.data,i=e.slots,o=n.expanded;return t("nav",At(r,{class:["uk-navbar-container",{"uk-navbar-transparent":n.transparent}]}),[t("div",{class:["uk-container",{"uk-container-expand":o}]},[t("div",{class:"uk-navbar"},br(t,i()))])])}},xr={functional:!0,props:{slide:{type:Boolean,default:!1}},render:function(t,e){return t("div",At(e.data,{class:["uk-navbar-dropbar",{"uk-navbar-dropbar-slide":e.props.slide}]}))}},Sr={functional:!0,render:function(t,e){var n=e.props;return t("svg",{attrs:{version:"1.1",width:n.width||20,height:n.height||20,viewBox:n.viewBox||"0 0 20 20"},domProps:{innerHTML:'<path d="M0 9h20v2H0zM0 3h20v2H0zM0 15h20v2H0z"/>'}})}},Tr={functional:!0,props:{title:{type:String,default:""},icon:{type:Boolean,default:!0}},render:function(t,e){var n=e.props,r=e.data,i=(e.children,n.icon),o=n.title,a=i&&t($n,{class:"uk-navbar-toggle-icon"},[t(Sr)]);return t("a",At(r,{class:"uk-navbar-toggle"}),[a,o&&t("span",{class:"uk-margin-small-left"},o)])}},Br={functional:!0,props:{icon:{},href:String,target:String,title:{type:String},subtitle:{type:String},active:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.active,a=n.title,s=n.subtitle,u=n.icon,l=n.href,c=n.target,d=u&&t($n,{class:"uk-margin-small-right"},[u]),f=s&&t("div",[a,t("div",{class:"uk-navbar-subtitle"},s)]);return t("li",At(r,{class:{"uk-active":o}}),[t("a",{attrs:{href:l,target:c}},[d,f||a]),i])}},_r={functional:!0,render:function(t,e){var n=e.data,r=e.children;return t("ul",At(n,{class:"uk-nav uk-navbar-dropdown-nav"}),r)}},Nr={name:"VkNavbar",functional:!0,props:wr.props,render:wr.render},Or={name:"VkNavbarFull",functional:!0,props:$r.props,render:$r.render},Er={name:"VkNavbarDropbar",props:{mode:{type:String,default:"slide",validator:function(t){return/^(slide|push)$/.test(t)}},duration:{type:Number,default:200}},methods:{transitionDropbar:function(t){var e=t,n=T(wt(e,"margin-top")),r=T(wt(e,"margin-bottom")),i=e.offsetHeight+n+r;this.transitionTo(i,e)},transitionTo:function(t,e){var n=this.$refs.dropbar,r=F(n)?ne(n):0;return wt(e=r<t&&e,{height:r,overflow:"hidden"}),ne(n,r),Fe.cancel([e,n]),Fe.start([e,n],{height:t},this.duration).catch(V).finally(function(){return wt(e,{height:"",overflow:""})})}},mounted:function(){var e=this;Ot(this,"$children",[]).filter(function(t){return/NavbarNavDropdown/.test(t.$options.name)}).map(function(t){return t.$children[0]}).forEach(function(t){t.$vnode.data.class["uk-navbar-dropdown-dropbar"]=!0,t.$on("show",function(){e.$nextTick(function(){e.transitionDropbar(t.$el)})}),t.$on("hide",function(){e.$nextTick(function(){sn&&J(sn.$el,e.$el)||e.transitionDropbar(t.$el)})})})},render:function(t){return t("div",{class:"uk-position-relative"},[this.$slots.default,t(xr,{ref:"dropbar",props:{slide:"slide"===this.mode}})])}},Vr={name:"VkNavbarItem",functional:!0,render:{functional:!0,render:function(t,e){var n=e.data,r=e.children;return t("div",At(n,{class:"uk-navbar-item"}),r)}}.render},Cr={name:"VkNavbarLogo",functional:!0,render:{functional:!0,render:function(t,e){var n=e.data,r=e.children;return t("span",At(n,{class:"uk-navbar-item uk-logo"}),r)}}.render},Mr={name:"VkNavbarToggle",functional:!0,props:Tr.props,render:Tr.render},Ar={name:"VkNavbarNav",functional:!0,render:{functional:!0,render:function(t,e){var n=e.data,r=e.children;return t("ul",At(n,{class:"uk-navbar-nav"}),r)}}.render},Pr={name:"VkNavbarNavItem",functional:!0,props:O({},Br.props,{icon:{type:String}}),render:function(t,e){var n=e.data,r=e.props;return r.icon=r.icon&&t("vk-icons-"+r.icon),t(Br,At(n,{props:r}))}},Rr={name:"VkNavbarNavDropdown",props:{title:{type:String,required:!0},subtitle:{type:String},justified:{type:Boolean,default:!1},align:{type:String,default:Ne?"right":"left",validator:function(t){return/^(left|center|right)$/.test(t)}},navbarAligned:{type:Boolean,default:!1},mode:fn.props.mode,offset:fn.props.offset,animation:fn.props.animation,duration:fn.props.duration,delayShow:fn.props.delayShow,delayHide:fn.props.delayHide},computed:{navbar:function(){return P("!.uk-navbar",this.$el)},dropbar:function(){return!!/NavbarDropbar/.test(Ot(this,"$parent.$options.name",""))&&this.$parent}},mounted:function(){var t=this.mode,e=this.$refs.drop,n=e.on,r=e.toggle,i=e.show,o=e.hide,a=this.$refs.drop.$refs.target;(/click/.test(t)||Ve)&&n(a,"click",r),/hover/.test(t)&&(n(a,Pe,function(t){ln(t)||(t.preventDefault(),i())}),n(this.dropbar?this.dropbar.$el:a,Re,function(t){ln(t)||(t.preventDefault(),o())}))},render:function(e){var t,n,r,i=this,o=this,a=o.title,s=o.justified,u=o.mode,l=o.align,c=o.navbarAligned,d=o.subtitle,f=this.$slots.default||[],p=f.filter(function(t){return t.tag}),h=p.length,v=d&&e("div",[a,e("div",{class:"uk-navbar-subtitle"},d)]);return e("li",[e("a",[v||a]),e(fn,{on:(t={},t.show=function(t){i.$forceUpdate()},t),nativeOn:(n={},n[Pe]=function(t){i.$refs.drop.clearTimers(),/hover/.test(u)&&i.$refs.drop.show()},n[Re]=function(t){!i.dropbar&&/hover/.test(u)&&i.$refs.drop.hide()},n),ref:"drop",class:(r={"uk-navbar-dropdown-dropbar":Boolean(this.dropbar),"uk-navbar-dropdown-boundary":s||c},r["uk-navbar-dropdown-width-"+h]=1<h&&!s,r),props:O({},this.$props,{mode:"",position:s?"bottom-justify":"bottom-"+l,mainClass:"uk-navbar-dropdown",flip:s?"x":void 0,boundary:"!nav",boundaryAlign:s||c})},[2<=h?e(bn,{class:["uk-navbar-dropdown-grid","uk-child-width-1-"+h+(2<h?"@m":"")]},p.map(function(t){return e("div",[t])})):f])])}},Ir={name:"VkNavbarNavDropdownNav",functional:!0,render:_r.render},Dr="__vkNotification";var Hr,Lr,jr,Ur={functional:!0,render:function(t,e){var n=e.data,r=e.children;e.parent;return t("transition-group",At(n,{props:{css:!1,appear:!0,tag:"div"},on:{enter:function(t,e){var n=T(wt(t,"marginBottom"));wt(t,{opacity:0,marginTop:-t.offsetHeight,marginBottom:0}),Fe.start(t,{opacity:1,marginTop:0,marginBottom:n}).then(e)},leave:function(t,e){Fe.start(t,{opacity:0,marginTop:-t.offsetHeight,marginBottom:0}).then(e)}}}),r)}},zr={functional:!0,props:{position:{type:String,default:"top-center",validator:function(t){return/^(top|bottom)-(left|center|right)$/.test(t)}}},render:function(t,e){var n=e.props,r=e.data,i=e.children;return t("div",At(r,{class:["uk-notification","uk-notification-"+n.position]}),i)}},qr={functional:!0,render:function(t,e){var n=e.data;return t(xn,At(n,{class:"uk-notification-close uk-close"}),[t(qn)])}},Fr={functional:!0,props:{status:{type:String,default:"",validator:function(t){return!t||/^(primary|success|warning|danger)$/.test(t)}}},render:function(t,e){var n,r=e.props,i=e.data,o=e.children,a=r.status;return t("div",At(i,{class:["uk-notification-message",(n={},n["uk-notification-message-"+a]=a,n)]}),o)}},Yr={name:"VkNotification",directives:{MessageDirective:{inserted:function(e,t,n){e[Dr]={};var r=function(){return t=e,clearTimeout(t[Dr].timer),void Q(t,"close");var t},i=e[Dr].options=t.value;i.timeout&&(e[Dr].timer=setTimeout(r,i.timeout)),W(e,"click",r),W(e,Pe,function(){e[Dr].timer&&clearTimeout(e[Dr].timer)}),W(e,Re,function(){i.timeout&&(e[Dr].timer=setTimeout(r,i.timeout))