').parent().attr('hidden', state);
+ }
+
+ this$1._toggleImmediate(content, true);
+ this$1.toggleElement(el[0]._wrapper, state, animate).then(function () {
+ if (el.hasClass(this$1.clsOpen) === state) {
+
+ if (!state) {
+ this$1._toggleImmediate(content, false);
+ }
+
+ el[0]._wrapper = null;
+ content.unwrap();
+ }
+ });
+
+ })
+ }
+
+ }
+
+ });
+
+}
+
+function Alert (UIkit) {
+
+ UIkit.component('alert', {
+
+ mixins: [Class, Togglable],
+
+ args: 'animation',
+
+ props: {
+ close: String
+ },
+
+ defaults: {
+ animation: [true],
+ close: '.uk-alert-close',
+ duration: 150,
+ hideProps: {opacity: 0}
+ },
+
+ events: [
+
+ {
+
+ name: 'click',
+
+ delegate: function delegate() {
+ return this.close;
+ },
+
+ handler: function handler(e) {
+ e.preventDefault();
+ this.closeAlert();
+ }
+
+ }
+
+ ],
+
+ methods: {
+
+ closeAlert: function closeAlert() {
+ var this$1 = this;
+
+ this.toggleElement(this.$el).then(function () { return this$1.$destroy(true); });
+ }
+
+ }
+
+ });
+
+}
+
+function Cover (UIkit) {
+
+ UIkit.component('cover', {
+
+ mixins: [Class],
+
+ props: {
+ automute: Boolean,
+ width: Number,
+ height: Number
+ },
+
+ defaults: {automute: true},
+
+ computed: {
+
+ el: function el() {
+ return this.$el[0];
+ },
+
+ parent: function parent() {
+ return this.el.parentNode;
+ }
+
+ },
+
+ ready: function ready() {
+
+ if (!this.$el.is('iframe')) {
+ return;
+ }
+
+ this.$el.css('pointerEvents', 'none');
+
+ if (this.automute) {
+
+ var src = this.$el.attr('src');
+
+ this.$el
+ .attr('src', ("" + src + (~src.indexOf('?') ? '&' : '?') + "enablejsapi=1&api=1"))
+ .on('load', function (ref) {
+ var target = ref.target;
+
+ return target.contentWindow.postMessage('{"event": "command", "func": "mute", "method":"setVolume", "value":0}', '*');
+ });
+ }
+ },
+
+ update: {
+
+ write: function write() {
+
+ if (this.el.offsetHeight === 0) {
+ return;
+ }
+
+ this.$el
+ .css({width: '', height: ''})
+ .css(Dimensions.cover(
+ {width: this.width || this.el.clientWidth, height: this.height || this.el.clientHeight},
+ {width: this.parent.offsetWidth, height: this.parent.offsetHeight}
+ ));
+
+ },
+
+ events: ['load', 'resize']
+
+ },
+
+ events: {
+
+ loadedmetadata: function loadedmetadata() {
+ this.$emit();
+ }
+
+ }
+
+ });
+
+}
+
+function Drop (UIkit) {
+
+ var active;
+
+ UIkit.component('drop', {
+
+ mixins: [Position, Togglable],
+
+ args: 'pos',
+
+ props: {
+ mode: 'list',
+ toggle: Boolean,
+ boundary: 'jQuery',
+ boundaryAlign: Boolean,
+ delayShow: Number,
+ delayHide: Number,
+ clsDrop: String
+ },
+
+ defaults: {
+ mode: ['click', 'hover'],
+ toggle: '- :first',
+ boundary: window,
+ boundaryAlign: false,
+ delayShow: 0,
+ delayHide: 800,
+ clsDrop: false,
+ hoverIdle: 200,
+ animation: ['uk-animation-fade'],
+ cls: 'uk-open'
+ },
+
+ init: function init() {
+ this.tracker = new MouseTracker();
+ this.clsDrop = this.clsDrop || ("uk-" + (this.$options.name));
+ this.clsPos = this.clsDrop;
+
+ this.$addClass(this.clsDrop);
+ },
+
+ ready: function ready() {
+
+ this.updateAria(this.$el);
+
+ if (this.toggle) {
+ this.toggle = UIkit.toggle(query(this.toggle, this.$el), {target: this.$el, mode: this.mode});
+ }
+
+ },
+
+ events: [
+
+ {
+
+ name: 'click',
+
+ delegate: function delegate() {
+ return ("." + (this.clsDrop) + "-close");
+ },
+
+ handler: function handler(e) {
+ e.preventDefault();
+ this.hide(false);
+ }
+
+ },
+
+ {
+
+ name: 'click',
+
+ delegate: function delegate() {
+ return 'a[href^="#"]';
+ },
+
+ handler: function handler(e) {
+
+ if (e.isDefaultPrevented()) {
+ return;
+ }
+
+ var id = $__default(e.target).attr('href');
+
+ if (id.length === 1) {
+ e.preventDefault();
+ }
+
+ if (id.length === 1 || !isWithin(id, this.$el)) {
+ this.hide(false);
+ }
+ }
+
+ },
+
+ {
+
+ name: 'toggle',
+
+ handler: function handler(e, toggle) {
+
+ if (toggle && !this.$el.is(toggle.target)) {
+ return;
+ }
+
+ e.preventDefault();
+
+ if (this.isToggled()) {
+ this.hide(false);
+ } else {
+ this.show(toggle, false);
+ }
+ }
+
+ },
+
+ {
+
+ name: pointerEnter,
+
+ filter: function filter() {
+ return ~this.mode.indexOf('hover');
+ },
+
+ handler: function handler(e) {
+
+ if (isTouch(e)) {
+ return;
+ }
+
+ if (active
+ && active !== this
+ && active.toggle
+ && ~active.toggle.mode.indexOf('hover')
+ && !isWithin(e.target, active.$el)
+ && !isWithin(e.target, active.toggle.$el)
+ ) {
+ active.hide(false);
+ }
+
+ e.preventDefault();
+ this.show(this.toggle);
+ }
+
+ },
+
+ {
+
+ name: 'toggleshow',
+
+ handler: function handler(e, toggle) {
+
+ if (toggle && !this.$el.is(toggle.target)) {
+ return;
+ }
+
+ e.preventDefault();
+ this.show(toggle || this.toggle);
+ }
+
+ },
+
+ {
+
+ name: ("togglehide " + pointerLeave),
+
+ handler: function handler(e, toggle) {
+
+ if (isTouch(e) || toggle && !this.$el.is(toggle.target)) {
+ return;
+ }
+
+ e.preventDefault();
+
+ if (this.toggle && ~this.toggle.mode.indexOf('hover')) {
+ this.hide();
+ }
+ }
+
+ },
+
+ {
+
+ name: 'beforeshow',
+
+ self: true,
+
+ handler: function handler() {
+ this.clearTimers();
+ }
+
+ },
+
+ {
+
+ name: 'show',
+
+ self: true,
+
+ handler: function handler() {
+ this.tracker.init();
+ this.toggle.$el.addClass(this.cls).attr('aria-expanded', 'true');
+ registerEvent();
+ }
+
+ },
+
+ {
+
+ name: 'beforehide',
+
+ self: true,
+
+ handler: function handler() {
+ this.clearTimers();
+ }
+
+ },
+
+ {
+
+ name: 'hide',
+
+ handler: function handler(ref) {
+ var target = ref.target;
+
+
+ if (!this.$el.is(target)) {
+ active = active === null && isWithin(target, this.$el) && this.isToggled() ? this : active;
+ return;
+ }
+
+ active = this.isActive() ? null : active;
+ this.toggle.$el.removeClass(this.cls).attr('aria-expanded', 'false').blur().find('a, button').blur();
+ this.tracker.cancel();
+ }
+
+ }
+
+ ],
+
+ update: {
+
+ write: function write() {
+
+ if (this.isToggled() && !Animation.inProgress(this.$el)) {
+ this.position();
+ }
+
+ },
+
+ events: ['resize']
+
+ },
+
+ methods: {
+
+ show: function show(toggle, delay) {
+ var this$1 = this;
+ if ( delay === void 0 ) delay = true;
+
+
+ var show = function () {
+ if (!this$1.isToggled()) {
+ this$1.position();
+ this$1.toggleElement(this$1.$el, true);
+ }
+ },
+ tryShow = function () {
+
+ this$1.toggle = toggle || this$1.toggle;
+
+ this$1.clearTimers();
+
+ if (this$1.isActive()) {
+ return;
+ } else if (delay && active && active !== this$1 && active.isDelaying) {
+ this$1.showTimer = setTimeout(this$1.show, 10);
+ return;
+ } else if (this$1.isParentOf(active)) {
+
+ if (active.hideTimer) {
+ active.hide(false);
+ } else {
+ return;
+ }
+
+ } else if (active && !this$1.isChildOf(active) && !this$1.isParentOf(active)) {
+ var prev;
+ while (active && active !== prev) {
+ prev = active;
+ active.hide(false);
+ }
+ }
+
+ if (delay && this$1.delayShow) {
+ this$1.showTimer = setTimeout(show, this$1.delayShow);
+ } else {
+ show();
+ }
+
+ active = this$1;
+ };
+
+ if (toggle && this.toggle && !this.toggle.$el.is(toggle.$el)) {
+
+ this.$el.one('hide', tryShow);
+ this.hide(false);
+
+ } else {
+ tryShow();
+ }
+ },
+
+ hide: function hide(delay) {
+ var this$1 = this;
+ if ( delay === void 0 ) delay = true;
+
+
+ var hide = function () { return this$1.toggleNow(this$1.$el, false); };
+
+ this.clearTimers();
+
+ this.isDelaying = this.tracker.movesTo(this.$el);
+
+ if (delay && this.isDelaying) {
+ this.hideTimer = setTimeout(this.hide, this.hoverIdle);
+ } else if (delay && this.delayHide) {
+ this.hideTimer = setTimeout(hide, this.delayHide);
+ } else {
+ hide();
+ }
+ },
+
+ clearTimers: function clearTimers() {
+ clearTimeout(this.showTimer);
+ clearTimeout(this.hideTimer);
+ this.showTimer = null;
+ this.hideTimer = null;
+ this.isDelaying = false;
+ },
+
+ isActive: function isActive() {
+ return active === this;
+ },
+
+ isChildOf: function isChildOf(drop) {
+ return drop && drop !== this && isWithin(this.$el, drop.$el);
+ },
+
+ isParentOf: function isParentOf(drop) {
+ return drop && drop !== this && isWithin(drop.$el, this.$el);
+ },
+
+ position: function position() {
+
+ removeClass(this.$el, ((this.clsDrop) + "-(stack|boundary)")).css({top: '', left: ''});
+
+ this.$el.show().toggleClass(((this.clsDrop) + "-boundary"), this.boundaryAlign);
+
+ var boundary = getDimensions(this.boundary), alignTo = this.boundaryAlign ? boundary : getDimensions(this.toggle.$el);
+
+ if (this.align === 'justify') {
+ var prop = this.getAxis() === 'y' ? 'width' : 'height';
+ this.$el.css(prop, alignTo[prop]);
+ } else if (this.$el.outerWidth() > Math.max(boundary.right - alignTo.left, alignTo.right - boundary.left)) {
+ this.$addClass(((this.clsDrop) + "-stack"));
+ this.$el.trigger('stack', [this]);
+ }
+
+ this.positionAt(this.$el, this.boundaryAlign ? this.boundary : this.toggle.$el, this.boundary);
+
+ this.$el[0].style.display = '';
+
+ }
+
+ }
+
+ });
+
+ UIkit.drop.getActive = function () { return active; };
+
+ var registered;
+ function registerEvent() {
+
+ if (registered) {
+ return;
+ }
+
+ registered = true;
+ doc.on('click', function (e) {
+ var prev;
+ while (active && active !== prev && !isWithin(e.target, active.$el) && !(active.toggle && isWithin(e.target, active.toggle.$el))) {
+ prev = active;
+ active.hide(false);
+ }
+ });
+ }
+
+}
+
+function Dropdown (UIkit) {
+
+ UIkit.component('dropdown', UIkit.components.drop.extend({name: 'dropdown'}));
+
+}
+
+function FormCustom (UIkit) {
+
+ UIkit.component('form-custom', {
+
+ mixins: [Class],
+
+ args: 'target',
+
+ props: {
+ target: Boolean
+ },
+
+ defaults: {
+ target: false
+ },
+
+ computed: {
+
+ input: function input() {
+ return this.$el.find(':input:first');
+ },
+
+ state: function state() {
+ return this.input.next();
+ },
+
+ target: function target() {
+ return this.$props.target && query(this.$props.target === true ? '> :input:first + :first' : this.$props.target, this.$el)
+ }
+
+ },
+
+ connected: function connected() {
+ this.input.trigger('change');
+ },
+
+ events: [
+
+ {
+
+ name: 'focusin focusout mouseenter mouseleave',
+
+ delegate: ':input:first',
+
+ handler: function handler(ref) {
+ var type = ref.type;
+
+ this.state.toggleClass(("uk-" + (~type.indexOf('focus') ? 'focus' : 'hover')), ~['focusin', 'mouseenter'].indexOf(type));
+ }
+
+ },
+
+ {
+
+ name: 'change',
+
+ handler: function handler() {
+ this.target && this.target[this.target.is(':input') ? 'val' : 'text'](
+ this.input[0].files && this.input[0].files[0]
+ ? this.input[0].files[0].name
+ : this.input.is('select')
+ ? this.input.find('option:selected').text()
+ : this.input.val()
+ );
+ }
+
+ }
+
+ ]
+
+ });
+
+}
+
+function Gif (UIkit) {
+
+ UIkit.component('gif', {
+
+ update: {
+
+ read: function read() {
+
+ var inview = isInView(this.$el);
+
+ if (!this.isInView && inview) {
+ this.$el[0].src = this.$el[0].src;
+ }
+
+ this.isInView = inview;
+ },
+
+ events: ['scroll', 'load', 'resize']
+ }
+
+ });
+
+}
+
+function Grid (UIkit) {
+
+ UIkit.component('grid', UIkit.components.margin.extend({
+
+ mixins: [Class],
+
+ name: 'grid',
+
+ defaults: {
+ margin: 'uk-grid-margin',
+ clsStack: 'uk-grid-stack'
+ },
+
+ update: {
+
+ write: function write() {
+
+ this.$toggleClass(this.clsStack, this.stacks);
+
+ },
+
+ events: ['load', 'resize']
+
+ }
+
+ }));
+
+}
+
+function HeightMatch (UIkit) {
+
+ UIkit.component('height-match', {
+
+ args: 'target',
+
+ props: {
+ target: String,
+ row: Boolean
+ },
+
+ defaults: {
+ target: '> *',
+ row: true
+ },
+
+ computed: {
+
+ elements: function elements() {
+ return $__default(this.target, this.$el);
+ }
+
+ },
+
+ update: {
+
+ read: function read() {
+ var this$1 = this;
+
+
+ var lastOffset = false;
+
+ this.elements.css('minHeight', '');
+
+ this.rows = !this.row
+ ? [this.match(this.elements)]
+ : this.elements.toArray().reduce(function (rows, el) {
+
+ if (lastOffset !== el.offsetTop) {
+ rows.push([el]);
+ } else {
+ rows[rows.length - 1].push(el);
+ }
+
+ lastOffset = el.offsetTop;
+
+ return rows;
+
+ }, []).map(function (elements) { return this$1.match($__default(elements)); });
+ },
+
+ write: function write() {
+
+ this.rows.forEach(function (ref) {
+ var height = ref.height;
+ var elements = ref.elements;
+
+ return elements && elements.each(function (_, el) { return el.style.minHeight = height + "px"; }
+ );
+ }
+ );
+
+ },
+
+ events: ['load', 'resize']
+
+ },
+
+ methods: {
+
+ match: function match(elements) {
+
+ if (elements.length < 2) {
+ return {};
+ }
+
+ var max = 0, heights = [];
+
+ elements = elements
+ .each(function (_, el) {
+
+ var $el, style, hidden;
+
+ if (el.offsetHeight === 0) {
+ $el = $__default(el);
+ style = $el.attr('style') || null;
+ hidden = $el.attr('hidden') || null;
+
+ $el.attr({
+ style: (style + ";display:block !important;"),
+ hidden: null
+ });
+ }
+
+ max = Math.max(max, el.offsetHeight);
+ heights.push(el.offsetHeight);
+
+ if ($el) {
+ $el.attr({style: style, hidden: hidden});
+ }
+
+ })
+ .filter(function (i) { return heights[i] < max; });
+
+ return {height: max, elements: elements};
+ }
+ }
+
+ });
+
+}
+
+function HeightViewport (UIkit) {
+
+ UIkit.component('height-viewport', {
+
+ props: {
+ expand: Boolean,
+ offsetTop: Boolean,
+ offsetBottom: Boolean
+ },
+
+ defaults: {
+ expand: false,
+ offsetTop: false,
+ offsetBottom: false
+ },
+
+ update: {
+
+ write: function write() {
+
+ this.$el.css('boxSizing', 'border-box');
+
+ var viewport = window.innerHeight, height, offset = 0;
+
+ if (this.expand) {
+
+ this.$el.css({height: '', minHeight: ''});
+
+ var diff = viewport - document.documentElement.offsetHeight;
+
+ if (diff > 0) {
+ this.$el.css('min-height', height = this.$el.outerHeight() + diff)
+ }
+
+ } else {
+
+ var top = offsetTop(this.$el);
+
+ if (top < viewport && this.offsetTop) {
+ offset += top;
+ }
+
+ if (this.offsetBottom === true) {
+
+ offset += this.$el.next().outerHeight() || 0;
+
+ } else if ($.isNumeric(this.offsetBottom)) {
+
+ offset += (viewport / 100) * this.offsetBottom;
+
+ } else if (this.offsetBottom && this.offsetBottom.substr(-2) === 'px') {
+
+ offset += parseFloat(this.offsetBottom);
+
+ } else if (isString(this.offsetBottom)) {
+
+ var el = query(this.offsetBottom, this.$el);
+ offset += el && el.outerHeight() || 0;
+
+ }
+
+ this.$el.css('min-height', height = offset ? ("calc(100vh - " + offset + "px)") : '100vh');
+
+ }
+
+ // IE 10-11 fix (min-height on a flex container won't apply to its flex items)
+ this.$el.height('');
+ if (height && viewport - offset >= this.$el.outerHeight()) {
+ this.$el.css('height', height);
+ }
+
+ },
+
+ events: ['load', 'resize']
+
+ }
+
+ });
+
+}
+
+function Hover (UIkit) {
+
+ ready(function () {
+
+ if (!hasTouch) {
+ return;
+ }
+
+ var cls = 'uk-hover';
+
+ docElement.on('tap', function (ref) {
+ var target = ref.target;
+
+ return $__default(("." + cls)).filter(function (_, el) { return !isWithin(target, el); }).removeClass(cls);
+ });
+
+ Object.defineProperty(UIkit, 'hoverSelector', {
+
+ set: function set(selector) {
+ docElement.on('tap', selector, function (ref) {
+ var currentTarget = ref.currentTarget;
+
+ return currentTarget.classList.add(cls);
+ });
+ }
+
+ });
+
+ UIkit.hoverSelector = '.uk-animation-toggle, .uk-transition-toggle, [uk-hover]';
+
+ });
+
+}
+
+var closeIcon = "
";
+
+var closeLarge = "
";
+
+var marker = "
";
+
+var navbarToggleIcon = "
";
+
+var overlayIcon = "
";
+
+var paginationNext = "
";
+
+var paginationPrevious = "
";
+
+var searchIcon = "
";
+
+var searchLarge = "
";
+
+var searchNavbar = "
";
+
+var slidenavNext = "
";
+
+var slidenavNextLarge = "
";
+
+var slidenavPrevious = "
";
+
+var slidenavPreviousLarge = "
";
+
+var spinner = "
";
+
+var totop = "
";
+
+function Icon (UIkit) {
+
+ var parsed = {},
+ icons = {
+ spinner: spinner,
+ totop: totop,
+ marker: marker,
+ 'close-icon': closeIcon,
+ 'close-large': closeLarge,
+ 'navbar-toggle-icon': navbarToggleIcon,
+ 'overlay-icon': overlayIcon,
+ 'pagination-next': paginationNext,
+ 'pagination-previous': paginationPrevious,
+ 'search-icon': searchIcon,
+ 'search-large': searchLarge,
+ 'search-navbar': searchNavbar,
+ 'slidenav-next': slidenavNext,
+ 'slidenav-next-large': slidenavNextLarge,
+ 'slidenav-previous': slidenavPrevious,
+ 'slidenav-previous-large': slidenavPreviousLarge
+ };
+
+ UIkit.component('icon', UIkit.components.svg.extend({
+
+ attrs: ['icon', 'ratio'],
+
+ mixins: [Class],
+
+ name: 'icon',
+
+ args: 'icon',
+
+ props: ['icon'],
+
+ defaults: {exclude: ['id', 'style', 'class', 'src', 'icon']},
+
+ init: function init() {
+ this.$addClass('uk-icon');
+
+ if (isRtl) {
+ this.icon = swap(swap(this.icon, 'left', 'right'), 'previous', 'next');
+ }
+ },
+
+ update: {
+
+ read: function read() {
+
+ if (this.delay) {
+ var icon = this.getIcon();
+
+ if (icon) {
+ this.delay(icon);
+ }
+ }
+ },
+
+ events: ['load']
+
+ },
+
+ methods: {
+
+ getSvg: function getSvg() {
+ var this$1 = this;
+
+
+ var icon = this.getIcon();
+
+ if (!icon) {
+
+ if (document.readyState !== 'complete') {
+ return promise(function (resolve) {
+ this$1.delay = resolve;
+ });
+ }
+
+ return promise.reject('Icon not found.');
+
+ }
+
+ return promise.resolve(icon);
+ },
+
+ getIcon: function getIcon() {
+
+ if (!icons[this.icon]) {
+ return null;
+ }
+
+ if (!parsed[this.icon]) {
+ parsed[this.icon] = this.parse(icons[this.icon]);
+ }
+
+ return parsed[this.icon];
+ }
+
+ }
+
+ }));
+
+ [
+ 'marker',
+ 'navbar-toggle-icon',
+ 'overlay-icon',
+ 'pagination-previous',
+ 'pagination-next',
+ 'totop'
+ ].forEach(function (name) { return registerComponent(name); });
+
+ [
+ 'slidenav-previous',
+ 'slidenav-next'
+ ].forEach(function (name) { return registerComponent(name, {
+
+ init: function init() {
+ this.$addClass('uk-slidenav');
+
+ if (this.$hasClass('uk-slidenav-large')) {
+ this.icon += '-large';
+ }
+ }
+
+ }); });
+
+ registerComponent('search-icon', {
+
+ init: function init() {
+ if (this.$hasClass('uk-search-icon') && this.$el.parents('.uk-search-large').length) {
+ this.icon = 'search-large';
+ } else if (this.$el.parents('.uk-search-navbar').length) {
+ this.icon = 'search-navbar';
+ }
+ }
+
+ });
+
+ registerComponent('close', {
+
+ init: function init() {
+ this.icon = "close-" + (this.$hasClass('uk-close-large') ? 'large' : 'icon');
+ }
+
+ });
+
+ registerComponent('spinner', {
+
+ connected: function connected() {
+ var this$1 = this;
+
+
+ this.height = this.width = this.$el.width();
+
+ this.svg.then(function (svg) {
+
+ var circle = $__default(svg).find('circle'),
+ diameter = Math.floor(this$1.width / 2);
+
+ svg.setAttribute('viewBox', ("0 0 " + (this$1.width) + " " + (this$1.width)));
+
+ circle.attr({cx: diameter, cy: diameter, r: diameter - parseFloat(circle.css('stroke-width') || 0)});
+ });
+ }
+
+ });
+
+ UIkit.icon.add = function (added) { return assign(icons, added); };
+
+ function registerComponent(name, mixin) {
+
+ UIkit.component(name, UIkit.components.icon.extend({
+
+ name: name,
+
+ mixins: mixin ? [mixin] : [],
+
+ defaults: {
+ icon: name
+ }
+
+ }));
+ }
+
+}
+
+function Margin (UIkit) {
+
+ UIkit.component('margin', {
+
+ props: {
+ margin: String,
+ firstColumn: Boolean
+ },
+
+ defaults: {
+ margin: 'uk-margin-small-top',
+ firstColumn: 'uk-first-column'
+ },
+
+ computed: {
+
+ items: function items() {
+ return this.$el[0].children;
+ }
+
+ },
+
+ update: {
+
+ read: function read() {
+ var this$1 = this;
+
+
+ if (!this.items.length || this.$el[0].offsetHeight === 0) {
+ this.rows = false;
+ return;
+ }
+
+ this.stacks = true;
+
+ var rows = [[]];
+
+ for (var i = 0; i < this.items.length; i++) {
+
+ var el = this$1.items[i],
+ dim = el.getBoundingClientRect();
+
+ if (!dim.height) {
+ return;
+ }
+
+ for (var j = rows.length - 1; j >= 0; j--) {
+
+ var row = rows[j];
+
+ if (!row[0]) {
+ row.push(el);
+ break;
+ }
+
+ var leftDim = row[0].getBoundingClientRect();
+
+ if (dim.top >= leftDim.bottom) {
+ rows.push([el]);
+ break;
+ }
+
+ if (dim.bottom > leftDim.top) {
+
+ this$1.stacks = false;
+
+ if (dim.left < leftDim.left) {
+ row.unshift(el);
+ break;
+ }
+
+ row.push(el);
+ break;
+ }
+
+ if (j === 0) {
+ rows.unshift([el]);
+ break;
+ }
+
+ }
+
+ }
+
+ this.rows = rows;
+
+ },
+
+ write: function write() {
+ var this$1 = this;
+
+
+ this.rows && this.rows.forEach(function (row, i) { return row.forEach(function (el, j) {
+ this$1.$toggleClass(el, this$1.margin, i !== 0);
+ this$1.$toggleClass(el, this$1.firstColumn, j === 0);
+ }); }
+ )
+
+ },
+
+ events: ['load', 'resize']
+
+ }
+
+ });
+
+}
+
+function Modal$1 (UIkit) {
+
+ UIkit.component('modal', {
+
+ mixins: [Modal],
+
+ props: {
+ center: Boolean
+ },
+
+ defaults: {
+ center: false,
+ clsPage: 'uk-modal-page',
+ clsPanel: 'uk-modal-dialog',
+ selClose: '.uk-modal-close, .uk-modal-close-default, .uk-modal-close-outside, .uk-modal-close-full'
+ },
+
+ update: {
+
+ write: function write() {
+
+ if (this.$el.css('display') === 'block' && this.center) {
+ this.$el
+ .removeClass('uk-flex uk-flex-center uk-flex-middle')
+ .css('display', 'block')
+ .toggleClass('uk-flex uk-flex-center uk-flex-middle', window.innerHeight > this.panel.outerHeight(true))
+ .css('display', this.$el.hasClass('uk-flex') ? '' : 'block');
+ }
+
+ },
+
+ events: ['resize']
+
+ },
+
+ events: [
+
+ {
+ name: 'beforeshow',
+
+ self: true,
+
+ handler: function handler() {
+ this.$el.css('display', 'block').height();
+ }
+ },
+
+ {
+ name: 'hidden',
+
+ self: true,
+
+ handler: function handler() {
+ this.$el.css('display', '').removeClass('uk-flex uk-flex-center uk-flex-middle');
+ }
+ }
+
+ ]
+
+ });
+
+ UIkit.component('overflow-auto', {
+
+ mixins: [Class],
+
+ computed: {
+
+ panel: function panel() {
+ return this.$el.closest('.uk-modal-dialog');
+ }
+
+ },
+
+ connected: function connected() {
+ this.$el.css('min-height', 150);
+ },
+
+ update: {
+
+ write: function write() {
+ var current = this.$el.css('max-height');
+ this.$el.css('max-height', 150).css('max-height', Math.max(150, 150 - (this.panel.outerHeight(true) - window.innerHeight)));
+ if (current !== this.$el.css('max-height')) {
+ this.$el.trigger('resize');
+ }
+ },
+
+ events: ['load', 'resize']
+
+ }
+
+ });
+
+ UIkit.modal.dialog = function (content, options) {
+
+ var dialog = UIkit.modal(
+ ("
")
+ , options);
+
+ dialog.$el.on('hidden', function (e) {
+ if (e.target === e.currentTarget) {
+ dialog.$destroy(true);
+ }
+ });
+ dialog.show();
+
+ return dialog;
+ };
+
+ UIkit.modal.alert = function (message, options) {
+
+ options = assign({bgClose: false, escClose: false, labels: UIkit.modal.labels}, options);
+
+ return promise(
+ function (resolve) { return UIkit.modal.dialog(("\n
" + (isString(message) ? message : $__default(message).html()) + "
\n \n "), options).$el.on('hide', resolve); }
+ );
+ };
+
+ UIkit.modal.confirm = function (message, options) {
+
+ options = assign({bgClose: false, escClose: false, labels: UIkit.modal.labels}, options);
+
+ return promise(
+ function (resolve, reject) { return UIkit.modal.dialog(("\n
" + (isString(message) ? message : $__default(message).html()) + "
\n \n "), options).$el.on('click', '.uk-modal-footer button', function (e) { return $__default(e.target).index() === 0 ? reject() : resolve(); }); }
+ );
+ };
+
+ UIkit.modal.prompt = function (message, value, options) {
+
+ options = assign({bgClose: false, escClose: false, labels: UIkit.modal.labels}, options);
+
+ return promise(function (resolve) {
+
+ var resolved = false,
+ prompt = UIkit.modal.dialog(("\n
\n "), options),
+ input = prompt.$el.find('input').val(value);
+
+ prompt.$el
+ .on('submit', 'form', function (e) {
+ e.preventDefault();
+ resolve(input.val());
+ resolved = true;
+ prompt.hide()
+ })
+ .on('hide', function () {
+ if (!resolved) {
+ resolve(null);
+ }
+ });
+
+ });
+ };
+
+ UIkit.modal.labels = {
+ ok: 'Ok',
+ cancel: 'Cancel'
+ }
+
+}
+
+function Nav (UIkit) {
+
+ UIkit.component('nav', UIkit.components.accordion.extend({
+
+ name: 'nav',
+
+ defaults: {
+ targets: '> .uk-parent',
+ toggle: '> a',
+ content: 'ul:first'
+ }
+
+ }));
+
+}
+
+function Navbar (UIkit) {
+
+ UIkit.component('navbar', {
+
+ mixins: [Class],
+
+ props: {
+ dropdown: String,
+ mode: 'list',
+ align: String,
+ offset: Number,
+ boundary: Boolean,
+ boundaryAlign: Boolean,
+ clsDrop: String,
+ delayShow: Number,
+ delayHide: Number,
+ dropbar: Boolean,
+ dropbarMode: String,
+ dropbarAnchor: 'jQuery',
+ duration: Number
+ },
+
+ defaults: {
+ dropdown: '.uk-navbar-nav > li',
+ align: !isRtl ? 'left' : 'right',
+ clsDrop: 'uk-navbar-dropdown',
+ mode: undefined,
+ offset: undefined,
+ delayShow: undefined,
+ delayHide: undefined,
+ boundaryAlign: undefined,
+ flip: 'x',
+ boundary: true,
+ dropbar: false,
+ dropbarMode: 'slide',
+ dropbarAnchor: false,
+ duration: 200,
+ },
+
+ computed: {
+
+ boundary: function boundary() {
+ return (this.$props.boundary === true || this.boundaryAlign) ? this.$el : this.$props.boundary
+ },
+
+ pos: function pos() {
+ return ("bottom-" + (this.align));
+ }
+
+ },
+
+ ready: function ready() {
+
+ if (this.dropbar) {
+ UIkit.navbarDropbar(
+ query(this.dropbar, this.$el) || $__default('
').insertAfter(this.dropbarAnchor || this.$el),
+ {clsDrop: this.clsDrop, mode: this.dropbarMode, duration: this.duration, navbar: this}
+ );
+ }
+
+ },
+
+ update: function update() {
+
+ UIkit.drop($__default(((this.dropdown) + " ." + (this.clsDrop)), this.$el), assign({}, this.$props, {boundary: this.boundary, pos: this.pos}));
+
+ },
+
+ events: [
+
+ {
+ name: pointerEnter,
+
+ delegate: function delegate() {
+ return this.dropdown;
+ },
+
+ handler: function handler(ref) {
+ var currentTarget = ref.currentTarget;
+
+ var active = this.getActive();
+ if (active && active.toggle && !isWithin(active.toggle.$el, currentTarget) && !active.tracker.movesTo(active.$el)) {
+ active.hide(false);
+ }
+ }
+
+ }
+
+ ],
+
+ methods: {
+
+ getActive: function getActive() {
+ var active = UIkit.drop.getActive();
+ return active && active.mode !== 'click' && isWithin(active.toggle.$el, this.$el) && active;
+ }
+
+ }
+
+ });
+
+ UIkit.component('navbar-dropbar', {
+
+ mixins: [Class],
+
+ defaults: {
+ clsDrop: '',
+ mode: 'slide',
+ navbar: null,
+ duration: 200
+ },
+
+ init: function init() {
+
+ if (this.mode === 'slide') {
+ this.$addClass('uk-navbar-dropbar-slide');
+ }
+
+ },
+
+ events: [
+
+ {
+ name: 'beforeshow',
+
+ el: function el() {
+ return this.navbar.$el;
+ },
+
+ handler: function handler(_, drop) {
+ var $el = drop.$el;
+ var dir = drop.dir;
+ if (dir === 'bottom' && !isWithin($el, this.$el)) {
+ $el.appendTo(this.$el);
+ drop.show();
+ return false;
+ }
+ }
+ },
+
+ {
+ name: 'mouseleave',
+
+ handler: function handler() {
+ var active = this.navbar.getActive();
+
+ if (active && !this.$el.is(':hover')) {
+ active.hide();
+ }
+ }
+ },
+
+ {
+ name: 'beforeshow',
+
+ handler: function handler(e, ref) {
+ var $el = ref.$el;
+
+ this.clsDrop && $el.addClass(((this.clsDrop) + "-dropbar"));
+ this.transitionTo($el.outerHeight(true));
+ }
+ },
+
+ {
+ name: 'beforehide',
+
+ handler: function handler(e, ref) {
+ var $el = ref.$el;
+
+
+ var active = this.navbar.getActive();
+
+ if (this.$el.is(':hover') && active && active.$el.is($el)) {
+ return false;
+ }
+ }
+ },
+
+ {
+ name: 'hide',
+
+ handler: function handler(e, ref) {
+ var $el = ref.$el;
+
+
+ var active = this.navbar.getActive();
+
+ if (!active || active && active.$el.is($el)) {
+ this.transitionTo(0);
+ }
+ }
+ }
+
+ ],
+
+ methods: {
+
+ transitionTo: function transitionTo(height) {
+ var this$1 = this;
+
+ this.$el.height(this.$el[0].offsetHeight ? this.$el.height() : 0);
+ return Transition.cancel(this.$el).then(function () { return Transition.start(this$1.$el, {height: height}, this$1.duration); });
+ }
+
+ }
+
+ });
+
+}
+
+var scroll;
+
+function Offcanvas (UIkit) {
+
+ UIkit.component('offcanvas', {
+
+ mixins: [Modal],
+
+ args: 'mode',
+
+ props: {
+ content: String,
+ mode: String,
+ flip: Boolean,
+ overlay: Boolean
+ },
+
+ defaults: {
+ content: '.uk-offcanvas-content:first',
+ mode: 'slide',
+ flip: false,
+ overlay: false,
+ clsPage: 'uk-offcanvas-page',
+ clsContainer: 'uk-offcanvas-container',
+ clsPanel: 'uk-offcanvas-bar',
+ clsFlip: 'uk-offcanvas-flip',
+ clsContent: 'uk-offcanvas-content',
+ clsContentAnimation: 'uk-offcanvas-content-animation',
+ clsSidebarAnimation: 'uk-offcanvas-bar-animation',
+ clsMode: 'uk-offcanvas',
+ clsOverlay: 'uk-offcanvas-overlay',
+ selClose: '.uk-offcanvas-close'
+ },
+
+ computed: {
+
+ content: function content() {
+ return $__default(query(this.$props.content, this.$el));
+ },
+
+ clsFlip: function clsFlip() {
+ return this.flip ? this.$props.clsFlip : '';
+ },
+
+ clsOverlay: function clsOverlay() {
+ return this.overlay ? this.$props.clsOverlay : '';
+ },
+
+ clsMode: function clsMode() {
+ return ((this.$props.clsMode) + "-" + (this.mode));
+ },
+
+ clsSidebarAnimation: function clsSidebarAnimation() {
+ return this.mode === 'none' || this.mode === 'reveal' ? '' : this.$props.clsSidebarAnimation;
+ },
+
+ clsContentAnimation: function clsContentAnimation() {
+ return this.mode !== 'push' && this.mode !== 'reveal' ? '' : this.$props.clsContentAnimation
+ },
+
+ transitionElement: function transitionElement() {
+ return this.mode === 'reveal' ? this.panel.parent() : this.panel;
+ }
+
+ },
+
+ update: {
+
+ write: function write() {
+
+ if (this.isToggled()) {
+
+ if (this.overlay || this.clsContentAnimation) {
+ this.content.width(window.innerWidth - this.scrollbarWidth);
+ }
+
+ if (this.overlay) {
+ this.content.height(window.innerHeight);
+ scroll && this.content.scrollTop(scroll.y);
+ }
+
+
+ }
+
+ },
+
+ events: ['resize']
+
+ },
+
+ events: [
+
+ {
+ name: 'beforeshow',
+
+ self: true,
+
+ handler: function handler() {
+
+ scroll = scroll || {x: window.pageXOffset, y: window.pageYOffset};
+
+ if (this.mode === 'reveal' && !this.panel.parent().hasClass(this.clsMode)) {
+ this.panel.wrap('
').parent().addClass(this.clsMode);
+ }
+
+ docElement.css('overflow-y', (!this.clsContentAnimation || this.flip) && this.scrollbarWidth && this.overlay ? 'scroll' : '');
+
+ this.body.addClass(((this.clsContainer) + " " + (this.clsFlip) + " " + (this.clsOverlay))).height();
+ this.content.addClass(this.clsContentAnimation);
+ this.panel.addClass(((this.clsSidebarAnimation) + " " + (this.mode !== 'reveal' ? this.clsMode : '')));
+ this.$el.addClass(this.clsOverlay).css('display', 'block').height();
+
+ }
+ },
+
+ {
+ name: 'beforehide',
+
+ self: true,
+
+ handler: function handler() {
+ this.content.removeClass(this.clsContentAnimation);
+
+ if (this.mode === 'none' || this.getActive() && this.getActive() !== this) {
+ this.panel.trigger(transitionend);
+ }
+ }
+ },
+
+ {
+ name: 'hidden',
+
+ self: true,
+
+ handler: function handler() {
+
+ if (this.mode === 'reveal') {
+ this.panel.unwrap();
+ }
+
+ if (!this.overlay) {
+ scroll = {x: window.pageXOffset, y: window.pageYOffset}
+ }
+
+ this.panel.removeClass(((this.clsSidebarAnimation) + " " + (this.clsMode)));
+ this.$el.removeClass(this.clsOverlay).css('display', '');
+ this.body.removeClass(((this.clsContainer) + " " + (this.clsFlip) + " " + (this.clsOverlay))).scrollTop(scroll.y);
+
+ docElement.css('overflow-y', '');
+ this.content.width('').height('');
+
+ window.scrollTo(scroll.x, scroll.y);
+
+ scroll = null;
+
+ }
+ },
+
+ {
+ name: 'swipeLeft swipeRight',
+
+ handler: function handler(e) {
+
+ if (this.isToggled() && isTouch(e) && (e.type === 'swipeLeft' && !this.flip || e.type === 'swipeRight' && this.flip)) {
+ this.hide();
+ }
+
+ }
+ }
+
+ ]
+
+ });
+
+}
+
+function Responsive (UIkit) {
+
+ UIkit.component('responsive', {
+
+ props: ['width', 'height'],
+
+ init: function init() {
+ this.$addClass('uk-responsive-width');
+ },
+
+ update: {
+
+ write: function write() {
+ if (this.$el.is(':visible') && this.width && this.height) {
+ this.$el.height(Dimensions.fit(
+ {height: this.height, width: this.width},
+ {width: this.$el.parent().width(), height: this.height || this.$el.height()}
+ )['height']);
+ }
+ },
+
+ events: ['load', 'resize']
+
+ }
+
+ });
+
+}
+
+function Scroll (UIkit) {
+
+ UIkit.component('scroll', {
+
+ props: {
+ duration: Number,
+ easing: String,
+ offset: Number
+ },
+
+ defaults: {
+ duration: 1000,
+ easing: 'easeOutExpo',
+ offset: 0
+ },
+
+ methods: {
+
+ scrollToElement: function scrollToElement(el) {
+ var this$1 = this;
+
+
+ // get / set parameters
+ var target = offsetTop($__default(el)) - this.offset,
+ document = docHeight(),
+ viewport = window.innerHeight;
+
+ if (target + viewport > document) {
+ target = document - viewport;
+ }
+
+ // animate to target, fire callback when done
+ $__default('html,body')
+ .stop()
+ .animate({scrollTop: Math.round(target)}, this.duration, this.easing)
+ .promise()
+ .then(function () { return this$1.$el.trigger('scrolled', [this$1]); });
+
+ }
+
+ },
+
+ events: {
+
+ click: function click(e) {
+
+ if (e.isDefaultPrevented()) {
+ return;
+ }
+
+ e.preventDefault();
+ this.scrollToElement($__default(this.$el[0].hash).length ? this.$el[0].hash : 'body');
+ }
+
+ }
+
+ });
+
+ $__default.easing.easeOutExpo = $__default.easing.easeOutExpo || function (x, t, b, c, d) {
+ return (t === d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b;
+ };
+
+}
+
+function Scrollspy (UIkit) {
+
+ UIkit.component('scrollspy', {
+
+ args: 'cls',
+
+ props: {
+ cls: 'list',
+ target: String,
+ hidden: Boolean,
+ offsetTop: Number,
+ offsetLeft: Number,
+ repeat: Boolean,
+ delay: Number
+ },
+
+ defaults: {
+ cls: ['uk-scrollspy-inview'],
+ target: false,
+ hidden: true,
+ offsetTop: 0,
+ offsetLeft: 0,
+ repeat: false,
+ delay: 0,
+ inViewClass: 'uk-scrollspy-inview'
+ },
+
+ init: function init() {
+ this.$emitSync();
+ },
+
+ computed: {
+
+ elements: function elements() {
+ return this.target && $__default(this.target, this.$el) || this.$el;
+ }
+
+ },
+
+ update: [
+
+ {
+
+ write: function write() {
+ if (this.hidden) {
+ this.elements.filter((":not(." + (this.inViewClass) + ")")).css('visibility', 'hidden');
+ }
+ }
+
+ },
+
+ {
+
+ read: function read() {
+ var this$1 = this;
+
+ this.elements.each(function (_, el) {
+
+ if (!el._scrollspy) {
+ var cls = $__default(el).attr('uk-scrollspy-class');
+ el._scrollspy = {toggles: cls && cls.split(',') || this$1.cls};
+ }
+
+ el._scrollspy.show = isInView(el, this$1.offsetTop, this$1.offsetLeft);
+
+ });
+ },
+
+ write: function write() {
+ var this$1 = this;
+
+
+ var index = this.elements.length === 1 ? 1 : 0;
+
+ this.elements.each(function (i, el) {
+
+ var $el = $__default(el), data = el._scrollspy, cls = data.toggles[i] || data.toggles[0];
+
+ if (data.show) {
+
+ if (!data.inview && !data.timer) {
+
+ var show = function () {
+ $el.css('visibility', '')
+ .addClass(this$1.inViewClass)
+ .toggleClass(cls)
+ .trigger('inview');
+
+ data.inview = true;
+ delete data.timer;
+ };
+
+ if (this$1.delay && index) {
+ data.timer = setTimeout(show, this$1.delay * index);
+ } else {
+ show();
+ }
+
+ index++;
+
+ }
+
+ } else {
+
+ if (data.inview && this$1.repeat) {
+
+ if (data.timer) {
+ clearTimeout(data.timer);
+ delete data.timer;
+ }
+
+ $el.removeClass(this$1.inViewClass)
+ .toggleClass(cls)
+ .css('visibility', this$1.hidden ? 'hidden' : '')
+ .trigger('outview');
+
+ data.inview = false;
+
+ }
+
+ }
+
+ });
+
+ },
+
+ events: ['scroll', 'load', 'resize']
+
+ }
+
+ ]
+
+ });
+
+}
+
+function ScrollspyNav (UIkit) {
+
+ UIkit.component('scrollspy-nav', {
+
+ props: {
+ cls: String,
+ closest: String,
+ scroll: Boolean,
+ overflow: Boolean,
+ offset: Number
+ },
+
+ defaults: {
+ cls: 'uk-active',
+ closest: false,
+ scroll: false,
+ overflow: true,
+ offset: 0
+ },
+
+ computed: {
+
+ links: function links() {
+ return this.$el.find('a[href^="#"]').filter(function (i, el) { return el.hash; });
+ },
+
+ elements: function elements() {
+ return this.closest ? this.links.closest(this.closest) : this.links;
+ },
+
+ targets: function targets() {
+ return $__default(this.links.toArray().map(function (el) { return el.hash; }).join(','));
+ }
+
+ },
+
+ update: [
+
+ {
+
+ read: function read() {
+ if (this.scroll) {
+ UIkit.scroll(this.links, {offset: this.offset || 0});
+ }
+ }
+
+ },
+
+ {
+
+ read: function read() {
+ var this$1 = this;
+
+
+ var scroll = window.pageYOffset + this.offset, max = docHeight() - window.innerHeight + this.offset;
+
+ this.active = false;
+
+ this.targets.each(function (i, el) {
+
+ el = $__default(el);
+
+ var top = offsetTop(el), last = i + 1 === this$1.targets.length;
+ if (!this$1.overflow && (i === 0 && top > scroll || last && top + el[0].offsetTop < scroll)) {
+ return false;
+ }
+
+ if (!last && offsetTop(this$1.targets.eq(i + 1)) <= scroll) {
+ return;
+ }
+
+ if (scroll >= max) {
+ for (var j = this$1.targets.length - 1; j > i; j--) {
+ if (isInView(this$1.targets.eq(j))) {
+ el = this$1.targets.eq(j);
+ break;
+ }
+ }
+ }
+
+ return !(this$1.active = toJQuery(this$1.links.filter(("[href=\"#" + (el.attr('id')) + "\"]"))));
+
+ });
+
+ },
+
+ write: function write() {
+
+ this.links.blur();
+ this.elements.removeClass(this.cls);
+
+ if (this.active) {
+ this.$el.trigger('active', [
+ this.active,
+ (this.closest ? this.active.closest(this.closest) : this.active).addClass(this.cls)
+ ]);
+ }
+
+ },
+
+ events: ['scroll', 'load', 'resize']
+
+ }
+
+ ]
+
+ });
+
+}
+
+function Sticky (UIkit) {
+
+ UIkit.component('sticky', {
+
+ mixins: [Class],
+
+ attrs: true,
+
+ props: {
+ top: null,
+ bottom: Boolean,
+ offset: Number,
+ animation: String,
+ clsActive: String,
+ clsInactive: String,
+ clsFixed: String,
+ clsBelow: String,
+ widthElement: 'jQuery',
+ showOnUp: Boolean,
+ media: 'media',
+ target: Number
+ },
+
+ defaults: {
+ top: 0,
+ bottom: false,
+ offset: 0,
+ animation: '',
+ clsActive: 'uk-active',
+ clsInactive: '',
+ clsFixed: 'uk-sticky-fixed',
+ clsBelow: 'uk-sticky-below',
+ widthElement: false,
+ showOnUp: false,
+ media: false,
+ target: false
+ },
+
+ connected: function connected() {
+
+ this.placeholder = $__default('
');
+ this.widthElement = this.$props.widthElement || this.placeholder;
+
+ if (!this.isActive) {
+ this.$addClass(this.clsInactive);
+ }
+ },
+
+ disconnected: function disconnected() {
+
+ if (this.isActive) {
+ this.isActive = false;
+ this.hide();
+ this.$removeClass(this.clsInactive);
+ }
+
+ this.placeholder.remove();
+ this.placeholder = null;
+ this.widthElement = null;
+ },
+
+ ready: function ready() {
+ var this$1 = this;
+
+
+ if (!(this.target && location.hash && window.pageYOffset > 0)) {
+ return;
+ }
+
+ var target = query(location.hash);
+
+ if (target) {
+ requestAnimationFrame(function () {
+
+ var top = offsetTop(target),
+ elTop = offsetTop(this$1.$el),
+ elHeight = this$1.$el[0].offsetHeight;
+
+ if (elTop + elHeight >= top && elTop <= top + target[0].offsetHeight) {
+ window.scrollTo(0, top - elHeight - this$1.target - this$1.offset);
+ }
+
+ });
+ }
+
+ },
+
+ update: [
+
+ {
+
+ write: function write() {
+ var this$1 = this;
+
+
+ var outerHeight = (this.isActive ? this.placeholder : this.$el)[0].offsetHeight, el;
+
+ this.placeholder
+ .css('height', this.$el.css('position') !== 'absolute' ? outerHeight : '')
+ .css(this.$el.css(['marginTop', 'marginBottom', 'marginLeft', 'marginRight']));
+
+ if (!document.documentElement.contains(this.placeholder[0])) {
+ this.placeholder.insertAfter(this.$el).attr('hidden', true);
+ }
+
+ this.width = this.widthElement.attr('hidden', null)[0].offsetWidth;
+ this.widthElement.attr('hidden', !this.isActive);
+
+ this.topOffset = offsetTop(this.isActive ? this.placeholder : this.$el);
+ this.bottomOffset = this.topOffset + outerHeight;
+
+ ['top', 'bottom'].forEach(function (prop) {
+
+ this$1[prop] = this$1.$props[prop];
+
+ if (!this$1[prop]) {
+ return;
+ }
+
+ if ($.isNumeric(this$1[prop])) {
+
+ this$1[prop] = this$1[(prop + "Offset")] + parseFloat(this$1[prop]);
+
+ } else {
+
+ if (isString(this$1[prop]) && this$1[prop].match(/^-?\d+vh$/)) {
+ this$1[prop] = window.innerHeight * parseFloat(this$1[prop]) / 100;
+ } else {
+
+ el = this$1[prop] === true ? this$1.$el.parent() : query(this$1[prop], this$1.$el);
+
+ if (el) {
+ this$1[prop] = offsetTop(el) + el[0].offsetHeight;
+ }
+
+ }
+
+ }
+
+ });
+
+ this.top = Math.max(parseFloat(this.top), this.topOffset) - this.offset;
+ this.bottom = this.bottom && this.bottom - outerHeight;
+ this.inactive = this.media && !window.matchMedia(this.media).matches;
+
+ if (this.isActive) {
+ this.update();
+ }
+ },
+
+ events: ['load', 'resize']
+
+ },
+
+ {
+
+ read: function read() {
+ this.offsetTop = offsetTop(this.$el);
+ },
+
+ write: function write(ref) {
+ var this$1 = this;
+ if ( ref === void 0 ) ref = {};
+ var dir = ref.dir;
+
+
+ var scroll = window.pageYOffset;
+
+ if (scroll < 0 || !this.$el.is(':visible') || this.disabled || this.showOnUp && !dir) {
+ return;
+ }
+
+ if (this.inactive
+ || scroll < this.top
+ || this.showOnUp && (scroll <= this.top || dir ==='down' || dir === 'up' && !this.isActive && scroll <= this.bottomOffset)
+ ) {
+
+ if (!this.isActive) {
+ return;
+ }
+
+ this.isActive = false;
+
+ if (this.animation && scroll > this.topOffset) {
+ Animation.cancel(this.$el).then(function () { return Animation.out(this$1.$el, this$1.animation).then(function () { return this$1.hide(); }); });
+ } else {
+ this.hide();
+ }
+
+ } else if (this.isActive) {
+
+ this.update();
+
+ } else if (this.animation) {
+
+ Animation.cancel(this.$el).then(function () {
+ this$1.show();
+ Animation.in(this$1.$el, this$1.animation);
+ });
+
+ } else {
+ this.show();
+ }
+
+ },
+
+ events: ['scroll']
+
+ } ],
+
+ methods: {
+
+ show: function show() {
+
+ this.isActive = true;
+ this.update();
+ this.$el.trigger('active');
+ this.placeholder.attr('hidden', null);
+
+ },
+
+ hide: function hide() {
+
+ this.$addClass(this.clsInactive);
+ this.$removeClass(this.clsFixed, this.clsActive, this.clsBelow);
+ this.$el.css({position: '', top: '', width: ''}).trigger('inactive');
+ this.placeholder.attr('hidden', true);
+
+ },
+
+ update: function update() {
+
+ var top = Math.max(0, this.offset), scroll = window.pageYOffset, active = scroll > this.top;
+
+ if (this.bottom && scroll > this.bottom - this.offset) {
+ top = this.bottom - scroll;
+ }
+
+ this.$el.css({
+ position: 'fixed',
+ top: (top + "px"),
+ width: this.width
+ });
+
+ this.$addClass(this.clsFixed);
+ this.$toggleClass(this.clsActive, active);
+ this.$toggleClass(this.clsInactive, !active);
+ this.$toggleClass(this.clsBelow, scroll > this.bottomOffset);
+
+ }
+
+ }
+
+ });
+
+}
+
+var svgs = {};
+var parser = new DOMParser();
+function Svg (UIkit) {
+
+ UIkit.component('svg', {
+
+ attrs: true,
+
+ props: {
+ id: String,
+ icon: String,
+ src: String,
+ style: String,
+ width: Number,
+ height: Number,
+ ratio: Number,
+ 'class': String
+ },
+
+ defaults: {
+ ratio: 1,
+ id: false,
+ exclude: ['src'],
+ 'class': ''
+ },
+
+ init: function init() {
+ this.class += ' uk-svg';
+ },
+
+ connected: function connected() {
+ var this$1 = this;
+
+
+ if (!this.icon && this.src && ~this.src.indexOf('#')) {
+
+ var parts = this.src.split('#');
+
+ if (parts.length > 1) {
+ this.src = parts[0];
+ this.icon = parts[1];
+ }
+ }
+
+ this.width = this.$props.width;
+ this.height = this.$props.height;
+
+ this.svg = this.getSvg().then(function (doc) { return promise(function (resolve, reject) { return fastdom.mutate(function () {
+
+ var svg, el;
+
+ if (!doc) {
+ reject('SVG not found.');
+ return;
+ }
+
+ if (!this$1.icon) {
+ el = doc.documentElement.cloneNode(true);
+ } else {
+ svg = doc.getElementById(this$1.icon);
+
+ if (!svg) {
+
+ // fallback if SVG has no symbols
+ if (!doc.querySelector('symbol')) {
+ el = doc.documentElement.cloneNode(true);
+ }
+
+ } else {
+
+ var html = svg.outerHTML;
+
+ // IE workaround
+ if (!html) {
+ var div = document.createElement('div');
+ div.appendChild(svg.cloneNode(true));
+ html = div.innerHTML;
+ }
+
+ html = html
+ .replace(/
/g, 'svg>');
+
+ el = parser.parseFromString(html, 'image/svg+xml').documentElement;
+ }
+
+ }
+
+ if (!el) {
+ reject('SVG not found.');
+ return;
+ }
+
+ var dimensions = el.getAttribute('viewBox'); // jQuery workaround, el.attr('viewBox')
+
+ if (dimensions) {
+ dimensions = dimensions.split(' ');
+ this$1.width = this$1.width || dimensions[2];
+ this$1.height = this$1.height || dimensions[3];
+ }
+
+ this$1.width *= this$1.ratio;
+ this$1.height *= this$1.ratio;
+
+ for (var prop in this$1.$options.props) {
+ if (this$1[prop] && !~this$1.exclude.indexOf(prop)) {
+ el.setAttribute(prop, this$1[prop]);
+ }
+ }
+
+ if (!this$1.id) {
+ el.removeAttribute('id');
+ }
+
+ if (this$1.width && !this$1.height) {
+ el.removeAttribute('height');
+ }
+
+ if (this$1.height && !this$1.width) {
+ el.removeAttribute('width');
+ }
+
+ var root = this$1.$el[0];
+ if (isVoidElement(root) || root.tagName === 'CANVAS') {
+ this$1.$el.attr({hidden: true, id: null});
+ if (root.nextSibling) {
+ root.parentNode.insertBefore(el, root.nextSibling);
+ } else {
+ root.parentNode.appendChild(el);
+ }
+ } else {
+ root.appendChild(el);
+ }
+
+ resolve(el);
+
+ }); }); }).then(null, function () {});
+
+ },
+
+ disconnected: function disconnected() {
+
+ if (isVoidElement(this.$el)) {
+ this.$el.attr({hidden: null, id: this.id || null});
+ }
+
+ if (this.svg) {
+ this.svg.then(function (svg) { return svg && svg.parentNode && svg.parentNode.removeChild(svg); });
+ this.svg = null;
+ }
+ },
+
+ methods: {
+
+ getSvg: function getSvg() {
+ var this$1 = this;
+
+
+ if (!this.src) {
+ return promise.reject();
+ }
+
+ if (svgs[this.src]) {
+ return svgs[this.src];
+ }
+
+ svgs[this.src] = promise(function (resolve, reject) {
+
+ if (this$1.src.lastIndexOf('data:', 0) === 0) {
+ resolve(this$1.parse(decodeURIComponent(this$1.src.split(',')[1])));
+ } else {
+
+ $.ajax(this$1.src, {dataType: 'html'}).then(function (doc) {
+ resolve(this$1.parse(doc));
+ }, function () {
+ reject('SVG not found.');
+ });
+
+ }
+
+ });
+
+ return svgs[this.src];
+
+ },
+
+ parse: function parse(doc) {
+ var parsed = parser.parseFromString(doc, 'image/svg+xml');
+ return parsed.documentElement && parsed.documentElement.nodeName === 'svg' ? parsed : null;
+ }
+
+ }
+
+ });
+
+}
+
+function Switcher (UIkit) {
+
+ UIkit.component('switcher', {
+
+ mixins: [Togglable],
+
+ args: 'connect',
+
+ props: {
+ connect: String,
+ toggle: String,
+ active: Number,
+ swiping: Boolean
+ },
+
+ defaults: {
+ connect: false,
+ toggle: ' > *',
+ active: 0,
+ swiping: true,
+ cls: 'uk-active',
+ clsContainer: 'uk-switcher',
+ attrItem: 'uk-switcher-item',
+ queued: true
+ },
+
+ computed: {
+
+ connects: function connects() {
+ return query(this.connect, this.$el) || $__default(this.$el.next(("." + (this.clsContainer))));
+ },
+
+ toggles: function toggles() {
+ return $__default(this.toggle, this.$el);
+ }
+
+ },
+
+ events: [
+
+ {
+
+ name: 'click',
+
+ delegate: function delegate() {
+ return ((this.toggle) + ":not(.uk-disabled)");
+ },
+
+ handler: function handler(e) {
+ e.preventDefault();
+ this.show(e.currentTarget);
+ }
+
+ },
+
+ {
+ name: 'click',
+
+ el: function el() {
+ return this.connects;
+ },
+
+ delegate: function delegate() {
+ return ("[" + (this.attrItem) + "],[data-" + (this.attrItem) + "]");
+ },
+
+ handler: function handler(e) {
+ e.preventDefault();
+ this.show($__default(e.currentTarget)[e.currentTarget.hasAttribute(this.attrItem) ? 'attr' : 'data'](this.attrItem));
+ }
+ },
+
+ {
+ name: 'swipeRight swipeLeft',
+
+ filter: function filter() {
+ return this.swiping;
+ },
+
+ el: function el() {
+ return this.connects;
+ },
+
+ handler: function handler(e) {
+ if (!isTouch(e)) {
+ return;
+ }
+
+ e.preventDefault();
+ if (!window.getSelection().toString()) {
+ this.show(e.type === 'swipeLeft' ? 'next' : 'previous');
+ }
+ }
+ }
+
+ ],
+
+ update: function update() {
+
+ this.updateAria(this.connects.children());
+ this.show(toJQuery(this.toggles.filter(("." + (this.cls) + ":first"))) || toJQuery(this.toggles.eq(this.active)) || this.toggles.first());
+
+ },
+
+ methods: {
+
+ show: function show(item) {
+ var this$1 = this;
+
+
+ var length = this.toggles.length,
+ prev = this.connects.children(("." + (this.cls))).index(),
+ hasPrev = prev >= 0,
+ index = getIndex(item, this.toggles, prev),
+ dir = item === 'previous' ? -1 : 1,
+ toggle;
+
+ for (var i = 0; i < length; i++, index = (index + dir + length) % length) {
+ if (!this$1.toggles.eq(index).is('.uk-disabled, [disabled]')) {
+ toggle = this$1.toggles.eq(index);
+ break;
+ }
+ }
+
+ if (!toggle || prev >= 0 && toggle.hasClass(this.cls) || prev === index) {
+ return;
+ }
+
+ this.toggles.removeClass(this.cls).attr('aria-expanded', false);
+ toggle.addClass(this.cls).attr('aria-expanded', true);
+
+ if (!hasPrev) {
+ this.toggleNow(this.connects.children((":nth-child(" + (index + 1) + ")")));
+ } else {
+ this.toggleElement(this.connects.children((":nth-child(" + (prev + 1) + "),:nth-child(" + (index + 1) + ")")));
+ }
+ }
+
+ }
+
+ });
+
+}
+
+function Tab (UIkit) {
+
+ UIkit.component('tab', UIkit.components.switcher.extend({
+
+ mixins: [Class],
+
+ name: 'tab',
+
+ props: {
+ media: 'media'
+ },
+
+ defaults: {
+ media: 960,
+ attrItem: 'uk-tab-item'
+ },
+
+ init: function init() {
+
+ var cls = this.$hasClass('uk-tab-left') && 'uk-tab-left' || this.$hasClass('uk-tab-right') && 'uk-tab-right';
+
+ if (cls) {
+ UIkit.toggle(this.$el, {cls: cls, mode: 'media', media: this.media});
+ }
+ }
+
+ }));
+
+}
+
+function Toggle (UIkit) {
+
+ UIkit.component('toggle', {
+
+ mixins: [UIkit.mixin.togglable],
+
+ args: 'target',
+
+ props: {
+ href: String,
+ target: null,
+ mode: 'list',
+ media: 'media'
+ },
+
+ defaults: {
+ href: false,
+ target: false,
+ mode: 'click',
+ queued: true,
+ media: false
+ },
+
+ computed: {
+
+ target: function target() {
+ return query(this.$props.target || this.href, this.$el) || this.$el;
+ }
+
+ },
+
+ events: [
+
+ {
+
+ name: (pointerEnter + " " + pointerLeave),
+
+ filter: function filter() {
+ return ~this.mode.indexOf('hover');
+ },
+
+ handler: function handler(e) {
+ if (!isTouch(e)) {
+ this.toggle(("toggle" + (e.type === pointerEnter ? 'show' : 'hide')));
+ }
+ }
+
+ },
+
+ {
+
+ name: 'click',
+
+ filter: function filter() {
+ return ~this.mode.indexOf('click') || hasTouch;
+ },
+
+ handler: function handler(e) {
+
+ if (!isTouch(e) && !~this.mode.indexOf('click')) {
+ return;
+ }
+
+ // TODO better isToggled handling
+ var link = $__default(e.target).closest('a[href]');
+ if ($__default(e.target).closest('a[href="#"], button').length
+ || link.length && (
+ this.cls
+ || !this.target.is(':visible')
+ || link.attr('href')[0] === '#' && this.target.is(link.attr('href'))
+ )
+ ) {
+ e.preventDefault();
+ }
+
+ this.toggle();
+ }
+
+ }
+ ],
+
+ update: {
+
+ write: function write() {
+
+ if (!~this.mode.indexOf('media') || !this.media) {
+ return;
+ }
+
+ var toggled = this.isToggled(this.target);
+ if (window.matchMedia(this.media).matches ? !toggled : toggled) {
+ this.toggle();
+ }
+
+ },
+
+ events: ['load', 'resize']
+
+ },
+
+ methods: {
+
+ toggle: function toggle(type) {
+
+ var event = $.Event(type || 'toggle');
+ this.target.triggerHandler(event, [this]);
+
+ if (!event.isDefaultPrevented()) {
+ this.toggleElement(this.target);
+ }
+ }
+
+ }
+
+ });
+
+}
+
+function Leader (UIkit) {
+
+ UIkit.component('leader', {
+
+ mixins: [Class],
+
+ props: {
+ fill: String,
+ media: 'media'
+ },
+
+ defaults: {
+ fill: '',
+ media: false,
+ clsWrapper: 'uk-leader-fill',
+ clsHide: 'uk-leader-hide',
+ attrFill: 'data-fill'
+ },
+
+ computed: {
+
+ fill: function fill() {
+ return this.$props.fill || getCssVar('leader-fill');
+ }
+
+ },
+
+ connected: function connected() {
+ this.wrapper = this.$el.wrapInner(("")).children().first();
+ },
+
+ disconnected: function disconnected() {
+ this.wrapper.contents().unwrap();
+ },
+
+ update: [
+
+ {
+
+ read: function read() {
+ var prev = this._width;
+ this._width = Math.floor(this.$el[0].offsetWidth / 2);
+ this._changed = prev !== this._width;
+ this._hide = this.media && !window.matchMedia(this.media).matches;
+ },
+
+ write: function write() {
+
+ this.wrapper.toggleClass(this.clsHide, this._hide);
+
+ if (this._changed) {
+ this.wrapper.attr(this.attrFill, new Array(this._width).join(this.fill));
+ }
+
+ },
+
+ events: ['load', 'resize']
+
+ }
+ ]
+ });
+
+}
+
+function core (UIkit) {
+
+ var scroll = 0, started = 0;
+
+ on(window, 'load resize', UIkit.update);
+ on(window, 'scroll', function (e) {
+ e.dir = scroll < window.pageYOffset ? 'down' : 'up';
+ scroll = window.pageYOffset;
+ UIkit.update(e);
+ });
+
+ on(document, animationstart, function (ref) {
+ var target = ref.target;
+
+ if ((getStyle(target, 'animationName') || '').match(/^uk-.*(left|right)/)) {
+ started++;
+ document.body.style.overflowX = 'hidden';
+ setTimeout(function () {
+ if (!--started) {
+ document.body.style.overflowX = '';
+ }
+ }, toMs(getStyle(target, 'animationDuration')) + 100);
+ }
+ }, true);
+
+ // core components
+ UIkit.use(Toggle);
+ UIkit.use(Accordion);
+ UIkit.use(Alert);
+ UIkit.use(Cover);
+ UIkit.use(Drop);
+ UIkit.use(Dropdown);
+ UIkit.use(FormCustom);
+ UIkit.use(HeightMatch);
+ UIkit.use(HeightViewport);
+ UIkit.use(Hover);
+ UIkit.use(Margin);
+ UIkit.use(Gif);
+ UIkit.use(Grid);
+ UIkit.use(Leader);
+ UIkit.use(Modal$1);
+ UIkit.use(Nav);
+ UIkit.use(Navbar);
+ UIkit.use(Offcanvas);
+ UIkit.use(Responsive);
+ UIkit.use(Scroll);
+ UIkit.use(Scrollspy);
+ UIkit.use(ScrollspyNav);
+ UIkit.use(Sticky);
+ UIkit.use(Svg);
+ UIkit.use(Icon);
+ UIkit.use(Switcher);
+ UIkit.use(Tab);
+
+}
+
+UIkit.version = '3.0.0-beta.24';
+
+mixin(UIkit);
+core(UIkit);
+
+function plugin(UIkit) {
+
+ if (plugin.installed) {
+ return;
+ }
+
+ UIkit.component('countdown', {
+
+ mixins: [UIkit.mixin.class],
+
+ attrs: true,
+
+ props: {
+ date: String,
+ clsWrapper: String
+ },
+
+ defaults: {
+ date: '',
+ clsWrapper: '.uk-countdown-%unit%'
+ },
+
+ computed: {
+
+ date: function date() {
+ return Date.parse(this.$props.date);
+ },
+
+ days: function days() {
+ return this.$el.find(this.clsWrapper.replace('%unit%', 'days'));
+ },
+
+ hours: function hours() {
+ return this.$el.find(this.clsWrapper.replace('%unit%', 'hours'));
+ },
+
+ minutes: function minutes() {
+ return this.$el.find(this.clsWrapper.replace('%unit%', 'minutes'));
+ },
+
+ seconds: function seconds() {
+ return this.$el.find(this.clsWrapper.replace('%unit%', 'seconds'));
+ },
+
+ units: function units() {
+ var this$1 = this;
+
+ return ['days', 'hours', 'minutes', 'seconds'].filter(function (unit) { return this$1[unit].length; });
+ }
+
+ },
+
+ connected: function connected() {
+ this.start();
+ },
+
+ disconnected: function disconnected() {
+ var this$1 = this;
+
+ this.stop();
+ this.units.forEach(function (unit) { return this$1[unit].empty(); });
+ },
+
+ update: {
+
+ write: function write() {
+ var this$1 = this;
+
+
+ var timespan = getTimeSpan(this.date);
+
+ if (timespan.total <= 0) {
+
+ this.stop();
+
+ timespan.days
+ = timespan.hours
+ = timespan.minutes
+ = timespan.seconds
+ = 0;
+ }
+
+ this.units.forEach(function (unit) {
+
+ var digits = String(Math.floor(timespan[unit]));
+
+ digits = digits.length < 2 ? ("0" + digits) : digits;
+
+ if (this$1[unit].text() !== digits) {
+ var el = this$1[unit];
+ digits = digits.split('');
+
+ if (digits.length !== el.children().length) {
+ el.empty().append(digits.map(function () { return ''; }).join(''));
+ }
+
+ digits.forEach(function (digit, i) { return el[0].childNodes[i].innerText = digit; });
+ }
+
+ });
+
+ }
+
+ },
+
+ methods: {
+
+ start: function start() {
+ var this$1 = this;
+
+
+ this.stop();
+
+ if (this.date && this.units.length) {
+ this.$emit();
+ this.timer = setInterval(function () { return this$1.$emit(); }, 1000);
+ }
+
+ },
+
+ stop: function stop() {
+
+ if (this.timer) {
+ clearInterval(this.timer);
+ this.timer = null;
+ }
+
+ }
+
+ }
+
+ });
+
+ function getTimeSpan(date) {
+
+ var total = date - Date.now();
+
+ return {
+ total: total,
+ seconds: total / 1000 % 60,
+ minutes: total / 1000 / 60 % 60,
+ hours: total / 1000 / 60 / 60 % 24,
+ days: total / 1000 / 60 / 60 / 24
+ };
+ }
+
+}
+
+function plugin$1(UIkit) {
+
+ if (plugin$1.installed) {
+ return;
+ }
+
+ var ref = UIkit.util;
+ var $ = ref.$;
+ var ajax = ref.ajax;
+ var assign = ref.assign;
+ var doc = ref.doc;
+ var Event = ref.Event;
+ var Dimensions = ref.Dimensions;
+ var getIndex = ref.getIndex;
+ var Transition = ref.Transition;
+
+ UIkit.component('lightbox', {
+
+ name: 'lightbox',
+
+ props: {
+ toggle: String,
+ duration: Number,
+ inverse: Boolean
+ },
+
+ defaults: {
+ toggle: 'a',
+ duration: 400,
+ dark: false,
+ attrItem: 'uk-lightbox-item',
+ items: [],
+ index: 0
+ },
+
+ computed: {
+
+ toggles: function toggles() {
+ var this$1 = this;
+
+ return $(this.toggle, this.$el).each(function (_, el) { return this$1.items.push({
+ source: el.getAttribute('href'),
+ title: el.getAttribute('title'),
+ type: el.getAttribute('type')
+ }); });
+ }
+
+ },
+
+ events: [
+
+ {
+
+ name: 'click',
+
+ delegate: function delegate() {
+ return ((this.toggle) + ":not(.uk-disabled)");
+ },
+
+ handler: function handler(e) {
+ e.preventDefault();
+ this.show(this.toggles.index(e.currentTarget));
+ }
+
+ },
+
+ {
+
+ name: 'showitem',
+
+ handler: function handler(e) {
+
+ var item = this.getItem();
+
+ if (item.content) {
+ this.$update();
+ e.stopImmediatePropagation();
+ }
+ }
+
+ }
+
+ ],
+
+ update: {
+
+ write: function write() {
+ var this$1 = this;
+
+
+ var item = this.getItem();
+
+ if (!this.modal || !item.content) {
+ return;
+ }
+
+ var panel = this.modal.panel,
+ dim = {width: panel.width(), height: panel.height()},
+ max = {
+ width: window.innerWidth - (panel.outerWidth(true) - dim.width),
+ height: window.innerHeight - (panel.outerHeight(true) - dim.height)
+ },
+ newDim = Dimensions.fit({width: item.width, height: item.height}, max);
+
+ Transition.stop(panel);
+ Transition.stop(this.modal.content);
+
+ if (this.modal.content) {
+ this.modal.content.remove();
+ }
+
+ this.modal.content = $(item.content).css('opacity', 0).appendTo(panel);
+ panel.css(dim);
+
+ Transition.start(panel, newDim, this.duration).then(function () {
+ Transition.start(this$1.modal.content, {opacity: 1}, 400).then(function () {
+ panel.find('[uk-transition-hide]').show();
+ panel.find('[uk-transition-show]').hide();
+ });
+ });
+
+ },
+
+ events: ['resize']
+
+ },
+
+ methods: {
+
+ show: function show(index) {
+ var this$1 = this;
+
+
+ this.index = getIndex(index, this.items, this.index);
+
+ if (!this.modal) {
+ this.modal = UIkit.modal.dialog("\n \n \n ", {center: true});
+ this.modal.$el.css('overflow', 'hidden').addClass('uk-modal-lightbox');
+ this.modal.panel.css({width: 200, height: 200});
+ this.modal.caption = $('').appendTo(this.modal.panel);
+
+ if (this.items.length > 1) {
+ $(("\n ")).appendTo(this.modal.panel.addClass('uk-slidenav-position'));
+ }
+
+ this.modal.$el
+ .on('hidden', this.hide)
+ .on('click', ("[" + (this.attrItem) + "]"), function (e) {
+ e.preventDefault();
+ this$1.show($(e.currentTarget).attr(this$1.attrItem));
+ }).on('swipeRight swipeLeft', function (e) {
+ e.preventDefault();
+ if (!window.getSelection().toString()) {
+ this$1.show(e.type === 'swipeLeft' ? 'next' : 'previous');
+ }
+ });
+ }
+
+ this.modal.panel.find('[uk-transition-hide]').hide();
+ this.modal.panel.find('[uk-transition-show]').show();
+
+ this.modal.content && this.modal.content.remove();
+ this.modal.caption.text(this.getItem().title);
+
+ var event = Event('showitem');
+ this.$el.trigger(event);
+ if (!event.isImmediatePropagationStopped()) {
+ this.setError(this.getItem());
+ }
+
+ doc.on(("keydown." + (this.$options.name)), function (e) {
+ switch (e.keyCode) {
+ case 37:
+ this$1.show('previous');
+ break;
+ case 39:
+ this$1.show('next');
+ break;
+ }
+ });
+ },
+
+ hide: function hide() {
+ var this$1 = this;
+
+
+ doc.off(("keydown." + (this.$options.name)));
+
+ this.modal.hide().then(function () {
+ this$1.modal.$destroy(true);
+ this$1.modal = null;
+ });
+ },
+
+ getItem: function getItem() {
+ return this.items[this.index] || {source: '', title: '', type: ''};
+ },
+
+ setItem: function setItem(item, content, width, height) {
+ if ( width === void 0 ) width = 200;
+ if ( height === void 0 ) height = 200;
+
+ assign(item, {content: content, width: width, height: height});
+ this.$update();
+ },
+
+ setError: function setError(item) {
+ this.setItem(item, 'Loading resource failed!
', 400, 300);
+ }
+
+ }
+
+ });
+
+ UIkit.mixin({
+
+ events: {
+
+ showitem: function showitem(e) {
+ var this$1 = this;
+
+
+ var item = this.getItem();
+
+ if (item.type !== 'image' && item.source && !item.source.match(/\.(jp(e)?g|png|gif|svg)$/i)) {
+ return;
+ }
+
+ var img = new Image();
+
+ img.onerror = function () { return this$1.setError(item); };
+ img.onload = function () { return this$1.setItem(item, ("
"), img.width, img.height); };
+
+ img.src = item.source;
+
+ e.stopImmediatePropagation();
+ }
+
+ }
+
+ }, 'lightbox');
+
+ UIkit.mixin({
+
+ events: {
+
+ showitem: function showitem(e) {
+ var this$1 = this;
+
+
+ var item = this.getItem();
+
+ if (item.type !== 'video' && item.source && !item.source.match(/\.(mp4|webm|ogv)$/i)) {
+ return;
+ }
+
+ var video = $('')
+ .on('loadedmetadata', function () { return this$1.setItem(item, video.attr({width: video[0].videoWidth, height: video[0].videoHeight}), video[0].videoWidth, video[0].videoHeight); })
+ .attr('src', item.source);
+
+ e.stopImmediatePropagation();
+ }
+
+ }
+
+ }, 'lightbox');
+
+ UIkit.mixin({
+
+ events: {
+
+ showitem: function showitem(e) {
+ var this$1 = this;
+
+
+ var item = this.getItem(), matches;
+
+ if (!(matches = item.source.match(/\/\/.*?youtube\.[a-z]+\/watch\?v=([^&]+)&?(.*)/)) && !(item.source.match(/youtu\.be\/(.*)/))) {
+ return;
+ }
+
+ var id = matches[1],
+ img = new Image(),
+ lowres = false,
+ setIframe = function (width, height) { return this$1.setItem(item, (""), width, height); };
+
+ img.onerror = function () { return setIframe(640, 320); };
+ img.onload = function () {
+ //youtube default 404 thumb, fall back to lowres
+ if (img.width === 120 && img.height === 90) {
+ if (!lowres) {
+ lowres = true;
+ img.src = "//img.youtube.com/vi/" + id + "/0.jpg";
+ } else {
+ setIframe(640, 320);
+ }
+ } else {
+ setIframe(img.width, img.height);
+ }
+ };
+
+ img.src = "//img.youtube.com/vi/" + id + "/maxresdefault.jpg";
+
+ e.stopImmediatePropagation();
+ }
+
+ }
+
+ }, 'lightbox');
+
+ UIkit.mixin({
+
+ events: {
+
+ showitem: function showitem(e) {
+ var this$1 = this;
+
+
+ var item = this.getItem(), matches;
+
+ if (!(matches = item.source.match(/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/))) {
+ return;
+ }
+
+ var id = matches[2],
+ setIframe = function (width, height) { return this$1.setItem(item, (""), width, height); };
+
+ ajax({type: 'GET', url: ("http://vimeo.com/api/oembed.json?url=" + (encodeURI(item.source))), jsonp: 'callback', dataType: 'jsonp'}).then(function (res) { return setIframe(res.width, res.height); });
+
+ e.stopImmediatePropagation();
+ }
+
+ }
+
+ }, 'lightbox');
+
+}
+
+function plugin$2(UIkit) {
+
+ if (plugin$2.installed) {
+ return;
+ }
+
+ var ref = UIkit.util;
+ var $ = ref.$;
+ var each = ref.each;
+ var pointerEnter = ref.pointerEnter;
+ var pointerLeave = ref.pointerLeave;
+ var Transition = ref.Transition;
+ var containers = {};
+
+ UIkit.component('notification', {
+
+ functional: true,
+
+ args: ['message', 'status'],
+
+ defaults: {
+ message: '',
+ status: '',
+ timeout: 5000,
+ group: null,
+ pos: 'top-center',
+ onClose: null,
+ clsClose: 'uk-notification-close',
+ clsMsg: 'uk-notification-message'
+ },
+
+ created: function created() {
+
+ if (!containers[this.pos]) {
+ containers[this.pos] = $(("")).appendTo(UIkit.container);
+ }
+
+ this.$mount($(
+ ("\n
\n
" + (this.message) + "
\n
")
+ ).appendTo(containers[this.pos].show())[0]);
+
+ },
+
+ ready: function ready() {
+ var this$1 = this;
+
+
+ var marginBottom = parseInt(this.$el.css('margin-bottom'), 10);
+
+ Transition.start(
+ this.$el.css({opacity: 0, marginTop: -1 * this.$el.outerHeight(), marginBottom: 0}),
+ {opacity: 1, marginTop: 0, marginBottom: marginBottom}
+ ).then(function () {
+ if (this$1.timeout) {
+ this$1.timer = setTimeout(this$1.close, this$1.timeout);
+ this$1.$el
+ .on(pointerEnter, function () { return clearTimeout(this$1.timer); })
+ .on(pointerLeave, function () { return this$1.timer = setTimeout(this$1.close, this$1.timeout); });
+ }
+ });
+
+ },
+
+ events: {
+
+ click: function click(e) {
+ if ($(e.target).closest('a[href="#"]').length) {
+ e.preventDefault();
+ }
+ this.close();
+ }
+
+ },
+
+ methods: {
+
+ close: function close(immediate) {
+ var this$1 = this;
+
+
+ var remove = function () {
+
+ this$1.onClose && this$1.onClose();
+ this$1.$el.trigger('close', [this$1]).remove();
+
+ if (!containers[this$1.pos].children().length) {
+ containers[this$1.pos].hide();
+ }
+
+ };
+
+ if (this.timer) {
+ clearTimeout(this.timer);
+ }
+
+ if (immediate) {
+ remove();
+ } else {
+ Transition.start(this.$el, {opacity: 0, marginTop: -1 * this.$el.outerHeight(), marginBottom: 0}).then(remove)
+ }
+ }
+
+ }
+
+ });
+
+ UIkit.notification.closeAll = function (group, immediate) {
+ each(UIkit.instances, function (_, component) {
+ if (component.$options.name === 'notification' && (!group || group === component.group)) {
+ component.close(immediate);
+ }
+ })
+ };
+
+}
+
+function plugin$3(UIkit) {
+
+ if (plugin$3.installed) {
+ return;
+ }
+
+ var mixin = UIkit.mixin;
+ var util = UIkit.util;
+ var $ = util.$;
+ var assign = util.assign;
+ var doc = util.docElement;
+ var docHeight = util.docHeight;
+ var getDimensions = util.getDimensions;
+ var isWithin = util.isWithin;
+ var on = util.on;
+ var off = util.off;
+ var offsetTop = util.offsetTop;
+ var pointerDown = util.pointerDown;
+ var pointerMove = util.pointerMove;
+ var pointerUp = util.pointerUp;
+ var promise = util.promise;
+ var win = util.win;
+
+ UIkit.component('sortable', {
+
+ mixins: [mixin.class],
+
+ props: {
+ group: String,
+ animation: Number,
+ threshold: Number,
+ clsItem: String,
+ clsPlaceholder: String,
+ clsDrag: String,
+ clsDragState: String,
+ clsBase: String,
+ clsNoDrag: String,
+ clsEmpty: String,
+ clsCustom: String,
+ handle: String
+ },
+
+ defaults: {
+ group: false,
+ animation: 150,
+ threshold: 5,
+ clsItem: 'uk-sortable-item',
+ clsPlaceholder: 'uk-sortable-placeholder',
+ clsDrag: 'uk-sortable-drag',
+ clsDragState: 'uk-drag',
+ clsBase: 'uk-sortable',
+ clsNoDrag: 'uk-sortable-nodrag',
+ clsEmpty: 'uk-sortable-empty',
+ clsCustom: '',
+ handle: false
+ },
+
+ init: function init() {
+ var this$1 = this;
+
+ ['init', 'start', 'move', 'end'].forEach(function (key) {
+ var fn = this$1[key];
+ this$1[key] = function (e) {
+ e = e.originalEvent || e;
+ this$1.scrollY = window.scrollY;
+ var ref = e.touches && e.touches[0] || e;
+ var pageX = ref.pageX;
+ var pageY = ref.pageY;
+ this$1.pos = {x: pageX, y: pageY};
+
+ fn(e);
+ }
+ });
+ },
+
+ events: ( obj = {}, obj[pointerDown] = 'init', obj ),
+
+ update: {
+
+ write: function write() {
+ var this$1 = this;
+
+
+ if (this.clsEmpty) {
+ this.$toggleClass(this.clsEmpty, !this.$el.children().length);
+ }
+
+ if (!this.drag) {
+ return;
+ }
+
+ this.drag.offset({top: this.pos.y + this.origin.top, left: this.pos.x + this.origin.left});
+
+ var top = offsetTop(this.drag), bottom = top + this.drag[0].offsetHeight;
+
+ if (top > 0 && top < this.scrollY) {
+ setTimeout(function () { return win.scrollTop(this$1.scrollY - 5); }, 5);
+ } else if (bottom < docHeight() && bottom > window.innerHeight + this.scrollY) {
+ setTimeout(function () { return win.scrollTop(this$1.scrollY + 5); }, 5);
+ }
+
+ }
+
+ },
+
+ methods: {
+
+ init: function init(e) {
+
+ var target = $(e.target), placeholder = this.$el.children().filter(function (i, el) { return isWithin(e.target, el); });
+
+ if (!placeholder.length
+ || target.is(':input')
+ || this.handle && !isWithin(target, this.handle)
+ || e.button && e.button !== 0
+ || isWithin(target, ("." + (this.clsNoDrag)))
+ ) {
+ return;
+ }
+
+ e.preventDefault();
+ e.stopPropagation();
+
+ this.touched = [this];
+ this.placeholder = placeholder;
+ this.origin = assign({target: target, index: this.placeholder.index()}, this.pos);
+
+ doc.on(pointerMove, this.move);
+ doc.on(pointerUp, this.end);
+ win.on('scroll', this.scroll);
+
+ if (!this.threshold) {
+ this.start(e);
+ }
+
+ },
+
+ start: function start(e) {
+
+ this.drag = $(this.placeholder[0].outerHTML.replace(/^$/i, 'div>'))
+ .attr('uk-no-boot', '')
+ .addClass(((this.clsDrag) + " " + (this.clsCustom)))
+ .css({
+ boxSizing: 'border-box',
+ width: this.placeholder.outerWidth(),
+ height: this.placeholder.outerHeight()
+ })
+ .css(this.placeholder.css(['paddingLeft', 'paddingRight', 'paddingTop', 'paddingBottom']))
+ .appendTo(UIkit.container);
+
+ this.drag.children().first().height(this.placeholder.children().height());
+
+ var ref = getDimensions(this.placeholder);
+ var left = ref.left;
+ var top = ref.top;
+ assign(this.origin, {left: left - this.pos.x, top: top - this.pos.y});
+
+ this.placeholder.addClass(this.clsPlaceholder);
+ this.$el.children().addClass(this.clsItem);
+ doc.addClass(this.clsDragState);
+
+ this.$el.trigger('start', [this, this.placeholder, this.drag]);
+
+ this.move(e);
+ },
+
+ move: function move(e) {
+
+ if (!this.drag) {
+
+ if (Math.abs(this.pos.x - this.origin.x) > this.threshold || Math.abs(this.pos.y - this.origin.y) > this.threshold) {
+ this.start(e);
+ }
+
+ return;
+ }
+
+ this.$emit();
+
+ var target = e.type === 'mousemove' ? e.target : document.elementFromPoint(this.pos.x - document.body.scrollLeft, this.pos.y - document.body.scrollTop),
+ sortable = getSortable(target),
+ previous = getSortable(this.placeholder[0]),
+ move = sortable !== previous;
+
+ if (!sortable || isWithin(target, this.placeholder) || move && (!sortable.group || sortable.group !== previous.group)) {
+ return;
+ }
+
+ target = sortable.$el.is(target.parentNode) && $(target) || sortable.$el.children().has(target);
+
+ if (move) {
+ previous.remove(this.placeholder);
+ } else if (!target.length) {
+ return;
+ }
+
+ sortable.insert(this.placeholder, target);
+
+ if (!~this.touched.indexOf(sortable)) {
+ this.touched.push(sortable);
+ }
+
+ },
+
+ scroll: function scroll() {
+ var scroll = window.scrollY;
+ if (scroll !== this.scrollY) {
+ this.pos.y += scroll - this.scrollY;
+ this.scrollY = scroll;
+ this.$emit();
+ }
+ },
+
+ end: function end(e) {
+
+ doc.off(pointerMove, this.move);
+ doc.off(pointerUp, this.end);
+ win.off('scroll', this.scroll);
+
+ if (!this.drag) {
+
+ if (e.type !== 'mouseup' && isWithin(e.target, 'a[href]')) {
+ location.href = $(e.target).closest('a[href]').attr('href');
+ }
+
+ return;
+ }
+
+ preventClick();
+
+ var sortable = getSortable(this.placeholder[0]);
+
+ if (this === sortable) {
+ if (this.origin.index !== this.placeholder.index()) {
+ this.$el.trigger('change', [this, this.placeholder, 'moved']);
+ }
+ } else {
+ sortable.$el.trigger('change', [sortable, this.placeholder, 'added']);
+ this.$el.trigger('change', [this, this.placeholder, 'removed']);
+ }
+
+ this.$el.trigger('stop', [this]);
+
+ this.drag.remove();
+ this.drag = null;
+
+ var classes = this.touched.map(function (sortable) { return ((sortable.clsPlaceholder) + " " + (sortable.clsItem)); }).join(' ');
+ this.touched.forEach(function (sortable) { return sortable.$el.children().removeClass(classes); });
+
+ doc.removeClass(this.clsDragState);
+
+ },
+
+ insert: function insert(element, target) {
+ var this$1 = this;
+
+
+ this.$el.children().addClass(this.clsItem);
+
+ var insert = function () {
+
+ if (target.length) {
+
+ if (!this$1.$el.has(element).length || element.prevAll().filter(target).length) {
+ element.insertBefore(target);
+ } else {
+ element.insertAfter(target);
+ }
+
+ } else {
+ this$1.$el.append(element);
+ }
+
+ };
+
+ if (this.animation) {
+ this.animate(insert);
+ } else {
+ insert();
+ }
+
+ },
+
+ remove: function remove(element) {
+
+ if (!this.$el.has(element).length) {
+ return;
+ }
+
+ if (this.animation) {
+ this.animate(function () { return element.detach(); });
+ } else {
+ element.detach();
+ }
+
+ },
+
+ animate: function animate(action) {
+ var this$1 = this;
+
+
+ var props = [],
+ children = this.$el.children().toArray().map(function (el) {
+ el = $(el);
+ props.push(assign({
+ position: 'absolute',
+ pointerEvents: 'none',
+ width: el.outerWidth(),
+ height: el.outerHeight()
+ }, el.position()));
+ return el;
+ }),
+ reset = {position: '', width: '', height: '', pointerEvents: '', top: '', left: ''};
+
+ action();
+
+ children.forEach(function (el) { return el.stop(); });
+ this.$el.children().css(reset);
+ this.$updateSync('update', true);
+
+ this.$el.css('min-height', this.$el.height());
+
+ var positions = children.map(function (el) { return el.position(); });
+ promise.all(children.map(function (el, i) { return el.css(props[i]).animate(positions[i], this$1.animation).promise(); }))
+ .then(function () {
+ this$1.$el.css('min-height', '').children().css(reset);
+ this$1.$updateSync('update', true);
+ });
+
+ }
+
+ }
+
+ });
+ var obj;
+
+ function getSortable(element) {
+ return UIkit.getComponent(element, 'sortable') || element.parentNode && getSortable(element.parentNode);
+ }
+
+ function preventClick() {
+ var timer = setTimeout(function () { return doc.trigger('click'); }, 0),
+ listener = function (e) {
+
+ e.preventDefault();
+ e.stopPropagation();
+
+ clearTimeout(timer);
+ off(doc, 'click', listener, true);
+ };
+
+ on(doc, 'click', listener, true);
+ }
+
+}
+
+function plugin$4(UIkit) {
+
+ if (plugin$4.installed) {
+ return;
+ }
+
+ var util = UIkit.util;
+ var mixin = UIkit.mixin;
+ var $ = util.$;
+ var doc = util.doc;
+ var fastdom = util.fastdom;
+ var flipPosition = util.flipPosition;
+ var isTouch = util.isTouch;
+ var isWithin = util.isWithin;
+ var pointerDown = util.pointerDown;
+ var pointerEnter = util.pointerEnter;
+ var pointerLeave = util.pointerLeave;
+
+ var actives = [];
+
+ UIkit.component('tooltip', {
+
+ attrs: true,
+
+ mixins: [mixin.togglable, mixin.position],
+
+ props: {
+ delay: Number,
+ container: Boolean,
+ title: String
+ },
+
+ defaults: {
+ pos: 'top',
+ title: '',
+ delay: 0,
+ animation: ['uk-animation-scale-up'],
+ duration: 100,
+ cls: 'uk-active',
+ clsPos: 'uk-tooltip',
+ container: true,
+ },
+
+ computed: {
+
+ container: function container() {
+ return $(this.$props.container === true && UIkit.container || this.$props.container || UIkit.container);
+ }
+
+ },
+
+ connected: function connected() {
+ var this$1 = this;
+
+ fastdom.mutate(function () { return this$1.$el.removeAttr('title').attr('aria-expanded', false); });
+ },
+
+ disconnected: function disconnected() {
+ this.hide();
+ },
+
+ methods: {
+
+ show: function show() {
+ var this$1 = this;
+
+
+ if (~actives.indexOf(this)) {
+ return;
+ }
+
+ actives.forEach(function (active) { return active.hide(); });
+ actives.push(this);
+
+ doc.on(("click." + (this.$options.name)), function (e) {
+ if (!isWithin(e.target, this$1.$el)) {
+ this$1.hide();
+ }
+ });
+
+ clearTimeout(this.showTimer);
+
+ this.tooltip = $(("")).appendTo(this.container);
+
+ this.$el.attr('aria-expanded', true);
+
+ this.positionAt(this.tooltip, this.$el);
+ this.origin = this.getAxis() === 'y' ? ((flipPosition(this.dir)) + "-" + (this.align)) : ((this.align) + "-" + (flipPosition(this.dir)));
+
+ this.showTimer = setTimeout(function () {
+ this$1.toggleElement(this$1.tooltip, true);
+
+ this$1.hideTimer = setInterval(function () {
+ if (!this$1.$el.is(':visible')) {
+ this$1.hide();
+ }
+ }, 150);
+
+ }, this.delay);
+ },
+
+ hide: function hide() {
+
+ var index = actives.indexOf(this);
+
+ if (!~index || this.$el.is('input') && this.$el[0] === document.activeElement) {
+ return;
+ }
+
+ actives.splice(index, 1);
+
+ clearTimeout(this.showTimer);
+ clearInterval(this.hideTimer);
+ this.$el.attr('aria-expanded', false);
+ this.toggleElement(this.tooltip, false);
+ this.tooltip && this.tooltip.remove();
+ this.tooltip = false;
+ doc.off(("click." + (this.$options.name)));
+
+ }
+
+ },
+
+ events: ( obj = {
+
+ 'blur': 'hide'
+
+ }, obj[("focus " + pointerEnter + " " + pointerDown)] = function (e) {
+ if (e.type !== pointerDown || !isTouch(e)) {
+ this.show();
+ }
+ }, obj[pointerLeave] = function (e) {
+ if (!isTouch(e)) {
+ this.hide()
+ }
+ }, obj )
+
+ });
+ var obj;
+
+}
+
+function plugin$5(UIkit) {
+
+ if (plugin$5.installed) {
+ return;
+ }
+
+ var ref = UIkit.util;
+ var $ = ref.$;
+ var ajax = ref.ajax;
+ var on = ref.on;
+
+ UIkit.component('upload', {
+
+ props: {
+ allow: String,
+ clsDragover: String,
+ concurrent: Number,
+ dataType: String,
+ mime: String,
+ msgInvalidMime: String,
+ msgInvalidName: String,
+ multiple: Boolean,
+ name: String,
+ params: Object,
+ type: String,
+ url: String
+ },
+
+ defaults: {
+ allow: false,
+ clsDragover: 'uk-dragover',
+ concurrent: 1,
+ dataType: undefined,
+ mime: false,
+ msgInvalidMime: 'Invalid File Type: %s',
+ msgInvalidName: 'Invalid File Name: %s',
+ multiple: false,
+ name: 'files[]',
+ params: {},
+ type: 'POST',
+ url: '',
+ abort: null,
+ beforeAll: null,
+ beforeSend: null,
+ complete: null,
+ completeAll: null,
+ error: null,
+ fail: function fail(msg) {
+ alert(msg);
+ },
+ load: null,
+ loadEnd: null,
+ loadStart: null,
+ progress: null
+ },
+
+ events: {
+
+ change: function change(e) {
+
+ if (!$(e.target).is('input[type="file"]')) {
+ return;
+ }
+
+ e.preventDefault();
+
+ if (e.target.files) {
+ this.upload(e.target.files);
+ }
+
+ e.target.value = '';
+ },
+
+ drop: function drop(e) {
+ e.preventDefault();
+ e.stopPropagation();
+
+ var transfer = e.originalEvent.dataTransfer;
+
+ if (!transfer || !transfer.files) {
+ return;
+ }
+
+ this.$removeClass(this.clsDragover);
+
+ this.upload(transfer.files);
+ },
+
+ dragenter: function dragenter(e) {
+ e.preventDefault();
+ e.stopPropagation();
+ },
+
+ dragover: function dragover(e) {
+ e.preventDefault();
+ e.stopPropagation();
+ this.$addClass(this.clsDragover);
+ },
+
+ dragleave: function dragleave(e) {
+ e.preventDefault();
+ e.stopPropagation();
+ this.$removeClass(this.clsDragover);
+ }
+
+ },
+
+ methods: {
+
+ upload: function upload(files) {
+ var this$1 = this;
+
+
+ if (!files.length) {
+ return;
+ }
+
+ this.$el.trigger('upload', [files]);
+
+ for (var i = 0; i < files.length; i++) {
+
+ if (this$1.allow) {
+ if (!match(this$1.allow, files[i].name)) {
+ this$1.fail(this$1.msgInvalidName.replace(/%s/, this$1.allow));
+ return;
+ }
+ }
+
+ if (this$1.mime) {
+ if (!match(this$1.mime, files[i].type)) {
+ this$1.fail(this$1.msgInvalidMime.replace(/%s/, this$1.mime));
+ return;
+ }
+ }
+
+ }
+
+ if (!this.multiple) {
+ files = [files[0]];
+ }
+
+ this.beforeAll && this.beforeAll(this, files);
+
+ var chunks = chunk(files, this.concurrent),
+ upload = function (files) {
+
+ var data = new FormData();
+
+ files.forEach(function (file) { return data.append(this$1.name, file); });
+
+ for (var key in this$1.params) {
+ data.append(key, this$1.params[key]);
+ }
+
+ ajax({
+ data: data,
+ url: this$1.url,
+ type: this$1.type,
+ dataType: this$1.dataType,
+ beforeSend: this$1.beforeSend,
+ complete: [this$1.complete, function (xhr, status) {
+ if (chunks.length) {
+ upload(chunks.shift());
+ } else {
+ this$1.completeAll && this$1.completeAll(xhr);
+ }
+
+ if (status === 'abort') {
+ this$1.abort && this$1.abort(xhr);
+ }
+ }],
+ cache: false,
+ contentType: false,
+ processData: false,
+ xhr: function () {
+ var xhr = $.ajaxSettings.xhr();
+ xhr.upload && this$1.progress && on(xhr.upload, 'progress', this$1.progress);
+ ['loadStart', 'load', 'loadEnd', 'error', 'abort'].forEach(function (type) { return this$1[type] && on(xhr, type.toLowerCase(), this$1[type]); });
+ return xhr;
+ }
+ })
+
+ };
+
+ upload(chunks.shift());
+
+ }
+
+ }
+
+ });
+
+ function match(pattern, path) {
+ return path.match(new RegExp(("^" + (pattern.replace(/\//g, '\\/').replace(/\*\*/g, '(\\/[^\\/]+)*').replace(/\*/g, '[^\\/]+').replace(/((?!\\))\?/g, '$1.')) + "$"), 'i'));
+ }
+
+ function chunk(files, size) {
+ var chunks = [];
+ for (var i = 0; i < files.length; i += size) {
+ var chunk = [];
+ for (var j = 0; j < size; j++) {
+ chunk.push(files[i+j]);
+ }
+ chunks.push(chunk);
+ }
+ return chunks;
+ }
+
+}
+
+function plugin$6(UIkit) {
+
+ if (plugin$6.installed) {
+ return;
+ }
+
+ var ref = UIkit.util;
+ var scrolledOver = ref.scrolledOver;
+
+ UIkit.component('grid-parallax', UIkit.components.grid.extend({
+
+ props: {
+ target: String,
+ translate: Number
+ },
+
+ defaults: {
+ target: false,
+ translate: 150
+ },
+
+ init: function init() {
+ this.$addClass('uk-grid');
+ },
+
+ disconnected: function disconnected() {
+ this.reset();
+ this.$el.css('margin-bottom', '');
+ },
+
+ computed: {
+
+ translate: function translate() {
+ return Math.abs(this.$props.translate);
+ },
+
+ items: function items() {
+ return (this.target ? this.$el.find(this.target) : this.$el.children()).toArray();
+ }
+
+ },
+
+ update: [
+
+ {
+
+ read: function read() {
+ this.columns = this.rows && this.rows[0] && this.rows[0].length || 0;
+ this.rows = this.rows && this.rows.map(function (elements) { return sortBy(elements, 'offsetLeft'); });
+ },
+
+ write: function write() {
+ this.$el
+ .css('margin-bottom', '')
+ .css('margin-bottom', this.columns > 1 ? this.translate + parseFloat(this.$el.css('margin-bottom')) : '');
+ },
+
+ events: ['load', 'resize']
+ },
+
+ {
+
+ write: function write() {
+
+ var translate = scrolledOver(this.$el) * this.translate;
+
+ if (!this.rows || this.columns === 1 || !translate) {
+ return this.reset();
+ }
+
+ this.rows.forEach(function (row) { return row.forEach(function (el, i) { return el.style.transform = "translateY(" + (i % 2 ? translate : translate / 8) + "px)"; }
+ ); }
+ );
+
+ },
+
+ events: ['scroll', 'load', 'resize']
+ }
+ ],
+
+ methods: {
+
+ reset: function reset() {
+ this.items.forEach(function (item) { return item.style.transform = ''; });
+ }
+
+ }
+
+ }));
+
+ UIkit.component('grid-parallax').options.update.unshift({
+
+ read: function read() {
+ this.reset();
+ },
+
+ events: ['load', 'resize']
+
+ });
+
+ function sortBy(collection, prop) {
+ return collection.sort(function (a,b) { return a[prop] > b[prop]
+ ? 1
+ : b[prop] > a[prop]
+ ? -1
+ : 0; }
+ )
+ }
+
+}
+
+function plugin$7(UIkit) {
+
+ if (plugin$7.installed) {
+ return;
+ }
+
+ var ref = UIkit.util;
+ var $ = ref.$;
+ var clamp = ref.clamp;
+ var Dimensions = ref.Dimensions;
+ var getImage = ref.getImage;
+ var isUndefined = ref.isUndefined;
+ var scrolledOver = ref.scrolledOver;
+ var query = ref.query;
+
+ var props = ['x', 'y', 'bgx', 'bgy', 'rotate', 'scale', 'color', 'backgroundColor', 'borderColor', 'opacity', 'blur', 'hue', 'grayscale', 'invert', 'saturate', 'sepia', 'fopacity'];
+
+ UIkit.component('parallax', {
+
+ props: props.reduce(function (props, prop) {
+ props[prop] = 'list';
+ return props;
+ }, {
+ easing: Number,
+ target: String,
+ viewport: Number,
+ media: 'media'
+ }),
+
+ defaults: props.reduce(function (defaults, prop) {
+ defaults[prop] = undefined;
+ return defaults;
+ }, {
+ easing: 1,
+ target: false,
+ viewport: 1,
+ media: false
+ }),
+
+ computed: {
+
+ target: function target() {
+ return this.$props.target && query(this.$props.target, this.$el) || this.$el;
+ },
+
+ props: function props$1() {
+ var this$1 = this;
+
+
+ return props.reduce(function (props, prop) {
+
+ if (isUndefined(this$1.$props[prop])) {
+ return props;
+ }
+
+ var isColor = prop.match(/color/i),
+ isCssProp = isColor || prop === 'opacity',
+ values = this$1.$props[prop];
+
+ if (isCssProp) {
+ this$1.$el.css(prop, '');
+ }
+
+ var start = (!isUndefined(values[1])
+ ? values[0]
+ : prop === 'scale'
+ ? 1
+ : isCssProp
+ ? this$1.$el.css(prop)
+ : 0) || 0,
+ end = isUndefined(values[1]) ? values[0] : values[1],
+ unit = ~values.join('').indexOf('%') ? '%' : 'px',
+ diff;
+
+ if (isColor) {
+
+ var color = this$1.$el[0].style.color;
+ this$1.$el[0].style.color = start;
+ start = parseColor(this$1.$el.css('color'));
+ this$1.$el[0].style.color = end;
+ end = parseColor(this$1.$el.css('color'));
+ this$1.$el[0].style.color = color;
+
+ } else {
+
+ start = parseFloat(start);
+ end = parseFloat(end);
+ diff = Math.abs(start - end);
+
+ }
+
+ props[prop] = {start: start, end: end, diff: diff, unit: unit};
+
+ if (prop.match(/^bg/)) {
+ if (this$1.covers) {
+ props[prop].end = start <= end ? diff : -diff;
+ props[prop].start = 0;
+ } else {
+ props[prop].pos = this$1.$el.css(("background-position-" + (prop[2])));
+ }
+ }
+
+ return props;
+
+ }, {});
+
+ },
+
+ bgProps: function bgProps() {
+ var this$1 = this;
+
+ return ['bgx', 'bgy'].filter(function (bg) { return bg in this$1.props; });
+ },
+
+ covers: function covers() {
+ var size = this.$el.css('backgroundSize');
+ return ~['contain', 'cover'].indexOf(size) ? size : false;
+ }
+
+ },
+
+ disconnected: function disconnected() {
+ this._image = undefined;
+ },
+
+ update: [
+
+ {
+
+ read: function read() {
+ var this$1 = this;
+
+
+ if (this._image) {
+ this._image.dimEl = {
+ width: this.$el[0].offsetWidth,
+ height: this.$el[0].offsetHeight
+ }
+ }
+
+ if (!isUndefined(this._image) || !this.bgProps.length) {
+ return;
+ }
+
+ var src = this.$el.css('backgroundImage').replace(/^none|url\(["']?(.+?)["']?\)$/, '$1');
+
+ if (!src || !this.covers) {
+ return;
+ }
+
+ this._image = false;
+
+ getImage(src).then(function (img) {
+ this$1._image = {
+ width: img.naturalWidth,
+ height: img.naturalHeight
+ };
+
+ this$1.$emit();
+ });
+
+ },
+
+ write: function write() {
+ var this$1 = this;
+
+
+ if (this._image) {
+
+ if (!this.media || window.matchMedia(this.media).matches) {
+
+ var image = this._image;
+ var dimEl = image.dimEl;
+
+ this.bgProps.forEach(function (prop) { return dimEl[prop === 'bgy' ? 'height' : 'width'] += this$1.props[prop].diff; });
+
+ var dim = this.covers === 'cover'
+ ? Dimensions.cover(image, dimEl)
+ : Dimensions.fit(image, dimEl);
+
+ this.$el.css({
+ backgroundSize: ((dim.width) + "px " + (dim.height) + "px"),
+ backgroundRepeat: 'no-repeat'
+ });
+
+ } else {
+ this.$el.css({backgroundSize: '', backgroundRepeat: ''});
+ }
+
+ }
+
+ },
+
+ events: ['load', 'resize']
+
+ },
+
+ {
+
+ write: function write() {
+ var this$1 = this;
+
+
+ if (this.media && !window.matchMedia(this.media).matches) {
+ this._prev = undefined;
+ Object.keys(getCss(this.props, 0)).forEach(function (prop) { return this$1.$el.css(prop, ''); });
+ return;
+ }
+
+ var percent = scrolledOver(this.target) / (this.viewport || 1);
+
+ percent = clamp(percent * (1 - (this.easing - this.easing * percent)));
+
+ if (this._prev === percent) {
+ return;
+ }
+
+ this.$el.css(getCss(this.props, percent, this.covers));
+ this._prev = percent;
+
+ },
+
+ events: ['scroll', 'load', 'resize']
+ }
+ ]
+ });
+
+ function parseColor(color) {
+ return color.split(/[(),]/g).slice(1, -1).concat(1).slice(0, 4).map(function (n) { return parseFloat(n); });
+ }
+
+ function getCss(props, percent, covers) {
+
+ return Object.keys(props).reduce(function (css, prop) {
+
+ var values = props[prop],
+ value = !isUndefined(values.diff)
+ ? values.start + values.diff * percent * (values.start < values.end ? 1 : -1)
+ : values.end;
+
+ switch (prop) {
+
+ // transforms
+ case 'x':
+ case 'y':
+ css.transform += " translate" + prop + "(" + (value + values.unit) + ")";
+ break;
+ case 'rotate':
+ css.transform += " rotate(" + value + "deg)";
+ break;
+ case 'scale':
+ css.transform += " scale(" + value + ")";
+ break;
+
+ // bg image
+ case 'bgy':
+ case 'bgx':
+ css[("background-position-" + (prop[2]))] = "calc(" + (!covers
+ ? values.pos
+ : values.start < values.end
+ ? '100%'
+ : '0%') + " + " + (value + values.unit) + ")";
+ break;
+
+ // color
+ case 'color':
+ case 'backgroundColor':
+ case 'borderColor':
+ css[prop] = "rgba(" + (values.start.map(function (value, i) {
+ value = value + percent * (values.end[i] - value);
+ return i === 3 ? parseFloat(value) : parseInt(value, 10);
+ }).join(',')) + ")";
+ break;
+
+ // CSS Filter
+ case 'blur':
+ css.filter += " blur(" + value + "px)";
+ break;
+ case 'hue':
+ css.filter += " hue-rotate(" + value + "deg)";
+ break;
+ case 'fopacity':
+ css.filter += " opacity(" + value + "%)";
+ break;
+ case 'grayscale':
+ case 'invert':
+ case 'saturate':
+ case 'sepia':
+ css.filter += " " + prop + "(" + value + "%)";
+ break;
+
+ default:
+ css[prop] = value;
+ }
+
+ return css;
+
+ }, {transform: '', filter: ''});
+
+ }
+
+}
+
+UIkit.use(plugin);
+UIkit.use(plugin$1);
+UIkit.use(plugin$2);
+UIkit.use(plugin$3);
+UIkit.use(plugin$4);
+UIkit.use(plugin$5);
+UIkit.use(plugin$6);
+UIkit.use(plugin$7);
+
+if (true) {
+ boot(UIkit);
+}
+
+return UIkit;
+
+})));
\ No newline at end of file
diff --git a/bl-kernel/admin/themes/default/uikit/uikit-3.0.0-beta.24/js/uikit.min.js b/bl-kernel/admin/themes/default/uikit/uikit-3.0.0-beta.24/js/uikit.min.js
new file mode 100644
index 00000000..9ac36e27
--- /dev/null
+++ b/bl-kernel/admin/themes/default/uikit/uikit-3.0.0-beta.24/js/uikit.min.js
@@ -0,0 +1,5 @@
+/*! UIkit 3.0.0-beta.24 | http://www.getuikit.com | (c) 2014 - 2017 YOOtheme | MIT License */
+
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define("uikit",["jquery"],e):t.UIkit=e(t.jQuery)}(this,function(t){"use strict";function e(){return"complete"===document.readyState||"loading"!==document.readyState&&!ne.doScroll}function i(t){var i=function(){o(document,"DOMContentLoaded",i),o(window,"load",i),t()};e()?t():(n(document,"DOMContentLoaded",i),n(window,"load",i))}function n(t,e,i,n){e.split(" ").forEach(function(e){return P(t).addEventListener(e,i,n)})}function o(t,e,i,n){e.split(" ").forEach(function(e){return P(t).removeEventListener(e,i,n)})}function s(t,e,i,n){void 0===i&&(i=400),void 0===n&&(n="linear");var o=$(function(s,r){t=ie(t);for(var a in e)t.css(a,t.css(a));var l=setTimeout(function(){return t.trigger(Ee||"transitionend")},i);t.one(Ee||"transitionend",function(e,i){e.promise=o,clearTimeout(l),t.removeClass("uk-transition").css("transition",""),i?r():s()}).addClass("uk-transition").css("transition","all "+i+"ms "+n).css(e)}).then(null,function(){});return o}function r(t,e,i,n,o){void 0===i&&(i=200);var s=$(function(r){function a(){t.css("animation-duration","").removeClass(l+" "+e)}var l=o?"uk-animation-leave":"uk-animation-enter";t=ie(t),0===e.lastIndexOf("uk-animation-",0)&&(n&&(e+=" uk-animation-"+n),o&&(e+=" uk-animation-reverse")),a(),t.one(Ae||"animationend",function(t){t.promise=s,s.then(a),r()}).css("animation-duration",i+"ms").addClass(e).addClass(l),Ae||be(function(){return he.cancel(t)})});return s}function a(t){return t instanceof ie}function l(t,e){return t=ie(t),!!t.is(e)||(O(e)?t.parents(e).length:P(e).contains(t[0]))}function h(t,e,i,n){return t=ie(t),t.attr(e,function(t,e){return e?e.replace(i,n):e})}function c(t,e){return h(t,"class",new RegExp("(^|\\s)"+e+"(?!\\S)","g"),"")}function u(t,e,i,n){if(void 0===e&&(e=!0),void 0===i&&(i=!1),void 0===n&&(n=!1),O(t)){var o=document.createEvent("Event");o.initEvent(t,e,i),t=o}return n&&ve(t,n),t}function d(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0);var n=P(t).getBoundingClientRect();return n.bottom>=-1*e&&n.right>=-1*i&&n.top<=window.innerHeight+e&&n.left<=window.innerWidth+i}function f(t){var e=P(t).getBoundingClientRect(),i=e.top,n=e.height,o=et(t),s=window.innerHeight,r=s+Math.min(0,o-s),a=Math.max(0,s-(g()-(o+n)));return p((r-i)/((r+(n-(a1?t.apply(e,arguments):t.call(e,i):t.call(e)}}function y(t,e){return de.call(t,e)}function $(t){if($e)return new Promise(t);var e=ie.Deferred();return t(e.resolve,e.reject),e}function x(t){return t.replace(/(?:^|[-_\/])(\w)/g,function(t,e){return e?e.toUpperCase():""})}function k(t){return t.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()}function C(t){return t.replace(fe,T)}function T(t,e){return e?e.toUpperCase():""}function _(t){return"function"==typeof t}function S(t){return null!==t&&"object"==typeof t}function E(t){return S(t)&&Object.getPrototypeOf(t)===Object.prototype}function O(t){return"string"==typeof t}function A(t){return"number"==typeof t}function D(t){return void 0===t}function I(t){return O(t)&&t.match(/^[!>+-]/)}function N(t){return I(t)&&t.split(/(?=\s[!>+-])/g).map(function(t){return t.trim()})}function B(t,e){if(t===!0)return null;try{if(e&&I(t)&&">"!==t[0]){var i=ge[t[0]],n=t.substr(1);e=ie(e),"closest"===i&&(e=e.parent(),n=n||"*"),t=e[i](n)}else t=ie(t,e)}catch(t){return null}return t.length?t:null}function P(t){return t&&(a(t)?t[0]:t)}function H(t){return"boolean"==typeof t?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function M(t){var e=Number(t);return!isNaN(e)&&e}function j(e){return pe(e)?e:O(e)?e.split(",").map(function(e){return t.isNumeric(e)?M(e):H(e.trim())}):[e]}function F(t){if(O(t))if("@"===t[0]){var e="media-"+t.substr(1);t=me[e]||(me[e]=parseFloat(q(e)))}else if(t.match(/^\(min-width:/))return t;return!(!t||isNaN(t))&&"(min-width: "+t+"px)"}function L(t,e,i){return t===Boolean?H(e):t===Number?M(e):"jQuery"===t?w(e,i):"list"===t?j(e):"media"===t?F(e):t?t(e):e}function z(t){return t?"ms"===t.substr(-2)?parseFloat(t):1e3*parseFloat(t):0}function W(t,e,i){return t.replace(new RegExp(e+"|"+i,"mg"),function(t){return t===e?i:e})}function R(t,e,i){return(window.getComputedStyle(P(t),i)||{})[e]}function q(t){var e,i=document.documentElement,n=i.appendChild(document.createElement("div"));n.classList.add("var-"+t);try{e=R(n,"content",":before").replace(/^["'](.*)["']$/,"$1"),e=JSON.parse(e)}catch(t){}return i.removeChild(n),e||void 0}function Y(t){return $(function(e,i){var n=new Image;n.onerror=i,n.onload=function(){return e(n)},n.src=t})}function U(t,e){var i,n=x(t),o=x(e).toLowerCase(),s=x(e),r=document.body||document.documentElement,a=(i={},i["Webkit"+n]="webkit"+s,i["Moz"+n]=o,i["o"+n]="o"+s+" o"+o,i[t]=o,i);for(t in a)if(void 0!==r.style[t])return a[t]}function V(t){t.scheduled||(t.scheduled=!0,be(t.flush.bind(t)))}function X(t){for(var e;e=t.shift();)e()}function G(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}function Q(){}function J(t,e){return(e.y-t.y)/(e.x-t.x)}function Z(t,e){function i(i){o[i]=(Ie[i]||je)(t[i],e[i])}var n,o={};if(e.mixins)for(var s=0,r=e.mixins.length;s=l[f]&&n+c[r]<=l[p])return d[f]=n,["element","target"].forEach(function(i){h[i][t]=e?h[i][t]===Fe[t][1]?Fe[t][2]:Fe[t][1]:h[i][t]}),!0}var r=e[0],f=e[1],p=e[2];if(a===!0||~a.indexOf(t)){var g=n[t]===f?-c[r]:n[t]===p?c[r]:0,m=o[t]===f?u[r]:o[t]===p?-u[r]:0;if(d[f]l[p]){var v=c[r]/2,w="center"===o[t]?-u[r]/2:0;"center"===n[t]&&(i(v,w)||i(-v,-w))||i(g,m)}}}),ie(e).offset({left:d.left,top:d.top}),h}function tt(t){t=P(t);var e=it(t),i=e.pageYOffset,n=e.pageXOffset;if(!t.ownerDocument)return{top:i,left:n,height:e.innerHeight,width:e.innerWidth,bottom:i+e.innerHeight,right:n+e.innerWidth};var o=!1;t.offsetHeight||(o=t.style.display,t.style.display="block");var s=t.getBoundingClientRect();return o!==!1&&(t.style.display=o),{height:s.height,width:s.width,top:s.top+i,left:s.left+n,bottom:s.bottom+i,right:s.right+n}}function et(t){return t=P(t),t.getBoundingClientRect().top+it(t).pageYOffset}function it(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:window}function nt(e,i,n,o){t.each(Fe,function(t,s){var r=s[0],a=s[1],l=s[2];i[t]===l?e[a]+=n[r]*o:"center"===i[t]&&(e[a]+=n[r]*o/2)})}function ot(t){var e=/left|center|right/,i=/top|center|bottom/;return t=(t||"").split(" "),1===t.length&&(t=e.test(t[0])?t.concat(["center"]):i.test(t[0])?["center"].concat(t):["center","center"]),{x:e.test(t[0])?t[0]:"center",y:i.test(t[1])?t[1]:"center"}}function st(t,e,i){return t=(t||"").split(" "),{x:t[0]?parseFloat(t[0])*("%"===t[0][t[0].length-1]?e/100:1):0,y:t[1]?parseFloat(t[1])*("%"===t[1][t[1].length-1]?i/100:1):0}}function rt(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}}function at(t,e,i,n){return Math.abs(t-e)>=Math.abs(i-n)?t-e>0?"Left":"Right":i-n>0?"Up":"Down"}function lt(){Ne&&clearTimeout(Ne),Be&&clearTimeout(Be),Pe&&clearTimeout(Pe),Ne=Be=Pe=null,Le={}}function ht(t){return ze||"touch"===(t.originalEvent||t).pointerType}function ct(t){function e(){o(document.body,r),De.flush(),new we(function(e){return e.forEach(function(e){for(var i=e.addedNodes,n=e.removedNodes,s=e.target,l=0;l0&&O(e)&&~e.indexOf(" ")&&Array.prototype.splice.apply(t,[i,1].concat(t[i].split(" ")))}),!!(t[1]&&t.length>1)&&t}t.prototype.$addClass=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];e(this.$options.el,t,"add")},t.prototype.$removeClass=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];e(this.$options.el,t,"remove")},t.prototype.$hasClass=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return(t=i(t,this.$options.el))&&t[0].contains(t[1])},t.prototype.$toggleClass=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];t=i(t,this.$options.el);for(var n=t&&!O(t[t.length-1])?t.pop():void 0,o=1;o *",active:!1,animation:[!0],collapsible:!0,multiple:!1,clsOpen:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",transition:"ease"},computed:{items:function t(){var e=this,t=ie(this.targets,this.$el);return this._changed=!this._items||t.length!==this._items.length||t.toArray().some(function(t,i){return t!==e._items.get(i)}),this._items=t}},events:[{name:"click",delegate:function(){return this.targets+" "+this.$props.toggle},handler:function(t){t.preventDefault(),this.toggle(this.items.find(this.$props.toggle).index(t.currentTarget))}}],update:function(){var t=this;if(this.items&&this._changed){this.items.each(function(e,i){i=ie(i),t.toggleNow(i.find(t.content),i.hasClass(t.clsOpen))});var e=this.active!==!1&&B(this.items.eq(Number(this.active)))||!this.collapsible&&B(this.items.eq(0));e&&!e.hasClass(this.clsOpen)&&this.toggle(e,!1)}},methods:{toggle:function(t,e){var i=this,n=m(t,this.items),o=this.items.filter("."+this.clsOpen);t=this.items.eq(n),t.add(!this.multiple&&o).each(function(n,s){s=ie(s);var r=s.is(t),a=r&&!s.hasClass(i.clsOpen);if(a||!r||i.collapsible||!(o.length<2)){s.toggleClass(i.clsOpen,a);var l=s[0]._wrapper?s[0]._wrapper.children().first():s.find(i.content);s[0]._wrapper||(s[0]._wrapper=l.wrap("").parent().attr("hidden",a)),i._toggleImmediate(l,!0),i.toggleElement(s[0]._wrapper,a,e).then(function(){s.hasClass(i.clsOpen)===a&&(a||i._toggleImmediate(l,!1),s[0]._wrapper=null,l.unwrap())})}})}}})}function $t(t){t.component("alert",{mixins:[Xe,Ge],args:"animation",props:{close:String},defaults:{animation:[!0],close:".uk-alert-close",duration:150,hideProps:{opacity:0}},events:[{name:"click",delegate:function(){return this.close},handler:function(t){t.preventDefault(),this.closeAlert()}}],methods:{closeAlert:function(){var t=this;this.toggleElement(this.$el).then(function(){return t.$destroy(!0)})}}})}function xt(t){t.component("cover",{mixins:[Xe],props:{automute:Boolean,width:Number,height:Number},defaults:{automute:!0},computed:{el:function(){return this.$el[0]},parent:function(){return this.el.parentNode}},ready:function(){if(this.$el.is("iframe")&&(this.$el.css("pointerEvents","none"),this.automute)){var t=this.$el.attr("src");this.$el.attr("src",""+t+(~t.indexOf("?")?"&":"?")+"enablejsapi=1&api=1").on("load",function(t){var e=t.target;return e.contentWindow.postMessage('{"event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")})}},update:{write:function(){0!==this.el.offsetHeight&&this.$el.css({width:"",height:""}).css(ue.cover({width:this.width||this.el.clientWidth,height:this.height||this.el.clientHeight},{width:this.parent.offsetWidth,height:this.parent.offsetHeight}))},events:["load","resize"]},events:{loadedmetadata:function(){this.$emit()}}})}function kt(t){function e(){n||(n=!0,se.on("click",function(t){for(var e;i&&i!==e&&!l(t.target,i.$el)&&(!i.toggle||!l(t.target,i.toggle.$el));)e=i,i.hide(!1)}))}var i;t.component("drop",{mixins:[Je,Ge],args:"pos",props:{mode:"list",toggle:Boolean,boundary:"jQuery",boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},defaults:{mode:["click","hover"],toggle:"- :first",boundary:window,boundaryAlign:!1,delayShow:0,delayHide:800,clsDrop:!1,hoverIdle:200,animation:["uk-animation-fade"],cls:"uk-open"},init:function(){this.tracker=new Q,this.clsDrop=this.clsDrop||"uk-"+this.$options.name,this.clsPos=this.clsDrop,this.$addClass(this.clsDrop)},ready:function(){this.updateAria(this.$el),this.toggle&&(this.toggle=t.toggle(w(this.toggle,this.$el),{target:this.$el,mode:this.mode}))},events:[{name:"click",delegate:function(){return"."+this.clsDrop+"-close"},handler:function(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(t){if(!t.isDefaultPrevented()){var e=ie(t.target).attr("href");1===e.length&&t.preventDefault(),1!==e.length&&l(e,this.$el)||this.hide(!1)}}},{name:"toggle",handler:function(t,e){e&&!this.$el.is(e.target)||(t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e,!1))}},{name:_e,filter:function(){return~this.mode.indexOf("hover")},handler:function(t){ht(t)||(i&&i!==this&&i.toggle&&~i.toggle.mode.indexOf("hover")&&!l(t.target,i.$el)&&!l(t.target,i.toggle.$el)&&i.hide(!1),t.preventDefault(),this.show(this.toggle))}},{name:"toggleshow",handler:function(t,e){e&&!this.$el.is(e.target)||(t.preventDefault(),this.show(e||this.toggle))}},{name:"togglehide "+Se,handler:function(t,e){ht(t)||e&&!this.$el.is(e.target)||(t.preventDefault(),this.toggle&&~this.toggle.mode.indexOf("hover")&&this.hide())}},{name:"beforeshow",self:!0,handler:function(){this.clearTimers()}},{name:"show",self:!0,handler:function(){this.tracker.init(),this.toggle.$el.addClass(this.cls).attr("aria-expanded","true"),e()}},{name:"beforehide",self:!0,handler:function(){this.clearTimers()}},{name:"hide",handler:function(t){var e=t.target;return this.$el.is(e)?(i=this.isActive()?null:i,this.toggle.$el.removeClass(this.cls).attr("aria-expanded","false").blur().find("a, button").blur(),void this.tracker.cancel()):void(i=null===i&&l(e,this.$el)&&this.isToggled()?this:i)}}],update:{write:function(){this.isToggled()&&!he.inProgress(this.$el)&&this.position()},events:["resize"]},methods:{show:function t(e,n){var o=this;void 0===n&&(n=!0);var t=function(){o.isToggled()||(o.position(),o.toggleElement(o.$el,!0))},s=function(){if(o.toggle=e||o.toggle,o.clearTimers(),!o.isActive()){if(n&&i&&i!==o&&i.isDelaying)return void(o.showTimer=setTimeout(o.show,10));if(o.isParentOf(i)){if(!i.hideTimer)return;i.hide(!1)}else if(i&&!o.isChildOf(i)&&!o.isParentOf(i))for(var s;i&&i!==s;)s=i,i.hide(!1);n&&o.delayShow?o.showTimer=setTimeout(t,o.delayShow):t(),i=o}};e&&this.toggle&&!this.toggle.$el.is(e.$el)?(this.$el.one("hide",s),this.hide(!1)):s()},hide:function t(e){var i=this;void 0===e&&(e=!0);var t=function(){return i.toggleNow(i.$el,!1)};this.clearTimers(),this.isDelaying=this.tracker.movesTo(this.$el),e&&this.isDelaying?this.hideTimer=setTimeout(this.hide,this.hoverIdle):e&&this.delayHide?this.hideTimer=setTimeout(t,this.delayHide):t()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive:function(){return i===this},isChildOf:function(t){return t&&t!==this&&l(this.$el,t.$el)},isParentOf:function(t){return t&&t!==this&&l(t.$el,this.$el)},position:function(){c(this.$el,this.clsDrop+"-(stack|boundary)").css({top:"",left:""}),this.$el.show().toggleClass(this.clsDrop+"-boundary",this.boundaryAlign);var t=tt(this.boundary),e=this.boundaryAlign?t:tt(this.toggle.$el);if("justify"===this.align){var i="y"===this.getAxis()?"width":"height";this.$el.css(i,e[i])}else this.$el.outerWidth()>Math.max(t.right-e.left,e.right-t.left)&&(this.$addClass(this.clsDrop+"-stack"),this.$el.trigger("stack",[this]));this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.toggle.$el,this.boundary),this.$el[0].style.display=""}}}),t.drop.getActive=function(){return i};var n}function Ct(t){t.component("dropdown",t.components.drop.extend({name:"dropdown"}))}function Tt(t){t.component("form-custom",{mixins:[Xe],args:"target",props:{target:Boolean},defaults:{target:!1},computed:{input:function(){return this.$el.find(":input:first")},state:function(){return this.input.next()},target:function(){return this.$props.target&&w(this.$props.target===!0?"> :input:first + :first":this.$props.target,this.$el)}},connected:function(){this.input.trigger("change")},events:[{name:"focusin focusout mouseenter mouseleave",delegate:":input:first",handler:function(t){var e=t.type;this.state.toggleClass("uk-"+(~e.indexOf("focus")?"focus":"hover"),~["focusin","mouseenter"].indexOf(e))}},{name:"change",handler:function(){this.target&&this.target[this.target.is(":input")?"val":"text"](this.input[0].files&&this.input[0].files[0]?this.input[0].files[0].name:this.input.is("select")?this.input.find("option:selected").text():this.input.val())}}]})}function _t(t){t.component("gif",{update:{read:function(){var t=d(this.$el);!this.isInView&&t&&(this.$el[0].src=this.$el[0].src),this.isInView=t},events:["scroll","load","resize"]}})}function St(t){t.component("grid",t.components.margin.extend({mixins:[Xe],name:"grid",defaults:{margin:"uk-grid-margin",clsStack:"uk-grid-stack"},update:{write:function(){this.$toggleClass(this.clsStack,this.stacks)},events:["load","resize"]}}))}function Et(t){t.component("height-match",{args:"target",props:{target:String,row:Boolean},defaults:{target:"> *",row:!0},computed:{elements:function(){return ie(this.target,this.$el)}},update:{read:function(){var t=this,e=!1;this.elements.css("minHeight",""),this.rows=this.row?this.elements.toArray().reduce(function(t,i){return e!==i.offsetTop?t.push([i]):t[t.length-1].push(i),e=i.offsetTop,t},[]).map(function(e){return t.match(ie(e))}):[this.match(this.elements)]},write:function(){this.rows.forEach(function(t){var e=t.height,i=t.elements;return i&&i.each(function(t,i){return i.style.minHeight=e+"px"})})},events:["load","resize"]},methods:{match:function(t){if(t.length<2)return{};var e=0,i=[];return t=t.each(function(t,n){var o,s,r;0===n.offsetHeight&&(o=ie(n),s=o.attr("style")||null,r=o.attr("hidden")||null,o.attr({style:s+";display:block !important;",hidden:null})),e=Math.max(e,n.offsetHeight),i.push(n.offsetHeight),o&&o.attr({style:s,hidden:r})}).filter(function(t){return i[t]
0&&this.$el.css("min-height",e=this.$el.outerHeight()+o)}else{var s=et(this.$el);if(s=this.$el.outerHeight()&&this.$el.css("height",e)},events:["load","resize"]}})}function At(t){i(function(){if(xe){var e="uk-hover";re.on("tap",function(t){var i=t.target;return ie("."+e).filter(function(t,e){return!l(i,e)}).removeClass(e)}),Object.defineProperty(t,"hoverSelector",{set:function(t){re.on("tap",t,function(t){var i=t.currentTarget;return i.classList.add(e)})}}),t.hoverSelector=".uk-animation-toggle, .uk-transition-toggle, [uk-hover]"}})}function Dt(t){function e(e,i){t.component(e,t.components.icon.extend({name:e,mixins:i?[i]:[],defaults:{icon:e}}))}var i={},n={spinner:di,totop:fi,marker:ti,"close-icon":Ze,"close-large":Ke,"navbar-toggle-icon":ei,"overlay-icon":ii,"pagination-next":ni,"pagination-previous":oi,"search-icon":si,"search-large":ri,"search-navbar":ai,"slidenav-next":li,"slidenav-next-large":hi,"slidenav-previous":ci,"slidenav-previous-large":ui};t.component("icon",t.components.svg.extend({attrs:["icon","ratio"],mixins:[Xe],name:"icon",args:"icon",props:["icon"],defaults:{exclude:["id","style","class","src","icon"]},init:function(){this.$addClass("uk-icon"),ae&&(this.icon=W(W(this.icon,"left","right"),"previous","next"))},update:{read:function(){if(this.delay){var t=this.getIcon();t&&this.delay(t)}},events:["load"]},methods:{getSvg:function(){var t=this,e=this.getIcon();return e?$.resolve(e):"complete"!==document.readyState?$(function(e){t.delay=e}):$.reject("Icon not found.")},getIcon:function(){return n[this.icon]?(i[this.icon]||(i[this.icon]=this.parse(n[this.icon])),i[this.icon]):null}}})),["marker","navbar-toggle-icon","overlay-icon","pagination-previous","pagination-next","totop"].forEach(function(t){return e(t)}),["slidenav-previous","slidenav-next"].forEach(function(t){return e(t,{init:function(){this.$addClass("uk-slidenav"),this.$hasClass("uk-slidenav-large")&&(this.icon+="-large")}})}),e("search-icon",{init:function(){this.$hasClass("uk-search-icon")&&this.$el.parents(".uk-search-large").length?this.icon="search-large":this.$el.parents(".uk-search-navbar").length&&(this.icon="search-navbar")}}),e("close",{init:function(){this.icon="close-"+(this.$hasClass("uk-close-large")?"large":"icon")}}),e("spinner",{connected:function(){var t=this;this.height=this.width=this.$el.width(),this.svg.then(function(e){var i=ie(e).find("circle"),n=Math.floor(t.width/2);e.setAttribute("viewBox","0 0 "+t.width+" "+t.width),i.attr({cx:n,cy:n,r:n-parseFloat(i.css("stroke-width")||0)})})}}),t.icon.add=function(t){return ve(n,t)}}function It(t){t.component("margin",{props:{margin:String,firstColumn:Boolean},defaults:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},computed:{items:function(){return this.$el[0].children}},update:{read:function(){var t=this;if(!this.items.length||0===this.$el[0].offsetHeight)return void(this.rows=!1);this.stacks=!0;for(var e=[[]],i=0;i=0;s--){var r=e[s];if(!r[0]){r.push(n);break}var a=r[0].getBoundingClientRect();if(o.top>=a.bottom){e.push([n]);break}if(o.bottom>a.top){if(t.stacks=!1,o.leftthis.panel.outerHeight(!0)).css("display",this.$el.hasClass("uk-flex")?"":"block");
+},events:["resize"]},events:[{name:"beforeshow",self:!0,handler:function(){this.$el.css("display","block").height()}},{name:"hidden",self:!0,handler:function(){this.$el.css("display","").removeClass("uk-flex uk-flex-center uk-flex-middle")}}]}),t.component("overflow-auto",{mixins:[Xe],computed:{panel:function(){return this.$el.closest(".uk-modal-dialog")}},connected:function(){this.$el.css("min-height",150)},update:{write:function(){var t=this.$el.css("max-height");this.$el.css("max-height",150).css("max-height",Math.max(150,150-(this.panel.outerHeight(!0)-window.innerHeight))),t!==this.$el.css("max-height")&&this.$el.trigger("resize")},events:["load","resize"]}}),t.modal.dialog=function(e,i){var n=t.modal('",i);return n.$el.on("hidden",function(t){t.target===t.currentTarget&&n.$destroy(!0)}),n.show(),n},t.modal.alert=function(e,i){return i=ve({bgClose:!1,escClose:!1,labels:t.modal.labels},i),$(function(n){return t.modal.dialog('\n '+(O(e)?e:ie(e).html())+'
\n \n ",i).$el.on("hide",n)})},t.modal.confirm=function(e,i){return i=ve({bgClose:!1,escClose:!1,labels:t.modal.labels},i),$(function(n,o){return t.modal.dialog('\n '+(O(e)?e:ie(e).html())+'
\n \n ",i).$el.on("click",".uk-modal-footer button",function(t){return 0===ie(t.target).index()?o():n()})})},t.modal.prompt=function(e,i,n){return n=ve({bgClose:!1,escClose:!1,labels:t.modal.labels},n),$(function(o){var s=!1,r=t.modal.dialog('\n \n ",n),a=r.$el.find("input").val(i);r.$el.on("submit","form",function(t){t.preventDefault(),o(a.val()),s=!0,r.hide()}).on("hide",function(){s||o(null)})})},t.modal.labels={ok:"Ok",cancel:"Cancel"}}function Bt(t){t.component("nav",t.components.accordion.extend({name:"nav",defaults:{targets:"> .uk-parent",toggle:"> a",content:"ul:first"}}))}function Pt(t){t.component("navbar",{mixins:[Xe],props:{dropdown:String,mode:"list",align:String,offset:Number,boundary:Boolean,boundaryAlign:Boolean,clsDrop:String,delayShow:Number,delayHide:Number,dropbar:Boolean,dropbarMode:String,dropbarAnchor:"jQuery",duration:Number},defaults:{dropdown:".uk-navbar-nav > li",align:ae?"right":"left",clsDrop:"uk-navbar-dropdown",mode:void 0,offset:void 0,delayShow:void 0,delayHide:void 0,boundaryAlign:void 0,flip:"x",boundary:!0,dropbar:!1,dropbarMode:"slide",dropbarAnchor:!1,duration:200},computed:{boundary:function(){return this.$props.boundary===!0||this.boundaryAlign?this.$el:this.$props.boundary},pos:function(){return"bottom-"+this.align}},ready:function(){this.dropbar&&t.navbarDropbar(w(this.dropbar,this.$el)||ie("").insertAfter(this.dropbarAnchor||this.$el),{clsDrop:this.clsDrop,mode:this.dropbarMode,duration:this.duration,navbar:this})},update:function(){t.drop(ie(this.dropdown+" ."+this.clsDrop,this.$el),ve({},this.$props,{boundary:this.boundary,pos:this.pos}))},events:[{name:_e,delegate:function(){return this.dropdown},handler:function(t){var e=t.currentTarget,i=this.getActive();i&&i.toggle&&!l(i.toggle.$el,e)&&!i.tracker.movesTo(i.$el)&&i.hide(!1)}}],methods:{getActive:function(){var e=t.drop.getActive();return e&&"click"!==e.mode&&l(e.toggle.$el,this.$el)&&e}}}),t.component("navbar-dropbar",{mixins:[Xe],defaults:{clsDrop:"",mode:"slide",navbar:null,duration:200},init:function(){"slide"===this.mode&&this.$addClass("uk-navbar-dropbar-slide")},events:[{name:"beforeshow",el:function(){return this.navbar.$el},handler:function(t,e){var i=e.$el,n=e.dir;if("bottom"===n&&!l(i,this.$el))return i.appendTo(this.$el),e.show(),!1}},{name:"mouseleave",handler:function(){var t=this.navbar.getActive();t&&!this.$el.is(":hover")&&t.hide()}},{name:"beforeshow",handler:function(t,e){var i=e.$el;this.clsDrop&&i.addClass(this.clsDrop+"-dropbar"),this.transitionTo(i.outerHeight(!0))}},{name:"beforehide",handler:function(t,e){var i=e.$el,n=this.navbar.getActive();if(this.$el.is(":hover")&&n&&n.$el.is(i))return!1}},{name:"hide",handler:function(t,e){var i=e.$el,n=this.navbar.getActive();(!n||n&&n.$el.is(i))&&this.transitionTo(0)}}],methods:{transitionTo:function(t){var e=this;return this.$el.height(this.$el[0].offsetHeight?this.$el.height():0),le.cancel(this.$el).then(function(){return le.start(e.$el,{height:t},e.duration)})}}})}function Ht(t){t.component("offcanvas",{mixins:[Qe],args:"mode",props:{content:String,mode:String,flip:Boolean,overlay:Boolean},defaults:{content:".uk-offcanvas-content:first",mode:"slide",flip:!1,overlay:!1,clsPage:"uk-offcanvas-page",clsContainer:"uk-offcanvas-container",clsPanel:"uk-offcanvas-bar",clsFlip:"uk-offcanvas-flip",clsContent:"uk-offcanvas-content",clsContentAnimation:"uk-offcanvas-content-animation",clsSidebarAnimation:"uk-offcanvas-bar-animation",clsMode:"uk-offcanvas",clsOverlay:"uk-offcanvas-overlay",selClose:".uk-offcanvas-close"},computed:{content:function(){return ie(w(this.$props.content,this.$el))},clsFlip:function(){return this.flip?this.$props.clsFlip:""},clsOverlay:function(){return this.overlay?this.$props.clsOverlay:""},clsMode:function(){return this.$props.clsMode+"-"+this.mode},clsSidebarAnimation:function(){return"none"===this.mode||"reveal"===this.mode?"":this.$props.clsSidebarAnimation},clsContentAnimation:function(){return"push"!==this.mode&&"reveal"!==this.mode?"":this.$props.clsContentAnimation},transitionElement:function(){return"reveal"===this.mode?this.panel.parent():this.panel}},update:{write:function(){this.isToggled()&&((this.overlay||this.clsContentAnimation)&&this.content.width(window.innerWidth-this.scrollbarWidth),this.overlay&&(this.content.height(window.innerHeight),Ve&&this.content.scrollTop(Ve.y)))},events:["resize"]},events:[{name:"beforeshow",self:!0,handler:function(){Ve=Ve||{x:window.pageXOffset,y:window.pageYOffset},"reveal"!==this.mode||this.panel.parent().hasClass(this.clsMode)||this.panel.wrap("").parent().addClass(this.clsMode),re.css("overflow-y",(!this.clsContentAnimation||this.flip)&&this.scrollbarWidth&&this.overlay?"scroll":""),this.body.addClass(this.clsContainer+" "+this.clsFlip+" "+this.clsOverlay).height(),this.content.addClass(this.clsContentAnimation),this.panel.addClass(this.clsSidebarAnimation+" "+("reveal"!==this.mode?this.clsMode:"")),this.$el.addClass(this.clsOverlay).css("display","block").height()}},{name:"beforehide",self:!0,handler:function(){this.content.removeClass(this.clsContentAnimation),("none"===this.mode||this.getActive()&&this.getActive()!==this)&&this.panel.trigger(Ee)}},{name:"hidden",self:!0,handler:function(){"reveal"===this.mode&&this.panel.unwrap(),this.overlay||(Ve={x:window.pageXOffset,y:window.pageYOffset}),this.panel.removeClass(this.clsSidebarAnimation+" "+this.clsMode),this.$el.removeClass(this.clsOverlay).css("display",""),this.body.removeClass(this.clsContainer+" "+this.clsFlip+" "+this.clsOverlay).scrollTop(Ve.y),re.css("overflow-y",""),this.content.width("").height(""),window.scrollTo(Ve.x,Ve.y),Ve=null}},{name:"swipeLeft swipeRight",handler:function(t){this.isToggled()&&ht(t)&&("swipeLeft"===t.type&&!this.flip||"swipeRight"===t.type&&this.flip)&&this.hide()}}]})}function Mt(t){t.component("responsive",{props:["width","height"],init:function(){this.$addClass("uk-responsive-width")},update:{write:function(){this.$el.is(":visible")&&this.width&&this.height&&this.$el.height(ue.fit({height:this.height,width:this.width},{width:this.$el.parent().width(),height:this.height||this.$el.height()}).height)},events:["load","resize"]}})}function jt(t){t.component("scroll",{props:{duration:Number,easing:String,offset:Number},defaults:{duration:1e3,easing:"easeOutExpo",offset:0},methods:{scrollToElement:function(t){var e=this,i=et(ie(t))-this.offset,n=g(),o=window.innerHeight;i+o>n&&(i=n-o),ie("html,body").stop().animate({scrollTop:Math.round(i)},this.duration,this.easing).promise().then(function(){return e.$el.trigger("scrolled",[e])})}},events:{click:function(t){t.isDefaultPrevented()||(t.preventDefault(),this.scrollToElement(ie(this.$el[0].hash).length?this.$el[0].hash:"body"))}}}),ie.easing.easeOutExpo=ie.easing.easeOutExpo||function(t,e,i,n,o){return e===o?i+n:n*(-Math.pow(2,-10*e/o)+1)+i}}function Ft(t){t.component("scrollspy",{args:"cls",props:{cls:"list",target:String,hidden:Boolean,offsetTop:Number,offsetLeft:Number,repeat:Boolean,delay:Number},defaults:{cls:["uk-scrollspy-inview"],target:!1,hidden:!0,offsetTop:0,offsetLeft:0,repeat:!1,delay:0,inViewClass:"uk-scrollspy-inview"},init:function(){this.$emitSync()},computed:{elements:function(){return this.target&&ie(this.target,this.$el)||this.$el}},update:[{write:function(){this.hidden&&this.elements.filter(":not(."+this.inViewClass+")").css("visibility","hidden")}},{read:function(){var t=this;this.elements.each(function(e,i){if(!i._scrollspy){var n=ie(i).attr("uk-scrollspy-class");i._scrollspy={toggles:n&&n.split(",")||t.cls}}i._scrollspy.show=d(i,t.offsetTop,t.offsetLeft)})},write:function(){var t=this,e=1===this.elements.length?1:0;this.elements.each(function(i,n){var o=ie(n),s=n._scrollspy,r=s.toggles[i]||s.toggles[0];if(s.show){if(!s.inview&&!s.timer){var a=function(){o.css("visibility","").addClass(t.inViewClass).toggleClass(r).trigger("inview"),s.inview=!0,delete s.timer};t.delay&&e?s.timer=setTimeout(a,t.delay*e):a(),e++}}else s.inview&&t.repeat&&(s.timer&&(clearTimeout(s.timer),delete s.timer),o.removeClass(t.inViewClass).toggleClass(r).css("visibility",t.hidden?"hidden":"").trigger("outview"),s.inview=!1)})},events:["scroll","load","resize"]}]})}function Lt(t){t.component("scrollspy-nav",{props:{cls:String,closest:String,scroll:Boolean,overflow:Boolean,offset:Number},defaults:{cls:"uk-active",closest:!1,scroll:!1,overflow:!0,offset:0},computed:{links:function(){return this.$el.find('a[href^="#"]').filter(function(t,e){return e.hash})},elements:function(){return this.closest?this.links.closest(this.closest):this.links},targets:function(){return ie(this.links.toArray().map(function(t){return t.hash}).join(","))}},update:[{read:function(){this.scroll&&t.scroll(this.links,{offset:this.offset||0})}},{read:function(){var t=this,e=window.pageYOffset+this.offset,i=g()-window.innerHeight+this.offset;this.active=!1,this.targets.each(function(n,o){o=ie(o);var s=et(o),r=n+1===t.targets.length;if(!t.overflow&&(0===n&&s>e||r&&s+o[0].offsetTop
=i)for(var a=t.targets.length-1;a>n;a--)if(d(t.targets.eq(a))){o=t.targets.eq(a);break}return!(t.active=B(t.links.filter('[href="#'+o.attr("id")+'"]')))}})},write:function(){this.links.blur(),this.elements.removeClass(this.cls),this.active&&this.$el.trigger("active",[this.active,(this.closest?this.active.closest(this.closest):this.active).addClass(this.cls)])},events:["scroll","load","resize"]}]})}function zt(e){e.component("sticky",{mixins:[Xe],attrs:!0,props:{top:null,bottom:Boolean,offset:Number,animation:String,clsActive:String,clsInactive:String,clsFixed:String,clsBelow:String,widthElement:"jQuery",showOnUp:Boolean,media:"media",target:Number},defaults:{top:0,bottom:!1,offset:0,animation:"",clsActive:"uk-active",clsInactive:"",clsFixed:"uk-sticky-fixed",clsBelow:"uk-sticky-below",widthElement:!1,showOnUp:!1,media:!1,target:!1},connected:function(){this.placeholder=ie(''),this.widthElement=this.$props.widthElement||this.placeholder,this.isActive||this.$addClass(this.clsInactive)},disconnected:function(){this.isActive&&(this.isActive=!1,this.hide(),this.$removeClass(this.clsInactive)),this.placeholder.remove(),this.placeholder=null,this.widthElement=null},ready:function(){var t=this;if(this.target&&location.hash&&window.pageYOffset>0){var e=w(location.hash);e&&be(function(){var i=et(e),n=et(t.$el),o=t.$el[0].offsetHeight;n+o>=i&&n<=i+e[0].offsetHeight&&window.scrollTo(0,i-o-t.target-t.offset)})}},update:[{write:function(){var e,i=this,n=(this.isActive?this.placeholder:this.$el)[0].offsetHeight;this.placeholder.css("height","absolute"!==this.$el.css("position")?n:"").css(this.$el.css(["marginTop","marginBottom","marginLeft","marginRight"])),document.documentElement.contains(this.placeholder[0])||this.placeholder.insertAfter(this.$el).attr("hidden",!0),this.width=this.widthElement.attr("hidden",null)[0].offsetWidth,this.widthElement.attr("hidden",!this.isActive),this.topOffset=et(this.isActive?this.placeholder:this.$el),this.bottomOffset=this.topOffset+n,["top","bottom"].forEach(function(n){i[n]=i.$props[n],i[n]&&(t.isNumeric(i[n])?i[n]=i[n+"Offset"]+parseFloat(i[n]):O(i[n])&&i[n].match(/^-?\d+vh$/)?i[n]=window.innerHeight*parseFloat(i[n])/100:(e=i[n]===!0?i.$el.parent():w(i[n],i.$el),e&&(i[n]=et(e)+e[0].offsetHeight)))}),this.top=Math.max(parseFloat(this.top),this.topOffset)-this.offset,this.bottom=this.bottom&&this.bottom-n,this.inactive=this.media&&!window.matchMedia(this.media).matches,this.isActive&&this.update()},events:["load","resize"]},{read:function(){this.offsetTop=et(this.$el)},write:function(t){var e=this;void 0===t&&(t={});var i=t.dir,n=window.pageYOffset;if(!(n<0||!this.$el.is(":visible")||this.disabled||this.showOnUp&&!i))if(this.inactive||nthis.topOffset?he.cancel(this.$el).then(function(){return he.out(e.$el,e.animation).then(function(){return e.hide()})}):this.hide()}else this.isActive?this.update():this.animation?he.cancel(this.$el).then(function(){e.show(),he.in(e.$el,e.animation)}):this.show()},events:["scroll"]}],methods:{show:function(){this.isActive=!0,this.update(),this.$el.trigger("active"),this.placeholder.attr("hidden",null)},hide:function(){this.$addClass(this.clsInactive),this.$removeClass(this.clsFixed,this.clsActive,this.clsBelow),this.$el.css({position:"",top:"",width:""}).trigger("inactive"),this.placeholder.attr("hidden",!0)},update:function(){var t=Math.max(0,this.offset),e=window.pageYOffset,i=e>this.top;this.bottom&&e>this.bottom-this.offset&&(t=this.bottom-e),this.$el.css({position:"fixed",top:t+"px",width:this.width}),this.$addClass(this.clsFixed),this.$toggleClass(this.clsActive,i),this.$toggleClass(this.clsInactive,!i),this.$toggleClass(this.clsBelow,e>this.bottomOffset)}}})}function Wt(e){e.component("svg",{attrs:!0,props:{id:String,icon:String,src:String,style:String,width:Number,height:Number,ratio:Number,class:String},defaults:{ratio:1,id:!1,exclude:["src"],class:""},init:function(){this.class+=" uk-svg"},connected:function(){var t=this;if(!this.icon&&this.src&&~this.src.indexOf("#")){var e=this.src.split("#");e.length>1&&(this.src=e[0],this.icon=e[1])}this.width=this.$props.width,this.height=this.$props.height,this.svg=this.getSvg().then(function(e){return $(function(i,n){return De.mutate(function(){var o,s;if(!e)return void n("SVG not found.");if(t.icon)if(o=e.getElementById(t.icon)){var r=o.outerHTML;if(!r){var a=document.createElement("div");a.appendChild(o.cloneNode(!0)),r=a.innerHTML}r=r.replace(//g,"svg>"),s=gi.parseFromString(r,"image/svg+xml").documentElement}else e.querySelector("symbol")||(s=e.documentElement.cloneNode(!0));else s=e.documentElement.cloneNode(!0);if(!s)return void n("SVG not found.");var l=s.getAttribute("viewBox");l&&(l=l.split(" "),t.width=t.width||l[2],t.height=t.height||l[3]),t.width*=t.ratio,t.height*=t.ratio;for(var h in t.$options.props)t[h]&&!~t.exclude.indexOf(h)&&s.setAttribute(h,t[h]);t.id||s.removeAttribute("id"),t.width&&!t.height&&s.removeAttribute("height"),t.height&&!t.width&&s.removeAttribute("width");var c=t.$el[0];v(c)||"CANVAS"===c.tagName?(t.$el.attr({hidden:!0,id:null}),c.nextSibling?c.parentNode.insertBefore(s,c.nextSibling):c.parentNode.appendChild(s)):c.appendChild(s),i(s)})})}).then(null,function(){})},disconnected:function(){v(this.$el)&&this.$el.attr({hidden:null,id:this.id||null}),this.svg&&(this.svg.then(function(t){return t&&t.parentNode&&t.parentNode.removeChild(t)}),this.svg=null)},methods:{getSvg:function(){var e=this;return this.src?pi[this.src]?pi[this.src]:(pi[this.src]=$(function(i,n){0===e.src.lastIndexOf("data:",0)?i(e.parse(decodeURIComponent(e.src.split(",")[1]))):t.ajax(e.src,{dataType:"html"}).then(function(t){i(e.parse(t))},function(){n("SVG not found.")})}),pi[this.src]):$.reject()},parse:function(t){var e=gi.parseFromString(t,"image/svg+xml");return e.documentElement&&"svg"===e.documentElement.nodeName?e:null}}})}function Rt(t){t.component("switcher",{mixins:[Ge],args:"connect",props:{connect:String,toggle:String,active:Number,swiping:Boolean},defaults:{connect:!1,toggle:" > *",active:0,swiping:!0,cls:"uk-active",clsContainer:"uk-switcher",attrItem:"uk-switcher-item",queued:!0},computed:{connects:function(){return w(this.connect,this.$el)||ie(this.$el.next("."+this.clsContainer))},toggles:function(){return ie(this.toggle,this.$el)}},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(t){t.preventDefault(),this.show(t.currentTarget)}},{name:"click",el:function(){return this.connects},delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(t){t.preventDefault(),this.show(ie(t.currentTarget)[t.currentTarget.hasAttribute(this.attrItem)?"attr":"data"](this.attrItem))}},{name:"swipeRight swipeLeft",filter:function(){return this.swiping},el:function(){return this.connects},handler:function(t){ht(t)&&(t.preventDefault(),window.getSelection().toString()||this.show("swipeLeft"===t.type?"next":"previous"))}}],update:function(){this.updateAria(this.connects.children()),this.show(B(this.toggles.filter("."+this.cls+":first"))||B(this.toggles.eq(this.active))||this.toggles.first())},methods:{show:function(t){for(var e,i=this,n=this.toggles.length,o=this.connects.children("."+this.cls).index(),s=o>=0,r=m(t,this.toggles,o),a="previous"===t?-1:1,l=0;l=0&&e.hasClass(this.cls)||o===r||(this.toggles.removeClass(this.cls).attr("aria-expanded",!1),e.addClass(this.cls).attr("aria-expanded",!0),s?this.toggleElement(this.connects.children(":nth-child("+(o+1)+"),:nth-child("+(r+1)+")")):this.toggleNow(this.connects.children(":nth-child("+(r+1)+")")))}}})}function qt(t){t.component("tab",t.components.switcher.extend({mixins:[Xe],name:"tab",props:{media:"media"},defaults:{media:960,attrItem:"uk-tab-item"},init:function(){var e=this.$hasClass("uk-tab-left")&&"uk-tab-left"||this.$hasClass("uk-tab-right")&&"uk-tab-right";e&&t.toggle(this.$el,{cls:e,mode:"media",media:this.media})}}))}function Yt(e){e.component("toggle",{mixins:[e.mixin.togglable],args:"target",props:{href:String,target:null,mode:"list",media:"media"},defaults:{href:!1,target:!1,mode:"click",queued:!0,media:!1},computed:{target:function(){return w(this.$props.target||this.href,this.$el)||this.$el}},events:[{name:_e+" "+Se,filter:function(){return~this.mode.indexOf("hover")},handler:function(t){ht(t)||this.toggle("toggle"+(t.type===_e?"show":"hide"))}},{name:"click",filter:function(){return~this.mode.indexOf("click")||xe},handler:function(t){if(ht(t)||~this.mode.indexOf("click")){var e=ie(t.target).closest("a[href]");(ie(t.target).closest('a[href="#"], button').length||e.length&&(this.cls||!this.target.is(":visible")||"#"===e.attr("href")[0]&&this.target.is(e.attr("href"))))&&t.preventDefault(),this.toggle()}}}],update:{write:function(){if(~this.mode.indexOf("media")&&this.media){var t=this.isToggled(this.target);(window.matchMedia(this.media).matches?!t:t)&&this.toggle()}},events:["load","resize"]},methods:{toggle:function(e){var i=t.Event(e||"toggle");this.target.triggerHandler(i,[this]),i.isDefaultPrevented()||this.toggleElement(this.target)}}})}function Ut(t){t.component("leader",{mixins:[Xe],props:{fill:String,media:"media"},defaults:{fill:"",media:!1,clsWrapper:"uk-leader-fill",clsHide:"uk-leader-hide",attrFill:"data-fill"},computed:{fill:function(){return this.$props.fill||q("leader-fill")}},connected:function(){this.wrapper=this.$el.wrapInner('').children().first()},disconnected:function(){this.wrapper.contents().unwrap()},update:[{read:function(){var t=this._width;this._width=Math.floor(this.$el[0].offsetWidth/2),this._changed=t!==this._width,this._hide=this.media&&!window.matchMedia(this.media).matches},write:function(){this.wrapper.toggleClass(this.clsHide,this._hide),this._changed&&this.wrapper.attr(this.attrFill,new Array(this._width).join(this.fill))},events:["load","resize"]}]})}function Vt(t){var e=0,i=0;n(window,"load resize",t.update),n(window,"scroll",function(i){i.dir=e"}).join("")),n.forEach(function(t,e){return o[0].childNodes[e].innerText=t})}})}},methods:{start:function(){var t=this;this.stop(),this.date&&this.units.length&&(this.$emit(),this.timer=setInterval(function(){return t.$emit()},1e3))},stop:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}}})}function Gt(t){if(!Gt.installed){var e=t.util,i=e.$,n=e.ajax,o=e.assign,s=e.doc,r=e.Event,a=e.Dimensions,l=e.getIndex,h=e.Transition;t.component("lightbox",{name:"lightbox",props:{toggle:String,duration:Number,inverse:Boolean},defaults:{toggle:"a",duration:400,dark:!1,attrItem:"uk-lightbox-item",items:[],index:0},computed:{toggles:function(){var t=this;return i(this.toggle,this.$el).each(function(e,i){return t.items.push({source:i.getAttribute("href"),title:i.getAttribute("title"),type:i.getAttribute("type")})})}},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(t){t.preventDefault(),this.show(this.toggles.index(t.currentTarget))}},{name:"showitem",handler:function(t){var e=this.getItem();e.content&&(this.$update(),t.stopImmediatePropagation())}}],update:{write:function(){var t=this,e=this.getItem();if(this.modal&&e.content){var n=this.modal.panel,o={width:n.width(),height:n.height()},s={width:window.innerWidth-(n.outerWidth(!0)-o.width),height:window.innerHeight-(n.outerHeight(!0)-o.height)},r=a.fit({width:e.width,height:e.height},s);h.stop(n),h.stop(this.modal.content),this.modal.content&&this.modal.content.remove(),this.modal.content=i(e.content).css("opacity",0).appendTo(n),n.css(o),h.start(n,r,this.duration).then(function(){h.start(t.modal.content,{opacity:1},400).then(function(){n.find("[uk-transition-hide]").show(),n.find("[uk-transition-show]").hide()})})}},events:["resize"]},methods:{show:function(e){var n=this;this.index=l(e,this.items,this.index),this.modal||(this.modal=t.modal.dialog('\n \n \n ',{center:!0}),this.modal.$el.css("overflow","hidden").addClass("uk-modal-lightbox"),this.modal.panel.css({width:200,height:200}),this.modal.caption=i('').appendTo(this.modal.panel),this.items.length>1&&i('\n ').appendTo(this.modal.panel.addClass("uk-slidenav-position")),this.modal.$el.on("hidden",this.hide).on("click","["+this.attrItem+"]",function(t){t.preventDefault(),n.show(i(t.currentTarget).attr(n.attrItem))}).on("swipeRight swipeLeft",function(t){t.preventDefault(),window.getSelection().toString()||n.show("swipeLeft"===t.type?"next":"previous")})),this.modal.panel.find("[uk-transition-hide]").hide(),this.modal.panel.find("[uk-transition-show]").show(),this.modal.content&&this.modal.content.remove(),this.modal.caption.text(this.getItem().title);var o=r("showitem");this.$el.trigger(o),o.isImmediatePropagationStopped()||this.setError(this.getItem()),s.on("keydown."+this.$options.name,function(t){switch(t.keyCode){case 37:n.show("previous");break;case 39:n.show("next")}})},hide:function(){var t=this;s.off("keydown."+this.$options.name),this.modal.hide().then(function(){t.modal.$destroy(!0),t.modal=null})},getItem:function(){return this.items[this.index]||{source:"",title:"",type:""}},setItem:function(t,e,i,n){void 0===i&&(i=200),void 0===n&&(n=200),o(t,{content:e,width:i,height:n}),this.$update()},setError:function(t){this.setItem(t,'Loading resource failed!
',400,300)}}}),t.mixin({events:{showitem:function(t){var e=this,i=this.getItem();if("image"===i.type||!i.source||i.source.match(/\.(jp(e)?g|png|gif|svg)$/i)){var n=new Image;n.onerror=function(){return e.setError(i)},n.onload=function(){return e.setItem(i,'
',n.width,n.height)},n.src=i.source,t.stopImmediatePropagation()}}}},"lightbox"),t.mixin({events:{showitem:function(t){var e=this,n=this.getItem();if("video"===n.type||!n.source||n.source.match(/\.(mp4|webm|ogv)$/i)){var o=i('').on("loadedmetadata",function(){return e.setItem(n,o.attr({width:o[0].videoWidth,height:o[0].videoHeight}),o[0].videoWidth,o[0].videoHeight)}).attr("src",n.source);t.stopImmediatePropagation()}}}},"lightbox"),t.mixin({events:{showitem:function(t){var e,i=this,n=this.getItem();if((e=n.source.match(/\/\/.*?youtube\.[a-z]+\/watch\?v=([^&]+)&?(.*)/))||n.source.match(/youtu\.be\/(.*)/)){var o=e[1],s=new Image,r=!1,a=function(t,e){return i.setItem(n,'',t,e)};s.onerror=function(){return a(640,320)},s.onload=function(){120===s.width&&90===s.height?r?a(640,320):(r=!0,s.src="//img.youtube.com/vi/"+o+"/0.jpg"):a(s.width,s.height)},s.src="//img.youtube.com/vi/"+o+"/maxresdefault.jpg",t.stopImmediatePropagation()}}}},"lightbox"),t.mixin({events:{showitem:function(t){var e,i=this,o=this.getItem();if(e=o.source.match(/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/)){var s=e[2],r=function(t,e){return i.setItem(o,'',t,e)};n({type:"GET",url:"http://vimeo.com/api/oembed.json?url="+encodeURI(o.source),jsonp:"callback",dataType:"jsonp"}).then(function(t){return r(t.width,t.height)}),t.stopImmediatePropagation()}}}},"lightbox")}}function Qt(t){if(!Qt.installed){var e=t.util,i=e.$,n=e.each,o=e.pointerEnter,s=e.pointerLeave,r=e.Transition,a={};t.component("notification",{functional:!0,args:["message","status"],defaults:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",onClose:null,clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},created:function(){a[this.pos]||(a[this.pos]=i('').appendTo(t.container)),this.$mount(i('").appendTo(a[this.pos].show())[0])},ready:function(){var t=this,e=parseInt(this.$el.css("margin-bottom"),10);r.start(this.$el.css({opacity:0,marginTop:-1*this.$el.outerHeight(),marginBottom:0}),{opacity:1,marginTop:0,marginBottom:e}).then(function(){t.timeout&&(t.timer=setTimeout(t.close,t.timeout),t.$el.on(o,function(){return clearTimeout(t.timer)}).on(s,function(){return t.timer=setTimeout(t.close,t.timeout)}))})},events:{click:function(t){i(t.target).closest('a[href="#"]').length&&t.preventDefault(),this.close()}},methods:{close:function(t){var e=this,i=function(){e.onClose&&e.onClose(),e.$el.trigger("close",[e]).remove(),a[e.pos].children().length||a[e.pos].hide()};this.timer&&clearTimeout(this.timer),t?i():r.start(this.$el,{opacity:0,marginTop:-1*this.$el.outerHeight(),marginBottom:0}).then(i)}}}),t.notification.closeAll=function(e,i){n(t.instances,function(t,n){"notification"!==n.$options.name||e&&e!==n.group||n.close(i)})}}}function Jt(t){function e(i){return t.getComponent(i,"sortable")||i.parentNode&&e(i.parentNode)}function i(){var t=setTimeout(function(){return a.trigger("click")},0),e=function(i){i.preventDefault(),i.stopPropagation(),clearTimeout(t),d(a,"click",e,!0)};u(a,"click",e,!0)}if(!Jt.installed){var n=t.mixin,o=t.util,s=o.$,r=o.assign,a=o.docElement,l=o.docHeight,h=o.getDimensions,c=o.isWithin,u=o.on,d=o.off,f=o.offsetTop,p=o.pointerDown,g=o.pointerMove,m=o.pointerUp,v=o.promise,w=o.win;t.component("sortable",{mixins:[n.class],props:{group:String,animation:Number,
+threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},defaults:{group:!1,animation:150,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1},init:function(){var t=this;["init","start","move","end"].forEach(function(e){var i=t[e];t[e]=function(e){e=e.originalEvent||e,t.scrollY=window.scrollY;var n=e.touches&&e.touches[0]||e,o=n.pageX,s=n.pageY;t.pos={x:o,y:s},i(e)}})},events:(b={},b[p]="init",b),update:{write:function(){var t=this;if(this.clsEmpty&&this.$toggleClass(this.clsEmpty,!this.$el.children().length),this.drag){this.drag.offset({top:this.pos.y+this.origin.top,left:this.pos.x+this.origin.left});var e=f(this.drag),i=e+this.drag[0].offsetHeight;e>0&&ewindow.innerHeight+this.scrollY&&setTimeout(function(){return w.scrollTop(t.scrollY+5)},5)}}},methods:{init:function(t){var e=s(t.target),i=this.$el.children().filter(function(e,i){return c(t.target,i)});!i.length||e.is(":input")||this.handle&&!c(e,this.handle)||t.button&&0!==t.button||c(e,"."+this.clsNoDrag)||(t.preventDefault(),t.stopPropagation(),this.touched=[this],this.placeholder=i,this.origin=r({target:e,index:this.placeholder.index()},this.pos),a.on(g,this.move),a.on(m,this.end),w.on("scroll",this.scroll),this.threshold||this.start(t))},start:function(e){this.drag=s(this.placeholder[0].outerHTML.replace(/^$/i,"div>")).attr("uk-no-boot","").addClass(this.clsDrag+" "+this.clsCustom).css({boxSizing:"border-box",width:this.placeholder.outerWidth(),height:this.placeholder.outerHeight()}).css(this.placeholder.css(["paddingLeft","paddingRight","paddingTop","paddingBottom"])).appendTo(t.container),this.drag.children().first().height(this.placeholder.children().height());var i=h(this.placeholder),n=i.left,o=i.top;r(this.origin,{left:n-this.pos.x,top:o-this.pos.y}),this.placeholder.addClass(this.clsPlaceholder),this.$el.children().addClass(this.clsItem),a.addClass(this.clsDragState),this.$el.trigger("start",[this,this.placeholder,this.drag]),this.move(e)},move:function t(i){if(!this.drag)return void((Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(i));this.$emit();var n="mousemove"===i.type?i.target:document.elementFromPoint(this.pos.x-document.body.scrollLeft,this.pos.y-document.body.scrollTop),o=e(n),r=e(this.placeholder[0]),t=o!==r;if(o&&!c(n,this.placeholder)&&(!t||o.group&&o.group===r.group)){if(n=o.$el.is(n.parentNode)&&s(n)||o.$el.children().has(n),t)r.remove(this.placeholder);else if(!n.length)return;o.insert(this.placeholder,n),~this.touched.indexOf(o)||this.touched.push(o)}},scroll:function t(){var t=window.scrollY;t!==this.scrollY&&(this.pos.y+=t-this.scrollY,this.scrollY=t,this.$emit())},end:function(t){if(a.off(g,this.move),a.off(m,this.end),w.off("scroll",this.scroll),!this.drag)return void("mouseup"!==t.type&&c(t.target,"a[href]")&&(location.href=s(t.target).closest("a[href]").attr("href")));i();var n=e(this.placeholder[0]);this===n?this.origin.index!==this.placeholder.index()&&this.$el.trigger("change",[this,this.placeholder,"moved"]):(n.$el.trigger("change",[n,this.placeholder,"added"]),this.$el.trigger("change",[this,this.placeholder,"removed"])),this.$el.trigger("stop",[this]),this.drag.remove(),this.drag=null;var o=this.touched.map(function(t){return t.clsPlaceholder+" "+t.clsItem}).join(" ");this.touched.forEach(function(t){return t.$el.children().removeClass(o)}),a.removeClass(this.clsDragState)},insert:function t(e,i){var n=this;this.$el.children().addClass(this.clsItem);var t=function(){i.length?!n.$el.has(e).length||e.prevAll().filter(i).length?e.insertBefore(i):e.insertAfter(i):n.$el.append(e)};this.animation?this.animate(t):t()},remove:function(t){this.$el.has(t).length&&(this.animation?this.animate(function(){return t.detach()}):t.detach())},animate:function(t){var e=this,i=[],n=this.$el.children().toArray().map(function(t){return t=s(t),i.push(r({position:"absolute",pointerEvents:"none",width:t.outerWidth(),height:t.outerHeight()},t.position())),t}),o={position:"",width:"",height:"",pointerEvents:"",top:"",left:""};t(),n.forEach(function(t){return t.stop()}),this.$el.children().css(o),this.$updateSync("update",!0),this.$el.css("min-height",this.$el.height());var a=n.map(function(t){return t.position()});v.all(n.map(function(t,n){return t.css(i[n]).animate(a[n],e.animation).promise()})).then(function(){e.$el.css("min-height","").children().css(o),e.$updateSync("update",!0)})}}});var b}}function Zt(t){if(!Zt.installed){var e=t.util,i=t.mixin,n=e.$,o=e.doc,s=e.fastdom,r=e.flipPosition,a=e.isTouch,l=e.isWithin,h=e.pointerDown,c=e.pointerEnter,u=e.pointerLeave,d=[];t.component("tooltip",{attrs:!0,mixins:[i.togglable,i.position],props:{delay:Number,container:Boolean,title:String},defaults:{pos:"top",title:"",delay:0,animation:["uk-animation-scale-up"],duration:100,cls:"uk-active",clsPos:"uk-tooltip",container:!0},computed:{container:function(){return n(this.$props.container===!0&&t.container||this.$props.container||t.container)}},connected:function(){var t=this;s.mutate(function(){return t.$el.removeAttr("title").attr("aria-expanded",!1)})},disconnected:function(){this.hide()},methods:{show:function(){var t=this;~d.indexOf(this)||(d.forEach(function(t){return t.hide()}),d.push(this),o.on("click."+this.$options.name,function(e){l(e.target,t.$el)||t.hide()}),clearTimeout(this.showTimer),this.tooltip=n('").appendTo(this.container),this.$el.attr("aria-expanded",!0),this.positionAt(this.tooltip,this.$el),this.origin="y"===this.getAxis()?r(this.dir)+"-"+this.align:this.align+"-"+r(this.dir),this.showTimer=setTimeout(function(){t.toggleElement(t.tooltip,!0),t.hideTimer=setInterval(function(){t.$el.is(":visible")||t.hide()},150)},this.delay))},hide:function(){var t=d.indexOf(this);!~t||this.$el.is("input")&&this.$el[0]===document.activeElement||(d.splice(t,1),clearTimeout(this.showTimer),clearInterval(this.hideTimer),this.$el.attr("aria-expanded",!1),this.toggleElement(this.tooltip,!1),this.tooltip&&this.tooltip.remove(),this.tooltip=!1,o.off("click."+this.$options.name))}},events:(f={blur:"hide"},f["focus "+c+" "+h]=function(t){t.type===h&&a(t)||this.show()},f[u]=function(t){a(t)||this.hide()},f)});var f}}function Kt(t){function e(t,e){return e.match(new RegExp("^"+t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function i(t,e){for(var i=[],n=0;ni[e]?1:i[e]>t[e]?-1:0})}if(!te.installed){var i=t.util,n=i.scrolledOver;t.component("grid-parallax",t.components.grid.extend({props:{target:String,translate:Number},defaults:{target:!1,translate:150},init:function(){this.$addClass("uk-grid")},disconnected:function(){this.reset(),this.$el.css("margin-bottom","")},computed:{translate:function(){return Math.abs(this.$props.translate)},items:function(){return(this.target?this.$el.find(this.target):this.$el.children()).toArray()}},update:[{read:function(){this.columns=this.rows&&this.rows[0]&&this.rows[0].length||0,this.rows=this.rows&&this.rows.map(function(t){return e(t,"offsetLeft")})},write:function(){this.$el.css("margin-bottom","").css("margin-bottom",this.columns>1?this.translate+parseFloat(this.$el.css("margin-bottom")):"")},events:["load","resize"]},{write:function(){var t=n(this.$el)*this.translate;return this.rows&&1!==this.columns&&t?void this.rows.forEach(function(e){return e.forEach(function(e,i){return e.style.transform="translateY("+(i%2?t:t/8)+"px)"})}):this.reset()},events:["scroll","load","resize"]}],methods:{reset:function(){this.items.forEach(function(t){return t.style.transform=""})}}})),t.component("grid-parallax").options.update.unshift({read:function(){this.reset()},events:["load","resize"]})}}function ee(t){function e(t){return t.split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(function(t){return parseFloat(t)})}function i(t,e,i){return Object.keys(t).reduce(function(n,o){var s=t[o],r=a(s.diff)?s.end:s.start+s.diff*e*(s.starti[t]?n.ratio(e,t,i[t]):e}),e},cover:function(e,i){var n=this;return e=this.fit(e,i),t.each(e,function(t){return e=e[t]0;)e[i]=arguments[i+1];t=Object(t);for(var n=0;n100&&t.positions.splice(0,o),t.positions.push({time:n,x:i.pageX,y:i.pageY}),t.positions.length>5&&t.positions.shift(),e=!1},5),e=!0},se.on("mousemove",this.handler)},cancel:function(){this.handler&&se.off("mousemove",this.handler)},movesTo:function(t){if(this.positions.length<2)return!1;var e=tt(t),i=this.positions[this.positions.length-1],n=this.positions[0];if(e.left<=i.x&&i.x<=e.right&&e.top<=i.y&&i.y<=e.bottom)return!1;var o=[[{x:e.left,y:e.top},{x:e.right,y:e.bottom}],[{x:e.right,y:e.top},{x:e.left,y:e.bottom}]];return e.right<=i.x||(e.left>=i.x?(o[0].reverse(),o[1].reverse()):e.bottom<=i.y?o[0].reverse():e.top>=i.y&&o[1].reverse()),!!o.reduce(function(t,e){return t+(J(n,e[0])J(i,e[1]))},0)}};var Ie={};Ie.args=Ie.created=Ie.events=Ie.init=Ie.ready=Ie.connected=Ie.disconnected=Ie.destroy=function(t,e){return t=t&&!pe(t)?[t]:t,e?t?t.concat(e):pe(e)?e:[e]:t},Ie.update=function(t,e){return Ie.args(t,_(e)?{read:e}:e)},Ie.props=function(t,e){return pe(e)&&(e=e.reduce(function(t,e){return t[e]=String,t},{})),Ie.methods(t,e)},Ie.computed=Ie.defaults=Ie.methods=function(t,e){return e?t?ve({},t,e):e:t};var Ne,Be,Pe,He,Me,je=function(t,e){return D(e)?t:e},Fe={x:["width","left","right"],y:["height","top","bottom"]},Le={};i(function(){var e,i,o=0,s=0;"MSGesture"in window&&(He=new MSGesture,He.target=document.body),n(document,"click",function(){return Me=!0},!0),n(document,"MSGestureEnd gestureend",function(t){var e=t.velocityX>1?"Right":t.velocityX<-1?"Left":t.velocityY>1?"Down":t.velocityY<-1?"Up":null;e&&void 0!==Le.el&&(Le.el.trigger("swipe"),Le.el.trigger("swipe"+e))}),n(document,"mousedown pointerdown touchstart",function(t){var n=t.touches?t.touches[0]:t,o=n.target,s=n.pageX,r=n.pageY;e=Date.now(),i=e-(Le.last||e),Le.el=ie("tagName"in o?o:o.parentNode),Ne&&clearTimeout(Ne),Le.x1=s,Le.y1=r,i>0&&i<=250&&(Le.isDoubleTap=!0),Le.last=e,!He||"pointerdown"!==t.type&&"touchstart"!==t.type||He.addPointer(t.pointerId),Me=t.button>0}),n(document,"mousemove pointermove touchmove",function(t){var e=t.touches?t.touches[0]:t,i=e.pageX,n=e.pageY;Le.x2=i,Le.y2=n,o+=Math.abs(Le.x1-Le.x2),s+=Math.abs(Le.y1-Le.y2)}),n(document,"mouseup pointerup touchend",function(){Le.x2&&Math.abs(Le.x1-Le.x2)>30||Le.y2&&Math.abs(Le.y1-Le.y2)>30?Pe=setTimeout(function(){void 0!==Le.el&&(Le.el.trigger("swipe"),Le.el.trigger("swipe"+at(Le.x1,Le.x2,Le.y1,Le.y2))),Le={}}):"last"in Le&&(isNaN(o)||o<30&&s<30?Be=setTimeout(function(){var e=t.Event("tap");e.cancelTouch=lt,void 0!==Le.el&&Le.el.trigger(e),Le.isDoubleTap?(void 0!==Le.el&&Le.el.trigger("doubleTap"),Le={}):Ne=setTimeout(function(){Ne=null,void 0!==Le.el&&(Le.el.trigger("singleTap"),Me||Le.el.trigger("click")),Le={}},350)}):Le={},o=s=0)}),n(document,"touchcancel",lt),n(window,"scroll",lt)});var ze=!1;n(document,"touchstart",function(){return ze=!0},!0),n(document,"click",function(){ze=!1}),n(document,"touchcancel",function(){return ze=!1},!0);var We,Re,qe=Object.freeze({win:oe,doc:se,docElement:re,isRtl:ae,isReady:e,ready:i,on:n,off:o,transition:s,Transition:le,animate:r,Animation:he,isJQuery:a,isWithin:l,attrFilter:h,removeClass:c,createEvent:u,isInView:d,scrolledOver:f,clamp:p,docHeight:g,getIndex:m,isVoidElement:v,Dimensions:ue,query:w,Observer:we,requestAnimationFrame:be,hasPromise:$e,hasTouch:xe,pointerDown:ke,pointerMove:Ce,pointerUp:Te,pointerEnter:_e,pointerLeave:Se,transitionend:Ee,animationstart:Oe,animationend:Ae,getStyle:R,getCssVar:q,getImage:Y,fastdom:De,$:ie,bind:b,hasOwn:y,promise:$,classify:x,hyphenate:k,camelize:C,isArray:pe,isFunction:_,isObject:S,isPlainObject:E,isString:O,isNumber:A,isUndefined:D,isContextSelector:I,getContextSelectors:N,toJQuery:B,toNode:P,toBoolean:H,toNumber:M,toList:j,toMedia:F,coerce:L,toMs:z,swap:W,assign:ve,ajax:t.ajax,each:t.each,Event:t.Event,isNumeric:t.isNumeric,MouseTracker:Q,mergeOptions:Z,position:K,getDimensions:tt,offsetTop:et,flipPosition:rt,isTouch:ht});!function(){var t=document.createElement("_").classList;t.add("a","b"),t.toggle("c",!1),We=t.contains("b"),Re=!t.contains("c"),t=null}();var Ye=function(t){this._init(t)};Ye.util=qe,Ye.data="__uikit__",Ye.prefix="uk-",Ye.options={},Ye.instances={},Ye.elements=[],ut(Ye),dt(Ye),ft(Ye),pt(Ye),gt(Ye),mt(Ye);var Ue,Ve,Xe={init:function(){this.$addClass(this.$name)}},Ge={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String,queued:Boolean},defaults:{cls:!1,animation:[!1],duration:200,origin:!1,transition:"linear",queued:!1,initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}},computed:{hasAnimation:function(){return!!this.animation[0]},hasTransition:function(){return this.hasAnimation&&this.animation[0]===!0}},methods:{toggleElement:function(t,e,i){var n,o=this,s=document.body,r=s.scrollTop,a=function(t){return $.all(t.toArray().map(function(t){return o._toggleElement(t,e,i)})).then(null,function(){})},l=function(t){var e=a(t);return o._queued=null,s.scrollTop=r,e};return t=ie(t),!this.hasAnimation||!this.queued||t.length<2?a(t):this._queued?l(t.not(this._queued)):(this._queued=t.not(n=t.filter(function(t,e){return o.isToggled(e)})),a(n).then(function(){return o._queued&&l(o._queued)}))},toggleNow:function(t,e){var i=this;return $.all(ie(t).toArray().map(function(t){return i._toggleElement(t,e,!1)})).then(null,function(){})},isToggled:function(t){return t=t&&ie(t)||this.$el,this.cls?t.hasClass(this.cls.split(" ")[0]):!t.attr("hidden")},updateAria:function(t){this.cls===!1&&t.attr("aria-hidden",!this.isToggled(t))},_toggleElement:function(e,i,n){var o=this;if(e=ie(e),he.inProgress(e))return he.cancel(e).then(function(){return o._toggleElement(e,i,n)});i="boolean"==typeof i?i:!this.isToggled(e);var s=t.Event("before"+(i?"show":"hide"));if(e.trigger(s,[this]),s.result===!1)return $.reject();var r=(n!==!1&&this.hasAnimation?this.hasTransition?this._toggleHeight:this._toggleAnimation:this._toggleImmediate)(e,i);return e.trigger(i?"show":"hide",[this]),r.then(function(){return e.trigger(i?"shown":"hidden",[o])})},_toggle:function(t,e){t=ie(t),this.cls?t.toggleClass(this.cls,~this.cls.indexOf(" ")?void 0:e):t.attr("hidden",!e),t.find("[autofocus]:visible").focus(),this.updateAria(t),Ye.update(null,t)},_toggleImmediate:function(t,e){return this._toggle(t,e),$.resolve()},_toggleHeight:function(t,e){var i,n=this,o=le.inProgress(t),s=parseFloat(t.children().first().css("margin-top"))+parseFloat(t.children().last().css("margin-bottom")),r=t[0].offsetHeight?t.height()+(o?0:s):0;return le.cancel(t).then(function(){return n.isToggled(t)||n._toggle(t,!0),t.height(""),$(function(a){return be(function(){i=t.height()+(o?0:s),t.height(r),(e?le.start(t,ve(n.initProps,{overflow:"hidden",height:i}),Math.round(n.duration*(1-r/i)),n.transition):le.start(t,n.hideProps,Math.round(n.duration*(r/i)),n.transition).then(function(){n._toggle(t,!1),t.css(n.initProps)})).then(a)})})})},_toggleAnimation:function(t,e){var i=this;return e?(this._toggle(t,!0),he.in(t,this.animation[0],this.duration,this.origin)):he.out(t,this.animation[1]||this.animation[0],this.duration,this.origin).then(function(){return i._toggle(t,!1)})}}},Qe={mixins:[Xe,Ge],props:{clsPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,container:Boolean},defaults:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,container:!0},computed:{body:function(){return ie(document.body)},panel:function(){return this.$el.find("."+this.clsPanel)},container:function t(){var t=this.$props.container===!0&&Ye.container||this.$props.container&&B(this.$props.container);return t&&P(t)},transitionElement:function(){return this.panel},transitionDuration:function(){return z(this.transitionElement.css("transition-duration"))}},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.hide()}},{name:"toggle",handler:function(t){t.preventDefault(),this.toggle()}},{name:"beforeshow",self:!0,handler:function(){var t=this;if(this.isToggled())return!1;var e=Ue&&Ue!==this&&Ue;if(Ue=this,e){if(!this.stack)return e.hide().then(this.show),!1;this.prev=e}else be(function(){return vt(t.$options.name)});e||(this.scrollbarWidth=window.innerWidth-re[0].offsetWidth,this.body.css("overflow-y",this.scrollbarWidth&&this.overlay?"scroll":"")),re.addClass(this.clsPage)}},{name:"beforehide",self:!0,handler:function(){return!!this.isToggled()&&(Ue=Ue&&Ue!==this&&Ue||this.prev,void(Ue||wt(this.$options.name)))}},{name:"hidden",self:!0,handler:function(){Ue||(re.removeClass(this.clsPage),this.body.css("overflow-y",""))}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){var t=this;return this.container&&!this.$el.parent().is(this.container)?(this.container.appendChild(this.$el[0]),$(function(e){return be(function(){return e(t.show())})})):this.toggleNow(this.$el,!0)},hide:function(){return this.toggleNow(this.$el,!1)},getActive:function(){return Ue},_toggleImmediate:function(t,e){var i=this;return this._toggle(t,e),this.transitionDuration?$(function(t,e){i._transition&&(i.transitionElement.off(Ee,i._transition.handler),i._transition.reject()),i._transition={reject:e,handler:function(){t(),i._transition=null}},i.transitionElement.one(Ee,i._transition.handler)}):$.resolve()}}},Je={props:{pos:String,offset:null,flip:Boolean,clsPos:String},defaults:{pos:ae?"bottom-right":"bottom-left",flip:!0,offset:!1,clsPos:""},computed:{pos:function(){return(this.$props.pos+(~this.$props.pos.indexOf("-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(t,e,i){c(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?").css({top:"",left:""});var n=M(this.offset)||0,o=this.getAxis(),s=K(t,e,"x"===o?rt(this.dir)+" "+this.align:this.align+" "+rt(this.dir),"x"===o?this.dir+" "+this.align:this.align+" "+this.dir,"x"===o?""+("left"===this.dir?-1*n:n):" "+("top"===this.dir?-1*n:n),null,this.flip,i);this.dir="x"===o?s.target.x:s.target.y,this.align="x"===o?s.target.y:s.target.x,t.toggleClass(this.clsPos+"-"+this.dir+"-"+this.align,this.offset===!1)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}},Ze='',Ke='',ti='',ei='',ii='',ni='',oi='',si='',ri='',ai='',li='',hi='',ci='',ui='',di='',fi='',pi={},gi=new DOMParser;return Ye.version="3.0.0-beta.24",bt(Ye),Vt(Ye),Ye.use(Xt),Ye.use(Gt),Ye.use(Qt),Ye.use(Jt),Ye.use(Zt),Ye.use(Kt),Ye.use(te),Ye.use(ee),ct(Ye),Ye});
\ No newline at end of file
diff --git a/bl-kernel/admin/views/edit-page.php b/bl-kernel/admin/views/edit-page.php
index 6c45f6cb..731a4861 100644
--- a/bl-kernel/admin/views/edit-page.php
+++ b/bl-kernel/admin/views/edit-page.php
@@ -1,6 +1,6 @@
$L->g('Edit page'), 'icon'=>'file-text-o'));
+HTML::title(array('title'=>$L->g('Edit content'), 'icon'=>'file-text-o'));
HTML::formOpen(array('class'=>'uk-form-stacked'));
diff --git a/bl-kernel/admin/views/pages.php b/bl-kernel/admin/views/pages.php
index 05674c20..3ec759eb 100644
--- a/bl-kernel/admin/views/pages.php
+++ b/bl-kernel/admin/views/pages.php
@@ -1,8 +1,8 @@
$L->g('Manage pages'), 'icon'=>'folder'));
+HTML::title(array('title'=>$L->g('Manage content'), 'icon'=>'folder'));
-echo ' '.$L->g('Add a new page').'';
+echo ' '.$L->g('Add new content').'';
echo '