12345 |
- !function(t){if("function"==typeof define&&define.amd&&define("uikit",function(){var e=window.UIkit||t(window,window.jQuery,window.document);return e.load=function(t,i,o,n){var s,a=t.split(","),r=[],l=(n.config&&n.config.uikit&&n.config.uikit.base?n.config.uikit.base:"").replace(/\/+$/g,"");if(!l)throw new Error("Please define base path to UIkit in the requirejs config.");for(s=0;s<a.length;s+=1){var d=a[s].replace(/\./g,"/");r.push(l+"/components/"+d)}i(r,function(){o(e)})},e}),!window.jQuery)throw new Error("UIkit requires jQuery");window&&window.jQuery&&t(window,window.jQuery,window.document)}(function(t,e,i){"use strict";var o={},n=t.UIkit?Object.create(t.UIkit):void 0;if(o.version="2.27.1",o.noConflict=function(){return n&&(t.UIkit=n,e.UIkit=n,e.fn.uk=n.fn),o},o.prefix=function(t){return t},o.$=e,o.$doc=o.$(document),o.$win=o.$(window),o.$html=o.$("html"),o.support={},o.support.transition=function(){var t=function(){var t,e=i.body||i.documentElement,o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in o)if(void 0!==e.style[t])return o[t]}();return t&&{end:t}}(),o.support.animation=function(){var t=function(){var t,e=i.body||i.documentElement,o={WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(t in o)if(void 0!==e.style[t])return o[t]}();return t&&{end:t}}(),function(){Date.now=Date.now||function(){return(new Date).getTime()};for(var t=["webkit","moz"],e=0;e<t.length&&!window.requestAnimationFrame;++e){var i=t[e];window.requestAnimationFrame=window[i+"RequestAnimationFrame"],window.cancelAnimationFrame=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var o=0;window.requestAnimationFrame=function(t){var e=Date.now(),i=Math.max(o+16,e);return setTimeout(function(){t(o=i)},i-e)},window.cancelAnimationFrame=clearTimeout}}(),o.support.touch="ontouchstart"in document||t.DocumentTouch&&document instanceof t.DocumentTouch||t.navigator.msPointerEnabled&&t.navigator.msMaxTouchPoints>0||t.navigator.pointerEnabled&&t.navigator.maxTouchPoints>0||!1,o.support.mutationobserver=t.MutationObserver||t.WebKitMutationObserver||null,o.Utils={},o.Utils.isFullscreen=function(){return document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.fullscreenElement||!1},o.Utils.str2json=function(t,e){try{return e?JSON.parse(t.replace(/([\$\w]+)\s*:/g,function(t,e){return'"'+e+'":'}).replace(/'([^']+)'/g,function(t,e){return'"'+e+'"'})):new Function("","var json = "+t+"; return JSON.parse(JSON.stringify(json));")()}catch(i){return!1}},o.Utils.debounce=function(t,e,i){var o;return function(){var n=this,s=arguments,a=function(){o=null,i||t.apply(n,s)},r=i&&!o;clearTimeout(o),o=setTimeout(a,e),r&&t.apply(n,s)}},o.Utils.throttle=function(t,e){var i=!1;return function(){i||(t.call(),i=!0,setTimeout(function(){i=!1},e))}},o.Utils.removeCssRules=function(t){var e,i,o,n,s,a,r,l,d,h;t&&setTimeout(function(){try{for(h=document.styleSheets,n=0,r=h.length;n<r;n++){for(o=h[n],i=[],o.cssRules=o.cssRules,e=s=0,l=o.cssRules.length;s<l;e=++s)o.cssRules[e].type===CSSRule.STYLE_RULE&&t.test(o.cssRules[e].selectorText)&&i.unshift(e);for(a=0,d=i.length;a<d;a++)o.deleteRule(i[a])}}catch(u){}},0)},o.Utils.isInView=function(t,i){var n=e(t);if(!n.is(":visible"))return!1;var s=o.$win.scrollLeft(),a=o.$win.scrollTop(),r=n.offset(),l=r.left,d=r.top;return i=e.extend({topoffset:0,leftoffset:0},i),d+n.height()>=a&&d-i.topoffset<=a+o.$win.height()&&l+n.width()>=s&&l-i.leftoffset<=s+o.$win.width()},o.Utils.checkDisplay=function(t,i){var n=o.$("[data-uk-margin], [data-uk-grid-match], [data-uk-grid-margin], [data-uk-check-display]",t||document);return t&&!n.length&&(n=e(t)),n.trigger("display.uk.check"),i&&("string"!=typeof i&&(i='[class*="uk-animation-"]'),n.find(i).each(function(){var t=o.$(this),e=t.attr("class"),i=e.match(/uk-animation-(.+)/);t.removeClass(i[0]).width(),t.addClass(i[0])})),n},o.Utils.options=function(t){if("string"!=e.type(t))return t;t.indexOf(":")!=-1&&"}"!=t.trim().substr(-1)&&(t="{"+t+"}");var i=t?t.indexOf("{"):-1,n={};if(i!=-1)try{n=o.Utils.str2json(t.substr(i))}catch(s){}return n},o.Utils.animate=function(t,i){var n=e.Deferred();return t=o.$(t),t.css("display","none").addClass(i).one(o.support.animation.end,function(){t.removeClass(i),n.resolve()}),t.css("display",""),n.promise()},o.Utils.uid=function(t){return(t||"id")+(new Date).getTime()+"RAND"+Math.ceil(1e5*Math.random())},o.Utils.template=function(t,e){for(var i,o,n,s,a=t.replace(/\n/g,"\\n").replace(/\{\{\{\s*(.+?)\s*\}\}\}/g,"{{!$1}}").split(/(\{\{\s*(.+?)\s*\}\})/g),r=0,l=[],d=0;r<a.length;){if(i=a[r],i.match(/\{\{\s*(.+?)\s*\}\}/))switch(r+=1,i=a[r],o=i[0],n=i.substring(i.match(/^(\^|\#|\!|\~|\:)/)?1:0),o){case"~":l.push("for(var $i=0;$i<"+n+".length;$i++) { var $item = "+n+"[$i];"),d++;break;case":":l.push("for(var $key in "+n+") { var $val = "+n+"[$key];"),d++;break;case"#":l.push("if("+n+") {"),d++;break;case"^":l.push("if(!"+n+") {"),d++;break;case"/":l.push("}"),d--;break;case"!":l.push("__ret.push("+n+");");break;default:l.push("__ret.push(escape("+n+"));")}else l.push("__ret.push('"+i.replace(/\'/g,"\\'")+"');");r+=1}return s=new Function("$data",["var __ret = [];","try {","with($data){",d?'__ret = ["Not all blocks are closed correctly."]':l.join(""),"};","}catch(e){__ret = [e.message];}",'return __ret.join("").replace(/\\n\\n/g, "\\n");',"function escape(html) { return String(html).replace(/&/g, '&').replace(/\"/g, '"').replace(/</g, '<').replace(/>/g, '>');}"].join("\n")),e?s(e):s},o.Utils.focus=function(t,i){t=e(t);var o,n=t.find("[autofocus]:first");return n.length?n.focus():(n=t.find(":input"+(i&&","+i||"")).first(),n.length?n.focus():(t.attr("tabindex")||(o=1e3,t.attr("tabindex",o)),t[0].focus(),o&&t.attr("tabindex",""),t))},o.Utils.events={},o.Utils.events.click=o.support.touch?"tap":"click",t.UIkit=o,o.fn=function(t,i){var n=arguments,s=t.match(/^([a-z\-]+)(?:\.([a-z]+))?/i),a=s[1],r=s[2];return o[a]?this.each(function(){var t=e(this),s=t.data(a);s||t.data(a,s=o[a](this,r?void 0:i)),r&&s[r].apply(s,Array.prototype.slice.call(n,1))}):(e.error("UIkit component ["+a+"] does not exist."),this)},e.UIkit=o,e.fn.uk=o.fn,o.langdirection="rtl"==o.$html.attr("dir")?"right":"left",o.components={},o.component=function(t,i){var n=function(i,s){var a=this;return this.UIkit=o,this.element=i?o.$(i):null,this.options=e.extend(!0,{},this.defaults,s),this.plugins={},this.element&&this.element.data(t,this),this.init(),(this.options.plugins.length?this.options.plugins:Object.keys(n.plugins)).forEach(function(t){n.plugins[t].init&&(n.plugins[t].init(a),a.plugins[t]=!0)}),this.trigger("init.uk.component",[t,this]),this};return n.plugins={},e.extend(!0,n.prototype,{defaults:{plugins:[]},boot:function(){},init:function(){},on:function(t,e,i){return o.$(this.element||this).on(t,e,i)},one:function(t,e,i){return o.$(this.element||this).one(t,e,i)},off:function(t){return o.$(this.element||this).off(t)},trigger:function(t,e){return o.$(this.element||this).trigger(t,e)},find:function(t){return o.$(this.element?this.element:[]).find(t)},proxy:function(t,e){var i=this;e.split(" ").forEach(function(e){i[e]||(i[e]=function(){return t[e].apply(t,arguments)})})},mixin:function(t,e){var i=this;e.split(" ").forEach(function(e){i[e]||(i[e]=t[e].bind(i))})},option:function(){return 1==arguments.length?this.options[arguments[0]]||void 0:void(2==arguments.length&&(this.options[arguments[0]]=arguments[1]))}},i),this.components[t]=n,this[t]=function(){var i,n;if(arguments.length)switch(arguments.length){case 1:"string"==typeof arguments[0]||arguments[0].nodeType||arguments[0]instanceof jQuery?i=e(arguments[0]):n=arguments[0];break;case 2:i=e(arguments[0]),n=arguments[1]}return i&&i.data(t)?i.data(t):new o.components[t](i,n)},o.domready&&o.component.boot(t),n},o.plugin=function(t,e,i){this.components[t].plugins[e]=i},o.component.boot=function(t){o.components[t].prototype&&o.components[t].prototype.boot&&!o.components[t].booted&&(o.components[t].prototype.boot.apply(o,[]),o.components[t].booted=!0)},o.component.bootComponents=function(){for(var t in o.components)o.component.boot(t)},o.domObservers=[],o.domready=!1,o.ready=function(t){o.domObservers.push(t),o.domready&&t(document)},o.on=function(t,e,i){return t&&t.indexOf("ready.uk.dom")>-1&&o.domready&&e.apply(o.$doc),o.$doc.on(t,e,i)},o.one=function(t,e,i){return t&&t.indexOf("ready.uk.dom")>-1&&o.domready?(e.apply(o.$doc),o.$doc):o.$doc.one(t,e,i)},o.trigger=function(t,e){return o.$doc.trigger(t,e)},o.domObserve=function(t,e){o.support.mutationobserver&&(e=e||function(){},o.$(t).each(function(){var t=this,i=o.$(t);if(!i.data("observer"))try{var n=new o.support.mutationobserver(o.Utils.debounce(function(o){e.apply(t,[i]),i.trigger("changed.uk.dom")},50),{childList:!0,subtree:!0});n.observe(t,{childList:!0,subtree:!0}),i.data("observer",n)}catch(s){}}))},o.init=function(t){t=t||document,o.domObservers.forEach(function(e){e(t)})},o.on("domready.uk.dom",function(){o.init(),o.domready&&o.Utils.checkDisplay()}),document.addEventListener("DOMContentLoaded",function(){var t=function(){o.$body=o.$("body"),o.trigger("beforeready.uk.dom"),o.component.bootComponents();var t=requestAnimationFrame(function(){var e={dir:{x:0,y:0},x:window.pageXOffset,y:window.pageYOffset},i=function(){var n=window.pageXOffset,s=window.pageYOffset;e.x==n&&e.y==s||(n!=e.x?e.dir.x=n>e.x?1:-1:e.dir.x=0,s!=e.y?e.dir.y=s>e.y?1:-1:e.dir.y=0,e.x=n,e.y=s,o.$doc.trigger("scrolling.uk.document",[{dir:{x:e.dir.x,y:e.dir.y},x:n,y:s}])),cancelAnimationFrame(t),t=requestAnimationFrame(i)};return o.support.touch&&o.$html.on("touchmove touchend MSPointerMove MSPointerUp pointermove pointerup",i),(e.x||e.y)&&i(),i}());if(o.trigger("domready.uk.dom"),o.support.touch&&navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&o.$win.on("load orientationchange resize",o.Utils.debounce(function(){var t=function(){return e(".uk-height-viewport").css("height",window.innerHeight),t};return t()}(),100)),o.trigger("afterready.uk.dom"),o.domready=!0,o.support.mutationobserver){var i=o.Utils.debounce(function(){requestAnimationFrame(function(){o.init(document.body)})},10);new o.support.mutationobserver(function(t){var e=!1;t.every(function(t){if("childList"!=t.type)return!0;for(var i,o=0;o<t.addedNodes.length;++o)if(i=t.addedNodes[o],i.outerHTML&&i.outerHTML.indexOf("data-uk-")!==-1)return(e=!0)&&!1;return!0}),e&&i()}).observe(document.body,{childList:!0,subtree:!0})}};return"complete"!=document.readyState&&"interactive"!=document.readyState||setTimeout(t),t}()),o.$html.addClass(o.support.touch?"uk-touch":"uk-notouch"),o.support.touch){var s,a=!1,r="uk-hover",l=".uk-overlay, .uk-overlay-hover, .uk-overlay-toggle, .uk-animation-hover, .uk-has-hover";o.$html.on("mouseenter touchstart MSPointerDown pointerdown",l,function(){a&&e("."+r).removeClass(r),a=e(this).addClass(r)}).on("mouseleave touchend MSPointerUp pointerup",function(t){s=e(t.target).parents(l),a&&a.not(s).removeClass(r)})}return o}),function(t){function e(t,e,i,o){return Math.abs(t-e)>=Math.abs(i-o)?t-e>0?"Left":"Right":i-o>0?"Up":"Down"}function i(){d=null,u.last&&(void 0!==u.el&&u.el.trigger("longTap"),u={})}function o(){d&&clearTimeout(d),d=null}function n(){a&&clearTimeout(a),r&&clearTimeout(r),l&&clearTimeout(l),d&&clearTimeout(d),a=r=l=d=null,u={}}function s(t){return t.pointerType==t.MSPOINTER_TYPE_TOUCH&&t.isPrimary}if(!t.fn.swipeLeft){var a,r,l,d,h,u={},c=750;t(function(){var p,f,m,g=0,v=0;"MSGesture"in window&&(h=new MSGesture,h.target=document.body),t(document).on("MSGestureEnd gestureend",function(t){var e=t.originalEvent.velocityX>1?"Right":t.originalEvent.velocityX<-1?"Left":t.originalEvent.velocityY>1?"Down":t.originalEvent.velocityY<-1?"Up":null;e&&void 0!==u.el&&(u.el.trigger("swipe"),u.el.trigger("swipe"+e))}).on("touchstart MSPointerDown pointerdown",function(e){("MSPointerDown"!=e.type||s(e.originalEvent))&&(m="MSPointerDown"==e.type||"pointerdown"==e.type?e:e.originalEvent.touches[0],p=Date.now(),f=p-(u.last||p),u.el=t("tagName"in m.target?m.target:m.target.parentNode),a&&clearTimeout(a),u.x1=m.pageX,u.y1=m.pageY,f>0&&f<=250&&(u.isDoubleTap=!0),u.last=p,d=setTimeout(i,c),!h||"MSPointerDown"!=e.type&&"pointerdown"!=e.type&&"touchstart"!=e.type||h.addPointer(e.originalEvent.pointerId))}).on("touchmove MSPointerMove pointermove",function(t){("MSPointerMove"!=t.type||s(t.originalEvent))&&(m="MSPointerMove"==t.type||"pointermove"==t.type?t:t.originalEvent.touches[0],o(),u.x2=m.pageX,u.y2=m.pageY,g+=Math.abs(u.x1-u.x2),v+=Math.abs(u.y1-u.y2))}).on("touchend MSPointerUp pointerup",function(i){("MSPointerUp"!=i.type||s(i.originalEvent))&&(o(),u.x2&&Math.abs(u.x1-u.x2)>30||u.y2&&Math.abs(u.y1-u.y2)>30?l=setTimeout(function(){void 0!==u.el&&(u.el.trigger("swipe"),u.el.trigger("swipe"+e(u.x1,u.x2,u.y1,u.y2))),u={}},0):"last"in u&&(isNaN(g)||g<30&&v<30?r=setTimeout(function(){var e=t.Event("tap");e.cancelTouch=n,void 0!==u.el&&u.el.trigger(e),u.isDoubleTap?(void 0!==u.el&&u.el.trigger("doubleTap"),u={}):a=setTimeout(function(){a=null,void 0!==u.el&&u.el.trigger("singleTap"),u={}},250)},0):u={},g=v=0))}).on("touchcancel MSPointerCancel pointercancel",n),t(window).on("scroll",n)}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(e){t.fn[e]=function(i){return t(this).on(e,i)}})}}(jQuery),function(t){"use strict";var e=[];t.component("stackMargin",{defaults:{cls:"uk-margin-small-top",rowfirst:!1,observe:!1},boot:function(){t.ready(function(e){t.$("[data-uk-margin]",e).each(function(){var e=t.$(this);e.data("stackMargin")||t.stackMargin(e,t.Utils.options(e.attr("data-uk-margin")))})})},init:function(){var i=this;t.$win.on("resize orientationchange",function(){var e=function(){i.process()};return t.$(function(){e(),t.$win.on("load",e)}),t.Utils.debounce(e,20)}()),this.on("display.uk.check",function(t){this.element.is(":visible")&&this.process()}.bind(this)),this.options.observe&&t.domObserve(this.element,function(t){i.element.is(":visible")&&i.process()}),e.push(this)},process:function(){var e=this.element.children();if(t.Utils.stackMargin(e,this.options),!this.options.rowfirst||!e.length)return this;var i={},o=!1;return e.removeClass(this.options.rowfirst).each(function(e,n){n=t.$(this),"none"!=this.style.display&&(e=n.offset().left,((i[e]=i[e]||[])&&i[e]).push(this),o=o===!1?e:Math.min(o,e))}),t.$(i[o]).addClass(this.options.rowfirst),this}}),function(){var e=[],i=function(t){if(t.is(":visible")){var e=t.parent().width(),i=t.data("width"),o=e/i,n=Math.floor(o*t.data("height"));t.css({height:e<i?n:t.data("height")})}};t.component("responsiveElement",{defaults:{},boot:function(){t.ready(function(e){t.$("iframe.uk-responsive-width, [data-uk-responsive]",e).each(function(){var e,i=t.$(this);i.data("responsiveElement")||(e=t.responsiveElement(i,{}))})})},init:function(){var t=this.element;t.attr("width")&&t.attr("height")&&(t.data({width:t.attr("width"),height:t.attr("height")}).on("display.uk.check",function(){i(t)}),i(t),e.push(t))}}),t.$win.on("resize load",t.Utils.debounce(function(){e.forEach(function(t){i(t)})},15))}(),t.Utils.stackMargin=function(e,i){i=t.$.extend({cls:"uk-margin-small-top"},i),e=t.$(e).removeClass(i.cls);var o=!1;e.each(function(e,i,n,s){s=t.$(this),"none"!=s.css("display")&&(e=s.offset(),i=s.outerHeight(),n=e.top+i,s.data({ukMarginPos:n,ukMarginTop:e.top}),(o===!1||e.top<o.top)&&(o={top:e.top,left:e.left,pos:n}))}).each(function(e){e=t.$(this),"none"!=e.css("display")&&e.data("ukMarginTop")>o.top&&e.data("ukMarginPos")>o.pos&&e.addClass(i.cls)})},t.Utils.matchHeights=function(e,i){e=t.$(e).css("min-height",""),i=t.$.extend({row:!0},i);var o=function(e){if(!(e.length<2)){var i=0;e.each(function(){i=Math.max(i,t.$(this).outerHeight())}).each(function(){var e=t.$(this),o=i-("border-box"==e.css("box-sizing")?0:e.outerHeight()-e.height());e.css("min-height",o+"px")})}};i.row?(e.first().width(),setTimeout(function(){var i=!1,n=[];e.each(function(){var e=t.$(this),s=e.offset().top;s!=i&&n.length&&(o(t.$(n)),n=[],s=e.offset().top),n.push(e),i=s}),n.length&&o(t.$(n))},0)):o(e)},function(e){t.Utils.inlineSvg=function(i,o){t.$(i||'img[src$=".svg"]',o||document).each(function(){var i=t.$(this),o=i.attr("src");if(!e[o]){var n=t.$.Deferred();t.$.get(o,{nc:Math.random()},function(e){n.resolve(t.$(e).find("svg"))}),e[o]=n.promise()}e[o].then(function(e){var o=t.$(e).clone();i.attr("id")&&o.attr("id",i.attr("id")),i.attr("class")&&o.attr("class",i.attr("class")),i.attr("style")&&o.attr("style",i.attr("style")),i.attr("width")&&(o.attr("width",i.attr("width")),i.attr("height")||o.removeAttr("height")),i.attr("height")&&(o.attr("height",i.attr("height")),i.attr("width")||o.removeAttr("width")),i.replaceWith(o)})})},t.ready(function(e){t.Utils.inlineSvg("[data-uk-svg]",e)})}({}),t.Utils.getCssVar=function(t){var e,i=document.documentElement,o=i.appendChild(document.createElement("div"));o.classList.add("var-"+t);try{e=JSON.parse(e=getComputedStyle(o,":before").content.replace(/^["'](.*)["']$/,"$1"))}catch(n){e=void 0}return i.removeChild(o),e}}(UIkit),function(t){"use strict";function e(e,i){i=t.$.extend({duration:1e3,transition:"easeOutExpo",offset:0,complete:function(){}},i);var o=e.offset().top-i.offset,n=t.$doc.height(),s=window.innerHeight;o+s>n&&(o=n-s),t.$("html,body").stop().animate({scrollTop:o},i.duration,i.transition).promise().done(i.complete)}t.component("smoothScroll",{boot:function(){t.$html.on("click.smooth-scroll.uikit","[data-uk-smooth-scroll]",function(e){var i=t.$(this);if(!i.data("smoothScroll")){t.smoothScroll(i,t.Utils.options(i.attr("data-uk-smooth-scroll")));i.trigger("click")}return!1})},init:function(){var i=this;this.on("click",function(o){o.preventDefault(),e(t.$(this.hash).length?t.$(this.hash):t.$("body"),i.options)})}}),t.Utils.scrollToElement=e,t.$.easing.easeOutExpo||(t.$.easing.easeOutExpo=function(t,e,i,o,n){return e==n?i+o:o*(-Math.pow(2,-10*e/n)+1)+i})}(UIkit),function(t){"use strict";var e=t.$win,i=t.$doc,o=[],n=function(){for(var t=0;t<o.length;t++)window.requestAnimationFrame.apply(window,[o[t].check])};t.component("scrollspy",{defaults:{target:!1,cls:"uk-scrollspy-inview",initcls:"uk-scrollspy-init-inview",topoffset:0,leftoffset:0,repeat:!1,delay:0},boot:function(){i.on("scrolling.uk.document",n),e.on("load resize orientationchange",t.Utils.debounce(n,50)),t.ready(function(e){t.$("[data-uk-scrollspy]",e).each(function(){var e=t.$(this);if(!e.data("scrollspy")){t.scrollspy(e,t.Utils.options(e.attr("data-uk-scrollspy")))}})})},init:function(){var e,i=this,n=this.options.cls.split(/,/),s=function(){var o=i.options.target?i.element.find(i.options.target):i.element,s=1===o.length?1:0,a=0;o.each(function(o){var r=t.$(this),l=r.data("inviewstate"),d=t.Utils.isInView(r,i.options),h=r.data("ukScrollspyCls")||n[a].trim();!d||l||r.data("scrollspy-idle")||(e||(r.addClass(i.options.initcls),i.offset=r.offset(),e=!0,r.trigger("init.uk.scrollspy")),r.data("scrollspy-idle",setTimeout(function(){r.addClass("uk-scrollspy-inview").toggleClass(h).width(),r.trigger("inview.uk.scrollspy"),r.data("scrollspy-idle",!1),r.data("inviewstate",!0)},i.options.delay*s)),s++),!d&&l&&i.options.repeat&&(r.data("scrollspy-idle")&&(clearTimeout(r.data("scrollspy-idle")),r.data("scrollspy-idle",!1)),r.removeClass("uk-scrollspy-inview").toggleClass(h),r.data("inviewstate",!1),r.trigger("outview.uk.scrollspy")),a=n[a+1]?a+1:0})};s(),this.check=s,o.push(this)}});var s=[],a=function(){for(var t=0;t<s.length;t++)window.requestAnimationFrame.apply(window,[s[t].check])};t.component("scrollspynav",{defaults:{cls:"uk-active",closest:!1,topoffset:0,leftoffset:0,smoothscroll:!1},boot:function(){i.on("scrolling.uk.document",a),e.on("resize orientationchange",t.Utils.debounce(a,50)),t.ready(function(e){t.$("[data-uk-scrollspy-nav]",e).each(function(){var e=t.$(this);if(!e.data("scrollspynav")){t.scrollspynav(e,t.Utils.options(e.attr("data-uk-scrollspy-nav")))}})})},init:function(){var i,o=[],n=this.find("a[href^='#']").each(function(){"#"!==this.getAttribute("href").trim()&&o.push(this.getAttribute("href"))}),a=t.$(o.join(",")),r=this.options.cls,l=this.options.closest||this.options.closest,d=this,h=function(){i=[];for(var o=0;o<a.length;o++)t.Utils.isInView(a.eq(o),d.options)&&i.push(a.eq(o));if(i.length){var s,h=e.scrollTop(),u=function(){for(var t=0;t<i.length;t++)if(i[t].offset().top-d.options.topoffset>=h)return i[t]}();if(!u)return;d.options.closest?(n.blur().closest(l).removeClass(r),s=n.filter("a[href='#"+u.attr("id")+"']").closest(l).addClass(r)):s=n.removeClass(r).filter("a[href='#"+u.attr("id")+"']").addClass(r),d.element.trigger("inview.uk.scrollspynav",[u,s])}};this.options.smoothscroll&&t.smoothScroll&&n.each(function(){t.smoothScroll(this,d.options.smoothscroll)}),h(),this.element.data("scrollspynav",this),this.check=h,s.push(this)}})}(UIkit),function(t){"use strict";var e=[];t.component("toggle",{defaults:{target:!1,cls:"uk-hidden",animation:!1,duration:200},boot:function(){t.ready(function(i){t.$("[data-uk-toggle]",i).each(function(){var e=t.$(this);if(!e.data("toggle")){t.toggle(e,t.Utils.options(e.attr("data-uk-toggle")))}}),setTimeout(function(){e.forEach(function(t){t.getToggles()})},0)})},init:function(){var t=this;this.aria=this.options.cls.indexOf("uk-hidden")!==-1,this.on("click",function(e){t.element.is('a[href="javascript:void(0);"]')&&e.preventDefault(),t.toggle()}),e.push(this)},toggle:function(){if(this.getToggles(),this.totoggle.length){if(this.options.animation&&t.support.animation){var e=this,i=this.options.animation.split(",");1==i.length&&(i[1]=i[0]),i[0]=i[0].trim(),i[1]=i[1].trim(),this.totoggle.css("animation-duration",this.options.duration+"ms"),this.totoggle.each(function(){var o=t.$(this);o.hasClass(e.options.cls)?(o.toggleClass(e.options.cls),t.Utils.animate(o,i[0]).then(function(){o.css("animation-duration",""),t.Utils.checkDisplay(o)})):t.Utils.animate(this,i[1]+" uk-animation-reverse").then(function(){o.toggleClass(e.options.cls).css("animation-duration",""),t.Utils.checkDisplay(o)})})}else this.totoggle.toggleClass(this.options.cls),t.Utils.checkDisplay(this.totoggle);this.updateAria()}},getToggles:function(){this.totoggle=this.options.target?t.$(this.options.target):[],this.updateAria()},updateAria:function(){this.aria&&this.totoggle.length&&this.totoggle.not("[aria-hidden]").each(function(){t.$(this).attr("aria-hidden",t.$(this).hasClass("uk-hidden"))})}})}(UIkit),function(t){"use strict";t.component("alert",{defaults:{fade:!0,duration:200,trigger:".uk-alert-close"},boot:function(){t.$html.on("click.alert.uikit","[data-uk-alert]",function(e){var i=t.$(this);if(!i.data("alert")){var o=t.alert(i,t.Utils.options(i.attr("data-uk-alert")));t.$(e.target).is(o.options.trigger)&&(e.preventDefault(),o.close())}})},init:function(){var t=this;this.on("click",this.options.trigger,function(e){e.preventDefault(),t.close()})},close:function(){var t=this.trigger("close.uk.alert"),e=function(){this.trigger("closed.uk.alert").remove()}.bind(this);this.options.fade?t.css("overflow","hidden").css("max-height",t.height()).animate({height:0,opacity:0,"padding-top":0,"padding-bottom":0,"margin-top":0,"margin-bottom":0},this.options.duration,e):e()}})}(UIkit),function(t){"use strict";t.component("buttonRadio",{defaults:{activeClass:"uk-active",target:".uk-button"},boot:function(){t.$html.on("click.buttonradio.uikit","[data-uk-button-radio]",function(e){var i=t.$(this);if(!i.data("buttonRadio")){var o=t.buttonRadio(i,t.Utils.options(i.attr("data-uk-button-radio"))),n=t.$(e.target);n.is(o.options.target)&&n.trigger("click")}})},init:function(){var e=this;this.find(e.options.target).attr("aria-checked","false").filter("."+e.options.activeClass).attr("aria-checked","true"),this.on("click",this.options.target,function(i){var o=t.$(this);o.is('a[href="javascript:void(0);"]')&&i.preventDefault(),e.find(e.options.target).not(o).removeClass(e.options.activeClass).blur(),o.addClass(e.options.activeClass),e.find(e.options.target).not(o).attr("aria-checked","false"),o.attr("aria-checked","true"),e.trigger("change.uk.button",[o])})},getSelected:function(){return this.find("."+this.options.activeClass)}}),t.component("buttonCheckbox",{defaults:{activeClass:"uk-active",target:".uk-button"},boot:function(){t.$html.on("click.buttoncheckbox.uikit","[data-uk-button-checkbox]",function(e){var i=t.$(this);if(!i.data("buttonCheckbox")){var o=t.buttonCheckbox(i,t.Utils.options(i.attr("data-uk-button-checkbox"))),n=t.$(e.target);n.is(o.options.target)&&n.trigger("click")}})},init:function(){var e=this;this.find(e.options.target).attr("aria-checked","false").filter("."+e.options.activeClass).attr("aria-checked","true"),this.on("click",this.options.target,function(i){var o=t.$(this);o.is('a[href="javascript:void(0);"]')&&i.preventDefault(),o.toggleClass(e.options.activeClass).blur(),o.attr("aria-checked",o.hasClass(e.options.activeClass)),e.trigger("change.uk.button",[o])})},getSelected:function(){return this.find("."+this.options.activeClass)}}),t.component("button",{defaults:{},boot:function(){t.$html.on("click.button.uikit","[data-uk-button]",function(e){var i=t.$(this);if(!i.data("button")){t.button(i,t.Utils.options(i.attr("data-uk-button")));i.trigger("click")}})},init:function(){var t=this;this.element.attr("aria-pressed",this.element.hasClass("uk-active")),this.on("click",function(e){t.element.is('a[href="javascript:void(0);"]')&&e.preventDefault(),t.toggle(),t.trigger("change.uk.button",[t.element.blur().hasClass("uk-active")])})},toggle:function(){this.element.toggleClass("uk-active"),this.element.attr("aria-pressed",this.element.hasClass("uk-active"))}})}(UIkit),function(t){"use strict";function e(e,i,o,n){if(e=t.$(e),i=t.$(i),o=o||window.innerWidth,n=n||e.offset(),i.length){var s=i.outerWidth();if(e.css("min-width",s),"right"==t.langdirection){var a=o-(i.offset().left+s),r=o-(e.offset().left+e.outerWidth());e.css("margin-right",a-r)}else e.css("margin-left",i.offset().left-n.left)}}var i,o=!1,n={x:{"bottom-left":"bottom-right","bottom-right":"bottom-left","bottom-center":"bottom-center","top-left":"top-right","top-right":"top-left","top-center":"top-center","left-top":"right-top","left-bottom":"right-bottom","left-center":"right-center","right-top":"left-top","right-bottom":"left-bottom","right-center":"left-center"},y:{"bottom-left":"top-left","bottom-right":"top-right","bottom-center":"top-center","top-left":"bottom-left","top-right":"bottom-right","top-center":"bottom-center","left-top":"left-bottom","left-bottom":"left-top","left-center":"left-center","right-top":"right-bottom","right-bottom":"right-top","right-center":"right-center"},xy:{"bottom-left":"top-right","bottom-right":"top-left","bottom-center":"top-center","top-left":"bottom-right","top-right":"bottom-left","top-center":"bottom-center","left-top":"right-bottom","left-bottom":"right-top","left-center":"right-center","right-top":"left-bottom","right-bottom":"left-top","right-center":"left-center"}};t.component("dropdown",{defaults:{mode:"hover",pos:"bottom-left",offset:0,remaintime:800,justify:!1,boundary:t.$win,delay:0,dropdownSelector:".uk-dropdown,.uk-dropdown-blank",hoverDelayIdle:250,preventflip:!1},remainIdle:!1,boot:function(){var e=t.support.touch?"click":"mouseenter";t.$html.on(e+".dropdown.uikit focus","[data-uk-dropdown]",function(i){var o=t.$(this);if(!o.data("dropdown")){var n=t.dropdown(o,t.Utils.options(o.attr("data-uk-dropdown")));("click"==e||"mouseenter"==e&&"hover"==n.options.mode)&&n.element.trigger(e),n.element.find(n.options.dropdownSelector).length&&i.preventDefault()}})},init:function(){var e=this;this.dropdown=this.find(this.options.dropdownSelector),this.offsetParent=this.dropdown.parents().filter(function(){return t.$.inArray(t.$(this).css("position"),["relative","fixed","absolute"])!==-1}).slice(0,1),this.centered=this.dropdown.hasClass("uk-dropdown-center"),this.justified=!!this.options.justify&&t.$(this.options.justify),this.boundary=t.$(this.options.boundary),this.boundary.length||(this.boundary=t.$win),this.dropdown.hasClass("uk-dropdown-up")&&(this.options.pos="top-left"),this.dropdown.hasClass("uk-dropdown-flip")&&(this.options.pos=this.options.pos.replace("left","right")),this.dropdown.hasClass("uk-dropdown-center")&&(this.options.pos=this.options.pos.replace(/(left|right)/,"center")),this.element.attr("aria-haspopup","true"),this.element.attr("aria-expanded",this.element.hasClass("uk-open")),this.dropdown.attr("aria-hidden","true"),"click"==this.options.mode||t.support.touch?this.on("click.uk.dropdown",function(i){var o=t.$(i.target);o.parents(e.options.dropdownSelector).length||((o.is("a[href='javascript:void(0);']")||o.parent().is("a[href='javascript:void(0);']")||e.dropdown.length&&!e.dropdown.is(":visible"))&&i.preventDefault(),o.blur()),e.element.hasClass("uk-open")?(!e.dropdown.find(i.target).length||o.is(".uk-dropdown-close")||o.parents(".uk-dropdown-close").length)&&e.hide():e.show()}):this.on("mouseenter",function(t){e.trigger("pointerenter.uk.dropdown",[e]),e.remainIdle&&clearTimeout(e.remainIdle),i&&clearTimeout(i),o&&o==e||(i=o&&o!=e?setTimeout(function(){i=setTimeout(e.show.bind(e),e.options.delay)},e.options.hoverDelayIdle):setTimeout(e.show.bind(e),e.options.delay))}).on("mouseleave",function(){i&&clearTimeout(i),e.remainIdle=setTimeout(function(){o&&o==e&&e.hide()},e.options.remaintime),e.trigger("pointerleave.uk.dropdown",[e])}).on("click",function(i){var n=t.$(i.target);return e.remainIdle&&clearTimeout(e.remainIdle),o&&o==e?void((!e.dropdown.find(i.target).length||n.is(".uk-dropdown-close")||n.parents(".uk-dropdown-close").length)&&e.hide()):((n.is("a[href='javascript:void(0);']")||n.parent().is("a[href='javascript:void(0);']"))&&i.preventDefault(),void e.show())})},show:function(){t.$html.off("click.outer.dropdown"),o&&o!=this&&o.hide(!0),i&&clearTimeout(i),this.trigger("beforeshow.uk.dropdown",[this]),this.checkDimensions(),this.element.addClass("uk-open"),this.element.attr("aria-expanded","true"),this.dropdown.attr("aria-hidden","false"),this.trigger("show.uk.dropdown",[this]),t.Utils.checkDisplay(this.dropdown,!0),t.Utils.focus(this.dropdown),o=this,this.registerOuterClick()},hide:function(t){this.trigger("beforehide.uk.dropdown",[this,t]),this.element.removeClass("uk-open"),this.remainIdle&&clearTimeout(this.remainIdle),this.remainIdle=!1,this.element.attr("aria-expanded","false"),this.dropdown.attr("aria-hidden","true"),this.trigger("hide.uk.dropdown",[this,t]),o==this&&(o=!1)},registerOuterClick:function(){var e=this;t.$html.off("click.outer.dropdown"),setTimeout(function(){t.$html.on("click.outer.dropdown",function(n){i&&clearTimeout(i);t.$(n.target);o!=e||e.element.find(n.target).length||(e.hide(!0),t.$html.off("click.outer.dropdown"))})},10)},checkDimensions:function(){if(this.dropdown.length){this.dropdown.removeClass("uk-dropdown-top uk-dropdown-bottom uk-dropdown-left uk-dropdown-right uk-dropdown-stack").css({"top-left":"",left:"","margin-left":"","margin-right":""}),this.justified&&this.justified.length&&this.dropdown.css("min-width","");var i,o=t.$.extend({},this.offsetParent.offset(),{width:this.offsetParent[0].offsetWidth,height:this.offsetParent[0].offsetHeight}),s=this.options.offset,a=this.dropdown,r=(a.show().offset()||{left:0,top:0},a.outerWidth()),l=a.outerHeight(),d=this.boundary.width(),h=(this.boundary[0]!==window&&this.boundary.offset()?this.boundary.offset():{top:0,left:0},this.options.pos),u={"bottom-left":{top:0+o.height+s,left:0},"bottom-right":{top:0+o.height+s,left:0+o.width-r},"bottom-center":{top:0+o.height+s,left:0+o.width/2-r/2},"top-left":{top:0-l-s,left:0},"top-right":{top:0-l-s,left:0+o.width-r},"top-center":{top:0-l-s,left:0+o.width/2-r/2},"left-top":{top:0,left:0-r-s},"left-bottom":{top:0+o.height-l,left:0-r-s},"left-center":{top:0+o.height/2-l/2,left:0-r-s},"right-top":{
- top:0,left:0+o.width+s},"right-bottom":{top:0+o.height-l,left:0+o.width+s},"right-center":{top:0+o.height/2-l/2,left:0+o.width+s}},c={};if(i=h.split("-"),c=u[h]?u[h]:u["bottom-left"],this.justified&&this.justified.length)e(a.css({left:0}),this.justified,d);else if(this.options.preventflip!==!0){var p;switch(this.checkBoundary(o.left+c.left,o.top+c.top,r,l,d)){case"x":"x"!==this.options.preventflip&&(p=n.x[h]||"right-top");break;case"y":"y"!==this.options.preventflip&&(p=n.y[h]||"top-left");break;case"xy":this.options.preventflip||(p=n.xy[h]||"right-bottom")}p&&(i=p.split("-"),c=u[p]?u[p]:u["bottom-left"],this.checkBoundary(o.left+c.left,o.top+c.top,r,l,d)&&(i=h.split("-"),c=u[h]?u[h]:u["bottom-left"]))}r>d&&(a.addClass("uk-dropdown-stack"),this.trigger("stack.uk.dropdown",[this])),a.css(c).css("display","").addClass("uk-dropdown-"+i[0])}},checkBoundary:function(e,i,o,n,s){var a="";return(e<0||e-t.$win.scrollLeft()+o>s)&&(a+="x"),(i-t.$win.scrollTop()<0||i-t.$win.scrollTop()+n>window.innerHeight)&&(a+="y"),a}}),t.component("dropdownOverlay",{defaults:{justify:!1,cls:"",duration:200},boot:function(){t.ready(function(e){t.$("[data-uk-dropdown-overlay]",e).each(function(){var e=t.$(this);e.data("dropdownOverlay")||t.dropdownOverlay(e,t.Utils.options(e.attr("data-uk-dropdown-overlay")))})})},init:function(){var i=this;this.justified=!!this.options.justify&&t.$(this.options.justify),this.overlay=this.element.find("uk-dropdown-overlay"),this.overlay.length||(this.overlay=t.$('<div class="uk-dropdown-overlay"></div>').appendTo(this.element)),this.overlay.addClass(this.options.cls),this.on({"beforeshow.uk.dropdown":function(t,o){i.dropdown=o,i.justified&&i.justified.length&&e(i.overlay.css({display:"block","margin-left":"","margin-right":""}),i.justified,i.justified.outerWidth())},"show.uk.dropdown":function(e,o){var n=i.dropdown.dropdown.outerHeight(!0);i.dropdown.element.removeClass("uk-open"),i.overlay.stop().css("display","block").animate({height:n},i.options.duration,function(){i.dropdown.dropdown.css("visibility",""),i.dropdown.element.addClass("uk-open"),t.Utils.checkDisplay(i.dropdown.dropdown,!0)}),i.pointerleave=!1},"hide.uk.dropdown":function(){i.overlay.stop().animate({height:0},i.options.duration)},"pointerenter.uk.dropdown":function(t,e){clearTimeout(i.remainIdle)},"pointerleave.uk.dropdown":function(t,e){i.pointerleave=!0}}),this.overlay.on({mouseenter:function(){i.remainIdle&&(clearTimeout(i.dropdown.remainIdle),clearTimeout(i.remainIdle))},mouseleave:function(){i.pointerleave&&o&&(i.remainIdle=setTimeout(function(){o&&o.hide()},o.options.remaintime))}})}})}(UIkit),function(t){"use strict";var e=[];t.component("gridMatchHeight",{defaults:{target:!1,row:!0,ignorestacked:!1,observe:!1},boot:function(){t.ready(function(e){t.$("[data-uk-grid-match]",e).each(function(){var e,i=t.$(this);i.data("gridMatchHeight")||(e=t.gridMatchHeight(i,t.Utils.options(i.attr("data-uk-grid-match"))))})})},init:function(){var i=this;this.columns=this.element.children(),this.elements=this.options.target?this.find(this.options.target):this.columns,this.columns.length&&(t.$win.on("load resize orientationchange",function(){var e=function(){i.element.is(":visible")&&i.match()};return t.$(function(){e()}),t.Utils.debounce(e,50)}()),this.options.observe&&t.domObserve(this.element,function(t){i.element.is(":visible")&&i.match()}),this.on("display.uk.check",function(t){this.element.is(":visible")&&this.match()}.bind(this)),e.push(this))},match:function(){var e=this.columns.filter(":visible:first");if(e.length){var i=Math.ceil(100*parseFloat(e.css("width"))/parseFloat(e.parent().css("width")))>=100;return i&&!this.options.ignorestacked?this.revert():t.Utils.matchHeights(this.elements,this.options),this}},revert:function(){return this.elements.css("min-height",""),this}}),t.component("gridMargin",{defaults:{cls:"uk-grid-margin",rowfirst:"uk-row-first"},boot:function(){t.ready(function(e){t.$("[data-uk-grid-margin]",e).each(function(){var e,i=t.$(this);i.data("gridMargin")||(e=t.gridMargin(i,t.Utils.options(i.attr("data-uk-grid-margin"))))})})},init:function(){t.stackMargin(this.element,this.options)}})}(UIkit),function(t){"use strict";function e(e,i){if(i)return"object"==typeof e?(e=e instanceof jQuery?e:t.$(e),e.parent().length&&(i.persist=e,i.persist.data("modalPersistParent",e.parent()))):e="string"==typeof e||"number"==typeof e?t.$("<div></div>").html(e):t.$("<div></div>").html("UIkit.modal Error: Unsupported data type: "+typeof e),e.appendTo(i.element.find(".uk-modal-dialog")),i}var i,o=!1,n=0,s=t.$html;t.$win.on("resize orientationchange",t.Utils.debounce(function(){t.$(".uk-modal.uk-open").each(function(){return t.$(this).data("modal")&&t.$(this).data("modal").resize()})},150)),t.component("modal",{defaults:{keyboard:!0,bgclose:!0,minScrollHeight:150,center:!1,modal:!0},scrollable:!1,transition:!1,hasTransitioned:!0,init:function(){if(i||(i=t.$("body")),this.element.length){var e=this;this.paddingdir="padding-"+("left"==t.langdirection?"right":"left"),this.dialog=this.find(".uk-modal-dialog"),this.active=!1,this.element.attr("aria-hidden",this.element.hasClass("uk-open")),this.on("click",".uk-modal-close",function(t){t.preventDefault(),e.hide()}).on("click",function(i){var o=t.$(i.target);o[0]==e.element[0]&&e.options.bgclose&&e.hide()}),t.domObserve(this.element,function(t){e.resize()})}},toggle:function(){return this[this.isActive()?"hide":"show"]()},show:function(){if(this.element.length){var e=this;if(!this.isActive())return this.options.modal&&o&&o.hide(!0),this.element.removeClass("uk-open").show(),this.resize(!0),this.options.modal&&(o=this),this.active=!0,n++,t.support.transition?(this.hasTransitioned=!1,this.element.one(t.support.transition.end,function(){e.hasTransitioned=!0,t.Utils.focus(e.dialog,"a[href]")}).addClass("uk-open")):(this.element.addClass("uk-open"),t.Utils.focus(this.dialog,"a[href]")),s.addClass("uk-modal-page").height(),this.element.attr("aria-hidden","false"),this.element.trigger("show.uk.modal"),t.Utils.checkDisplay(this.dialog,!0),this}},hide:function(e){if(!e&&t.support.transition&&this.hasTransitioned){var i=this;this.one(t.support.transition.end,function(){i._hide()}).removeClass("uk-open")}else this._hide();return this},resize:function(t){if(this.isActive()||t){var e=i.width();if(this.scrollbarwidth=window.innerWidth-e,i.css(this.paddingdir,this.scrollbarwidth),this.element.css("overflow-y",this.scrollbarwidth?"scroll":"auto"),!this.updateScrollable()&&this.options.center){var o=this.dialog.outerHeight(),n=parseInt(this.dialog.css("margin-top"),10)+parseInt(this.dialog.css("margin-bottom"),10);o+n<window.innerHeight?this.dialog.css({top:window.innerHeight/2-o/2-n}):this.dialog.css({top:""})}}},updateScrollable:function(){var t=this.dialog.find(".uk-overflow-container:visible:first");if(t.length){t.css("height",0);var e=Math.abs(parseInt(this.dialog.css("margin-top"),10)),i=this.dialog.outerHeight(),o=window.innerHeight,n=o-2*(e<20?20:e)-i;return t.css({"max-height":n<this.options.minScrollHeight?"":n,height:""}),!0}return!1},_hide:function(){this.active=!1,n>0?n--:n=0,this.element.hide().removeClass("uk-open"),this.element.attr("aria-hidden","true"),n||(s.removeClass("uk-modal-page"),i.css(this.paddingdir,"")),o===this&&(o=!1),this.trigger("hide.uk.modal")},isActive:function(){return this.element.hasClass("uk-open")}}),t.component("modalTrigger",{boot:function(){t.$html.on("click.modal.uikit","[data-uk-modal]",function(e){var i=t.$(this);if(i.is("a")&&e.preventDefault(),!i.data("modalTrigger")){var o=t.modalTrigger(i,t.Utils.options(i.attr("data-uk-modal")));o.show()}}),t.$html.on("keydown.modal.uikit",function(t){o&&27===t.keyCode&&o.options.keyboard&&(t.preventDefault(),o.hide())})},init:function(){var e=this;this.options=t.$.extend({target:!!e.element.is("a")&&e.element.attr("href")},this.options),this.modal=t.modal(this.options.target,this.options),this.on("click",function(t){t.preventDefault(),e.show()}),this.proxy(this.modal,"show hide isActive")}}),t.modal.dialog=function(i,o){var n=t.modal(t.$(t.modal.dialog.template).appendTo("body"),o);return n.on("hide.uk.modal",function(){n.persist&&(n.persist.appendTo(n.persist.data("modalPersistParent")),n.persist=!1),n.element.remove()}),e(i,n),n},t.modal.dialog.template='<div class="uk-modal"><div class="uk-modal-dialog" style="min-height:0;"></div></div>',t.modal.alert=function(e,i){i=t.$.extend(!0,{bgclose:!1,keyboard:!1,modal:!1,labels:t.modal.labels},i);var o=t.modal.dialog(['<div class="uk-margin uk-modal-content">'+String(e)+"</div>",'<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary uk-modal-close">'+i.labels.Ok+"</button></div>"].join(""),i);return o.on("show.uk.modal",function(){setTimeout(function(){o.element.find("button:first").focus()},50)}),o.show()},t.modal.confirm=function(e,i,o){var n=arguments.length>1&&arguments[arguments.length-1]?arguments[arguments.length-1]:{};i=t.$.isFunction(i)?i:function(){},o=t.$.isFunction(o)?o:function(){},n=t.$.extend(!0,{bgclose:!1,keyboard:!1,modal:!1,labels:t.modal.labels},t.$.isFunction(n)?{}:n);var s=t.modal.dialog(['<div class="uk-margin uk-modal-content">'+String(e)+"</div>",'<div class="uk-modal-footer uk-text-right"><button class="uk-button js-modal-confirm-cancel">'+n.labels.Cancel+'</button> <button class="uk-button uk-button-primary js-modal-confirm">'+n.labels.Ok+"</button></div>"].join(""),n);return s.element.find(".js-modal-confirm, .js-modal-confirm-cancel").on("click",function(){t.$(this).is(".js-modal-confirm")?i():o(),s.hide()}),s.on("show.uk.modal",function(){setTimeout(function(){s.element.find(".js-modal-confirm").focus()},50)}),s.show()},t.modal.prompt=function(e,i,o,n){o=t.$.isFunction(o)?o:function(t){},n=t.$.extend(!0,{bgclose:!1,keyboard:!1,modal:!1,labels:t.modal.labels},n);var s=t.modal.dialog([e?'<div class="uk-modal-content uk-form">'+String(e)+"</div>":"",'<div class="uk-margin-small-top uk-modal-content uk-form"><p><input type="text" class="uk-width-1-1"></p></div>','<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-modal-close">'+n.labels.Cancel+'</button> <button class="uk-button uk-button-primary js-modal-ok">'+n.labels.Ok+"</button></div>"].join(""),n),a=s.element.find("input[type='text']").val(i||"").on("keyup",function(t){13==t.keyCode&&s.element.find(".js-modal-ok").trigger("click")});return s.element.find(".js-modal-ok").on("click",function(){o(a.val())!==!1&&s.hide()}),s.show()},t.modal.blockUI=function(e,i){var o=t.modal.dialog(['<div class="uk-margin uk-modal-content">'+String(e||'<div class="uk-text-center">...</div>')+"</div>"].join(""),t.$.extend({bgclose:!1,keyboard:!1,modal:!1},i));return o.content=o.element.find(".uk-modal-content:first"),o.show()},t.modal.labels={Ok:"Ok",Cancel:"Cancel"}}(UIkit),function(t){"use strict";function e(e){var i=t.$(e),o="auto";if(i.is(":visible"))o=i.outerHeight();else{var n={position:i.css("position"),visibility:i.css("visibility"),display:i.css("display")};o=i.css({position:"absolute",visibility:"hidden",display:"block"}).outerHeight(),i.css(n)}return o}t.component("nav",{defaults:{toggle:">li.uk-parent > a[href='javascript:void(0);']",lists:">li.uk-parent > ul",multiple:!1},boot:function(){t.ready(function(e){t.$("[data-uk-nav]",e).each(function(){var e=t.$(this);if(!e.data("nav")){t.nav(e,t.Utils.options(e.attr("data-uk-nav")))}})})},init:function(){var e=this;this.on("click.uk.nav",this.options.toggle,function(i){i.preventDefault();var o=t.$(this);e.open(o.parent()[0]==e.element[0]?o:o.parent("li"))}),this.update(!0),t.domObserve(this.element,function(t){e.element.find(this.options.lists).not("[role]").length&&e.update()})},update:function(e){var i=this;this.find(this.options.lists).each(function(){var e=t.$(this).attr("role","menu"),o=e.closest("li"),n=o.hasClass("uk-active");o.data("list-container")||(e.wrap('<div style="overflow:hidden;height:0;position:relative;"></div>'),o.data("list-container",e.parent()[n?"removeClass":"addClass"]("uk-hidden"))),o.attr("aria-expanded",o.hasClass("uk-open")),n&&i.open(o,!0)})},open:function(i,o){var n=this,s=this.element,a=t.$(i),r=a.data("list-container");this.options.multiple||s.children(".uk-open").not(i).each(function(){var e=t.$(this);e.data("list-container")&&e.data("list-container").stop().animate({height:0},function(){t.$(this).parent().removeClass("uk-open").end().addClass("uk-hidden")})}),a.toggleClass("uk-open"),a.attr("aria-expanded",a.hasClass("uk-open")),r&&(a.hasClass("uk-open")&&r.removeClass("uk-hidden"),o?(r.stop().height(a.hasClass("uk-open")?"auto":0),a.hasClass("uk-open")||r.addClass("uk-hidden"),this.trigger("display.uk.check")):r.stop().animate({height:a.hasClass("uk-open")?e(r.find("ul:first")):0},function(){a.hasClass("uk-open")?r.css("height",""):r.addClass("uk-hidden"),n.trigger("display.uk.check")}))}})}(UIkit),function(t){"use strict";var e={x:window.scrollX,y:window.scrollY},i=(t.$win,t.$doc,t.$html),o={show:function(o,n){if(o=t.$(o),o.length){n=t.$.extend({mode:"push"},n);var s=t.$("body"),a=o.find(".uk-offcanvas-bar:first"),r="right"==t.langdirection,l=a.hasClass("uk-offcanvas-bar-flip")?-1:1,d=l*(r?-1:1),h=window.innerWidth-s.width();e={x:window.pageXOffset,y:window.pageYOffset},a.attr("mode",n.mode),o.addClass("uk-active"),s.css({width:window.innerWidth-h,height:window.innerHeight}).addClass("uk-offcanvas-page"),"push"!=n.mode&&"reveal"!=n.mode||s.css(r?"margin-right":"margin-left",(r?-1:1)*(a.outerWidth()*d)),"reveal"==n.mode&&a.css("clip","rect(0, "+a.outerWidth()+"px, 100vh, 0)"),i.css("margin-top",e.y*-1).width(),a.addClass("uk-offcanvas-bar-show"),this._initElement(o),a.trigger("show.uk.offcanvas",[o,a]),o.attr("aria-hidden","false")}},hide:function(o){var n=t.$("body"),s=t.$(".uk-offcanvas.uk-active"),a="right"==t.langdirection,r=s.find(".uk-offcanvas-bar:first"),l=function(){n.removeClass("uk-offcanvas-page").css({width:"",height:"","margin-left":"","margin-right":""}),s.removeClass("uk-active"),r.removeClass("uk-offcanvas-bar-show"),i.css("margin-top",""),window.scrollTo(e.x,e.y),r.trigger("hide.uk.offcanvas",[s,r]),s.attr("aria-hidden","true")};s.length&&("none"==r.attr("mode")&&(o=!0),t.support.transition&&!o?(n.one(t.support.transition.end,function(){l()}).css(a?"margin-right":"margin-left",""),"reveal"==r.attr("mode")&&r.css("clip",""),setTimeout(function(){r.removeClass("uk-offcanvas-bar-show")},0)):l())},_initElement:function(e){e.data("OffcanvasInit")||(e.on("click.uk.offcanvas swipeRight.uk.offcanvas swipeLeft.uk.offcanvas",function(e){var i=t.$(e.target);if(!e.type.match(/swipe/)&&!i.hasClass("uk-offcanvas-close")){if(i.hasClass("uk-offcanvas-bar"))return;if(i.parents(".uk-offcanvas-bar:first").length)return}e.stopImmediatePropagation(),o.hide()}),e.on("click","a[href*='#']",function(e){var i=t.$(this),n=i.attr("href");"#"!=n&&(t.$doc.one("hide.uk.offcanvas",function(){var e;try{e=t.$(i[0].hash)}catch(o){e=""}e.length||(e=t.$('[name="'+i[0].hash.replace("#","")+'"]')),e.length&&t.Utils.scrollToElement?t.Utils.scrollToElement(e,t.Utils.options(i.attr("data-uk-smooth-scroll")||"{}")):window.location.href=n}),o.hide())}),e.data("OffcanvasInit",!0))}};t.component("offcanvasTrigger",{boot:function(){i.on("click.offcanvas.uikit","[data-uk-offcanvas]",function(e){e.preventDefault();var i=t.$(this);if(!i.data("offcanvasTrigger")){t.offcanvasTrigger(i,t.Utils.options(i.attr("data-uk-offcanvas")));i.trigger("click")}}),i.on("keydown.uk.offcanvas",function(t){27===t.keyCode&&o.hide()})},init:function(){var e=this;this.options=t.$.extend({target:!!e.element.is("a")&&e.element.attr("href"),mode:"push"},this.options),this.on("click",function(t){t.preventDefault(),o.show(e.options.target,e.options)})}}),t.offcanvas=o}(UIkit),function(t){"use strict";function e(e,i,o){var n,s=t.$.Deferred(),a=e,r=e;return o[0]===i[0]?(s.resolve(),s.promise()):("object"==typeof e&&(a=e[0],r=e[1]||e[0]),t.$body.css("overflow-x","hidden"),n=function(){i&&i.hide().removeClass("uk-active "+r+" uk-animation-reverse"),o.addClass(a).one(t.support.animation.end,function(){setTimeout(function(){o.removeClass(""+a).css({opacity:"",display:""})},0),s.resolve(),t.$body.css("overflow-x",""),i&&i.css({opacity:"",display:""})}.bind(this)).show()},o.css("animation-duration",this.options.duration+"ms"),i&&i.length?(i.css("animation-duration",this.options.duration+"ms"),i.css("display","none").addClass(r+" uk-animation-reverse").one(t.support.animation.end,function(){n()}.bind(this)).css("display","")):(o.addClass("uk-active"),n()),s.promise())}var i;t.component("switcher",{defaults:{connect:!1,toggle:">*",active:0,animation:!1,duration:200,swiping:!0},animating:!1,boot:function(){t.ready(function(e){t.$("[data-uk-switcher]",e).each(function(){var e=t.$(this);if(!e.data("switcher")){t.switcher(e,t.Utils.options(e.attr("data-uk-switcher")))}})})},init:function(){var e=this;this.on("click.uk.switcher",this.options.toggle,function(t){t.preventDefault(),e.show(this)}),this.options.connect&&(this.connect=t.$(this.options.connect),this.connect.length&&(this.connect.on("click.uk.switcher","[data-uk-switcher-item]",function(i){i.preventDefault();var o=t.$(this).attr("data-uk-switcher-item");if(e.index!=o)switch(o){case"next":case"previous":e.show(e.index+("next"==o?1:-1));break;default:e.show(parseInt(o,10))}}),this.options.swiping&&this.connect.on("swipeRight swipeLeft",function(t){t.preventDefault(),window.getSelection().toString()||e.show(e.index+("swipeLeft"==t.type?1:-1))}),this.update()))},update:function(){this.connect.children().removeClass("uk-active").attr("aria-hidden","true");var t=this.find(this.options.toggle),e=t.filter(".uk-active");if(e.length)this.show(e,!1);else{if(this.options.active===!1)return;e=t.eq(this.options.active),this.show(e.length?e:t.eq(0),!1)}t.not(e).attr("aria-expanded","false"),e.attr("aria-expanded","true")},show:function(o,n){if(!this.animating){if(isNaN(o))o=t.$(o);else{var s=this.find(this.options.toggle);o=o<0?s.length-1:o,o=s.eq(s[o]?o:0)}var a=this,s=this.find(this.options.toggle),r=t.$(o),l=i[this.options.animation]||function(t,o){if(!a.options.animation)return i.none.apply(a);var n=a.options.animation.split(",");return 1==n.length&&(n[1]=n[0]),n[0]=n[0].trim(),n[1]=n[1].trim(),e.apply(a,[n,t,o])};n!==!1&&t.support.animation||(l=i.none),r.hasClass("uk-disabled")||(s.attr("aria-expanded","false"),r.attr("aria-expanded","true"),s.filter(".uk-active").removeClass("uk-active"),r.addClass("uk-active"),this.options.connect&&this.connect.length&&(this.index=this.find(this.options.toggle).index(r),this.index==-1&&(this.index=0),this.connect.each(function(){var e=t.$(this),i=t.$(e.children()),o=t.$(i.filter(".uk-active")),n=t.$(i.eq(a.index));a.animating=!0,l.apply(a,[o,n]).then(function(){o.removeClass("uk-active"),n.addClass("uk-active"),o.attr("aria-hidden","true"),n.attr("aria-hidden","false"),t.Utils.checkDisplay(n,!0),a.animating=!1})})),this.trigger("show.uk.switcher",[r]))}}}),i={none:function(){var e=t.$.Deferred();return e.resolve(),e.promise()},fade:function(t,i){return e.apply(this,["uk-animation-fade",t,i])},"slide-bottom":function(t,i){return e.apply(this,["uk-animation-slide-bottom",t,i])},"slide-top":function(t,i){return e.apply(this,["uk-animation-slide-top",t,i])},"slide-vertical":function(t,i,o){var n=["uk-animation-slide-top","uk-animation-slide-bottom"];return t&&t.index()>i.index()&&n.reverse(),e.apply(this,[n,t,i])},"slide-left":function(t,i){return e.apply(this,["uk-animation-slide-left",t,i])},"slide-right":function(t,i){return e.apply(this,["uk-animation-slide-right",t,i])},"slide-horizontal":function(t,i,o){var n=["uk-animation-slide-right","uk-animation-slide-left"];return t&&t.index()>i.index()&&n.reverse(),e.apply(this,[n,t,i])},scale:function(t,i){return e.apply(this,["uk-animation-scale-up",t,i])}},t.switcher.animations=i}(UIkit),function(t){"use strict";t.component("tab",{defaults:{target:">li:not(.uk-tab-responsive, .uk-disabled)",connect:!1,active:0,animation:!1,duration:200,swiping:!0},boot:function(){t.ready(function(e){t.$("[data-uk-tab]",e).each(function(){var e=t.$(this);if(!e.data("tab")){t.tab(e,t.Utils.options(e.attr("data-uk-tab")))}})})},init:function(){var e=this;this.current=!1,this.on("click.uk.tab",this.options.target,function(i){if(i.preventDefault(),!e.switcher||!e.switcher.animating){var o=e.find(e.options.target).not(this);o.removeClass("uk-active").blur(),e.trigger("change.uk.tab",[t.$(this).addClass("uk-active"),e.current]),e.current=t.$(this),e.options.connect||(o.attr("aria-expanded","false"),t.$(this).attr("aria-expanded","true"))}}),this.options.connect&&(this.connect=t.$(this.options.connect)),this.responsivetab=t.$('<li class="uk-tab-responsive uk-active"><a></a></li>').append('<div class="uk-dropdown uk-dropdown-small"><ul class="uk-nav uk-nav-dropdown"></ul><div>'),this.responsivetab.dropdown=this.responsivetab.find(".uk-dropdown"),this.responsivetab.lst=this.responsivetab.dropdown.find("ul"),this.responsivetab.caption=this.responsivetab.find("a:first"),this.element.hasClass("uk-tab-bottom")&&this.responsivetab.dropdown.addClass("uk-dropdown-up"),this.responsivetab.lst.on("click.uk.tab","a",function(i){i.preventDefault(),i.stopPropagation();var o=t.$(this);e.element.children("li:not(.uk-tab-responsive)").eq(o.data("index")).trigger("click")}),this.on("show.uk.switcher change.uk.tab",function(t,i){e.responsivetab.caption.html(i.text())}),this.element.append(this.responsivetab),this.options.connect&&(this.switcher=t.switcher(this.element,{toggle:">li:not(.uk-tab-responsive)",connect:this.options.connect,active:this.options.active,animation:this.options.animation,duration:this.options.duration,swiping:this.options.swiping})),t.dropdown(this.responsivetab,{mode:"click",preventflip:"y"}),e.trigger("change.uk.tab",[this.element.find(this.options.target).not(".uk-tab-responsive").filter(".uk-active")]),this.check(),t.$win.on("resize orientationchange",t.Utils.debounce(function(){e.element.is(":visible")&&e.check()},100)),this.on("display.uk.check",function(){e.element.is(":visible")&&e.check()})},check:function(){var e=this.element.children("li:not(.uk-tab-responsive)").removeClass("uk-hidden");if(!e.length)return void this.responsivetab.addClass("uk-hidden");var i,o,n,s=e.eq(0).offset().top+Math.ceil(e.eq(0).height()/2),a=!1;if(this.responsivetab.lst.empty(),e.each(function(){t.$(this).offset().top>s&&(a=!0)}),a)for(var r=0;r<e.length;r++)i=t.$(e.eq(r)),o=i.find("a"),"none"==i.css("float")||i.attr("uk-dropdown")||(i.hasClass("uk-disabled")||(n=i[0].outerHTML.replace("<a ",'<a data-index="'+r+'" '),this.responsivetab.lst.append(n)),i.addClass("uk-hidden"));this.responsivetab[this.responsivetab.lst.children("li").length?"removeClass":"addClass"]("uk-hidden")}})}(UIkit),function(t){"use strict";t.component("cover",{defaults:{automute:!0},boot:function(){t.ready(function(e){t.$("[data-uk-cover]",e).each(function(){var e=t.$(this);if(!e.data("cover")){t.cover(e,t.Utils.options(e.attr("data-uk-cover")))}})})},init:function(){if(this.parent=this.element.parent(),t.$win.on("load resize orientationchange",t.Utils.debounce(function(){this.check()}.bind(this),100)),this.on("display.uk.check",function(t){this.element.is(":visible")&&this.check()}.bind(this)),this.check(),this.element.is("iframe")&&this.options.automute){var e=this.element.attr("src");this.element.attr("src","").on("load",function(){this.contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")}).attr("src",[e,e.indexOf("?")>-1?"&":"?","enablejsapi=1&api=1"].join(""))}},check:function(){this.element.css({width:"",height:""}),this.dimension={w:this.element.width(),h:this.element.height()},this.element.attr("width")&&!isNaN(this.element.attr("width"))&&(this.dimension.w=this.element.attr("width")),this.element.attr("height")&&!isNaN(this.element.attr("height"))&&(this.dimension.h=this.element.attr("height")),this.ratio=this.dimension.w/this.dimension.h;var t,e,i=this.parent.width(),o=this.parent.height();i/this.ratio<o?(t=Math.ceil(o*this.ratio),e=o):(t=i,e=Math.ceil(i/this.ratio)),this.element.css({width:t,height:e})}})}(UIkit),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-accordion",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";function e(e){var i=t.$(e),o="auto";if(i.is(":visible"))o=i.outerHeight();else{var n={position:i.css("position"),visibility:i.css("visibility"),display:i.css("display")};o=i.css({position:"absolute",visibility:"hidden",display:"block"}).outerHeight(),i.css(n)}return o}return t.component("accordion",{defaults:{showfirst:!0,collapse:!0,animate:!0,easing:"swing",duration:300,toggle:".uk-accordion-title",containers:".uk-accordion-content",clsactive:"uk-active"},boot:function(){t.ready(function(e){setTimeout(function(){t.$("[data-uk-accordion]",e).each(function(){var e=t.$(this);e.data("accordion")||t.accordion(e,t.Utils.options(e.attr("data-uk-accordion")))})},0)})},init:function(){var e=this;this.element.on("click.uk.accordion",this.options.toggle,function(i){i.preventDefault(),e.toggleItem(t.$(this).data("wrapper"),e.options.animate,e.options.collapse)}),this.update(!0),t.domObserve(this.element,function(t){e.element.children(e.options.containers).length&&e.update()})},toggleItem:function(i,o,n){var s=this;i.data("toggle").toggleClass(this.options.clsactive),i.data("content").toggleClass(this.options.clsactive);var a=i.data("toggle").hasClass(this.options.clsactive);n&&(this.toggle.not(i.data("toggle")).removeClass(this.options.clsactive),this.content.not(i.data("content")).removeClass(this.options.clsactive).parent().stop().css("overflow","hidden").animate({height:0},{easing:this.options.easing,duration:o?this.options.duration:0}).attr("aria-expanded","false")),i.stop().css("overflow","hidden"),o?i.animate({height:a?e(i.data("content")):0},{easing:this.options.easing,duration:this.options.duration,complete:function(){a&&(i.css({overflow:"",height:"auto"}),t.Utils.checkDisplay(i.data("content"))),s.trigger("display.uk.check")}}):(i.height(a?"auto":0),a&&(i.css({overflow:""}),t.Utils.checkDisplay(i.data("content"))),this.trigger("display.uk.check")),i.attr("aria-expanded",a),this.element.trigger("toggle.uk.accordion",[a,i.data("toggle"),i.data("content")])},update:function(e){var i,o,n,s=this;this.toggle=this.find(this.options.toggle),this.content=this.find(this.options.containers),this.content.each(function(e){i=t.$(this),i.parent().data("wrapper")?o=i.parent():(o=t.$(this).wrap('<div data-wrapper="true" style="overflow:hidden;height:0;position:relative;"></div>').parent(),o.attr("aria-expanded","false")),n=s.toggle.eq(e),o.data("toggle",n),o.data("content",i),n.data("wrapper",o),i.data("wrapper",o)}),this.element.trigger("update.uk.accordion",[this]),e&&this.options.showfirst&&this.toggleItem(this.toggle.eq(0).data("wrapper"),!1,!1)}}),t.accordion}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-autocomplete",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";var e;return t.component("autocomplete",{defaults:{minLength:3,param:"search",method:"post",delay:300,loadingClass:"uk-loading",flipDropdown:!1,skipClass:"uk-skip",hoverClass:"uk-active",source:null,renderer:null,template:'<ul class="uk-nav uk-nav-autocomplete uk-autocomplete-results">{{~items}}<li data-value="{{$item.value}}"><a>{{$item.value}}</a></li>{{/items}}</ul>'},visible:!1,value:null,selected:null,boot:function(){t.$html.on("focus.autocomplete.uikit","[data-uk-autocomplete]",function(e){var i=t.$(this);i.data("autocomplete")||t.autocomplete(i,t.Utils.options(i.attr("data-uk-autocomplete")))}),t.$html.on("click.autocomplete.uikit",function(t){e&&t.target!=e.input[0]&&e.hide()})},init:function(){var e=this,i=!1,o=t.Utils.debounce(function(t){return i?i=!1:void e.handle()},this.options.delay);this.dropdown=this.find(".uk-dropdown"),this.template=this.find('script[type="text/autocomplete"]').html(),this.template=t.Utils.template(this.template||this.options.template),this.input=this.find("input:first").attr("autocomplete","off"),this.dropdown.length||(this.dropdown=t.$('<div class="uk-dropdown"></div>').appendTo(this.element)),this.options.flipDropdown&&this.dropdown.addClass("uk-dropdown-flip"),this.dropdown.attr("aria-expanded","false"),this.input.on({keydown:function(t){if(t&&t.which&&!t.shiftKey&&e.visible)switch(t.which){case 13:i=!0,e.selected&&(t.preventDefault(),e.select());break;case 38:t.preventDefault(),e.pick("prev",!0);break;case 40:t.preventDefault(),e.pick("next",!0);break;case 27:case 9:e.hide()}},keyup:o}),this.dropdown.on("click",".uk-autocomplete-results > *",function(){e.select()}),this.dropdown.on("mouseover",".uk-autocomplete-results > *",function(){e.pick(t.$(this))}),this.triggercomplete=o},handle:function(){var t=this,e=this.value;return this.value=this.input.val(),this.value.length<this.options.minLength?this.hide():(this.value!=e&&t.request(),this)},pick:function(e,i){var o=this,n=t.$(this.dropdown.find(".uk-autocomplete-results").children(":not(."+this.options.skipClass+")")),s=!1;if("string"==typeof e||e.hasClass(this.options.skipClass)){if("next"==e||"prev"==e){if(this.selected){var a=n.index(this.selected);s="next"==e?n.eq(a+1<n.length?a+1:0):n.eq(a-1<0?n.length-1:a-1)}else s=n["next"==e?"first":"last"]();s=t.$(s)}}else s=e;if(s&&s.length&&(this.selected=s,n.removeClass(this.options.hoverClass),this.selected.addClass(this.options.hoverClass),i)){var r=s.position().top,l=o.dropdown.scrollTop(),d=o.dropdown.height();(r>d||r<0)&&o.dropdown.scrollTop(l+r)}},select:function(){if(this.selected){var t=this.selected.data();this.trigger("selectitem.uk.autocomplete",[t,this]),t.value&&this.input.val(t.value).trigger("change"),this.hide()}},show:function(){if(!this.visible)return this.visible=!0,this.element.addClass("uk-open"),e&&e!==this&&e.hide(),e=this,this.dropdown.attr("aria-expanded","true"),this},hide:function(){if(this.visible)return this.visible=!1,this.element.removeClass("uk-open"),e===this&&(e=!1),this.dropdown.attr("aria-expanded","false"),this},request:function(){var e=this,i=function(t){t&&e.render(t),e.element.removeClass(e.options.loadingClass)};if(this.element.addClass(this.options.loadingClass),this.options.source){var o=this.options.source;switch(typeof this.options.source){case"function":this.options.source.apply(this,[i]);break;case"object":if(o.length){var n=[];o.forEach(function(t){t.value&&t.value.toLowerCase().indexOf(e.value.toLowerCase())!=-1&&n.push(t)}),i(n)}break;case"string":var s={};s[this.options.param]=this.value,t.$.ajax({url:this.options.source,data:s,type:this.options.method,dataType:"json"}).done(function(t){i(t||[])});break;default:i(null)}}else this.element.removeClass(e.options.loadingClass)},render:function(t){return this.dropdown.empty(),this.selected=!1,this.options.renderer?this.options.renderer.apply(this,[t]):t&&t.length&&(this.dropdown.append(this.template({items:t})),this.show(),this.trigger("show.uk.autocomplete")),this}}),t.autocomplete}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-datepicker",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";var e,i=!1;return t.component("datepicker",{defaults:{mobile:!1,weekstart:1,i18n:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},format:"DD.MM.YYYY",offsettop:5,maxDate:!1,minDate:!1,pos:"auto",addClass:"",template:function(e,i){var o,n="";if(n+='<div class="uk-datepicker-nav uk-clearfix">',n+='<a href="" class="uk-datepicker-previous"></a>',n+='<a href="" class="uk-datepicker-next"></a>',t.formSelect){var s,a,r,l,d=(new Date).getFullYear(),h=[];for(o=0;o<i.i18n.months.length;o++)o==e.month?h.push('<option value="'+o+'" selected>'+i.i18n.months[o]+"</option>"):h.push('<option value="'+o+'">'+i.i18n.months[o]+"</option>");
- for(s='<span class="uk-form-select">'+i.i18n.months[e.month]+'<select class="update-picker-month">'+h.join("")+"</select></span>",h=[],r=e.minDate?e.minDate.year():d-50,l=e.maxDate?e.maxDate.year():d+20,o=r;o<=l;o++)o==e.year?h.push('<option value="'+o+'" selected>'+o+"</option>"):h.push('<option value="'+o+'">'+o+"</option>");a='<span class="uk-form-select">'+e.year+'<select class="update-picker-year">'+h.join("")+"</select></span>",n+='<div class="uk-datepicker-heading">'+s+" "+a+"</div>"}else n+='<div class="uk-datepicker-heading">'+i.i18n.months[e.month]+" "+e.year+"</div>";for(n+="</div>",n+='<table class="uk-datepicker-table">',n+="<thead>",o=0;o<e.weekdays.length;o++)e.weekdays[o]&&(n+="<th>"+e.weekdays[o]+"</th>");for(n+="</thead>",n+="<tbody>",o=0;o<e.days.length;o++)if(e.days[o]&&e.days[o].length){n+="<tr>";for(var u=0;u<e.days[o].length;u++)if(e.days[o][u]){var c=e.days[o][u],p=[];c.inmonth||p.push("uk-datepicker-table-muted"),c.selected&&p.push("uk-active"),c.disabled&&p.push("uk-datepicker-date-disabled uk-datepicker-table-muted"),n+='<td><a href="" class="'+p.join(" ")+'" data-date="'+c.day.format()+'">'+c.day.format("D")+"</a></td>"}n+="</tr>"}return n+="</tbody>",n+="</table>"}},boot:function(){t.$win.on("resize orientationchange",function(){i&&i.hide()}),t.$html.on("focus.datepicker.uikit","[data-uk-datepicker]",function(e){var i=t.$(this);i.data("datepicker")||(e.preventDefault(),t.datepicker(i,t.Utils.options(i.attr("data-uk-datepicker"))),i.trigger("focus"))}),t.$html.on("click focus","*",function(o){var n=t.$(o.target);!i||n[0]==e[0]||n.data("datepicker")||n.parents(".uk-datepicker:first").length||i.hide()})},init:function(){if(!t.support.touch||"date"!=this.element.attr("type")||this.options.mobile){var o=this;this.current=this.element.val()?moment(this.element.val(),this.options.format):moment(),this.on("click focus",function(){i!==o&&o.pick(this.value?this.value:o.options.minDate?o.options.minDate:"")}).on("change",function(){o.element.val()&&!moment(o.element.val(),o.options.format).isValid()&&o.element.val(moment().format(o.options.format))}),e||(e=t.$('<div class="uk-dropdown uk-datepicker '+o.options.addClass+'"></div>'),e.on("click",".uk-datepicker-next, .uk-datepicker-previous, [data-date]",function(o){o.stopPropagation(),o.preventDefault();var n=t.$(this);return!n.hasClass("uk-datepicker-date-disabled")&&void(n.is("[data-date]")?(i.current=moment(n.data("date")),i.element.val(i.current.isValid()?i.current.format(i.options.format):null).trigger("change"),e.removeClass("uk-dropdown-shown"),setTimeout(function(){e.removeClass("uk-dropdown-active")},280),i.hide()):i.add(n.hasClass("uk-datepicker-next")?1:-1,"months"))}),e.on("change",".update-picker-month, .update-picker-year",function(){var e=t.$(this);i[e.is(".update-picker-year")?"setYear":"setMonth"](Number(e.val()))}),e.appendTo("body"))}},pick:function(o){var n=this.element.offset(),s=parseInt(n.left),a=parseInt(n.top),r={left:s,right:""};this.current=isNaN(o)?moment(o,this.options.format):moment(),this.initdate=this.current.format("YYYY-MM-DD"),this.update(),!$(this.element[0]).closest(".ui-dialog").length&&!$(this.element[0]).closest(".uk-modal").length||e.hasClass("dropdown-modal")||e.addClass("dropdown-modal"),("right"==t.langdirection||window.innerWidth-s-e.outerWidth()<0)&&(r.right=window.innerWidth-(window.innerWidth-$("body").width())-(r.left+this.element.outerWidth()),r.left="");var l=a-this.element.outerHeight()+this.element.height()-this.options.offsettop-e.outerHeight(),d=a+this.element.outerHeight()+this.options.offsettop;r.top=d,"top"==this.options.pos?(r.top=l,e.addClass("dp-top")):"auto"==this.options.pos&&window.innerHeight-d-e.outerHeight()+t.$win.scrollTop()<0&&l>=0&&(r.top=l,e.addClass("dp-top")),r.minWidth=e.actual("outerWidth"),e.css(r).addClass("uk-dropdown-active uk-dropdown-shown"),this.trigger("show.uk.datepicker"),i=this},add:function(t,e){this.current.add(t,e),this.update()},setMonth:function(t){this.current.month(t),this.update()},setYear:function(t){this.current.year(t),this.update()},update:function(){var t=this.getRows(this.current.year(),this.current.month()),i=this.options.template(t,this.options);e.html(i),this.trigger("update.uk.datepicker")},getRows:function(t,e){var i=this.options,o=moment().format("YYYY-MM-DD"),n=[31,t%4===0&&t%100!==0||t%400===0?29:28,31,30,31,30,31,31,30,31,30,31][e],s=new Date(t,e,1,12).getDay(),a={month:e,year:t,weekdays:[],days:[],maxDate:!1,minDate:!1},r=[];i.maxDate!==!1&&(a.maxDate=isNaN(i.maxDate)?moment(i.maxDate,i.format).startOf("day").hours(12):moment().add(i.maxDate,"days").startOf("day").hours(12)),i.minDate!==!1&&(a.minDate=isNaN(i.minDate)?moment(i.minDate,i.format).startOf("day").hours(12):moment().add(i.minDate-1,"days").startOf("day").hours(12)),a.weekdays=function(){for(var t=0,e=[];t<7;t++){for(var o=t+(i.weekstart||0);o>=7;)o-=7;e.push(i.i18n.weekdays[o])}return e}(),i.weekstart&&i.weekstart>0&&(s-=i.weekstart,s<0&&(s+=7));for(var l=n+s,d=l;d>7;)d-=7;l+=7-d;for(var h,u,c,p,f,m=0,g=0;m<l;m++)h=new Date(t,e,1+(m-s),12),u=a.minDate&&a.minDate>h||a.maxDate&&h>a.maxDate,f=!(m<s||m>=n+s),h=moment(h),c=this.initdate==h.format("YYYY-MM-DD"),p=o==h.format("YYYY-MM-DD"),r.push({selected:c,today:p,disabled:u,day:h,inmonth:f}),7===++g&&(a.days.push(r),r=[],g=0);return a},hide:function(){i&&i===this&&(e.removeClass("uk-dropdown-shown"),setTimeout(function(){e.removeClass("uk-dropdown-active dp-top")},280),i=!1,this.trigger("hide.uk.datepicker"))}}),t.Utils.moment=moment(),t.datepicker}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-form-password",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";return t.component("formPassword",{defaults:{lblShow:"Show",lblHide:"Hide"},boot:function(){t.$html.on("click.formpassword.uikit","[data-uk-form-password]",function(e){var i=t.$(this);i.data("formPassword")||(e.preventDefault(),t.formPassword(i,t.Utils.options(i.attr("data-uk-form-password"))),i.trigger("click"))})},init:function(){var t=this;this.on("click",function(e){if(e.preventDefault(),t.input.length){var i=t.input.attr("type");t.input.attr("type","text"==i?"password":"text"),t.element.html(t.options["text"==i?"lblShow":"lblHide"])}}),this.input=this.element.next("input").length?this.element.next("input"):this.element.prev("input"),this.element.html(this.options[this.input.is("[type='password']")?"lblShow":"lblHide"]),this.element.data("formPassword",this)}}),t.formPassword}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-form-select",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";return t.component("formSelect",{defaults:{target:">span:first",activeClass:"uk-active"},boot:function(){t.ready(function(e){t.$("[data-uk-form-select]",e).each(function(){var e=t.$(this);e.data("formSelect")||t.formSelect(e,t.Utils.options(e.attr("data-uk-form-select")))})})},init:function(){var t=this;this.target=this.find(this.options.target),this.select=this.find("select"),this.select.on({change:function(){var e=t.select[0],i=function(){try{"input"===t.options.target?t.target.val(e.options[e.selectedIndex].text):t.target.text(e.options[e.selectedIndex].text)}catch(o){}return t.element[t.select.val()?"addClass":"removeClass"](t.options.activeClass),i};return i()}(),focus:function(){t.target.addClass("uk-focus")},blur:function(){t.target.removeClass("uk-focus")},mouseenter:function(){t.target.addClass("uk-hover")},mouseleave:function(){t.target.removeClass("uk-hover")}}),this.element.data("formSelect",this)}}),t.formSelect}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-grid",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";function e(){function t(t){if(t){if("string"==typeof h[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,i=0,o=d.length;i<o;i++)if(e=d[i]+t,"string"==typeof h[e])return e}}function e(t){var e=parseFloat(t),i=t.indexOf("%")===-1&&!isNaN(e);return i&&e}function i(){}function o(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=c.length;e<i;e++){var o=c[e];t[o]=0}return t}function n(){if(!p){p=!0;var i=window.getComputedStyle;if(a=function(){var t=i?function(t){return i(t,null)}:function(t){return t.currentStyle};return function(e){var i=t(e);return i||u("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),i}}(),r=t("boxSizing")){var o=document.createElement("div");o.style.width="200px",o.style.padding="1px 2px 3px 4px",o.style.borderStyle="solid",o.style.borderWidth="1px 2px 3px 4px",o.style[r]="border-box";var n=document.body||document.documentElement;n.appendChild(o);var s=a(o);l=200===e(s.width),n.removeChild(o)}}}function s(t){if(n(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var i=a(t);if("none"===i.display)return o();var s={};s.width=t.offsetWidth,s.height=t.offsetHeight;for(var d=s.isBorderBox=!(!r||!i[r]||"border-box"!==i[r]),h=0,u=c.length;h<u;h++){var p=c[h],f=i[p],m=parseFloat(f);s[p]=isNaN(m)?0:m}var g=s.paddingLeft+s.paddingRight,v=s.paddingTop+s.paddingBottom,k=s.marginLeft+s.marginRight,w=s.marginTop+s.marginBottom,b=s.borderLeftWidth+s.borderRightWidth,y=s.borderTopWidth+s.borderBottomWidth,$=d&&l,C=e(i.width);C!==!1&&(s.width=C+($?0:g+b));var x=e(i.height);return x!==!1&&(s.height=x+($?0:v+y)),s.innerWidth=s.width-(g+b),s.innerHeight=s.height-(v+y),s.outerWidth=s.width+k,s.outerHeight=s.height+w,s}}var a,r,l,d="Webkit Moz ms Ms O".split(" "),h=document.documentElement.style,u="undefined"==typeof console?i:function(t){console.error(t)},c=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],p=!1;return s}function i(t){return e()(t)}t.component("grid",{defaults:{colwidth:"auto",animation:!0,duration:300,gutter:0,controls:!1,filter:!1,origin:t.langdirection},boot:function(){t.ready(function(e){t.$("[data-uk-grid]",e).each(function(){var e=t.$(this);e.data("grid")||t.grid(e,t.Utils.options(e.attr("data-uk-grid")))})})},init:function(){var e=this,i=String(this.options.gutter).trim().split(" ");this.gutterv=parseInt(i[0],10),this.gutterh=parseInt(i[1]||i[0],10),this.element.css({position:"relative"}),this.controls=null,this.origin=this.options.origin,this.options.controls&&(this.controls=t.$(this.options.controls),this.controls.on("click","[data-uk-filter]",function(i){i.preventDefault(),e.filter(t.$(this).attr("data-uk-filter"))}),this.controls.on("click","[data-uk-sort]",function(i){i.preventDefault();var o=t.$(this).attr("data-uk-sort").split(":");e.sort(o[0],o[1])})),t.$win.on("load resize orientationchange",t.Utils.debounce(function(){e.currentfilter?e.filter(e.currentfilter):this.update()}.bind(this),100)),this.on("display.uk.check",function(){e.element.is(":visible")&&e.update()}),t.domObserve(this.element,function(t){e.update()}),this.options.filter!==!1?this.filter(this.options.filter):this.update()},_prepareElements:function(){var t,e=this.element.children(":not([data-grid-prepared])");e.length&&(t={position:"absolute","box-sizing":"border-box",width:"auto"==this.options.colwidth?"":this.options.colwidth},this.options.gutter&&(t["padding-"+this.origin]=this.gutterh,t["padding-bottom"]=this.gutterv,this.element.css("margin-"+this.origin,this.gutterh*-1)),e.attr("data-grid-prepared","true").css(t))},update:function(e){var o=this;this._prepareElements(),e=e||this.element.children(":visible");var n,s,a,r,l,d,h,u,c,p=e,f=this.element.width()+2*this.gutterh+2,m=0,g=0,v=[];this.trigger("beforeupdate.uk.grid",[p]),p.each(function(e){for(c=i(this),n=t.$(this),s=c.outerWidth,a=c.outerHeight,m=0,g=0,d=0,u=v.length;d<u;d++)r=v[d],m<=r.aX&&(m=r.aX),f<m+s&&(m=0),g<=r.aY&&(g=r.aY);l={ele:n,top:g,width:s,height:a,aY:g+a,aX:m+s},l[o.origin]=m,v.push(l)});var k,w,b=0;for(d=0,u=v.length;d<u;d++){for(r=v[d],g=0,h=0;h<d;h++)k=v[h],r[this.origin]<k.aX&&k[this.origin]+1<r.aX&&(g=k.aY);r.top=g,r.aY=g+r.height,b=Math.max(b,r.aY)}b-=this.gutterv,this.options.animation?(this.element.stop().animate({height:b},100),v.forEach(function(t){w={top:t.top,opacity:1},w[o.origin]=t[o.origin],t.ele.stop().animate(w,this.options.duration)}.bind(this))):(this.element.css("height",b),v.forEach(function(t){w={top:t.top,opacity:1},w[o.origin]=t[o.origin],t.ele.css(w)}.bind(this))),setTimeout(function(){t.$doc.trigger("scrolling.uk.document")},2*this.options.duration*(this.options.animation?1:0)),this.trigger("afterupdate.uk.grid",[p])},filter:function(e){this.currentfilter=e,e=e||[],"number"==typeof e&&(e=e.toString()),"string"==typeof e&&(e=e.split(/,/).map(function(t){return t.trim()}));var i=this,o=this.element.children(),n={visible:[],hidden:[]};o.each(function(i){var o=t.$(this),s=o.attr("data-uk-filter"),a=!e.length;s&&(s=s.split(/,/).map(function(t){return t.trim()}),e.forEach(function(t){s.indexOf(t)>-1&&(a=!0)})),n[a?"visible":"hidden"].push(o)}),n.hidden=t.$(n.hidden).map(function(){return this[0]}),n.visible=t.$(n.visible).map(function(){return this[0]}),n.hidden.attr("aria-hidden","true").filter(":visible").fadeOut(this.options.duration),n.visible.attr("aria-hidden","false").filter(":hidden").css("opacity",0).show(),i.update(n.visible),this.controls&&this.controls.length&&this.controls.find("[data-uk-filter]").removeClass("uk-active").filter('[data-uk-filter="'+e+'"]').addClass("uk-active")},sort:function(e,i){i=i||1,"string"==typeof i&&(i="desc"==i.toLowerCase()?-1:1);var o=this.element.children();o.sort(function(o,n){return o=t.$(o),n=t.$(n),(n.data(e)||"")<(o.data(e)||"")?i:i*-1}).appendTo(this.element),this.update(o.filter(":visible")),this.controls&&this.controls.length&&this.controls.find("[data-uk-sort]").removeClass("uk-active").filter('[data-uk-sort="'+e+":"+(i==-1?"desc":"asc")+'"]').addClass("uk-active")}})}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-lightbox",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";function e(e){if(i)return i.lightbox=e,i;i=t.$(['<div class="uk-modal">','<div class="uk-modal-dialog uk-modal-dialog-lightbox uk-slidenav-position" style="margin-left:auto;margin-right:auto;width:200px;height:200px;top:'+Math.abs(window.innerHeight/2-200)+'px;">','<a href="javascript:void(0);" class="uk-modal-close uk-close uk-close-alt"></a>','<div class="uk-lightbox-content"></div>','<div class="uk-modal-spinner uk-hidden"></div>',"</div>","</div>"].join("")).appendTo("body"),i.dialog=i.find(".uk-modal-dialog:first"),i.content=i.find(".uk-lightbox-content:first"),i.loader=i.find(".uk-modal-spinner:first"),i.closer=i.find(".uk-close.uk-close-alt"),i.modal=t.modal(i,{modal:!1}),i.on("swipeRight swipeLeft",function(t){i.lightbox["swipeLeft"==t.type?"next":"previous"]()}).on("click","[data-lightbox-previous], [data-lightbox-next]",function(e){e.preventDefault(),i.lightbox[t.$(this).is("[data-lightbox-next]")?"next":"previous"]()}),i.on("hide.uk.modal",function(t){i.content.html("")});var o={w:window.innerWidth,h:window.innerHeight};return t.$win.on("load resize orientationchange",t.Utils.debounce(function(e){o.w!==window.innerWidth&&i.is(":visible")&&!t.Utils.isFullscreen()&&i.lightbox.fitSize(),o={w:window.innerWidth,h:window.innerHeight}},100)),i.lightbox=e,i}var i,o={};return t.component("lightbox",{defaults:{allowfullscreen:!0,duration:400,group:!1,keyboard:!0},index:0,items:!1,boot:function(){t.$html.on("click","[data-uk-lightbox]",function(e){e.preventDefault();var i=t.$(this);i.data("lightbox")||t.lightbox(i,t.Utils.options(i.attr("data-uk-lightbox"))),i.data("lightbox").show(i)}),t.$doc.on("keyup",function(t){if(i&&i.is(":visible")&&i.lightbox.options.keyboard)switch(t.preventDefault(),t.keyCode){case 37:i.lightbox.previous();break;case 39:i.lightbox.next()}})},init:function(){var e=[];if(this.index=0,this.siblings=[],this.element&&this.element.length){var i=this.options.group?t.$(['[data-uk-lightbox*="'+this.options.group+'"]',"[data-uk-lightbox*='"+this.options.group+"']"].join(",")):this.element;i.each(function(){var i=t.$(this);e.push({source:i.attr("href"),title:i.attr("data-title")||i.attr("title"),type:i.attr("data-lightbox-type")||"auto",link:i})}),this.index=i.index(this.element),this.siblings=e}else this.options.group&&this.options.group.length&&(this.siblings=this.options.group);this.trigger("lightbox-init",[this])},show:function(i){this.modal=e(this),this.modal.dialog.stop(),this.modal.content.stop();var o,n,s=this,a=t.$.Deferred();i=i||0,"object"==typeof i&&this.siblings.forEach(function(t,e){i[0]===t.link[0]&&(i=e)}),i<0?i=this.siblings.length-i:this.siblings[i]||(i=0),n=this.siblings[i],o={lightbox:s,source:n.source,type:n.type,index:i,promise:a,title:n.title,item:n,meta:{content:"",width:null,height:null}},this.index=i,this.modal.content.empty(),this.modal.is(":visible")||(this.modal.content.css({width:"",height:""}).empty(),this.modal.modal.show()),this.modal.loader.removeClass("uk-hidden"),a.promise().done(function(){s.data=o,s.fitSize(o)}).fail(function(){o.meta.content='<div class="uk-position-cover uk-flex uk-flex-middle uk-flex-center"><strong>Loading resource failed!</strong></div>',o.meta.width=400,o.meta.height=300,s.data=o,s.fitSize(o)}),s.trigger("showitem.uk.lightbox",[o])},fitSize:function(){var e=this,i=this.data,o=this.modal.dialog.outerWidth()-this.modal.dialog.width(),n=parseInt(this.modal.dialog.css("margin-top"),10),s=parseInt(this.modal.dialog.css("margin-bottom"),10),a=n+s,r=i.meta.content,l=e.options.duration;this.siblings.length>1&&(r=[r,'<a href="javascript:void(0);" class="uk-slidenav uk-slidenav-contrast uk-slidenav-previous uk-hidden-touch" data-lightbox-previous></a>','<a href="javascript:void(0);" class="uk-slidenav uk-slidenav-contrast uk-slidenav-next uk-hidden-touch" data-lightbox-next></a>'].join(""));var d,h,u=t.$("<div> </div>").css({opacity:0,position:"absolute",top:0,left:0,width:"100%","max-width":e.modal.dialog.css("max-width"),padding:e.modal.dialog.css("padding"),margin:e.modal.dialog.css("margin")}),c=i.meta.width,p=i.meta.height;u.appendTo("body").width(),d=u.width(),h=window.innerHeight-a,u.remove(),this.modal.dialog.find(".uk-modal-caption").remove(),i.title&&(this.modal.dialog.append('<div class="uk-modal-caption">'+i.title+"</div>"),h-=this.modal.dialog.find(".uk-modal-caption").outerHeight()),d<i.meta.width&&(p=Math.floor(p*(d/c)),c=d),h<p&&(p=Math.floor(h),c=Math.ceil(i.meta.width*(h/i.meta.height))),this.modal.content.css("opacity",0).width(c).html(r),"iframe"==i.type&&this.modal.content.find("iframe:first").height(p);var f=p+o,m=Math.floor(window.innerHeight/2-f/2)-a;m<0&&(m=0),this.modal.closer.addClass("uk-hidden"),e.modal.data("mwidth")==c&&e.modal.data("mheight")==p&&(l=0),this.modal.dialog.animate({width:c+o,height:p+o,top:m},l,"swing",function(){e.modal.loader.addClass("uk-hidden"),e.modal.content.css({width:""}).animate({opacity:1},function(){e.modal.closer.removeClass("uk-hidden")}),e.modal.data({mwidth:c,mheight:p})})},next:function(){this.show(this.siblings[this.index+1]?this.index+1:0)},previous:function(){this.show(this.siblings[this.index-1]?this.index-1:this.siblings.length-1)}}),t.plugin("lightbox","image",{init:function(t){t.on("showitem.uk.lightbox",function(t,e){if("image"==e.type||e.source&&e.source.match(/\.(jpg|jpeg|png|gif|svg)$/i)){var i=function(t,i,o){e.meta={content:'<img class="uk-responsive-width" width="'+i+'" height="'+o+'" src ="'+t+'">',width:i,height:o},e.type="image",e.promise.resolve()};if(o[e.source])i(e.source,o[e.source].width,o[e.source].height);else{var n=new Image;n.onerror=function(){e.promise.reject("Loading image failed")},n.onload=function(){o[e.source]={width:n.width,height:n.height},i(e.source,o[e.source].width,o[e.source].height)},n.src=e.source}}})}}),t.plugin("lightbox","youtube",{init:function(t){var e=/(\/\/.*?youtube\.[a-z]+)\/watch\?v=([^&]+)&?(.*)/,n=/youtu\.be\/(.*)/;t.on("showitem.uk.lightbox",function(t,s){var a,r,l=function(t,e,o){s.meta={content:'<iframe src="//www.youtube.com/embed/'+t+'" width="'+e+'" height="'+o+'" style="max-width:100%;"'+(i.lightbox.options.allowfullscreen?" allowfullscreen":"")+"></iframe>",width:e,height:o},s.type="iframe",s.promise.resolve()};if((r=s.source.match(e))&&(a=r[2]),(r=s.source.match(n))&&(a=r[1]),a){if(o[a])l(a,o[a].width,o[a].height);else{var d=new Image,h=!1;d.onerror=function(){o[a]={width:640,height:320},l(a,o[a].width,o[a].height)},d.onload=function(){120==d.width&&90==d.height?h?(o[a]={width:640,height:320},l(a,o[a].width,o[a].height)):(h=!0,d.src="//img.youtube.com/vi/"+a+"/0.jpg"):(o[a]={width:d.width,height:d.height},l(a,d.width,d.height))},d.src="//img.youtube.com/vi/"+a+"/maxresdefault.jpg"}t.stopImmediatePropagation()}})}}),t.plugin("lightbox","vimeo",{init:function(e){var n,s=/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/;e.on("showitem.uk.lightbox",function(e,a){var r,l=function(t,e,o){a.meta={content:'<iframe src="//player.vimeo.com/video/'+t+'" width="'+e+'" height="'+o+'" style="width:100%;box-sizing:border-box;"'+(i.lightbox.options.allowfullscreen?" allowfullscreen":"")+"></iframe>",width:e,height:o},a.type="iframe",a.promise.resolve()};(n=a.source.match(s))&&(r=n[2],o[r]?l(r,o[r].width,o[r].height):t.$.ajax({type:"GET",url:"//vimeo.com/api/oembed.json?url="+encodeURI(a.source),jsonp:"callback",dataType:"jsonp",success:function(t){o[r]={width:t.width,height:t.height},l(r,o[r].width,o[r].height)}}),e.stopImmediatePropagation())})}}),t.plugin("lightbox","video",{init:function(e){e.on("showitem.uk.lightbox",function(e,i){var n=function(t,e,o){i.meta={content:'<video class="uk-responsive-width" src="'+t+'" width="'+e+'" height="'+o+'" controls></video>',width:e,height:o},i.type="video",i.promise.resolve()};if("video"==i.type||i.source.match(/\.(mp4|webm|ogv)$/i))if(o[i.source])n(i.source,o[i.source].width,o[i.source].height);else var s=t.$('<video style="position:fixed;visibility:hidden;top:-10000px;"></video>').attr("src",i.source).appendTo("body"),a=setInterval(function(){s[0].videoWidth&&(clearInterval(a),o[i.source]={width:s[0].videoWidth,height:s[0].videoHeight},n(i.source,o[i.source].width,o[i.source].height),s.remove())},20)})}}),UIkit.plugin("lightbox","iframe",{init:function(t){t.on("showitem.uk.lightbox",function(e,o){var n=function(t,e,n){o.meta={content:'<iframe class="uk-responsive-width" src="'+t+'" width="'+e+'" height="'+n+'"'+(i.lightbox.options.allowfullscreen?" allowfullscreen":"")+"></iframe>",width:e,height:n},o.type="iframe",o.promise.resolve()};("iframe"===o.type||o.source.match(/\.(html|php)$/))&&n(o.source,t.options.width||800,t.options.height||600)})}}),t.lightbox.create=function(e,i){if(e){var o,n=[];return e.forEach(function(e){n.push(t.$.extend({source:"",title:"",type:"auto",link:!1},"string"==typeof e?{source:e}:e))}),o=t.lightbox(t.$.extend({},i,{group:n}))}},t.lightbox}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-nestable",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";var e,i="ontouchstart"in window,o=t.$html,n=[],s=t.$win,a=i?"touchstart":"mousedown",r=i?"touchmove":"mousemove",l=i?"touchend":"mouseup",d=i?"touchcancel":"mouseup";return t.component("nestable",{defaults:{listBaseClass:"uk-nestable",listClass:"uk-nestable-list",listItemClass:"uk-nestable-item",dragClass:"uk-nestable-dragged",movingClass:"uk-nestable-moving",noChildrenClass:"uk-nestable-nochildren",emptyClass:"uk-nestable-empty",handleClass:"",collapsedClass:"uk-collapsed",placeholderClass:"uk-nestable-placeholder",noDragClass:"uk-nestable-nodrag",group:!1,maxDepth:10,threshold:20,idlethreshold:10},boot:function(){t.$html.on("mousemove touchmove",function(i){if(e){var o=e.offset().top;o<t.$win.scrollTop()?t.$win.scrollTop(t.$win.scrollTop()-Math.ceil(e.height()/2)):o+e.height()>window.innerHeight+t.$win.scrollTop()&&t.$win.scrollTop(t.$win.scrollTop()+Math.ceil(e.height()/2))}}),t.ready(function(e){t.$("[data-uk-nestable]",e).each(function(){var e=t.$(this);e.data("nestable")||t.nestable(e,t.Utils.options(e.attr("data-uk-nestable")))})})},init:function(){var o=this;Object.keys(this.options).forEach(function(t){String(t).indexOf("Class")!=-1&&(o.options["_"+t]="."+o.options[t])}),this.find(this.options._listItemClass).find(">ul").addClass(this.options.listClass),this.checkEmptyList(),this.reset(),this.element.data("nestable-group",this.options.group||t.Utils.uid("nestable-group")),this.find(this.options._listItemClass).each(function(){o.setParent(t.$(this))}),this.on("click","[data-nestable-action]",function(e){if(!o.dragEl&&(i||0===e.button)){e.preventDefault();var n=t.$(e.currentTarget),s=n.data("nestableAction"),a=n.closest(o.options._listItemClass);"collapse"===s&&o.collapseItem(a),"expand"===s&&o.expandItem(a),"toggle"===s&&o.toggleItem(a)}});var n=function(e){var n=t.$(e.target),s=n.is("a[href]")?n:n.parents("a[href]");e.target!==o.element[0]&&(n.is(o.options._noDragClass)||n.closest(o.options._noDragClass).length||n.is("[data-nestable-action]")||n.closest("[data-nestable-action]").length||(o.options.handleClass&&!n.hasClass(o.options.handleClass)&&o.options.handleClass&&(n=n.closest(o.options._handleClass)),!n.length||o.dragEl||!i&&0!==e.button||i&&1!==e.touches.length||(e.originalEvent&&e.originalEvent.touches&&(e=evt.originalEvent.touches[0]),o.delayMove=function(t){s=!1,t.preventDefault(),o.dragStart(e),o.trigger("start.uk.nestable",[o]),o.delayMove=!1},o.delayMove.x=parseInt(e.pageX,10),o.delayMove.y=parseInt(e.pageY,10),o.delayMove.threshold=o.options.idlethreshold,s.length&&"touchend"==l&&o.one(l,function(){s&&s.attr("href").trim()&&(location.href=s.attr("href"))}),e.preventDefault())))},h=function(t){t.originalEvent&&t.originalEvent.touches&&(t=t.originalEvent.touches[0]),o.delayMove&&(Math.abs(t.pageX-o.delayMove.x)>o.delayMove.threshold||Math.abs(t.pageY-o.delayMove.y)>o.delayMove.threshold)&&(window.getSelection().toString()?o.delayMove=!1:o.delayMove(t)),o.dragEl&&(t.preventDefault(),o.dragMove(t),o.trigger("move.uk.nestable",[o]))},u=function(t){o.dragEl&&(t.preventDefault(),o.dragStop(i?t.touches[0]:t)),e=!1,o.delayMove=!1};i?(this.element[0].addEventListener(a,n,!1),window.addEventListener(r,h,!1),window.addEventListener(l,u,!1),window.addEventListener(d,u,!1)):(this.on(a,n),s.on(r,h),s.on(l,u))},serialize:function(){var e,i=0,o=this,n=function(e,i){var s=[],a=e.children(o.options._listItemClass);return a.each(function(){for(var e,a,r,l=t.$(this),d={},h=l.children(o.options._listClass),u=0;u<l[0].attributes.length;u++)e=l[0].attributes[u],0===e.name.indexOf("data-")&&(a=e.name.substr(5),r=t.Utils.str2json(e.value),d[a]=r||"false"==e.value||"0"==e.value?r:e.value);h.length&&(d.children=n(h,i+1)),s.push(d)}),s};return e=n(o.element,i)},list:function(e){var i=[],o=this,n=0,s=function(o,n,a){var r=o.children(e._listItemClass);r.each(function(o){var r=t.$(this),l=t.$.extend({parent_id:a?a:null,depth:n,order:o},r.data()),d=r.children(e._listClass);i.push(l),d.length&&s(d,n+1,r.data(e.idProperty||"id"))})};return e=t.$.extend({},o.options,e),s(o.element,n),i},reset:function(){this.mouse={offsetX:0,offsetY:0,startX:0,startY:0,lastX:0,lastY:0,nowX:0,nowY:0,distX:0,distY:0,dirAx:0,dirX:0,dirY:0,lastDirX:0,lastDirY:0,distAxX:0,distAxY:0},this.moving=!1,this.dragEl=null,this.dragRootEl=null,this.dragDepth=0,this.hasNewRoot=!1,this.pointEl=null;for(var t=0;t<n.length;t++)this.checkEmptyList(n[t]);n=[]},toggleItem:function(t){this[t.hasClass(this.options.collapsedClass)?"expandItem":"collapseItem"](t)},expandItem:function(t){t.removeClass(this.options.collapsedClass)},collapseItem:function(t){var e=t.children(this.options._listClass);e.length&&t.addClass(this.options.collapsedClass)},expandAll:function(){var e=this;this.find(e.options._listItemClass).each(function(){e.expandItem(t.$(this))})},collapseAll:function(){var e=this;this.find(e.options._listItemClass).each(function(){e.collapseItem(t.$(this))})},setParent:function(t){t.children(this.options._listClass).length&&t.addClass("uk-parent")},unsetParent:function(t){t.removeClass("uk-parent "+this.options.collapsedClass),t.children(this.options._listClass).remove()},dragStart:function(i){var n=this.mouse,s=t.$(i.target),a=s.closest(this.options._listItemClass),r=a.offset();this.placeEl=a,n.offsetX=i.pageX-r.left,n.offsetY=i.pageY-r.top,n.startX=n.lastX=r.left,n.startY=n.lastY=r.top,this.dragRootEl=this.element,this.dragEl=t.$("<ul></ul>").addClass(this.options.listClass+" "+this.options.dragClass).append(a.clone()),this.dragEl.css("width",a.width()),this.placeEl.addClass(this.options.placeholderClass),e=this.dragEl,this.tmpDragOnSiblings=[a[0].previousSibling,a[0].nextSibling],t.$body.append(this.dragEl),this.dragEl.css({left:r.left,top:r.top});var l,d,h=this.dragEl.find(this.options._listItemClass);for(l=0;l<h.length;l++)d=t.$(h[l]).parents(this.options._listClass+","+this.options._listBaseClass).length,d>this.dragDepth&&(this.dragDepth=d);o.addClass(this.options.movingClass)},dragStop:function(e){var i=t.$(this.placeEl),n=this.placeEl.parents(this.options._listBaseClass+":first");this.placeEl.removeClass(this.options.placeholderClass),this.dragEl.remove(),this.element[0]!==n[0]?(n.trigger("change.uk.nestable",[n.data("nestable"),i,"added"]),this.element.trigger("change.uk.nestable",[this,i,"removed"])):this.element.trigger("change.uk.nestable",[this,i,"moved"]),this.trigger("stop.uk.nestable",[this,i]),this.reset(),o.removeClass(this.options.movingClass)},dragMove:function(e){var i,o,s,a,r,l=this.options,d=this.mouse,h=this.dragRootEl?this.dragRootEl.data("nestable").options.maxDepth:l.maxDepth;this.dragEl.css({left:e.pageX-d.offsetX,top:e.pageY-d.offsetY}),d.lastX=d.nowX,d.lastY=d.nowY,d.nowX=e.pageX,d.nowY=e.pageY,d.distX=d.nowX-d.lastX,d.distY=d.nowY-d.lastY,d.lastDirX=d.dirX,d.lastDirY=d.dirY,d.dirX=0===d.distX?0:d.distX>0?1:-1,d.dirY=0===d.distY?0:d.distY>0?1:-1;var u=Math.abs(d.distX)>Math.abs(d.distY)?1:0;if(!d.moving)return d.dirAx=u,void(d.moving=!0);if(d.dirAx!==u?(d.distAxX=0,d.distAxY=0):(d.distAxX+=Math.abs(d.distX),0!==d.dirX&&d.dirX!==d.lastDirX&&(d.distAxX=0),d.distAxY+=Math.abs(d.distY),0!==d.dirY&&d.dirY!==d.lastDirY&&(d.distAxY=0)),d.dirAx=u,d.dirAx&&d.distAxX>=l.threshold&&(d.distAxX=0,s=this.placeEl.prev("li"),d.distX>0&&s.length&&!s.hasClass(l.collapsedClass)&&!s.hasClass(l.noChildrenClass)&&(i=s.find(l._listClass).last(),r=this.placeEl.parents(l._listClass+","+l._listBaseClass).length,r+this.dragDepth<=h&&(i.length?(i=s.children(l._listClass).last(),i.append(this.placeEl)):(i=t.$("<ul/>").addClass(l.listClass),i.append(this.placeEl),s.append(i),this.setParent(s)))),d.distX<0&&(a=this.placeEl.next(l._listItemClass),!a.length))){var c=this.placeEl.closest([l._listBaseClass,l._listClass].join(",")),p=c.closest(l._listItemClass);p.length&&(p.after(this.placeEl),c.children().length||this.unsetParent(p))}var f=!1,m=e.pageX-(window.pageXOffset||document.scrollLeft||0),g=e.pageY-(window.pageYOffset||document.documentElement.scrollTop);if(this.pointEl=t.$(document.elementFromPoint(m,g)),l.handleClass&&this.pointEl.hasClass(l.handleClass))this.pointEl=this.pointEl.closest(l._listItemClass);else{var v=this.pointEl.closest(l._listItemClass);v.length&&(this.pointEl=v)}if(!this.placeEl.find(this.pointEl).length){if(this.pointEl.data("nestable")&&!this.pointEl.children().length)f=!0,this.checkEmptyList(this.pointEl);else if(!this.pointEl.length||!this.pointEl.hasClass(l.listItemClass))return;var k=this.element,w=this.pointEl.closest(this.options._listBaseClass),b=k[0]!=w[0];if(!d.dirAx||b||f){if(b&&l.group!==w.data("nestable-group"))return;if(n.push(k),r=this.dragDepth-1+this.pointEl.parents(l._listClass+","+l._listBaseClass).length,r>h)return;var y=e.pageY<this.pointEl.offset().top+this.pointEl.height()/2;o=this.placeEl.parent(),f?this.pointEl.append(this.placeEl):y?this.pointEl.before(this.placeEl):this.pointEl.after(this.placeEl),
- o.children().length||o.data("nestable")||this.unsetParent(o.parent()),this.checkEmptyList(this.dragRootEl),this.checkEmptyList(k),b&&(this.dragRootEl=w,this.hasNewRoot=this.element[0]!==this.dragRootEl[0])}}},checkEmptyList:function(e){e=e?t.$(e):this.element,this.options.emptyClass&&e[e.children().length?"removeClass":"addClass"](this.options.emptyClass)}}),t.nestable}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-notify",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";var e={},i={},o=function(e){return"string"==t.$.type(e)&&(e={message:e}),arguments[1]&&(e=t.$.extend(e,"string"==t.$.type(arguments[1])?{status:arguments[1]}:arguments[1])),new s(e).show()},n=function(t,e){var o;if(t)for(o in i)t===i[o].group&&i[o].close(e);else for(o in i)i[o].close(e)},s=function(o){this.options=t.$.extend({},s.defaults,o),this.uuid=t.Utils.uid("notifymsg"),this.element=t.$(['<div class="uk-notify-message">','<a class="uk-close"></a>',"<div></div>","</div>"].join("")).data("notifyMessage",this),this.content(this.options.message),this.options.status&&(this.element.addClass("uk-notify-message-"+this.options.status),this.currentstatus=this.options.status),this.group=this.options.group,i[this.uuid]=this,e[this.options.pos]||(e[this.options.pos]=t.$('<div class="uk-notify uk-notify-'+this.options.pos+'"></div>').appendTo("body").on("click",".uk-notify-message",function(){var e=t.$(this).data("notifyMessage");e.element.trigger("manualclose.uk.notify",[e]),e.close()}))};return t.$.extend(s.prototype,{uuid:!1,element:!1,timout:!1,currentstatus:"",group:!1,show:function(){if(!this.element.is(":visible")){var t=this;e[this.options.pos].show().prepend(this.element);var i=parseInt(this.element.css("margin-bottom"),10);return this.element.css({opacity:0,"margin-top":-1*this.element.outerHeight(),"margin-bottom":0}).animate({opacity:1,"margin-top":0,"margin-bottom":i},function(){if(t.options.timeout){var e=function(){t.close()};t.timeout=setTimeout(e,t.options.timeout),t.element.hover(function(){clearTimeout(t.timeout)},function(){t.timeout=setTimeout(e,t.options.timeout)})}}),this}},close:function(t){var o=this,n=function(){o.element.remove(),e[o.options.pos].children().length||e[o.options.pos].hide(),o.options.onClose.apply(o,[]),o.element.trigger("close.uk.notify",[o]),delete i[o.uuid]};this.timeout&&clearTimeout(this.timeout),t?n():this.element.animate({opacity:0,"margin-top":-1*this.element.outerHeight(),"margin-bottom":0},function(){n()})},content:function(t){var e=this.element.find(">div");return t?(e.html(t),this):e.html()},status:function(t){return t?(this.element.removeClass("uk-notify-message-"+this.currentstatus).addClass("uk-notify-message-"+t),this.currentstatus=t,this):this.currentstatus}}),s.defaults={message:"",status:"",timeout:5e3,group:null,pos:"top-center",onClose:function(){}},t.notify=o,t.notify.message=s,t.notify.closeAll=n,o}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-slideshow",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";var e,i=0;t.component("slideshow",{defaults:{animation:"fade",duration:500,height:"auto",start:0,autoplay:!1,autoplayInterval:7e3,videoautoplay:!0,videomute:!0,slices:15,pauseOnHover:!0,kenburns:!1,kenburnsanimations:["uk-animation-middle-left","uk-animation-top-right","uk-animation-bottom-left","uk-animation-top-center","","uk-animation-bottom-right"]},current:!1,interval:null,hovering:!1,boot:function(){t.ready(function(e){t.$("[data-uk-slideshow]",e).each(function(){var e=t.$(this);e.data("slideshow")||t.slideshow(e,t.Utils.options(e.attr("data-uk-slideshow")))})})},init:function(){var e=this;this.container=this.element.hasClass("uk-slideshow")?this.element:t.$(this.find(".uk-slideshow:first")),this.current=this.options.start,this.animating=!1,this.fixFullscreen=navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&this.container.hasClass("uk-slideshow-fullscreen"),this.options.kenburns&&(this.kbanimduration=this.options.kenburns===!0?"15s":this.options.kenburns,String(this.kbanimduration).match(/(ms|s)$/)||(this.kbanimduration+="ms"),"string"==typeof this.options.kenburnsanimations&&(this.options.kenburnsanimations=this.options.kenburnsanimations.split(","))),this.update(),this.on("click.uk.slideshow","[data-uk-slideshow-item]",function(i){i.preventDefault();var o=t.$(this).attr("data-uk-slideshow-item");if(e.current!=o){switch(o){case"next":case"previous":e["next"==o?"next":"previous"]();break;default:e.show(parseInt(o,10))}e.stop()}}),t.$win.on("resize load",t.Utils.debounce(function(){e.resize(),e.fixFullscreen&&(e.container.css("height",window.innerHeight),e.slides.css("height",window.innerHeight))},100)),setTimeout(function(){e.resize()},80),this.options.autoplay&&this.start(),this.options.videoautoplay&&this.slides.eq(this.current).data("media")&&this.playmedia(this.slides.eq(this.current).data("media")),this.options.kenburns&&this.applyKenBurns(this.slides.eq(this.current)),this.container.on({mouseenter:function(){e.options.pauseOnHover&&(e.hovering=!0)},mouseleave:function(){e.hovering=!1}}),this.on("swipeRight swipeLeft",function(t){e["swipeLeft"==t.type?"next":"previous"]()}),this.on("display.uk.check",function(){e.element.is(":visible")&&(e.resize(),e.fixFullscreen&&(e.container.css("height",window.innerHeight),e.slides.css("height",window.innerHeight)))}),t.domObserve(this.element,function(t){e.container.children(":not([data-slide])").length&&e.update(!0)})},update:function(e){var o,n=this,s=0;this.slides=this.container.children(),this.slidesCount=this.slides.length,this.slides.eq(this.current).length||(this.current=0),this.slides.each(function(e){var a=t.$(this);if(!a.data("processed")){var r=a.children("img,video,iframe").eq(0),l="html";if(a.data("media",r),a.data("sizer",r),r.length){var d;switch(l=r[0].nodeName.toLowerCase(),r[0].nodeName){case"IMG":var h=t.$('<div class="uk-cover-background uk-position-cover"></div>').css({"background-image":"url("+r.attr("src")+")"});r.attr("width")&&r.attr("height")&&(d=t.$("<canvas></canvas>").attr({width:r.attr("width"),height:r.attr("height")}),r.replaceWith(d),r=d,d=void 0),r.css({width:"100%",height:"auto",opacity:0}),a.prepend(h).data("cover",h);break;case"IFRAME":var u=r[0].src,c="sw-"+ ++i;r.attr("src","").on("load",function(){if((e!==n.current||e==n.current&&!n.options.videoautoplay)&&n.pausemedia(r),n.options.videomute){n.mutemedia(r);var t=setInterval(function(e){return function(){n.mutemedia(r),++e>=4&&clearInterval(t)}}(0),250)}}).data("slideshow",n).attr("data-player-id",c).attr("src",[u,u.indexOf("?")>-1?"&":"?","enablejsapi=1&api=1&player_id="+c].join("")).addClass("uk-position-absolute"),t.support.touch||r.css("pointer-events","none"),d=!0,t.cover&&(t.cover(r),r.attr("data-uk-cover","{}"));break;case"VIDEO":r.addClass("uk-cover-object uk-position-absolute"),d=!0,n.options.videomute&&n.mutemedia(r)}if(d){o=t.$("<canvas></canvas>").attr({width:r[0].width,height:r[0].height});var p=t.$('<img style="width:100%;height:auto;">').attr("src",o[0].toDataURL());a.prepend(p),a.data("sizer",p)}}else a.data("sizer",a);n.hasKenBurns(a)&&a.data("cover").css({"-webkit-animation-duration":n.kbanimduration,"animation-duration":n.kbanimduration}),a.data("processed",++s),a.attr("data-slide",l)}}),s&&(this.triggers=this.find("[data-uk-slideshow-item]"),this.slides.attr("aria-hidden","true").removeClass("uk-active").eq(this.current).addClass("uk-active").attr("aria-hidden","false"),this.triggers.filter('[data-uk-slideshow-item="'+this.current+'"]').addClass("uk-active")),e&&s&&this.resize()},resize:function(){if(!this.container.hasClass("uk-slideshow-fullscreen")){var e=this.options.height;"auto"===this.options.height&&(e=0,this.slides.css("height","").each(function(){e=Math.max(e,t.$(this).height())})),this.container.css("height",e),this.slides.css("height",e)}},show:function(i,o){if(!this.animating&&this.current!=i){this.animating=!0;var n=this,s=this.slides.eq(this.current),a=this.slides.eq(i),r=o?o:this.current<i?1:-1,l=s.data("media"),d=e[this.options.animation]?this.options.animation:"fade",h=a.data("media"),u=function(){n.animating&&(l&&l.is("video,iframe")&&n.pausemedia(l),h&&h.is("video,iframe")&&n.playmedia(h),a.addClass("uk-active").attr("aria-hidden","false"),s.removeClass("uk-active").attr("aria-hidden","true"),n.animating=!1,n.current=i,t.Utils.checkDisplay(a,'[class*="uk-animation-"]:not(.uk-cover-background.uk-position-cover)'),n.trigger("show.uk.slideshow",[a,s,n]))};n.applyKenBurns(a),t.support.animation||(d="none"),s=t.$(s),a=t.$(a),n.trigger("beforeshow.uk.slideshow",[a,s,n]),e[d].apply(this,[s,a,r]).then(u),n.triggers.removeClass("uk-active"),n.triggers.filter('[data-uk-slideshow-item="'+i+'"]').addClass("uk-active")}},applyKenBurns:function(t){if(this.hasKenBurns(t)){var e=this.options.kenburnsanimations,i=this.kbindex||0;t.data("cover").attr("class","uk-cover-background uk-position-cover").width(),t.data("cover").addClass(["uk-animation-scale","uk-animation-reverse",e[i].trim()].join(" ")),this.kbindex=e[i+1]?i+1:0}},hasKenBurns:function(t){return this.options.kenburns&&t.data("cover")},next:function(){this.show(this.slides[this.current+1]?this.current+1:0,1)},previous:function(){this.show(this.slides[this.current-1]?this.current-1:this.slides.length-1,-1)},start:function(){this.stop();var t=this;this.interval=setInterval(function(){t.hovering||t.next()},this.options.autoplayInterval)},stop:function(){this.interval&&clearInterval(this.interval)},playmedia:function(t){if(t&&t[0])switch(t[0].nodeName){case"VIDEO":this.options.videomute||(t[0].muted=!1),t[0].play();break;case"IFRAME":this.options.videomute||t[0].contentWindow.postMessage('{ "event": "command", "func": "unmute", "method":"setVolume", "value":1}',"*"),t[0].contentWindow.postMessage('{ "event": "command", "func": "playVideo", "method":"play"}',"*")}},pausemedia:function(t){switch(t[0].nodeName){case"VIDEO":t[0].pause();break;case"IFRAME":t[0].contentWindow.postMessage('{ "event": "command", "func": "pauseVideo", "method":"pause"}',"*")}},mutemedia:function(t){switch(t[0].nodeName){case"VIDEO":t[0].muted=!0;break;case"IFRAME":t[0].contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")}}}),e={none:function(){var e=t.$.Deferred();return e.resolve(),e.promise()},scroll:function(e,i,o){var n=t.$.Deferred();return e.css("animation-duration",this.options.duration+"ms"),i.css("animation-duration",this.options.duration+"ms"),i.css("opacity",1).one(t.support.animation.end,function(){e.css("opacity",0).removeClass(o==-1?"uk-slideshow-scroll-backward-out":"uk-slideshow-scroll-forward-out"),i.removeClass(o==-1?"uk-slideshow-scroll-backward-in":"uk-slideshow-scroll-forward-in"),n.resolve()}.bind(this)),e.addClass(o==-1?"uk-slideshow-scroll-backward-out":"uk-slideshow-scroll-forward-out"),i.addClass(o==-1?"uk-slideshow-scroll-backward-in":"uk-slideshow-scroll-forward-in"),i.width(),n.promise()},swipe:function(e,i,o){var n=t.$.Deferred();return e.css("animation-duration",this.options.duration+"ms"),i.css("animation-duration",this.options.duration+"ms"),i.css("opacity",1).one(t.support.animation.end,function(){e.css("opacity",0).removeClass(o===-1?"uk-slideshow-swipe-backward-out":"uk-slideshow-swipe-forward-out"),i.removeClass(o===-1?"uk-slideshow-swipe-backward-in":"uk-slideshow-swipe-forward-in"),n.resolve()}.bind(this)),e.addClass(o==-1?"uk-slideshow-swipe-backward-out":"uk-slideshow-swipe-forward-out"),i.addClass(o==-1?"uk-slideshow-swipe-backward-in":"uk-slideshow-swipe-forward-in"),i.width(),n.promise()},scale:function(e,i,o){var n=t.$.Deferred();return e.css("animation-duration",this.options.duration+"ms"),i.css("animation-duration",this.options.duration+"ms"),i.css("opacity",1),e.one(t.support.animation.end,function(){e.css("opacity",0).removeClass("uk-slideshow-scale-out"),n.resolve()}.bind(this)),e.addClass("uk-slideshow-scale-out"),e.width(),n.promise()},fade:function(e,i,o){var n=t.$.Deferred();return e.css("animation-duration",this.options.duration+"ms"),i.css("animation-duration",this.options.duration+"ms"),i.css("opacity",1),i.data("cover")||i.data("placeholder")||i.css("opacity",1).one(t.support.animation.end,function(){i.removeClass("uk-slideshow-fade-in")}).addClass("uk-slideshow-fade-in"),e.one(t.support.animation.end,function(){e.css("opacity",0).removeClass("uk-slideshow-fade-out"),n.resolve()}.bind(this)),e.addClass("uk-slideshow-fade-out"),e.width(),n.promise()}},t.slideshow.animations=e,window.addEventListener("message",function(e){var i,o=e.data;if("string"==typeof o)try{o=JSON.parse(o)}catch(n){o={}}e.origin&&e.origin.indexOf("vimeo")>-1&&"ready"==o.event&&o.player_id&&(i=t.$('[data-player-id="'+o.player_id+'"]'),i.length&&i.data("slideshow").mutemedia(i))},!1)}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-slider",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";var e,i,o,n,s={};return t.component("slider",{defaults:{center:!1,threshold:10,infinite:!0,autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0,activecls:"uk-active"},boot:function(){t.ready(function(e){setTimeout(function(){t.$("[data-uk-slider]",e).each(function(){var e=t.$(this);e.data("slider")||t.slider(e,t.Utils.options(e.attr("data-uk-slider")))})},0)})},init:function(){var a=this;this.container=this.element.find(".uk-slider"),this.focus=0,t.$win.on("resize load",t.Utils.debounce(function(){a.update(!0)},100)),this.on("click.uk.slider","[data-uk-slider-item]",function(e){e.preventDefault();var i=t.$(this).attr("data-uk-slider-item");if(a.focus!=i)switch(a.stop(),i){case"next":case"previous":a["next"==i?"next":"previous"]();break;default:a.updateFocus(parseInt(i,10))}}),this.container.on({"touchstart mousedown":function(r){r.originalEvent&&r.originalEvent.touches&&(r=r.originalEvent.touches[0]),r.button&&2==r.button||!a.active||(a.stop(),o=t.$(r.target).is("a")?t.$(r.target):t.$(r.target).parents("a:first"),n=!1,o.length&&o.one("click",function(t){n&&t.preventDefault()}),i=function(t){n=!0,e=a,s={touchx:parseInt(t.pageX,10),dir:1,focus:a.focus,base:a.options.center?"center":"area"},t.originalEvent&&t.originalEvent.touches&&(t=t.originalEvent.touches[0]),e.element.data({"pointer-start":{x:parseInt(t.pageX,10),y:parseInt(t.pageY,10)},"pointer-pos-start":a.pos}),a.container.addClass("uk-drag"),i=!1},i.x=parseInt(r.pageX,10),i.threshold=a.options.threshold)},mouseenter:function(){a.options.pauseOnHover&&(a.hovering=!0)},mouseleave:function(){a.hovering=!1}}),this.update(!0),this.on("display.uk.check",function(){a.element.is(":visible")&&a.update(!0)}),this.element.find("a,img").attr("draggable","false"),this.options.autoplay&&this.start(),t.domObserve(this.element,function(t){a.element.children(":not([data-slide])").length&&a.update(!0)})},update:function(e){var i,o,n,s,a=this,r=0,l=0;return this.items=this.container.children().filter(":visible"),this.vp=this.element[0].getBoundingClientRect().width,this.container.css({"min-width":"","min-height":""}),this.items.each(function(e){i=t.$(this).attr("data-slide",e),s=i.css({left:"",width:""})[0].getBoundingClientRect(),o=s.width,n=i.width(),l=Math.max(l,s.height),i.css({left:r,width:o}).data({idx:e,left:r,width:o,cwidth:n,area:r+o,center:r-(a.vp/2-n/2)}),r+=o}),this.container.css({"min-width":r,"min-height":l}),this.options.infinite&&(r<=2*this.vp||this.items.length<5)&&!this.itemsResized?(this.container.children().each(function(t){a.container.append(a.items.eq(t).clone(!0).attr("id",""))}).each(function(t){a.container.append(a.items.eq(t).clone(!0).attr("id",""))}),this.itemsResized=!0,this.update()):(this.cw=r,this.pos=0,this.active=r>=this.vp,this.container.css({"-ms-transform":"","-webkit-transform":"",transform:""}),void(e&&this.updateFocus(this.focus)))},updatePos:function(t){this.pos=t,this.container.css({"-ms-transform":"translateX("+t+"px)","-webkit-transform":"translateX("+t+"px)",transform:"translateX("+t+"px)"})},updateFocus:function(e,i){if(this.active){i=i||(e>this.focus?1:-1);var o,n,s=this.items.eq(e);if(this.options.infinite&&this.infinite(e,i),this.options.center)this.updatePos(s.data("center")*-1),this.items.filter("."+this.options.activecls).removeClass(this.options.activecls),s.addClass(this.options.activecls);else if(this.options.infinite)this.updatePos(s.data("left")*-1);else{for(o=0,n=e;n<this.items.length;n++)o+=this.items.eq(n).data("width");if(o>this.vp)this.updatePos(s.data("left")*-1);else if(1==i){for(o=0,n=this.items.length-1;n>=0;n--){if(o+=this.items.eq(n).data("width"),o==this.vp){e=n;break}if(o>this.vp){e=n<this.items.length-1?n+1:n;break}}o>this.vp?this.updatePos((this.container.width()-this.vp)*-1):this.updatePos(this.items.eq(e).data("left")*-1)}}var a=this.items.eq(e).data("left");this.items.removeClass("uk-slide-before uk-slide-after").each(function(i){i!==e&&t.$(this).addClass(t.$(this).data("left")<a?"uk-slide-before":"uk-slide-after")}),this.focus=e,this.trigger("focusitem.uk.slider",[e,this.items.eq(e),this])}},next:function(){var t=this.items[this.focus+1]?this.focus+1:this.options.infinite?0:this.focus;this.updateFocus(t,1)},previous:function(){var t=this.items[this.focus-1]?this.focus-1:this.options.infinite?this.items[this.focus-1]?this.items-1:this.items.length-1:this.focus;this.updateFocus(t,-1)},start:function(){this.stop();var t=this;this.interval=setInterval(function(){t.hovering||t.next()},this.options.autoplayInterval)},stop:function(){this.interval&&clearInterval(this.interval)},infinite:function(t,e){var i,o=this,n=this.items.eq(t),s=t,a=[],r=0;if(1==e){for(i=0;i<this.items.length&&(s!=t&&(r+=this.items.eq(s).data("width"),a.push(this.items.eq(s))),!(r>this.vp));i++)s=s+1==this.items.length?0:s+1;a.length&&a.forEach(function(t){var e=n.data("area");t.css({left:e}).data({left:e,area:e+t.data("width"),center:e-(o.vp/2-t.data("cwidth")/2)}),n=t})}else{for(i=this.items.length-1;i>-1&&(r+=this.items.eq(s).data("width"),s!=t&&a.push(this.items.eq(s)),!(r>this.vp));i--)s=s-1==-1?this.items.length-1:s-1;a.length&&a.forEach(function(t){var e=n.data("left")-t.data("width");t.css({left:e}).data({left:e,area:e+t.data("width"),center:e-(o.vp/2-t.data("cwidth")/2)}),n=t})}}}),t.$doc.on("mousemove.uk.slider touchmove.uk.slider",function(t){if(t.originalEvent&&t.originalEvent.touches&&(t=t.originalEvent.touches[0]),i&&Math.abs(t.pageX-i.x)>i.threshold&&(window.getSelection().toString()?e=i=!1:i(t)),e){var o,n,a,r,l,d,h,u,c,p;if(t.clientX||t.clientY?o=t.clientX:(t.pageX||t.pageY)&&(o=t.pageX-document.body.scrollLeft-document.documentElement.scrollLeft),l=s.focus,n=o-e.element.data("pointer-start").x,a=e.element.data("pointer-pos-start")+n,r=o>e.element.data("pointer-start").x?-1:1,d=e.items.eq(s.focus),1==r)for(h=d.data("left")+Math.abs(n),u=0,c=s.focus;u<e.items.length;u++){if(p=e.items.eq(c),c!=s.focus&&p.data("left")<h&&p.data("area")>h){l=c;break}c=c+1==e.items.length?0:c+1}else for(h=d.data("left")-Math.abs(n),u=0,c=s.focus;u<e.items.length;u++){if(p=e.items.eq(c),c!=s.focus&&p.data("area")<=d.data("left")&&p.data("center")<h){l=c;break}c=c-1==-1?e.items.length-1:c-1}e.options.infinite&&l!=s._focus&&e.infinite(l,r),e.updatePos(a),s.dir=r,s._focus=l,s.touchx=parseInt(t.pageX,10),s.diff=h}}),t.$doc.on("mouseup.uk.slider touchend.uk.slider",function(t){if(e){e.container.removeClass("uk-drag"),e.items.eq(s.focus);var o,n,a,r=!1;if(1==s.dir){for(n=0,a=s.focus;n<e.items.length;n++){if(o=e.items.eq(a),a!=s.focus&&o.data("left")>s.diff){r=a;break}a=a+1==e.items.length?0:a+1}e.options.infinite||r||(r=e.items.length)}else{for(n=0,a=s.focus;n<e.items.length;n++){if(o=e.items.eq(a),a!=s.focus&&o.data("left")<s.diff){r=a;break}a=a-1==-1?e.items.length-1:a-1}e.options.infinite||r||(r=0)}e.updateFocus(r!==!1?r:s._focus)}e=i=!1}),t.slider}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-sortable",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";function e(e){e=t.$(e);do{if(e.data("sortable"))return e;e=t.$(e).parent()}while(e.length);return e}function i(t,e){var i=t.parentNode;if(e.parentNode!=i)return!1;for(var o=t.previousSibling;o&&9!==o.nodeType;){if(o===e)return!0;o=o.previousSibling}return!1}function o(t,e){var i=e;if(i==t)return null;for(;i;){if(i.parentNode===t)return i;if(i=i.parentNode,!i||!i.ownerDocument||11===i.nodeType)break}return null}function n(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}var s,a,r,l,d,h,u,c,p,f,m,g="ontouchstart"in window||"MSGesture"in window||window.DocumentTouch&&document instanceof DocumentTouch,v=g?"MSGesture"in window?"pointerdown":"touchstart":"mousedown",k=g?"MSGesture"in window?"pointermove":"touchmove":"mousemove",w=g?"MSGesture"in window?"pointerup":"touchend":"mouseup";return t.component("sortable",{defaults:{animation:150,threshold:10,childClass:"uk-sortable-item",placeholderClass:"uk-sortable-placeholder",overClass:"uk-sortable-over",draggingClass:"uk-sortable-dragged",dragMovingClass:"uk-sortable-moving",baseClass:"uk-sortable",noDragClass:"uk-sortable-nodrag",emptyClass:"uk-sortable-empty",dragCustomClass:"",handleClass:!1,group:!1,stop:function(){},start:function(){},change:function(){}},boot:function(){t.ready(function(e){t.$("[data-uk-sortable]",e).each(function(){var e=t.$(this);e.data("sortable")||t.sortable(e,t.Utils.options(e.attr("data-uk-sortable")))})}),t.$html.on(k,function(e){if(u){var i=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e;(Math.abs(i.pageX-u.pos.x)>u.threshold||Math.abs(i.pageY-u.pos.y)>u.threshold)&&u.apply(i)}if(s){d||(d=!0,s.show(),s.$current.addClass(s.$sortable.options.placeholderClass),s.$sortable.element.children().addClass(s.$sortable.options.childClass),t.$html.addClass(s.$sortable.options.dragMovingClass));var o=s.data("mouse-offset"),n=e.originalEvent.touches&&e.originalEvent.touches[0]||e.originalEvent,a=parseInt(n.pageX,10)+o.left,r=parseInt(n.pageY,10)+o.top;if(s.css({left:a,top:r}),r+s.height()/3>document.body.offsetHeight)return;r<t.$win.scrollTop()?t.$win.scrollTop(t.$win.scrollTop()-Math.ceil(s.height()/3)):r+s.height()/3>window.innerHeight+t.$win.scrollTop()&&t.$win.scrollTop(t.$win.scrollTop()+Math.ceil(s.height()/3))}}),t.$html.on(w,function(t){if(u=h=!1,!a||!s)return void(a=s=null);var i=e(a),o=s.$sortable,n={type:t.type};i[0]&&o.dragDrop(n,o.element),o.dragEnd(n,o.element)})},init:function(){function e(){g&&m.touches&&m.touches.length?h.addEventListener(k,$,!1):(h.addEventListener("mouseover",b,!1),h.addEventListener("mouseout",y,!1))}function i(){g&&m.touches&&m.touches.length?h.removeEventListener(k,$,!1):(h.removeEventListener("mouseover",b,!1),h.removeEventListener("mouseout",y,!1))}function s(t){a&&d.dragMove(t,d)}function l(e){return function(i){var n,s,a;m=i,i&&(n=i.touches&&i.touches[0]||i,s=n.target||i.target,g&&document.elementFromPoint&&(s=document.elementFromPoint(n.pageX-document.body.scrollLeft,n.pageY-document.body.scrollTop)),f=t.$(s)),t.$(s).hasClass("."+d.options.childClass)?e.apply(s,[i]):s!==h&&(a=o(h,s),a&&e.apply(a,[i]))}}var d=this,h=this.element[0];c=[],this.checkEmptyList(),this.element.data("sortable-group",this.options.group?this.options.group:t.Utils.uid("sortable-group"));var u=l(function(e){if(!e.data||!e.data.sortable){var i=t.$(e.target),o=i.is("a[href]")?i:i.parents("a[href]");if(!i.is(":input")){if(d.options.handleClass){var n=i.hasClass(d.options.handleClass)?i:i.closest("."+d.options.handleClass,d.element);if(!n.length)return}return e.preventDefault(),o.length&&o.one("click",function(t){t.preventDefault()}).one(w,function(){p||(o.trigger("click"),g&&o.attr("href").trim()&&(location.href=o.attr("href")))}),e.data=e.data||{},e.data.sortable=h,d.dragStart(e,this)}}}),b=l(t.Utils.debounce(function(t){return d.dragEnter(t,this)}),40),y=l(function(e){var i=d.dragenterData(this);d.dragenterData(this,i-1),d.dragenterData(this)||(t.$(this).removeClass(d.options.overClass),d.dragenterData(this,!1))}),$=l(function(t){return!a||a===this||r===this||(d.element.children().removeClass(d.options.overClass),r=this,d.moveElementNextTo(a,this),n(t))});this.addDragHandlers=e,this.removeDragHandlers=i,window.addEventListener(k,s,!1),h.addEventListener(v,u,!1)},dragStart:function(e,i){p=!1,d=!1,l=!1;var o=this,n=t.$(e.target);if((g||2!=e.button)&&!n.is("."+o.options.noDragClass)&&!n.closest("."+o.options.noDragClass).length&&!n.is(":input")){a=i,s&&s.remove();var r=t.$(a),h=r.offset(),c=e.touches&&e.touches[0]||e;u={pos:{x:c.pageX,y:c.pageY},threshold:o.options.handleClass?1:o.options.threshold,apply:function(e){s=t.$('<div class="'+[o.options.draggingClass,o.options.dragCustomClass].join(" ")+'"></div>').css({display:"none",top:h.top,left:h.left,width:r.width(),height:r.height(),padding:r.css("padding")}).data({"mouse-offset":{left:h.left-parseInt(c.pageX,10),top:h.top-parseInt(c.pageY,10)},origin:o.element,index:r.index()}).append(r.html()).appendTo("body"),s.$current=r,s.$sortable=o,r.data({"start-list":r.parent(),"start-index":r.index(),"sortable-group":o.options.group}),o.addDragHandlers(),o.options.start(this,a),o.trigger("start.uk.sortable",[o,a,s]),p=!0,u=!1}}}},dragMove:function(e,i){f=t.$(document.elementFromPoint(e.pageX-(document.body.scrollLeft||document.scrollLeft||0),e.pageY-(document.body.scrollTop||document.documentElement.scrollTop||0)));var o,n=f.closest("."+this.options.baseClass),s=n.data("sortable-group"),r=t.$(a),l=r.parent(),d=r.data("sortable-group");n[0]!==l[0]&&void 0!==d&&s===d&&(n.data("sortable").addDragHandlers(),c.push(n),n.children().addClass(this.options.childClass),n.children().length>0?(o=f.closest("."+this.options.childClass),o.length?o.before(r):n.append(r)):f.append(r),UIkit.$doc.trigger("mouseover")),this.checkEmptyList(),this.checkEmptyList(l)},dragEnter:function(e,i){if(!a||a===i)return!0;var o=this.dragenterData(i);if(this.dragenterData(i,o+1),0===o){var n=t.$(i).parent(),s=t.$(a).data("start-list");if(n[0]!==s[0]){var r=n.data("sortable-group"),l=t.$(a).data("sortable-group");if((r||l)&&r!=l)return!1}t.$(i).addClass(this.options.overClass),this.moveElementNextTo(a,i)}return!1},dragEnd:function(e,i){var o=this;a&&(this.options.stop(i),this.trigger("stop.uk.sortable",[this])),a=null,r=null,c.push(this.element),c.forEach(function(e,i){t.$(e).children().each(function(){1===this.nodeType&&(t.$(this).removeClass(o.options.overClass).removeClass(o.options.placeholderClass).removeClass(o.options.childClass),o.dragenterData(this,!1))})}),c=[],t.$html.removeClass(this.options.dragMovingClass),this.removeDragHandlers(),s&&(s.remove(),s=null)},dragDrop:function(t,e){"drop"===t.type&&(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()),this.triggerChangeEvents()},triggerChangeEvents:function(){if(a){var e=t.$(a),i=s.data("origin"),o=e.closest("."+this.options.baseClass),n=[],r=t.$(a);i[0]===o[0]&&s.data("index")!=e.index()?n.push({sortable:this,mode:"moved"}):i[0]!=o[0]&&n.push({sortable:t.$(o).data("sortable"),mode:"added"},{sortable:t.$(i).data("sortable"),mode:"removed"}),n.forEach(function(t,e){t.sortable&&t.sortable.element.trigger("change.uk.sortable",[t.sortable,r,t.mode])})}},dragenterData:function(e,i){return e=t.$(e),1==arguments.length?parseInt(e.data("child-dragenter"),10)||0:void(i?e.data("child-dragenter",Math.max(0,i)):e.removeData("child-dragenter"))},moveElementNextTo:function(e,o){l=!0;var n=this,s=t.$(e).parent().css("min-height",""),a=i(e,o)?o:o.nextSibling,r=s.children(),d=r.length;return n.options.animation?(s.css("min-height",s.height()),r.stop().each(function(){var e=t.$(this),i=e.position();i.width=e.width(),e.data("offset-before",i)}),o.parentNode.insertBefore(e,a),t.Utils.checkDisplay(n.element.parent()),r=s.children().each(function(){var e=t.$(this);e.data("offset-after",e.position())}).each(function(){var e=t.$(this),i=e.data("offset-before");e.css({position:"absolute",top:i.top,left:i.left,"min-width":i.width})}),void r.each(function(){var e=t.$(this),i=(e.data("offset-before"),e.data("offset-after"));e.css("pointer-events","none").width(),setTimeout(function(){e.animate({top:i.top,left:i.left},n.options.animation,function(){e.css({position:"",top:"",left:"","min-width":"","pointer-events":""}).removeClass(n.options.overClass).removeData("child-dragenter"),d--,d||(s.css("min-height",""),t.Utils.checkDisplay(n.element.parent()))})},0)})):(o.parentNode.insertBefore(e,a),void t.Utils.checkDisplay(n.element.parent()))},serialize:function(){var e,i,o=[];return this.element.children().each(function(n,s){e={};for(var a,r,l=0;l<s.attributes.length;l++)i=s.attributes[l],0===i.name.indexOf("data-")&&(a=i.name.substr(5),r=t.Utils.str2json(i.value),e[a]=r||"false"==i.value||"0"==i.value?r:i.value);o.push(e)}),o},checkEmptyList:function(e){e=e?t.$(e):this.element,this.options.emptyClass&&e[e.children().length?"removeClass":"addClass"](this.options.emptyClass)}}),t.sortable}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-sticky",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";function e(e){var s=arguments.length?arguments:n;if(s.length&&!(i.scrollTop()<0))for(var a,r,l,d,h=i.scrollTop(),u=o.height(),c=i.height(),p=u-c,f=h>p?p-h:0,m=0;m<s.length;m++)if(d=s[m],d.element.is(":visible")&&!d.animate){if(d.check()){if(d.top<0?a=0:(l=d.element.outerHeight(),a=u-l-d.top-d.options.bottom-h-f,a=a<0?a+d.top:d.top),d.boundary&&d.boundary.length){var g=d.boundary.offset().top;r=d.boundtoparent?u-(g+d.boundary.outerHeight())+parseInt(d.boundary.css("padding-bottom")):u-g,a=h+l>u-r-(d.top<0?0:d.top)?u-r-(h+l):a}if(d.currentTop!=a){if(d.element.css({position:"fixed",top:a,width:d.getWidthFrom.length?d.getWidthFrom.width():d.element.width()}),!d.init&&(d.element.addClass(d.options.clsinit),location.hash&&h>0&&d.options.target)){var v=t.$(location.hash);v.length&&setTimeout(function(t,e){return function(){e.element.width();var i=t.offset(),o=i.top+t.outerHeight(),n=e.element.offset(),s=e.element.outerHeight(),a=n.top+s;n.top<o&&i.top<a&&(h=i.top-s-e.options.target,window.scrollTo(0,h))}}(v,d),0)}d.element.addClass(d.options.clsactive).removeClass(d.options.clsinactive),d.element.trigger("active.uk.sticky"),d.element.css("margin",""),d.options.animation&&d.init&&!t.Utils.isInView(d.wrapper)&&d.element.addClass(d.options.animation),d.currentTop=a}}else null!==d.currentTop&&d.reset();d.init=!0}}var i=t.$win,o=t.$doc,n=[],s=1;return t.component("sticky",{defaults:{top:0,bottom:0,animation:"",clsinit:"uk-sticky-init",clsactive:"uk-active",clsinactive:"",getWidthFrom:"",showup:!1,boundary:!1,media:!1,target:!1,disabled:!1},boot:function(){t.$doc.on("scrolling.uk.document",function(t,i){i&&i.dir&&(s=i.dir.y,e())}),t.$win.on("resize orientationchange",t.Utils.debounce(function(){if(n.length){for(var t=0;t<n.length;t++)n[t].reset(!0),n[t].self.computeWrapper();e()}},100)),t.ready(function(i){setTimeout(function(){t.$("[data-uk-sticky]",i).each(function(){var e=t.$(this);e.data("sticky")||t.sticky(e,t.Utils.options(e.attr("data-uk-sticky")))}),e()},0)})},init:function(){var e,a=this.options.boundary;this.wrapper=this.element.wrap('<div class="uk-sticky-placeholder"></div>').parent(),this.computeWrapper(),this.wrapper.css({"margin-top":this.element.css("margin-top"),"margin-bottom":this.element.css("margin-bottom"),"margin-left":this.element.css("margin-left"),"margin-right":this.element.css("margin-right")}),this.element.css("margin",0),a&&(a===!0||"!"===a[0]?(a=a===!0?this.wrapper.parent():this.wrapper.closest(a.substr(1)),e=!0):"string"==typeof a&&(a=t.$(a))),this.sticky={self:this,options:this.options,element:this.element,currentTop:null,wrapper:this.wrapper,init:!1,getWidthFrom:t.$(this.options.getWidthFrom||this.wrapper),boundary:a,boundtoparent:e,top:0,calcTop:function(){var e=this.options.top;if(this.options.top&&"string"==typeof this.options.top)if(this.options.top.match(/^(-|)(\d+)vh$/))e=window.innerHeight*parseInt(this.options.top,10)/100;else{
- var i=t.$(this.options.top).first();i.length&&i.is(":visible")&&(e=-1*(i.offset().top+i.outerHeight()-this.wrapper.offset().top))}this.top=e},reset:function(e){this.calcTop();var i=function(){this.element.css({position:"",top:"",width:"",left:"",margin:"0"}),this.element.removeClass([this.options.animation,"uk-animation-reverse",this.options.clsactive].join(" ")),this.element.addClass(this.options.clsinactive),this.element.trigger("inactive.uk.sticky"),this.currentTop=null,this.animate=!1}.bind(this);!e&&this.options.animation&&t.support.animation&&!t.Utils.isInView(this.wrapper)?(this.animate=!0,this.element.removeClass(this.options.animation).one(t.support.animation.end,function(){i()}).width(),this.element.addClass(this.options.animation+" uk-animation-reverse")):i()},check:function(){if(this.options.disabled)return!1;if(this.options.media)switch(typeof this.options.media){case"number":if(window.innerWidth<this.options.media)return!1;break;case"string":if(window.matchMedia&&!window.matchMedia(this.options.media).matches)return!1}var e=i.scrollTop(),n=o.height(),a=n-window.innerHeight,r=e>a?a-e:0,l=this.wrapper.offset().top,d=l-this.top-r,h=e>=d;return h&&this.options.showup&&(1==s&&(h=!1),s==-1&&!this.element.hasClass(this.options.clsactive)&&t.Utils.isInView(this.wrapper)&&(h=!1)),h}},this.sticky.calcTop(),n.push(this.sticky)},update:function(){e(this.sticky)},enable:function(){this.options.disabled=!1,this.update()},disable:function(t){this.options.disabled=!0,this.sticky.reset(t)},computeWrapper:function(){this.wrapper.css({height:["absolute","fixed"].indexOf(this.element.css("position"))==-1?this.element.outerHeight():"","float":"none"!=this.element.css("float")?this.element.css("float"):""}),"fixed"==this.element.css("position")&&this.element.css({width:this.sticky.getWidthFrom.length?this.sticky.getWidthFrom.width():this.element.width()})}}),t.sticky}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-tooltip",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";var e,i,o;return t.component("tooltip",{defaults:{offset:5,pos:"top",animation:!1,delay:0,cls:"",activeClass:"uk-active",src:function(t){var e=t.attr("title");return void 0!==e&&t.data("cached-title",e).removeAttr("title"),t.data("cached-title")}},tip:"",boot:function(){t.$html.on("mouseenter.tooltip.uikit focus.tooltip.uikit","[data-uk-tooltip]",function(e){var i=t.$(this);i.data("tooltip")||(t.tooltip(i,t.Utils.options(i.attr("data-uk-tooltip"))),i.trigger("mouseenter"))})},init:function(){var i=this;e||(e=t.$('<div class="uk-tooltip"></div>').appendTo("body")),this.on({focus:function(t){i.show()},blur:function(t){i.hide()},mouseenter:function(t){i.show()},mouseleave:function(t){i.hide()}})},show:function(){if(this.tip="function"==typeof this.options.src?this.options.src(this.element):this.options.src,i&&clearTimeout(i),o&&clearTimeout(o),"string"==typeof this.tip&&this.tip.length){e.stop().css({top:-2e3,visibility:"hidden"}).removeClass(this.options.activeClass).show(),e.html('<div class="uk-tooltip-inner">'+this.tip+"</div>");var n=this,s=t.$.extend({},this.element.offset(),{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}),a=e[0].offsetWidth,r=e[0].offsetHeight,l="function"==typeof this.options.offset?this.options.offset.call(this.element):this.options.offset,d="function"==typeof this.options.pos?this.options.pos.call(this.element):this.options.pos,h=d.split("-"),u={display:"none",visibility:"visible",top:s.top+s.height+r,left:s.left};if("fixed"==t.$html.css("position")||"fixed"==t.$body.css("position")){var c=t.$("body").offset(),p=t.$("html").offset(),f={top:p.top+c.top,left:p.left+c.left};s.left-=f.left,s.top-=f.top}"left"!=h[0]&&"right"!=h[0]||"right"!=t.langdirection||(h[0]="left"==h[0]?"right":"left");var m={bottom:{top:s.top+s.height+l,left:s.left+s.width/2-a/2},top:{top:s.top-r-l,left:s.left+s.width/2-a/2},left:{top:s.top+s.height/2-r/2,left:s.left-a-l},right:{top:s.top+s.height/2-r/2,left:s.left+s.width+l}};t.$.extend(u,m[h[0]]),2==h.length&&(u.left="left"==h[1]?s.left:s.left+s.width-a);var g=this.checkBoundary(u.left,u.top,a,r);if(g){switch(g){case"x":d=2==h.length?h[0]+"-"+(u.left<0?"left":"right"):u.left<0?"right":"left";break;case"y":d=2==h.length?(u.top<0?"bottom":"top")+"-"+h[1]:u.top<0?"bottom":"top";break;case"xy":d=2==h.length?(u.top<0?"bottom":"top")+"-"+(u.left<0?"left":"right"):u.left<0?"right":"left"}h=d.split("-"),t.$.extend(u,m[h[0]]),2==h.length&&(u.left="left"==h[1]?s.left:s.left+s.width-a)}u.left-=t.$body.position().left,i=setTimeout(function(){e.css(u).attr("class",["uk-tooltip","uk-tooltip-"+d,n.options.cls].join(" ")),n.options.animation?e.css({opacity:0,display:"block"}).addClass(n.options.activeClass).animate({opacity:1},parseInt(n.options.animation,10)||400):e.show().addClass(n.options.activeClass),i=!1,o=setInterval(function(){n.element.is(":visible")||n.hide()},150)},parseInt(this.options.delay,10)||0)}},hide:function(){if(!this.element.is("input")||this.element[0]!==document.activeElement)if(i&&clearTimeout(i),o&&clearTimeout(o),e.stop(),this.options.animation){var t=this;e.fadeOut(parseInt(this.options.animation,10)||400,function(){e.removeClass(t.options.activeClass)})}else e.hide().removeClass(this.options.activeClass)},content:function(){return this.tip},checkBoundary:function(e,i,o,n){var s="";return(e<0||e-t.$win.scrollLeft()+o>window.innerWidth)&&(s+="x"),(i<0||i-t.$win.scrollTop()+n>window.innerHeight)&&(s+="y"),s}}),t.tooltip}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-timepicker",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";function e(t,e){t=t||0,e=e||24;var i,o,n={"12h":[],"24h":[]};for(i=t,o="";i<e;i++)o=""+i,i<10&&(o="0"+o),n["24h"].push({value:o+":00"}),n["24h"].push({value:o+":30"}),0===i&&(o=12,n["12h"].push({value:o+":00 AM"}),n["12h"].push({value:o+":30 AM"})),i>0&&i<13&&12!==i&&(n["12h"].push({value:o+":00 AM"}),n["12h"].push({value:o+":30 AM"})),i>=12&&(o-=12,0===o&&(o=12),o<10&&(o="0"+String(o)),n["12h"].push({value:o+":00 PM"}),n["12h"].push({value:o+":30 PM"}));return n}t.component("timepicker",{defaults:{format:"24h",delay:0,start:0,end:24},boot:function(){t.$html.on("focus.timepicker.uikit","[data-uk-timepicker]",function(e){var i=t.$(this);if(!i.data("timepicker")){var o=t.timepicker(i,t.Utils.options(i.attr("data-uk-timepicker")));setTimeout(function(){o.autocomplete.input.focus()},40)}})},init:function(){var i,o=this,n=e(this.options.start,this.options.end);this.options.minLength=0,this.options.template='<ul class="uk-nav uk-nav-autocomplete uk-autocomplete-results">{{~items}}<li data-value="{{$item.value}}"><a class="needsclick">{{$item.value}}</a></li>{{/items}}</ul>',this.options.source=function(t){t(n[o.options.format]||n["12h"])},this.element.is("input")?(this.element.wrap('<div class="uk-autocomplete"></div>'),i=this.element.parent()):i=this.element.addClass("uk-autocomplete"),this.autocomplete=t.autocomplete(i,this.options),this.autocomplete.dropdown.addClass("uk-dropdown-small uk-dropdown-scrollable"),this.autocomplete.on("show.uk.autocomplete",function(){var t=o.autocomplete.dropdown.find('[data-value="'+o.autocomplete.input.val()+'"]');setTimeout(function(){o.autocomplete.pick(t,!0)},10)}),this.autocomplete.input.on("focus",function(){o.autocomplete.value=Math.random(),o.autocomplete.triggercomplete()}).on("blur",t.Utils.debounce(function(){o.checkTime()},100)),this.element.data("timepicker",this)},checkTime:function(){var t,e,i,o,n="AM",s=this.autocomplete.input.val();"12h"==this.options.format?(t=s.split(" "),e=t[0].split(":"),n=t[1]):e=s.split(":"),i=parseInt(e[0],10),o=parseInt(e[1],10),isNaN(i)&&(i=0),isNaN(o)&&(o=0),"12h"==this.options.format?(i>12?i=12:i<0&&(i=12),"am"===n||"a"===n?n="AM":"pm"!==n&&"p"!==n||(n="PM"),"AM"!==n&&"PM"!==n&&(n="AM")):i>=24?i=23:i<0&&(i=0),o<0?o=0:o>=60&&(o=0),this.autocomplete.input.val(this.formatTime(i,o,n)).trigger("change")},formatTime:function(t,e,i){return t=t<10?"0"+t:t,e=e<10?"0"+e:e,t+":"+e+("12h"==this.options.format?" "+i:"")}})}),function(t){var e;window.UIkit&&(e=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-upload",["uikit"],function(){return e||t(UIkit)})}(function(t){"use strict";function e(o,n){function s(e,i){var o=new FormData,n=new XMLHttpRequest;if(i.before(i,e)!==!1){for(var s,a=0;s=e[a];a++)o.append(i.param,s);for(var r in i.params)o.append(r,i.params[r]);n.upload.addEventListener("progress",function(t){var e=t.loaded/t.total*100;i.progress(e,t)},!1),n.addEventListener("loadstart",function(t){i.loadstart(t)},!1),n.addEventListener("load",function(t){i.load(t)},!1),n.addEventListener("loadend",function(t){i.loadend(t)},!1),n.addEventListener("error",function(t){i.error(t)},!1),n.addEventListener("abort",function(t){i.abort(t)},!1),n.open(i.method,i.action,!0),"json"==i.type&&n.setRequestHeader("Accept","application/json");for(var l in i.headers)n.setRequestHeader(l,i.headers[l]);n.onreadystatechange=function(){if(i.readystatechange(n),4==n.readyState){var e=n.responseText;if("json"==i.type)try{e=t.$.parseJSON(e)}catch(o){e=!1}i.complete(e,n)}},i.beforeSend(n),n.send(o)}}if(!t.support.ajaxupload)return this;if(n=t.$.extend({},e.defaults,n),o.length){if("*.*"!==n.allow)for(var a,r=0;a=o[r];r++)if(!i(n.allow,a.name))return void("string"==typeof n.notallowed?alert(n.notallowed):n.notallowed(a,n));var l=n.complete;if(n.single){var d=o.length,h=0,u=!0;n.beforeAll(o),n.complete=function(t,e){h+=1,l(t,e),n.filelimit&&h>=n.filelimit&&(u=!1),u&&h<d?s([o[h]],n):n.allcomplete(t,e)},s([o[0]],n)}else n.complete=function(t,e){l(t,e),n.allcomplete(t,e)},s(o,n)}}function i(t,e){var i="^"+t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$";return i="^"+i+"$",null!==e.match(new RegExp(i,"i"))}return t.component("uploadSelect",{init:function(){var t=this;this.on("change",function(){e(t.element[0].files,t.options);var i=t.element.clone(!0).data("uploadSelect",t);t.element.replaceWith(i),t.element=i})}}),t.component("uploadDrop",{defaults:{dragoverClass:"uk-dragover"},init:function(){var t=this,i=!1;this.on("drop",function(i){i.originalEvent.dataTransfer&&i.originalEvent.dataTransfer.files&&(i.stopPropagation(),i.preventDefault(),t.element.removeClass(t.options.dragoverClass),t.element.trigger("dropped.uk.upload",[i.originalEvent.dataTransfer.files]),e(i.originalEvent.dataTransfer.files,t.options))}).on("dragenter",function(t){t.stopPropagation(),t.preventDefault()}).on("dragover",function(e){e.stopPropagation(),e.preventDefault(),i||(t.element.addClass(t.options.dragoverClass),i=!0)}).on("dragleave",function(e){e.stopPropagation(),e.preventDefault(),t.element.removeClass(t.options.dragoverClass),i=!1})}}),t.support.ajaxupload=function(){function t(){var t=document.createElement("INPUT");return t.type="file","files"in t}function e(){var t=new XMLHttpRequest;return!!(t&&"upload"in t&&"onprogress"in t.upload)}function i(){return!!window.FormData}return t()&&e()&&i()}(),e.defaults={action:"",single:!0,method:"POST",param:"files[]",params:{},allow:"*.*",type:"text",filelimit:!1,headers:{},before:function(t){},beforeSend:function(t){},beforeAll:function(){},loadstart:function(){},load:function(){},loadend:function(){},error:function(){},abort:function(){},progress:function(){},complete:function(){},allcomplete:function(){},readystatechange:function(){},notallowed:function(t,e){alert("Only the following file types are allowed: "+e.allow)}},t.Utils.xhrupload=e,e}),"undefined"!=typeof UIkit&&UIkit.on("beforeready.uk.dom",function(){"undefined"!=typeof UIkit.components.accordion&&$.extend(UIkit.components.accordion.prototype.defaults,{easing:$.bez([.35,0,.25,1]),duration:200}),"undefined"!=typeof UIkit.components.dropdown.prototype&&($.extend(UIkit.components.dropdown.prototype.defaults,{remaintime:150,delay:50}),function(){var t=UIkit.components.dropdown.prototype.show;UIkit.components.dropdown.prototype.show=function(){return this.dropdown.css({"min-width":this.dropdown.outerWidth()}).addClass("uk-dropdown-active uk-dropdown-shown"),t.apply(this,arguments)}}(),function(){var t=UIkit.components.dropdown.prototype.hide;UIkit.components.dropdown.prototype.hide=function(){var e=this.dropdown;e.removeClass("uk-dropdown-shown");setTimeout(function(){e.removeClass("uk-dropdown-active")},280);return t.apply(this,arguments)}}()),"undefined"!=typeof UIkit.components.modal&&($.extend(UIkit.components.modal.prototype.defaults,{center:!0}),UIkit.modal.dialog.template='<div class="uk-modal uk-modal-dialog-replace"><div class="uk-modal-dialog" style="min-height:0;"></div></div>',$body.on("show.uk.modal",".uk-modal-dialog-replace",function(){setTimeout(function(){var t=$(".uk-modal-dialog-replace");if(t.find(".uk-button-primary").length){var e=t.find(".uk-button-primary").toggleClass("uk-button-primary md-btn-flat-primary");e.next("button")&&e.next("button").after(e)}t.find(".uk-button").length&&t.find(".uk-button").toggleClass("uk-button md-btn md-btn-flat"),t.find(".uk-margin-small-top").length&&t.find(".uk-margin-small-top").toggleClass("uk-margin-small-top uk-margin-top"),t.find("input.uk-width-1-1").length&&(t.find("input.uk-width-1-1").toggleClass("uk-width-1-1 md-input"),altair_md.inputs()),t.find(".uk-form").length&&t.find(".uk-form").removeClass("uk-form")},50)})),"undefined"!=typeof UIkit.components.tooltip&&$.extend(UIkit.components.tooltip.prototype.defaults,{animation:280,offset:8}),"undefined"!=typeof UIkit.components.sortable&&Modernizr.touch&&$("[data-uk-sortable]").children().addClass("needsclick")});
|