UNPKG

react-settings-panel

Version:
3 lines (2 loc) 122 kB
/*! UIkit 3.0.0-beta.38 | http://www.getuikit.com | (c) 2014 - 2017 YOOtheme | MIT License */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("uikit",e):t.UIkit=e()}(this,function(){"use strict";var t=2,e="setImmediate"in window?setImmediate:setTimeout;function i(e){this.state=t,this.value=void 0,this.deferred=[];var i=this;try{e(function(t){i.resolve(t)},function(t){i.reject(t)})}catch(t){i.reject(t)}}i.reject=function(t){return new i(function(e,i){i(t)})},i.resolve=function(t){return new i(function(e,i){e(t)})},i.all=function(t){return new i(function(e,n){var o=0,r=[];0===t.length&&e(r);function s(i){return function(n){r[i]=n,(o+=1)===t.length&&e(r)}}for(var a=0;a<t.length;a+=1)i.resolve(t[a]).then(s(a),n)})},i.race=function(t){return new i(function(e,n){for(var o=0;o<t.length;o+=1)i.resolve(t[o]).then(e,n)})};var n=i.prototype;n.resolve=function(e){var i=this;if(i.state===t){if(e===i)throw new TypeError("Promise settled with itself.");var n=!1;try{var o=e&&e.then;if(null!==e&&He(e)&&Pe(o))return void o.call(e,function(t){n||i.resolve(t),n=!0},function(t){n||i.reject(t),n=!0})}catch(t){return void(n||i.reject(t))}i.state=0,i.value=e,i.notify()}},n.reject=function(e){if(this.state===t){if(e===this)throw new TypeError("Promise settled with itself.");this.state=1,this.value=e,this.notify()}},n.notify=function(){var i=this;e(function(){if(i.state!==t)for(;i.deferred.length;){var e=i.deferred.shift(),n=e[0],o=e[1],r=e[2],s=e[3];try{0===i.state?Pe(n)?r(n.call(void 0,i.value)):r(i.value):1===i.state&&(Pe(o)?r(o.call(void 0,i.value)):s(i.value))}catch(t){s(t)}}})},n.then=function(t,e){var n=this;return new i(function(i,o){n.deferred.push([t,e,i,o]),n.notify()})},n.catch=function(t){return this.then(void 0,t)};var o=window,r=document,s=r.documentElement,a=o.MutationObserver,l=o.requestAnimationFrame,h="ontouchstart"in o,u=o.PointerEvent,c="ontouchstart"in o||o.DocumentTouch&&r instanceof DocumentTouch||navigator.pointerEnabled&&navigator.maxTouchPoints,d=c?"mousedown "+(h?"touchstart":"pointerdown"):"mousedown",f=c?"mousemove "+(h?"touchmove":"pointermove"):"mousemove",p=c?"mouseup "+(h?"touchend":"pointerup"):"mouseup",m=c&&u?"pointerenter":"mouseenter",g=c&&u?"pointerleave":"mouseleave";var v={};!function(){var t=r.createElement("_").classList;t&&(t.add("a","b"),t.toggle("c",!1),v.Multiple=t.contains("b"),v.Force=!t.contains("c"),v.ClassList=!0),t=null}();function w(t,e,i){if(He(e))for(var n in e)w(t,n,e[n]);else{if(Ye(i))return(t=ie(t))&&t.getAttribute(e);ne(t).forEach(function(t){Pe(i)&&(i=i.call(t,w(t,e))),null===i?y(t,e):t.setAttribute(e,i)})}}function b(t,e){return ne(t).some(function(t){return t.hasAttribute(e)})}function y(t,e){t=ne(t),e.split(" ").forEach(function(e){return t.forEach(function(t){return t.removeAttribute(e)})})}function x(t,e,i,n){w(t,e,function(t){return t?t.replace(i,n):t})}function k(t,e){for(var i=0,n=[e,"data-"+e];i<n.length;i++)if(b(t,n[i]))return w(t,n[i])}function $(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];S(t,e,"add")}function I(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];S(t,e,"remove")}function T(t,e){x(t,"class",new RegExp("(^|\\s)"+e+"(?!\\S)","g"),"")}function C(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];e[0]&&I(t,e[0]),e[1]&&$(t,e[1])}function E(t,e){return v.ClassList&&ne(t).some(function(t){return t.classList.contains(e)})}function _(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];if(v.ClassList&&e.length){var n=Fe((e=A(e))[e.length-1])?void 0:e.pop();e=e.filter(Boolean),ne(t).forEach(function(t){for(var i=t.classList,o=0;o<e.length;o++)v.Force?i.toggle(e[o],n):i[(Ye(n)?!i.contains(e[o]):n)?"add":"remove"](e[o])})}}function S(t,e,i){e=A(e).filter(Boolean),v.ClassList&&e.length&&ne(t).forEach(function(t){var n=t.classList;v.Multiple?n[i].apply(n,e):e.forEach(function(t){return n[i](t)})})}function A(t){return t.reduce(function(t,e){return t.concat.call(t,Fe(e)&&Be(e," ")?e.trim().split(" "):e)},[])}var N={"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 D(t,e,i){return ne(t).map(function(t){if(Fe(e)){if(e=z(e),Ye(i))return B(t,e);i||0===i?t.style[e]=Re(i)&&!N[e]?i+"px":i:t.style.removeProperty(e)}else{if(Oe(e)){var n=M(t);return e.reduce(function(t,e){return t[e]=n[z(e)],t},{})}He(e)&&ii(e,function(e,i){return D(t,i,e)})}return t})[0]}function M(t,e){return(t=ie(t)).ownerDocument.defaultView.getComputedStyle(t,e)}function B(t,e,i){return M(t,i)[e]}var O={};function P(t){if(!(t in O)){var e=$t(s,r.createElement("div"));$(e,"var-"+t);try{O[t]=B(e,"content",":before").replace(/^["'](.*)["']$/,"$1"),O[t]=JSON.parse(O[t])}catch(t){}s.removeChild(e)}return O[t]}var H={};function z(t){var e=H[t];return e||(e=H[t]=function(t){if((t=xe(t))in L)return t;var e,i=W.length;for(;i--;)if((e="-"+W[i]+"-"+t)in L)return e}(t)||t),e}var W=["webkit","moz","ms"],L=r.createElement("_").style;var j={width:["x","left","right"],height:["y","top","bottom"]};function F(t,e,i,n,o,r,s,a){i=Q(i),n=Q(n);var l={element:i,target:n};if(!t||!e)return l;var h=R(t),u=R(e),c=u;return Z(c,i,h,-1),Z(c,n,u,1),o=K(o,h.width,h.height),r=K(r,u.width,u.height),o.x+=r.x,o.y+=r.y,c.left+=o.x,c.top+=o.y,a=R(a||G(t)),s&&ii(j,function(t,e){var r=t[0],d=t[1],f=t[2];if(!0===s||Be(s,r)){var p=i[r]===d?-h[e]:i[r]===f?h[e]:0,m=n[r]===d?u[e]:n[r]===f?-u[e]:0;if(c[d]<a[d]||c[d]+h[e]>a[f]){var g=h[e]/2,v="center"===n[r]?-u[e]/2:0;"center"===i[r]&&(w(g,v)||w(-g,-v))||w(p,m)}}function w(t,i){var n=c[d]+t+i-2*o[r];if(n>=a[d]&&n+h[e]<=a[f])return c[d]=n,["element","target"].forEach(function(i){l[i][r]=t?l[i][r]===j[e][1]?j[e][2]:j[e][1]:l[i][r]}),!0}}),V(t,c),l}function V(t,e){t=ie(t);{if(!e)return R(t);var i=V(t),n=D(t,"position");["left","top"].forEach(function(o){if(o in e){var r=D(t,o);t.style[o]=e[o]-i[o]+Xe("absolute"===n&&"auto"===r?Y(t)[o]:r)+"px"}})}}function R(t){var e=G(t=ie(t)),i=e.pageYOffset,n=e.pageXOffset;if(We(t)){var o=t.innerHeight,r=t.innerWidth;return{top:i,left:n,height:o,width:r,bottom:i+o,right:n+r}}var s=!1;wt(t)||(s=t.style.display,t.style.display="block");var a=t.getBoundingClientRect();return!1!==s&&(t.style.display=s),{height:a.height,width:a.width,top:a.top+i,left:a.left+n,bottom:a.bottom+i,right:a.right+n}}function Y(t){var e=function(t){var e=ie(t).offsetParent;for(;e&&"static"===D(e,"position");)e=e.offsetParent;return e||it(t)}(t=ie(t)),i=e===it(t)?{top:0,left:0}:V(e);return["top","left"].reduce(function(n,o){var r=Te(o);return n[o]-=i[o]+(Xe(D(t,"margin"+r))||0)+(Xe(D(e,"border"+r+"Width"))||0),n},V(t))}var q=X("height"),U=X("width");function X(t){var e=Te(t);return function(i,n){if(i=ie(i),Ye(n)){if(We(i))return i["inner"+e];if(Le(i)){var o=i.documentElement;return Math.max(o.offsetHeight,o.scrollHeight)}return n="auto"===(n=D(i,t))?i["offset"+e]:Xe(n)||0,J(t,i,n)}D(i,t,n||0===n?J(t,i,n)+"px":"")}}function J(t,e,i){return"border-box"===D(e,"boxSizing")?j[t].slice(1).map(Te).reduce(function(t,i){return t-Xe(D(e,"padding"+i))-Xe(D(e,"border"+i+"Width"))},i):i}function G(t){return We(t)?t:et(t).defaultView}function Z(t,e,i,n){ii(j,function(o,r){var s=o[0],a=o[1],l=o[2];e[s]===l?t[a]+=i[r]*n:"center"===e[s]&&(t[a]+=i[r]*n/2)})}function Q(t){var e=/left|center|right/,i=/top|center|bottom/;return 1===(t=(t||"").split(" ")).length&&(t=e.test(t[0])?t.concat(["center"]):i.test(t[0])?["center"].concat(t):["center","center"]),{x:e.test(t[0])?t[0]:"center",y:i.test(t[1])?t[1]:"center"}}function K(t,e,i){var n=(t||"").split(" "),o=n[0],r=n[1];return{x:o?Xe(o)*(Ae(o,"%")?e/100:1):0,y:r?Xe(r)*(Ae(r,"%")?i/100:1):0}}function tt(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}}function et(t){return ie(t).ownerDocument}function it(t){return et(t).documentElement}var nt="rtl"===w(s,"dir");function ot(){return"complete"===r.readyState||"loading"!==r.readyState&&!s.doScroll}function rt(t){if(ot())t();else var e=function(){i(),n(),t()},i=se(r,"DOMContentLoaded",e),n=se(o,"load",e)}function st(t,e,i,n){return void 0===i&&(i=400),void 0===n&&(n="linear"),we.all(ne(t).map(function(t){return new we(function(o,r){for(var s in e){var a=D(t,s);""===a&&D(t,s,a)}var l=setTimeout(function(){return he(t,"transitionend")},i);le(t,"transitionend transitioncanceled",function(e){var i=e.type;clearTimeout(l),I(t,"uk-transition"),D(t,{"transition-property":"","transition-duration":"","transition-timing-function":""}),"transitioncanceled"===i?r():o()},!1,function(e){var i=e.target;return t===i}),$(t,"uk-transition"),D(t,ei({"transition-property":Object.keys(e).map(z).join(","),"transition-duration":i+"ms","transition-timing-function":n},e))})}))}var at={start:st,stop:function(t){return he(t,"transitionend"),we.resolve()},cancel:function(t){he(t,"transitioncanceled")},inProgress:function(t){return E(t,"uk-transition")}},lt="uk-animation-",ht="uk-cancel-animation";function ut(t,e,i,n,o){var r=arguments;return void 0===i&&(i=200),we.all(ne(t).map(function(t){return new we(function(s,a){if(E(t,ht))requestAnimationFrame(function(){return we.resolve().then(function(){return ut.apply(null,r).then(s,a)})});else{var l=e+" "+lt+(o?"leave":"enter");_e(e,lt)&&(n&&(l+=" uk-transform-origin-"+n),o&&(l+=" "+lt+"reverse")),h(),le(t,"animationend animationcancel",function(e){var i=!1;"animationcancel"===e.type?(a(),h()):(s(),we.resolve().then(function(){i=!0,h()})),requestAnimationFrame(function(){i||($(t,ht),requestAnimationFrame(function(){return I(t,ht)}))})},!1,function(e){var i=e.target;return t===i}),D(t,"animationDuration",i+"ms"),$(t,l)}function h(){D(t,"animationDuration",""),T(t,lt+"\\S*")}})}))}var ct=new RegExp(lt+"(enter|leave)"),dt={in:function(t,e,i,n){return ut(t,e,i,n,!1)},out:function(t,e,i,n){return ut(t,e,i,n,!0)},inProgress:function(t){return ct.test(w(t,"class"))},cancel:function(t){he(t,"animationcancel")}};function ft(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=0),ri(ie(t).getBoundingClientRect(),{top:e,left:i,bottom:e+q(o),right:i+U(o)})}function pt(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=!1);var o=(e=ne(e)).length;return t=Re(t)?Ue(t):"next"===t?i+1:"previous"===t?i-1:Bt(e,t),n?ni(t,0,o-1):(t%=o)<0?t+o:t}var mt={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 gt(t){return mt[ie(t).tagName.toLowerCase()]}var vt={ratio:function(t,e,i){var n,o="width"===e?"height":"width";return(n={})[o]=Math.round(i*t[o]/t[e]),n[e]=i,n},contain:function(t,e){var i=this;return ii(t=ei({},t),function(n,o){return t=t[o]>e[o]?i.ratio(t,o,e[o]):t}),t},cover:function(t,e){var i=this;return ii(t=this.contain(t,e),function(n,o){return t=t[o]<e[o]?i.ratio(t,o,e[o]):t}),t}};function wt(t){return ne(t).some(function(t){return t.offsetHeight})}var bt="input,select,textarea,button";function yt(t){return ne(t).some(function(t){return Jt(t,bt)})}function xt(t){return(t=ie(t)).innerHTML="",t}function kt(t,e){return t=ie(t),Ye(e)?t.innerHTML:$t(t.hasChildNodes()?xt(t):t,e)}function $t(t,e){return t=ie(t),Ct(e,function(e){return t.appendChild(e)})}function It(t,e){return t=ie(t),Ct(e,function(e){return t.parentNode.insertBefore(e,t)})}function Tt(t,e){return t=ie(t),Ct(e,function(e){return t.nextSibling?It(t.nextSibling,e):$t(t.parentNode,e)})}function Ct(t,e){return(t=Fe(t)?Mt(t):t)?"length"in t?ne(t).map(e):e(t):null}function Et(t){ne(t).map(function(t){return t.parentNode&&t.parentNode.removeChild(t)})}function _t(t,e){for(e=ie(It(t,e));e.firstChild;)e=e.firstChild;return $t(e,t),e}function St(t,e){return ne(ne(t).map(function(t){return t.hasChildNodes?_t(ne(t.childNodes),e):$t(t,e)}))}function At(t){ne(t).map(function(t){return t.parentNode}).filter(function(t,e,i){return i.indexOf(t)===e}).forEach(function(t){It(t,t.childNodes),Et(t)})}var Nt=/^\s*<(\w+|!)[^>]*>/,Dt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Mt(t){var e;if(e=Dt.exec(t))return r.createElement(e[1]);var i=r.createElement("div");return Nt.test(t)?i.insertAdjacentHTML("beforeend",t.trim()):i.textContent=t,i.childNodes.length>1?ne(i.childNodes):i.firstChild}function Bt(t,e){return e?ne(t).indexOf(ie(e)):ne((t=ie(t))&&t.parentNode.children).indexOf(t)}var Ot=Array.prototype;function Pt(t,e){return Fe(t)?zt(t)?ie(Mt(t)):ie(jt(t,e,"querySelector")):ie(t)}function Ht(t,e){return Fe(t)?zt(t)?ne(Mt(t)):ne(jt(t,e,"querySelectorAll")):ne(t)}function zt(t){return"<"===t[0]||t.match(/^\s*</)}function Wt(t,e){return Pt(t,qt(t)?e:r)}function Lt(t,e){return Ht(t,qt(t)?e:r)}function jt(t,e,i){if(void 0===e&&(e=r),!t||!Fe(t))return null;var n;qt(t=t.replace(Yt,"$1 *"))&&(n=[],t=t.split(",").map(function(t,i){var o=e;if("!"===(t=t.trim())[0]){var r=t.substr(1).trim().split(" ");o=Zt(e.parentNode,r[0]),t=r.slice(1).join(" ")}return o?(o.id||(o.id="uk-"+Date.now()+i,n.push(function(){return y(o,"id")})),"#"+re(o.id)+" "+t):null}).filter(Boolean).join(","),e=r);try{return e[i](t)}catch(t){return null}finally{n&&n.forEach(function(t){return t()})}}function Ft(t,e){return Ht(t).filter(function(t){return Jt(t,e)})}function Vt(t,e){return Fe(e)?Jt(t,e)||Zt(t,e):t===e||ie(e).contains(ie(t))}var Rt=/(^|,)\s*[!>+~]/,Yt=/([!>+~])(?=\s+[!>+~]|\s*$)/g;function qt(t){return Fe(t)&&t.match(Rt)}var Ut=Element.prototype,Xt=Ut.matches||Ut.msMatchesSelector;function Jt(t,e){return ne(t).some(function(t){return Xt.call(t,e)})}var Gt=Ut.closest||function(t){var e=this;do{if(Jt(e,t))return e;e=e.parentNode}while(e&&1===e.nodeType)};function Zt(t,e){return _e(e,">")&&(e=e.slice(1)),te(t)?t.parentNode&&Gt.call(t,e):ne(t).map(function(t){return t.parentNode&&Gt.call(t,e)}).filter(Boolean)}function Qt(t,e){for(var i=[],n=ie(t).parentNode;n&&1===n.nodeType;)Jt(n,e)&&i.push(n),n=n.parentNode;return i}function Kt(t){return He(t)&&!!t.jquery}function te(t){return t instanceof Node||He(t)&&1===t.nodeType}function ee(t){return t instanceof NodeList||t instanceof HTMLCollection}function ie(t){return te(t)||We(t)||Le(t)?t:ee(t)||Kt(t)?t[0]:Oe(t)?ie(t[0]):null}function ne(t){return te(t)?[t]:ee(t)?Ot.slice.call(t):Oe(t)?t.map(ie).filter(Boolean):Kt(t)?t.toArray():[]}var oe=o.CSS&&CSS.escape||function(t){return t.replace(/([^\x7f-\uFFFF\w-])/g,function(t){return"\\"+t})};function re(t){return Fe(t)?oe.call(null,t):""}function se(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=ce(t),n=i[0],o=i[1],r=i[2],s=i[3],a=i[4];n=fe(n),r&&(s=function(t,e,i){var n=this;return function(o){var r=o.target,s=">"===e[0]?Ht(e,t).reverse().filter(function(t){return Vt(r,t)})[0]:Zt(r,e);s&&(o.delegate=t,o.current=s,i.call(n,o))}}(n,r,s)),s.length>1&&(l=s,s=function(t){return Oe(t.detail)?l.apply(l,[t].concat(t.detail)):l(t)});var l;return o.split(" ").forEach(function(t){return n&&n.addEventListener(t,s,a)}),function(){return ae(n,o,s,a)}}function ae(t,e,i,n){void 0===n&&(n=!1),(t=fe(t))&&e.split(" ").forEach(function(e){return t.removeEventListener(e,i,n)})}function le(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=ce(t),n=i[0],o=i[1],r=i[2],s=i[3],a=i[4],l=i[5],h=se(n,o,r,function(t){var e=!l||l(t);e&&(h(),s(t,e))},a);return h}function he(t,e,i){return pe(t).reduce(function(t,n){return t&&n.dispatchEvent(ue(e,!0,!0,i))},!0)}function ue(t,e,i,n){if(void 0===e&&(e=!0),void 0===i&&(i=!1),Fe(t)){var o=r.createEvent("CustomEvent");o.initCustomEvent(t,e,i,n),t=o}return t}function ce(t){return Fe(t[0])&&(t[0]=Pt(t[0])),Pe(t[2])&&t.splice(2,0,!1),t}function de(t){return"EventTarget"in o?t instanceof EventTarget:t&&"addEventListener"in t}function fe(t){return de(t)?t:ie(t)}function pe(t){return de(t)?[t]:Oe(t)?t.map(fe).filter(Boolean):ne(t)}function me(t,e){return function(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}}var ge=Object.prototype.hasOwnProperty;function ve(t,e){return ge.call(t,e)}var we="Promise"in window?window.Promise:i,be=/(?:^|[-_\/])(\w)/g;var ye=/([a-z\d])([A-Z])/g;function xe(t){return t.replace(ye,"$1-$2").toLowerCase()}var ke=/-(\w)/g;function $e(t){return t.replace(ke,Ie)}function Ie(t,e){return e?e.toUpperCase():""}function Te(t){return t.length?Ie(0,t.charAt(0))+t.slice(1):""}var Ce=String.prototype,Ee=Ce.startsWith||function(t){return 0===this.lastIndexOf(t,0)};function _e(t,e){return Ee.call(t,e)}var Se=Ce.endsWith||function(t){return this.substr(-t.length)===t};function Ae(t,e){return Se.call(t,e)}var Ne=function(t){return~this.indexOf(t)},De=Ce.includes||Ne,Me=Array.prototype.includes||Ne;function Be(t,e){return t&&(Fe(t)?De:Me).call(t,e)}var Oe=Array.isArray;function Pe(t){return"function"==typeof t}function He(t){return null!==t&&"object"==typeof t}function ze(t){return He(t)&&Object.getPrototypeOf(t)===Object.prototype}function We(t){return He(t)&&t===t.window}function Le(t){return He(t)&&9===t.nodeType}function je(t){return"boolean"==typeof t}function Fe(t){return"string"==typeof t}function Ve(t){return"number"==typeof t}function Re(t){return Ve(t)||Fe(t)&&!isNaN(t-parseFloat(t))}function Ye(t){return void 0===t}function qe(t){return je(t)?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function Ue(t){var e=Number(t);return!isNaN(e)&&e}function Xe(t){return parseFloat(t)||0}function Je(t){return Oe(t)?t:Fe(t)?t.split(/,(?![^(]*\))/).map(function(t){return Re(t)?Ue(t):qe(t.trim())}):[t]}var Ge={};function Ze(t){if(Fe(t))if("@"===t[0]){var e="media-"+t.substr(1);t=Ge[e]||(Ge[e]=Xe(P(e)))}else if(isNaN(t))return t;return!(!t||isNaN(t))&&"(min-width: "+t+"px)"}function Qe(t,e,i){return t===Boolean?qe(e):t===Number?Ue(e):"query"===t?Wt(e,i):"list"===t?Je(e):"media"===t?Ze(e):t?t(e):e}function Ke(t){return t?Ae(t,"ms")?Xe(t):1e3*Xe(t):0}function ti(t,e,i){return t.replace(new RegExp(e+"|"+i,"mg"),function(t){return t===e?i:e})}var ei=Object.assign||function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];t=Object(t);for(var n=0;n<e.length;n++){var o=e[n];if(null!==o)for(var r in o)ve(o,r)&&(t[r]=o[r])}return t};function ii(t,e){for(var i in t)if(!1===e.call(t[i],t[i],i))break}function ni(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=1),Math.min(Math.max(t,e),i)}function oi(){}function ri(t,e){return t.left<=e.right&&e.left<=t.right&&t.top<=e.bottom&&e.top<=t.bottom}function si(t,e){return ri({top:t.y,bottom:t.y,left:t.x,right:t.x},e)}function ai(t,e){return new we(function(i,n){var o=ei({data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:oi,responseType:""},e),r=o.xhr;o.beforeSend(o);for(var s in o)if(s in r)try{r[s]=o[s]}catch(t){}r.open(o.method.toUpperCase(),t);for(var a in o.headers)r.setRequestHeader(a,o.headers[a]);se(r,"load",function(){0===r.status||r.status>=200&&r.status<300||304===r.status?i(r):n(ei(Error(r.statusText),{xhr:r,status:r.status}))}),se(r,"error",function(){return n(ei(Error("Network Error"),{xhr:r}))}),se(r,"timeout",function(){return n(ei(Error("Network Timeout"),{xhr:r}))}),r.send(o.data)})}var li={reads:[],writes:[],read:function(t){return this.reads.push(t),hi(),t},write:function(t){return this.writes.push(t),hi(),t},clear:function(t){return ci(this.reads,t)||ci(this.writes,t)},flush:function(){ui(this.reads),ui(this.writes.splice(0,this.writes.length)),this.scheduled=!1,(this.reads.length||this.writes.length)&&hi()}};function hi(){li.scheduled||(li.scheduled=!0,l(li.flush.bind(li)))}function ui(t){for(var e;e=t.shift();)e()}function ci(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}function di(){}di.prototype={positions:[],position:null,init:function(){var t=this;this.positions=[],this.position=null;var e=!1;this.unbind=se(r,"mousemove",function(i){e||(setTimeout(function(){var n=Date.now(),o=t.positions.length;o&&n-t.positions[o-1].time>100&&t.positions.splice(0,o),t.positions.push({time:n,x:i.pageX,y:i.pageY}),t.positions.length>5&&t.positions.shift(),e=!1},5),e=!0)})},cancel:function(){this.unbind&&this.unbind()},movesTo:function(t){if(this.positions.length<2)return!1;var e=V(t),i=this.positions[this.positions.length-1],n=this.positions[0];if(e.left<=i.x&&i.x<=e.right&&e.top<=i.y&&i.y<=e.bottom)return!1;var o=[[{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<=i.x||(e.left>=i.x?(o[0].reverse(),o[1].reverse()):e.bottom<=i.y?o[0].reverse():e.top>=i.y&&o[1].reverse()),!!o.reduce(function(t,e){return t+(fi(n,e[0])<fi(i,e[0])&&fi(n,e[1])>fi(i,e[1]))},0)}};function fi(t,e){return(e.y-t.y)/(e.x-t.x)}var pi={};pi.args=pi.events=pi.init=pi.created=pi.beforeConnect=pi.connected=pi.ready=pi.beforeDisconnect=pi.disconnected=pi.destroy=function(t,e){return t=t&&!Oe(t)?[t]:t,e?t?t.concat(e):Oe(e)?e:[e]:t},pi.update=function(t,e){return pi.args(t,Pe(e)?{read:e}:e)},pi.props=function(t,e){return Oe(e)&&(e=e.reduce(function(t,e){return t[e]=String,t},{})),pi.methods(t,e)},pi.computed=pi.defaults=pi.methods=function(t,e){return e?t?ei({},t,e):e:t};var mi=function(t,e){return Ye(e)?t:e};function gi(t,e){var i,n={};if(e.mixins)for(var o=0,r=e.mixins.length;o<r;o++)t=gi(t,e.mixins[o]);for(i in t)s(i);for(i in e)ve(t,i)||s(i);function s(i){n[i]=(pi[i]||mi)(t[i],e[i])}return n}var vi=0,wi=function(t){this.id=++vi,this.el=ie(t)};wi.prototype.isVideo=function(){return this.isYoutube()||this.isVimeo()||this.isHTML5()},wi.prototype.isHTML5=function(){return"VIDEO"===this.el.tagName},wi.prototype.isIFrame=function(){return"IFRAME"===this.el.tagName},wi.prototype.isYoutube=function(){return this.isIFrame()&&!!this.el.src.match(/\/\/.*?youtube\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)},wi.prototype.isVimeo=function(){return this.isIFrame()&&!!this.el.src.match(/vimeo\.com\/video\/.*/)},wi.prototype.enableApi=function(){var t=this;if(this.ready)return this.ready;var e,n=this.isYoutube(),r=this.isVimeo();return n||r?this.ready=new i(function(s){le(t.el,"load",function(){if(n){var i=function(){return bi(t.el,{event:"listening",id:t.id})};e=setInterval(i,100),i()}}),(a=function(e){return n&&e.id===t.id&&"onReady"===e.event||r&&Number(e.player_id)===t.id},new i(function(t){le(o,"message",function(e,i){return t(i)},!1,function(t){var e=t.data;if(e&&Fe(e)){try{e=JSON.parse(e)}catch(t){return}return e&&a(e)}})})).then(function(){s(),e&&clearInterval(e)});var a;w(t.el,"src",t.el.src+(Be(t.el.src,"?")?"&":"?")+(n?"enablejsapi=1":"api=1&player_id="+vi))}):i.resolve()},wi.prototype.play=function(){var t=this;if(this.isVideo())if(this.isIFrame())this.enableApi().then(function(){return bi(t.el,{func:"playVideo",method:"play"})});else if(this.isHTML5())try{this.el.play()}catch(t){}},wi.prototype.pause=function(){var t=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return bi(t.el,{func:"pauseVideo",method:"pause"})}):this.isHTML5()&&this.el.pause())},wi.prototype.mute=function(){var t=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return bi(t.el,{func:"mute",method:"setVolume",value:0})}):this.isHTML5()&&(this.el.muted=!0,w(this.el,"muted","")))};function bi(t,e){try{t.contentWindow.postMessage(JSON.stringify(ei({event:"command"},e)),"*")}catch(t){}}var yi,xi,ki,$i,Ii={};function Ti(){yi&&clearTimeout(yi),xi&&clearTimeout(xi),ki&&clearTimeout(ki),yi=xi=ki=null,Ii={}}rt(function(){se(r,"click",function(){return $i=!0},!0),se(r,d,function(t){var e=t.target,i=_i(t),n=i.x,o=i.y,r=Date.now();Ii.el="tagName"in e?e:e.parentNode,yi&&clearTimeout(yi),Ii.x1=n,Ii.y1=o,Ii.last&&r-Ii.last<=250&&(Ii={}),Ii.last=r,$i=t.button>0}),se(r,f,function(t){var e=_i(t),i=e.x,n=e.y;Ii.x2=i,Ii.y2=n}),se(r,p,function(t){var e=t.type,i=t.target;Ii.x2&&Math.abs(Ii.x1-Ii.x2)>30||Ii.y2&&Math.abs(Ii.y1-Ii.y2)>30?xi=setTimeout(function(){Ii.el&&(he(Ii.el,"swipe"),he(Ii.el,"swipe"+function(t){var e=t.x1,i=t.x2,n=t.y1,o=t.y2;return Math.abs(e-i)>=Math.abs(n-o)?e-i>0?"Left":"Right":n-o>0?"Up":"Down"}(Ii))),Ii={}}):"last"in Ii?(ki=setTimeout(function(){return Ii.el&&he(Ii.el,"tap")}),Ii.el&&"mouseup"!==e&&Vt(i,Ii.el)&&(yi=setTimeout(function(){yi=null,Ii.el&&!$i&&he(Ii.el,"click"),Ii={}},350))):Ii={}}),se(r,"touchcancel",Ti),se(o,"scroll",Ti)});var Ci=!1;se(r,"touchstart",function(){return Ci=!0},!0),se(r,"click",function(){Ci=!1}),se(r,"touchcancel",function(){return Ci=!1},!0);function Ei(t){return Ci||"touch"===t.pointerType}function _i(t){var e=t.touches,i=t.changedTouches,n=e&&e[0]||i&&i[0]||t;return{x:n.pageX,y:n.pageY}}var Si=Object.freeze({bind:me,hasOwn:ve,Promise:we,Deferred:function(){var t=this;this.promise=new we(function(e,i){t.reject=i,t.resolve=e})},classify:function(t){return t.replace(be,function(t,e){return e?e.toUpperCase():""})},hyphenate:xe,camelize:$e,ucfirst:Te,startsWith:_e,endsWith:Ae,includes:Be,isArray:Oe,isFunction:Pe,isObject:He,isPlainObject:ze,isWindow:We,isDocument:Le,isBoolean:je,isString:Fe,isNumber:Ve,isNumeric:Re,isUndefined:Ye,toBoolean:qe,toNumber:Ue,toFloat:Xe,toList:Je,toMedia:Ze,coerce:Qe,toMs:Ke,swap:ti,assign:ei,each:ii,clamp:ni,noop:oi,intersectRect:ri,pointInRect:si,ajax:ai,$:Pt,$$:Ht,query:Wt,queryAll:Lt,filter:Ft,within:Vt,matches:Jt,closest:Zt,parents:Qt,isJQuery:Kt,toNode:ie,toNodes:ne,escape:re,attr:w,hasAttr:b,removeAttr:y,filterAttr:x,data:k,isRtl:nt,isReady:ot,ready:rt,transition:st,Transition:at,animate:ut,Animation:dt,isInView:ft,scrolledOver:function(t){var e=(t=ie(t)).offsetHeight,i=function(t){var e=0;do{e+=t.offsetTop}while(t=t.offsetParent);return e}(t),n=q(o),s=n+Math.min(0,i-n),a=Math.max(0,n-(q(r)-(i+e)));return ni((s+o.pageYOffset-i)/((s+(e-(a<n?a:0)))/100)/100)},getIndex:pt,isVoidElement:gt,Dimensions:vt,preventClick:function(){var t=setTimeout(function(){return he(r,"click")},0);le(r,"click",function(e){e.preventDefault(),e.stopImmediatePropagation(),clearTimeout(t)},!0)},isVisible:wt,selInput:bt,isInput:yt,empty:xt,html:kt,prepend:function(t,e){return(t=ie(t)).hasChildNodes()?Ct(e,function(e){return t.insertBefore(e,t.firstChild)}):$t(t,e)},append:$t,before:It,after:Tt,remove:Et,wrapAll:_t,wrapInner:St,unwrap:At,fragment:Mt,index:Bt,css:D,getStyles:M,getStyle:B,getCssVar:P,propName:z,addClass:$,removeClass:I,removeClasses:T,replaceClass:C,hasClass:E,toggleClass:_,win:o,doc:r,docEl:s,Observer:a,requestAnimationFrame:l,hasTouch:c,pointerDown:d,pointerMove:f,pointerUp:p,pointerEnter:m,pointerLeave:g,getImage:function(t){return new i(function(e,i){var n=new Image;n.onerror=i,n.onload=function(){return e(n)},n.src=t})},supports:v,on:se,off:ae,once:le,trigger:he,createEvent:ue,toEventTargets:pe,fastdom:li,MouseTracker:di,mergeOptions:gi,Player:wi,positionAt:F,offset:V,position:Y,height:q,width:U,flipPosition:tt,isTouch:Ei,getPos:_i});function Ai(t){return!(!_e(t,"uk-")&&!_e(t,"data-uk-"))&&$e(t.replace("data-uk-","").replace("uk-",""))}var Ni=function(t){this._init(t)};Ni.util=Si,Ni.data="__uikit__",Ni.prefix="uk-",Ni.options={},Ni.instances={},Ni.elements=[],function(t){var e=t.data;t.use=function(t){if(!t.installed)return t.call(null,this),t.installed=!0,this},t.mixin=function(e,i){i=(Fe(i)?t.components[i]:i)||this,(e=gi({},e)).mixins=i.options.mixins,delete i.options.mixins,i.options=gi(e,i.options)},t.extend=function(t){t=t||{};var e=function(t){this._init(t)};return(e.prototype=Object.create(this.prototype)).constructor=e,e.options=gi(this.options,t),e.super=this,e.extend=this.extend,e},t.update=function(i,o,r){if(void 0===r&&(r=!1),i=ue(i||"update"),o)if(o=ie(o),r)do{n(o[e],i),o=o.parentNode}while(o);else!function t(e,i){if(1===e.nodeType)for(i(e),e=e.firstElementChild;e;)t(e,i),e=e.nextElementSibling}(o,function(t){return n(t[e],i)});else n(t.instances,i)};var i;Object.defineProperty(t,"container",{get:function(){return i||r.body},set:function(t){i=Pt(t)}});function n(t,e){if(t)for(var i in t)t[i]._isReady&&t[i]._callUpdate(e)}}(Ni),(Di=Ni).prototype._callHook=function(t){var e=this,i=this.$options[t];i&&i.forEach(function(t){return t.call(e)})},Di.prototype._callConnected=function(){var t=this;this._connected||(Be(Di.elements,this.$options.el)||Di.elements.push(this.$options.el),Di.instances[this._uid]=this,this._data={},this._callHook("beforeConnect"),this._connected=!0,this._initEvents(),this._initObserver(),this._callHook("connected"),this._isReady||rt(function(){return t._callReady()}),this._callUpdate())},Di.prototype._callDisconnected=function(){if(this._connected){this._callHook("beforeDisconnect"),this._observer&&(this._observer.disconnect(),this._observer=null);var t=Di.elements.indexOf(this.$options.el);~t&&Di.elements.splice(t,1),delete Di.instances[this._uid],this._unbindEvents(),this._callHook("disconnected"),this._connected=!1}},Di.prototype._callReady=function(){this._isReady||(this._isReady=!0,this._callHook("ready"),this._resetComputeds(),this._callUpdate())},Di.prototype._callUpdate=function(t){var e=this,i=(t=ue(t||"update")).type,n=t.detail;"update"===i&&n&&n.mutation&&this._resetComputeds();var o=this.$options.update,r=this._frames,s=r.reads,a=r.writes;o&&o.forEach(function(n,o){var r=n.read,l=n.write,h=n.events;("update"===i||Be(h,i))&&(r&&!Be(li.reads,s[o])&&(s[o]=li.read(function(){var i=r.call(e,e._data,t);!1===i&&l?(li.clear(a[o]),delete a[o]):ze(i)&&ei(e._data,i),delete s[o]})),l&&!Be(li.writes,a[o])&&(a[o]=li.write(function(){l.call(e,e._data,t),delete a[o]})))})};var Di;!function(t){var e=0;t.prototype.props={},t.prototype._init=function(i){i=i||{},i=this.$options=gi(this.constructor.options,i),this.$el=null,this.$name=t.prefix+xe(this.$options.name),this.$props={},this._frames={reads:{},writes:{}},this._events=[],this._uid=e++,this._initData(),this._initMethods(),this._initComputeds(),this._callHook("created"),i.el&&this.$mount(i.el)},t.prototype._initData=function(){var t=this.$options,e=t.defaults,i=t.data;void 0===i&&(i={});var n=t.args;void 0===n&&(n=[]);var o=t.props;void 0===o&&(o={});var r=t.el;n.length&&Oe(i)&&(i=i.slice(0,n.length).reduce(function(t,e,i){return ze(e)?ei(t,e):t[n[i]]=e,t},{}));for(var s in ei({},e,o))this.$props[s]=this[s]=ve(i,s)&&!Ye(i[s])?Qe(o[s],i[s],r):e?e[s]&&Oe(e[s])?e[s].concat():e[s]:null},t.prototype._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=me(t[e],this)},t.prototype._initComputeds=function(){var t=this.$options.computed;if(this._resetComputeds(),t)for(var e in t)n(this,e,t[e])},t.prototype._resetComputeds=function(){this._computeds={}},t.prototype._initProps=function(t){var e;this._resetComputeds(),t=t||i(this.$options,this.$name);for(e in t)Ye(t[e])||(this.$props[e]=t[e]);var n=[this.$options.computed,this.$options.methods];for(e in this.$props)e in t&&r(n,e)&&(this[e]=this.$props[e])},t.prototype._initEvents=function(){var t=this,e=this.$options.events;e&&e.forEach(function(e){if(ve(e,"handler"))o(t,e);else for(var i in e)o(t,e[i],i)})},t.prototype._unbindEvents=function(){this._events.forEach(function(t){return t()}),this._events=[]},t.prototype._initObserver=function(){var t=this,e=this.$options,n=e.attrs,o=e.props,r=e.el;!this._observer&&o&&n&&a&&(n=Oe(n)?n:Object.keys(o).map(function(t){return xe(t)}),this._observer=new a(function(){var e=i(t.$options,t.$name);n.some(function(i){return!Ye(e[i])&&e[i]!==t.$props[i]})&&t.$reset(e)}),this._observer.observe(r,{attributes:!0,attributeFilter:n.concat([this.$name,"data-"+this.$name])}))};function i(t,e){var i={},n=t.args;void 0===n&&(n=[]);var o=t.props;void 0===o&&(o={});var r,s,a=t.el;if(!o)return i;for(r in o)if(b(a,s=xe(r))){var l=Qe(o[r],w(a,s),a);if("target"===s&&(!l||_e(l,"_")))continue;i[r]=l}var h=function(t,e){var i;void 0===e&&(e=[]);try{return t?_e(t,"{")?JSON.parse(t):e.length&&!Be(t,":")?((i={})[e[0]]=t,i):t.split(";").reduce(function(t,e){var i=e.split(/:(.+)/),n=i[0],o=i[1];return n&&o&&(t[n.trim()]=o.trim()),t},{}):{}}catch(t){return{}}}(k(a,e),n);for(r in h)void 0!==o[s=$e(r)]&&(i[s]=Qe(o[s],h[r],a));return i}function n(t,e,i){Object.defineProperty(t,e,{enumerable:!0,get:function(){var n=t._computeds,o=t.$props,r=t.$el;return ve(n,e)||(n[e]=i.call(t,o,r)),n[e]},set:function(i){t._computeds[e]=i}})}function o(t,e,i){ze(e)||(e={name:i,handler:e});var n=e.name,r=e.el,s=e.handler,a=e.capture,l=e.delegate,h=e.filter,u=e.self;if(r=Pe(r)?r.call(t):r||t.$el,Oe(r))r.forEach(function(n){return o(t,ei({},e,{el:n}),i)});else if(r&&(!h||h.call(t))){c=Fe(s)?t[s]:me(s,t),s=function(t){return Oe(t.detail)?c.apply(c,[t].concat(t.detail)):c(t)};var c;u&&(d=s,s=function(t){if(t.target===t.currentTarget||t.target===t.current)return d.call(null,t)});var d;t._events.push(se(r,n,l?Fe(l)?l:l.call(t):null,s,a))}}function r(t,e){return t.every(function(t){return!t||!ve(t,e)})}}(Ni),function(t){var e=t.data;t.prototype.$mount=function(t){var i=this.$options.name;t[e]||(t[e]={}),t[e][i]||(t[e][i]=this,this.$el=this.$options.el=this.$options.el||t,this._initProps(),this._callHook("init"),Vt(t,s)&&this._callConnected())},t.prototype.$emit=function(t){this._callUpdate(t)},t.prototype.$update=function(e,i){t.update(e,this.$options.el,i)},t.prototype.$reset=function(t){this._callDisconnected(),this._initProps(t),this._callConnected()},t.prototype.$destroy=function(t){void 0===t&&(t=!1);var i=this.$options,n=i.el,o=i.name;n&&this._callDisconnected(),this._callHook("destroy"),n&&n[e]&&(delete n[e][o],Object.keys(n[e]).length||delete n[e],t&&Et(this.$el))}}(Ni),function(t){var e=t.data;t.components={},t.component=function(e,i){var n=$e(e);if(ze(i))i.name=n,i=t.extend(i);else{if(Ye(i))return t.components[n];i.options.name=n}return t.components[n]=i,t[n]=function(e,i){for(var o=arguments.length,r=Array(o);o--;)r[o]=arguments[o];return ze(e)?new t.components[n]({data:e}):t.components[n].options.functional?new t.components[n]({data:[].concat(r)}):e&&e.nodeType?s(e):Ht(e).map(s)[0];function s(e){var o=t.getComponent(e,n);return o&&i&&o.$reset(i),o||new t.components[n]({el:e,data:i||{}})}},t._initialized&&!i.options.functional&&li.read(function(){return t[n]("[uk-"+e+"],[data-uk-"+e+"]")}),t.components[n]},t.getComponents=function(t){return t&&(t=Kt(t)?t[0]:t)&&t[e]||{}},t.getComponent=function(e,i){return t.getComponents(e)[i]},t.connect=function(i){var n;if(i[e])for(n in i[e])i[e][n]._callConnected();for(var o=0;o<i.attributes.length;o++)(n=Ai(i.attributes[o].name))&&n in t.components&&t[n](i)},t.disconnect=function(t){for(var i in t[e])t[e][i]._callDisconnected()}}(Ni);var Mi,Bi,Oi={init:function(){$(this.$el,this.$name)}},Pi={props:{container:Boolean},defaults:{container:!0},computed:{container:function(t){var e=t.container;return!0===e&&Ni.container||e&&Pt(e)}}},Hi={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String,queued:Boolean},defaults:{cls:!1,animation:[!1],duration:200,origin:!1,transition:"linear",queued:!1,initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}},computed:{hasAnimation:function(t){return!!t.animation[0]},hasTransition:function(t){var e=t.animation;return this.hasAnimation&&!0===e[0]}},methods:{toggleElement:function(t,e,i){var n=this;return new we(function(o){var s,a=function(t){return we.all(t.map(function(t){return n._toggleElement(t,e,i)}))},l=(t=ne(t)).filter(function(t){return n.isToggled(t)}),h=t.filter(function(t){return!Be(l,t)});if(n.queued&&Ye(i)&&Ye(e)&&n.hasAnimation&&!(t.length<2)){var u=r.body,c=u.scrollTop,d=l[0],f=dt.inProgress(d)&&E(d,"uk-animation-leave")||at.inProgress(d)&&"0px"===d.style.height;s=a(l),f||(s=s.then(function(){var t=a(h);return u.scrollTop=c,t}))}else s=a(h.concat(l));s.then(o,oi)})},toggleNow:function(t,e){var i=this;return new we(function(n){return we.all(ne(t).map(function(t){return i._toggleElement(t,e,!1)})).then(n,oi)})},isToggled:function(t){var e=ne(t||this.$el);return this.cls?E(e,this.cls.split(" ")[0]):!b(e,"hidden")},updateAria:function(t){!1===this.cls&&w(t,"aria-hidden",!this.isToggled(t))},_toggleElement:function(t,e,i){var n=this;if(e=je(e)?e:dt.inProgress(t)?E(t,"uk-animation-leave"):at.inProgress(t)?"0px"===t.style.height:!this.isToggled(t),!he(t,"before"+(e?"show":"hide"),[this]))return we.reject();var o=(!1!==i&&this.hasAnimation?this.hasTransition?this._toggleHeight:this._toggleAnimation:this._toggleImmediate)(t,e);return he(t,e?"show":"hide",[this]),o.then(function(){he(t,e?"shown":"hidden",[n]),Ni.update(null,t)})},_toggle:function(t,e){t&&(this.cls?_(t,this.cls,Be(this.cls," ")?void 0:e):w(t,"hidden",e?null:""),Ht("[autofocus]",t).some(function(t){return wt(t)&&(t.focus()||!0)}),this.updateAria(t),Ni.update(null,t))},_toggleImmediate:function(t,e){return this._toggle(t,e),we.resolve()},_toggleHeight:function(t,e){var i,n=this,o=at.inProgress(t),r=t.hasChildNodes?Xe(D(t.firstElementChild,"marginTop"))+Xe(D(t.lastElementChild,"marginBottom")):0,s=wt(t)?q(t)+(o?0:r):0;return at.cancel(t),this.isToggled(t)||this._toggle(t,!0),q(t,""),li.flush(),i=q(t)+(o?0:r),q(t,s),(e?at.start(t,ei({},this.initProps,{overflow:"hidden",height:i}),Math.round(this.duration*(1-s/i)),this.transition):at.start(t,this.hideProps,Math.round(this.duration*(s/i)),this.transition).then(function(){return n._toggle(t,!1)})).then(function(){return D(t,n.initProps)})},_toggleAnimation:function(t,e){var i=this;return dt.cancel(t),e?(this._toggle(t,!0),dt.in(t,this.animation[0],this.duration,this.origin)):dt.out(t,this.animation[1]||this.animation[0],this.duration,this.origin).then(function(){return i._toggle(t,!1)})}}},zi={mixins:[Oi,Pi,Hi],props:{clsPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},defaults:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel:function(t,e){return Pt("."+t.clsPanel,e)},transitionElement:function(){return this.panel},transitionDuration:function(){return Ke(D(this.transitionElement,"transitionDuration"))}},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler:function(t){t.defaultPrevented||(t.preventDefault(),this.toggle())}},{name:"beforeshow",self:!0,handler:function(t){var e=Mi&&Mi!==this&&Mi;if(Mi=this,e){if(!this.stack)return e.hide().then(this.show),void t.preventDefault();this.prev=e}!function(){if(Bi)return;Bi=[se(s,"click",function(t){var e=t.target,i=t.defaultPrevented;Mi&&Mi.bgClose&&!i&&!Vt(e,Mi.panel||Mi.$el)&&Mi.hide()}),se(r,"keydown",function(t){27===t.keyCode&&Mi&&Mi.escClose&&(t.preventDefault(),Mi.hide())})]}()}},{name:"beforehide",self:!0,handler:function(){(Mi=Mi&&Mi!==this&&Mi||this.prev)||(Bi&&Bi.forEach(function(t){return t()}),Bi=null)}},{name:"show",self:!0,handler:function(){E(s,this.clsPage)||(this.scrollbarWidth=U(o)-s.offsetWidth,D(r.body,"overflowY",this.scrollbarWidth&&this.overlay?"scroll":"")),$(s,this.clsPage)}},{name:"hidden",self:!0,handler:function(){for(var t,e=this.prev;e;){if(e.clsPage===this.clsPage){t=!0;break}e=e.prev}t||I(s,this.clsPage),!this.prev&&D(r.body,"overflowY","")}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){if(!this.isToggled())return this.container&&this.$el.parentNode!==this.container&&($t(this.container,this.$el),this._callConnected()),this.toggleNow(this.$el,!0)},hide:function(){if(this.isToggled())return this.toggleNow(this.$el,!1)},getActive:function(){return Mi},_toggleImmediate:function(t,e){var i=this;return new we(function(n){return l(function(){i._toggle(t,e),i.transitionDuration?le(i.transitionElement,"transitionend",n,!1,function(t){return t.target===i.transitionElement}):n()})})}}};var Wi={props:{pos:String,offset:null,flip:Boolean,clsPos:String},defaults:{pos:"bottom-"+(nt?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(t){var e=t.pos;return(e+(Be(e,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(t,e,i){this._resetComputeds(),T(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?"),D(t,{top:"",left:""});var n,o=this.offset,r=this.getAxis();o=Re(o)?o:(n=Pt(o))?V(n)["x"===r?"left":"top"]-V(e)["x"===r?"right":"bottom"]:0;var s=F(t,e,"x"===r?tt(this.dir)+" "+this.align:this.align+" "+tt(this.dir),"x"===r?this.dir+" "+this.align:this.align+" "+this.dir,"x"===r?""+("left"===this.dir?-o:o):" "+("top"===this.dir?-o:o),null,this.flip,i).target,a=s.x,l=s.y;this.dir="x"===r?a:l,this.align="x"===r?l:a,_(t,this.clsPos+"-"+this.dir+"-"+this.align,!1===this.offset)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}};function Li(t){t.component("accordion",{mixins:[Oi,Hi],props:{targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,transition:String},defaults:{targets:"> *",active:!1,animation:[!0],collapsible:!0,multiple:!1,clsOpen:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",transition:"ease"},computed:{items:function(t,e){return Ht(t.targets,e)}},events:[{name:"click",delegate:function(){return this.targets+" "+this.$props.toggle},handler:function(t){t.preventDefault(),this.toggle(Bt(Ht(this.targets+" "+this.$props.toggle,this.$el),t.current))}}],connected:function(){if(!1!==this.active){var t=this.items[Number(this.active)];t&&!E(t,this.clsOpen)&&this.toggle(t,!1)}},update:function(){var t=this;this.items.forEach(function(e){return t._toggleImmediate(Pt(t.content,e),E(e,t.clsOpen))});var e=!this.collapsible&&!E(this.items,this.clsOpen)&&this.items[0];e&&this.toggle(e,!1)},methods:{toggle:function(t,e){var i=this,n=pt(t,this.items),o=Ft(this.items,"."+this.clsOpen);(t=this.items[n])&&[t].concat(!this.multiple&&!Be(o,t)&&o||[]).forEach(function(n){var r=n===t,s=r&&!E(n,i.clsOpen);if(s||!r||i.collapsible||!(o.length<2)){_(n,i.clsOpen,s);var a=n._wrapper?n._wrapper.firstElementChild:Pt(i.content,n);n._wrapper||(n._wrapper=_t(a,"<div>"),w(n._wrapper,"hidden",s?"":null)),i._toggleImmediate(a,!0),i.toggleElement(n._wrapper,s,e).then(function(){E(n,i.clsOpen)===s&&(s||i._toggleImmediate(a,!1),n._wrapper=null,At(a))})}})}}})}function ji(t){t.component("alert",{attrs:!0,mixins:[Oi,Hi],args:"animation",props:{close:String},defaults:{animation:[!0],selClose:".uk-alert-close",duration:150,hideProps:ei({opacity:0},Hi.defaults.hideProps)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.close()}}],methods:{close:function(){var t=this;this.toggleElement(this.$el).then(function(){return t.$destroy(!0)})}}})}function Fi(t){rt(function(){var e=0,i=0;if(se(o,"load resize",t.update),se(o,"scroll",function(i){i.dir=e<=o.pageYOffset?"down":"up",i.scrollY=e=o.pageYOffset,t.update(i)}),se(r,"animationstart",function(t){var e=t.target;(D(e,"animationName")||"").match(/^uk-.*(left|right)/)&&(i++,r.body.style.overflowX="hidden",setTimeout(function(){--i||(r.body.style.overflowX="")},Ke(D(e,"animationDuration"))+100))},!0),c){se(r,"tap",function(t){var e=t.target;return Ht(".uk-hover").forEach(function(t,i){return!Vt(e,i)&&I(i,"uk-hover")})}),Object.defineProperty(t,"hoverSelector",{set:function(t){se(r,"tap",t,function(t){return $(t.current,"uk-hover")})}}),t.hoverSelector=".uk-animation-toggle, .uk-transition-toggle, [uk-hover]"}})}function Vi(t){t.component("cover",{mixins:[Oi,t.components.video.options],props:{width:Number,height:Number},defaults:{automute:!0},update:{write:function(){var t=this.$el;if(wt(t)){var e=t.parentNode,i=e.offsetHeight,n=e.offsetWidth;D(D(t,{width:"",height:""}),vt.cover({width:this.width||t.clientWidth,height:this.height||t.clientHeight},{width:n+(n%2?1:0),height:i+(i%2?1:0)}))}},events:["load","resize"]},events:{loadedmetadata:function(){this.$emit()}}})}function Ri(t){var e;t.component("drop",{mixins:[Wi,Hi],args:"pos",props:{mode:"list",toggle:Boolean,boundary:"query",boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},defaults:{mode:["click","hover"],toggle:!0,boundary:o,boundaryAlign:!1,delayShow:0,delayHide:800,clsDrop:!1,hoverIdle:200,animation:["uk-animation-fade"],cls:"uk-open"},computed:{clsDrop:function(t){var e=t.clsDrop;return e||"uk-"+this.$options.name},clsPos:function(){return this.clsDrop}},init:function(){this.tracker=new di,$(this.$el,this.clsDrop)},connected:function(){var e=this.$props.toggle;this.toggle=e&&t.toggle(Fe(e)?Wt(e,this.$el):this.$el.previousElementSibling,{target:this.$el,mode:this.mode}),this.updateAria(this.$el)},events:[{name:"click",delegate:function(){return"."+this.clsDrop+"-close"},handler:function(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(t){if(!t.defaultPrevented){var e=t.target.hash;e||t.preventDefault(),e&&Vt(e,this.$el)||this.hide(!1)}}},{name:"beforescroll",handler:function(){this.hide(!1)}},{name:"toggle",self:!0,handler:function(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e,!1)}},{name:m,filter:function(){return Be(this.mode,"hover")},handler:function(t){Ei(t)||(e&&e!==this&&e.toggle&&Be(e.toggle.mode,"hover")&&!Vt(t.target,e.toggle.$el)&&!si({x:t.pageX,y:t.pageY},V(e.$el))&&e.hide(!1),t.preventDefault(),this.show(this.toggle))}},{name:"toggleshow",handler:function(t,e){e&&!Be(e.target,this.$el)||(t.preventDefault(),this.show(e||this.toggle))}},{name:"togglehide "+g,handler:function(t,e){Ei(t)||e&&!Be(e.target,this.$el)||(t.preventDefault(),this.toggle&&Be(this.toggle.mode,"hover")&&this.hide())}},{name:"beforeshow",self:!0,handler:function(){this.clearTimers()}},{name:"show",self:!0,handler:function(){this.position(),this.tracker.init(),$(this.toggle.$el,this.cls),w(this.toggle.$el,"aria-expanded","true"),function(){if(i)return;i=!0,se(s,"click",function(t){var i,n=t.target,o=t.defaultPrevented;if(!o)for(;e&&e!==i&&!Vt(n,e.$el)&&(!e.toggle||!Vt(n,e.toggle.$el));)i=e,e.hide(!1)})}()}},{name:"beforehide",self:!0,handler:function(){this.clearTimers()}},{name:"hide",handler:function(t){var i=t.target;this.$el===i?(e=this.isActive()?null:e,I(this.toggle.$el,this.cls),w(this.toggle.$el,"aria-expanded","false"),this.toggle.$el.blur(),Ht("a, button",this.toggle.$el).forEach(function(t){return t.blur()}),this.tracker.cancel()):e=null===e&&Vt(i,this.$el)&&this.isToggled()?this:e}}],update:{write:function(){this.isToggled()&&!dt.inProgress(this.$el)&&this.position()},events:["resize"]},methods:{show:function(t,i){var n=this;void 0===i&&(i=!0);var o=function(){return!n.isToggled()&&n.toggleElement(n.$el,!0)},r=function(){if(n.toggle=t||n.toggle,n.clearTimers(),!n.isActive())if(i&&e&&e!==n&&e.isDelaying)n.showTimer=setTimeout(n.show,10);else{if(n.isParentOf(e)){if(!e.hideTimer)return;e.hide(!1)}else if(e&&!n.isChildOf(e)&&!n.isParentOf(e))for(var r;e&&e!==r&&!n.isChildOf(e);)r=e,e.hide(!1);i&&n.delayShow?n.showTimer=setTimeout(o,n.delayShow):o(),e=n}};t&&this.toggle&&t.$el!==this.toggle.$el?(le(this.$el,"hide",r),this.hide(!1)):r()},hide:function(t){var e=this;void 0===t&&(t=!0);var i=function(){return e.toggleNow(e.$el,!1)};this.clearTimers(),this.isDelaying=this.tracker.movesTo(this.$el),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,this.hoverIdle):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive:function(){return e===this},isChildOf:function(t){return t&&t!==this&&Vt(this.$el,t.$el)},isParentOf:function(t){return t&&t!==this&&Vt(t.$el,this.$el)},position:function(){T(this.$el,this.clsDrop+"-(stack|boundary)"),D(this.$el,{top:"",left:"",display:"block"}),_(this.$el,this.clsDrop+"-boundary",this.boundaryAlign);var t=V(this.boundary),e=this.boundaryAlign?t:V(this.toggle.$el);if("justify"===this.align){var i="y"===this.getAxis()?"width":"height";D(this.$el,i,e[i])}else this.$el.offsetWidth>Math.max(t.right-e.left,e.right-t.left)&&$(this.$el,this.clsDrop+"-stack");this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.toggle.$el,this.boundary),D(this.$el,"display","")}}}),t.drop.getActive=function(){return e};var i}function Yi(t){t.component("dropdown",t.components.drop.extend({name:"dropdown"}))}function qi(t){t.component("form-custom",{mixins:[Oi],args:"target",props:{target:Boolean},defaults:{target:!1},computed:{input:function(t,e){return Pt(bt,e)},state:function(){return this.input.nextElementSibling},target:function(t,e){var i=t.target;return i&&(!0===i&&this.input.parentNode===e&&this.input.nextElementSibling||Wt(i,e))}},connected:function(){he(this.input,"change")},events:[{name:"focusin focusout mouseenter mouseleave",delegate:bt,handler:function(t){var e=t.type;t.current===this.input&&_(this.state,"uk-"+(Be(e,"focus")?"focus":"hover"),Be(["focusin","mouseenter"],e))}},{name:"change",handler:function(){var t,e=this.target,i=this.input;e&&(e[yt(e)?"value":"textContent"]=i.files&&i.files[0]?i.files[0].name:Jt(i,"select")&&(t=Ht("option",i).filter(function(t){return t.selected})[0])?t.textContent:i.value)}}]})}function Ui(t){t.component("gif",{update:{read:function(t){var e=ft(this.$el);if(!e||t.isInView===e)return!1;t.isInView=e},write:function(){this.$el.src=this.$el.src},events:["scroll","load","resize"]}})}function Xi(t){t.component("grid",t.components.margin.extend({mixins:[Oi],name:"grid",defaults:{margin:"uk-grid-margin",clsStack:"uk-grid-stack"},update:{write:function(t){var e=t.stacks;_(this.$el,this.clsStack,e)},events:["load","resize"]}}))}function Ji(t){t.component("height-match",{args:"target",props:{target:String,row:Boolean},defaults:{target:"> *",row:!0},computed:{elements:function(t,e){return Ht(t.target,e)}},update:{read:function(){var t=this,e=!1;return D(this.elements,"minHeight",""),{rows:this.row?this.elements.reduce(function(t,i){return e!==i.offsetTop?t.push([i]):t[t.length-1].push(i),e=i.offsetTop,t},[]).map(function(e){return t.match(e)}):[this.match(this.elements)]}},write:function(t){t.rows.forEach(function(t){var e=t.height;return D(t.elements,"minHeight",e)})},events:["load","resize"]},methods:{match:function(t){if(t.length<2)return{};var e=0,i=[];return t.forEach(function(t){var n,o;wt(t)||(n=w(t,"sty